CN115412424B - Double-master device detection method and device in MLAG environment - Google Patents

Double-master device detection method and device in MLAG environment Download PDF

Info

Publication number
CN115412424B
CN115412424B CN202210984390.5A CN202210984390A CN115412424B CN 115412424 B CN115412424 B CN 115412424B CN 202210984390 A CN202210984390 A CN 202210984390A CN 115412424 B CN115412424 B CN 115412424B
Authority
CN
China
Prior art keywords
transmission node
port
main
loop detection
detection message
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.)
Active
Application number
CN202210984390.5A
Other languages
Chinese (zh)
Other versions
CN115412424A (en
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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202210984390.5A priority Critical patent/CN115412424B/en
Publication of CN115412424A publication Critical patent/CN115412424A/en
Application granted granted Critical
Publication of CN115412424B publication Critical patent/CN115412424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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
    • H04L45/245Link aggregation, e.g. trunking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The embodiment of the application discloses a method and equipment for detecting double main equipment in an MLAG environment. Under the condition that a peerlink link between a main device and a standby device in an MLAG environment is disconnected, the main device performs fault detection on a main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time; the first transmission node detects faults of all output ports, and sends the received health loop detection message to the second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state; the second transmission node sends the received health loop detection message to the main equipment and the standby equipment; and under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to finish double-main equipment detection in the MLAG environment.

Description

Double-master device detection method and device in MLAG environment
Technical Field
The application relates to the technical field of network communication, in particular to a method and a device for detecting double main devices in an MLAG environment.
Background
The MLAG (Multi-Chassis LAG) technology is a cross-device link aggregation technology, which is more stable and reliable than the traditional box type equipment and has lower cost than the rack equipment. Under the MLAG environment, the MLAG main device and the standby device respectively take out an aggregation port to be used as an MLAG member port and do cross-device link aggregation with the Server device, and the two aggregation ports are the same port in view of other devices.
In the prior art, a keep alive heart jumper is connected between an MLAG main device A and a standby device B, an independent TCP heart-beat communication channel is established, an MLAG double-main detection function is achieved, when a keep link is disconnected, the main device A sends a keep alive double-main detection message, and if the device B receives the message, the MLAG double-main detection is successful.
In the prior art, a dedicated dual-main detection channel for keepalive needs to be established, and an additional TCP communication module needs to be designed to realize a dual-main detection mechanism for keepalive, so that the waste of switch port resources is caused.
Disclosure of Invention
The embodiment of the application provides a double-master device detection method and device in an MLAG environment, which are used for solving the following technical problems: in the prior art, a dedicated dual-main detection channel for keepalive needs to be established, and an additional TCP communication module needs to be designed to realize a dual-main detection mechanism for keepalive, so that the waste of switch port resources is caused.
The embodiment of the application adopts the following technical scheme:
the embodiment of the application provides a double-master device detection method in an MLAG environment. The method comprises the steps that under the condition that a peerlink link between a main device and a standby device is disconnected in an MLAG environment, the main device detects faults of the main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time; the first transmission node detects faults of all output ports, and sends the received health loop detection message to the second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state; the second transmission node sends the received health loop detection message to the main equipment and the standby equipment; and under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to finish double-main equipment detection in the MLAG environment.
According to the embodiment of the application, the health loop detection message is sent to the first transmission node through the main port at regular time, a special double-main detection channel for keepalive is not required to be established by occupying extra switch port resources, and the EAPS existing ring network link is used as an MLAG double-main detection channel. And secondly, the EAPS ring network detection health message is used as an MLAG double-main detection message, and a separate keepalive detection communication module is not required to be established. In addition, in the embodiment of the present application, when the standby device receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, dual-master device detection in the MLAG environment is completed. Therefore, the multi-ring network link is used as the MLAG dual-main detection channel and is mutually backed up, and the condition that the whole dual-main detection function fails due to the failure of one detection channel can not occur, so that the stability of dual-main detection is ensured.
In one implementation manner of the present application, the fault detection for each output port by the first transmission node specifically includes: the first transmission node detects faults of output ports corresponding to the first aggregation ports; and the first transmission node performs fault detection on the output ring network main port.
In one implementation manner of the present application, after the first transmission node performs fault detection on each output port, the method further includes: and the first transmission node sends the health loop detection message to the second transmission node through the output ring network main port under the condition that the output port corresponding to the aggregation port is determined to be in failure.
In one implementation manner of the present application, after the master device performs fault detection on the master port, the method further includes: under the condition that the main equipment determines that the main port has a fault, the main equipment sends a health loop detection message to the second transmission node at regular time through the auxiliary port; and the second transmission node sends the received health loop detection message to the standby equipment and the first transmission node so as to finish the detection of the double main equipment in the MLAG environment.
In one implementation manner of the present application, the second transmission node sends the received health loop detection message to the standby device and the first transmission node, so as to complete dual-master device detection in the MLAG environment, and specifically includes: the second transmission node sends the received health loop detection message to the standby equipment and the first transmission node; after receiving the health loop detection message, the first transmission node sends the health loop detection message to standby equipment; and under the condition that the standby equipment receives the health loop detection message, the double-master equipment detection under the MLAG environment is completed.
In one implementation manner of the present application, the second transmission node sends the received health loop detection message to the standby device and the first transmission node, and specifically includes: the second transmission node sends the health loop detection message to the main equipment through an output port of the second aggregation port; and the second transmission node sends the health loop detection message to the first transmission node through the corresponding ring network auxiliary port.
In one implementation manner of the present application, after determining that the primary port has a fault, the primary device sends the health loop detection packet to the second transmission node through the timing of the secondary port, the method further includes: the main equipment detects faults of the main port in real time; and under the condition that the main port is determined to be in a normal running state, the main equipment stops sending the health loop detection message to the second transmission node through the auxiliary port, and sends the health loop detection message to the first transmission node through the main port.
In one implementation manner of the present application, before the master device performs fault detection on the master port in the case that a peerlink link between the master device and the standby device is disconnected in the MLAG environment, the method further includes: the main equipment detects the disconnection condition of the peerlink link; and under the condition that the peerlink link is in normal connection, the standby equipment does not execute any action after receiving the health loop detection message.
In an implementation manner of the present application, the second transmitting node sends the received health loop detection message to the main device and the standby device, and specifically includes: the second transmission node sends the health loop detection message to the main equipment through a first output port corresponding to the second aggregation port; and the second transmission node sends the health loop detection message to the standby equipment through a second output port corresponding to the second aggregation port.
The embodiment of the application provides a dual-master detection device in an MLAG environment, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to: under the condition that a peerlink link between a main device and a standby device in an MLAG environment is disconnected, the main device performs fault detection on a main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time; the first transmission node detects faults of all output ports, and sends the received health loop detection message to the second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state; the second transmission node sends the received health loop detection message to the main equipment and the standby equipment; and under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to finish double-main equipment detection in the MLAG environment.
The above-mentioned at least one technical scheme that this application embodiment adopted can reach following beneficial effect: according to the embodiment of the application, the health loop detection message is sent to the first transmission node through the main port at regular time, a special double-main detection channel for keepalive is not required to be established by occupying extra switch port resources, and the EAPS existing ring network link is used as an MLAG double-main detection channel. And secondly, the EAPS ring network detection health message is used as an MLAG double-main detection message, and a separate keepalive detection communication module is not required to be established. In addition, in the embodiment of the present application, when the standby device receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, dual-master device detection in the MLAG environment is completed. Therefore, the multi-ring network link is used as the MLAG dual-main detection channel and is mutually backed up, and the condition that the whole dual-main detection function fails due to the failure of one detection channel can not occur, so that the stability of dual-main detection is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art. In the drawings:
fig. 1 is a flowchart of a method for detecting a dual-master device in an MLAG environment according to an embodiment of the present application;
fig. 2 is a schematic diagram of a method for detecting dual master devices in a normal state according to an embodiment of the present application;
fig. 3 is a schematic diagram of a method for detecting a dual-master device in a fault state according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a dual-master device detection device in an MLAG environment according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method and device for detecting double main devices in an MLAG environment.
In order to better understand the technical solutions in the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
In the prior art, a keep alive heart jumper is connected between an MLAG main device A and a standby device B, an independent TCP heart-beat communication channel is established, an MLAG double-main detection function is achieved, when a keep link is disconnected, the main device A sends a keep alive double-main detection message, and if the device B receives the message, the MLAG double-main detection is successful.
In the prior art, a dedicated dual-main detection channel for keepalive needs to be established, and an additional TCP communication module needs to be designed to realize a dual-main detection mechanism for keepalive, so that the waste of switch port resources is caused.
In order to solve the above problems, the embodiments of the present application provide a method and an apparatus for detecting dual-master devices in an MLAG environment. And sending the health loop detection message to the first transmission node by the main port at regular time, establishing a keep alive special double main detection channel without occupying extra switch port resources, and using an EAPS existing ring network link as an MLAG double main detection channel. And secondly, the EAPS ring network detection health message is used as an MLAG double-main detection message, and a separate keepalive detection communication module is not required to be established. In addition, in the embodiment of the present application, when the standby device receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, dual-master device detection in the MLAG environment is completed. Therefore, the multi-ring network link is used as the MLAG dual-main detection channel and is mutually backed up, and the condition that the whole dual-main detection function fails due to the failure of one detection channel can not occur, so that the stability of dual-main detection is ensured.
The following describes in detail the technical solution proposed in the embodiments of the present application through the accompanying drawings.
Fig. 1 is a flowchart of a method for detecting a dual-master device in an MLAG environment according to an embodiment of the present application. As shown in fig. 1, the method for detecting the dual-master device in the MLAG environment includes the following steps:
s101, under the condition that a peerlink link between a main device and a standby device is disconnected in an MLAG environment, the main device performs fault detection on a main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time.
In an embodiment of the present application, fig. 2 is a schematic diagram of a method for detecting dual main devices in a normal state according to an embodiment of the present application. As shown in FIG. 2, switches A and B construct an MLAG environment through a Peerlink link, A is an MLAG main device and an EAPS ring network master main node, B is an MLAG standby device, and devices C and D are EAPS ring network transmission nodes.
Further, the MLAG member ports AGG1 of the MLAG device a and the MLAG device B together form a cross-device link aggregation group AGG1 with the aggregation port AGG1 of the transmission node C, the MLAG member ports AGG2 thereof together form a cross-device link aggregation group AGG2 with the aggregation port AGG2 of the transmission node D, and the MLAG member ports AGG3 thereof together form a cross-device link aggregation group AGG3 with the AGG3 of the Server device. The uplink ports AGG1 and AGG2 of the switch A and the switch B are accessed into a common Ethernet in the form of MLAG member ports and run EAPS Ethernet ring network protocol, and AGG3 is set as a three-layer network interface. The switches A, C and D operate EAPS ring network protocol, the MLAG standby equipment B synchronously transmits all received EAPS protocol messages to the MLAG main equipment A through a peerlink port, the main equipment A is responsible for operating EAPS ring network protocol, the standby equipment B does not participate in EAPS ring network protocol operation, and the MLAG main equipment A and the standby equipment B logically belong to the same EAPS ring network master main equipment in the aspects of the transmission nodes C and D.
As shown in fig. 2, under normal conditions, the EAPS ring network master a sends a health loop detection message from the primary port AGG1 at regular time, and the transmission node C, that is, the first transmission node, receives the health message from the ring network secondary port AGG1 and forwards the message from the other ring network master port 3. The transmission node D is a second transmission node, receives the health message from the ring network auxiliary port 3, and forwards the message from the other ring network main port AGG 2. The MLAG standby equipment B synchronizes the received health message to the same MLAG member port of the master equipment A for calculation, if the auxiliary port AGG2 of the master main equipment A receives the health message, the EAPS ring network loop detection is successful, and the master main equipment A sets the auxiliary port AGG2 of the master main equipment A to be in a blocking state.
In one embodiment of the present application, the master device detects a peerlink link disconnection condition. If the peerlink link of the MLAG is disconnected, the MLAG dual-master detection function is started. If the peerlink link of the MLAG is recovered from failure, the MLAG dual-master detection function is closed, and the MLAG standby equipment B does not execute any action even if receiving a health loop detection message.
Further, the master device performs fault detection on the master port, and under the condition that the master port is determined to have no fault, the EAPS ring master device a immediately sends a health loop detection message from the master port AGG 1.
S102, the first transmission node detects faults of all output ports, and sends the received health loop detection message to the second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state.
In one embodiment of the present application, the first transmission node performs fault detection on an output port corresponding to the first aggregation port, and the first transmission node performs fault detection on a main port of the output ring network.
Specifically, as shown in fig. 2, the transmission node C, that is, the member port 1 of the aggregation port AGG1 of the first transmission node, receives the health packet, and forwards the packet from the other member port 2 of the aggregation port AGG1, and simultaneously forwards the packet from the other ring main port 3.
In one embodiment of the present application, the first transmission node sends the health loop detection message to the second transmission node through the output ring network main port when determining that the output port corresponding to the aggregation port is in the failure state.
Specifically, the directions indicated by arrows in fig. 2 can be regarded as MLAG dual-main detection channels, any channel has a link failure, and other link channels still exist to forward the health message to the MLAG standby device B, so that the MLAG dual-main detection function can be continuously effective. For example, in fig. 2, the member port 2 of the aggregation port AGG1 of the transmission node C fails to be disconnected, at this time, the health message received by the member port 1 of AGG1 is forwarded from the other ring main port 3, and if the ring main port 3 of the transmission node D receives the health message, the health message is forwarded from the member ports 1 and 2 of the ring main port AGG2 at the same time, the MLAG standby device B can still receive the health message, and the MLAG dual-main detection function can continue to be effective.
S103, the second transmission node sends the received health loop detection message to the main equipment and the standby equipment.
And the second transmission node sends the health loop detection message to the main equipment through a first output port corresponding to the second aggregation port. And the second transmission node sends the health loop detection message to the standby equipment through a second output port corresponding to a second aggregation port.
Specifically, as shown in fig. 2, the transmission node D, that is, the secondary port 3 of the second transmission node, receives the health message, and forwards the message from the two member ports 1 and 2 of the aggregation port AGG2 at the same time.
And S104, under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to finish double-main equipment detection in the MLAG environment.
In one embodiment of the present application, as shown in fig. 2, when the aggregation port AGG1 or AGG2 of the MLAG backup device B receives the health message, the MLAG dual-master detection is successful, and the backup device B disconnects all its service ports except for the peerlink port. To complete the dual master detection in the MLAG environment.
In one embodiment of the present application, the master device sends a health loop detection message to the second transmission node at regular time through the secondary port if it is determined that the primary port has a fault. And the second transmission node sends the received health loop detection message to the standby equipment and the first transmission node so as to finish the detection of the double main equipment in the MLAG environment.
Specifically, the second transmission node sends the received health loop detection message to the standby equipment and the first transmission node. And the first node sends the health loop detection message to the standby equipment after receiving the health loop detection message. And under the condition that the standby equipment receives the health loop detection message, the double-master equipment detection under the MLAG environment is completed.
Further, the second transmission node sends the health loop detection message to the main equipment through the output port of the second aggregation port; and the second transmission node sends the health loop detection message to the first transmission node through the corresponding ring network auxiliary port.
Further, if the port of the primary port AGG1 of the primary device fails to disconnect, the master primary device immediately sends a health detection message from the secondary port AGG 2. Fig. 3 is a schematic diagram of a dual-master device detection method in a fault state provided in this embodiment of the present application, as shown in fig. 3, a member port 1 of an aggregation port AGG2 of a transmission node D receives the health message, forwards the message from another member port 2 of the aggregation port AGG2, and forwards the message from another ring main port 3 at the same time, a ring main port 3 of the transmission node C receives the health message, forwards the message from 2 member ports 1 and 2 of another ring main port AGG1 (only the member port 2 forwards the message due to the fault disconnection of the member port 1), and an aggregation port AGG1 or AGG2 of an MLAG standby device B receives the health message, so that the dual-master detection of the MLAG is successful.
Further, in fig. 3, the directions indicated by arrows can be regarded as MLAG dual-main detection channels, and if any channel has a link failure, other link channels still exist to forward the health message to the MLAG standby device B, so as to ensure that the MLAG dual-main detection function can be continuously effective.
In one embodiment of the present application, the master device performs fault detection on the master port in real time. And under the condition that the main port is determined to be in a normal running state, the main equipment stops sending the health loop detection message to the second transmission node through the auxiliary port, and sends the health loop detection message to the first transmission node through the main port.
Specifically, if the master main device port AGG1 fails to recover, the master main device secondary port AGG2 immediately stops sending the health detection message, and the master port AGG1 immediately sends the health detection message.
According to the embodiment of the application, the MLAG double-main detection function is realized through the working mechanism of the EAPS protocol, the ring network link is used as a keepalive double-main detection channel, and the health ring network detection message is used as a keepalive double-main detection message. The extra double-main detection channel port resources in the prior art are saved, a separate TCP communication module is not required to be designed to realize the double-main detection function, the MLAG double-main detection function can be realized only by using the health ring network detection message of the EAPS protocol as the keep-alive double-main detection message, and the MLAG double-main detection function is realized in a high-efficiency and rapid way while the EAPS protocol is operated. In addition, the EAPS ring network is provided with a plurality of double-main detection channels, so that the stability of the double-main detection function is effectively ensured, and the condition that the whole double-main detection function fails due to the failure of one double-main detection link is avoided.
Fig. 4 is a schematic structural diagram of a dual-master device detection device in an MLAG environment according to an embodiment of the present application. As shown in fig. 4, the dual-master device detection apparatus in the MLAG environment includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
under the condition that a peerlink link between a main device and a standby device in the MLAG environment is disconnected, the main device performs fault detection on a main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time;
the first transmission node performs fault detection on each output port, and sends the received health loop detection message to a second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state;
the second transmission node sends the received health loop detection message to the main equipment and the standby equipment;
and under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to complete double-main equipment detection in an MLAG environment.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the embodiments of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. The method for detecting the double-master device in the MLAG environment is characterized by comprising the following steps:
under the condition that a peerlink link between a main device and a standby device is disconnected in an MLAG environment, the main device performs fault detection on a main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time;
the first transmission node performs fault detection on each output port, and sends the received health loop detection message to a second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state;
the second transmission node sends the received health loop detection message to the main equipment and the standby equipment;
and under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to complete double-main equipment detection in an MLAG environment.
2. The method for detecting dual master devices in an MLAG environment according to claim 1, wherein the first transmission node performs fault detection on each output port, specifically comprising:
the first transmission node detects faults of output ports corresponding to the first aggregation ports; and
and the first transmission node detects faults of the main port of the output ring network.
3. The method for dual master detection in an MLAG environment according to claim 2, wherein after the first transmission node performs fault detection on each output port, the method further comprises:
and the first transmission node sends the health loop detection message to the second transmission node through the output ring network main port under the condition that the output port corresponding to the aggregation port is determined to be in failure.
4. The method for detecting a dual master device in an MLAG environment according to claim 1, wherein after the master device performs fault detection on the master port, the method further comprises:
the main equipment sends the health loop detection message to the second transmission node at regular time through the auxiliary port under the condition that the main equipment determines that the main port has faults;
and the second transmission node sends the received health loop detection message to the standby equipment and the first transmission node so as to finish double-main equipment detection in an MLAG environment.
5. The method for dual-master device detection in an MLAG environment according to claim 4, wherein the second transmission node sends the received health loop detection message to the standby device and the first transmission node to complete dual-master device detection in the MLAG environment, specifically comprising:
the second transmission node sends the received health loop detection message to the standby equipment and the first transmission node;
after receiving the health loop detection message, the first transmission node sends the health loop detection message to the standby equipment;
and under the condition that the standby equipment receives the health loop detection message, the double-master equipment detection in the MLAG environment is completed.
6. The method for dual-master device detection in an MLAG environment according to claim 5, wherein the second transmission node sends the received health loop detection message to the standby device and the first transmission node, specifically comprising:
the second transmission node sends the health loop detection message to the standby equipment through an output port of a second aggregation port; and
and the second transmission node sends the health loop detection message to the first transmission node through the corresponding ring network auxiliary port.
7. The method for dual master detection in an MLAG environment according to claim 4, wherein, in the case where it is determined that the master port has a failure, after the master device sends the health loop detection packet to the second transmission node through a slave port timing, the method further comprises:
the main equipment detects faults of the main port in real time;
and under the condition that the main port is determined to be in a normal running state, the main device stops the auxiliary port from sending the health loop detection message to the second transmission node, and sends the health loop detection message to the first transmission node through the main port.
8. The method for dual master detection in an MLAG environment according to claim 1, wherein, in the case where a peerlink link between a master and a standby device in the MLAG environment is disconnected, before the master device performs failure detection on the master port, the method further comprises:
the master device detects the disconnection condition of the peerlink link;
and under the condition that the peerlink link is in normal connection, the standby equipment does not execute any action after receiving the health loop detection message.
9. The method for dual-master device detection in an MLAG environment according to claim 1, wherein the second transmitting node sends the received health loop detection message to the master device and the backup device, specifically comprising:
the second transmission node sends the health loop detection message to the main equipment through a first output port corresponding to a second aggregation port; and
and the second transmission node sends the health loop detection message to the standby equipment through a second output port corresponding to a second aggregation port.
10. A dual master device detection apparatus in an MLAG environment, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
under the condition that a peerlink link between a main device and a standby device in the MLAG environment is disconnected, the main device performs fault detection on a main port, and under the condition that the main port is determined to be in a normal running state, a health loop detection message is sent to a first transmission node through the main port at regular time;
the first transmission node performs fault detection on each output port, and sends the received health loop detection message to a second transmission node and the standby equipment under the condition that the output ports are determined to be in a normal running state;
the second transmission node sends the received health loop detection message to the main equipment and the standby equipment;
and under the condition that the standby equipment receives the health loop detection message sent by the first transmission node and/or receives the health loop detection message sent by the second transmission node, the standby equipment disconnects other service ports except the peerlink port so as to complete double-main equipment detection in an MLAG environment.
CN202210984390.5A 2022-08-17 2022-08-17 Double-master device detection method and device in MLAG environment Active CN115412424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210984390.5A CN115412424B (en) 2022-08-17 2022-08-17 Double-master device detection method and device in MLAG environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210984390.5A CN115412424B (en) 2022-08-17 2022-08-17 Double-master device detection method and device in MLAG environment

Publications (2)

Publication Number Publication Date
CN115412424A CN115412424A (en) 2022-11-29
CN115412424B true CN115412424B (en) 2024-03-26

Family

ID=84158939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210984390.5A Active CN115412424B (en) 2022-08-17 2022-08-17 Double-master device detection method and device in MLAG environment

Country Status (1)

Country Link
CN (1) CN115412424B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212366A (en) * 2007-12-21 2008-07-02 杭州华三通信技术有限公司 Failure detection method, system, and main node in Ethernet loop network
WO2008089614A1 (en) * 2007-01-17 2008-07-31 Huawei Technologies Co., Ltd. A method, system and device for ring link protection
WO2010031295A1 (en) * 2008-09-22 2010-03-25 中兴通讯股份有限公司 Control method for ethernet failure recovery
WO2010045832A1 (en) * 2008-10-21 2010-04-29 中兴通讯股份有限公司 Method and apparatus for protecting link aggregation group of ethernet ring
CN103684835A (en) * 2012-09-24 2014-03-26 华为技术有限公司 Link fault reporting method and processing method, and transmission node and primary node
CN105281951A (en) * 2015-09-29 2016-01-27 北京星网锐捷网络技术有限公司 Double-main-device conflict detection method for VSU system, and network equipment
CN109462515A (en) * 2018-09-11 2019-03-12 锐捷网络股份有限公司 Loop circuit processing method, the network equipment, MLAG networking and storage medium
CN112688867A (en) * 2020-12-22 2021-04-20 浪潮思科网络科技有限公司 Method, device, equipment and medium for operating spanning tree protocol in MLAG environment
CN113395261A (en) * 2021-05-19 2021-09-14 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8300523B2 (en) * 2008-07-28 2012-10-30 Cisco Technology, Inc. Multi-chasis ethernet link aggregation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008089614A1 (en) * 2007-01-17 2008-07-31 Huawei Technologies Co., Ltd. A method, system and device for ring link protection
CN101212366A (en) * 2007-12-21 2008-07-02 杭州华三通信技术有限公司 Failure detection method, system, and main node in Ethernet loop network
WO2010031295A1 (en) * 2008-09-22 2010-03-25 中兴通讯股份有限公司 Control method for ethernet failure recovery
WO2010045832A1 (en) * 2008-10-21 2010-04-29 中兴通讯股份有限公司 Method and apparatus for protecting link aggregation group of ethernet ring
CN103684835A (en) * 2012-09-24 2014-03-26 华为技术有限公司 Link fault reporting method and processing method, and transmission node and primary node
CN105281951A (en) * 2015-09-29 2016-01-27 北京星网锐捷网络技术有限公司 Double-main-device conflict detection method for VSU system, and network equipment
CN109462515A (en) * 2018-09-11 2019-03-12 锐捷网络股份有限公司 Loop circuit processing method, the network equipment, MLAG networking and storage medium
CN112688867A (en) * 2020-12-22 2021-04-20 浪潮思科网络科技有限公司 Method, device, equipment and medium for operating spanning tree protocol in MLAG environment
CN113395261A (en) * 2021-05-19 2021-09-14 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
K. Murakami ; M. Maruyama ; NTT Laboratories ; .A MAPOS version 1 Extension - Node Switch Protocol.IETF rfc2173.1997,全文. *
刘睿 ; 吴军平.PTN中LAG技术研究与实现.电子设计工程.2020,全文. *

Also Published As

Publication number Publication date
CN115412424A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN100417094C (en) Network failure recovery method with redundancy port
JP5073812B2 (en) Distributed Ethernet system and method for detecting faults based on the system
CN100534024C (en) Industry ethernet based fault processing method, system and a switching arrangement
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
CN108900415B (en) Master-slave equipment switching method and system under MLAG interface failure
CN102098201B (en) Method for realizing L2TP user access backup and network system
CN101594383B (en) Method for monitoring service and status of controllers of double-controller storage system
CN111385107B (en) Main/standby switching processing method and device for server
CN106888142B (en) E1 double-ring network with ring self-healing function
WO2011110135A2 (en) Master-standby switching method, system control unit and communication system
CN104639867A (en) Method and system for resuming video conferences
CN109981353B (en) Method and system for protecting adjacent station redundancy in frame type network communication equipment
CN111343019A (en) Reconnection method, reconnection device and storage medium
WO2013078997A1 (en) Method for processing fault in mrp ring network, and mrp ring network
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
CN102407868B (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
KR20110046897A (en) Method to elect master nodes from nodes of a subnet
CN115412424B (en) Double-master device detection method and device in MLAG environment
EP3573298B1 (en) Multi-node device and method for micro server built-in switch uplink port backup
CN108134728A (en) A kind of ring redundancy series network structure and its ring redundancy and the method for hot plug
CN113938319B (en) Data transmission method and unidirectional network gate
CN111181766B (en) Redundant FC network system and method for realizing dynamic configuration of switch
CN113794765A (en) Gate load balancing method and device based on file transmission
CN102546233A (en) Method for realizing serial heartbeat in high-availability cluster
JP2011166514A (en) Packet relay device and fault diagnosis method

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
GR01 Patent grant
GR01 Patent grant