CN108600074B - Method and device for forwarding multicast data message - Google Patents

Method and device for forwarding multicast data message Download PDF

Info

Publication number
CN108600074B
CN108600074B CN201810359897.5A CN201810359897A CN108600074B CN 108600074 B CN108600074 B CN 108600074B CN 201810359897 A CN201810359897 A CN 201810359897A CN 108600074 B CN108600074 B CN 108600074B
Authority
CN
China
Prior art keywords
bdf
multicast data
multicast
data message
forwarding
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
CN201810359897.5A
Other languages
Chinese (zh)
Other versions
CN108600074A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810359897.5A priority Critical patent/CN108600074B/en
Publication of CN108600074A publication Critical patent/CN108600074A/en
Application granted granted Critical
Publication of CN108600074B publication Critical patent/CN108600074B/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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

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 present disclosure relates to a method and a device for forwarding multicast data packets, including: generating a multicast forwarding table item according to routing information sent by a first multi-homing VTEP device, wherein an output interface in the multicast forwarding table item comprises a first extensible virtual local area network VXLAN tunnel with a destination address of a designated forwarder DF device and a second VXLAN tunnel with a destination address of a standby designated forwarder BDF device; and forwarding the multicast data message to the DF device or the BDF device according to the multicast forwarding table item. According to the method and the device for forwarding the multicast data message, load sharing in the multi-home network can be achieved, transmission efficiency of the multicast data message is improved, and resource utilization rate of VTEP equipment in the multi-home network can be improved.

Description

Method and device for forwarding multicast data message
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a multicast data packet.
Background
EVPN (Ethernet Virtual Private Network) is a two-layer VPN technology. In order to improve the reliability of the access side, the protocol specifies an EVPN multi-homing access network, thereby improving the reliability of the service data message. In the EVPN multi-home access network, one VM (Virtual Machine) can access different VTEP (VXLAN Tunnel End Point) devices through multiple links at the same time. Multiple links of VM accessing different VTEP devices form an ES (Ethernet Segment). ESI (Ethernet Segment Identifier) can be used to identify an ES.
In order to solve the problem that a loop or multiple copies of BUM (Broadcast, Unknown Unicast, Multicast) traffic do not exist when accessing different VTEP devices corresponding to one VM, a plurality of VTEP devices may select one DF from the VTEP devices satisfying the same ESI value, and the DF may be responsible for forwarding packets from and to the VM.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for forwarding a multicast data packet, which can implement load sharing in a multi-home network, improve transmission efficiency of the multicast data packet, and improve resource utilization rate of VTEP equipment in the multi-home network.
According to an aspect of the present disclosure, a method for forwarding a multicast data packet is provided, which is applied to a virtual local area network tunnel endpoint VTEP that is extensible, and the method includes:
generating a multicast forwarding table item according to routing information sent by a first multi-homing VTEP device, wherein an output interface in the multicast forwarding table item comprises a first extensible virtual local area network VXLAN tunnel with a destination address of a designated forwarder DF device and a second VXLAN tunnel with a destination address of a standby designated forwarder BDF device;
and forwarding the multicast data message to the DF device or the BDF device according to the multicast forwarding table item.
According to another aspect of the present disclosure, there is provided a forwarding apparatus for multicast data packets, which is applied to an extensible virtual local area network tunnel endpoint VTEP, the apparatus including:
the generating module is used for generating a multicast forwarding table item according to routing information sent by a first multi-homing VTEP device, wherein an output interface in the multicast forwarding table item comprises a first extensible virtual local area network VXLAN tunnel with a destination address of a designated forwarder DF device and a second VXLAN tunnel with a destination address of a standby designated forwarder BDF device;
and the first forwarding module is used for forwarding the multicast data message to the DF device or the BDF device according to the multicast forwarding table entry.
Therefore, the VTEP device generates a multicast forwarding table according to the routing information sent by the first multihomed VTEP device, where an output interface in the multicast forwarding table includes a first VXLAN tunnel with a destination address of the DF device and a second VXLAN tunnel with a destination address of the BDF device, and forwards the multicast data packet to the DF device or the BDF device according to the multicast forwarding table. According to the method and the device for forwarding the multicast data message provided by the embodiment of the disclosure, the VTEP device can not only forward the multicast data message to the host through the DF device, but also forward the multicast data message to the host through the BDF device, so that load sharing in the multi-homing network can be realized, transmission efficiency of the multicast data message is improved, and resource utilization rate of the VTEP device in the multi-homing network can be improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a schematic diagram of a multihoming network according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure;
fig. 6 shows a flowchart of a forwarding method of a multicast number packet according to an embodiment of the present disclosure;
fig. 7 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a forwarding apparatus for multicast number packets according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a forwarding apparatus for multicast number packets according to an embodiment of the present disclosure;
fig. 10 is a block diagram illustrating a hardware configuration of a forwarding apparatus for multicast data packets according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a schematic diagram of a multihoming network according to an embodiment of the present disclosure. VTEP1(IP address 1.1.1.1), VTEP2(IP address 2.2.2.2) and VTEP3(IP address 3.3.3.3) represent VTEP devices; VM1, VM2, and VM3 represent VMs (Virtual machines); LSW1 represents a switch. VM1 multi-homed accesses 2 VTEP devices, VTEP1 and VTEP2 respectively, through a switch LSW1 and creates dynamic access points above VTEP1 and VTEP2, configuring the same ethernet segment identification ESI values: 1, wherein VTEP1 is a DF (Designated Forwarder) device.
A VM1 sends a multicast group join request for an arbitrary multicast source to join a specific multicast group G to VTEP1 and VTEP2, and since, among 2 ACs of VM1 on 2 VTEPs, AC1 on VTEP1 is a DF port, and AC2 on VTEP2 is a BDF (Backup Designated Forwarder) port, after receiving the multicast group join request sent by VM1 on VTEP1, a first multicast forwarding table entry is locally generated in VTEP1, and an egress interface in the first multicast forwarding table entry is AC1 with an ESI value of 1 on VTEP1, refer to table 1.
TABLE 1
Shared tree Outlet interface
(*,G) AC1
VTEP1 synchronizes the first multicast forwarding entry to VTEP2 and VTEP 3.
VTEP2 generates a second multicast forwarding entry from the first multicast forwarding entry, referring to table 2.
TABLE 2
Shared tree Outlet interface
(*,G) AC2
After receiving the first multicast forwarding entry synchronized by VTEP1, VTEP3 generates a third multicast forwarding entry according to the first multicast forwarding entry. Since there is no AC with ESI value 1 in VTEP3 locally, the egress interface in the third multicast forwarding entry is a VXLAN (Virtual Extensible LAN) tunnel with destination address VTEP1, refer to table 3.
TABLE 3
Shared tree Outbound interface source IP address IP address of outbound interface destination
(*,G) 3.3.3.3 1.1.1.1
After VTEP3 receives multicast data message 1 and multicast data message 2 sent by multicast source VM2 and VM3, VTEP3 queries the third multicast forwarding entry, and forwards multicast data message 1 and multicast data message 2 to VTEP1 through the VXLAN tunnel whose destination address is VTEP 1. After receiving the multicast data packet 1 and the multicast data packet 2 sent by the VTEP3, the VTEP1 forwards the multicast data packet 1 and the multicast data packet 2 to the VM1 according to the first multicast forwarding table entry.
When the multicast data messages from a plurality of multicast sources exist, the process of forwarding the multicast data messages to the host only through the DF device ensures that the transmission efficiency of the multicast data messages is low, and the resource utilization rate of the VTEP in the multi-attribution network is low.
In order to solve the above technical problem, the present disclosure provides a method for forwarding a multicast data packet.
Fig. 2 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure, where the method may be applied to an extensible virtual local area network tunnel endpoint VTEP, and as shown in fig. 2, the method may include:
step 201, generating a multicast forwarding table entry according to routing information sent by a first multi-homing VTEP device, wherein an output interface in the multicast forwarding table entry includes a first extensible virtual local area network VXLAN tunnel whose destination address is a designated forwarder DF device and a second VXLAN tunnel whose destination address is a standby designated forwarder BDF device;
the first multihomed VTEP device may be a neighbor VTEP device in a different multihomed networking from the VTEP device (as shown in fig. 1, the VTEP device may be VTEP3, and the first multihomed VTEP device may be VTEP1 and/or VTEP 2).
The routing information sent by the first multihomed VTEP device may include routing information for forwarding a multicast data packet to a host, and information of VTEP devices (including a DF device and a BDF device) accessed by the host in the multihomed network. After receiving the routing information, the VTEP device may generate a multicast forwarding entry according to the route for forwarding the multicast data packet to the host, the DF device, and the BDF device, where an output interface in the multicast forwarding entry includes a first VXLAN tunnel whose destination address is the DF device, where the first VXLAN tunnel corresponds to the DF device identification information in the multicast forwarding entry, and a second VXLAN tunnel whose destination address is the BDF device, where the second VXLAN tunnel corresponds to the BDF device identification information in the multicast forwarding entry.
For example, as shown in fig. 1, after receiving the routing information sent by the first multihomed VTEP device, the VTEP3 device generates a multicast forwarding table according to the routing information for forwarding the multicast data packet to the host and the information of the DF device (VTEP1) and the BDF device (VTEP2) in the multihomed network, which is described in reference to table 4.
TABLE 4
Figure BDA0001635697920000061
Fig. 3 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure.
In a possible implementation manner, referring to fig. 3, the step 201 described above, generating a multicast forwarding entry according to the routing information sent by the first multihomed VTEP device, may be implemented by the following steps.
Step 2011, receiving routing synchronization information sent by a DF device in the multihoming networking, where the routing synchronization information includes routing information of the DF device and an identifier of the BDF device;
for example, when performing DF election on VTEP devices in the multi-homing network, ES routes are mutually sent between the VTEP devices in the multi-homing network, and the VTEP devices form an election list according to the received ES routes, where the election list includes IP addresses of the VTEP devices having the same ESI value. After the VTEP device is elected as the DF device, the other VTEP devices in the election list are referred to as BDF devices.
After receiving a multicast group joining request sent by a host, a DF device in the multi-homing network generates a first forwarding table entry for forwarding a multicast data message to the host. The DF device generates routing information according to the first forwarding table entry, where the routing information may include an IP address of the DF device and multicast group information (e.g., shared tree information) joined by the host, generates routing synchronization information according to the routing information and an identifier of the BDF device (e.g., IP address of the BDF device), and sends the routing synchronization information to the VTEP device.
For example, the route synchronization information may include a multi-homing extended community attribute, and the identifier of the BDF device may be carried in the multi-homing extended community attribute, for example: the multi-homing extended community attribute includes the IP address of the BDF device.
Step 2012, generating a multicast forwarding table entry according to the routing information of the DF device and the identifier of the BDF device.
After receiving the routing synchronization information sent by the DF device, the VTEP device obtains the routing information of the DF device and the identifier of the BDF device in the routing synchronization information, and generates a multicast forwarding entry according to the routing information of the DF device and the identifier of the BDF device, where an egress interface in the multicast forwarding entry includes a first VXLAN tunnel with a destination address of the DF device and a second VXLAN tunnel with a destination address of the BDF device.
Fig. 4 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure.
In a possible implementation manner, referring to fig. 4, the step 201 described above, generating a multicast forwarding entry according to the routing information sent by the first multihomed VTEP device, may be implemented by the following steps.
Step 2013, receiving the routing information of the DF device sent by the DF device in the multi-homing network, and receiving the routing information of the BDF device sent by the BDF device;
after receiving a multicast group join request sent by a host, a DF device in a multi-homing network generates a first forwarding table entry for forwarding a multicast data packet to the host, generates routing information of the DF device (which may include multicast group information joined by the host and an IP address of the DF device) according to the first forwarding table entry, and sends the routing information to a BDF device and a VTEP device.
After receiving the routing information, the BDF device generates a second forwarding table entry for forwarding the multicast data message to the host according to the routing information. After the BDF device generates the second forwarding table, the BDF device generates routing information (which may include multicast group information added by the host and an IP address of the BDF device) of the BDF device according to the second forwarding table, and the BDF device sends the routing information of the BDF device to the VTEP device.
And step 2014, generating a multicast forwarding list according to the routing information of the DF device and the routing information of the BDF device.
The VTEP equipment generates a multicast forwarding table item according to the received routing information of the DF equipment and the routing information of the BDF equipment, and an output interface in the multicast forwarding table item comprises a first VXLAN tunnel with a destination address of the DF equipment and a second VXLAN tunnel with a destination address of the BDF equipment.
Step 202, forwarding the multicast data packet to the DF device or the BDF device according to the multicast forwarding table entry.
In a possible implementation manner, the step 202 of forwarding, according to the multicast forwarding entry, the multicast data packet to the DF device or the BDF device may include:
and when receiving the multicast data message, selecting the DF device or selecting the BDF device to forward the multicast data message through load sharing.
When receiving the multicast data packet forwarded by the multiple multicast sources to the specific multicast group, the VTEP device may perform hash on the multicast data packet according to the multicast forwarding table entry, and forward the multicast data packet from the multiple multicast sources to the DF device through the first VXLAN tunnel and forward the multicast data packet to the BDF device through the second VXLAN tunnel, respectively.
Therefore, the VTEP device generates a multicast forwarding table according to the routing information sent by the first multihomed VTEP device, where an output interface in the multicast forwarding table includes a first VXLAN tunnel with a destination address of the DF device and a second VXLAN tunnel with a destination address of the BDF device, and forwards the multicast data packet to the DF device or the BDF device according to the multicast forwarding table. According to the method for forwarding the multicast data message provided by the embodiment of the disclosure, the VTEP device can not only forward the multicast data message to the host through the DF device, but also forward the multicast data message to the host through the BDF device, so that load sharing in the multi-homing network can be realized, transmission efficiency of the multicast data message is improved, and resource utilization rate of the VTEP device in the multi-homing network can be improved.
Fig. 5 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure.
In one possible implementation manner, referring to fig. 5, the method may further include:
step 203, when forwarding a multicast data packet to a BDF device, adding first identification information to the multicast data packet, where the first identification information is used to instruct the BDF device to forward the multicast data packet;
the VTEP device forwards the multicast packet according to the multicast forwarding table entry, and if the multicast data packet is forwarded to the BDF device through the second VXLAN tunnel whose destination address is the BDF device, the VTEP device may add first identification information to the multicast data packet, where the first identification information is used to instruct the BDF device to forward the multicast data packet.
And step 204, sending the multicast data message added with the first identification information to the BDF device, so that the BDF device forwards the multicast data message according to the first identification information after receiving the multicast data message.
And the VTEP equipment sends the multicast data message added with the first identification information to the BDF equipment. After receiving the multicast data packet, the BDF device may forward the multicast data packet according to the first identification information. Illustratively, if the BDF device determines that the multicast data packet includes the first identification information, the BDF device sends the multicast data packet to the host through the AC accessed by the host, otherwise, the BDF device discards the multicast data packet.
Therefore, when the VTEP device forwards the multicast data packet to the BDF device, the first identification information may be added to the multicast data packet, so that the BDF device may forward the multicast data packet after determining that the multicast data packet is the multicast data packet sent by the VTEP device according to the first identification information carried in the multicast data packet, and it may be ensured that the host does not receive repeated data packets. Furthermore, the VTEP device can share the load of the multicast data packet through the DF device and the BDF device.
Fig. 6 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure.
In a possible implementation manner, referring to fig. 6, in step 203, when forwarding the multicast data packet to the BDF device, adding the first identification information to the multicast data packet may be implemented through the following steps.
Step 2031, when forwarding the multicast data message to the BDF device, performing VXLAN encapsulation on the multicast data message to obtain a first encapsulated data message;
and when the VTEP equipment forwards the multicast data message to the BDF equipment through a second VXLAN tunnel with the destination address of the BDF equipment, carrying out VXLAN encapsulation on the multicast data message to obtain a first encapsulated data message.
Step 2032, adding the first identification information to the first encapsulated data message to obtain a second encapsulated data message;
the VTEP device may add the first identification information to the first encapsulation message. For example, the VTEP device may set a reserved field of the first encapsulation packet, for example: and setting the reserved field as a valid set of '1' to obtain a second encapsulated data message. The set reserved field may represent the first identifier information of the multicast data packet.
Correspondingly, the step 204 of sending the multicast data packet to which the first identification information is added to the BDF device may be implemented by the following steps.
Step 2041, sending the second encapsulated data packet to the BDF device.
The VTEP equipment obtains a first encapsulated data message after carrying out VXLAN encapsulation on the multicast data message, and adds first identification information in the first encapsulated data message to obtain a second encapsulated data message. And the VTEP equipment sends the second encapsulated data message to the BDF equipment, so that after receiving the second encapsulated data message, the BDF equipment can decapsulate the second encapsulated data message after acquiring the first identification information in the second encapsulated data message to obtain a multicast data message, and forwards the multicast data message to the host according to the AC (access control) of the host accessing the BDF equipment.
For example, the VTEP device may set the reserved field of the first encapsulated data packet (add the first identification information) to obtain the second encapsulated data packet. And the VTEP equipment sends the second encapsulated data message to the BDF equipment so that the BDF equipment can inquire the reserved field of the second encapsulated data message after receiving the second encapsulated data message, decapsulate the second encapsulated data message to obtain a multicast data message when the inquiry result is that the reserved field of the second encapsulated data message is set, and forward the multicast data message to the host according to the AC (access controller) of the host accessing the BDF equipment.
Therefore, the VTEP device can add the first identification information to the multicast data packet by setting the reserved field of the multicast data packet after VXLAN encapsulation without changing the packet structure of the multicast data packet, so that the BDF device can determine that the multicast data packet is the multicast data packet sent by the VTEP device when inquiring that the reserved field of the encapsulation packet corresponding to the multicast data packet is set, and forward the multicast data packet, thereby ensuring that the host does not receive repeated data packets. The VTEP device can realize load sharing of the multicast data message through the DF device and the BDF device.
Fig. 7 is a flowchart illustrating a forwarding method of a multicast number packet according to an embodiment of the present disclosure.
In a possible implementation manner, referring to fig. 7, the method for forwarding a multicast data packet may include the following steps.
Step 701, receiving a multicast data message sent by a second multi-homing VTEP device;
the second multihomed VTEP device is a neighbor VTEP device in a different multihomed networking from the VTEP device (as shown in fig. 1, the VTEP device may be VTEP1 or VTEP2, and the second multihomed VTEP device may be VTEP 3).
For example, after receiving a multicast data packet from any multicast source, the second multihomed VTEP device queries a local multicast forwarding entry, determines that an output interface of the multicast data packet is a VXLAN tunnel with a destination address of the VTEP device, performs VXLAN encapsulation on the multicast data packet, and then sends the multicast data packet to the VTEP device through the VXLAN tunnel.
When determining that the VTEP device corresponding to the egress interface of the multicast data packet is a BDF device, the VTEP device may add first identification information to the multicast data packet, for example: and when carrying out VXLAN packaging on the multicast data message, setting the reserved field of the packaged multicast data message.
Step 702, inquiring a multicast forwarding list according to the multicast data message, and determining an output interface of the multicast data message;
after receiving the multicast data message, the VTEP device determines the output interface of the multicast data message by inquiring the local multicast forwarding list.
Step 703, when the egress interface represents that the VTEP device is a BDF device, if the multicast data packet carries the first identification information, forwarding the multicast data packet through the egress interface.
For example, when the VTEP device queries that the outgoing interface of the multicast data packet indicates that the VTEP device is a BDF device, the VTEP device may determine whether the multicast data packet carries the first identification information, and forward the multicast data packet through the outgoing interface when the multicast data packet carries the first identification information.
Illustratively, after receiving a multicast data packet which is sent by a second peer VTEP device and encapsulated by VXLAN, the VTEP device determines that an output interface of the multicast data packet is an AC according to the multicast data packet after querying a multicast forwarding list, where the AC indicates that the VTEP device is a BDF device, and then the VTEP device queries whether a reserved field of the multicast data packet is set, and forwards the multicast data packet after decapsulation to a host through the AC when the reserved field is set.
Therefore, the BDF device can identify that the multicast data message is the multicast data message sent to the BDF device by the VTEP device through the hash according to the first identification information carried by the multicast data message and forward the multicast data message, and the BDF device forwards the data message to the host according to the first identification information, so that the host can be ensured not to receive repeated data messages. Therefore, the BDF equipment can share the load of the multicast data message, so that the VTEP equipment can forward the multicast data message through the DF equipment and the BDF equipment, the transmission efficiency of the multicast data message can be improved, and the utilization rate of the VTEP equipment is improved.
In order to better understand the embodiments of the present disclosure, those skilled in the art will now describe the embodiments of the present disclosure by way of an example.
In the example shown in fig. 1, after receiving the routing information sent by the first multihomed VTEP device, the VTEP3 generates a third multicast forwarding entry according to the routing information.
For example, VTEP3 receives the route synchronization information sent by VTEP1(DF device), where the route synchronization information may include the route information of VTEP1 (the route information generated according to the first multicast forwarding entry (shown in table 1) generated by the multicast group join request of VM 1) and the IP address (BDF device) of VTEP 2. The VTEP device generates a third multicast forwarding entry according to the routing information of VTEP1 and the IP address of VTEP2, where the third multicast forwarding entry is shown in table 4.
For another example, VTEP3 receives the routing information of VTEP1 sent by VTEP1 and the routing information of VTEP2 sent by VTEP2, where the routing information of VTEP1 is the routing information generated by the first multicast forwarding entry generated by VTEP1 according to the multicast group join request of VM1, and the routing information of VTEP2 includes the routing information generated by VTEP2 according to the second multicast forwarding entry synchronized from VTEP1 (as shown in table 2). The VTEP3 device generates a third multicast forwarding entry according to the routing information of VTEP1 and the routing information of VTEP2, as shown in table 4.
When receiving the multicast data packet 1 and the multicast data packet 2 from the VM2 and the VM3, the VTEP3 may query the third multicast forwarding entry, and determine an output interface in the third multicast forwarding entry: an output interface corresponding to VTEP1 and an output interface corresponding to VTEP 2. VTEP3 hashes multicast datagram 1 and multicast datagram 2 to the two egress interfaces, for example: the multicast data packet 1 is hashed to a first VXLAN tunnel with a destination IP address VTEP1(1.1.1.1), and the multicast data packet 2 is hashed to a second VXLAN tunnel with a destination IP address VTEP2 (2.2.2.2).
Since VTEP1 is a DF device, VTEP3 encapsulates the multicast datagram 1VXLAN into an encapsulated datagram 1, and sends the encapsulated datagram 1 to VTEP1 through the first VXLAN tunnel. After receiving the encapsulated data packet 1, the VTEP1 queries the first multicast forwarding table entry, determines that the interface is AC1, and the AC1 represents that the VTEP1 is a DF device, so that the VTEP1 decapsulates the encapsulated data packet 1 to obtain a multicast data packet 1, and forwards the multicast data packet 1 to the VM1 through the AC 1.
Since VTEP2 is a BDF device, VTEP3 sets the reserved bit of the encapsulated datagram 2 during the process of encapsulating the multicast datagram 2VXLAN into the encapsulated datagram 2. VTEP3 sends encapsulated datagram 2 to VTEP2 through the second VXLAN tunnel. After receiving the encapsulated data packet 2, the VTEP2 queries the second multicast forwarding table entry to determine that the interface is AC2, where the AC2 represents that the VTEP2 is a BDF device, the VTEP2 queries the reserved field of the encapsulated data packet 2, finds that the reserved field of the encapsulated data packet 2 is set, and the VTEP2 decapsulates the encapsulated data packet 2 to obtain the multicast data packet 2, and forwards the multicast data packet 2 to the VM1 through the AC 2.
Thus, the VTEP3 can forward the multicast data packets from the VM2 and the VM3 to the VM1 through the VTEP1 and the VTEP2, thereby realizing load sharing, improving the transmission efficiency of the multicast data packets, and improving the utilization rate of resources.
Fig. 8 is a schematic structural diagram of a forwarding apparatus for multicast number packets according to an embodiment of the present disclosure, which is applied to an extensible virtual local area network tunnel endpoint VTEP, and as shown in fig. 8, the forwarding apparatus for multicast number packets may include:
a generating module 801, configured to generate a multicast forwarding entry according to routing information sent by a first multi-homing VTEP device, where an output interface in the multicast forwarding entry includes a first extensible virtual local area network VXLAN tunnel whose destination address is an appointed forwarder DF device, and a second VXLAN tunnel whose destination address is a standby appointed forwarder BDF device;
the first forwarding module 802 may be configured to forward the multicast data packet to the DF device or the BDF device according to the multicast forwarding entry.
Therefore, the VTEP device generates a multicast forwarding table according to the routing information sent by the first multihomed VTEP device, where an output interface in the multicast forwarding table includes a first VXLAN tunnel with a destination address of the DF device and a second VXLAN tunnel with a destination address of the BDF device, and forwards the multicast data packet to the DF device or the BDF device according to the multicast forwarding table. According to the forwarding device of the multicast data message provided by the embodiment of the disclosure, the VTEP device can not only forward the multicast data message to the host through the DF device, but also forward the multicast data message to the host through the BDF device, so that load sharing in the multi-homing network can be realized, transmission efficiency of the multicast data message is improved, and resource utilization rate of the VTEP device in the multi-homing network can be improved.
Fig. 9 is a schematic structural diagram of a forwarding apparatus for multicast number packets according to an embodiment of the present disclosure.
In a possible embodiment, referring to fig. 9, the apparatus may further include:
an adding module 803, configured to add first identification information to a multicast data packet when the multicast data packet is forwarded to a BDF device, where the first identification information is used to instruct the BDF device to forward the multicast data packet;
the sending module 804 may be configured to send the multicast data packet to which the first identification information is added to the BDF device, so that the BDF device forwards the multicast data packet according to the first identification information after receiving the multicast data packet.
In a possible implementation manner, referring to fig. 9, the adding module 803 may include:
the encapsulation submodule 8031 may be configured to perform VXLAN encapsulation on the multicast data packet when forwarding the multicast data packet to the BDF device, to obtain a first encapsulated data packet;
the adding submodule 8032 may be configured to add the first identification information to the first encapsulated data packet, so as to obtain a second encapsulated data packet;
the sending module 804 may include:
the sending submodule 8041 may be configured to send the second encapsulated data packet to the BDF device.
In one possible implementation manner, referring to fig. 9, the generating module 801 may include:
a first receiving sub-module 8011, configured to receive routing synchronization information sent by a DF device in the multi-homing networking, where the routing synchronization information includes routing information of the DF device and an identifier of the BDF device;
the first generating sub-module 8012 may be configured to generate a multicast forwarding table according to the routing information of the DF device and the identifier of the BDF device.
In one possible implementation manner, referring to fig. 9, the generating module 801 may include:
a second receiving sub-module 8013, configured to receive the routing information of the DF device sent by the DF device in the multi-home group network, and receive the routing information of the BDF device sent by the BDF device;
the second generating sub-module 8014 may be configured to generate a multicast forwarding list according to the routing information of the DF device and the routing information of the BDF device.
In a possible implementation manner, referring to fig. 9, the apparatus may further include:
a receiving module 805, configured to receive a multicast data packet sent by a second multi-homing VTEP device;
a determining module 806, configured to query a multicast forwarding list according to the multicast data packet, and determine an egress interface of the multicast data packet;
the second forwarding module 807 may be configured to, when the outgoing interface represents that the VTEP device is a BDF device, forward the multicast data packet through the outgoing interface if the multicast data packet carries the first identification information.
In one possible implementation manner, referring to fig. 9, the first forwarding module 802 may include:
the forwarding sub-module 8021 may be configured to select the DF device or select the BDF device to forward the multicast data packet through load sharing when receiving the multicast data packet.
Fig. 10 is a block diagram illustrating a hardware configuration of a forwarding apparatus for multicast data packets according to an example embodiment. In practical applications, the device may be implemented by a server. Referring to fig. 10, the apparatus 1300 may include a processor 1301, a machine-readable storage medium 1302 storing machine-executable instructions. The processor 1301 and the machine-readable storage medium 1302 may communicate via a system bus 1303. Also, the processor 1301 executes the multicast data packet forwarding method described above by reading a machine executable instruction corresponding to the multicast data packet forwarding logic in the machine readable storage medium 1302.
The machine-readable storage medium 1302 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: random Access Memory (RAM), volatile Memory, non-volatile Memory, flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, dvd, etc.), or similar storage media, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (14)

1. A method for forwarding multicast data messages is applied to a virtual local area network tunnel endpoint (VTEP) capable of being expanded, and the method comprises the following steps:
generating a multicast forwarding table item according to routing information sent by a first multi-homing VTEP device, wherein an output interface in the multicast forwarding table item comprises a first extensible virtual local area network VXLAN tunnel with a destination address of a designated forwarder DF device and a second VXLAN tunnel with a destination address of a standby designated forwarder BDF device;
forwarding a multicast data message to the DF device or the BDF device according to the multicast forwarding table item;
the routing information sent by the first multi-homing VTEP device includes routing information for forwarding a multicast data packet to a host, and information of the DF device and the BDF device accessed by the host in the multi-homing network.
2. The method of claim 1, further comprising:
when a multicast data message is forwarded to BDF equipment, adding first identification information to the multicast data message, wherein the first identification information is used for indicating the BDF equipment to forward the multicast data message;
and sending the multicast data message added with the first identification information to the BDF equipment, so that the BDF equipment forwards the multicast data message according to the first identification information after receiving the multicast data message.
3. The method according to claim 2, wherein the adding first identification information to the multicast data packet when forwarding the multicast data packet to a BDF device comprises:
when the multicast data message is forwarded to BDF equipment, carrying out VXLAN packaging on the multicast data message to obtain a first packaged data message;
adding the first identification information to the first encapsulated data message to obtain a second encapsulated data message;
the sending the multicast data packet added with the first identification information to the BDF device includes:
and sending the second encapsulated data message to the BDF equipment.
4. The method according to claim 1, wherein the generating a multicast forwarding entry according to the routing information sent by the first multihomed VTEP device comprises:
receiving routing synchronization information sent by a DF device in the multi-homing networking, wherein the routing synchronization information comprises routing information of the DF device and an identifier of the BDF device;
and generating a multicast forwarding table item according to the routing information of the DF device and the identifier of the BDF device.
5. The method according to claim 1, wherein the generating a multicast forwarding entry according to the routing information sent by the first multihomed VTEP device comprises:
receiving the routing information of the DF device sent by the DF device in the multi-home networking and receiving the routing information of the BDF device sent by the BDF device;
and generating a multicast forwarding list according to the routing information of the DF device and the routing information of the BDF device.
6. The method of claim 2, further comprising:
receiving a multicast data message sent by a second multi-homing VTEP device;
inquiring a multicast forwarding list according to the multicast data message, and determining an output interface of the multicast data message;
and when the output interface represents that the VTEP device is a BDF device, if the multicast data message carries first identification information, forwarding the multicast data message through the output interface.
7. The method of claim 1, wherein forwarding a multicast data packet to the DF device or the BDF device according to the multicast forwarding entry comprises:
and when receiving the multicast data message, selecting the DF device or selecting the BDF device to forward the multicast data message through load sharing.
8. A forwarding device of multicast data message is applied to an extensible virtual local area network tunnel endpoint (VTEP), and the device comprises:
the generating module is used for generating a multicast forwarding table item according to routing information sent by a first multi-homing VTEP device, wherein an output interface in the multicast forwarding table item comprises a first extensible virtual local area network VXLAN tunnel with a destination address of a designated forwarder DF device and a second VXLAN tunnel with a destination address of a standby designated forwarder BDF device;
a first forwarding module, configured to forward a multicast data packet to the DF device or the BDF device according to the multicast forwarding table entry;
the routing information sent by the first multi-homing VTEP device includes routing information for forwarding a multicast data packet to a host, and information of the DF device and the BDF device accessed by the host in the multi-homing network.
9. The apparatus of claim 8, further comprising:
the device comprises an adding module, a sending module and a receiving module, wherein the adding module is used for adding first identification information to a multicast data message when the multicast data message is forwarded to BDF equipment, and the first identification information is used for indicating the BDF equipment to forward the multicast data message;
and the sending module is used for sending the multicast data message added with the first identification information to the BDF equipment so that the BDF equipment forwards the multicast data message according to the first identification information after receiving the multicast data message.
10. The apparatus of claim 9, wherein the adding module comprises:
the encapsulation submodule is used for carrying out VXLAN encapsulation on the multicast data message when the multicast data message is forwarded to BDF equipment to obtain a first encapsulated data message;
the adding submodule is used for adding the first identification information into the first encapsulated data message to obtain a second encapsulated data message;
the sending module comprises:
and the sending submodule is used for sending the second encapsulated data message to the BDF equipment.
11. The apparatus of claim 8, wherein the generating module comprises:
the first receiving submodule is used for receiving routing synchronization information sent by a DF device in the multi-homing networking, wherein the routing synchronization information comprises routing information of the DF device and an identifier of the BDF device;
and the first generation submodule is used for generating a multicast forwarding table item according to the routing information of the DF device and the identifier of the BDF device.
12. The apparatus of claim 8, wherein the generating module comprises:
the second receiving submodule is used for receiving the routing information of the DF device sent by the DF device in the multi-attribution networking and receiving the routing information of the BDF device sent by the BDF device;
and the second generation submodule is used for generating a multicast forwarding list according to the routing information of the DF device and the routing information of the BDF device.
13. The apparatus of claim 9, further comprising:
the receiving module is used for receiving the multicast data message sent by the second multi-homing VTEP device;
a determining module, configured to query a multicast forwarding list according to the multicast data packet, and determine an output interface of the multicast data packet;
and a second forwarding module, configured to forward, when the output interface represents that the VTEP device is a BDF device, the multicast data packet through the output interface if the multicast data packet carries the first identification information.
14. The apparatus of claim 8, wherein the first forwarding module comprises:
and the forwarding submodule is used for selecting the DF device or selecting the BDF device to forward the multicast data message through load sharing when receiving the multicast data message.
CN201810359897.5A 2018-04-20 2018-04-20 Method and device for forwarding multicast data message Active CN108600074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810359897.5A CN108600074B (en) 2018-04-20 2018-04-20 Method and device for forwarding multicast data message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810359897.5A CN108600074B (en) 2018-04-20 2018-04-20 Method and device for forwarding multicast data message

Publications (2)

Publication Number Publication Date
CN108600074A CN108600074A (en) 2018-09-28
CN108600074B true CN108600074B (en) 2021-06-29

Family

ID=63614202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810359897.5A Active CN108600074B (en) 2018-04-20 2018-04-20 Method and device for forwarding multicast data message

Country Status (1)

Country Link
CN (1) CN108600074B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451034B (en) * 2018-11-28 2021-05-07 维沃移动通信有限公司 Data transmission method and equipment
CN113141290B (en) * 2020-01-19 2023-12-19 华为技术有限公司 Message transmission method, device and equipment
CN112367238B (en) * 2020-09-29 2022-07-12 新华三大数据技术有限公司 Message processing method and device
CN112929284A (en) * 2021-01-29 2021-06-08 烽火通信科技股份有限公司 ND message identification method and system under IPv6VXLAN scene
CN113259162B (en) * 2021-05-08 2022-09-16 中国工商银行股份有限公司 Network fault determination method and device, electronic equipment and storage medium
CN113595849B (en) * 2021-08-17 2022-05-20 中国联合网络通信集团有限公司 Message forwarding method, sending end VTEP and gateway VTEP
CN115051890A (en) * 2022-05-20 2022-09-13 中国电信股份有限公司 Message processing method, system, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970227A (en) * 2012-11-12 2013-03-13 盛科网络(苏州)有限公司 Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN103117935A (en) * 2013-02-28 2013-05-22 杭州华三通信技术有限公司 Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN103873373A (en) * 2012-12-11 2014-06-18 杭州华三通信技术有限公司 Multicast data message forwarding method and equipment
CN103905283A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Communication method and apparatus based on expandable virtual local area network
CN107846342A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of retransmission method, equipment and the system of VXLAN messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9948472B2 (en) * 2014-10-22 2018-04-17 Juniper Networks, Inc. Protocol independent multicast sparse mode (PIM-SM) support for data center interconnect
CN106254203B (en) * 2016-09-05 2020-02-11 新华三技术有限公司 Message forwarding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970227A (en) * 2012-11-12 2013-03-13 盛科网络(苏州)有限公司 Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN103873373A (en) * 2012-12-11 2014-06-18 杭州华三通信技术有限公司 Multicast data message forwarding method and equipment
CN103905283A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Communication method and apparatus based on expandable virtual local area network
CN103117935A (en) * 2013-02-28 2013-05-22 杭州华三通信技术有限公司 Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN107846342A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of retransmission method, equipment and the system of VXLAN messages

Also Published As

Publication number Publication date
CN108600074A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108600074B (en) Method and device for forwarding multicast data message
CN106936939B (en) Message processing method, related device and NVO3 network system
US9912612B2 (en) Extended ethernet fabric switches
US10652047B2 (en) Connectivity to internet via shared services in enterprise fabric based network with LISP control plane
EP3197107B1 (en) Message transmission method and apparatus
CN108718278B (en) Message transmission method and device
US20160036703A1 (en) Scalable mac address virtualization
US20140153577A1 (en) Session-based forwarding
JP2019527988A (en) Packet transmission
CN111937358B (en) Multiple VRF generic device internet protocol addresses for fabric edge devices
CN107317752B (en) Method and device for forwarding data message
WO2017215390A1 (en) Method and device for selecting data forwarding port of longitudinal stack system
EP3292659B1 (en) Multicast data packet forwarding
CN108199968B (en) Route processing method and device
JP6722816B2 (en) Packet transfer
CN113872845B (en) Method for establishing VXLAN tunnel and related equipment
CN108494701B (en) Load sharing method and device
CN107645433B (en) Message forwarding method and device
CN109412926B (en) Tunnel establishment method and device
CN108494686B (en) Route processing method and device
CN106209616B (en) Flooding inhibition method and device
CN103441932A (en) Host routing table entry generating method and device
CN108199947B (en) Designated forwarder DF election method and device
CN108600070B (en) Designated forwarder DF election method and device
WO2023168287A1 (en) Synchronizing dynamic host configuration protocol snoop information

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