CN109194559B - Multicast method and VTEP device - Google Patents

Multicast method and VTEP device Download PDF

Info

Publication number
CN109194559B
CN109194559B CN201810994365.9A CN201810994365A CN109194559B CN 109194559 B CN109194559 B CN 109194559B CN 201810994365 A CN201810994365 A CN 201810994365A CN 109194559 B CN109194559 B CN 109194559B
Authority
CN
China
Prior art keywords
multicast
vtep
target
message
local
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
CN201810994365.9A
Other languages
Chinese (zh)
Other versions
CN109194559A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201810994365.9A priority Critical patent/CN109194559B/en
Publication of CN109194559A publication Critical patent/CN109194559A/en
Application granted granted Critical
Publication of CN109194559B publication Critical patent/CN109194559B/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/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • 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

Landscapes

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

Abstract

The application provides a multicast method and VTEP equipment, relates to the technical field of data communication, and is used for solving the problem that multicast traffic is flooded in a VXLAN network. The method comprises the following steps: the local terminal VTEP receives a first VXLAN message sent by the remote terminal VTEP; wherein the first VXLAN message comprises: the address of the remote VTEP, the target virtual extended local area network identifier VNI, the target virtual local area network VLAN identifier and a multicast adding message; the multicast adding message comprises the address of a target multicast group; the local terminal VTEP creates a target multicast forwarding table according to the first VXLAN message, and adds the address of the remote terminal VTEP into a replication table of the target multicast forwarding table; and the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP. The method and the device are suitable for the process of transmitting the multicast message by the VTEP.

Description

Multicast method and VTEP device
Technical Field
The present application relates to the field of data communication technologies, and in particular, to a multicast method and a VTEP device.
Background
A Virtual Extensible Local Area Network (VXLAN) is a Network virtualization technology, and is used to provide more layer 2 Network segments to meet the requirements of large-scale cloud computing. Currently, VXLAN has the same forwarding method for broadcast, unknown unicast, and multicast (BUM) messages. Specifically, a VXLAN Tunnel End Point (VTEP) in the VXLAN network establishes a BUM replication table according to a dynamically learned BUM member or a statically configured BUM member list. After receiving the BUM traffic, one VTEP transmits the BUM traffic to other VTEPs in the VXLAN network according to the BUM copy table.
However, in a multicast scenario, for a particular multicast group, only a portion of the VTEPs in the VXLAN network generally need to receive multicast traffic, and not all of the VTEPs need to receive multicast traffic. Therefore, the multicast method may cause multicast traffic to flood in the VXLAN network, resulting in a waste of network bandwidth.
Disclosure of Invention
The application provides a multicast method, which is used for solving the problem that multicast traffic is flooded in a VXLAN network.
In order to achieve the purpose, the following scheme is adopted in the application:
in a first aspect, a multicast method is provided, which includes: the local terminal VTEP receives a first VXLAN message sent by the remote terminal VTEP; wherein the first VXLAN message comprises: the address of the remote VTEP, the target virtual extended local area network identifier VNI, the target virtual local area network VLAN identifier and a multicast adding message; the multicast adding message comprises the address of a target multicast group; the local terminal VTEP creates a target multicast forwarding table according to the first VXLAN message, and adds the address of the remote terminal VTEP into a replication table of the target multicast forwarding table; wherein, the keywords corresponding to the target multicast forwarding table include: a target VNI, a target VLAN identification and a target multicast group address; and the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP.
Based on the technical scheme, the local VTEP generates a target multicast forwarding table according to a first VXLAN message sent by the remote VTEP, and adds the address of the remote VTEP into a replication table of the target multicast forwarding table. And the target multicast forwarding table is used for enabling the local terminal VTEP to forward the multicast message of the target multicast group to the remote terminal VTEP. Therefore, the local VTEP does not send the multicast packet of the target multicast group to other unrelated VTEPs (i.e. VTEPs not recorded in the replication table of the target multicast forwarding table), thereby avoiding flooding of multicast traffic in the VXLAN network and further avoiding wasting of network bandwidth.
In a second aspect, there is provided a VTEP comprising: the receiving module is used for receiving a first virtual extensible local area network VXLAN message sent by a far-end VTEP; wherein the first VXLAN message comprises: the address of the remote VTEP, the target virtual extended local area network identifier VNI, the target virtual local area network VLAN identifier and a multicast adding message; the multicast join message includes an address of a target multicast group. The processing module is used for creating a target multicast forwarding table according to the first VXLAN message and adding the address of the remote VTEP into a replication table of the target multicast forwarding table; wherein, the keywords corresponding to the target multicast forwarding table include: a target VNI, a target VLAN identification and a target multicast group address; and the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP.
In a third aspect, a computer device is provided, the computer device comprising: a processor, a transceiver, and a memory. Wherein the memory stores one or more programs, the one or more programs comprising computer-executable instructions, and when the computer device is run, the processor executes the computer-executable instructions stored in the memory to cause the computer device to perform the multicast method according to any one of the first aspect and its various alternative implementations.
In a fourth aspect, there is provided a computer-readable storage medium having instructions stored therein, which when executed by a computer device, perform the multicast method according to the first aspect and any one of its various alternative implementations.
In a fifth aspect, there is provided a computer program product comprising instructions which, when executed by a computer device, cause the computer device to perform the multicast method of the first aspect and any of its various alternative implementations.
For technical effects brought by any one of the design manners of the second aspect to the fifth aspect, reference may be made to the related description of the first aspect, and details are not repeated here.
Drawings
Fig. 1 is a schematic diagram of an architecture of a VXLAN network according to an embodiment of the present application;
fig. 2 is a flowchart of a multicast method according to an embodiment of the present application;
fig. 3 is a flowchart of another multicast method according to an embodiment of the present application;
fig. 4 is a flowchart of another multicast method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a VTEP apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Fig. 1 is a schematic diagram of an architecture of a VXLAN network according to an embodiment of the present application. The VXLAN network includes a plurality of VTEPs, such as VTEP1, VTEP2, VTEP3, and VTEP 4.
VTEP refers to an endpoint device in a VXLAN network for establishing a VXLAN tunnel for sending and receiving VXLAN messages in the VXLAN network. A VTEP may access multiple VXLAN networks or may connect multiple servers in different or the same VXLAN networks. When a VTEP accesses a plurality of VXLAN networks, different interfaces of the VTEP may correspond to different VXLAN networks or may correspond to the same VXLAN network.
The server refers to a physical server or a Virtual Machine (VM). A VM refers to a complete computer system with complete hardware system functionality, emulated by software, running in a completely isolated environment. One physical server adopts a virtualization technology, and can virtualize a plurality of VMs.
A VXLAN tunnel is established between VTEPs of the same VXLAN network. VXLAN messages may be transmitted between VTEPs through VXLAN tunnels. For example, in fig. 1, VTEP1 establishes VXLAN tunnels with VTEP2, VTEP3, and VTEP4, respectively. Although not shown in fig. 1, in practice, VXLAN tunnels are established among VTEP2, VTEP3, and VTEP 4.
The technical solution provided by the embodiment of the present application is described below with reference to the VXLAN network architecture shown in fig. 1.
As shown in fig. 2, a multicast method provided in an embodiment of the present application includes the following steps:
s101, the local terminal VTEP receives a first VXLAN message sent by the remote terminal VTEP.
Wherein the first VXLAN message comprises: and the address of the remote VTEP, the target VNI, the target VLAN identification and the multicast adding message. The multicast joining message is used for requesting to join the target multicast group. The multicast join message carries a target multicast group address.
The address of the remote VTEP is an Internet Protocol (IP) address of the remote VTEP. And the target VNI is a VNI corresponding to the interface of the remote VTEP which receives the multicast adding message. The target VLAN identification is the VLAN identification carried by the multicast adding message. The multicast join message is an Internet Group Management Protocol (IGMP) message.
In an alternative implementation, the remote VTEP receives a multicast join packet sent by a server connected to the remote VTEP. And then, the remote VTEP encapsulates the multicast adding message into a first VXLAN message. And finally, the remote VTEP respectively sends the first VXLAN message to all VTEPs in a BUM copy table corresponding to the target VNI in a head-end copy mode. And all VTEPs in the BUM copy table corresponding to the target VNI comprise the local end VTEP.
It should be noted that the BUM copy table corresponding to the target VNI is used to record the address of each VTEP in the VXLAN network corresponding to the target VNI. And the BUM copy table corresponding to the target VNI is generated through static configuration or dynamic learning.
In the embodiment of the present application, the remote VTEP may run an IGMP proxy, so as to control forwarding of IGMP packets, thereby reducing the number of IGMP packets sent to other VTEPs.
S102, the local VTEP creates a target multicast forwarding table according to the first VXLAN message, and adds the address of the remote VTEP into a replication table of the target multicast forwarding table.
Wherein, the keywords corresponding to the target multicast forwarding table include: a target VNI, a target VLAN identification, and a target multicast group address. And the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP.
In the embodiment of the present application, the replication table in the multicast forwarding table may adopt the same construction technology as the BUM replication table. In this way, operations of adding, deleting, modifying and the like to the copy table in the multicast forwarding table can refer to the same operation of copying the BUM in the prior art. Moreover, the local VTEP can uniformly manage the BUM copy table and the copy table in the multicast forwarding table.
Optionally, if the multiple multicast forwarding tables contain the same duplicate table, the multiple multicast forwarding tables may multiplex the same duplicate table. That is, the local VTEP does not need to create a plurality of corresponding replication tables for a plurality of multicast forwarding tables, respectively.
An optional implementation manner is that after receiving the first VXLAN packet, the local VTEP decapsulates the first VXLAN packet to obtain an address, a target VNI, a target VLAN identifier, and a multicast join packet of the remote VTEP. An Internet Group Management Protocol Snooping (IGMPsnooping for short) module in the local VTEP creates a target multicast forwarding table according to a target VNI, a target VLAN identification and a target multicast Group address; and the local end VTEP also adds the address of the remote end VTEP into a replication table of the target multicast forwarding table.
It can be understood that, in the case that both the target multicast forwarding table and the replication table already exist, the home VTEP may directly add the address of the remote VTEP to the replication table of the target multicast forwarding table.
Optionally, after receiving the first VXLAN message, the local VTEP stores the first VXLAN message first; and then, after receiving the multicast message of the target multicast group, the local terminal VTEP creates a target multicast forwarding table according to the first VXLAN message. Therefore, the problem that the memory resource of the local VTEP is wasted because the target multicast forwarding table is idle after being created can be solved.
Based on the technical scheme, the local VTEP generates a target multicast forwarding table according to a first VXLAN message sent by the remote VTEP, and adds the address of the remote VTEP into a replication table of the target multicast forwarding table. And the target multicast forwarding table is used for enabling the local terminal VTEP to forward the multicast message of the target multicast group to the remote terminal VTEP. Therefore, the local VTEP does not send the multicast packet of the target multicast group to other unrelated VTEPs (i.e. VTEPs not recorded in the replication table of the target multicast forwarding table), thereby avoiding flooding of multicast traffic in the VXLAN network and further avoiding wasting of network bandwidth.
Based on the scheme shown in fig. 2, as shown in fig. 3, another multicast method is further provided for the embodiment of the present application, and the method includes the following steps:
s201, the local terminal VTEP receives the multicast message.
In an optional implementation manner, the local VTEP receives a multicast packet sent by a server connected to the local VTEP.
S202, the local VTEP detects whether the keywords corresponding to the multicast message match the keywords corresponding to the multicast forwarding table.
The keywords corresponding to the multicast packet include VNI, VLAN id, and multicast group address. It should be noted that the VNI corresponding to the multicast packet is the VNI corresponding to the interface of the local VTEP that receives the multicast packet. The VLAN identification corresponding to the multicast message is the VLAN identification carried by the multicast message. The multicast group address corresponding to the multicast message is the multicast group address carried by the multicast message.
In this embodiment, the matching of the keyword corresponding to the multicast packet with the keyword corresponding to the multicast forwarding table means that the VNI corresponding to the multicast packet is the same as the target VNI corresponding to the multicast forwarding table, the VLAN identifier corresponding to the multicast packet is the same as the target VLAN identifier corresponding to the multicast forwarding table, and the multicast group address corresponding to the multicast packet is the same as the target multicast group address corresponding to the multicast forwarding table.
It can be understood that, if the VNI corresponding to the multicast packet is different from the target VN I corresponding to the multicast forwarding table, or the VLAN identifier corresponding to the multicast packet is different from the target VLAN identifier corresponding to the multicast forwarding table, or the multicast group address corresponding to the multicast packet is different from the target multicast group address corresponding to the multicast forwarding table, the keyword corresponding to the multicast packet does not match the keyword corresponding to the multicast forwarding table.
In this embodiment of the present application, if the keyword corresponding to the multicast packet matches the keyword corresponding to the target multicast forwarding table, the local VTEP executes the following step S203. If the keyword corresponding to the multicast message is not matched with the keyword corresponding to any multicast forwarding table pre-stored by the local end VTEP, the local end VTEP executes the following step S204 or S205.
And S203, if the keyword corresponding to the multicast message matches the keyword corresponding to the target multicast forwarding table, the local VTEP forwards the multicast message to the remote VTEP according to the replication table of the target multicast forwarding table.
In an optional implementation manner, the local VTEP encapsulates the multicast packet into a third VXLAN packet; and then, the local VTEP sends the third VXLAN message to the remote VTEP according to the address of the remote VTEP recorded in the replication table of the target multicast forwarding table.
S204, if the key word corresponding to the multicast message is not matched with the key word corresponding to any multicast forwarding table pre-stored by the local VTEP, the local VTEP forwards the multicast message to all VTEPs in the target BUM copying table.
And the target BUM copy table is a BUM copy table corresponding to a VNI corresponding to the multicast message.
In an optional implementation manner, the local VTEP encapsulates the multicast packet into a third VXLAN packet; and then, the local terminal VTEP respectively sends the third VXLAN message to each VTEP in the target BUM copy table in a head end copy mode according to the target BUM copy table.
S205, if the key word corresponding to the multicast message is not matched with the key word corresponding to any multicast forwarding table pre-stored by the local VTEP, the local VTEP discards the multicast message.
If the keyword corresponding to the multicast message is not matched with the keyword corresponding to any multicast forwarding table pre-stored by the local terminal VTEP, the local terminal VTEP generates the multicast forwarding table corresponding to the multicast message according to the keyword corresponding to the multicast message, and the multicast forwarding table corresponding to the multicast message does not contain a replication table. Therefore, the multicast forwarding table corresponding to the multicast message does not contain a copy table, and the local terminal VTEP discards the multicast message.
Based on the technical scheme, after receiving the multicast message, the local terminal VTEP searches a matched multicast forwarding table according to the keywords of the multicast message. If the local terminal VTEP can find the matched multicast forwarding table, the multicast message is forwarded according to the multicast replication table contained in the matched multicast forwarding table, so as to avoid the problem that the multicast message is flooded in the VXLAN network. Otherwise, the local terminal VTEP forwards the multicast message according to the BUM copy table; or, the local VTEP discards the multicast packet.
Based on the scheme shown in fig. 2, as shown in fig. 4, another multicast method provided in the embodiment of the present application includes the following steps:
s301, the local terminal VTEP receives a second VXLAN message sent by the remote terminal VTEP.
And the second VXLAN message comprises a multicast exit message which is used for requesting to exit the target multicast group. The multicast exit message is an IGMP message.
In an optional implementation manner, the remote VXLAN message receives a multicast exit message sent by a server connected with the remote VXLAN message; then, the remote VTEP packages the multicast exit message into a second VXLAN message; finally, the remote VTEP sends the second VXLAN packet to each VTEP (i.e. home VTEP) in the BUM replication table corresponding to the target VNI in a head-end replication manner.
S302, the local VTEP deletes the address of the remote VTEP from the copy table of the target multicast forwarding table.
Optionally, if the replication table of the target multicast forwarding table does not contain any address of the VTEP, the local VTEP deletes the replication table of the target multicast forwarding table; further, the local end VTEP deletes the target multicast forwarding table.
Based on the technical scheme, after receiving a second VXLAN message sent by a remote VTEP, the local VTEP deletes the address of the remote VTEP from the replication table of the target multicast forwarding table. Thus, the local VTEP will not forward the multicast message of the target multicast group to the remote VTEP exiting the target multicast group.
The multicast method shown in fig. 2, 3 and 4 will be described with reference to the VXLAN network shown in fig. 1 and a specific scenario.
Assume that in the current VXLAN network, the address of VTEP1 is (1.1.1.1), the address of VTEP2 is (2.2.2.2), the address of VTEP3 is (3.3.3.3), and the address of VTEP4 is (4.4.4.4). VTEP1 establishes a static vxln tunnel with other VTEPs, VNI is 100, the static VXLAN tunnel between VTEP1 and VTEP2 is tunnel2(2.2.2.2), the static VXLAN tunnel between VTEP1 and VTEP3 is tunnel3(3.3.3.3), and the static VXLAN tunnel between VTEP1 and VTEP4 is tunnel4 (4.4.4.4.4), respectively. VTEP1 establishes BUM replication table 1 based on static VXLAN tunnels, BUM tunnel type head-end replication, egress (2.2.2.2, 3.3.3.3, 4.4.4.4). Similarly, other VTEPs will also establish a static VXLAN tunnel and establish a corresponding BUM copy table, which will not be described herein.
When the user-side port of VTEP1 receives IGMP message 1, where IGMP message 1 is used to request to join a target multicast group, and the address of the target multicast group is (224.1.1.1), VTEP1 encapsulates IGMP message 1 into VXLAN message 1, and sends VXLAN message 1 to VTEP2, VTEP3, and VTEP4 according to BUM replication table 1.
The VXLAN module of VTEP2 parses VXLAN message 1 from VTEP 1. After obtaining the IGMP message 1 and VXLAN information (VNI100, VLAN 1000, VTEP IP 1.1.1.1), the VXLAN module of VTEP2 forwards the IGMP message 1 and VXLAN information to the IGMP snooping module of VTEP 2. The IGMP snooping module creates multicast forwarding table 1 with keys (VNI100, VLAN 1000, VTEP IP 1.1.1.1). And the IGMP snooping module applies to the BUM replication table management module for replication table 1 of the multicast forwarding table 1, and the exit of the replication table 1 of the multicast forwarding table 1 is (1.1.1.1).
For the operations after VTEP3 and VTEP4 receive VXLAN message 1, reference may be made to the above-mentioned operations of VTEP2, which are not described herein again.
If VTEP2 receives a multicast packet with a multicast group address of (224.1.1.1), VTEP2 searches a multicast forwarding table according to a keyword corresponding to the multicast packet, and hits the multicast forwarding table 1, so that VTEP2 sends the multicast packet to VTEP1 according to the replication table 1 of the multicast forwarding table 1.
If the user side port of VTEP1 receives IGMP message 2, which is used to request to quit the target multicast group, VTEP1 encapsulates IGMP message 2 and VXLAN information (VNI100, VLAN 1000, VTEP IP 1.1.1.1) into VXLAN message 2; then, VTEP1 sends VXLAN message 2 to VTEP2, VTEP3, and VTEP4 according to BUM copy table 1.
After receiving the VXLAN message 2, the VXLAN module of VTEP2 decapsulates VXLAN message 2 to obtain IGMP message 2 and VXLAN information. After that, the VXLAN module of VTEP2 sends IGMP2 and VXLAN information to the IGMP snooping module of VTEP 2. The IGMP snooping module deletes (1.1.1.1) from the replication table 1 of the multicast forwarding table 1. It is assumed that table 1 of the multicast forwarding table 1 is copied after the exit (1.1.1.1) is deleted, and table 1 of the multicast forwarding table 1 contains no other exits. In this case, the IGMP snooping module deletes the duplicate table 1 of the multicast forwarding table 1, and deletes the multicast forwarding table 1.
The operations after VTEP3 and VTEP4 receive VXLAN message 2 refer to the operations of VTEP2, which are not described herein.
In the embodiment of the present application, the functional modules or functional units may be divided according to the above method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 5, a VTEP apparatus provided for the embodiment of the present application includes: a receiving module 401, a processing module 402 and a transmitting module 403.
A receiving module 401, configured to receive a first virtual extensible local area network VXLAN message sent by a remote VTEP; wherein the first VXLAN message comprises: the address of the remote VTEP, the target virtual extended local area network identifier VNI, the target virtual local area network VLAN identifier and a multicast adding message; the multicast join message includes an address of a target multicast group.
A processing module 402, configured to create a target multicast forwarding table according to the first VXLAN packet, and add the address of the remote VTEP to a replication table of the target multicast forwarding table; wherein, the keywords corresponding to the target multicast forwarding table include: a target VNI, a target VLAN identification and a target multicast group address; and the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP.
In a possible design, the receiving module 401 is further configured to receive a multicast packet. The sending module 403 is configured to forward the multicast packet to the remote VTEP according to the replication table of the target multicast forwarding table if the keyword corresponding to the multicast packet matches the keyword corresponding to the target multicast forwarding table.
In a possible design, the receiving module 401 is further configured to receive a multicast packet. The sending module 403 is configured to forward the multicast packet to all the preconfigured target broadcast, unknown unicast, and multicast BUM replication tables if the keyword corresponding to the multicast packet does not match with the keyword corresponding to any multicast forwarding table pre-stored in the local VTEP, where the target BUM replication table is the BUM replication table corresponding to the VNI corresponding to the multicast packet.
In a possible design, the receiving module 401 is further configured to receive a multicast packet. The sending module 403 is configured to discard the multicast packet if the keyword corresponding to the multicast packet does not match with the keyword corresponding to any multicast forwarding table in the local VTEP.
In a possible design, the receiving module 401 is further configured to receive a second VXLAN message sent by the remote VTEP, where the second VXLAN message includes a multicast exit message, and the multicast exit message is used to request to exit a target multicast group. The processing module 402 is further configured to delete the address of the remote VTEP from the copy table of the target multicast forwarding table.
Fig. 6 shows a schematic diagram of a possible structure of the computer device according to the above-described embodiment, in the case of an integrated unit. The computer device includes: a processing unit 501 and a communication interface 502. The processing unit 501 is configured to perform the steps performed by the processing module 402 described above, and/or other processes for performing the techniques described herein. The communication interface 502 is used to perform the steps performed by the receiving module 301 and the sending module 303 described above, and/or other processes for performing the techniques described herein. The communication interface 502 is also used to support communication of the computer device with other devices. The computer device may also include a storage unit 503 and a bus 504. The storage unit 503 is used to store program codes and data of the computer device.
The processing unit 501 may be a processor or controller in a computer device, which may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of the present application. The processor or controller may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of implementing computing functionality, e.g., including one or more microprocessors, etc.
The communication interface 502 may be a transceiver, a transceiver circuit or system interface in a computer device, or the like.
The storage unit 503 may be a memory in a computer device or the like, which may include a volatile memory such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 504 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 504 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The same and similar parts among the various embodiments in the present specification are referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points.
The embodiment of the application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is loaded onto a computer and executed by the computer, the computer program causes the computer to execute the multicast method.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by 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 method of multicasting, the method comprising:
a local virtual extensible local area network tunnel termination end point VTEP receives a first virtual extensible local area network VXLAN message sent by a remote VTEP; wherein the first VXLAN message comprises: the address of the remote VTEP, the target virtual extended local area network identifier VNI, the target virtual local area network VLAN identifier and a multicast adding message; the multicast adding message comprises the address of a target multicast group; the first VXLAN message is sent to the local VTEP by the remote VTEP in a head-end copying manner, and the local VTEP is a VTEP in all VTEPs in a BUM copy table corresponding to the target VNI;
the local terminal VTEP creates a target multicast forwarding table according to the first VXLAN message, and adds the address of the remote terminal VTEP into a replication table of the target multicast forwarding table; wherein, the keywords corresponding to the target multicast forwarding table include: a target VNI, a target VLAN identification and a target multicast group address; and the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP.
2. The multicast method according to claim 1, wherein the method further comprises:
the local terminal VTEP receives the multicast message;
and if the keywords corresponding to the multicast messages match the keywords corresponding to the target multicast forwarding table, the local VTEP forwards the multicast messages to the remote VTEP according to the replication table of the target multicast forwarding table.
3. The multicast method according to claim 1, wherein the method further comprises:
the local terminal VTEP receives the multicast message;
and if the keywords corresponding to the multicast messages are not matched with the keywords corresponding to any multicast forwarding table pre-stored by the local VTEP, the local VTEP forwards the multicast messages to all VTEPs in a pre-configured target broadcast, unknown unicast and multicast BUM copy table, wherein the target BUM copy table is a BUM copy table corresponding to a VNI corresponding to the multicast messages.
4. The multicast method according to claim 1, wherein the method further comprises:
the local terminal VTEP receives the multicast message;
and if the keywords corresponding to the multicast messages are not matched with the keywords corresponding to any multicast forwarding table in the local VTEP, the local VTEP discards the multicast messages.
5. The multicast method according to any one of claims 1 to 4, wherein the method further comprises:
the local terminal VTEP receives a second VXLAN message sent by the remote terminal VTEP, wherein the second VXLAN message comprises a multicast exit message which is used for requesting to exit a target multicast group;
and the local VTEP deletes the address of the remote VTEP from the copy table of the target multicast forwarding table.
6. A virtual extensible local area network tunnel termination endpoint, VTEP, device, comprising:
the receiving module is used for receiving a first virtual extensible local area network VXLAN message sent by a far-end VTEP; wherein the first VXLAN message comprises: the address of the remote VTEP, the target virtual extended local area network identifier VNI, the target virtual local area network VLAN identifier and a multicast adding message; the multicast adding message comprises the address of a target multicast group; the first VXLAN message is sent to a local terminal VTEP by the remote VTEP in a head end copying mode, and the local terminal VTEP is a VTEP in all VTEPs in a BUM copying table corresponding to the target VNI;
the processing module is used for creating a target multicast forwarding table according to the first VXLAN message and adding the address of the remote VTEP into a replication table of the target multicast forwarding table; wherein, the keywords corresponding to the target multicast forwarding table include: a target VNI, a target VLAN identification and a target multicast group address; and the target multicast forwarding table is used for enabling the local VTEP to forward the multicast message of the target multicast group to the remote VTEP.
7. The VTEP device according to claim 6, further comprising: a sending module;
the receiving module is also used for receiving the multicast message;
and the sending module is used for forwarding the multicast message to the remote VTEP according to the replication table of the target multicast forwarding table if the keyword corresponding to the multicast message matches the keyword corresponding to the target multicast forwarding table.
8. The VTEP device according to claim 6, further comprising: a sending module;
the receiving module is also used for receiving the multicast message;
and the sending module is used for forwarding the multicast message to all the preset target broadcast, unknown unicast and multicast BUM copy tables if the keyword corresponding to the multicast message is not matched with the keyword corresponding to any multicast forwarding table prestored by the local terminal VTEP, wherein the target BUM copy table is the BUM copy table corresponding to the VNI corresponding to the multicast message.
9. The VTEP device according to claim 6, further comprising: a sending module;
the receiving module is also used for receiving the multicast message;
and the sending module is used for discarding the multicast message if the keyword corresponding to the multicast message is not matched with the keyword corresponding to any multicast forwarding table in the local VTEP.
10. VTEP device according to any of claims 6 to 9,
the receiving module is further configured to receive a second VXLAN message sent by the remote VTEP, where the second VXLAN message includes a multicast exit message, and the multicast exit message is used to request to exit a target multicast group;
the processing module is further configured to delete the address of the remote VTEP from the replication table of the target multicast forwarding table.
CN201810994365.9A 2018-08-29 2018-08-29 Multicast method and VTEP device Active CN109194559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810994365.9A CN109194559B (en) 2018-08-29 2018-08-29 Multicast method and VTEP device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810994365.9A CN109194559B (en) 2018-08-29 2018-08-29 Multicast method and VTEP device

Publications (2)

Publication Number Publication Date
CN109194559A CN109194559A (en) 2019-01-11
CN109194559B true CN109194559B (en) 2021-04-30

Family

ID=64916969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810994365.9A Active CN109194559B (en) 2018-08-29 2018-08-29 Multicast method and VTEP device

Country Status (1)

Country Link
CN (1) CN109194559B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247779B (en) * 2019-06-17 2021-08-10 腾讯科技(深圳)有限公司 Multicast method, device, equipment and system for multicast group of virtual network group
CN111371667A (en) * 2019-10-23 2020-07-03 上海科技网络通信有限公司 LTE VPDN networking method based on VxLAN technology under cloud computing environment
CN111262713B (en) * 2020-01-03 2022-07-08 优刻得科技股份有限公司 Message multicast processing method, processing device, readable medium and system
CN113141291B (en) * 2020-01-17 2022-07-26 华为技术有限公司 Data transmission method and related equipment and system
CN113381931B (en) * 2021-05-17 2022-04-12 浪潮思科网络科技有限公司 Method and device for supporting MLAG (Multi-level Access gateway) dual-active access in VXLAN (virtual extensible local area network)
CN113364662B (en) * 2021-06-30 2023-03-24 北京天融信网络安全技术有限公司 Message processing method and device, storage medium and electronic equipment
CN114253979B (en) * 2021-12-23 2023-10-03 北京百度网讯科技有限公司 Message processing method and device and electronic equipment
CN115242708B (en) * 2022-07-21 2023-10-20 迈普通信技术股份有限公司 Multicast table item processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005434A (en) * 2007-01-15 2007-07-25 杭州华为三康技术有限公司 Polymerizing method for two layer multicast virtual local area network and its convergent exchanger
CN104243269A (en) * 2014-09-24 2014-12-24 杭州华三通信技术有限公司 Processing method and device of messages in VxLAN (virtual extensible local area network)
CN105227471A (en) * 2014-05-29 2016-01-06 杭州华三通信技术有限公司 Method and the edge device of multicast forwarding list item is set up in a kind of EVI network
CN105262667A (en) * 2015-09-17 2016-01-20 杭州数梦工场科技有限公司 Method and device for controlling multicast transmission in Overlay network
CN106656722A (en) * 2016-12-12 2017-05-10 杭州迪普科技股份有限公司 VXLAN multicasting method and device
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
CN107612809A (en) * 2017-10-31 2018-01-19 新华三技术有限公司 A kind of multicast list synchronous method and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9807020B2 (en) * 2015-05-08 2017-10-31 Cisco Technology, Inc. Policy enforcement for upstream flood traffic

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005434A (en) * 2007-01-15 2007-07-25 杭州华为三康技术有限公司 Polymerizing method for two layer multicast virtual local area network and its convergent exchanger
CN105227471A (en) * 2014-05-29 2016-01-06 杭州华三通信技术有限公司 Method and the edge device of multicast forwarding list item is set up in a kind of EVI network
CN104243269A (en) * 2014-09-24 2014-12-24 杭州华三通信技术有限公司 Processing method and device of messages in VxLAN (virtual extensible local area network)
CN105262667A (en) * 2015-09-17 2016-01-20 杭州数梦工场科技有限公司 Method and device for controlling multicast transmission in Overlay network
CN106656722A (en) * 2016-12-12 2017-05-10 杭州迪普科技股份有限公司 VXLAN multicasting method and device
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
CN107612809A (en) * 2017-10-31 2018-01-19 新华三技术有限公司 A kind of multicast list synchronous method and equipment

Also Published As

Publication number Publication date
CN109194559A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109194559B (en) Multicast method and VTEP device
US11050586B2 (en) Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device
CN109194560B (en) Multicast method and VTEP
US10771431B2 (en) Synchronizing IP information of virtual machines
US20160294769A1 (en) Communication Method, Apparatus, and System of Virtual Extensible Local Area Network
US10164866B2 (en) Virtual extensible LAN intercommunication mechanism for multicast in networking
US10572291B2 (en) Virtual network management
US11665088B2 (en) Assisted replication in software defined network
CN104243269A (en) Processing method and device of messages in VxLAN (virtual extensible local area network)
EP2843906A1 (en) Method, apparatus, and system for data transmission
CN105657081A (en) DHCP (dynamic host configuration protocol) service providing method, device and system
US10999195B1 (en) Multicast VPN support in data centers using edge replication tree
WO2019085822A1 (en) Method and device for implementing multicast service
US10652142B2 (en) SDN-based ARP implementation method and apparatus
CN113132202B (en) Message transmission method and related equipment
US10397340B2 (en) Multicast migration
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
WO2019024669A1 (en) Container isolation method and device for netlink resource
CN112866435A (en) MAC address aging processing method and equipment
CN109818869B (en) Method for generating multicast traffic forwarding port and related equipment
JP2012533959A (en) Effective host management protocol for multicast routers
CN113472667B (en) Message forwarding method, device, node equipment and storage medium
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
JP2005536151A (en) Download optimization in the presence of multicast data
CN112994928B (en) Virtual machine management method, device and system

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
CP02 Change in the address of a patent holder

Address after: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041, 17 floor, maple building, 1 building, 288 Tianfu street, Chengdu, Sichuan.

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder