MAC real-time migration and detection updating method and device in MLAG environment and medium
By migrating the MAC address table to the peerlink port when the cross-device aggregation port fails in the MLAG environment, and using the MAC detection update process, the problem that the MAC address cannot be migrated and updated in real time is solved, and real-time migration of the MAC address in the MLAG environment is realized. and updates to ensure the stability and performance of network services.
Patent Information
- Application Number
- CN202410814734.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-23
AI Technical Summary
In an MLAG environment, when the cross-device aggregation port of the primary device or backup device fails, the MAC address cannot be migrated to the peerlink port in real time, causing business traffic interruption. The MAC address cannot be updated in time when the device is restored or the connection is disconnected, affecting network performance. and business continuity.
In the MLAG environment, the MAC address table is migrated to the peerlink port when the cross-device aggregation port fails, and the MAC detection update process is triggered based on the MAC address table. The ARP request message is used to notify the device to determine the service port, and the MAC address is updated when the failure is restored. table to ensure that the MAC address is on the correct port to avoid service interruption caused by failures.
It realizes real-time migration and update of MAC addresses when there is no traffic or communication failure, avoids the problem of MAC address migration caused by peerlink port congestion or failure, ensures the stability and performance of network services, and avoids business interruption.
Smart Images

Figure CN118540306A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a MAC real-time migration and detection update method, device and medium in an MLAG environment. Background Art
[0002] MLAG (Multi-Chassis LAG) technology is a cross-device link aggregation technology. The MLAG master and backup devices synchronize MAC, ARP and other protocol table items through peerlink links to keep the protocol table items of the two MLAG devices consistent. The MLAG master and backup devices perform LACP link aggregation negotiation with the connected device C with exactly the same information and status. The connected device C can treat the two MLAG devices as one device to establish a link aggregation relationship. This cross-device link aggregation mechanism can be used as a logical link aggregation group to achieve link aggregation between multiple devices.
[0003] like Figure 1 As shown in the figure, since the MLAG master device and the backup device belong to the same device in the cross-device link aggregation environment, the MAC table entries on the cross-device aggregation port agg1 of the two must be synchronized and consistent with each other through the peerlink port. When the cross-device aggregation port agg1 of any MLAG device fails and is disconnected, the same aggregation port agg1 of the opposite MLAG device will synchronize all MAC addresses on the aggregation port to the peerlink port of the faulty device, thereby migrating the MAC address of the faulty interface from the agg1 port to the peerlink port. In this way, the service traffic to the MAC address will be forwarded from the peerlink port, as shown in the figure. Figure 2 shown.
[0004] However, if the agg1 port of the master device A fails, if the peerlink port is congested and packet loss or disconnection occurs, the backup device B cannot synchronize the MAC address of the agg1 port on the local end to the peerlink port of the peer master device A, and MAC migration cannot be achieved. At this time, if the failed port agg1 recovers, and device E or device F is in silent state and does not send any service traffic packets to the outside, the MAC address table of device A will not be migrated back from the peerlink port to the agg1 port.
[0005] Furthermore, if device E or F is disconnected from device C, or moved to other places on the network, device A and device B will not be able to perceive it in real time, so the MAC addresses mac1 and mac2 of the two devices cannot be migrated, updated or deleted in real time. The user's real-time business traffic will also be greatly affected, which may reduce performance at the least or cause business interruption and fail to reach the real terminal device. Summary of the invention
[0006] The embodiments of the present application provide a MAC real-time migration and detection update method, device and medium in an MLAG environment to solve the following technical problem: how to achieve real-time migration and update of MAC addresses between peerlink ports and cross-device aggregation ports in the absence of traffic or communication failures.
[0007] In the first aspect, an embodiment of the present application provides a MAC real-time migration and detection update method in an MLAG environment, characterized in that the method includes: in the event of a cross-device aggregation port failure in the MLAG master device or backup device, migrating the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding faulty device; based on each migration MAC address in the MAC address table, triggering a MAC detection update process with the peerlink port as the sending port to notify the device corresponding to each migration MAC address to determine the peerlink port as a temporary service port; in the event of recovery of the cross-device aggregation port, based on each migration MAC address in the MAC address table, triggering the MAC detection update process again with the cross-device aggregation port as the sending port, and updating the service port of each migration MAC address in the MAC address table according to the feedback information.
[0008] In one implementation of the present application, based on each migration MAC address in the MAC address table, a MAC detection update process is triggered with the peerlink port as the sending port, specifically including: based on the migration MAC address, traversing and querying the local ARP table of the faulty device to determine the IP address corresponding to the migration MAC address; based on the IP address, constructing a first unicast ARP request message and a first broadcast ARP request message on the peerlink port; and continuously sending the unicast ARP request message and the broadcast ARP request message for a preset number of times, respectively, to notify the devices corresponding to each migration MAC address to determine the peerlink port as a temporary service port.
[0009] In one implementation of the present application, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, specifically including: based on the IP address corresponding to the migration MAC address, constructing a second unicast ARP request message and a second broadcast ARP request message on the cross-device aggregation port; sending the second unicast ARP request message and the second broadcast ARP request message continuously for a preset number of times, respectively, to notify the devices corresponding to each migration MAC address to resume service on the cross-device aggregation port.
[0010] In one implementation of the present application, the service port of each migration MAC address in the MAC address table is updated according to the feedback information, specifically including: monitoring each port of the faulty device to determine whether the ARP reply message or the service traffic message sent back by the device corresponding to each migration MAC address for the second unicast ARP request message or the second broadcast ARP request message is received; in the case that the cross-device aggregation port receives the ARP reply message or the service traffic message sent back by the corresponding device, determining that the cross-device aggregation port restores the service to the device, and re-migrates the corresponding migration MAC address to the cross-device aggregation port; in the case that the peerlink port receives the ARP reply message or the service traffic message sent back by the corresponding device, determining that the peerlink port continues to serve the device; in the case that other ports receive the ARP reply message or the service traffic message sent back by the corresponding device, determining that the other interface serves the device, and migrating the corresponding migration MAC address to the other interface.
[0011] In one implementation of the present application, the method also includes: after the second unicast ARP request message and the second broadcast ARP request message are sent continuously for a preset number of times across the device aggregation port, if after the preset time interval, none of the ports of the faulty device receives the ARP reply message or service traffic message sent back by the corresponding device, it is determined that the device is lost; deleting the corresponding migration MAC address in the faulty device, and notifying the opposite device of the faulty device to delete it synchronously.
[0012] In one implementation of the present application, after migrating the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding faulty device, the method further includes: recording the cross-device aggregation port as the original port of each migrated MAC address in the MAC address table.
[0013] In one implementation of the present application, the cross-device aggregation port is a cross-device link aggregation group created based on the MLAG protocol, and the peerlink port is a port used for information interaction and data synchronization between the MLAG master device and the backup device.
[0014] In one implementation of the present application, the method also includes: recording the time when the migration starts, the time when the migration ends, and key events in the migration process; during the migration process, regularly checking the migration progress and issuing an alarm when encountering migration problems; saving all operations and events in the migration process in the form of logs for subsequent analysis and auditing.
[0015] In the second aspect, an embodiment of the present application also provides a MAC real-time migration and detection update 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 that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can: in the event of a cross-device aggregation port failure of the MLAG master device or the backup device, migrate the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding faulty device; based on each migration MAC address in the MAC address table, trigger a MAC detection update process with the peerlink port as the sending port to notify the device corresponding to each migration MAC address to determine the peerlink port as a temporary service port; in the event of recovery of the cross-device aggregation port, based on each migration MAC address in the MAC address table, trigger the MAC detection update process again with the cross-device aggregation port as the sending port, and update the service port of each migration MAC address in the MAC address table according to the feedback information.
[0016] In the third aspect, the embodiment of the present application also provides a non-volatile computer storage medium for real-time MAC migration and detection update in an MLAG environment, storing computer executable instructions, characterized in that the computer executable instructions are set to: in the event of a cross-device aggregation port failure of the MLAG master device or backup device, migrate the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding faulty device; based on each migration MAC address in the MAC address table, trigger the MAC detection update process with the peerlink port as the sending port to notify the device corresponding to each migration MAC address to determine the peerlink port as a temporary service port; when the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, trigger the MAC detection update process again with the cross-device aggregation port as the sending port, and update the service port of each migration MAC address in the MAC address table according to the feedback information.
[0017] The embodiments of the present application provide a method, device and medium for real-time MAC migration and detection update in an MLAG environment, which has the following beneficial effects:
[0018] 1. When the cross-device aggregation port of the MLAG device fails, the MAC address is directly migrated to the peerlink port and the MAC real-time detection and update is immediately triggered to avoid the failure of the MAC address to successfully migrate to the peerlink port due to peerlink port congestion and other reasons.
[0019] 2. When the cross-device aggregation port of the MLAG device recovers from a fault, the MAC address is migrated back to the correct port in real time through MAC detection technology, or the MAC is directly deleted when the device is lost, instead of blindly migrating it to the fault recovery port or not migrating it, causing network service interruption. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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:
[0021] Figure 1 A schematic diagram of the structure of an MLAG cross-device link aggregation environment provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a fault port working structure provided in an embodiment of the present application;
[0023] Figure 3 A flow chart of a MAC real-time migration and detection update method in an MLAG environment provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a fault port recovery work structure provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the internal structure of a MAC real-time migration and detection update device in an MLAG environment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] 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.
[0027] The embodiments of the present application provide a MAC real-time migration and detection update method, device and medium in an MLAG environment to solve the following technical problem: how to achieve real-time migration and update of MAC addresses between peerlink ports and cross-device aggregation ports in the absence of traffic or communication failures.
[0028] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0029] Figure 3A flowchart of a MAC real-time migration and detection update method in an MLAG environment provided by an embodiment of the present application. Figure 3 As shown, the embodiment of the present application provides a MAC real-time migration and detection update method in an MLAG environment, which specifically includes the following steps:
[0030] Step 301: When the cross-device aggregation port of the MLAG master device or the backup device fails, the MAC address table on the cross-device aggregation port is migrated to the peerlink port of the corresponding failed device.
[0031] First of all, it should be noted that the cross-device aggregation port in the embodiment of the present application is a cross-device link aggregation group created based on the MLAG protocol, and the peerlink port is a port used for information interaction and data synchronization between the MLAG master device and the backup device.
[0032] In one embodiment of the present application, in order to realize real-time MAC migration and detection update in the MLAG environment, the first execution strategy is to migrate the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding failed device when the cross-device aggregation port of the MLAG master device or backup device fails.
[0033] Furthermore, after the MAC address table on the cross-device aggregation port is migrated to the peerlink port of the corresponding faulty device, the cross-device aggregation port is recorded as the original port of each migrated MAC address in the MAC address table.
[0034] In one embodiment, if the agg1 port of the master device A fails and is disconnected, the MAC address table entries on the agg1 port are directly migrated to the peerlink port agg55 before being deleted. All of these migrated MAC addresses record the original port number before migration as agg1. At this time, the service traffic from the master device A to the devices E and F will all be forwarded to the device B via the peerlink port, and then from the device B to the devices E and F, as shown above. Figure 2 shown.
[0035] Step 302: Based on each migration MAC address in the MAC address table, a MAC detection update process is triggered with the peerlink port as the sending port to notify the device corresponding to each migration MAC address to determine the peerlink port as a temporary service port.
[0036] In one embodiment of the present application, after the MAC address table on the cross-device aggregation port is migrated to the peerlink port of the corresponding faulty device, based on each migrated MAC address in the MAC address table, the MAC detection update process is triggered with the peerlink port as the sending port to notify the devices corresponding to each migrated MAC address to determine the peerlink port as a temporary service port.
[0037] Specifically, based on the migration MAC address, the local ARP table of the faulty device is traversed and queried to determine the IP address corresponding to the migration MAC address; based on the IP address, a first unicast ARP request message and a first broadcast ARP request message are constructed on the peerlink port; the unicast ARP request message and the broadcast ARP request message are respectively sent continuously for a preset number of times to notify the devices corresponding to each migration MAC address to determine the peerlink port as a temporary service port.
[0038] In one embodiment, the MAC detection update process is triggered, and the master device A traverses and queries all local ARP table entries based on the migration MAC with the original port number agg1 recorded on the peerlink port (mac1 and mac2 in this example), and finds the ARP table entries with the same MAC addresses as these migration MACs. Then, based on the IP addresses in these found ARP table entries (IP addresses ip1 and ip2 of devices E and F in this example), three unicast ARP request messages and three broadcast ARP request messages are constructed and sent continuously. The target IP addresses of these ARP messages are the ip1 address and ip2 address found in the ARP table. If the agg1 port is in a faulty disconnected state, the sending port of the unicast ARP message is the peerlink port, and the broadcast ARP message is flooded and sent in all link up ports.
[0039] Step 303: When the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, and the service port of each migration MAC address in the MAC address table is updated according to the feedback information.
[0040] In one embodiment of the present application, when the cross-device aggregation port is restored, firstly, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port.
[0041] Specifically, based on the IP address corresponding to the migration MAC address, a second unicast ARP request message and a second broadcast ARP request message are constructed on the cross-device aggregation port; the second unicast ARP request message and the second broadcast ARP request message are sent continuously for a preset number of times to notify the devices corresponding to each migration MAC address to resume service on the cross-device aggregation port.
[0042] Further, according to the feedback information, the service port of each migration MAC address in the MAC address table is updated.
[0043] Specifically, each port of the faulty device is monitored to determine whether the ARP reply message or service traffic message sent back by the device corresponding to each migration MAC address for the second unicast ARP request message or the second broadcast ARP request message is received; when the cross-device aggregation port receives the ARP reply message or service traffic message sent back by the corresponding device, it is determined that the cross-device aggregation port has restored the service to the device, and the corresponding migration MAC address is migrated to the cross-device aggregation port; when the peerlink port receives the ARP reply message or service traffic message sent back by the corresponding device, it is determined that the peerlink port continues to serve the device; when other ports receive the ARP reply message or service traffic message sent back by the corresponding device, it is determined that the other interface serves the device, and the corresponding migration MAC address is migrated to the other interface.
[0044] In one embodiment, if the agg1 port of the master device A or the backup device B receives an ARP reply message or other service traffic message sent back by the remote device E or the device F, the MAC address learning of the agg1 port will be triggered, and the device A will migrate the MAC address of the device E or F to the agg1 port again. Figure 4 As shown. If the peerlink port of the master device A receives an ARP reply message or other service traffic message sent back by device E or device F, the MAC address will continue to remain on the peerlink port and will not be migrated back to the agg1 port. If other ports of the master device A receive an ARP reply message or other service traffic message sent back by device E or device F, it means that device E or device F may have moved to other nodes in the network, which will trigger MAC address learning on other ports and re-migrate the MAC address of device E or F to other ports.
[0045] Furthermore, after the second unicast ARP request message and the second broadcast ARP request message are sent continuously for a preset number of times across the cross-device aggregation port, if after the preset time interval, none of the ports of the faulty device receives the ARP reply message or service traffic message sent back by the corresponding device, it is determined that the device is lost; the corresponding migration MAC address in the faulty device is deleted, and the opposite device of the faulty device is notified to delete it synchronously.
[0046] In one embodiment, if the master device A and the backup device B do not receive the ARP reply message sent back by the device E or the device F for more than 15 seconds, and do not receive any service traffic message that can trigger MAC relearning, the master device A considers that the device E or the device F is lost, and will directly delete these MAC addresses, and notify the peer MLAG device B to delete these MAC addresses as well.
[0047] In one embodiment of the present application, it also includes: recording the time when the migration starts, the time when the migration ends, and key events in the migration process; during the migration process, regularly checking the migration progress and issuing an alarm when encountering migration problems; saving all operations and events in the migration process in the form of logs for subsequent analysis and auditing.
[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 real-time migration and detection update device in an MLAG environment, and its structure is as follows: Figure 5 shown.
[0049] Figure 5 A schematic diagram of the internal structure of a MAC real-time migration and detection update 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 event of a cross-device aggregation port failure on the MLAG master or backup device, migrate the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding failed device;
[0054] Based on each migration MAC address in the MAC address table, a MAC detection update process is triggered with the peerlink port as the sending port to notify the device corresponding to each migration MAC address to determine the peerlink port as a temporary service port;
[0055] When the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, and the service port of each migration MAC address in the MAC address table is updated according to the feedback information.
[0056] Some embodiments of the present application provide corresponding Figure 3 A non-volatile computer storage medium for real-time migration and detection update of MAC in an MLAG environment, storing computer executable instructions, wherein the computer executable instructions are set as follows:
[0057] In the event of a cross-device aggregation port failure on the MLAG master or backup device, migrate the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding failed device;
[0058] Based on each migration MAC address in the MAC address table, a MAC detection update process is triggered with the peerlink port as the sending port to notify the device corresponding to each migration MAC address to determine the peerlink port as a temporary service port;
[0059] When the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, and the service port of each migration MAC address in the MAC address table is updated according to the feedback information.
[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 including 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 in the computer or other programmable device. 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 real-time migration and detection update method in an MLAG environment, characterized in that: The method comprises: In case of a cross-device aggregation port failure of the MLAG master device or backup device, the MAC address table on the cross-device aggregation port is migrated to the peerlink port of the corresponding failed device; Based on each migration MAC address in the MAC address table, triggering a MAC detection update process with the peerlink port as a sending port to notify a device corresponding to each migration MAC address to determine the peerlink port as a temporary service port; When the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, and the service port of each migration MAC address in the MAC address table is updated according to the feedback information.
2. The method for real-time MAC migration and detection update in an MLAG environment according to claim 1, characterized in that: Based on each migration MAC address in the MAC address table, a MAC detection update process is triggered with the peerlink port as the sending port, specifically including: Based on the migration MAC address, query the local ARP table of the faulty device to determine the IP address corresponding to the migration MAC address; Based on the IP address, construct a first unicast ARP request message and a first broadcast ARP request message on the peerlink port; The unicast ARP request message and the broadcast ARP request message are respectively sent continuously for a preset number of times to notify the devices corresponding to each migration MAC address to determine the peerlink port as a temporary service port.
3. The method for real-time MAC migration and detection update in an MLAG environment according to claim 1, characterized in that: Based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, specifically including: Based on the IP address corresponding to the migration MAC address, construct a second unicast ARP request message and a second broadcast ARP request message on the cross-device aggregation port; The second unicast ARP request message and the second broadcast ARP request message are respectively sent continuously for a preset number of times to notify the devices corresponding to each migration MAC address that the cross-device aggregation port resumes service.
4. The method for real-time MAC migration and detection update in an MLAG environment according to claim 1, characterized in that: According to the feedback information, the service port of each migration MAC address in the MAC address table is updated, specifically including: Monitoring each port of the faulty device to determine whether an ARP reply message or a service flow message sent back by a device corresponding to each migration MAC address in response to the second unicast ARP request message or the second broadcast ARP request message is received; When the cross-device aggregation port receives an ARP reply message or a service traffic message sent back by the corresponding device, determine that the cross-device aggregation port restores the service for the device, and re-migrate the corresponding migration MAC address to the cross-device aggregation port; When the peerlink port receives an ARP reply message or a service flow message sent back by the corresponding device, determining that the peerlink port continues to serve the device; When the other port receives the ARP reply message or the service flow message sent back by the corresponding device, it is determined that the other interface serves the device, and the corresponding migration MAC address is migrated to the other interface.
5. The method for real-time MAC migration and detection update in an MLAG environment according to claim 4, characterized in that: The method further comprises: After the cross-device aggregation port sends the second unicast ARP request message and the second broadcast ARP request message for a preset number of times respectively, if after a preset time interval, each port of the faulty device does not receive an ARP reply message or a service traffic message sent back by the corresponding device, it is determined that the device is lost; The corresponding migration MAC address in the faulty device is deleted, and the peer device of the faulty device is notified to delete the address synchronously.
6. The method for real-time MAC migration and detection update in an MLAG environment according to claim 1, characterized in that: After migrating the MAC address table on the cross-device aggregation port to the peerlink port of the corresponding faulty device, the method further includes: The cross-device aggregation port is recorded as the original port of each migrated MAC address in the MAC address table.
7. The method for real-time MAC migration and detection update in an MLAG environment according to claim 1, characterized in that: The cross-device aggregation port is a cross-device link aggregation group created based on the MLAG protocol, and the peerlink port is a port used for information interaction and data synchronization between the MLAG master device and the backup device.
8. The method for real-time MAC migration and detection update in an MLAG environment according to claim 1, characterized in that: The method further comprises: Record the time when the migration started, the time when the migration ended, and the key events during the migration; During the migration process, check the migration progress regularly and issue an alarm if there are any migration problems. Save all operations and events during the migration process in the form of logs for subsequent analysis and auditing.
9. A MAC real-time migration and detection update 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 case of a cross-device aggregation port failure of the MLAG master device or backup device, the MAC address table on the cross-device aggregation port is migrated to the peerlink port of the corresponding failed device; Based on each migration MAC address in the MAC address table, triggering a MAC detection update process with the peerlink port as a sending port to notify a device corresponding to each migration MAC address to determine the peerlink port as a temporary service port; When the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, and the service port of each migration MAC address in the MAC address table is updated according to the feedback information.
10. A non-volatile computer storage medium for real-time MAC migration and detection update in an MLAG environment, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: when a cross-device aggregation port of a MLAG master device or a backup device fails, migrate the MAC address table on the cross-device aggregation port to a peerlink port of a corresponding failed device; Based on each migration MAC address in the MAC address table, triggering a MAC detection update process with the peerlink port as a sending port to notify a device corresponding to each migration MAC address to determine the peerlink port as a temporary service port; When the cross-device aggregation port is restored, based on each migration MAC address in the MAC address table, the MAC detection update process is triggered again with the cross-device aggregation port as the sending port, and the service port of each migration MAC address in the MAC address table is updated according to the feedback information.
Citation Information
Cited By
MAC (Media Access Control) synchronization enhancement method and equipment in MLAG (Multi-Link Aggregation Group) environment and medium
CN119766717A
