Out-of-band link control method, electronic device, storage medium and program product

By detecting message anomalies and switching redundant out-of-band links, combined with physical device detection and repair, the problem of insufficient stability of out-of-band links in existing technologies has been solved, and a more stable communication connection has been achieved.

CN121645295APending Publication Date: 2026-03-10ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, the switching judgment of out-of-band links depends on the connection status of hardware links, which can easily lead to misjudgments and failure to repair hardware-level anomalies in a timely manner, affecting the stability of out-of-band links.

Method used

By detecting whether the received messages are abnormal, it is determined whether the out-of-band link communication is abnormal. When communication is abnormal, it switches to a redundant out-of-band link. Combined with the detection and repair methods of physical devices, it ensures the normal connection of the data link layer and higher layers.

Benefits of technology

It enables timely switching of out-of-band links under abnormal conditions, reduces misjudgments and frequent switching, and improves the stability and reliability of out-of-band links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121645295A_ABST
    Figure CN121645295A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an out-of-band link control method, electronic equipment, a storage medium and a program product. The method comprises the following steps: receiving a message sent by a control end through an out-of-band link between an equipment end and the control end in a communication process between the equipment end and the control end; under the condition that the message is abnormal, switching the out-of-band link into a redundant out-of-band link between the equipment end and the control end; the message exception comprises the exception of the received message. According to the scheme of the embodiment, normal communication between the home terminal and the opposite terminal under the abnormal condition of the out-of-band link is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present disclosure relate to the technical field of communication, and particularly relate to an out-of-band link control method, an electronic device, a storage medium and a program product. BACKGROUND

[0002] Generally, there is a low-speed link in a communication device, which is used to transmit control commands from a control end to a device end, and is generally referred to as an out-of-band link. For example, as shown in the figure, an out-of-band link between a master control end and a peripheral board in a switch product. Figure 1 In order to improve the risk resistance of the out-of-band link, the communication device generally designs and configures a redundant out-of-band link as an additional guarantee. Once the current out-of-band link fails, the other out-of-band link can be used to ensure the normal out-of-band communication function. For example, in a switch product, two master control ends establish out-of-band links with the same peripheral board. Under normal circumstances, only one out-of-band link is working. When the working out-of-band link fails, the communication can be switched to the other out-of-band link. SUMMARY

[0003] Embodiments of the present disclosure provide an out-of-band link control method, an electronic device, a storage medium and a program product.

[0004] In a first aspect, the embodiments of the present disclosure provide an out-of-band link control method, which comprises:

[0005] In a communication process between a device end and a control end, receiving a message sent by the control end through an out-of-band link between the device end and the control end;

[0006] In the case of message exception, switching the out-of-band link to a redundant out-of-band link between the device end and the control end; the message exception includes message exception received.

[0007] In a second aspect, the embodiments of the present disclosure further provide an electronic device, which comprises:

[0008] One or more processors;

[0009] A memory having one or more programs stored thereon, when the one or more programs are executed by the one or more processors, the one or more processors implement the out-of-band link control method;

[0010] One or more input / output I / O interfaces connected between the processor and the memory, configured to realize information interaction of the processor and the memory.

[0011] In a third aspect, the present disclosure also provides a computer readable storage medium, having stored thereon a computer program, which, when executed by a processor, implements the out-of-band link control method.

[0012] In a fourth aspect, the present disclosure also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the out-of-band link control method.

[0013] In the communication process between the device end and the control end, the out-of-band link between the device end and the control end receives the message sent by the control end; in the case of message exception, the out-of-band link is switched to the redundant out-of-band link between the device end and the control end; the message exception can include the received message exception. The embodiment scheme realizes the detection of whether the currently working out-of-band link communication is abnormal by detecting whether the received message is abnormal, and the scheme is simple and effective, and in the case of communication exception, the out-of-band link is switched to the redundant out-of-band link, thereby ensuring the normal connection of the data link layer and the upper layer of the data link layer of the two ends. BRIEF DESCRIPTION OF DRAWINGS

[0014] In the drawings of the present disclosure:

[0015] Figure 1 The out-of-band link connection structure provided by the related art is shown;

[0016] Figure 2 The out-of-band link control method flowchart provided by the present disclosure embodiment is shown;

[0017] Figure 3 The out-of-band link control method provided by the present disclosure embodiment is shown;

[0018] Figure 4 The message frame structure provided by the present disclosure embodiment is shown;

[0019] Figure 5 The electronic device composition block diagram provided by the present disclosure embodiment is shown. DETAILED DESCRIPTION

[0020] In order for those skilled in the art to better understand the technical solutions of the present disclosure, the communication awareness data processing method and the computer readable storage medium provided by the present disclosure embodiment will be described in detail below with reference to the drawings.

[0021] The present disclosure will be described more fully hereinafter with reference to the accompanying drawings, but the embodiments shown can be embodied in different forms and the present disclosure should not be interpreted as being limited to the embodiments set forth below. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete, and to enable those skilled in the art to fully understand the scope of the present disclosure.

[0022] The accompanying drawings are used to provide a further understanding of embodiments of the present disclosure and constitute a part of the specification, and together with the detailed embodiments, serve to explain the present disclosure, and do not constitute a limitation of the present disclosure. The above and other features and advantages will become more apparent as the detailed embodiments are described with reference to the drawings.

[0023] The present disclosure can be described with reference to plan views and / or cross-sectional views by way of idealized illustrations of the present disclosure. Therefore, the example illustrations can be modified according to manufacturing techniques and / or tolerances.

[0024] In the case of no conflict, each embodiment of the present disclosure and each feature in the embodiments can be combined with each other.

[0025] The terms used in the present disclosure are only used to describe particular embodiments, and are not intended to limit the present disclosure. As used in the present disclosure, the term "and / or" includes any and all combinations of one or more of the associated listed items. As used in the present disclosure, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprised of," "comprising," and the like, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0026] Unless otherwise defined, all terms used in the present disclosure, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in a generally used dictionary should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and should not be interpreted in an idealized or overly formal sense unless expressly so defined in the present disclosure.

[0027] In the related art, the switching judgment of the out-of-band link still depends on the connection state of the PHY (physical layer) device on the hardware link, and the judgment basis is relatively single, which is easy to produce misjudgment. For example, the opposite CPU is restarted, but the opposite PHY is not restarted, at this time the hardware link state is normal, so it will be judged that the out-of-band routing remains unchanged, but in fact, due to the opposite CPU restart, the soft link (such as the data layer, the protocol layer) has been disconnected, at this time it is necessary to switch the out-of-band link.

[0028] In addition, the current switching judgment lacks detection and repair means when the related hardware link fails, and when the PHY device continuously abnormally, the out-of-band link will be completely disconnected due to the inability to repair at the hardware level, which seriously affects the stability of the out-of-band link.

[0029] In this embodiment, during communication between the device and the control end, messages sent by the control end are received via an out-of-band link between the device and the control end. In the event of message anomalies, the out-of-band link is switched to a redundant out-of-band link between the device and the control end. These message anomalies can include abnormal received messages. This embodiment detects out-of-band communication anomalies by checking for abnormal received messages. The solution is simple and effective, and switches the out-of-band link to a redundant one in case of communication anomalies, thereby ensuring normal connectivity at the data link layer and above the data link layer between the two ends.

[0030] The solutions disclosed herein can be used in various products in communication networks, including but not limited to: routers, switches, base stations, servers, smart network cards, DPUs (Data Processing Units), etc.

[0031] The embodiments of this disclosure will be described in detail below.

[0032] This disclosure provides an out-of-band control method, such as... Figure 2 , Figure 3 As shown, the method may include steps S11-S12:

[0033] S11. During communication between the device and the control terminal, receive messages sent by the control terminal through the out-of-band link between the device and the control terminal.

[0034] S12. In the event of a message anomaly, switch the out-of-band link to a redundant out-of-band link between the device and the control end; message anomalies include: received message anomalies.

[0035] In the communications industry, "out-of-band" is usually contrasted with "in-band" to describe different methods of data transmission or communication. An out-of-band link refers to an independent communication path provided in addition to the main data transmission channel (also known as "in-band") during data transmission. This path can be used to transmit control information, diagnostic information, configuration information, etc., without affecting the normal operation of the main data link. In practical applications, out-of-band links can be used in various network devices and systems, such as routers, switches, and data center networks. By using out-of-band links, network administrators can more effectively monitor and manage the status of network devices, promptly identify and resolve network problems, thereby improving network stability and reliability. In the embodiments of this disclosure, the above-described scheme can be applied to the device side, for example, to the CPU of the device.

[0036] In this embodiment of the disclosure, the out-of-band link may include physical devices and transmission paths; the physical devices may be located in the device end and connected to the processor (e.g., CPU) in the switching device; the transmission path is the line between the physical devices and the control end, used to connect the physical devices and the control end.

[0037] In this embodiment of the disclosure, the physical device may include: a physical layer PHY device and / or a switching chip having at least one port.

[0038] In this embodiment of the disclosure, the physical device may consist of multiple sets of PHY devices, and each set of PHY devices and a transmission path may constitute an out-of-band link.

[0039] In this embodiment of the disclosure, the physical device may consist of at least one switching chip, and the switching chip may be provided with at least one port, and each port and a transmission path may constitute an out-of-band link.

[0040] In this embodiment of the disclosure, the switching chip may contain, but is not limited to, one or more sets of PHY devices, each set of PHY devices being connected to a port.

[0041] In the embodiments of this disclosure, the following describes the scheme of the embodiments of this disclosure by taking the physical device as an example, which includes multiple sets of PHY devices.

[0042] In this embodiment of the disclosure, the device side may include multiple sets of PHY devices, and each out-of-band link may include a set of PHY devices and a transmission path. Multiple out-of-band links may be configured between the CPU on the device side and the CPU on the control side, and these multiple out-of-band links are redundant with each other.

[0043] In this embodiment, the control terminal can be different ports of the same control device (e.g., two ports of a switch, two network ports of a CPU, or two associated control boards, etc.), or it can be different control devices. The detailed implementation of the control terminal is not limited here, as long as multiple out-of-band links are redundant with each other.

[0044] In this embodiment of the disclosure, for example, in a switch product, the device side may include one or more peripheral boards that can communicate with the main control board (i.e., the control end) via Ethernet and receive control and management information from the main control board. Each peripheral board may include at least one CPU. Furthermore, each peripheral board contains multiple sets of PHY devices, which are connected to the CPU respectively. Each set of PHY devices is connected to different control ports of the main control board through corresponding transmission paths to form an out-of-band link.

[0045] The physical layer (PHY) is a common abbreviation for the physical layer of the OSI (Open System Interconnection) model. The PHY devices described in the embodiments of this disclosure include, but are not limited to, PHY chips, etc., and are key components for realizing the physical layer in a data communication system. They play an important role in the performance and stability of the communication system.

[0046] In the embodiments disclosed herein, such as Figure 1 As shown, for example, in a switch product, the device side can contain N (N is a positive integer) peripheral boards (e.g., peripheral board 1, ..., peripheral board N), and the control side can contain control terminal 1 and control terminal 2. Each peripheral board contains multiple sets of PHY devices, such as PHY device 1, PHY device 2, etc. PHY device 1 is connected to control terminal 1 through transmission path 1 to form out-of-band link 1; PHY device 2 is connected to control terminal 2 through transmission path 2 to form out-of-band link 2, and out-of-band link 1 and out-of-band link 2 are redundant to each other.

[0047] In the embodiments disclosed herein, the aforementioned control terminal can be any device capable of implementing control functions, and there are no limitations on the implementation method and detailed control functions of the control terminal.

[0048] In this disclosure embodiment, for example in a switch product, the control terminal can be used to be primarily responsible for the control and management of the system, including but not limited to routing calculation, device management and maintenance, device monitoring, etc., and as a system synchronization unit, it provides high-precision and high-reliability synchronization clocks, time signals, etc.

[0049] In this embodiment of the disclosure, in Figure 1 In the schematic diagram of the redundant out-of-band link structure shown, when the device is working normally, only one out-of-band link can be in the working state, while the redundant out-of-band links serve as backup links and remain idle. When one out-of-band link is in the working state, the device (which can be referred to as the out-of-band link local end, or simply local end) will receive messages sent by the connected control end (which can be referred to as the out-of-band link peer end, or simply peer end). These messages can be periodically sent from the control end to the device end.

[0050] In this embodiment of the disclosure, the message may include status information of the control terminal, which is used to indicate the status of the connected control terminal.

[0051] In this embodiment of the disclosure, the message can be any message type suitable for the use case, such as, but not limited to, constructed bpdu (Bridge Protocol Data Unit) messages.

[0052] In this embodiment of the disclosure, the message frame structure of the message may store the status information and / or tagging information of the control terminal itself. The status information may include, but is not limited to, any one or more of the following: startup status information, link information, primary / backup status information, slot information, etc.; the tagging information may include, but is not limited to: hardware master control tag, running status editing, etc.

[0053] In this embodiment of the disclosure, the message frame structure can be as follows: Figure 4 As shown, it includes, but is not limited to: message header, the aforementioned status information, tagging information, and reserved extension area, etc. The message header may include, but is not limited to, information such as destination address, source address, and message type.

[0054] In this embodiment of the disclosure, the method may further include: determining whether the control terminal is in an abnormal state based on the status information. For example, if the startup status information in the status information is detected as restart, it can be determined that the control terminal is in an abnormal state; or, for example, if the primary / standby status information in the status information is detected as a primary / standby swap state, it can be determined that the control terminal is in an abnormal state.

[0055] In the embodiments disclosed herein, such as Figure 1 As shown, when the product is working normally, if the current control terminal 1 is in working state, the control terminal 1 will periodically send messages to the peripheral board 1, for example, once every 100ms (milliseconds). The peripheral board 1 will continuously receive messages through the preset message receiving module, and store the messages and pass them to the preset message parsing module for message parsing.

[0056] In this embodiment of the disclosure, during normal operation, the message parsing module can always receive messages within a certain time period (e.g., a first preset time period), and parse a valid message header within an agreed time period (e.g., a second preset time period), determining it to be a valid message. Within this agreed time period, based on the valid message, the module parses the message content and obtains the corresponding status information. If all status information indicates a normal working state (i.e., message reception is normal and the message is normal), the preset message reception flag can be set to 1. In abnormal scenarios, if the message received by the message receiving module is empty (i.e., message reception is abnormal) or does not contain the status information of a preset valid message, such as a startup state or a control terminal switching state (i.e., message is abnormal), the message parsing module determines that no valid message has been received, and the preset message reception flag can be set to 0.

[0057] In this embodiment of the disclosure, the above-mentioned abnormal scenarios may include, but are not limited to, any one or more of the physical devices, transmission paths, and control terminals experiencing abnormalities.

[0058] In this embodiment of the disclosure, for example, when the physical device is a PHY device, physical device abnormalities may include, but are not limited to, software and / or hardware failures or damage of the PHY device; transmission path abnormalities may include, but are not limited to, line plugging or unplugging or damage of the transmission path; and control terminal abnormalities may include, but are not limited to, restarting or switching between primary and backup control terminals.

[0059] In this embodiment of the disclosure, message anomalies may include, but are not limited to, message reception anomalies;

[0060] Message reception errors include:

[0061] No message is received within the first preset time period; and / or,

[0062] The message was not received within the first preset time period multiple times.

[0063] In this embodiment of the disclosure, the first preset duration can be defined according to the requirements, and the detailed value of the first preset duration is not limited here.

[0064] In this embodiment, if no message is received within a first preset time period, it can be determined that the message reception has failed, and the flag is set to 0. The system continues to wait for the next round of message reception. If no message is received within the first preset time period in the next cycle, the flag for that message reception is recorded as 0. When the number of consecutively unreceived messages reaches a preset threshold, it can be determined that the message reception is abnormal. This threshold can be defined according to requirements, and the specific value of the threshold is not limited here. For example, it can include, but is not limited to, 3 or 4 times. Determining whether the message reception is abnormal through multiple reception results can avoid misjudgments that could lead to frequent switching of out-of-band links and cause instability in the out-of-band links.

[0065] In this embodiment of the disclosure, depending on the specific application scenario, it can also be determined that the message reception is abnormal if no message is received within a first preset time period.

[0066] In this embodiment of the disclosure, if a message reception error is detected, the current out-of-band link can be directly switched to a redundant out-of-band link to ensure normal communication between the local end and the peer end.

[0067] In this embodiment of the disclosure, message anomalies may include, but are not limited to, received message anomalies;

[0068] Received message errors may include, but are not limited to:

[0069] The message was not parsed within the second preset time period; or,

[0070] The parsed message indicates that the control terminal is in an abnormal state.

[0071] In the embodiments disclosed herein, such as Figure 3 As shown, typically, if the physical components and transmission path are functioning correctly, but the control end experiences an anomaly (e.g., a reboot), the message receiving module will normally receive the message and send it to the message parsing module for analysis. In this case, since the message parsing module can receive the message, it will set the flag to 1. When the message parsing module further analyzes the received message, it may parse the status information of the remote control end. If the status information indicates that the control end is in an abnormal state, then to ensure normal communication between the local and remote ends, the flag can be set to 0.

[0072] In this embodiment of the disclosure, the flag can be monitored by a preset out-of-band switching monitoring module. If the flag is always 1, no action is taken. If the flag is detected to become 0, or if the flag is 0 for multiple monitoring cycles (the monitoring cycle is the above-mentioned message sending cycle, such as 100ms), the out-of-band switching monitoring module can determine that the current situation is abnormal and implement preset detection and repair measures.

[0073] In this embodiment, the out-of-band slicing monitoring module can be a module independent of the message receiving module and the message parsing module. It has no business connection with the message receiving subsystem composed of the message receiving module and the message parsing module. It is only used to monitor and count the flag value, and determine whether to start remedial measures based on the monitoring and statistical results. The detailed detection and repair measures are as follows.

[0074] In this embodiment of the disclosure, in the event of a message anomaly, before switching the out-of-band link to a redundant out-of-band link, the method may further include:

[0075] Check if the physical devices corresponding to the out-of-band link are faulty.

[0076] In this embodiment of the disclosure, it is possible to detect whether the physical device of the out-of-band link that generates the message abnormality is faulty in order to determine the cause of the message abnormality; it is also possible to detect whether the physical device of the redundant out-of-band link to be switched to is faulty in order to ensure that normal communication can be achieved after the out-of-band link is switched.

[0077] In this embodiment of the disclosure, fault detection can be performed by a preset physical device detection and repair module.

[0078] In this embodiment of the disclosure, when the physical device includes a PHY device, detecting whether the physical device corresponding to the out-of-band link that generated the message anomaly is faulty includes:

[0079] Detect whether the PHY device has a preset abnormal device state;

[0080] In cases where the PHY device exhibits an abnormal state, a physical device fault is identified.

[0081] If the PHY device does not exhibit any abnormal state, it is determined that the physical device is not faulty.

[0082] In this embodiment of the disclosure, the abnormal state of the device may include, but is not limited to: abnormal physical link state and / or abnormal register read value.

[0083] In this embodiment of the disclosure, the physical device detection and repair module will inspect the PHY devices related to the out-of-band link and perform one-by-one detection of various preset abnormal device states.

[0084] In this embodiment of the disclosure, if no abnormal physical link status or abnormal register read value is detected in the PHY device, it indicates that the PHY device is not faulty, and no further processing is performed, and the flag value continues to be detected.

[0085] In this embodiment of the disclosure, if abnormal physical connection status or abnormal register read value is detected in the PHY device, or if abnormal physical connection status or abnormal register read value is detected in multiple consecutive tests, it indicates that the PHY device is indeed faulty, and a preset PHY device repair process will be initiated.

[0086] In this embodiment of the disclosure, when the physical device includes a switching chip, detecting whether the physical device corresponding to the out-of-band link that generates the packet anomaly is faulty includes:

[0087] Check the switching chip for port abnormalities;

[0088] In cases where there is a port anomaly in the switching chip, the physical component is identified as faulty.

[0089] If there are no port abnormalities in the switching chip, it can be determined that the physical components are not faulty.

[0090] In this embodiment, the physical device detection and repair module inspects ports related to outbound links, performing a series of pre-defined port anomalies one by one. Detailed port detection schemes can be implemented using existing schemes and will not be elaborated upon here.

[0091] In this embodiment of the disclosure, the port anomaly may include, but is not limited to, status anomalies and configuration parameter anomalies; wherein, status anomalies may include, but are not limited to, link status anomalies, port up / down status anomalies (such as port not being open), power supply anomalies (such as unstable voltage and / or current, insufficient power supply, etc.), etc., and configuration parameter anomalies may include actual configuration parameters that are not the expected configuration parameters.

[0092] In this embodiment of the disclosure, after determining a physical device failure and before switching the out-of-band link to a redundant out-of-band link, the method may further include:

[0093] Repair the physical components.

[0094] In this embodiment of the disclosure, repairing the physical device may include any of the following:

[0095] Perform software reset and / or hardware reset on physical devices;

[0096] Performing software and / or hardware resets on physical devices, and reconfiguring the reset physical devices; and,

[0097] Perform preset repair actions according to the preset physical device manual.

[0098] In embodiments of this disclosure, for example, a software reset and / or hardware reset of the PHY device is performed; a software reset and / or hardware reset of the PHY device is performed, followed by a reconfiguration of the reset PHY device; and a preset repair action is performed according to a preset PHY device manual.

[0099] In this embodiment of the disclosure, when reconfiguring, configuration actions can be performed according to a pre-set configuration process. These configuration actions can be obtained in advance based on experience, and corresponding execution programs can be generated.

[0100] In this embodiment of the disclosure, the preset physical device manual may include various repair process execution actions (i.e. repair actions) under various fault conditions, or it may only include one general repair action.

[0101] In this embodiment of the disclosure, if normal communication has been restored through the above-described repair operation, the message receiving module continues to receive messages based on the repaired physical device, and the message parsing module continues to parse the received messages and set the flag to 1, so as not to trigger the out-of-band link switching action of the out-of-band switching monitoring module, and the out-of-band switching monitoring module enters the next round of monitoring state.

[0102] In this embodiment of the disclosure, the message parsing module will judge the status information in each received message to detect whether the message is abnormal.

[0103] In this embodiment of the disclosure, after repairing the physical device, the method may further include:

[0104] If message reception or message errors still occur, switch the out-of-band link to a redundant out-of-band link.

[0105] In this embodiment of the disclosure, if there is still a message receiving abnormality or message abnormality after the physical device is repaired, it indicates that the physical device cannot be repaired, or there is a transmission path abnormality or control terminal abnormality. Therefore, at this time, the currently working out-of-band link can be directly switched to a redundant out-of-band link, for example, from out-of-band link 1 to out-of-band link 2, to ensure normal connection between the local end and the peer end.

[0106] In this embodiment, the detection and repair measures for physical devices described above enable the prior repair of physical devices in abnormal scenarios. This ensures timely repair of physical devices in case of malfunctions, preventing communication interruptions caused by physical device failures and ensuring normal connectivity between the local and remote ends. Furthermore, the repair scheme in this embodiment is executed before out-of-band link switching, allowing for priority repair when physical device failures can be resolved. This minimizes the need for excessive out-of-band link switching operations, reducing the number of out-of-band link switching operations and further ensuring the stability of the out-of-band link.

[0107] In this embodiment of the disclosure, after switching the out-of-band link to a redundant out-of-band link, the method may further include:

[0108] The physical components were repaired again.

[0109] In this embodiment of the disclosure, for example, after switching out-of-band link 1 to redundant out-of-band link 2, the original out-of-band link 1 will still undergo a link-related PHY device detection and repair process. The purpose is to reasonably increase the number of PHY device detection and repairs, so as to ensure that when switching back to out-of-band link 1 from other out-of-band links, the working state of the PHY device is as normal as possible.

[0110] This disclosure embodiment includes at least the following advantages:

[0111] 1. A simple judgment of whether the message reception is abnormal and whether the message is abnormal is used to decide whether to switch the current out-of-band link, thereby ensuring the normal connection of the data link layer and the upper layer of communication between the two ends, and avoiding the instability of out-of-band communication caused by accidental switching.

[0112] 2. The physical device repair method proposed in this embodiment will reasonably intervene in the process to inspect the hardware link part belonging to the local end in the current out-of-band link. This part may involve the detection of the physical link status of multiple physical devices. When a physical device on the local physical link is continuously abnormal, targeted repair can be performed to ensure the normal physical layer connection of the out-of-band link communication between the two ends. This improves the stability of the product's out-of-band link to a certain extent and provides a strong guarantee for the normal functioning of the product.

[0113] This disclosure also provides an electronic device 100, such as... Figure 5 As shown, it includes:

[0114] One or more processors 101;

[0115] The memory 102 stores one or more programs, which, when executed by one or more processors 101, enable the one or more processors to implement the out-of-band link control method described above.

[0116] One or more input / output I / O interfaces 103 are connected between the processor and the memory and configured to enable information exchange between the processor and the memory.

[0117] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the out-of-band link control method.

[0118] This disclosure also provides a computer program product, which includes a computer program that, when executed by a processor, implements the out-of-band link control method.

[0119] Those skilled in the art will understand that all or some of the functional modules / units disclosed above can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0120] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components working together.

[0121] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technique for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only optical disc (CD-ROM), digital versatile disc (DVD) or other optical disc storage; magnetic cartridges, magnetic tapes, disk storage or other magnetic storage; and any other media that can be used to store desired information and can be accessed by a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0122] This disclosure has disclosed exemplary embodiments, and although specific terminology has been used, it is for general illustrative purposes only and should not be construed as limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A method for out-of-band link control, the method comprising: receiving a message sent by a control end via an out-of-band link between a device end and the control end during a communication process between the device end and the control end; switching the out-of-band link to a redundant out-of-band link between the device end and the control end in a case where the message is abnormal; the message being abnormal including that a received message is abnormal.

2. The out-of-band link control method of claim 1, wherein, the received message being abnormal including that: the message is not parsed within a second preset time period; or the parsed message indicates that the control end is in an abnormal state.

3. The out-of-band link control method of claim 2, wherein, the message containing state information of the control end; the method further comprising: determining whether the control end is in an abnormal state according to the state information.

4. The out-of-band link control method of claim 3, wherein, the state information including any one or more of the following: startup state information, link information, master-slave state information, and slot information.

5. The out-of-band link control method of claim 1, wherein, the out-of-band link including a physical device and a transmission path; the physical device being arranged in the device end; the transmission path being a line between the physical device and the control end; in the case where the message is abnormal, before switching the out-of-band link to the redundant out-of-band link, the method further comprising: detecting whether the physical device corresponding to the out-of-band link is faulty.

6. The out-of-band link control method of claim 5, wherein, the physical device including a physical layer (PHY) device and / or a switch chip having at least one port.

7. The out-of-band link control method of claim 6, wherein, in the case where the physical device includes the PHY device, the detection of whether the physical device corresponding to the out-of-band link is faulty including: detecting whether the PHY device has a device abnormal state; in the case where the PHY device has the device abnormal state, determining that the physical device is faulty; in the case where the PHY device does not have the device abnormal state, determining that the physical device is not faulty.

8. The out-of-band link control method of claim 7, wherein, the device abnormal state including a physical link state abnormality and / or a register read value abnormality.

9. The out-of-band link control method of claim 6, wherein, in the case where the physical device includes the switch chip, the detection of whether the physical device corresponding to the out-of-band link is faulty including: detecting whether the switch chip has a port abnormality; in the case where the switch chip has the port abnormality, determining that the physical device is faulty; in the case where the switch chip does not have the port abnormality, determining that the physical device is not faulty.

10. The out-of-band link control method of claim 5, wherein, after determining that the physical device is faulty, before switching the out-of-band link to the redundant out-of-band link, the method further comprising: repairing the physical device.

11. The out-of-band link control method of claim 10, wherein, the repairing of the physical device including any one of the following: software resetting and / or hardware resetting the physical device; software resetting and / or hardware resetting the physical device, reconfiguring the physical device after resetting; and performing a preset repair action according to a preset physical device manual.

12. The out-of-band link control method of claim 10, wherein, after repairing the physical device, the method further comprising: in the case where the message is still abnormal, switching the out-of-band link to the redundant out-of-band link.

13. The out-of-band link control method of claim 12, wherein, after switching the out-of-band link to the redundant out-of-band link, the method further comprising: repairing the physical device again.

14. The out-of-band link control method of claim 1, wherein, The message exception further includes that the message receiving exception; The message receiving exception includes: No message is received within a first preset time length; and / or, No message is received within the first preset time length for a plurality of times continuously. 15.An electronic device, comprising: one or more processors; a memory having one or more programs stored thereon, when the one or more programs are executed by the one or more processors, the one or more processors implement the out-of-band link control method of any one of claims 1-14; one or more input / output (I / O) interfaces connected between the processor and the memory, configured to implement information interaction of the processor and the memory. 16.A computer-readable storage medium having a computer program stored thereon, when the computer program is executed by a processor, the processor implements the out-of-band link control method of any one of claims 1-14. 17.A computer program product comprising a computer program, when the computer program is executed by a processor, the processor implements the out-of-band link control method of any one of claims 1-14.