Method and device for quickly switching unicast traffic of cross-device link aggregation system
By setting the backup loopback port and quick switching tag in the M-LAG system, the packet loss problem caused by traffic switching delay in link failure in the M-LAG system is solved, efficient traffic forwarding is achieved, and user traffic is improved. Forwarding efficiency.
Patent Information
- Application Number
- CN202411379370.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In M-LAG systems, short-term user traffic loss during traffic switching during link failure is caused by delays caused by the communication complexity of protocol packets.
After setting up the backup loopback port of the local cross-device link aggregation M-LAG interface, and detecting the aggregate link failure, replace the outgoing port index pointing in the Ethernet unicast forwarding table entry with the backup loopback port, and loopback through the backup loopback. The port sends messages and adds a quick switch tag on the internal control link to achieve fast forwarding.
The transmission of Ethernet unicast packets during the M-LAG interface switching process is optimized, which avoids packet loss and improves the forwarding efficiency of user traffic.
Smart Images

Figure CN119254397A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a cross-device link aggregation technology, and more specifically to a method and device for quickly switching unicast traffic of a cross-device link aggregation system. Background Art
[0002] The M-LAG (Multi-chassis link aggregation) system virtualizes two physical devices into one device to achieve cross-device link aggregation, thereby providing device-level redundancy protection and traffic load sharing. M-LAG is mainly used in dual-homing access networking, improving reliability from the link level to the device level.
[0003] In M-LAG networking, two neighboring physical devices detect the status of their neighbors by connecting a Keep Alive link, that is, exchanging Keep Alive messages to perform dual-active detection when an IPL link fails.
[0004] The two M-LAG devices are also connected through an IPL (Intra-Portal Link) to forward DRCP messages and data messages and synchronize MAC address entries and ARP entries. Therefore, there is no need to synchronize all the information of each member device like an IRF (Intelligent Resilient Framework) / stack system. Therefore, the degree of coupling on the control plane is much smaller than that of a stack.
[0005] The M-LAG interface set on each M-LAG device is connected to the aggregation group of the same external device and belongs to a MAC group; in this way, the external device believes that the message processing and interaction are carried out through the aggregation group, and does not perceive that the other end is an M-LAG system. When the link between the M-LAG interface of one of the M-LAG devices and the external device fails, the fault information is notified to the neighboring M-LAG device through the IPL link interaction protocol. The neighboring M-LAG device on the other end cancels the isolation between the IPP port and the local M-LAG interface, so that the data packets received through the IPP link can continue to be forwarded to the external device through the local M-LAG interface; however, during the entire traffic switching process, due to the cunning communication of the protocol message, there will be a short period of user traffic packet loss. Summary of the invention
[0006] The purpose of the present disclosure is to provide a method and device for quickly switching unicast traffic of a cross-device link aggregation system to avoid packet loss.
[0007] To achieve the above-mentioned purpose, the present disclosure provides a method for quickly switching unicast traffic of a cross-device link aggregation system, the method comprising: setting a backup loopback port of a local cross-device link aggregation M-LAG interface; detecting a failure of an aggregation link connected to the local M-LAG interface; and replacing the local M-LAG interface pointed to by an egress port index in a local Ethernet unicast forwarding table entry with a backup loopback port.
[0008] The above method also includes searching the local Ethernet unicast forwarding table entry according to the received first Ethernet unicast message; searching the backup loopback port according to the egress port index; and sending the first Ethernet unicast message through the backup loopback port.
[0009] The above method also includes receiving the first Ethernet unicast message through the backup loopback port; adding a first fast switching tag tag to the first Ethernet unicast message; and sending the first Ethernet unicast message through the internal control link port IPP.
[0010] In the above method, before detecting the failure of the aggregated link connected to the local M-LAG interface, the method also includes receiving a second Ethernet unicast message with a second fast switching label through an internal control link port IPP; matching a fast switching access control table entry according to the second fast switching label; stripping off the second fast switching label of the second Ethernet unicast message; and sending the second Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
[0011] The above method also includes receiving a third Ethernet unicast message through the IPP; failing to match the fast switching access control table entry; finding another matching local Ethernet unicast forwarding table entry based on the destination MAC address of the third Ethernet unicast message; obtaining the local M-LAG interface pointed to by the egress port index of the other local unicast forwarding table entry, and sending the third Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
[0012] To achieve the above-mentioned purpose, the present disclosure also provides a device for quickly switching unicast traffic of a cross-device link aggregation system, the device comprising: a setting module for setting a backup loopback port of a local cross-device link aggregation M-LAG interface; a detection module for detecting an aggregation link failure connected to the local M-LAG interface; and a forwarding module for replacing the local M-LAG interface pointed to by the egress port index in the local Ethernet unicast forwarding table entry with the backup loopback port.
[0013] In the above device, a setting module is used to set a backup loopback port of the local cross-device link aggregation M-LAG interface; a detection module is used to detect a failure of the aggregation link connected to the local M-LAG interface; and a forwarding module is used to replace the local M-LAG interface pointed to by the egress port index in the local Ethernet unicast forwarding table with the backup loopback port.
[0014] In the above device, the forwarding module is also used to find the local Ethernet unicast forwarding table entry according to the received first Ethernet unicast message; find the backup loopback port according to the output port index; add a first fast switching tag to the first Ethernet unicast message; and send the first Ethernet unicast message through the backup loopback port.
[0015] In the above device, the forwarding module is further used to receive a first Ethernet unicast message through the backup loopback port; add a first fast switching tag tag to the first Ethernet unicast message; and send the first Ethernet unicast message through the internal control link port IPP.
[0016] In the above-mentioned device, the receiving module is used to receive a second Ethernet unicast message with a second fast switching label through the internal control link port IPP; when the detection module does not detect a failure of the aggregated link connected to the local M-LAG interface, the forwarding module is also used to match the fast switching access control table entry according to the second fast switching label; strip off the second fast switching label of the second Ethernet unicast message; and send the second Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
[0017] In the above-mentioned device, the receiving module is also used to receive a third Ethernet unicast message through IPP; the forwarding module is also used to find another matching local Ethernet unicast forwarding table entry based on the third Ethernet unicast message not matching the fast switching access control table entry; based on the destination MAC address of the third Ethernet unicast message, obtain the local M-LAG interface pointed to by the egress port index of the other local unicast forwarding table entry, and send the third Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
[0018] The beneficial effect of the present disclosure is that it optimizes the Ethernet unicast message without packet loss during the M-LAG interface switching process of the M-lag system, thereby improving the forwarding efficiency of the user's traffic. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flow chart of an embodiment of a method for quickly switching unicast traffic in a cross-device link aggregation system provided by the present disclosure;
[0020] Figure 2 A schematic diagram of a fast switching cross-device link aggregation system is provided for the present disclosure;
[0021] Figure 3 A schematic diagram of switching unicast messages across device link aggregation systems is provided for the present disclosure;
[0022] Figure 4 A schematic diagram of an embodiment of a device for setting local congestion mark messages based on port statistics provided by the present disclosure. DETAILED DESCRIPTION
[0023] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present disclosure. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.
[0024] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.
[0025] Figure 1 An embodiment of a method for quickly switching unicast traffic of a cross-device link aggregation system is shown, comprising the following steps:
[0026] Step 101, setting a backup loopback port of a local inter-device link aggregation M-LAG interface;
[0027] Step 102, detecting a failure of an aggregation link connected to a local M-LAG interface;
[0028] Step 103: Replace the local M-LAG interface pointed to by the egress port index in the local Ethernet unicast forwarding table entry with the backup loopback port.
[0029] Figure 1 The beneficial effect of the embodiment is that the Ethernet unicast message is not lost during the M-LAG interface switching process of the M-lag system, and the forwarding efficiency of the user's traffic is improved.
[0030] Figure 2 A schematic diagram of a fast switching cross-device link aggregation system is provided for the present disclosure.
[0031] The IPP ports 213 and 223 of the M-LAG devices 21 and 22 are connected via an IPL link of an Ethernet link aggregation group (LinkAggregation) to complete DRCP negotiation, M-LAG configuration, and M-LAG system configuration on both sides of the M-LAG devices 21 and 22 to form an M-LAG system 20.
[0032] The M-LAG devices 21 and 22 transmit the master / standby negotiation message through the IPL link to complete the master / standby negotiation of the M-LAG system 20. The M-LAG devices 21 and 22 detect the status of the neighbor through the Keep Alive (link), that is, exchange Keep Alive messages to perform dual-active detection when the IPL link fails.
[0033] The links 214 and 224 of the M-LAG device 21 and the M-LAG device 22 respectively connected to the server 23 are aggregated into an inter-device aggregate link. The M-LAG interfaces 211 and 221 of the M-LAG device 21 and the M-LAG device 22 respectively are connected to the server 23 through the local aggregate links 214 and 224.
[0034] The M-LAG device 21 sets the backup loopback port 212 of the local M-LAG interface 211 and sets a fast switching access control table entry for the IPP port 213; wherein the matching item is that the inner VLAN tag is the designated reserved VLAN 2000; and the action item is to strip the inner VLAN tag.
[0035] The M-LAG device 22 sets the backup loopback port 222 of the local M-LAG interface 221 and sets a fast switching access control table entry for the IPP port 22; wherein the matching item is that the inner VLAN tag is the designated reserved VLAN 2000; and the action item is to strip the inner VLAN tag.
[0036] Figure 3 A schematic diagram of switching unicast messages across device link aggregation systems is provided for the present disclosure;
[0037] The M-LAG device 21 detects that the aggregation link 214 connected to the local M-LAG interface 211 fails; the local M-LAG interface 211 pointed to by the egress port index in the local Ethernet unicast forwarding table is replaced with the backup loopback port 212 of the device.
[0038] The M-LAG device 21 receives the Ethernet unicast message 31, finds a matching MAC address entry according to the destination MAC address, and reads the backup loopback port 212 based on the egress port index in the MAC address entry.
[0039] The M-LAG device 21 sends the Ethernet unicast message 31 through the backup loopback port 212 , and then receives the Ethernet unicast message 31 through the backup loopback port 212 .
[0040] The M-LAG device 21 receives the Ethernet unicast message 31 through the backup loopback port 212 ; and adds an inner VLAN 2000 tag to the Ethernet unicast message 31 as a fast switching tag.
[0041] The M-LAG device 21 sends an Ethernet unicast message 31 with a fast switching tag VLAN2000tag through the IPP port 213, and reaches the M-LAG device 22 via the IPL.
[0042] The M-LAG device 22 receives the Ethernet unicast message 31 with the VLAN 2000 tag through the IPP port 223 , and matches the fast switching access control table entry of the IPP port 223 .
[0043] The M-LAG device 22 strips the VLAN 2000 tag of the Ethernet unicast message 31 , and sends the Ethernet unicast message 31 to the virtual device carried by the server 23 through the aggregation link 223 connected to the local M-LAG interface 222 .
[0044] Figure 3 In the example, M-LAG device 21 receives Ethernet unicast message 32, finds a matching MAC address table entry based on the destination MAC address 3, and reads the egress port IPP port 213 based on the egress port index in the MAC address table entry, that is, the MAC address table entry matching the destination MAC address of the Ethernet unicast message is learned and synchronized by M-LAG device 22.
[0045] The M-LAG device 21 sends the Ethernet unicast message 32 through the IPP port 213, and the message reaches the M-LAG device 22 via the IPL.
[0046] The M-LAG device 22 receives the Ethernet unicast message 32 through the IPP port 223; finds the matching MAC address table entry according to the destination MAC address, and reads the aggregated M-LAG interface 222 based on the outbound port index in the MAC address table entry; the M-LAG device 22 sends the Ethernet unicast message 32 to the virtual device carried by the server 23 through the aggregated link 223 connected to the local M-LAG interface 222.
[0047] In the above embodiment, when the M-LAG device 22 detects that the aggregated link 224 connected to the local M-LAG interface 221 fails and the M-LAG device 21 detects that the aggregated link 214 connected to the local M-LAG interface 211 is normal, the M-LAG device 22 quickly switches the Ethernet unicast message sent through the local M-LAG interface 221 to the M-LAG interface 211 of the M-LAG device 21, which is similar to the above Figure 2 , Figure 3 The reveal is the same way.
[0048] Figure 2 , Figure 3The beneficial effect of the embodiment is that the Ethernet unicast message is optimized to prevent packet loss during the M-LAG interface switching process of the M-lag system, the forwarding efficiency of the user's traffic is improved, and the packet loss caused by the long time of exchanging protocol messages and synchronizing MAC address entries during the switching of the M-LAG interface of the M-LAG device is avoided.
[0049] Figure 4 A schematic diagram of a device embodiment of a local congestion mark setting message based on port statistics provided by the present disclosure. The device 40 includes a processor 41, a machine-readable storage medium 42, a switching chip 43, and a network interface 44. The processor 41 executes the setting module 421 by executing the machine-executable instructions recorded in the machine-readable storage medium 42. The switching chip 33 includes at least a receiving module 431, a forwarding module 432, and a detection module 431.
[0050] The setting module 421 is used to set the backup loopback port of the local inter-device link aggregation M-LAG interface; the detection module 433 is used to detect the failure of the aggregation link connected to the local M-LAG interface; the forwarding module 432 is used to replace the local M-LAG interface pointed to by the egress port index in the local Ethernet unicast forwarding table entry with the backup loopback port.
[0051] The forwarding module 432 is further used to find a local Ethernet unicast forwarding table entry according to the received first Ethernet unicast message; find a backup loopback port according to the egress port index; add a first fast switching tag to the first Ethernet unicast message; and send the first Ethernet unicast message through the backup loopback port.
[0052] The forwarding module 432 is further configured to receive a first Ethernet unicast message through the backup loopback port; add a first fast switching tag tag to the first Ethernet unicast message; and send the first Ethernet unicast message through the internal control link port IPP.
[0053] The receiving module 431 is used to receive a second Ethernet unicast message with a second fast switching label through the internal control link port IPP; when the detection module 433 does not detect a failure of the aggregated link connected to the local M-LAG interface, the forwarding module 432 is also used to match the fast switching access control table entry according to the second fast switching label; strip off the second fast switching label of the second Ethernet unicast message; and send the second Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
[0054] The receiving module 431 is also used to receive a third Ethernet unicast message through IPP; the forwarding module 432 is also used to find another matching local Ethernet unicast forwarding table entry based on the destination MAC address of the third Ethernet unicast message based on the third Ethernet unicast message; obtain the local M-LAG interface pointed to by the egress port index of the other local unicast forwarding table entry, and send the third Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
[0055] In the present disclosure, a machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device for storing or containing information (such as executable instructions, data, etc.). For example, any machine-readable storage medium herein may be any type of random access memory (RAM), volatile memory, non-volatile memory, flash memory, storage drive (such as a hard drive), solid-state drive, any type of storage optical disk (such as a CD, DVD, etc.), and similar devices, or a combination thereof. In addition, any machine-readable storage medium herein may be a non-temporary machine-readable storage medium.
[0056] The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for quickly switching unicast traffic in a cross-device link aggregation system, characterized in that: The method comprises: Set the backup loopback port of the local inter-device link aggregation M-LAG interface; Detecting a failure of an aggregation link connected to the local M-LAG interface; The local M-LAG interface pointed to by the egress port index in the local Ethernet unicast forwarding table entry is replaced with the backup loopback port.
2. The method according to claim 1, characterized in that The method further comprises, Find the local Ethernet unicast forwarding table entry according to the received first Ethernet unicast message; Find the backup loopback port according to the outbound port index; The first Ethernet unicast message is sent through the backup loopback port.
3. The method according to claim 2, characterized in that Receiving the first Ethernet unicast message through the backup loopback port; Adding a first fast switching tag tag to the first Ethernet unicast message; The first Ethernet unicast message is sent through the internal control link port IPP.
4. The method according to claim 1, characterized in that: Before detecting a failure of an aggregated link connected to the local M-LAG interface, the method further includes: receiving, via the internal control link port IPP, a second Ethernet unicast message with a second fast switching tag; Matching a fast switching access control table entry according to the second fast switching label; Stripping the second fast switching label of the second Ethernet unicast message; The second Ethernet unicast message is sent through the aggregated link connected to the local M-LAG interface.
5. The method according to claim 3, characterized in that: The method further comprises Receiving a third Ethernet unicast message through the IPP; The fast switching access control table entry is not matched; Find another matching local Ethernet unicast forwarding table entry based on the destination MAC address of the third Ethernet unicast message; The local M-LAG interface pointed to by the outbound port index of the other local unicast forwarding entry is obtained, and the third Ethernet unicast message is sent through the aggregation link connected to the local M-LAG interface.
6. A device for rapidly switching unicast traffic in a cross-device link aggregation system, characterized in that: The device comprises: A setting module is used to set the backup loopback port of the local inter-device link aggregation M-LAG interface; A detection module, used to detect a failure of an aggregation link connected to the local M-LAG interface; The forwarding module is used to replace the local M-LAG interface pointed to by the egress port index in the local Ethernet unicast forwarding table entry with the backup loopback port.
7. The device according to claim 6, characterized in that The forwarding module is further used to find the local Ethernet unicast forwarding table entry according to the received first Ethernet unicast message; find the backup loopback port according to the egress port index; add a first fast switching tag tag to the first Ethernet unicast message; The first Ethernet unicast message is sent through the backup loopback port.
8. The device according to claim 7, characterized in that The forwarding module is further configured to receive the first Ethernet unicast message through the backup loopback port; and add a first fast switching tag to the first Ethernet unicast message; The first Ethernet unicast message is sent through the internal control link port IPP.
9. The device according to claim 6, characterized in that The device further comprises: the receiving module, configured to receive a second Ethernet unicast message with a second fast switching tag through an internal control link port IPP; The detection module does not detect a failure of the aggregated link connected to the local M-LAG interface, and the forwarding module is further used to match a fast switching access control table entry according to the second fast switching label; strip off the second fast switching label of the second Ethernet unicast message; and send the second Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
10. The device according to claim 9, characterized in that The receiving module is further used to receive a third Ethernet unicast message through the IPP; The forwarding module is further used to find another matching local Ethernet unicast forwarding table entry based on the destination MAC address of the third Ethernet unicast message based on the fact that the third Ethernet unicast message does not match the fast switching access control table entry; obtain the local M-LAG interface pointed to by the egress port index of the other local unicast forwarding table entry, and send the third Ethernet unicast message through the aggregated link connected to the local M-LAG interface.
Citation Information
Patent Citations
A traffic forwarding method and a traffic forwarding device
CN109698788A
