A method and device for synchronizing forwarding table entries
By negotiating the real-time synchronization mode of MAC address table entry with the peer DR device, processing and sending MAC address synchronization messages, the problem of long synchronization time interval of MAC address table entry in the DRNI system is solved, which improves synchronization efficiency and reduces IPL links bandwidth usage on it.
Patent Information
- Application Number
- CN202210611442.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-05-31
AI Technical Summary
In the DRNI system, the synchronization time interval between the MAC address table entries between DR devices is long, resulting in a large number of unknown unicast forwarding on the IPL link, occupying bandwidth.
By negotiating the real-time synchronization mode of MAC address table entry with the peer DR device, receiving and processing Ethernet unicast messages with real-time synchronization tags, searching for MAC tables based on the destination MAC address, and generating and sending MAC address synchronization messages to achieve real-time synchronization .
In the DRNI system, the MAC address is actively triggered by broadcasting unicast messages, which reduces bandwidth usage caused by inconsistent MAC address table entries and improves synchronization efficiency.
Smart Images

Figure CN115118660B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to communication technology, and in particular to a method and device for synchronizing forwarding table entries. Background Art
[0002] DRNI (Distributed Resilient Network Interconnect) is a cross-device link aggregation technology based on the IEEE P802.1AX protocol. DRNI virtualizes two physical devices into one device to achieve cross-device link aggregation, thereby providing device-level redundancy protection and traffic load sharing. DRNI is mainly used in dual-homing access networking, improving reliability from the link level to the device level.
[0003] In DRNI networking, two physical devices act as DR (Distributed Relay) devices to detect the status of their neighbors by connecting Keep Alive links, that is, exchanging Keep Alive messages to perform dual-active detection when an IPL link fails.
[0004] The two DR devices are also connected through an Ethernet link aggregation group (Link Aggregation) or a VXLAN tunnel IPL (Intra-Portal Link) to forward DRCP messages and data messages, and synchronize MAC address table entries and ARP table entries. Therefore, it is not necessary to synchronize all the information of each member device like an IRF (Intelligent Resilient Framework) / stack system, so the degree of coupling on the control plane is much smaller than that of a stack. However, the hardware MAC address table entries learned by the hardware of each DR device need to be synchronized to the software MAC address table of the device first, and then DRCP messages for synchronizing the software MAC address table entries are generated regularly and sent to the opposite DR device through the IPL link. The time interval for DR devices to synchronize software MAC address table entries through DRCP messages is relatively long. The MAC address table entries of the two DR devices are not synchronized for a period of time, resulting in a large number of unknown unicast forwardings on the IPL link occupying the IPL link bandwidth. Summary of the invention
[0005] The purpose of the present application is to provide a forwarding table synchronization method and device, where a DR device actively triggers a peer end to synchronize MAC address table entries in a timely manner.
[0006] To achieve the above-mentioned purpose, the present application provides a forwarding table entry synchronization method, which includes: negotiating a MAC address table entry real-time synchronization mode with a distributed aggregation DR device at the opposite end; receiving an Ethernet unicast message with a table entry real-time synchronization mark through an internal control link; searching the MAC table based on the destination MAC address of the Ethernet unicast message with the table entry real-time synchronization mark; when a MAC address table entry matching the destination MAC address of the unicast message is found and the negotiated MAC address table entry real-time synchronization mode is a single MAC address real-time synchronization mode, generating a MAC address synchronization message with the destination MAC address; and sending a MAC address synchronization message to the opposite DR device through the internal control link.
[0007] To achieve the above-mentioned purpose, the present application also provides a forwarding table entry synchronization device, wherein the device includes: a negotiation module, which is used to negotiate a MAC address table entry real-time synchronization mode with a distributed aggregation DR device at the opposite end; a receiving module, which is used to receive an Ethernet unicast message with a table entry real-time synchronization mark through an internal control link; a switching module, which searches the MAC table based on the destination MAC address of the Ethernet unicast message with the table entry real-time synchronization mark, and notifies the synchronization module of the MAC address table entry that matches the destination MAC address of the unicast message; a synchronization module, which is used to generate a first MAC address synchronization message with a destination MAC address based on the negotiated MAC address table entry real-time synchronization mode being a single MAC address real-time synchronization mode; and a sending module, which is used to send the first MAC address synchronization message through the internal control link.
[0008] The beneficial effect of the present application is that, within the DRNI system, a unicast message that needs to be broadcast is used to actively trigger the DR device at the other end to initiate MAC address synchronization to the current device. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flowchart of an embodiment of a forwarding table entry synchronization method provided by the present application;
[0010] Figure 2A-2B A schematic diagram of MAC address synchronization in a distributed elastic network interconnection system provided by this application;
[0011] Figure 3 A schematic diagram of an embodiment of a forwarding table synchronization device provided by the present application. DETAILED DESCRIPTION
[0012] 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 application. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.
[0013] 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.
[0014] Figure 1 The process of the forwarding table entry synchronization method embodiment provided in this application includes:
[0015] Step 101: negotiate with the peer distributed aggregation DR device on the real-time synchronization mode of MAC address table entries.
[0016] Step 102: Receive an Ethernet unicast message with a table entry real-time synchronization flag through an internal control link.
[0017] Step 103: Search the MAC table based on the destination MAC address of the Ethernet unicast message with the entry real-time synchronization flag.
[0018] Step 104: When a MAC address table entry matching the destination MAC address of the unicast message is found and the negotiated MAC address table entry real-time synchronization mode is a single MAC address real-time synchronization mode, a MAC address synchronization message with the destination MAC address is generated.
[0019] Step 105: Send a MAC address synchronization message to the peer DR device through the internal control link.
[0020] Figure 1 The beneficial effect of the illustrated embodiment is that, within the DRNI system, the unicast message to be broadcast is used to actively trigger the DR device at the opposite end to initiate MAC address synchronization to the local device.
[0021] Figure 2A-2B A schematic diagram of MAC address synchronization within DRNI provided for this application. Figure 2A In a DRNI (Distributed Resilient Network Interconnect) network, DR (Distributed Resilient) devices 21 and 22 are virtualized into one device at the aggregation level to achieve cross-device link aggregation, thereby providing device-level redundancy protection and traffic load sharing.
[0022] DR devices 21 and 22 are neighbors, and the DR interfaces (Distributed Relay interface) 21a and 22a of DR devices 21 and 22 belong to the same DR group (Distributed-Relay group). The IPP ports (not shown) of DR devices 21 and 22 are interconnected through IPL (Intra-Portal Link). DR devices 21 and 22 regularly exchange DRCP (Distributed Relay Control Protocol) messages through the IPL link. DR devices 21 and 22 also regularly exchange Keep alive messages through the Keepalive link.
[0023] DR devices 21 and 22 send DRCP message 201 to negotiate the MAC address table real-time synchronization mode, and notify the MAC address table real-time synchronization mode set by the device as a single MAC address real-time synchronization mode or a global MAC address real-time synchronization mode. The negotiation between DR devices 21 and 22 can be initiated by the master device or DR devices 21 and 22 can notify each other when aggregating virtual DRNI, which is not limited in this application.
[0024] DR devices 21 and 22 locally set and add entries to synchronize and mark ACL (Access Control List) entries in real time, wherein the matching entry is an unknown unicast Ethernet message sent through IPL, and the action item is to add entries to synchronize and mark UB in real time and send it through the IPP port.
[0025] Figure 2B In the example, the terminal Sever1 sends the Ethernet unicast message 202 to the terminal Server2 to the DR device 21. The DR device 21 does not find a MAC address table entry that matches the destination MAC address of the Ethernet unicast message 202 in the local MAC address table.
[0026] DR device 21 marks the ACL table entry in real-time synchronization through the table entry, and adds the table entry real-time synchronization mark to the Ethernet unicast message 202. The IPP link between DR devices 21 and 22 is an Ethernet link aggregation group. DR device 21 selects a member link from the Ethernet link aggregation group and sends the Ethernet unicast message 202 with the UB mark through the Ethernet port of the selected member link. The IPP link between DR devices 21 and 22 is a VXLAN tunnel. DR device 21 encapsulates the Ethernet unicast message 202 with the UB mark into a VXLAN unicast message according to the VXLAN tunnel port as the IPP.
[0027] DR device 21 may send an Ethernet unicast message 202 to Server 2 via a local member port connected to the terminal DR interface.
[0028] DR device 22 receives Ethernet unicast message 202 with UB mark through IPL, or receives Ethernet unicast message 202 encapsulated with UB mark, and copies a copy of Ethernet unicast message 202 with UB mark to CPU according to the real-time synchronization ACL table entry of the table entry. DR device 22 searches the MAC table based on the destination MAC address of unicast Ethernet message 202; when a MAC address table entry matching the destination MAC address of the unicast message is found, in addition to sending unicast Ethernet message 202 to terminal Sever3, MAC address synchronization message 202 is also generated according to the negotiated MAC address table entry real-time synchronization mode.
[0029] When the MAC address table entry real-time synchronization mode negotiated by the DR devices 21 and 22 is the single MAC address real-time synchronization mode, the DR device 22 generates a MAC address synchronization message 203 carrying the destination MAC address of the unicast Ethernet message 202 .
[0030] When the MAC address table entry real-time synchronization mode negotiated by the DR devices 21 and 22 is the global MAC address real-time synchronization mode, the DR device 22 generates a MAC address synchronization message 203 carrying all local MAC address table entries.
[0031] The DR device 22 sends a MAC address synchronization message 203 to the peer DR device 201 through the internal control link.
[0032] The DR device 21 receives the MAC address synchronization message 203, records each MAC address of the MAC address synchronization message 203 in a local MAC address table entry and sets the egress port to the IPP port.
[0033] After DR device 21 completes MAC address synchronization according to the MAC address synchronization message 203 of DR device 22, it initiates a reverse MAC address synchronization operation, generates a MAC address synchronization message 204 with all local MAC address table entries, and sends it to DR device 22 through the IPL link; DR device 22 then records each MAC address of the MAC address synchronization message 204 in the local MAC address table entry and sets the egress port to the IPP port, thereby completing the MAC address synchronization between the DR devices of DRNI.
[0034] Figure 3 This is a schematic diagram of an embodiment of a forwarding table synchronization device provided by the present application. The device 30 at least includes: a network interface, a switching chip, a CPU and a memory. The switching chip at least includes a receiving module, a switching module, a synchronization module and a sending module.
[0035] A negotiation module is used to negotiate the real-time synchronization mode of MAC address table entries with the opposite distributed aggregation DR device; a receiving module is used to receive Ethernet unicast messages with table entry real-time synchronization marks through an internal control link; a switching module searches the MAC table based on the destination MAC address of the Ethernet unicast message with the table entry real-time synchronization mark, and notifies the synchronization module of the MAC address table entry that matches the destination MAC address of the unicast message; a synchronization module is used to generate a first MAC address synchronization message with a destination MAC address based on the negotiated MAC address table entry real-time synchronization mode being a single MAC address real-time synchronization mode; and a sending module is used to send the first MAC address synchronization message through an internal control link.
[0036] The synchronization module is also used to generate a second MAC address synchronization message with all local MAC address table entries based on the negotiated MAC address table entry real-time synchronization mode being the global MAC address real-time synchronization mode; the sending module is also used to send the second MAC address synchronization message through the internal control link.
[0037] The receiving module is also used to receive Ethernet unicast messages through the local Ethernet port; the switching module is also used to search the MAC address table based on the destination MAC address of the received Ethernet unicast message, determine that a matching MAC address table entry for the destination MAC address of the Ethernet unicast message is not found, and add a real-time synchronization mark to the Ethernet unicast message; the sending module is also used to send the Ethernet unicast message with the real-time synchronization mark added through the internal control link.
[0038] The receiving module is also used to receive the second MAC address synchronization message sent by the opposite DR device through the internal control link; the synchronization module is also used to record each MAC address carried by the second MAC address synchronization message in the MAC address table and set the output interface to the internal control link port.
[0039] The synchronization module is further used to generate a third MAC address synchronization message with all local MAC address table entries; the sending module sends the third MAC address synchronization message to the opposite DR device through the internal control link.
[0040] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A forwarding table synchronization method, applied to a distributed resilient network interconnect (DRNI) system, characterized in that: The method comprises: Negotiate the real-time synchronization mode of MAC address entries with the peer distributed aggregation DR device; Receive Ethernet unicast messages with table entry real-time synchronization flags through an internal control link; Searching the MAC table based on the destination MAC address of the Ethernet unicast message with the table entry real-time synchronization mark; When a MAC address table entry matching the destination MAC address of the unicast message is found and the negotiated MAC address table entry real-time synchronization mode is a single MAC address real-time synchronization mode, a first MAC address synchronization message with the destination MAC address is generated; The first MAC address synchronization message is sent to the opposite DR device through the internal control link.
2. The method according to claim 1, characterized in that The method further comprises: When a MAC address table entry matching the destination MAC address of the unicast message is found and the negotiated MAC address table entry real-time synchronization mode is the global MAC address real-time synchronization mode, a second MAC address synchronization message with all local MAC address table entries is generated; The second MAC address synchronization message is sent to the opposite DR device through the internal control link.
3. The method according to claim 1, characterized in that The method further comprises: Receive Ethernet unicast messages through the local Ethernet port; Searching the MAC address table based on the destination MAC address of the received Ethernet unicast message; Determining that no matching MAC address table entry of the destination MAC address of the received Ethernet unicast message is found, and adding the real-time synchronization mark to the received Ethernet unicast message; Ethernet unicast messages with real-time synchronization tags added are sent over the internal control link.
4. The method according to claim 3, characterized in that The method further comprises: Receiving, through the internal control link, a second MAC address synchronization message sent by the opposite DR device; Each MAC address carried by the second MAC address synchronization message is recorded in the MAC address table and the outgoing interface is set as the internal control link port.
5. The method according to claim 4, characterized in that Generate a third MAC address synchronization message with all local MAC address entries; The third MAC address synchronization message is sent to the opposite DR device through the internal control link.
6. A forwarding table synchronization device, applied to a distributed elastic network interconnection DRNI system, characterized in that: The device comprises: Negotiation module, used to negotiate the real-time synchronization mode of MAC address table entries with the peer distributed aggregation DR device; A receiving module, used for receiving an Ethernet unicast message with a table entry real-time synchronization mark through an internal control link; The switching module searches the MAC table based on the destination MAC address of the Ethernet unicast message with the table entry real-time synchronization mark, and notifies the synchronization module of the MAC address table entry matching the destination MAC address of the unicast message; The synchronization module is used to generate a first MAC address synchronization message with the destination MAC address based on the negotiated MAC address table entry real-time synchronization mode being a single MAC address real-time synchronization mode; A sending module is used to send the first MAC address synchronization message through the internal control link.
7. The device according to claim 6, characterized in that The synchronization module is further used to generate a second MAC address synchronization message with all local MAC address table entries based on the negotiated MAC address table entry real-time synchronization mode being a global MAC address real-time synchronization mode; The sending module is further used to send the second MAC address synchronization message through the internal control link.
8. The device according to claim 6, characterized in that The receiving module is further used to receive Ethernet unicast messages through a local Ethernet port; The switching module is further configured to search the MAC address table based on the destination MAC address of the received Ethernet unicast message, determine that a matching MAC address table entry for the destination MAC address of the Ethernet unicast message is not found, and add the real-time synchronization mark to the Ethernet unicast message; The sending module is also used to send the Ethernet unicast message with the real-time synchronization mark added through the internal control link.
9. The device according to claim 8, characterized in that The receiving module is further configured to receive, through the internal control link, a second MAC address synchronization message sent by the opposite DR device; The synchronization module is further configured to record each MAC address carried by the second MAC address synchronization message in the MAC address table and set the outgoing interface as an internal control link port.
10. The device according to claim 9, characterized in that The synchronization module is further used to generate a third MAC address synchronization message with all local MAC address table entries; The sending module sends the third MAC address synchronization message to the opposite DR device through the internal control link.
