MAC (Media Access Control) synchronization enhancement method and equipment in MLAG (Multi-Link Aggregation Group) environment and medium
By using the method of sending MAC synchronization messages to the slave switch and receiving confirmation messages in the MLAG environment, the problem of unstable synchronization of MAC table entries after Peerlink link recovery is solved, network stability and reliability are improved, traffic forwarding efficiency is optimized, and network security is enhanced.
Patent Information
- Application Number
- CN202411899034.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In the MLAG environment, when the Peerlink link is restored, the MAC table entry synchronization process may cause traffic flooding or packet loss, affecting the stability and efficiency of network communication.
In the MLAG environment, when Peerlink link recovery is detected, a MAC synchronization message is sent to the slave switch through the master switch, and a MAC synchronization completion confirmation message is sent after all messages are sent. The MAC table entry in the MAC synchronization message is temporarily stored from the switch, and switch to the MLAG member port after receiving the confirmation message to resume traffic forwarding. If the confirmation message is not received during the timeout, reset the MLAG status.
Through the ordered and controlled MAC synchronization process, traffic problems caused by inconsistent MAC table entries are avoided, network stability and reliability are improved, traffic forwarding efficiency is optimized, and network security is enhanced.
Smart Images

Figure CN119766717A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a MAC synchronization enhancement method, device and medium in an MLAG environment. Background Art
[0002] MLAG (Multi-Chassis LAG) technology is an advanced network communication technology that allows two access switches to achieve cross-device link aggregation through Peerlink links, thereby synchronizing MAC and other table entries and keeping the table entries of the two switches consistent. This technology plays an important role in improving the reliability and efficiency of network communications.
[0003] However, in the existing MLAG technology implementation, when the Peerlink link fails, although the status of the peer switch can be sensed through the keepalive link, after the Peerlink link is restored, the MLAG member port of the slave switch in the role of Slave will immediately restore the UP state and start synchronizing MAC and other table items through the Peerlink link. There are some problems in this process, especially in the MAC synchronization process, due to the lack of MAC table items, it may cause traffic flooding or packet loss, thus affecting the stability and efficiency of network communication.
[0004] In addition, the oscillation of the Peerlink link may also cause the socket channel established between the switches to be abnormal, causing the MAC table entries on the Slave switch to be missing for a long time. In this case, even if the Peerlink link has been restored, the Slave switch still cannot obtain the complete MAC table entries due to the inability to communicate normally, which in turn affects the normal forwarding of traffic. Summary of the invention
[0005] The embodiments of the present application provide a MAC synchronization enhancement method, device and medium in an MLAG environment to solve the following technical problem: how to optimize the MAC synchronization process to ensure that MAC table entries can be synchronized quickly and accurately after the Peerlink link is restored.
[0006] In a first aspect, an embodiment of the present application provides a MAC synchronization enhancement method in an MLAG environment, characterized in that the method includes: in an MLAG environment, when it is detected that the Peerlink link is restored, a MAC synchronization message is sent to a slave switch through a master switch, and after all MAC synchronization messages are sent, a preset MAC synchronization completion confirmation message continues to be sent; when the slave switch receives the MAC synchronization message, the MAC table entry contained in the MAC synchronization message is temporarily stored in the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, the temporarily stored MAC table entry is switched to the MLAG member port to restore traffic forwarding; when it is detected that the Peerlink link is restored, the slave switch synchronously starts a timer, and if the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
[0007] In an implementation of the present application, the method further includes: when it is detected that the Peerlink link is disconnected, setting the MLAG member port on the slave switch to an Errdisable state, and stopping traffic forwarding on the MLAG member port.
[0008] In one implementation of the present application, the method further includes: in an MLAG environment, accessing a master switch and a slave switch, and establishing an MLAG environment through a Peerlink link; and configuring a MAC synchronization function in the master switch and the slave switch.
[0009] In an implementation of the present application, the method further includes: after receiving the MAC synchronization completion confirmation message, releasing the Errdisable state of the MLAG member port on the slave switch.
[0010] In one implementation of the present application, after resetting the MLAG status of the master switch and the slave switch, the method further includes: the slave switch sends an MLAG renegotiation request to the master switch; after receiving the renegotiation request, the master switch re-performs DFS Group pairing and master-slave negotiation with the slave switch to restore the normal working state of MLAG.
[0011] In one implementation of the present application, DFS Group pairing and master-slave negotiation are re-performed, specifically including: exchanging DFS Group hello messages to confirm that DFS Group pairing is successful; sending device information messages to confirm the master-slave status of the DFS Group; sending MLAG member interface information messages to confirm the master-slave status of the MLAG member interfaces.
[0012] In one implementation of the present application, the method further includes: when re-performing DFS Group pairing and master-slave negotiation, if the negotiation fails, recording the reason for the failure and retrying the negotiation; if the number of retries exceeds a preset retry limit, notifying the administrator to perform manual intervention.
[0013] In one implementation of the present application, the MAC synchronization completion confirmation message includes a special MAC address and a special VLAN ID; wherein the special MAC address is 00:00:00:00:00:00, and the VLAN ID is 0xFFFF.
[0014] In a second aspect, an embodiment of the present application further provides a MAC synchronization enhancement device in an MLAG environment, characterized in that the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: in an MLAG environment, when it is detected that the Peerlink link is restored, send a MAC synchronization message to the slave switch through the master switch, and after all MAC synchronization messages are sent, continue to send a preset MAC synchronization completion confirmation message; when the slave switch receives the MAC synchronization message, temporarily stores the MAC table entry contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switches the temporarily stored MAC table entry to the MLAG member port to restore traffic forwarding; when it is detected that the Peerlink link is restored, the slave switch synchronously starts a timer, and if the slave switch still has not received the MAC synchronization completion confirmation message after the timer times out, resets the MLAG status of the master switch and the slave switch.
[0015] In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium for MAC synchronization enhancement in an MLAG environment, storing computer executable instructions, characterized in that the computer executable instructions are configured to: in an MLAG environment, when a Peerlink link recovery is detected, a MAC synchronization message is sent to a slave switch through a master switch, and after all MAC synchronization messages are sent, a preset MAC synchronization completion confirmation message continues to be sent; when the slave switch receives the MAC synchronization message, the MAC table entry contained in the MAC synchronization message is temporarily stored in the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, the temporarily stored MAC table entry is switched to the MLAG member port to restore traffic forwarding; when the Peerlink link recovery is detected, the slave switch synchronously starts a timer, and if the slave switch still has not received the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
[0016] The embodiments of the present application provide a method, device and medium for enhancing MAC synchronization in an MLAG environment, which have the following beneficial effects:
[0017] 1. Improve network stability and reliability: This application adopts an orderly and controlled MAC synchronization process after the Peerlink link is restored, avoiding traffic flooding or packet loss caused by inconsistent MAC entries. At the same time, the introduced timer mechanism can reset the MLAG state in time when synchronization fails to prevent the network from entering an unstable state, thereby significantly improving the stability and reliability of the network.
[0018] 2. Optimize traffic forwarding efficiency: During the MAC synchronization process, this application temporarily stores the MAC synchronization message received from the switch to the Peerlink interface, and switches to the MLAG member port after receiving the MAC synchronization completion confirmation message, thereby reducing the traffic interruption time during the synchronization process, optimizing the traffic forwarding efficiency, and improving the user experience.
[0019] 3. Enhanced network security: This application encrypts the message before sending the MAC synchronization message, ensuring the security of the message during transmission, effectively preventing the risk of sensitive information leakage or malicious tampering, and enhancing the overall security of the network.
[0020] 4. Simplify network maintenance and management: This application reduces the workload of network administrators by automating the MAC synchronization process after the Peerlink link is restored. At the same time, when the MLAG status is abnormal, the slave switch will automatically send a renegotiation request to re-pair the DFS Group and re-negotiate the master and backup with the master switch, thereby simplifying the network maintenance and management process. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 A schematic diagram of an MLAG networking environment provided in an embodiment of the present application;
[0023] Figure 2 A flow chart of a MAC synchronization enhancement method in an MLAG environment provided in an embodiment of the present application;
[0024] Figure 3 A processing flow chart of a switch A when a Peerlink link is restored provided in an embodiment of the present application;
[0025] Figure 4 A processing flow chart of a switch B when a Peerlink link is restored provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of the internal structure of a MAC synchronization enhancement device in an MLAG environment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0028] The embodiments of the present application provide a MAC synchronization enhancement method, device and medium in an MLAG environment to solve the following technical problem: how to optimize the MAC synchronization process to ensure that MAC table entries can be synchronized quickly and accurately after the Peerlink link is restored.
[0029] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0030] Figure 1 A schematic diagram of an MLAG networking environment provided in an embodiment of the present application. Figure 1In the MLAG environment shown, access switch A and access switch B form an MLAG environment through a Peerlink link, and its MLAG member port 3 performs link aggregation with port 1 and port 2 of device C, and MLAG member port 4 performs link aggregation with port 1 and port 2 of device D. Among them, switch A plays the role of Master in MLAG, and switch B plays the role of Slave in MLAG. When the Peerlink link is disconnected, keepalive can prevent dual-master failure, and the status of port 3 and port 4 of switch B will be set to Errdisable and the MAC table entries bound to the ports will be deleted. When the Peerlink link is restored, switch B will restore port 3 and port 4 to the UP state. At this time, due to the socket connection failure that may be caused by MAC synchronization delay and Peerlink link oscillation, the MAC table entries on switch B are missing, and the traffic sent by switch C to switch D through switch B will be flooded or lost. This is the technical problem to be solved by the present invention.
[0031] Figure 2 The flowchart of the MAC synchronization enhancement method in the MLAG environment provided by the embodiment of the present application is as follows. Figure 2 As shown, a MAC synchronization enhancement method in an MLAG environment provided in an embodiment of the present application specifically includes the following steps:
[0032] Step 201: In the MLAG environment, when it is detected that the Peerlink link is restored, a MAC synchronization message is sent to the slave switch through the master switch, and after all MAC synchronization messages are sent, a preset MAC synchronization completion confirmation message continues to be sent.
[0033] In one embodiment of the present application, in order to achieve MAC synchronization enhancement in the MLAG environment, when establishing the MLAG environment, it is necessary to connect the master switch and the slave switch in the MLAG environment, and establish the MLAG environment through the Peerlink link; configure the MAC synchronization function in the master switch and the slave switch.
[0034] It can be understood that the execution logic of the MAC synchronization function is the execution logic of the present application when the Peerlink link is detected to be disconnected and restored.
[0035] In one embodiment of the present application, the method further includes: when it is detected that the Peerlink link is disconnected, setting the MLAG member port on the slave switch to an Errdisable state and stopping traffic forwarding on the MLAG member port.
[0036] Step 202: When the slave switch receives the MAC synchronization message, the MAC table entry contained in the MAC synchronization message is temporarily stored in the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, the temporarily stored MAC table entry is switched to the MLAG member port to resume traffic forwarding.
[0037] In one embodiment of the present application, the MAC synchronization completion confirmation message includes a special MAC address and a special VLAN ID; wherein the special MAC address is 00:00:00:00:00:00, and the VLAN ID is 0xFFFF.
[0038] In one embodiment of the present application, the method further includes: after receiving the MAC synchronization completion confirmation message, releasing the Errdisable state of the MLAG member port on the slave switch.
[0039] Step 203: When the Peerlink link is detected to be restored, the slave switch starts a timer synchronously. If the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
[0040] In one embodiment of the present application, after resetting the MLAG status of the master switch and the slave switch, the method further includes: the slave switch sends an MLAG renegotiation request to the master switch; after receiving the renegotiation request, the master switch re-performs DFS Group pairing and master-slave negotiation with the slave switch to restore the normal working state of MLAG.
[0041] In one embodiment of the present application, re-performing DFS Group pairing and master-slave negotiation specifically includes: exchanging DFS Group hello messages to confirm that DFS Group pairing is successful; sending device information messages to confirm the master-slave status of the DFS Group; sending MLAG member interface information messages to confirm the master-slave status of the MLAG member interfaces.
[0042] In one embodiment of the present application, the method further includes: when re-performing DFS Group pairing and master-slave negotiation, if the negotiation fails, recording the failure reason and retrying the negotiation; if the number of retries exceeds a preset retry limit, notifying the administrator to perform manual intervention.
[0043] In one embodiment, Figure 1In the MLAG environment shown in the figure, switch A and switch B form an MLAG, where switch A plays the role of the master and switch B plays the role of the slave. After the peerlink fails, MLAG member ports 3 and 4 of switch B are set to Errdisable state.
[0044] After the Peerlink link is restored, switch A determines that the current MLAG member port status of switch B is Errdisable, and then sends a MAC synchronization message to switch B. After all MAC synchronization messages are sent, it sends a special MAC synchronization message with a MAC address of 00:00:00:00:00:00 and a VLAN ID of 0xFFFF. Since the status of MLAG member ports 3 and 4 of switch B is Errdisable, the MAC synchronization table entries received by switch B are first sent to the Peerlink interface. When switch B receives the special MAC synchronization message, it means that switch B has received all MAC synchronization messages sent by switch A, and the Peerlink link can be used normally. Therefore, switch B can modify MLAG member ports 3 and 4 to remove the Errdisable status and restore them to the UP state. The MAC table entries previously synchronized to the Peerlink port can be switched to the MLAG member port through the existing process, and then switch B continues to complete the subsequent negotiation actions with switch A.
[0045] In order to deal with the situation where the Peerlink link oscillation causes the socket to be abnormal and unable to communicate, after the Peerlink link is restored, switch B starts the timer, and the timeout period of the timer is set to the MLAG keep-alive timeout period. If switch B still does not receive the special MAC synchronization message after the timer times out, it is considered that MLAG can no longer negotiate normally, and the MLAG status of switch A and switch B is reset, and MLAG negotiation is restarted. In this process, since switch B has not released the Errdisable status of the MLAG member port, the impact of socket abnormalities on traffic forwarding can be effectively reduced.
[0046] Figure 3 A processing flow chart of a switch A when a Peerlink link is restored provided in an embodiment of the present application; Figure 4 The following is a flowchart of the process of switch B when the peerlink link is restored.
[0047] by Figure 1For example, it can be understood that the present application first performs MAC synchronization when the Peerlink link is restored, and then releases the Errdisable state of the MLAG member port of switch B after the synchronization is completed, which can reduce the adverse effects of switch B on traffic forwarding due to missing MAC table entries; after the Peerlink link is restored, when a socket abnormality or other fault occurs and normal communication cannot be achieved, the MALG member port of switch B remains in the Errdisable state until the timer times out and MLAG renegotiates. During this process, traffic can be forwarded normally through switch A, effectively reducing the impact of socket abnormalities on traffic forwarding.
[0048] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a MAC synchronization enhancement device in an MLAG environment, whose structure is as follows: Figure 5 shown.
[0049] Figure 5 The internal structure diagram of a MAC synchronization enhancement device in an MLAG environment provided by an embodiment of the present application. Figure 5 As shown, the device includes:
[0050] at least one processor 501;
[0051] and, a memory 502 communicatively connected to the at least one processor;
[0052] The memory 502 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 501 to enable at least one processor 501 to:
[0053] In the MLAG environment, when the Peerlink link is detected to be restored, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages are sent, the preset MAC synchronization completion confirmation message continues to be sent;
[0054] When the slave switch receives the MAC synchronization message, temporarily storing the MAC table entry contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switching the temporarily stored MAC table entry to the MLAG member port to resume traffic forwarding;
[0055] When the Peerlink link is detected to be restored, the slave switch starts a timer synchronously. If the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
[0056] Some embodiments of the present application provide corresponding Figure 2A non-volatile computer storage medium with enhanced MAC synchronization in an MLAG environment stores computer executable instructions, wherein the computer executable instructions are configured as follows:
[0057] In the MLAG environment, when the Peerlink link is detected to be restored, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages are sent, the preset MAC synchronization completion confirmation message continues to be sent;
[0058] When the slave switch receives the MAC synchronization message, temporarily storing the MAC table entry contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switching the temporarily stored MAC table entry to the MLAG member port to resume traffic forwarding;
[0059] When the Peerlink link is detected to be restored, the slave switch starts a timer synchronously. If the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
[0060] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0061] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.
[0062] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0063] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0064] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0066] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0067] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0068] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0069] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0070] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A MAC synchronization enhancement method in an MLAG environment, characterized in that: The method comprises: In the MLAG environment, when the Peerlink link is detected to be restored, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages are sent, the preset MAC synchronization completion confirmation message continues to be sent; When the slave switch receives the MAC synchronization message, temporarily storing the MAC table entry contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switching the temporarily stored MAC table entry to the MLAG member port to resume traffic forwarding; When the Peerlink link is detected to be restored, the slave switch starts a timer synchronously. If the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
2. The MAC synchronization enhancement method in an MLAG environment according to claim 1, characterized in that: The method further comprises: When it is detected that the Peerlink link is disconnected, the MLAG member port on the slave switch is set to the Errdisable state, and traffic forwarding on the MLAG member port is stopped.
3. The MAC synchronization enhancement method in an MLAG environment according to claim 1, characterized in that: The method further comprises: In the MLAG environment, the master switch and the slave switch are connected, and the MLAG environment is established through the Peerlink link; A MAC synchronization function is configured in the master switch and the slave switch.
4. The MAC synchronization enhancement method in an MLAG environment according to claim 2, characterized in that: The method further comprises: After receiving the MAC synchronization completion confirmation message, the Errdisable state of the MLAG member port on the slave switch is released.
5. The method for enhancing MAC synchronization in an MLAG environment according to claim 1, characterized in that: After resetting the MLAG states of the master switch and the slave switch, the method further includes: The slave switch sends an MLAG renegotiation request to the master switch; After receiving the renegotiation request, the master switch performs DFS Group pairing and master-slave negotiation again with the slave switch to restore the normal working state of MLAG.
6. The method for enhancing MAC synchronization in an MLAG environment according to claim 5, characterized in that: Re-negotiate the DFS Group pairing and master / slave negotiation, including: Exchange DFS Group hello messages to confirm that the DFS Group pairing is successful; Send device information message to confirm the active / standby status of the DFS Group; Send MLAG member interface information messages to confirm the master / slave status of MLAG member interfaces.
7. The method for enhancing MAC synchronization in an MLAG environment according to claim 5, characterized in that: The method further comprises: When re-negotiation of DFS Group pairing and master / slave negotiation fails, the failure reason is recorded and negotiation is retried; If the number of retries exceeds the preset retry limit, the administrator is notified for manual intervention.
8. The method for enhancing MAC synchronization in an MLAG environment according to claim 1, characterized in that: The MAC synchronization completion confirmation message includes a special MAC address and a special VLAN ID; wherein the special MAC address is 00:00:00:00:00:00, and the VLAN ID is 0xFFFF.
9. A MAC synchronization enhancement device in an MLAG environment, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: In the MLAG environment, when the Peerlink link is detected to be restored, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages are sent, the preset MAC synchronization completion confirmation message continues to be sent; When the slave switch receives the MAC synchronization message, temporarily storing the MAC table entry contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switching the temporarily stored MAC table entry to the MLAG member port to resume traffic forwarding; When the Peerlink link is detected to be restored, the slave switch starts a timer synchronously. If the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
10. A non-volatile computer storage medium for MAC synchronization enhancement in an MLAG environment, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: In the MLAG environment, when the Peerlink link is detected to be restored, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages are sent, the preset MAC synchronization completion confirmation message continues to be sent; When the slave switch receives the MAC synchronization message, temporarily storing the MAC table entry contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switching the temporarily stored MAC table entry to the MLAG member port to resume traffic forwarding; When the Peerlink link is detected to be restored, the slave switch starts a timer synchronously. If the slave switch still does not receive the MAC synchronization completion confirmation message after the timer times out, the MLAG status of the master switch and the slave switch is reset.
Citation Information
Patent Citations
Message synchronization method, device, equipment and medium based on MLAG environment
CN111682927A
Beer-link link state detection method and device based on bfd, and medium
CN112737944A
Message interaction method and device in MLAG environment and medium
CN116886592A
MAC real-time migration and detection updating method and device in MLAG environment and medium
CN118540306A
Multi-chassis link aggregation in a distributed virtual bridge
US20140036924A1