CN112383471A - Method, device and equipment for managing knife box link and machine readable storage medium - Google Patents

Method, device and equipment for managing knife box link and machine readable storage medium Download PDF

Info

Publication number
CN112383471A
CN112383471A CN202011197171.XA CN202011197171A CN112383471A CN 112383471 A CN112383471 A CN 112383471A CN 202011197171 A CN202011197171 A CN 202011197171A CN 112383471 A CN112383471 A CN 112383471A
Authority
CN
China
Prior art keywords
link
opposite terminal
terminal equipment
detection
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011197171.XA
Other languages
Chinese (zh)
Inventor
程振
杨承天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN202011197171.XA priority Critical patent/CN112383471A/en
Publication of CN112383471A publication Critical patent/CN112383471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/552Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Abstract

The present disclosure provides a method, an apparatus, a device and a machine readable storage medium for managing a knife box link, wherein the method comprises: attempting to receive a detection message sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal equipment is not received according to the preset rule, the first link is judged to be in a fault state; sending a fault information message to opposite terminal equipment through a second link, and switching the flow to the second link; and the opposite terminal equipment is used for switching the flow to the second link according to the received fault information message. According to the technical scheme, the detection message is sent between the network card of the knife box and the opposite terminal equipment, when a certain link fails to receive the detection message sent by the opposite terminal equipment, the link is judged to have a fault, the flow is switched to the normally-communicated link, and the opposite terminal equipment switches the flow to the normally-communicated link, so that link oscillation is processed in time, and the message cannot be forwarded normally.

Description

Method, device and equipment for managing knife box link and machine readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a machine-readable storage medium for managing a magazine link.
Background
Knife box: namely, the blade chassis integrates modules such as computation, network, storage, management and the like into a whole. Mezz: mezzanine, the middle layer connector, generally employs PCIe bus, network card for expanding PCIe, SAS card, and the like. A Mezz card herein refers to a network card on a server. ICM: the switch board in the knife box is the switch. Bond: the method is characterized in that a plurality of physical network card ports are bound together for use, the redundancy can be improved while the bandwidth is increased, the redundancy is generally improved when more physical network card ports are used, the physical network card ports are respectively connected with different switches, the reliability is improved, and sometimes the bandwidth of a server is insufficient and can also be used for increasing the bandwidth.
An independent knife box server is composed of hardware such as a management board, a switching network board, a computing node, a storage node, a power supply and a fan, and the IT infrastructure functions such as data computing, storage and switching can be realized on a knife box device.
The internal network card of the knife box is connected with external opposite-end equipment such as a switch through two switching network boards which are used as IRF (intelligent resilient stacking), but only after the physical state of a port is changed into down, the flow is transferred to the link in an active state, and when the message cannot be normally forwarded due to link oscillation or other faults, correct judgment cannot be made, and service migration cannot be performed.
Disclosure of Invention
In view of the above, the present disclosure provides a method and an apparatus for managing a link of a blade box, an electronic device, and a machine-readable storage medium, so as to solve the problem that the link oscillation cannot be handled in time.
The specific technical scheme is as follows:
the present disclosure provides a method for managing a link of a tool box, which is applied to a network device, and the method includes: attempting to receive a detection message sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal equipment is not received according to the preset rule, the first link is judged to be in a fault state; sending a fault information message to opposite terminal equipment through a second link, and switching the flow borne by the first link to the second link; and the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
As a technical solution, the attempting to receive a detection packet sent by an opposite end device through a first link includes: attempting to receive a detection message periodically sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal device is not received according to the preset rule, it is determined that the first link is in a failure state, including: and if the detection messages periodically sent by the opposite terminal equipment cannot be received in the continuous preset number of periods, judging that the first link is in a fault state.
As one technical solution, after determining that the first link is in the failure state, the method includes: attempting to receive a detection message sent by opposite terminal equipment through a first link; if a detection message sent by the opposite terminal equipment is received according to a preset rule, judging that the first link recovers a normal state; sending a recovery information message to the opposite terminal equipment through the second link, and switching the flow originally borne on the first link on the second link back to the first link; and the opposite terminal equipment is also used for switching the flow originally borne on the first link on the second link back to the first link according to the received recovery information message.
As a technical solution, storing a fault record of a first link; and if the accumulated failure times of the first link within the continuous first preset time reach the threshold, stopping sending the recovery information message to the opposite terminal equipment through the second link within a second preset time after the threshold is reached.
The present disclosure also provides a device for managing a link of a tool box, which is applied to a network device, and the device includes: a receiving module, configured to attempt to receive, through a first link, a detection packet sent by an opposite-end device; the judging module is used for judging that the first link is in a fault state if a detection message sent by the opposite terminal equipment is not received according to a preset rule; the processing module is used for sending a fault information message to the opposite terminal equipment through the second link and switching the flow borne by the first link to the second link; and the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
As a technical solution, the attempting to receive a detection packet sent by an opposite end device through a first link includes: attempting to receive a detection message periodically sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal device is not received according to the preset rule, it is determined that the first link is in a failure state, including: and if the detection messages periodically sent by the opposite terminal equipment cannot be received in the continuous preset number of periods, judging that the first link is in a fault state.
As a technical solution, after the determining module determines that the first link is in the failure state, the method includes: the receiving module is also used for trying to receive a detection message sent by the opposite terminal equipment through the first link; the judging module is also used for judging that the first link is recovered to a normal state if receiving a detection message sent by the opposite terminal equipment according to a preset rule; the processing module is further configured to send a recovery information packet to the peer device through the second link, and switch the traffic originally carried on the second link in the first link back to the first link; and the opposite terminal equipment is also used for switching the flow originally borne on the first link on the second link back to the first link according to the received recovery information message.
As a technical solution, the processing module is further configured to store a fault record of the first link; if the accumulated number of failures of the first link reaches the threshold value within the continuous first preset time, the processing module stops sending the recovery information message to the opposite terminal device through the second link within the second preset time after the threshold value is reached.
The present disclosure also provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor executes the machine-executable instructions to implement the aforementioned method for managing a blade box link.
The present disclosure also provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned method of blade box link management.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
the network card of the knife box and the opposite terminal equipment switch respectively send detection messages through each connected link, when a certain link fails to receive the detection messages sent by the opposite terminal equipment according to a preset rule, the local equipment judges that the link fails, flow borne by the link is switched to a normally communicated link, and fault information is sent to the opposite terminal equipment through the normally communicated link so that the opposite terminal equipment can switch the flow borne by the failed link to the normally communicated link, and therefore link oscillation is timely processed, and the phenomenon that the messages cannot be normally forwarded is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
FIG. 1 is a flow diagram of a method for blade box link management in one embodiment of the present disclosure;
fig. 2 is a block diagram of a magazine link management apparatus according to an embodiment of the present disclosure;
FIG. 3 is a hardware block diagram of an electronic device in one embodiment of the disclosure;
fig. 4 is a service networking of a blade box link management according to the present disclosure.
Detailed Description
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
As shown in fig. 4, a server service networking is mainly configured as follows: the server is connected with the ICM through a Mezz network card, the ICM is connected with a Switch, and the Switch is communicated with an external service network; two ports P1 and P2 on the Mezz network card are respectively connected with the ICM-1 and the ICM-2, and the server performs bond0 mode binding (polling strategy) on the two ports P1 and P2; the ICM-1 and the ICM-2 are made into IRF (stack) to be virtualized into a device, and one port of each of the ICM-1 and the ICM-2 is connected to the Switch device.
The service networking realizes that the Mezz network card is connected with the opposite terminal equipment Switch through two stacked links (respectively connected through ICM-1 and ICM-2).
The networking has the advantages that the load balance of the service can be realized, but the disadvantages are as follows: that is, only after the physical state of the port is changed to down, the flow is transferred to the link in the active state, and when the message cannot be forwarded normally due to link oscillation or other faults, correct judgment cannot be made, and service migration cannot be performed.
In view of the above, the present disclosure provides a method and an apparatus for managing a link of a blade box, an electronic device, and a machine-readable storage medium, so as to solve the problem that the link oscillation cannot be handled in time.
The specific technical scheme is as follows.
In one embodiment, the present disclosure provides a method for managing a blade box link, which is applied to a network device, and the method includes: attempting to receive a detection message sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal equipment is not received according to the preset rule, the first link is judged to be in a fault state; sending a fault information message to opposite terminal equipment through a second link, and switching the flow borne by the first link to the second link; and the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
Specifically, as shown in fig. 1, the method comprises the following steps:
step S11, receiving the detection message sent by the opposite terminal equipment through the first link;
step S12, if the detection message sent by the opposite terminal equipment is not received according to the preset rule, the first link is judged to be in the fault state;
step S13, sending a failure information message to the peer device through the second link, and switching the traffic carried in the first link to the second link.
And the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
The network card of the knife box and the opposite terminal equipment switch respectively send detection messages through each connected link, when a certain link fails to receive the detection messages sent by the opposite terminal equipment according to a preset rule, the local equipment judges that the link fails, flow borne by the link is switched to a normally communicated link, and fault information is sent to the opposite terminal equipment through the normally communicated link so that the opposite terminal equipment can switch the flow borne by the failed link to the normally communicated link, and therefore link oscillation is timely processed, and the phenomenon that the messages cannot be normally forwarded is avoided.
In this embodiment, the network device may refer to a mesh board Mess of the blade box, or may be a Switch connected to the mesh board of the blade box through at least two links, for example, as shown in fig. 4, the blade box server is connected to two ICM Switch mesh boards through a Mezz network card, the Switch is connected to the ICM, and the Switch communicates with an external service network. Correspondingly, the opposite-end device refers to a Switch, and may also be a network board Mess of a blade box connected with the Switch through at least two links.
In an embodiment, the attempting to receive, through the first link, a detection packet sent by the peer device includes: attempting to receive a detection message periodically sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal device is not received according to the preset rule, it is determined that the first link is in a failure state, including: and if the detection messages periodically sent by the opposite terminal equipment cannot be received in the continuous preset number of periods, judging that the first link is in a fault state.
The link detection switching message is a bidirectional message, that is, the network card and the switch of the knife box server can both send and receive simultaneously, and in addition, after the link failure is detected on any end device port, the link detection switching message can be uploaded to the CPU of the device where the port is located for processing.
Based on the realization mode, the link fault detection and service switching mechanism realizes the following processes:
since the link detection switching message is a bidirectional detection message between the network board of the blade box server and the Switch, DEV-1 and DEV-2 represent the network card of the blade box server and the Switch for convenience of describing the embodiment provided by the present disclosure, wherein DEV-1 or DEV-2 device may represent either the network card of the blade box server pass or the Switch. Namely: if the DEV-1 is a tool box server Mess network card, the DEV-2 is a Switch at the moment; if the DEV-1 is the Switch, the DEV-2 is a tool box server Mess network card at the moment;
the device DEV-1 is connected to the device DEV-2 via a first link and a second link, wherein the ports at both ends of the first link are respectively the port P1 located at the device DEV-1 and the port T1 located at the device DEV-2, and the ports at both ends of the second link are respectively the port P2 located at the device DEV-1 and the port T2 located at the device DEV-2.
After the port P1 of the device DEV-1 is in the physical state UP, the DEV-1 side starts to send a link detection switch message from the port P1 to the port T1 of the peer device DEV-2 for link state detection, where the sending period of the message may be 10ms (10 ms) or other values that meet the application scenario, and as long as the port P1 is in a normal state (active), the value of the Status Code carried in the link detection switch message sent from the port is always kept to 0 (indicating that the link state is normal).
After receiving the link detection switching message from the T1 port, the DEV-2 side updates and records the related information (such as port name, mac address, etc.) of the peer P1 port, immediately triggers the detection timer of the T1 port, and starts to record the message detection time.
At the T1 port, starting from the trigger of the detection timer, within 3 (or other cycle numbers conforming to the application scenario) link detection switching message detection message periods (i.e. 30ms), if the T1 port can receive the link detection switching message sent by the P1 port, the T1 port state is considered normal, and the first link state is normal.
If the T1 port cannot receive the link detection switching message sent from the P1 port within 3 link detection switching message detection message periods (and 30ms), the T1 port state is considered to be abnormal, the first link fails, and at this time, the link detection switching message with the Status Code set to 1 (indicating the link state failure) is sent to the CPU of DEV-2 for processing;
at this time, DEV-2 will set the state of the T1 port to recovery (representing that the T1 port fails and the link where the port is located is unavailable), and switch the traffic of the T1 port to the T2 port.
DEV-2 sends a link detection switching message carrying T1 port information (Status Code is 1, which indicates T1 port failure and link where the port is located is unavailable) to DEV-1 through a T2 port, and after receiving the message, DEV-1 sets the state of a P1 port as recovery (which indicates P1 port failure and link where the port is located is unavailable), and switches the flow of the P1 port to a P2 port.
In one embodiment, after determining that the first link is in the failure state, the method includes: attempting to receive a detection message sent by opposite terminal equipment through a first link; if a detection message sent by the opposite terminal equipment is received according to a preset rule, judging that the first link recovers a normal state; sending a recovery information message to the opposite terminal equipment through the second link, and switching the flow originally borne on the first link on the second link back to the first link; and the opposite terminal equipment is also used for switching the flow originally borne on the first link on the second link back to the first link according to the received recovery information message.
If the first link is recovered to be normal after a period of time, the T1 port on the DEV-2 device can continuously receive a corresponding number of link detection switching packets (3) in 3 (or other values conforming to the application scenario) detection periods (10 ms per cycle, 30ms in total, or 10ms per cycle, or other values conforming to the application scenario), the state of the T1 port will be set to active (the port is available, and the link state of the port is normal), the T1 port is synchronized to the opposite DEV-1 device through the T2 port, and at this time, the devices at both ends will switch the traffic back to the P1-T1 link normally, and the forwarding function of the first link is recovered.
In one embodiment, a failure record of the first link is stored; and if the accumulated failure times of the first link within the continuous first preset time reach the threshold, stopping sending the recovery information message to the opposite terminal equipment through the second link within a second preset time after the threshold is reached.
In order to prevent link oscillation, if a port on a certain device reaches 2 times (or may be a value conforming to other application scenarios) within 10 minutes (or may be a value conforming to other application scenarios) and is marked as a recovery state, the port is considered to be in link oscillation, and the port state on the link is always set as recovery within 60 minutes (or may be a value conforming to other application scenarios) from this time, and traffic is always forwarded on a normal state link.
In an embodiment, the present disclosure also provides a device for managing a link of a blade box, as shown in fig. 2, applied to a network device, the device including: a receiving module 21, configured to attempt to receive a detection packet sent by an opposite end device through a first link; the determining module 22 is configured to determine that the first link is in a failure state if the detection packet sent by the peer device is not received according to the preset rule; the processing module 23 is configured to send a failure information packet to the peer device through the second link, and switch the traffic carried in the first link to the second link; and the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
In an embodiment, the attempting to receive, through the first link, a detection packet sent by the peer device includes: attempting to receive a detection message periodically sent by opposite terminal equipment through a first link; if the detection message sent by the opposite terminal device is not received according to the preset rule, it is determined that the first link is in a failure state, including: and if the detection messages periodically sent by the opposite terminal equipment cannot be received in the continuous preset number of periods, judging that the first link is in a fault state.
In one embodiment, after the determining module determines that the first link is in the failure state, the method includes: the receiving module is also used for trying to receive a detection message sent by the opposite terminal equipment through the first link; the judging module is also used for judging that the first link is recovered to a normal state if receiving a detection message sent by the opposite terminal equipment according to a preset rule; the processing module is further configured to send a recovery information packet to the peer device through the second link, and switch the traffic originally carried on the second link in the first link back to the first link; and the opposite terminal equipment is also used for switching the flow originally borne on the first link on the second link back to the first link according to the received recovery information message.
In one embodiment, the processing module is further configured to store a failure record of the first link; if the accumulated number of failures of the first link reaches the threshold value within the continuous first preset time, the processing module stops sending the recovery information message to the opposite terminal device through the second link within the second preset time after the threshold value is reached.
In an embodiment, the present disclosure provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor executes the machine-executable instructions to implement the foregoing method for managing a blade box link, and from a hardware level, a schematic diagram of a hardware architecture may be shown in fig. 3.
The device embodiments are the same or similar to the corresponding method embodiments and are not described in detail herein.
In one embodiment, the present disclosure provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned method of blade box link management.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an embodiment of the present disclosure, and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A method for managing a knife box link is applied to network equipment, and comprises the following steps:
attempting to receive a detection message sent by opposite terminal equipment through a first link;
if the detection message sent by the opposite terminal equipment is not received according to the preset rule, the first link is judged to be in a fault state;
sending a fault information message to opposite terminal equipment through a second link, and switching the flow borne by the first link to the second link;
and the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
2. The method of claim 1,
the attempting to receive the detection packet sent by the opposite terminal device through the first link includes:
attempting to receive a detection message periodically sent by opposite terminal equipment through a first link;
if the detection message sent by the opposite terminal device is not received according to the preset rule, it is determined that the first link is in a failure state, including:
and if the detection messages periodically sent by the opposite terminal equipment cannot be received in the continuous preset number of periods, judging that the first link is in a fault state.
3. The method of claim 1, after determining that the first link is in the failure state, comprising:
attempting to receive a detection message sent by opposite terminal equipment through a first link;
if a detection message sent by the opposite terminal equipment is received according to a preset rule, judging that the first link recovers a normal state;
sending a recovery information message to the opposite terminal equipment through the second link, and switching the flow originally borne on the first link on the second link back to the first link;
and the opposite terminal equipment is also used for switching the flow originally borne on the first link on the second link back to the first link according to the received recovery information message.
4. The method of claim 3,
storing a fault record of the first link;
and if the accumulated failure times of the first link within the continuous first preset time reach the threshold, stopping sending the recovery information message to the opposite terminal equipment through the second link within a second preset time after the threshold is reached.
5. A kind of knife box link management device, characterized by that, apply to the network equipment, the said device includes:
a receiving module, configured to attempt to receive, through a first link, a detection packet sent by an opposite-end device;
the judging module is used for judging that the first link is in a fault state if a detection message sent by the opposite terminal equipment is not received according to a preset rule;
the processing module is used for sending a fault information message to the opposite terminal equipment through the second link and switching the flow borne by the first link to the second link;
and the opposite terminal equipment is used for switching the flow borne by the first link to the second link according to the received fault information message.
6. The apparatus of claim 5,
the attempting to receive the detection packet sent by the opposite terminal device through the first link includes:
attempting to receive a detection message periodically sent by opposite terminal equipment through a first link;
if the detection message sent by the opposite terminal device is not received according to the preset rule, it is determined that the first link is in a failure state, including:
and if the detection messages periodically sent by the opposite terminal equipment cannot be received in the continuous preset number of periods, judging that the first link is in a fault state.
7. The apparatus of claim 5, wherein after the determining module determines that the first link is in the failure state, the apparatus comprises:
the receiving module is also used for trying to receive a detection message sent by the opposite terminal equipment through the first link;
the judging module is also used for judging that the first link is recovered to a normal state if receiving a detection message sent by the opposite terminal equipment according to a preset rule;
the processing module is further configured to send a recovery information packet to the peer device through the second link, and switch the traffic originally carried on the second link in the first link back to the first link;
and the opposite terminal equipment is also used for switching the flow originally borne on the first link on the second link back to the first link according to the received recovery information message.
8. The apparatus of claim 7,
the processing module is also used for storing a fault record of the first link;
if the accumulated number of failures of the first link reaches the threshold value within the continuous first preset time, the processing module stops sending the recovery information message to the opposite terminal device through the second link within the second preset time after the threshold value is reached.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1-4.
CN202011197171.XA 2020-10-30 2020-10-30 Method, device and equipment for managing knife box link and machine readable storage medium Pending CN112383471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011197171.XA CN112383471A (en) 2020-10-30 2020-10-30 Method, device and equipment for managing knife box link and machine readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011197171.XA CN112383471A (en) 2020-10-30 2020-10-30 Method, device and equipment for managing knife box link and machine readable storage medium

Publications (1)

Publication Number Publication Date
CN112383471A true CN112383471A (en) 2021-02-19

Family

ID=74576466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011197171.XA Pending CN112383471A (en) 2020-10-30 2020-10-30 Method, device and equipment for managing knife box link and machine readable storage medium

Country Status (1)

Country Link
CN (1) CN112383471A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248618A (en) * 2023-05-08 2023-06-09 河北豪沃尔智能科技有限责任公司 Information transmission device, information transmission line fault detection method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255757A (en) * 2011-08-08 2011-11-23 杭州华三通信技术有限公司 Link switching method and device
CN103634131A (en) * 2012-08-24 2014-03-12 杭州华三通信技术有限公司 A method and device for detecting interconnection links of virtualization network devices
WO2018108149A1 (en) * 2016-12-15 2018-06-21 中兴通讯股份有限公司 Data-link switching method and apparatus and data-link switching device
CN109218107A (en) * 2018-10-15 2019-01-15 迈普通信技术股份有限公司 Link switch-over method, device, the network equipment and network system
CN111698028A (en) * 2020-04-30 2020-09-22 新华三信息技术有限公司 FC link detection method, device, equipment and machine readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255757A (en) * 2011-08-08 2011-11-23 杭州华三通信技术有限公司 Link switching method and device
CN103634131A (en) * 2012-08-24 2014-03-12 杭州华三通信技术有限公司 A method and device for detecting interconnection links of virtualization network devices
WO2018108149A1 (en) * 2016-12-15 2018-06-21 中兴通讯股份有限公司 Data-link switching method and apparatus and data-link switching device
CN109218107A (en) * 2018-10-15 2019-01-15 迈普通信技术股份有限公司 Link switch-over method, device, the network equipment and network system
CN111698028A (en) * 2020-04-30 2020-09-22 新华三信息技术有限公司 FC link detection method, device, equipment and machine readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248618A (en) * 2023-05-08 2023-06-09 河北豪沃尔智能科技有限责任公司 Information transmission device, information transmission line fault detection method and equipment
CN116248618B (en) * 2023-05-08 2023-09-08 河北豪沃尔智能科技有限责任公司 Information transmission device, information transmission line fault detection method and equipment

Similar Documents

Publication Publication Date Title
US7933198B1 (en) Virtual router failover dampening
US8099504B2 (en) Preserving sessions in a wireless network
CN111698028B (en) FC link detection method, device, equipment and machine readable storage medium
CN108804260B (en) SRIO system switching method and device
CN106533736A (en) Network device reboot method and apparatus
CN109391691A (en) The restoration methods and relevant apparatus that NAS is serviced under a kind of single node failure
CN108259358B (en) Route publishing method and device
CN110912815A (en) Network element ring formation preventing method, device, equipment and readable storage medium
CN113507431B (en) Message management method, device, equipment and machine-readable storage medium
CN112383471A (en) Method, device and equipment for managing knife box link and machine readable storage medium
CN112152872A (en) Network sub-health detection method and device
CN112231123A (en) Message processing method, message processing device, storage medium and electronic device
CN108933687A (en) A kind of power consumption control method and device
CN107547412B (en) STP calculation method and device
CN104836679B (en) Communication abnormality processing method and network element device
CN114189471B (en) Cross-equipment link aggregation group active-standby configuration method, system, terminal and storage medium
CN111224803B (en) Multi-master detection method in stacking system and stacking system
CN109510767B (en) Routing table item management method and routing table item management device
CN113794541A (en) Main/standby switching management method, device, equipment and machine readable storage medium
CN113472642B (en) Protection switching method and device
CN113794631B (en) Port redundancy processing method, device, equipment and machine-readable storage medium
CN112615777B (en) Link switching method, device and equipment and machine readable storage medium
CN117278345B (en) Energy saving method and device applied to network equipment
CN113472643B (en) Fault processing method and device
CN113765787B (en) Fault processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210219

RJ01 Rejection of invention patent application after publication