CN110445702B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN110445702B
CN110445702B CN201910615237.3A CN201910615237A CN110445702B CN 110445702 B CN110445702 B CN 110445702B CN 201910615237 A CN201910615237 A CN 201910615237A CN 110445702 B CN110445702 B CN 110445702B
Authority
CN
China
Prior art keywords
multicast
data message
vxlan
forwarding
message
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.)
Active
Application number
CN201910615237.3A
Other languages
Chinese (zh)
Other versions
CN110445702A (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 CN201910615237.3A priority Critical patent/CN110445702B/en
Publication of CN110445702A publication Critical patent/CN110445702A/en
Application granted granted Critical
Publication of CN110445702B publication Critical patent/CN110445702B/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
    • 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/16Multipoint 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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

The application provides a message forwarding method and a device, wherein the message forwarding method comprises the following steps: searching a matched multicast list item in a core copy multicast list based on the outer layer target IP address of the received VXLAN multicast data message; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port; copying a received VXLAN multicast data message for each multicast tunnel exit port of the matched multicast table entry; sending a copied VXLAN multicast data message through an output port of each multicast tunnel; sending the received VXLAN multicast data message through a loopback interface; receiving a looped VXLAN multicast data message through a loop port; and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message. The method and the device can realize the core copying and forwarding of the VXLAN multicast data message and execute two-layer or three-layer forwarding locally.

Description

Message forwarding method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and a device for forwarding a packet.
Background
At present, in the networking environment of Overlay, the replication modes of broadcast, unknown unicast and multicast traffic are mainly divided into a head end replication mode of unicast routing and a core replication mode of broadcast routing.
Generally, when there are many sites that need to perform two-layer interconnection through an IP core network in a data center network, a core replication method is mostly adopted to reduce occupation of bandwidth resources of the core network by saving flooding traffic.
In the core replication mode, after receiving a message (multicast data message, broadcast data message, and unknown unicast data message) to be flooded by a VTEP (Virtual Extensible LAN network) device, VXLAN multicast encapsulation is performed on the flooded message according to a multicast IP address of a multicast group of the VXLAN, the VXLAN multicast message is sent to an internet protocol IP core device according to the multicast IP address in the VXLAN encapsulation, and then the VXLAN multicast message is replicated by the core device and sent to other VTEP devices of the multicast group.
However, in the existing VXLAN core replication technology, an IP core device receives a VXLAN multicast packet and cannot forward a packet that needs to be flooded in an inner layer to a locally connected terminal, so that the flooded packet that needs to be sent to the locally connected terminal of the core device cannot be sent to a destination device that should be reached.
Disclosure of Invention
The application aims to provide a message forwarding method and device, which can realize that core devices of a VXLAN network execute core replication and forwarding of VXLAN multicast data messages and execute local line two-layer or three-layer forwarding at the same time.
In order to achieve the above object, an embodiment of the present application provides a packet forwarding method, which is applied to an internet protocol IP core device in a virtual extensible local area network VXLAN, where the method includes: searching a matched multicast list item in a core copy multicast list based on the outer layer target IP address of the received VXLAN multicast data message; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port; copying a received VXLAN multicast data message for each multicast tunnel exit port of the matched multicast table entry; sending a copied VXLAN multicast data message through an output port of each multicast tunnel; sending the received VXLAN multicast data message through a loopback interface; receiving a looped VXLAN multicast data message through a loop port; and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
In order to achieve the above object, an embodiment of the present application further provides a packet forwarding device, including: the VXLAN forwarding module is used for copying the multicast list to find a matched multicast list item in the core based on the outer layer destination IP address of the received VXLAN multicast data message; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port; the multicast table entry is used for copying a received VXLAN multicast data message for each multicast tunnel exit port of the matched multicast table entry; the system comprises a multicast tunnel output port, a VXLAN multicast data message and a data forwarding port, wherein the multicast tunnel output port is used for sending a copied VXLAN multicast data message through each multicast tunnel output port; sending the received VXLAN multicast data message through a loopback interface; the local forwarding module is used for receiving the looped VXLAN multicast data message through the loopback interface; and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
The IP core equipment sends and receives VXLAN multicast data messages by using the loopback interface, removes the outer layer VXLAN encapsulation of the multicast data messages, and locally forwards the inner layer data messages obtained after the encapsulation is removed, so that the core of the VXLAN multicast data messages can be copied and forwarded, and simultaneously, two-layer or three-layer forwarding is locally executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of a message forwarding method provided in an embodiment of the present application;
fig. 2 is a schematic system diagram for providing a virtual extensible local area network according to an embodiment of the present application;
fig. 3 shows a flowchart for performing local forwarding for an inner layer data packet in a packet forwarding method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating local forwarding for an inner layer data packet in another packet forwarding method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating local forwarding for an inner layer data packet in another packet forwarding method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating local forwarding for an inner layer data packet in another packet forwarding method according to an embodiment of the present application;
fig. 7 shows a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The following detailed description of the embodiments of the present application, presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
To facilitate understanding of the embodiment of the present application, first, a detailed description is given to a message forwarding method disclosed in the embodiment of the present application. The message forwarding method provided by the embodiment of the application is applied to Internet Protocol (IP) core equipment in a Virtual Extensible local area network (VXLAN), and then the message forwarding method is elaborated in detail by taking the IP core equipment as an execution main body.
As shown in fig. 1, a flowchart of a message forwarding method provided in the embodiment of the present application includes the following specific steps:
s101, based on the outer layer target IP address of the received VXLAN multicast data message, a matched multicast list item is found in a core copy multicast list; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port.
In specific implementation, when receiving a flooding message (including a multicast data message, a broadcast data message, and an unknown unicast data message) sent by a server, a VXLAN Tunnel Endpoint (VTEP) device performs VXLAN encapsulation based on a multicast IP address of a multicast group of a VSI to which an Access Circuit (AC) receiving the flooding message belongs as a destination IP address of a VXLAN multicast Tunnel to obtain a VXLAN multicast data message; and the VTEP equipment sends the VXLAN multicast data message to the IP core equipment through the tunnel exit port of the multicast group.
After the IP core equipment receives the VXLAN multicast data message, the matched multicast list item is found in the core copy multicast list based on the outer layer target IP address of the VXLAN multicast data message, and the BUD equipment is executed for forwarding. Here, the multicast entry includes two or more multicast tunnel egress ports and loopback ports.
And S102, copying a received VXLAN multicast data message for each multicast tunnel exit port of the matched multicast table entry.
And S103, sending a copy of VXLAN multicast data message through each multicast tunnel exit port.
S104, sending the received VXLAN multicast data message through a loopback interface;
s105, receiving the looped VXLAN multicast data message through a loop interface;
and S106, removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
According to the embodiment of the application, the IP core equipment sends and receives the VXLAN multicast data message by using the loopback interface, removes the outer layer VXLAN encapsulation of the multicast data message, and locally forwards the inner layer data message obtained after removing the encapsulation, so that the core of the VXLAN multicast data message can be copied and forwarded, and simultaneously, two-layer or three-layer forwarding is locally executed.
Fig. 2 is a schematic diagram of VXLAN according to an embodiment of the present invention, in which VTEP1, VTEP2, VTEP3, and IP core devices are in the same virtual switch instance VSI of VXLAN network.
The Server1 sends a flood message. After receiving the flooding message through an Access Circuit (AC) AC1 of the VTEP1, locally flooding (not shown) the server 4 connected to the AC4 of the same VSI, encapsulating the flooding message into a VXLAN multicast data message according to the multicast IP address of the multicast group bound by the VSI as the destination IP address of the VXLAN tunnel, and forwarding the VXLAN multicast data message through the IP network.
The IP core device receives the VXLAN multicast data message and searches a BUD multicast forwarding table item according to the outer layer destination IP address, wherein the multicast forwarding table item comprises an output port1 of a VXLAN tunnel connected with VTEP2, an output port2 of the VXLAN tunnel connected with VTEP3 and a loopback port.
The IP core equipment copies a VXLAN multicast data message for each of port1 and port2, and respectively sends a copied VXLAN multicast data message through egress port1 and egress port 2; sending VXLAN multicast data message through a loopback interface; receiving a looped VXLAN multicast data message through a loop port; and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
In a specific implementation, the flooding packet received by the VTEP device may include a multicast data packet or a broadcast data packet or an unknown unicast data packet (a MAC address that the VTEP has not learned yet).
Fig. 3 shows a method for removing VXLAN encapsulation and executing local two-layer forwarding from a VXLAN multicast data packet received by an IP core device through a loopback interface, where the method includes:
s301, identifying the message type of the inner layer data message as unicast.
S302, find the MAC address forwarding table of the virtual switch instance VSI corresponding to the VXLAN network identifier VNI encapsulated by the outer layer VXLAN.
S303, whether an MAC address table item matched with a target MAC address of the data message in the inner layer is found in the MAC address forwarding table or not is judged; if yes, go to step S304; otherwise, step S305 is executed.
S304, the internal layer data message is sent through the access circuit AC of the matched MAC address table entry.
S305, searching a broadcast forwarding table of the VSI according to the VNI packaged by the outer layer VXLAN; copying an inner layer data message for each AC of the broadcast forwarding table; a duplicate inner-layer data packet is sent through each AC of the broadcast forwarding table.
In specific implementation, the core device removes the outer layer VXLAN encapsulation of the VXLAN multicast data message to obtain the ethernet data message. The core device identifies that the message type is unicast according to the message type field of the ethernet data message, searches for a MAC address table of the VSI corresponding to a VXLAN Network Identifier (VNI) field in VXLAN encapsulation, and searches for a destination MAC address based on the ethernet data message in the MAC address table.
If the IP core device finds the matched MAC address table item from the MAC address forwarding table, the Ethernet unicast data message is forwarded to the server 5 according to the output port AC3 of the matched MAC address table item, so as to realize local two-layer message forwarding.
And if the IP core equipment does not find the matched MAC address table item in the MAC address forwarding table, searching a VSI broadcast table corresponding to the VNI. In this embodiment, the IP core device copies one ethernet unicast data packet for each AC of the broadcast forwarding table of the VSI, that is, AC3 and AC 6. The IP core equipment sends the Ethernet unicast data message to the set 5 through the AC3, and sends the Ethernet unicast data message to the set 6 through the AC6, so that forwarding of the local two-layer unknown unicast message is realized.
Based on the horizontal segmentation principle, the IP core equipment can not decapsulate the VXLAN multicast data message and then send the packet to the VXLAN network. The IP core device will only send data packets to the devices whose VSI is in the local network, so the IP core device copies one broadcast data packet for the AC connected to each local device.
Fig. 4 shows a method for removing VXLAN encapsulation for local three-layer forwarding of a VXLAN multicast data packet received by an IP core device through a loopback interface, where the method includes:
s401, identifying the message type of the inner layer data message as unicast.
S402, searching a MAC address forwarding table of the VSI corresponding to the VNI packaged by the outer layer VXLAN.
S403, searching is carried out in the MAC address forwarding table according to the unicast destination MAC address of the inner layer data message.
S404, determining to execute three-layer forwarding according to the searched MAC address table entry.
And the IP core equipment removes the outer layer VXLAN encapsulation of the VXLAN multicast data message and obtains the inner layer data message and the unicast destination MAC address corresponding to the inner layer data message. Then, searching an MAC address table item corresponding to a unicast destination MAC address from an MAC address forwarding table of a VSI corresponding to a VNI packaged by an outer layer VXLAN; and the output port corresponding to the unicast destination MAC address in the MAC address table entry is a three-layer interface, and indicates to carry out three-layer forwarding.
S405, stripping off the Ethernet header of the inner layer data message.
S406, the MAC address and the AC corresponding to the inner layer destination IP are searched.
The IP core device searches a matched Address Resolution Protocol (ARP) table item according to the inner layer target IP Address of the inner layer IP message after the Ethernet header is stripped. And the IP core equipment acquires the MAC address and the AC corresponding to the inner-layer target IP address from the searched ARP table entry.
And S407, according to the searched MAC address, encapsulating a new Ethernet header for the inner-layer data message with the Ethernet header stripped.
And the IP core equipment packages the MAC address corresponding to the IP address in the ARP table entry as a target MAC address, and packages a new Ethernet header by using the MAC address corresponding to the AC interface in the APR table entry as a source MAC address.
S408, the inner layer data message with the new Ethernet header is sent through the AC corresponding to the inner layer destination IP address.
The IP core device sends the Ethernet data message with the new Ethernet head through the AC in the ARP table entry, so that after the Ethernet data message with the failure of finding the forwarding table entry by the VETP1 is flooded to the IP core device as an unknown unicast message, the IP core device completes the local three-layer forwarding.
When the flooding message received by VTEP1 is a broadcast data message, after receiving the VXLAN multicast data message through the loopback interface, the IP core device removes VXLAN encapsulation and executes the local two-layer broadcast forwarding method as shown in fig. 5, where the method includes:
s501, identifying the message type of the inner layer data message as broadcast.
S502, a broadcast forwarding table of the VSI corresponding to the VNI encapsulated by the outer layer VXLAN is searched.
And after removing the outer layer VXLAN encapsulation of the VXLAN multicast data message, the IP core equipment searches a corresponding broadcast forwarding table of the VSI according to the VNI carried in the VXLAN encapsulation.
S503, copying an inner layer data message for each AC of the broadcast forwarding table.
S504, a copy of the inner layer data message is sent through each AC of the broadcast forwarding table.
The IP core equipment sends a copy of broadcast data message through each AC of the VSI broadcast forwarding table so as to complete the local two-layer forwarding of the broadcast data message.
When the flooding packet received by the VTEP is a two-layer multicast data packet, after receiving the VXLAN multicast data packet through the loopback interface, the IP core device removes VXLAN encapsulation and executes a local two-layer forwarding method for the two-layer multicast data packet, as shown in fig. 6, where the method includes:
s601, identifying the message type of the data message of the inner layer as multicast.
S602, searching a corresponding multicast forwarding table based on the multicast address of the inner layer data message and the VNI encapsulated by the outer layer VXLAN.
S603, copying an inner layer data message for each AC of the multicast forwarding table.
As shown in fig. 2, in the local multicast forwarding table MUD of the IP core device, the AC recorded with the received multicast group join protocol packet is recorded in the local multicast forwarding table of the VSI. If the IP core device receives the multicast group joining protocol message only through one AC, the local multicast forwarding table of the VSI stored by the IP core device only comprises one AC, and if the IP core device receives the multicast group joining protocol message through a plurality of ACs, the local multicast forwarding table of the VSI stored by the IP core device correspondingly comprises each AC receiving the multicast group joining protocol message. In this embodiment, the multicast forwarding table records the egress ports of the AC3 and the AC6 as multicast members.
S604, sending a copy of inner layer data message through each AC of the multicast forwarding table.
The IP core equipment acquires all the ACs from the multicast forwarding table, copies an inner layer data message for each AC of the multicast forwarding table, namely AC3 and AC5, respectively, and sends a copied inner layer data message to each AC connected equipment through AC3 and AC5 of the multicast forwarding table so as to complete the forwarding of the inner layer data message.
In the above embodiment, the IP core device and other VTEP devices configure the same VXLAN multicast tunnel and configure the multicast table entry associated with the multicast group tunnel. After receiving the VXLAN multicast data message sent by the VTEP1, the IP core device finds a matched multicast forwarding entry based on the outer layer destination IP address of the VXLAN multicast data message, and can perform forwarding by the BUD device, that is, not only forward the VXLAN data message, but also forward the VXLAN data message locally after decapsulation.
Based on the same inventive concept, the embodiment of the present application further provides a message forwarding device corresponding to the message forwarding method, and because the principle of solving the problem of the message forwarding device in the embodiment of the present application is similar to that of the message forwarding method in the embodiment of the present application, the implementation of the message forwarding device can refer to the implementation of the method, and repeated parts are not described again.
Fig. 7 is a schematic architecture diagram of a network device 700 according to an embodiment of the present application. Network device 700, which may be used as an IP core device for a VXLAN network, includes forwarding Unit 710, processor (CPU) 720 and memory 730, and a plurality of external ports 7010. Forwarding unit 710 has VXLAN forwarding module 711, local forwarding module 712, and loopback port 713.
A VXLAN forwarding module 711, configured to find a matched multicast entry in the core replication multicast table based on the outer layer destination IP address of the received VXLAN multicast data packet; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port; the multicast table entry is used for copying a received VXLAN multicast data message for each multicast tunnel exit port of the matched multicast table entry; the system comprises a multicast tunnel output port, a VXLAN multicast data message and a data forwarding port, wherein the multicast tunnel output port is used for sending a copied VXLAN multicast data message through each multicast tunnel output port; and sending the received VXLAN multicast data message through a loopback interface.
A local forwarding module 712, configured to receive the looped VXLAN multicast data packet through the loopback interface; removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message for sending the received VXLAN multicast data message through a loopback interface; receiving a looped VXLAN multicast data message through a loop port; and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
The local forwarding module 712 is further configured to identify that the packet type of the inner layer data packet is unicast, and search for an MAC address forwarding table of a virtual switch instance VSI corresponding to a VXLAN network identifier VNI encapsulated by the outer layer VXLAN; searching in an MAC address forwarding table according to a destination MAC address of the data message of the inner layer; when the matched MAC address table entry is searched, the internal layer data message is sent through the access circuit AC of the matched MAC address table entry; and when the data packet is not searched, searching a broadcast forwarding table of the VSI according to the VNI packaged by the outer layer VXLAN, copying an inner layer data message for each AC of the broadcast forwarding table, and sending a copied inner layer data message through each AC of the broadcast forwarding table.
The local forwarding module 712 is further configured to identify that the packet type of the inner layer data packet is broadcast, and search a broadcast forwarding table of a VSI corresponding to a VNI encapsulated by the outer layer VXLAN; copying an inner layer data message for each AC of the broadcast forwarding table; a duplicate inner-layer data packet is sent through each AC of the broadcast forwarding table.
The local forwarding module 712 is further configured to identify that the packet type of the inner layer data packet is unicast, and search, based on a unicast destination MAC address of the inner layer data packet, an MAC address forwarding table of a VSI corresponding to a VNI encapsulated by the outer layer VXLAN; searching and searching an MAC address table item in the MAC address forwarding table according to the unicast destination MAC address of the data message of the inner layer from the MAC address forwarding table, and determining to execute three-layer forwarding according to the searched MAC address table item; stripping off an Ethernet header of the inner-layer data message, searching an MAC address and an AC corresponding to an inner-layer destination IP address, packaging a new Ethernet header for the inner-layer data message with the Ethernet header stripped off according to the searched MAC address, and sending the inner-layer data message with the new Ethernet header through the AC corresponding to the inner-layer destination IP address.
The local forwarding module 712 is further configured to identify that the packet type of the inner layer data packet is multicast, and search a corresponding multicast forwarding table based on the multicast address of the inner layer data packet and the VNI encapsulated by the outer layer VXLAN; copying an inner layer data message for each AC of the multicast forwarding table; and sending a copy of the internal layer data message through each AC of the multicast forwarding table.
The above embodiments are merely illustrative of the technical solutions of the present application. Modifications, variations, or substitutions by those skilled in the art to the technical solutions described in the foregoing embodiments are intended to be included within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A message forwarding method is applied to an Internet protocol IP core device in a virtual extensible local area network VXLAN, and comprises the following steps:
searching a matched multicast list item in a core copy multicast list based on the outer layer target IP address of the received VXLAN multicast data message; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port;
copying a received VXLAN multicast data message for each multicast tunnel exit port of the matched multicast table entry;
sending a copied VXLAN multicast data message through an output port of each multicast tunnel;
sending the received VXLAN multicast data message through the loopback interface;
receiving a looped VXLAN multicast data message through the loopback interface;
and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
2. The message forwarding method according to claim 1, wherein the removing of the outer VXLAN encapsulation of the received VXLAN multicast data message and performing local forwarding for inner layer data messages comprises:
identifying the message type of the inner layer data message as unicast;
searching a MAC address forwarding table of a virtual switching instance VSI corresponding to the VNI of the VXLAN network identifier encapsulated by the outer layer;
searching in the MAC address forwarding table according to the destination MAC address of the inner layer data message;
when the matched MAC address table entry is found, the internal layer data message is sent through an access circuit AC of the matched MAC address table entry;
when the data packet is not searched, searching a broadcast forwarding table of the VSI corresponding to the VNI, and copying the inner layer data packet for each AC of the broadcast forwarding table; and sending a copy of the internal layer data message through each AC of the broadcast forwarding table.
3. The message forwarding method according to claim 1, wherein the removing of the outer VXLAN encapsulation of the received VXLAN multicast data message and performing local forwarding for inner layer data messages comprises:
identifying the message type of the inner layer data message as broadcast;
searching a broadcast forwarding table of a VSI corresponding to the VNI packaged by the outer layer VXLAN;
copying the inner layer data message for each AC of the broadcast forwarding table;
and sending a copy of the internal layer data message through each AC of the broadcast forwarding table.
4. The message forwarding method according to claim 1, wherein the removing of the outer VXLAN encapsulation of the received VXLAN multicast data message and performing local forwarding for inner layer data messages comprises:
identifying the message type of the inner layer data message as unicast;
searching a MAC address forwarding table of a VSI corresponding to the VNI packaged by the outer layer VXLAN;
searching in the MAC address forwarding table according to the unicast destination MAC address of the inner layer data message;
determining to execute three-layer forwarding according to the searched MAC address table entry;
stripping off an Ethernet header of the data message of the inner layer;
searching an MAC address and an AC corresponding to the inner-layer destination IP address;
according to the searched MAC address, a new Ethernet header is encapsulated for the inner layer data message with the Ethernet header stripped;
and sending the inner layer data message with the new Ethernet header through the AC corresponding to the inner layer destination IP address.
5. The message forwarding method according to claim 1, wherein the removing of the outer VXLAN encapsulation of the received VXLAN multicast data message and performing local forwarding for inner layer data messages comprises:
identifying the message type of the inner layer data message as multicast;
searching a corresponding multicast forwarding table based on the multicast address of the inner layer data message and the VNI packaged by the outer layer VXLAN;
copying the inner layer data message for each AC of the multicast forwarding table;
and sending a copy of the internal layer data message through each AC of the multicast forwarding table.
6. A message forwarding device, the device comprising:
the VXLAN forwarding module is used for copying the multicast list to find a matched multicast list item in the core based on the outer layer destination IP address of the received VXLAN multicast data message; the multicast list item comprises more than two multicast tunnel exit ports and a loopback port; the multicast table entry is used for receiving VXLAN multicast data messages from the multicast tunnel exit port of the matched multicast table entry; the system comprises a multicast tunnel output port, a VXLAN multicast data message and a data forwarding port, wherein the multicast tunnel output port is used for sending a copied VXLAN multicast data message through each multicast tunnel output port; sending the received VXLAN multicast data message through the loopback interface;
the local forwarding module is used for receiving the looped VXLAN multicast data message through the loopback interface; and removing the outer layer VXLAN encapsulation of the received VXLAN multicast data message, and executing local forwarding for the inner layer data message.
7. The message forwarding device of claim 6,
the local forwarding module is configured to identify that the packet type of the inner layer data packet is a unicast packet, and search for an MAC address forwarding table of a virtual switch instance VSI corresponding to a VXLAN network identifier VNI encapsulated by the outer layer VXLAN; searching in the MAC address forwarding table according to the destination MAC address of the inner layer data message; when the matched MAC address table entry is searched, the internal layer data message is sent through an access circuit AC of the matched MAC address table entry; and when the data packet is not searched, searching a broadcast forwarding table of the VSI corresponding to the VNI, copying the internal layer data packet for each AC of the broadcast forwarding table, and sending the copied internal layer data packet through each AC of the broadcast forwarding table.
8. The message forwarding device of claim 6,
the local forwarding module is configured to identify that the packet type of the inner layer data packet is broadcast, and search a broadcast forwarding table of a VSI corresponding to a VNI encapsulated by the outer layer VXLAN; copying the inner layer data message for each AC of the broadcast forwarding table; and sending a copy of the internal layer data message through each AC of the broadcast forwarding table.
9. The message forwarding device of claim 6,
the local forwarding module is configured to identify that the packet type of the inner layer data packet is a unicast packet, and search for an MAC address forwarding table of a VSI corresponding to a VNI encapsulated by the outer layer VXLAN; searching in the MAC address forwarding table according to the unicast destination MAC address of the inner layer data message, and determining to execute three-layer forwarding according to the searched MAC address table item; and stripping the Ethernet header of the inner-layer data message, searching the MAC address and the AC corresponding to the inner-layer destination IP address, packaging a new Ethernet header for the inner-layer data message with the stripped Ethernet header according to the searched MAC address, and sending the inner-layer data message with the new Ethernet header through the AC corresponding to the inner-layer destination IP address.
10. The message forwarding device of claim 6,
the local forwarding module is configured to identify that the packet type of the inner layer data packet is multicast, and search a corresponding multicast forwarding table based on a multicast address of the inner layer data packet and the VNI encapsulated by the outer layer VXLAN; copying the inner layer data message for each AC of the multicast forwarding table; and sending a copy of the internal layer data message through each AC of the multicast forwarding table.
CN201910615237.3A 2019-07-09 2019-07-09 Message forwarding method and device Active CN110445702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910615237.3A CN110445702B (en) 2019-07-09 2019-07-09 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910615237.3A CN110445702B (en) 2019-07-09 2019-07-09 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN110445702A CN110445702A (en) 2019-11-12
CN110445702B true CN110445702B (en) 2021-04-06

Family

ID=68429932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910615237.3A Active CN110445702B (en) 2019-07-09 2019-07-09 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN110445702B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262713B (en) * 2020-01-03 2022-07-08 优刻得科技股份有限公司 Message multicast processing method, processing device, readable medium and system
CN112019420B (en) * 2020-09-04 2022-03-29 苏州盛科科技有限公司 Method and device for realizing VXLAN edge node multicast message forwarding
CN112637705B (en) * 2020-11-26 2022-05-27 新华三技术有限公司合肥分公司 Method and device for forwarding in-band remote measurement message
CN113207049B (en) * 2021-03-31 2022-05-27 新华三信息安全技术有限公司 Multicast forwarding method and device
CN112804158B (en) * 2021-03-31 2021-09-21 四川新网银行股份有限公司 Unknown unicast forwarding and control method for switch
CN115334037B (en) * 2022-08-10 2023-05-23 杭州云合智网技术有限公司 VXLAN multicast forwarding table item updating system method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN106209648A (en) * 2015-05-04 2016-12-07 杭州华三通信技术有限公司 Multicast data packet forwarding method and apparatus across virtual expansible LAN
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
CN108199963A (en) * 2017-12-27 2018-06-22 新华三技术有限公司 Message forwarding method and device
CN108900422A (en) * 2018-07-27 2018-11-27 新华三技术有限公司 Multicast forward method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9794081B2 (en) * 2015-03-25 2017-10-17 International Business Machines Corporation Logical multicasting in overlay networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN106209648A (en) * 2015-05-04 2016-12-07 杭州华三通信技术有限公司 Multicast data packet forwarding method and apparatus across virtual expansible LAN
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
CN108199963A (en) * 2017-12-27 2018-06-22 新华三技术有限公司 Message forwarding method and device
CN108900422A (en) * 2018-07-27 2018-11-27 新华三技术有限公司 Multicast forward method, device and electronic equipment

Also Published As

Publication number Publication date
CN110445702A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110445702B (en) Message forwarding method and device
US11240065B2 (en) NSH encapsulation for traffic steering
US9397943B2 (en) Configuring virtual media access control addresses for virtual machines
WO2017114196A1 (en) Packet processing method, related apparatus and nvo3 network system
WO2016101646A1 (en) Access method and apparatus for ethernet virtual network
WO2014205784A1 (en) Method and device for processing multicast message in nvo3 network, and nvo3 network
CN108964940B (en) Message sending method and device and storage medium
WO2021031648A1 (en) Evpn and vpls coexistence method, apparatus, and system
US20110255536A1 (en) Method, system, and apparatus for extranet networking of multicast virtual private network
US10673737B2 (en) Multi-VRF universal device internet protocol address for fabric edge devices
CN112105095B (en) EasyMesh network multi-Controller implementation method and system
CN107040441B (en) Cross-data-center data transmission method, device and system
CN109474507B (en) Message forwarding method and device
CN112134776B (en) Method for generating multicast forwarding table item and access gateway
EP4191966A1 (en) Method and device for processing data message, storage medium, and electronic device
CN114827269A (en) Message transmission method and device
CN113726632A (en) Message forwarding method and device
CN114389967A (en) Link detection method, device, equipment and storage medium
CN113794615B (en) Message forwarding method and device
US20220247598A1 (en) Packet Detection Method, Connectivity Negotiation Relationship Establishment Method, and Related Device
CN114598570B (en) Multicast data message forwarding method and device
EP4057578A1 (en) Internet group management protocol host mobility in ethernet virtual private network multicast networks
US9654304B2 (en) Method and apparatus for sending transparent interconnection of lots of links data frame
CN113037883A (en) Method and device for updating MAC address table entries
WO2023165544A1 (en) Method and apparatus for discovering root node

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