CN114567522A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN114567522A
CN114567522A CN202210164048.0A CN202210164048A CN114567522A CN 114567522 A CN114567522 A CN 114567522A CN 202210164048 A CN202210164048 A CN 202210164048A CN 114567522 A CN114567522 A CN 114567522A
Authority
CN
China
Prior art keywords
layer interface
table entry
next hop
internal control
control link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210164048.0A
Other languages
Chinese (zh)
Other versions
CN114567522B (en
Inventor
程剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN202210164048.0A priority Critical patent/CN114567522B/en
Publication of CN114567522A publication Critical patent/CN114567522A/en
Application granted granted Critical
Publication of CN114567522B publication Critical patent/CN114567522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a message forwarding method and device. The message forwarding method comprises the steps of setting a three-layer interface of a public network and a three-layer interface of an internal control link as a main route and a standby route with the same priority; the internal control link three-layer interface is connected with the neighbor of the distributed elastic network interconnection system through the internal control link; creating a first unicast next hop hardware table entry for recording a three-layer interface of a public network and a second unicast next hop hardware table entry for recording a three-layer interface of an internal control link; generating an equivalent multipath table item pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance; wherein, the equivalent multipath table item points to the index of the first unicast next-hop hardware table item; and sending VXLAN unicast messages sent by the virtual forwarding instance through each VXLAN tunnel through a public network three-layer interface.

Description

Message forwarding method and device
Technical Field
The present application relates to communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
DRNI (Distributed Resilient Network Interconnect) virtualizes two physical devices into one device to implement cross-device link aggregation, and is applied to dual-homing access networking. In DRNI networking, two physical devices are connected through an IPL (Intra-Portal Link), DRCP messages and messages are forwarded, and MAC address table entries and ARP table entries are synchronized; besides an IPL link, the two devices also have a Keep-alive link for detecting the state of a neighbor.
When two devices of the DRNI system both start the distributed aggregation mode of EVPN (Ethernet Virtual Private Network) and configure the same Virtual VTEP (VXLAN Tunnel End Point) address, the two devices of the DRNI system as VTEPs send two three types of routes respectively, that is, one route issued by the device IP and the route sent by the IP address of the Virtual VTEP, these four routes are announced to each remote VTEP through the reflector spine, each remote VTEP determines that two routes sent by the IP address of the Virtual VTEP are repeated, and then selects three effective routes to establish three VXLAN tunnels to connect the two devices of the DRNI system and the Virtual VTEP respectively. When any device of the DRNI system is connected with a three-layer interface fault of an EVPN public network, deleting a high-priority route and a hardware forwarding table item of the three-layer interface of the fault public network, recalculating a low-priority route of the three-layer interface serving as an IPP (Intra-Portal Port, internal control link Port), and then updating the hardware forwarding table item; inside the DRNI system, there is an interruption process from existence to nonexistence of the route to each peer of the VTEP, and then from nonexistence to existence, which results in packet loss, and when the number of peer VTEPs of the VXLAN tunnel of the DRNI device is larger, the number of hardware forwarding table entries of the VXLAN tunnel to be refreshed is larger, and the packet loss time is longer.
Disclosure of Invention
The application aims to provide a message forwarding method and device, wherein a public network outgoing interface and an internal control link intersection are respectively provided with main and standby routes with the same priority and hardware forwarding table entries of the main and standby routes are generated, so that a public network three-layer interface fault is avoided, and route interruption is avoided.
In order to achieve the above object, the present application provides a packet forwarding method, including: setting the three-layer interface of the public network and the three-layer interface of the internal control link as a main route and a standby route with the same priority; the internal control link three-layer interface is connected with the neighbor of the distributed elastic network interconnection system through the internal control link; creating a first unicast next hop hardware table entry for recording a three-layer interface of a public network and a second unicast next hop hardware table entry for recording a three-layer interface of an internal control link; generating an equivalent multipath table item pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance; wherein, the equivalent multipath table item points to the index of the first unicast next-hop hardware table item; and sending VXLAN unicast messages sent by the virtual forwarding instance through each VXLAN tunnel through a public network three-layer interface.
In order to achieve the above object, the present application further provides a message forwarding device, including: the setting module is used for setting the three-layer interface of the public network and the three-layer interface of the internal control link as a main route and a standby route with the same priority; the internal control link three-layer interface is connected with the neighbor of the distributed elastic network interconnection system through the internal control link; the table entry module is used for creating a first unicast next hop hardware table entry for recording a three-layer interface of a public network and a second unicast next hop hardware table entry for recording a three-layer interface of an internal control link; generating an equivalent multipath table item pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance; wherein, the equivalent multipath table item points to the index of the first unicast next-hop hardware table item; and the forwarding module is used for sending the VXLAN unicast message sent by the virtual forwarding instance through each VXLAN tunnel through a public network three-layer interface.
The method has the advantages that the main and standby routes with the same priority are respectively set at the public network outgoing interface and the internal control link intersection, and the hardware forwarding table entry of the main and standby routes is generated, so that when the public network three-layer interface fails, the route interruption caused by recalculation of the low-priority route after deletion of the high-priority route is not needed.
Drawings
Fig. 1 is a flowchart of an embodiment of message forwarding provided in the present application;
fig. 2 is a schematic diagram of application of a DRNI system in an EVPN network;
fig. 3A is a schematic diagram of a primary route forwarding VXLAN unicast message of the DRNI system in fig. 2;
fig. 3B is a schematic diagram of the DRNI system in fig. 2 for forwarding the VXLAN multicast packet by the primary route;
fig. 4A is a schematic diagram of forwarding a VXLAN unicast message by a fast route switching backup route of the DRNI system in fig. 2;
fig. 4B is a schematic diagram of forwarding a VXLAN multicast message by a fast route switching backup route of the DRNI system in fig. 2;
fig. 5 is a schematic diagram of a message forwarding device provided in the present application.
Detailed Description
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" are inclusive of the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
The embodiment of the message forwarding method provided by the present application shown in fig. 1 includes the following steps:
step 101, setting a public network three-layer interface and an internal control link three-layer interface as a main route and a standby route with the same priority; the internal control link three-layer interface is connected with the neighbor of the distributed elastic network interconnection system through the internal control link;
step 102, creating a first unicast next hop hardware table entry for recording a three-layer interface of a public network and a second unicast next hop hardware table entry for recording a three-layer interface of an internal control link;
step 103, generating an equivalent multipath table entry pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance, where the equivalent multipath table entry points to an index of a first unicast next-hop hardware table entry;
and step 104, sending the VXLAN unicast message sent by the virtual forwarding instance through each VXLAN tunnel through a public network three-layer interface.
The method and the device have the advantages that the main and standby routes with the same priority are respectively set at the public network outgoing interface and the internal control link intersection, and the hardware forwarding table entries of the main and standby routes are generated, so that route interruption caused by the failure of the public network three-layer interface is avoided.
The distributed aggregation mode of the EVPN is started on two VTEPs, and after the same virtual VTEP address IPv is configured for the two VTEPs, the two VTEPs are virtualized into one VTEP device, and the virtual VTEP address is adopted by the device as a source end address to automatically establish a VXLAN tunnel with a far-end VTEP, so that the influence of single point failure of the VTEP on the network is avoided.
Fig. 2 is a schematic diagram of application of a DRNI system in an EVPN network. In fig. 2, the server1 is connected to the DRNI system devices leaf1 and leaf2 through DR interfaces (Distributed Relay interface, Distributed aggregation interface), respectively. The device leaf1 configures the IP address IP1 and the virtual VTEP address IPv of the device; the leaf2 configures the IP address IP2 of the device and the virtual VTEP address IPv.
Leaf1 and Leaf2 send two three types of routes, respectively, advertised to peer VTEP devices Leaf3 and Leaf4 via reflector spine. Taking leaf3 as an example, device leaf3 receives 4 routes, finds that two routes of the IP address IPv arriving at the virtual VTEP are repeated, and leaf3 establishes three VXLAN tunnels with the IP address IP1, IP2, IPv of device leaf3 and the three issued routes respectively, using IP3 as destination IP addresses. Device Leaf4 issues route setup three VXLAN tunnels to devices Leaf1, Leaf2, and to the virtual VTEP in the same manner. Leaf1 establishes four VXLAN tunnels Tunnel1-Tunnel4 to Leaf3, Leaf4, respectively, in IP1 and IPv. Similarly, Leaf2 establishes four VXLAN tunnels to Leaf3, Leaf4, respectively, in IP2 and IPv.
The device leaf1 connects to the physical port1 (not shown) of the public network reflector Spine to create a triple-layer virtual interface int VLAN100, configures a single triple-layer interface int VLAN10 on the port (not shown) connected to the IPL, and configures an IPP (DRNI intra-port) on the triple-layer interface int VLAN 10. The device leaf1 configures two next hops int VLAN100 and int VLAN10 with the same priority of fast-reroute (fast-reroute), the int VLAN100 is the next hop of the main route, and the IPP three-layer interface int VLAN10 is the next hop of the standby route.
On the device leaf1, creating a unicast next hop hardware table entry NH _ UC _1 for recording the int VLAN100 and a unicast next hop hardware table entry NH _ UC _2 for recording the internal control link three-layer interface int VLAN 10; generating an Equal Cost Multipath (ECMP) entry pointing to the destination IP address of each VXLAN Tunnel of tunnels 1-4 in the VSI; wherein the equal cost multipath table entry points to the index NH _ UC _1 of the first unicast next hop hardware table entry.
On the device Leaf1, broadcast next hop hardware table entries NH _ BC _11, NH _ BC _21, NH _ BC _31, and NH _ BC _41 corresponding to the public network three-layer interface int VLAN100 and broadcast next hop hardware table entries NH _ BC _12, NH _ BC _22, NH _ BC _32, and NH _ BC _42 corresponding to the IPP three-layer interface int VLAN10 are created for each VXLAN Tunnel of tunnels 1-Tunnel4 in the VSI.
In a multicast table (IP MC) of VSI of leaf1, recording indexes of a broadcast next hop table entry of a public network three-layer interface int VLAN100 and a broadcast next hop table entry of an IPP three-layer interface int VLAN10 of each VXLAN Tunnel, that is, recording NH _ BC _11 and NH _ BC _12 of Tunnel 1; recording NH _ BC _21 and NH _ BC _22 of Tunnele 2; recording NH _ BC _31 and NH _ BC _32 of Tunnel 3; and NH _ BC _41 and NH _ BC _42 recorded for Tunnel 4.
Setting the broadcast next hop hardware table entries NH _ BC _11, NH _ BC _21, NH _ BC _31 and NH _ BC _41 of the public network three-layer interface int VLAN100 corresponding to each VXLAN Tunnel of tunnels 1-Tunnel4 to be in a forwarding state, and setting the broadcast next hop hardware table entries NH _ BC _12, NH _ BC _22, NH _ BC _32 and NH _ BC _42 of the corresponding IPP three-layer interface int VLAN10 to be in a blocking state.
Fig. 3A is a schematic diagram of a primary route of the DRNI system in fig. 2 forwarding a VXLAN unicast message; as shown in fig. 3A, the leaf1 receives the ethernet unicast message from the Server1, finds the corresponding VXLAN Tunnel1 according to the destination MAC address, and encapsulates the ethernet unicast message based on the VXLAN Tunnel 1; and finding an ECMP table entry according to the IP address of the outer layer target tunnel of the encapsulated VXLAN unicast message, finding a unicast next-hop table entry NH _ UC _1 according to the ECMP table entry, and sending the table entry through a physical port1 of a public network three-layer interface int VLAN100 of the unicast next-hop table entry NH _ UC _ 1.
Fig. 3B is a schematic diagram of the DRNI system in fig. 2 for forwarding the VXLAN multicast packet by the primary route; as shown in fig. 3B, the leaf1 receives the broadcast/multicast packet from the Server1, determines the bound VSI according to the service instance corresponding to the ingress interface, searches the IP MC table of the VSI, and finds the broadcast next hop entries NH _ BC _11, NH _ BC _21, NH _ BC _31, NH _ BC _41, NH _ BC _12, NH _ BC _22, NH _ BC _32, and NH _ BC _42 according to the IP MC table, but only sends the broadcast next hop entries NH _ BC _11, NH _ BC _21, NH _ BC _31, and NH _ BC _41 through the physical port1 of the public network triple-layer interface int 100 of the broadcast next hop VLAN. Since the broadcast next hop entries NH _ BC _12, NH _ BC _22, NH _ BC _32, and NH _ BC _42 are in the blocking state, they are not forwarded through them.
In fig. 2, fig. 3A, and fig. 3B, the public network egress interface and the internal control link interface respectively set the master/slave routes with the same priority and generate the hardware forwarding table entries of the master/slave routes, and preferentially forward the broadcast/multicast traffic in the VSI through the hardware forwarding table entry of the master route.
When the physical port1 of the public network egress interface fails, the leaf1 updates the index of the ECMP table entry pointing to the NH _ UC _2 unicast next-hop hardware table entry, sets the broadcast next-hop hardware table entries NH _ BC _11, NH _ BC _21, NH _ BC _31, and NH _ BC _41 of the public network three-layer interface int VLAN100 corresponding to each VXLAN Tunnel of the tunnels 1-4 to the blocking state, and sets the broadcast next-hop hardware table entries NH _ BC _41, NH _ BC _12, NH _ BC _22, NH _ BC _32, and NH _ BC _42 corresponding to the IPP three-layer interface int VLAN10 to the forwarding state.
Fig. 4A is a schematic diagram of forwarding a VXLAN unicast message by a fast route switching backup route of the DRNI system in fig. 2; as shown in fig. 4A, when the leaf1 receives the ethernet unicast message from the Server1, the corresponding VXLAN Tunnel1 is found according to the destination MAC address, and the ethernet unicast message is encapsulated based on the VXLAN Tunnel 1; and searching an ECMP table entry according to the IP address of the outer layer target tunnel of the encapsulated VXLAN unicast message, searching a unicast next-hop table entry NH _ UC _2 according to the ECMP table entry, and then sending the table entry to a DR neighbor leaf2 through an IPP three-layer interface int VLAN10 of the unicast next-hop table entry NH _ UC _ 2.
Fig. 4B is a schematic diagram of forwarding a VXLAN multicast message by a main route of the DRNI system in fig. 2; as shown in fig. 4B, the leaf1 receives the broadcast message/multicast message from the Server1, searches for a multicast group address of the VSI, encapsulates the broadcast/multicast message into a VXLAN multicast message/VXLAN multicast message (VXLAN multicast message), finds out an IP MC table of the VSI according to the outer VSI multicast group address, finds out broadcast next-hop table entries NH _ BC _11, NH _ BC _21, NH _ BC _31, NH _ BC _41, NH _ BC _12, NH _ BC _22, NH _ BC _32, and NH _ BC _42 according to the IP MC table, but sends the broadcast next-hop table entries to the DR neighbor leaf2 only through the IPP ports of the IPP triple-layer interface int VLAN100 in the forwarding states NH _ BC _12, NH _ BC _22, NH _ BC _32, and NH _ BC _42, and forwards the broadcast next-hop table entries in different over-blocking states.
In this application, the processing of the leaf2 device of the DRNI system is the same as that of the leaf1, and is not described again.
In the embodiments of fig. 3A and 3B, the leaf sets the three-layer interface of the public network and the three-layer interface of the IPP to be the master and standby routes with the same priority, and does not need to recalculate the routes, thereby avoiding route interruption caused by a failure of the three-layer interface of the public network in the prior art from 1 to 0, generating a hardware forwarding table entry of a unicast next hop and a broadcast next hop of the standby route, and avoiding a long-time terminal caused by a hardware forwarding table entry of a new route required to calculate from 0 to 1 again in the prior art.
The embodiments of fig. 4A and 4B of the present application show that, after a fault occurs, the present application may quickly switch the flow to the standby route, and avoid saving forwarding interruption through the hardware forwarding table entry of the calculated standby route.
It should be noted that, in the prior art, the more VXLAN tunnels are established in the VSI by the leaf1/leaf2 of the DRNI system, the longer the forwarding interruption time caused by the route interruption, because the unicast and broadcast next-hop hardware forwarding entries of each VXLAN tunnel need to be refreshed. The hardware forwarding table entries of leaf1/leaf2 of the DRNI system of the present application have been calculated in advance, and the number of VXLAN tunnels created by leaf1/leaf2 in the VSI does not affect the unicast of each VXLAN tunnel and the refresh time of broadcasting the next-hop hardware forwarding table entry.
Fig. 5 is a schematic diagram of a message forwarding device provided in the present application, where the device includes a setting module 510, an entry module 520, a detection module 530, and a forwarding module 540.
A setting module 510, configured to set the three-layer interface of the public network and the three-layer interface of the internal control link as a primary route and a backup route with the same priority; the internal control link three-layer interface is connected with the neighbors of the distributed elastic network interconnection system through the internal control link; a table entry module 520, configured to create a first unicast next hop hardware table entry recording a three-layer interface of a public network and a second unicast next hop hardware table entry recording a three-layer interface of an internal control link; generating an equivalent multipath table item pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance; wherein, the equivalent multipath table item points to the index of the first unicast next-hop hardware table item; and the forwarding module 540 is configured to send the VXLAN unicast packet sent by the virtual forwarding instance through each VXLAN tunnel through a public network three-layer interface.
The table entry module 520 is further configured to create, for each VXLAN tunnel in the virtual forwarding instance, a first broadcast next hop hardware table entry corresponding to the public network three-layer interface and a second broadcast next hop hardware table entry corresponding to the internal control link three-layer interface; recording indexes of a first broadcast next hop hardware table entry and a second broadcast next hop hardware table entry of each VXLAN tunnel in a forwarding instance; setting a first broadcast next hop hardware table entry of each VXLAN tunnel corresponding to a public network three-layer interface as a forwarding state, and setting a second broadcast next hop hardware table entry corresponding to an internal control link three-layer interface as a blocking state; the forwarding module 540 is further configured to send the VXLAN multicast packet of the virtual forwarding instance sent through each VXLAN tunnel through the public network three-layer interface.
A detecting module 530, configured to detect a failure of a three-layer interface of a public network; a table entry module 520, configured to update an index of the equivalent multipath table entry pointing to the second unicast next hop hardware table entry; and a forwarding module 540, configured to send a VXLAN unicast message sent by the virtual forwarding instance through each VXLAN tunnel through an internal control link three-layer interface.
The table entry module 520 is further configured to set a first broadcast next hop hardware table entry of each VXLAN tunnel corresponding to the public network three-layer interface to a blocking state, and set a second broadcast next hop hardware table entry of each VXLAN tunnel corresponding to the internal control link three-layer interface to a forwarding state; the forwarding module 540 sends the VXLAN multicast message of the virtual forwarding instance sent through each VXLAN tunnel through the internal control link three-layer interface.
The present invention is not limited to the above embodiments, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A message forwarding method is characterized in that the method comprises the following steps:
setting the three-layer interface of the public network and the three-layer interface of the internal control link as a main route and a standby route with the same priority; the internal control link three-layer interface is connected with the neighbor of the distributed elastic network interconnection system through the internal control link;
creating a first unicast next hop hardware table entry for recording the three-layer interface of the public network and a second unicast next hop hardware table entry for recording the three-layer interface of the internal control link;
generating an equivalent multipath table item pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance; wherein the equal cost multipath table entry points to an index of the first unicast next hop hardware table entry;
and sending VXLAN unicast messages sent by the virtual forwarding instance through each VXLAN tunnel through the public network three-layer interface.
2. The method according to claim 1, characterized in that it comprises:
creating a first broadcast next hop hardware table entry corresponding to the public network three-layer interface and a second broadcast next hop hardware table entry corresponding to the internal control link three-layer interface for each VXLAN tunnel in the virtual forwarding instance;
recording indexes of a first broadcast next hop hardware table entry and a second broadcast next hop hardware table entry of each VXLAN tunnel in the forwarding instance;
setting a first broadcast next hop hardware table entry corresponding to the public network three-layer interface of each VXLAN tunnel as a forwarding state, and setting a second broadcast next hop hardware table entry corresponding to the internal control link three-layer interface as a blocking state;
and sending the VXLAN multicast message of the virtual forwarding instance sent by each VXLAN tunnel through the public network three-layer interface.
3. The method of claim 2, further comprising:
detecting the failure of the three-layer interface of the public network;
updating the index of the equivalent multipath table item pointing to the second unicast next hop hardware table item;
and sending VXLAN unicast messages sent by the virtual forwarding instance through each VXLAN tunnel to the neighbor through the internal control link three-layer interface.
4. The method of claim 3, further comprising:
setting a first broadcast next hop hardware table entry of each VXLAN tunnel corresponding to the public network three-layer interface to be in a blocking state, and setting a second broadcast next hop hardware table entry corresponding to the internal control link three-layer interface to be in a forwarding state;
and sending the VXLAN multicast message of the virtual forwarding instance sent by each VXLAN tunnel to the neighbor through the internal control link three-layer interface.
5. A message forwarding device, the device comprising:
the setting module is used for setting the three-layer interface of the public network and the three-layer interface of the internal control link as a main route and a standby route with the same priority; the internal control link three-layer interface is connected with the neighbor of the distributed elastic network interconnection system through the internal control link;
the table entry module is used for creating and recording a first unicast next hop hardware table entry of the public network three-layer interface and recording a second unicast next hop hardware table entry of the internal control link three-layer interface; generating an equivalent multipath table item pointing to a destination IP address of each VXLAN tunnel in the virtual forwarding instance; wherein the equal cost multipath table entry points to an index of the first unicast next hop hardware table entry;
and the forwarding module is used for sending the VXLAN unicast message sent by the virtual forwarding instance through each VXLAN tunnel through the public network three-layer interface.
6. The apparatus of claim 5,
the table entry module is further configured to create, for each VXLAN tunnel in the virtual forwarding instance, a first broadcast next hop hardware table entry corresponding to the public network three-layer interface and a second broadcast next hop hardware table entry corresponding to the internal control link three-layer interface; recording indexes of a first broadcast next hop hardware table entry and a second broadcast next hop hardware table entry of each VXLAN tunnel in the forwarding instance; setting a first broadcast next hop hardware table entry of each VXLAN tunnel corresponding to the public network three-layer interface as a forwarding state, and setting a second broadcast next hop hardware table entry corresponding to the internal control link three-layer interface as a blocking state;
the forwarding module is further configured to send the VXLAN multicast packet of the virtual forwarding instance sent through each VXLAN tunnel through the public network three-layer interface.
7. The apparatus of claim 6,
the detection module is used for detecting the fault of the three-layer interface of the public network;
the table entry module is configured to update an index of the equal cost multipath table entry pointing to the second unicast next-hop hardware table entry;
and the forwarding module is configured to send a VXLAN unicast message sent by the virtual forwarding instance through each VXLAN tunnel through the internal control link three-layer interface.
8. The apparatus of claim 7, further comprising:
the table entry module is further configured to set a first broadcast next hop hardware table entry of each VXLAN tunnel, which corresponds to the public network three-layer interface, to a blocking state, and set a second broadcast next hop hardware table entry of each VXLAN tunnel, which corresponds to the internal control link three-layer interface, to a forwarding state;
and the forwarding module is used for sending the VXLAN multicast message of the virtual forwarding instance sent by each VXLAN tunnel through the three-layer interface of the internal control link.
CN202210164048.0A 2022-02-22 2022-02-22 Message forwarding method and device Active CN114567522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210164048.0A CN114567522B (en) 2022-02-22 2022-02-22 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210164048.0A CN114567522B (en) 2022-02-22 2022-02-22 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN114567522A true CN114567522A (en) 2022-05-31
CN114567522B CN114567522B (en) 2024-03-12

Family

ID=81714823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210164048.0A Active CN114567522B (en) 2022-02-22 2022-02-22 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN114567522B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086106A (en) * 2022-06-22 2022-09-20 杭州云合智网技术有限公司 HASH scheme with multicast output port as tunnel known by VXLAN
CN115277550A (en) * 2022-06-21 2022-11-01 阿里巴巴(中国)有限公司 Routing system, routing method and routing device of virtual network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239965A1 (en) * 2009-11-18 2012-09-20 Shihua Wu Method and Device for Link Protection in Virtual Private Local Area Network
US20200021523A1 (en) * 2017-03-14 2020-01-16 Huawei Technologies Co., Ltd. Route Processing Method, Device, and System
CN111865779A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Route synchronization method and cross-device link aggregation group
CN112367257A (en) * 2020-10-30 2021-02-12 新华三技术有限公司 Route notification method and device
CN113794635A (en) * 2021-08-05 2021-12-14 新华三信息安全技术有限公司 Message forwarding method and device
CN113992582A (en) * 2021-09-17 2022-01-28 新华三信息安全技术有限公司 Message forwarding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239965A1 (en) * 2009-11-18 2012-09-20 Shihua Wu Method and Device for Link Protection in Virtual Private Local Area Network
US20200021523A1 (en) * 2017-03-14 2020-01-16 Huawei Technologies Co., Ltd. Route Processing Method, Device, and System
CN111865779A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Route synchronization method and cross-device link aggregation group
CN112367257A (en) * 2020-10-30 2021-02-12 新华三技术有限公司 Route notification method and device
CN113794635A (en) * 2021-08-05 2021-12-14 新华三信息安全技术有限公司 Message forwarding method and device
CN113992582A (en) * 2021-09-17 2022-01-28 新华三信息安全技术有限公司 Message forwarding method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BOB HINDEN: "Virtual Router Redundancy Protocol (VRRP)", Retrieved from the Internet <URL:https://datatracker.ietf.org/doc/rfc3768> *
朱虹;: "网络设备虚拟化下路由选择问题探讨", 金融科技时代, no. 07 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277550A (en) * 2022-06-21 2022-11-01 阿里巴巴(中国)有限公司 Routing system, routing method and routing device of virtual network
CN115277550B (en) * 2022-06-21 2023-11-28 阿里巴巴(中国)有限公司 Routing system, routing method and routing device of virtual network
CN115086106A (en) * 2022-06-22 2022-09-20 杭州云合智网技术有限公司 HASH scheme with multicast output port as tunnel known by VXLAN
CN115086106B (en) * 2022-06-22 2023-12-19 杭州云合智网技术有限公司 HASH method with VXLAN known group broadcasting port as tunnel

Also Published As

Publication number Publication date
CN114567522B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
EP3379806B1 (en) Packet processing method, related apparatus and nvo3 network system
CN107666397B (en) Method for transmitting multicast group leaving request between PE routers and PE router
CN107846342B (en) Method, device and system for forwarding VXLAN message
CN108512739B (en) Multicast state between multi-homed routers in an Ethernet virtual private network
US6556547B1 (en) Method and apparatus providing for router redundancy of non internet protocols using the virtual router redundancy protocol
EP3229408A1 (en) Failure handling for active-standby redundancy in evpn data center interconnect
EP4016932A1 (en) Evpn and vpls coexistence method, apparatus, and system
CN114567522B (en) Message forwarding method and device
US11985002B2 (en) Protocol independent multicast (PIM) designated router (DR) election
CN107040441B (en) Cross-data-center data transmission method, device and system
US10757066B2 (en) Active-active access to transparent interconnection of lots of links (TRILL) edges
EP3276895B1 (en) Communicating igmp leave requests between load-balanced, multi-homed provider-edge routers in an ethernet virtual private network
CN112671642A (en) Message forwarding method and device
CN113037883B (en) Method and device for updating MAC address table entries
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover
CN111800327B (en) Traffic sharing method and equipment of VXLAN (virtual extensible local area network)
CN108011828B (en) Multicast switching method, device, core layer switch and storage medium
CN115118545B (en) Group management protocol host mobility in ethernet virtual private network multicast networks
WO2022017225A1 (en) Message sending method, device and system
CN113794615A (en) Message forwarding method and device
CN112953832A (en) Method and device for processing MAC address table items
CN117614892A (en) Method and equipment for realizing rapid rerouting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant