A MAC synchronization enhancement method, device and medium in an MLAG environment
By implementing ordered MAC synchronization and a timer mechanism during Peerlink link recovery in an MLAG environment, the problem of delayed or missing MAC entries in the Slave switch's MAC table is solved, thereby improving network stability, reliability, and security.
Patent Information
- Application Number
- CN202411899034.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In an MLAG environment, after a Peerlink link failure is recovered, the MAC entries of the Slave switch may be delayed or missing, leading to traffic flooding or packet loss, which affects the stability and efficiency of network communication.
When the Peerlink link is restored, the master switch sends a MAC synchronization message and, after confirmation, temporarily stores the MAC entry in the Peerlink interface. If no confirmation is received after the timer expires, the MLAG state is reset to ensure accurate synchronization of the MAC entry.
It improves network stability and reliability, optimizes traffic forwarding efficiency, enhances network security, and simplifies network maintenance and management.
Smart Images

Figure CN119766717B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network communication, and particularly relates to a MAC synchronization enhancement method in an MLAG environment, a device and a medium. BACKGROUND
[0002] MLAG (Multi-Chassis LAG) technology is an advanced network communication technology, which allows two access switches to realize link aggregation across devices through a Peerlink link, thereby synchronizing MAC and other table items and keeping the table items of the two switches consistent. This technology plays an important role in improving the reliability and efficiency of network communication.
[0003] However, in the existing MLAG technology implementation, when the Peerlink link fails, although the state of the opposite end switch can be perceived through the keepalive link, after the Peerlink link is restored, the MLAG member port of the Slave switch 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, which may cause flooding or packet loss of traffic, thereby 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, so that the MAC table items on the Slave switch are missing for a long time. In this case, even if the Peerlink link has been restored, the Slave switch still cannot obtain complete MAC table items due to the inability to communicate normally, thereby affecting the normal forwarding of traffic. SUMMARY
[0005] The embodiments of the present application provide a MAC synchronization enhancement method in an MLAG environment, a device and a medium, to solve the technical problem of how to optimize the MAC synchronization process to ensure that the MAC table items can be quickly and accurately synchronized after the Peerlink link is restored.
[0006] In a first aspect, the embodiments of the present application provide a MAC synchronization enhancement method in an MLAG environment, characterized in that the method comprises: in the MLAG environment, when it is detected that the Peerlink link is restored, sending a MAC synchronization message from the master switch to the slave switch, and after all the MAC synchronization messages are sent, continuing to send a preset MAC synchronization completion confirmation message; when the slave switch receives the MAC synchronization message, temporarily storing the MAC table item contained in the MAC synchronization message to the Peerlink interface, and after the MAC synchronization completion confirmation message is received, switching the temporarily stored MAC table item to the MLAG member port to restore the traffic forwarding; when it is detected that the Peerlink link is restored, the slave switch synchronously starts a timer, and if the MAC synchronization completion confirmation message is not received after the timer expires, resetting the MLAG state of the master switch and the slave switch.
[0007] In an implementation manner of the present application, the method further comprises: 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 the traffic forwarding on the MLAG member port.
[0008] In an implementation manner of the present application, the method further comprises: in the MLAG environment, accessing the master switch and the slave switch, and establishing the MLAG environment through the Peerlink link; configuring the MAC synchronization function in the master switch and the slave switch.
[0009] In an implementation manner of the present application, the method further comprises: after the MAC synchronization completion confirmation message is received, releasing the Errdisable state of the MLAG member port on the slave switch.
[0010] In an implementation manner of the present application, after the MLAG state of the master switch and the slave switch is reset, the method further comprises: the slave switch sends an MLAG renegotiation request to the master switch; after the master switch receives the renegotiation request, the master switch and the slave switch re-perform DFS Group pairing and master-slave negotiation to restore the normal working state of the MLAG.
[0011] In an implementation manner of the present application, the re-performing DFS Group pairing and master-slave negotiation specifically comprises: exchanging hello packets of the DFS Group to confirm that the DFS Group pairing is successful; sending a device information packet to confirm the master-slave state of the DFS Group; and sending an MLAG member interface information packet to confirm the master-slave state of the MLAG member interface.
[0012] In an implementation form of the application, the method further comprises: when the DFS Group pairing and the active-backup negotiation are re-performed, if the negotiation fails, recording the failure reason and performing negotiation retry; if the number of retries exceeds a preset upper limit of retries, notifying an administrator to manually intervene.
[0013] In an implementation form of the application, the MAC synchronization completion confirmation message contains 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, the embodiments of the application further provide a MAC synchronization enhancement device in an MLAG environment, characterized in that the device comprises: at least one processor; and a memory in communication connection with 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 to enable the at least one processor to: in an MLAG environment, when detecting that a Peerlink link is restored, send a MAC synchronization message to a slave switch through a 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 store MAC table entries contained in the MAC synchronization message to a Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switch the temporarily stored MAC table entries to MLAG member ports to restore traffic forwarding; when detecting that the Peerlink link is restored, the slave switch synchronously starts a timer, and if the slave switch has not received the MAC synchronization completion confirmation message after the timer expires, reset the MLAG states of the master switch and the slave switch.
[0015] In a third aspect, the embodiments of the present application also provide a non-volatile computer storage medium for MAC synchronization enhancement in an MLAG environment, which stores computer executable instructions, characterized in that the computer executable instructions are configured to: in the 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 the 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 store the MAC table item contained in the MAC synchronization message to the Peerlink interface, and after receiving the MAC synchronization completion confirmation message, switch the temporarily stored MAC table item to the MLAG member port to restore the traffic forwarding; when it is detected that the Peerlink link is restored, the slave switch synchronously starts a timer, and if the slave switch has not received the MAC synchronization completion confirmation message after the timer expires, reset the MLAG state of the master switch and the slave switch.
[0016] The MAC synchronization enhancement method, device and medium in an MLAG environment provided by the embodiments of the present application have the following beneficial effects:
[0017] 1. Improve network stability and reliability: By using an orderly and controlled MAC synchronization process after the Peerlink link is restored, the present application avoids the traffic flooding or packet loss phenomenon caused by inconsistent MAC table items. At the same time, the timer mechanism introduced can reset the MLAG state in time when the synchronization fails, preventing the network from entering an unstable state, thereby significantly improving the stability and reliability of the network.
[0018] 2. Optimize traffic forwarding efficiency: In the MAC synchronization process, the present application temporarily stores the MAC synchronization message received by the slave switch to the Peerlink interface, and then switches to the MLAG member port after receiving the MAC synchronization completion confirmation message, thereby reducing the traffic interruption time in the synchronization process, optimizing the traffic forwarding efficiency, and improving the user experience.
[0019] 3. Enhance network security: The present application encrypts the message before sending the MAC synchronization message, ensuring the security of the message in the transmission process, 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: The present application automatically processes the MAC synchronization process after the Peerlink link is restored, reducing the workload of network administrators. At the same time, when the MLAG state is abnormal, the slave switch will automatically send a renegotiation request to the master switch to re-perform DFS Group pairing and master-slave negotiation, thereby simplifying the network maintenance and management process. Attached Figure Description
[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0022] Figure 1 A schematic diagram of an MLAG networking environment provided in this application embodiment;
[0023] Figure 2 A flowchart of a MAC synchronization enhancement method in an MLAG environment is provided for embodiments of this application;
[0024] Figure 3 A flowchart illustrating the processing of switch A during Peerlink link recovery, provided in an embodiment of this application;
[0025] Figure 4 A flowchart illustrating the processing of switch B during Peerlink link recovery, provided in an embodiment of this application;
[0026] Figure 5 This is a schematic diagram of the internal structure of a MAC synchronization enhancement device in an MLAG environment, provided as an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] This application provides a method, device, and medium for enhancing MAC synchronization in an MLAG environment to solve the following technical problem: how to optimize the MAC synchronization process to ensure that MAC entries can be synchronized quickly and accurately after the Peerlink link is restored.
[0029] The technical solutions proposed in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0030] Figure 1 This is a schematic diagram of an MLAG networking environment provided in an embodiment of this application. (See below.) Figure 1In the shown MLAG environment, access switch A and access switch B form the MLAG environment through the Peerlink link, the MLAG member port 3 thereof is aggregated with port 1 and port 2 of device C, and the MLAG member port 4 thereof is aggregated with port 1 and port 2 of device D. Among them, the role of switch A in the MLAG is Master, and the role of switch B in the MLAG is Slave. When the Peerlink link is disconnected, keepalive can prevent double master failure, and the states of port 3 and port 4 of switch B will be set to Errdisable and the MAC table items bound on 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 caused by MAC synchronization delay and Peerlink link oscillation, the MAC table items on switch B are missing, and the traffic sent by switch C to switch D through switch B will have the problems of flooding or packet loss. This is the technical problem to be solved by the present application.
[0031] Figure 2 A flow chart of a MAC synchronization enhancement method in an MLAG environment provided by an embodiment of the present application is shown in the figure. Figure 2 The MAC synchronization enhancement method in an MLAG environment provided by an embodiment of the present application specifically includes the following steps:
[0032] Step 201, in the MLAG environment, when detecting that the Peerlink link is restored, sending a MAC synchronization message to the slave switch through the master switch, and after all the MAC synchronization messages are sent, continuing to send a preset MAC synchronization completion confirmation message.
[0033] In an embodiment of the present application, to realize the MAC synchronization enhancement in the MLAG environment, when forming the MLAG environment, the access master switch and the slave switch need to be accessed in the MLAG environment, and the MLAG environment is formed through the Peerlink link; the MAC synchronization function is configured 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 detecting that the Peerlink link is disconnected and restored.
[0035] In an embodiment of the present application, the method further includes: when detecting that the Peerlink link is disconnected, setting the MLAG member port on the slave switch to the Errdisable state, and stopping the traffic forwarding on the MLAG member port.
[0036] Step 202, when the MAC synchronization message is received from the slave switch, the MAC table item contained in the MAC synchronization message is temporarily stored to the Peerlink interface, and after the MAC synchronization completion confirmation message is received, the temporarily stored MAC table item is switched to the MLAG member port to restore the traffic forwarding.
[0037] In an embodiment of the present application, the MAC synchronization completion confirmation message contains 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 an embodiment of the present application, the method further comprises: after the MAC synchronization completion confirmation message is received, the Errdisable state of the MLAG member port on the slave switch is removed.
[0039] Step 203, when the Peerlink link is detected to be restored, the slave switch synchronously starts a timer, and if the MAC synchronization completion confirmation message is not received after the timer is expired, the MLAG state of the master switch and the slave switch is reset.
[0040] In an embodiment of the present application, after the MLAG state of the master switch and the slave switch is reset, the method further comprises: the slave switch sends an MLAG re-negotiation request to the master switch; after the re-negotiation request is received by the master switch, the master switch and the slave switch re-perform DFS Group pairing and master-slave negotiation to restore the normal working state of the MLAG.
[0041] In an embodiment of the present application, the re-performed DFS Group pairing and master-slave negotiation specifically include: exchanging hello packets of the DFS Group to confirm the success of the DFS Group pairing; sending a device information packet to confirm the master-slave state of the DFS Group; and sending an MLAG member interface information packet to confirm the master-slave state of the MLAG member interface.
[0042] In an embodiment of the present application, the method further comprises: when the DFS Group pairing and master-slave negotiation are re-performed, if the negotiation fails, the failure reason is recorded and the negotiation is retried; if the number of retries exceeds a preset upper limit of the retries, the administrator is notified to manually intervene.
[0043] In an embodiment, as Figure 1In the illustrated MLAG environment, Switch A and Switch B form an MLAG, where Switch A is the Master and Switch B is the Slave. After the Peerlink link fails, Switch B sets its MLAG member ports 3 and 4 to the Errdisable state.
[0044] After the Peerlink link recovers, Switch A determines that the current MLAG member port state of Switch B is Errdisable, and then sends a MAC synchronization message to Switch B. After all MAC synchronization messages are sent, Switch A 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 MLAG member ports 3 and 4 of Switch B are in the Errdisable state, the MAC synchronization entries received by Switch B are first issued to the Peerlink interface. When Switch B receives the special MAC synchronization message, it means that Switch B has received all the MAC synchronization messages sent by Switch A, and the Peerlink link can be used normally. Therefore, Switch B can modify the MLAG member ports 3 and 4 to remove the Errdisable state and restore them to the UP state. The MAC table entries previously synchronized to the Peerlink port can be switched to the MLAG member ports through the existing process. After that, Switch B continues to complete subsequent negotiation actions with Switch A.
[0045] To deal with the situation where the socket is abnormal and cannot communicate due to Peerlink link oscillation, after the Peerlink link recovers, Switch B starts a timer, and the timeout time of the timer is set to the MLAG keep-alive timeout time. If the timer times out and Switch B still does not receive the special MAC synchronization message, it is considered that the MLAG cannot be normally negotiated at this time, and the MLAG state of Switch A and Switch B is reset to start MLAG negotiation again. In this process, since Switch B has not removed the Errdisable state of the MLAG member port, the influence of the socket exception on traffic forwarding can be effectively reduced.
[0046] Figure 3 A processing flowchart of Switch A when the Peerlink link recovers is provided for the embodiments of the present application; Figure 4 A processing flowchart of Switch B when the Peerlink link recovers.
[0047] In Figure 1For example, it can be understood that, in the application, MAC synchronization is performed first when the Peerlink link is recovered, and the Errdisable state of the MLAG member port of the switch B is released after the synchronization is completed, which can reduce the adverse effects of the missing MAC table entries on the traffic forwarding of the switch B; after the Peerlink link is recovered, if a socket exception or other fault occurs and normal communication cannot be performed, the MLAG member port of the switch B always remains in the Errdisable state until the timer expires, the MLAG is re-negotiated, and in this process, the traffic can be normally forwarded through the switch A, thereby effectively reducing the influence of the socket exception on the traffic forwarding.
[0048] The above is a method embodiment provided by the application. Based on the same inventive concept, the embodiments of the application also provide a MAC synchronization enhancement device in an MLAG environment, which has a structure as shown in Figure 5 .
[0049] Figure 5 A schematic diagram of the internal structure of a MAC synchronization enhancement device in an MLAG environment provided by an embodiment of the application is shown in Figure 5 . The device includes:
[0050] at least one processor 501;
[0051] and a memory 502 in communication connection with the at least one processor;
[0052] The memory 502 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 501 to enable the at least one processor 501 to:
[0053] When the Peerlink link is detected to be recovered in the MLAG environment, the master switch sends a MAC synchronization message to the slave switch, and after all the MAC synchronization messages are sent, a preset MAC synchronization completion confirmation message is continued to be sent;
[0054] When the slave switch receives the MAC synchronization message, the MAC table entries contained in the MAC synchronization message are temporarily stored in the Peerlink interface, and after the MAC synchronization completion confirmation message is received, the temporarily stored MAC table entries are switched to the MLAG member port to recover the traffic forwarding;
[0055] When the Peerlink link is detected to be recovered, the slave switch synchronously starts a timer, and if the MAC synchronization completion confirmation message is not received after the timer expires, the MLAG state of the master switch and the slave switch is reset.
[0056] Some embodiments of the application provide a corresponding Figure 2A nonvolatile computer storage medium in a MAC synchronization enhanced MLAG environment, storing computer executable instructions, the computer executable instructions being arranged to:
[0057] In the MLAG environment, when detecting that the Peerlink link is recovered, a master switch sends a MAC synchronization message to a slave switch, and after all MAC synchronization messages are sent, a preset MAC synchronization completion confirmation message is continued to be sent.
[0058] When the slave switch receives the MAC synchronization message, the MAC table item contained in the MAC synchronization message is temporarily stored in the Peerlink interface, and after the MAC synchronization completion confirmation message is received, the temporarily stored MAC table item is switched to the MLAG member port to recover the traffic forwarding.
[0059] When detecting that the Peerlink link is recovered, the slave switch synchronously starts a timer, and if the slave switch has not received the MAC synchronization completion confirmation message after the timer is timed out, the MLAG state of the master switch and the slave switch is reset.
[0060] Each of the embodiments in the present application is described in a progressive manner, and the same and similar parts of each of the embodiments can be referred to each other, and each of the embodiments mainly describes the difference from other embodiments. In particular, for the Internet of Things device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the related parts can be referred to the part of the method embodiments.
[0061] The system and medium provided by the embodiments of the present application are one-to-one corresponding to the method, and therefore, the system and medium also have the similar beneficial technical effects as the method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the system and medium will not be described here.
[0062] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
[0063] The computer program instructions can 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 block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in one or more flow or blocks
[0064] These computer program instructions can 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 instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in one or more flow or blocks
[0065] The computer program instructions can 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 block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in one or more flow or blocks
[0066] In one typical configuration, the computing device includes one or more processors (CPU's), input / output interfaces, network interfaces, and memory.
[0067] The memory can include non-persistent memory and / or persistent memory, such as flash memory, read-only memory (ROM), and / or volatile or non-volatile random access memory (RAM), among others. The memory is an example of computer-readable media.
[0068] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can implement information storage by any method or technology. The 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0069] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0070] The above only describes the embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.
Claims
1. A method for enhancing MAC synchronization in an MLAG environment, characterized in that, The method includes: In an MLAG environment, when a Peerlink link recovery is detected, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages have been sent, it continues to send a preset MAC synchronization completion confirmation message. When the MAC synchronization message is received from the switch, the MAC entries contained in the MAC synchronization message are temporarily stored in the Peerlink interface. After receiving the MAC synchronization completion confirmation message, the temporarily stored MAC entries are switched to the MLAG member port to restore traffic forwarding. When the Peerlink link is detected to be restored, the slave switch synchronously starts a timer. If the timer expires and the slave switch still does not receive the MAC synchronization completion confirmation message, the MLAG status of the master switch and the slave switch is reset. 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 re-pairs with the slave switch for DFS Group and re-negotiates the master-slave relationship to restore the normal working state of MLAG. 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.
2. The MAC synchronization enhancement method in an MLAG environment according to claim 1, characterized in that, The method further includes: When a Peerlink link disconnection is detected, the MLAG member port on the slave switch is set to 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 includes: In an MLAG environment, the master switch and the slave switch are connected, and an MLAG environment is built through a Peerlink link. Configure MAC synchronization function 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 includes: After receiving the MAC synchronization completion confirmation message, the Errdisable state of the MLAG member port on the slave switch is removed.
5. The MAC synchronization enhancement method in an MLAG environment according to claim 1, characterized in that, Re-perform DFS Group pairing and primary / standby negotiation, specifically including: Exchange hello messages between DFS Groups to confirm successful DFS Group pairing; Send device information messages to confirm the primary / standby status of the DFS Group; Send an MLAG member interface information message to confirm the primary / backup status of the MLAG member interface.
6. The MAC synchronization enhancement method in an MLAG environment according to claim 1, characterized in that, The method further includes: If the negotiation fails during the re-pairing and primary / standby negotiation of DFS Group, the reason for the failure should be recorded and the negotiation should be retried. If the number of retries exceeds the preset retries limit, notify the administrator for manual intervention.
7. 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; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to: In an MLAG environment, when a Peerlink link recovery is detected, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages have been sent, it continues to send a preset MAC synchronization completion confirmation message. When the MAC synchronization message is received from the switch, the MAC entries contained in the MAC synchronization message are temporarily stored in the Peerlink interface. After receiving the MAC synchronization completion confirmation message, the temporarily stored MAC entries are switched to the MLAG member port to restore traffic forwarding. When the Peerlink link is detected to be restored, the slave switch synchronously starts a timer. If the timer expires and the slave switch still does not receive the MAC synchronization completion confirmation message, the MLAG status of the master switch and the slave switch is reset. After resetting the MLAG states of the master switch and the slave switch, the following steps are also included: The slave switch sends an MLAG renegotiation request to the master switch; After receiving the renegotiation request, the master switch re-pairs with the slave switch for DFS Group and re-negotiates the master-slave relationship to restore the normal working state of MLAG. 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.
8. A non-volatile computer storage medium with enhanced MAC synchronization in an MLAG environment, storing computer-executable instructions, characterized in that, The computer-executable instructions are set as follows: In an MLAG environment, when a Peerlink link recovery is detected, the master switch sends a MAC synchronization message to the slave switch, and after all MAC synchronization messages have been sent, it continues to send a preset MAC synchronization completion confirmation message. When the MAC synchronization message is received from the switch, the MAC entries contained in the MAC synchronization message are temporarily stored in the Peerlink interface. After receiving the MAC synchronization completion confirmation message, the temporarily stored MAC entries are switched to the MLAG member port to restore traffic forwarding. When the Peerlink link is detected to be restored, the slave switch synchronously starts a timer. If the timer expires and the slave switch still does not receive the MAC synchronization completion confirmation message, the MLAG status of the master switch and the slave switch is reset. After resetting the MLAG states of the master switch and the slave switch, the following steps are also included: The slave switch sends an MLAG renegotiation request to the master switch; After receiving the renegotiation request, the master switch re-pairs with the slave switch for DFS Group and re-negotiates the master-slave relationship to restore the normal working state of MLAG. 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.
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