CN108900422B - Multicast forwarding method and device and electronic equipment - Google Patents

Multicast forwarding method and device and electronic equipment Download PDF

Info

Publication number
CN108900422B
CN108900422B CN201810851327.8A CN201810851327A CN108900422B CN 108900422 B CN108900422 B CN 108900422B CN 201810851327 A CN201810851327 A CN 201810851327A CN 108900422 B CN108900422 B CN 108900422B
Authority
CN
China
Prior art keywords
multicast
forwarding
vtep
esi
sent
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
CN201810851327.8A
Other languages
Chinese (zh)
Other versions
CN108900422A (en
Inventor
黄李伟
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810851327.8A priority Critical patent/CN108900422B/en
Publication of CN108900422A publication Critical patent/CN108900422A/en
Application granted granted Critical
Publication of CN108900422B publication Critical patent/CN108900422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • 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
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation

Landscapes

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

Abstract

The application provides a multicast forwarding method, a device and electronic equipment, which relate to the technical field of data transmission, and because the same multi-homing network is configured with the same ESI, the multicast forwarding method provided by the application determines whether multicast traffic sent by a multicast source is a multi-homing network or not according to the preset corresponding relation between VXLAN and ESI under the multi-homing scene, if so, only one multicast traffic needs to be sent to the remote VTEP, and after the multicast traffic subsequently reaches the remote VTEP, local replication is carried out. Therefore, the replication workload of the VTEP accessed by the multicast source is reduced, the occupied network bandwidth of the public network is also reduced in the transmission process, and the multicast flow congestion caused by insufficient bandwidth resources is effectively alleviated.

Description

Multicast forwarding method and device and electronic equipment
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a multicast forwarding method and apparatus, and an electronic device.
Background
In an EVPN (Ethernet Virtual Private Network) Network, in order to improve the bandwidth utilization of links and enhance the Network reliability, multiple links are connected to multiple VTEPs (VXLAN Tunnel End Point, VXLAN (scalable Virtual local area Network) Tunnel endpoints) in the EVPN Network, so that a multi-homing access is formed. EVPN multi-homing introduces the following concept:
ES (Ethernet Segment): when one station (device or network) multi-homes to an EVPN network through a plurality of ethernet links, the plurality of ethernet links form an ethernet segment, i.e., an ES. The ES is identified using ESI (Ethernet Segment Identifier).
When implementing multicast IGMP Snooping (Internet Group Management Protocol Snooping), the EVPN ES network performs multicast Group join based on VXLAN, and the specific process is described as an example in fig. 1.
The user terminal 1 and the user terminal 2 both access VTEP1 and VTEP3 simultaneously through LSW (integrated access switch) and access VXLAN 10 and VXLAN 20, respectively, thereby forming an EVPN ES dual-homing network with VTEP1 as a backup device. The user terminal 1 and the user terminal 2 load the same multicast group join message, and establish an IGMP Snooping forwarding table entry based on VXLAN 10 and VXLAN 20 in VTEP1 and VTEP3, respectively, as follows:
VXLAN 10: (. G) the output interface is AC (Attachment Circuit, Access Circuit)
VXLAN 20: the (G) output interface is AC
Meanwhile, based on VXLAN, VTEP3 synchronizes the IGMP Snooping forwarding table entry to VTEP2 at the remote end. Where AC is a three-layer interface associated with a VSI (Virtual Switch Instance) on the VTEP.
After receiving the IGMP Snooping forwarding entries established based on VXLAN 10 and VXLAN 20, respectively, VTEP2 issues the IGMP Snooping forwarding entries based on VXLAN in VTEP 2. After VTEP2 receives the multicast traffic sent by multicast source S, it duplicates two multicast traffic in VTEP2 according to the number of VXLANs (including VXLAN 10 and VXLAN 20 in this example), and then sends the two multicast traffic to VTEP 3. After receiving the two multicast streams, VTEP3 forwards the multicast streams to the AC based on VXLAN, and finally to user terminal 1 and user terminal 2.
In the above process, when the VTEP2 (VTEP for multicast source access) forwards two or more multicast traffic to the remote VTEP3 (VTEP for user terminal access) after completing replication, the workload of replication of the VTEP2 increases, and the bandwidth pressure of the public network also increases.
Disclosure of Invention
In view of this, an object of the present application is to provide a multicast forwarding method, a device and an electronic device, so as to reduce the replication workload of VTEPs accessed by a multicast source, reduce the occupied public network bandwidth, and effectively alleviate the multicast traffic congestion caused by insufficient bandwidth resources.
In a first aspect, an embodiment of the present application provides a multicast forwarding method, where a VTEP accessed by a multicast source includes:
receiving multicast traffic sent by a multicast source, wherein the multicast traffic corresponds to a plurality of VXLANs;
judging whether the VXLANs correspond to the same Ethernet segment identifier ESI or not;
and if so, sending a copy of the multicast flow to a remote VTEP corresponding to the ESI.
With reference to the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect, where before receiving a multicast traffic sent by a multicast source, the method further includes:
receiving NLRI sent by a far-end VTEP;
extracting ESI corresponding to each forwarding table entry from the NLRI, and determining remote VTEP corresponding to the ESI.
With reference to the first aspect, an embodiment of the present application provides a second possible implementation manner of the first aspect, where before receiving a multicast traffic sent by a multicast source, the method further includes:
receiving NLRI sent by a far-end VTEP;
generating a forwarding corresponding relation according to each forwarding table item of the same multicast group in the NLRI; the forwarding corresponding relation comprises a VXLAN network identifier VNI, multicast information and ESI;
and issuing the forwarding corresponding relation to the remote VTEP.
With reference to the first possible implementation manner or the second possible implementation manner of the first aspect, an embodiment of the present application provides a third possible implementation manner of the first aspect, where after receiving the NLRI sent by the far-end VTEP, the method further includes:
and determining a main forwarding VXLAN and VNI thereof from the VXLANs according to the forwarding table entries in the NLRI.
In a second aspect, an embodiment of the present application provides a multicast forwarding method, which is applied to a VTEP accessed by a user equipment, and further includes:
receiving a multicast flow sent by a remote VTEP, and determining a multicast group corresponding to the multicast flow;
determining VXLAN to be forwarded by searching a forwarding corresponding relation which is stored locally in advance and corresponds to the multicast group;
copying the multicast flow according to the number of the VXLANs to be forwarded;
and respectively sending a plurality of multicast flows to corresponding user terminals according to the pre-established forwarding table entry.
With reference to the second aspect, an embodiment of the present application provides a first possible implementation manner of the second aspect, where before receiving the multicast traffic sent by the far-end VTEP, the method further includes:
and receiving a forwarding corresponding relation sent by the remote VTEP, wherein the forwarding corresponding relation comprises VNI, multicast information and ESI.
With reference to the second aspect, an embodiment of the present application provides a second possible implementation manner of the second aspect, where before receiving the multicast traffic sent by the far-end VTEP, the method further includes:
receiving a multicast adding request message sent by a user terminal;
respectively establishing forwarding table items according to the multicast adding request message sent by each user terminal;
determining ESI corresponding to access circuit AC in each forwarding table entry;
generating network layer reachability information NLRI, and synchronizing the NLRI to a remote VTEP; the NLRI includes each forwarding table entry and its corresponding ESI.
In a third aspect, an embodiment of the present application further provides a multicast forwarding apparatus, which is applied to a VTEP accessed by a multicast source, and includes:
the first receiving module is used for receiving multicast traffic sent by a multicast source, wherein the multicast traffic corresponds to a plurality of VXLANs;
a determining module for determining whether the plurality of VXLANs correspond to the same ESI;
and the first issuing module is configured to issue a copy of the multicast traffic to the remote VTEP corresponding to the ESI when the determination result of the determining module is yes.
In a fourth aspect, an embodiment of the present application further provides a multicast forwarding apparatus, which is applied to a VTEP accessed by a user equipment, and further includes:
the second receiving module is used for receiving a multicast flow sent by the remote VTEP and determining a multicast group corresponding to the multicast flow;
the VXLAN determining module is used for determining VXLAN to be forwarded by searching a forwarding corresponding relation which is stored locally in advance and corresponds to the multicast group;
the multicast replication module is used for replicating the multicast traffic according to the number of the VXLANs to be forwarded;
and the second issuing module is used for respectively sending a plurality of multicast flows to corresponding user terminals according to the pre-established forwarding table entry.
In a fifth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor executes the computer program to implement the method according to the first aspect and any possible implementation manner thereof, or the method according to the second aspect and any possible implementation manner thereof.
The embodiment of the application brings the following beneficial effects:
the multicast forwarding method provided by the embodiment of the application is applied to a VTEP accessed by a multicast source, and firstly, the multicast flow sent by the multicast source is received, wherein the multicast flow corresponds to a plurality of VXLANs; judging whether the VXLANs correspond to the same Ethernet segment identifier ESI or not; if yes, a copy of the multicast flow is sent to a remote VTEP corresponding to the ESI. Because the same multi-homing network is configured with the same ESI, the scheme determines whether the multicast flow sent by the multicast source is a multi-homing network or not according to the preset corresponding relation between VXLAN and ESI under the multi-homing scene, if so, only one multicast flow needs to be sent to the remote VTEP, and after the multicast flow reaches the remote VTEP, the local copy is carried out. Therefore, the replication workload of the VTEP accessed by the multicast source is reduced, the occupied network bandwidth of the public network is also reduced in the transmission process, and the multicast flow congestion caused by insufficient bandwidth resources is effectively alleviated.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a forwarding diagram of a network transmission model provided in the prior art;
fig. 2 is a forwarding diagram of a network transmission model provided in an embodiment of the present application;
fig. 3 is a flowchart illustrating a multicast forwarding method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another multicast forwarding method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another multicast forwarding method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another multicast forwarding method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a multicast forwarding apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another multicast forwarding apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another multicast forwarding apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another multicast forwarding apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, in EVPN network transmission, when two or more multicast flows are forwarded to a remote VTEP accessing a user terminal after the VTEP accessing a multicast source completes replication, not only the workload of replication of the VTEP accessing the multicast source is increased, but also the broadband pressure of a public network is increased, and even the multicast flow is congested due to insufficient bandwidth resources.
Based on this, the embodiment of the application provides a multicast forwarding method, a multicast forwarding device and electronic equipment. Because the same multi-homing network is configured with the same Ethernet segment identifier ESI, under the multi-homing scene, the scheme determines whether the multicast traffic sent by the multicast source corresponds to the same remote VTEP or not, namely whether the multicast traffic belongs to the same multi-homing network or not, namely whether the multicast traffic corresponds to the same remote VETP or not, if so, only one multicast traffic needs to be sent to the remote VTEP, and after the multicast traffic subsequently reaches the remote VTEP, local replication is carried out. Therefore, the replication workload of the VTEP accessed by the multicast source is reduced, the occupied network bandwidth of the public network is also reduced in the transmission process, and the multicast flow congestion caused by insufficient bandwidth resources is effectively alleviated.
The multicast forwarding method provided by the embodiment of the disclosure is suitable for an EVPN network transmission environment. Before introducing the method, information configuration needs to be performed on VTEPs accessed by the user terminal. The specific configuration process is described with reference to the network transmission model in fig. 2.
The user terminal 1 and the user terminal 2 access the VTEP in a multi-homing way through the LSW respectively, and the VETIP specifically comprises VTEP1 and VTEP3 respectively. The configuration process is as follows:
(1) dynamic access points are created on VTEP1 and VTEP3, and the values of Ethernet identifiers ESI corresponding to Ethernet segments ES are configured, and VTEPs in the same multi-homing networking configure the same ESI. The configuration is therefore as follows:
for the user terminal 1:
VTEP1 device IP address: 1.1.1.1; ESI value of dynamic access point configured to 1
VTEP3 device IP address: 3.3.3.3; ESI value of dynamic access point configured to 1
For the user terminal 2:
VTEP1 device IP address: 1.1.1.1; ESI value of dynamic access point configured to 1
VTEP3 device IP address: 3.3.3.3; ESI value of dynamic access point configured to 1
(2) The user terminal 1 and the user terminal 2 belong to different VXLANs, wherein the user terminal 1 accesses the VXLAN 10, and the user terminal 2 accesses the VXLAN 20.
(3) For the user terminal 1, the access circuit AC of VXLAN, i.e. the outgoing interface, is configured on VTEP1 and VTEP 3. The access circuit of VTEP1 is AC1, and the access circuit of VTEP3 is AC 2.
(4) For the user terminal 2, an access circuit AC of VXLAN is configured on VTEP1 and VTEP3, wherein the access circuit of VTEP1 is AC3, and the access circuit of VTEP3 is AC 4.
It should be noted that, in the present application, but not limited to, VTEP3 is used as DF (Designated Forwarder), and VTEP1 is used as BDF (Backup Designated Forwarder), i.e., Backup device.
After the information configuration is performed on the VTEP accessed by the user terminal, in order to solve the technical problem provided by the present application, the corresponding relationship between the VXLAN and the ESI in the multi-homing networking needs to be preset. Specifically, referring to the flow diagram of a multicast forwarding method shown in fig. 3, the multicast forwarding method is applied to a VTEP accessed by a user terminal, and includes the following steps:
step S301, receiving multicast join request message sent by user terminal.
The user terminal may be, but not limited to, a computer, a wireless terminal device, or a VM (Virtual Machine) created on a server. Different user terminals belong to different VXLANs. The multicast join request message carries information of the multicast group to which the user terminal belongs.
Step S302, respectively establishing forwarding table items according to the multicast join request message sent by each user terminal.
Wherein, the forwarding table entry includes a VXLAN Network identifier vni (VXLAN Network identifier), multicast information, and an AC identifier. Specifically, the multicast information may be represented in the form of (, G), which represents a multicast packet sent by any multicast source to the multicast group G, where "" represents any multicast source, "and" G "represents a specific multicast group G.
Taking the above fig. 2 as an example, the method is specifically applied to VTEP3, where the user terminal 1 and the user terminal 2 respectively send multicast join request messages, and transmit the multicast join request messages to VTEP3 through LSW. After receiving the multicast join request message, VTEP3 establishes a corresponding forwarding entry, that is, an IGMP Snooping forwarding entry. The method comprises the following specific steps:
user terminal 1, VXLAN 10: the (G) output interface is AC2
User terminal 2, VXLAN 20: the (G) output interface is AC4
Step S303, determining ESI corresponding to the access circuit AC in each forwarding table entry.
The ESI is configured at the time of multi-homing networking establishment, and specific reference may be made to the description of the example in fig. 2. Wherein VTEPs in the same multihomed network configure the same ESI.
And step S304, generating network layer reachability information NLRI, and synchronizing the NLRI to the remote VTEP.
The nlri (network Layer availability information), also called EVPN routing information, includes each forwarding entry and its corresponding ESI. In a possible embodiment, an extended community attribute is added to the NLRI, and the extended community attribute carries the corresponding ESI, as follows:
TABLE 1
Figure BDA0001746735510000091
It should be noted that table 1 is only exemplary and not intended to limit the present application.
Step S305, receiving a forwarding correspondence sent by the remote VTEP, where the forwarding correspondence includes a VXLAN network identifier VNI, multicast information, and ESI.
In step S305, the remote VTEP is a VTEP accessed by the multicast source, that is, another VTEP of the VXLAN tunnel corresponding to the VTEP accessed by the user. The forwarding correspondence may be used as a basis for multicast traffic replication and forwarding in a subsequent multicast traffic forwarding process, which is described in detail below with reference to fig. 4.
Fig. 4 is a flowchart illustrating another multicast forwarding method according to an embodiment of the present application. As shown in fig. 4, the multicast forwarding method is applied to a VTEP accessed by a multicast source, and includes the following steps:
step S401, receiving NLRI sent by far-end VTEP.
At this time, the remote VTEP is the VTEP accessed by the user terminal, and taking fig. 2 as an example, the VTEP accessed by the multicast source is VETP2, and the remote VTEP is VETP3 or VTEP 1.
Step S402, extracting ESI corresponding to each forwarding table entry from NLRI, and determining remote VTEP corresponding to ESI.
Still taking the network transmission model in fig. 2 as an example, according to the preconfigured information in the NLRI, it can be known that when the ESI is 1, the corresponding remote VTEP includes VTEP1 and VTEP 3.
Step S403, generating a forwarding correspondence relationship according to each forwarding entry of the same multicast group in the NLRI.
Whether each forwarding table item belongs to the same multicast group can be determined according to multicast group information carried in the multicast information in the main broadcast forwarding table item. Still taking fig. 2 as an example, the forwarding correspondence is shown in the following table:
TABLE 2
Figure BDA0001746735510000101
In a possible embodiment, the forwarding correspondence may also be created for each user terminal separately due to the VTEP accessed by the user terminal, then synchronized to the VTEP accessed by the multicast source, and then merged by the VTEP accessed by the multicast source.
And step S404, issuing the forwarding corresponding relation to the remote VTEP.
And issuing the forwarding corresponding relation to a remote VTEP, namely the VTEP accessed by the user terminal, so as to provide a copy and forwarding basis for the subsequent forwarding process of the multicast traffic.
Considering that there is more than one remote VTEP corresponding to the VTEP, in order to save bandwidth resources, one remote VTEP to be issued is selected from one or multiple remote VTEPs as a forwarding next hop for subsequently forwarding multicast traffic. Based on this, the step S404 includes: and selecting the remote VTEP to be issued from the remote VTEP, and issuing the forwarding corresponding relation to the remote VTEP to be issued.
Taking fig. 2 as an example, the remote VTEP includes VTEP1 and VTEP3, that is, one of VTEP1 and VTEP3 may be selected as a next hop for forwarding multicast traffic, and if VTEP3 is selected as a remote VTEP to be issued, then, subsequently, when the multicast traffic is forwarded, VTEP3 receives the multicast traffic and issues the multicast traffic to the user terminal.
In other embodiments, the sequence of step S402 and step S403 is not limited, and the execution sequence of step S402 and step S403 may be changed or set to be executed simultaneously according to actual situations.
In addition, since the network transmission model is a multi-homing network, in the multicast traffic forwarding process, a designated VXLAN needs to be selected as a transmission network of the multicast traffic. Based on this, the multicast forwarding method applied to the VTEP accessed by the multicast source further includes: and determining a main forwarding VXLAN and VNI thereof from the VXLANs according to the forwarding table entries in the NLRI.
Still taking fig. 2 as an example, one of VXLAN 10 and VXLAN 20 is selected as a main forwarding VXLAN, and the VNI of the main forwarding VXLAN is recorded. For example, the following are selected:
primary forwarding VXLAN:
VXLAN 10(, G) outbound interface is VXLAN tunnel to VTEP3
Forwarding VXLAN
VXLAN 20: (. G) outbound interface is VXLAN tunnel to VTEP3
In the method, an ESI value is added to an NLRI (unknown version of information) value in the process of establishing a forwarding table entry of a VTEP (virtual tape transport protocol) accessed by a user terminal, and the NLRI carrying the ESI value is synchronized to a remote VTEP, so that the remote VTEP establishes a forwarding corresponding relation according to the NLRI carrying the ESI value and synchronizes to a local VTEP.
After the corresponding relationship between the VXLAN and the ESI in the multi-homing network is set, forwarding of multicast traffic sent by a multicast source may be performed, see a flow diagram of another multicast forwarding method shown in fig. 5. The multicast forwarding method is applied to the VTEP accessed by the multicast source and comprises the following steps:
in step S501, a multicast traffic sent by a multicast source is received, where the multicast traffic corresponds to a plurality of VXLANs.
Since in the multi-homing access scenario, the multicast traffic corresponds to multiple VXLANs. And determining a multicast group corresponding to the multicast traffic according to the information corresponding to the multicast traffic, and searching a plurality of VXLANs corresponding to the multicast group and corresponding ESIs according to the multicast group. Still taking fig. 2 as an example, VTEP2 receives the multicast traffic sent by multicast source S, and determines that the multicast group corresponding to the multicast traffic is multicast group G. And determining that the VXLAN corresponding to the multicast group G comprises VXLAN 10 and VXLAN 20 and the corresponding ESI is 1 according to the pre-stored forwarding corresponding relation.
Step S502 determines whether or not the VXLANs correspond to the same ESI.
That is, it is determined whether the multicast traffic corresponds to the same multihoming network (that is, the multihoming network corresponds to the ESI one-to-one). Still taking fig. 2 as an example, it can be determined that VXLAN 10 and VXLAN 20 only correspond to the same ESI, i.e., the multicast traffic only corresponds to one multihomed network.
Step S503, if the VXLANs correspond to the same ESI, issuing a copy of the multicast traffic to the remote VTEP corresponding to the ESI.
Because the same multi-homing network is configured with the same ESI, under the multi-homing scene, according to the preset corresponding relation between VXLAN and ESI, whether the multicast flow sent by the multicast source corresponds to the corresponding multi-homing network is determined, namely whether the multicast flow corresponds to the same far-end VETP, if so, only one multicast flow needs to be sent to the far-end VTEP, and after the multicast flow reaches the far-end VTEP, local replication is carried out. Therefore, the replication workload of the VTEP accessed by the multicast source is reduced, the occupied network bandwidth of the public network is also reduced in the transmission process, and the multicast flow congestion caused by insufficient bandwidth resources is effectively alleviated.
In a possible embodiment, according to the remote VTEP to be issued and the primary forwarding VXLAN determined in step S404, in step S503: issuing a copy of the multicast traffic to a remote VTEP corresponding to the ESI includes: and encapsulating the multicast traffic according to the predetermined VNI of the main forwarding VXLAN. And transmitting the encapsulated multicast flow to a remote VTEP to be transmitted.
Still taking fig. 2 as an example, it is determined that the primary forwarding VXLAN is VXLAN 10, before the multicast traffic is issued, the multicast traffic is encapsulated according to a protocol corresponding to VXLAN 10, and then the encapsulated multicast traffic is issued to a remote VTEP to be issued, that is, VTEP 3.
Corresponding to fig. 5, fig. 6 is a schematic flowchart illustrating another multicast forwarding method provided in the embodiment of the present application. As shown in fig. 6, the multicast forwarding method is applied to a VTEP accessed by a user equipment, and includes the following steps:
step S601, receiving a multicast traffic sent by the remote VTEP, and determining a multicast group corresponding to the multicast traffic.
Taking fig. 2 as an example, VTEP3 receives multicast traffic (, G) sent by VTEP 2.
Step S602, determining the VXLAN to be forwarded by searching the forwarding corresponding relationship corresponding to the multicast group stored locally.
In a possible embodiment, the multicast traffic carries information of the multicast group to be sent. And correspondingly comparing the information of the multicast group to be sent with the multicast information in the forwarding corresponding relation, and determining the forwarding corresponding relation corresponding to the multicast group. When the multicast traffic carries the information of the multicast group G, the forwarding correspondence in table 2 may be found.
And step S603, copying the multicast flow according to the number of VXLANs to be forwarded.
Taking fig. 2 as an example, according to the correspondence in table 2, VXLAN to be forwarded, including VXLAN 10 and VXLAN 20, can be determined, so that it can be determined that the current scenario is a multi-homing networking scenario and two multicast flows need to be forwarded. At this time, the multicast traffic is copied to obtain two multicast flows.
Step S604, sending the multiple multicast flows to the corresponding user terminals respectively according to the pre-established forwarding table entry.
Still taking fig. 2 as an example, the corresponding forwarding table entry is found according to the VNI of the VXLAN to be forwarded, and the corresponding outgoing interface AC is determined, where VXLAN 10 is AC2, and VXLAN 20 is AC 4. At this time, one multicast traffic is sent to the ue 1 through the AC2, and another multicast traffic is sent to the ue 2 through the AC 4.
Therefore, a multicast flow is sent to VETP accessed by the user terminal through VTEP accessed by the multicast source, then the VETP accessed by the user terminal is copied, and the copied multicast flow is sent to each user terminal, thereby completing the forwarding of the multicast flow.
According to the technical scheme, in the transmission process of the EVPN network, when the VTEP synchronizes the NLRI, the extended group attribute carrying ESI is added, so that when the table entry is synchronously forwarded, whether the table entry belongs to a multi-homing scene can be judged according to the ESI, and VXLAN judgment and selection are performed.
Meanwhile, forwarding corresponding relations of VNI, forwarding table items and ESI are newly added, user terminals belonging to the same VTEP are newly added, the relations can be corresponded in different VXLANs, the fact that only one multicast flow needs to be copied by the VTEP accessed by the multicast source is guaranteed, namely only one multicast flow needs to be forwarded on a public network tunnel, and the VTEP accessed by the user terminals locally copies the multicast flow according to the corresponding relations, so that the copy workload of the VTEP accessed by the multicast source is reduced, the occupied network bandwidth of the public network is reduced, and the congestion of the multicast flow caused by insufficient bandwidth resources is effectively relieved.
An embodiment of the present application provides a multicast forwarding apparatus, which is applied to a VTEP accessed by a user equipment, as shown in fig. 7, and includes:
the request receiving module 710 is configured to receive a multicast join request message sent by a user terminal.
The table item establishing module 720 is configured to respectively establish forwarding table items according to the multicast join request packet sent by each user terminal.
An ESI determining module 730, configured to determine ESI corresponding to the access circuit AC in each forwarding table entry.
The NLRI synchronizing module 740 is configured to generate network layer reachability information NLRI, and synchronize the NLRI to a remote VTEP; the NLRI includes each forwarding table entry and its corresponding ESI.
The relationship receiving module 75 is configured to receive a forwarding correspondence sent by the remote VTEP, where the forwarding correspondence includes a VXLAN network identifier VNI, multicast information, and ESI.
Another multicast forwarding apparatus provided in this embodiment of the present application is applied to a VTEP accessed by a multicast source, as shown in fig. 8, and includes:
and an NLRI receiving module 810, configured to receive the NLRI sent by the far-end VTEP.
A VTEP determining module 820, configured to extract ESI corresponding to each forwarding table entry from the NLRI, and determine a remote VTEP corresponding to the ESI.
The relationship generating module 830 is configured to generate a forwarding corresponding relationship according to each forwarding entry of the same multicast group in the NLRI.
The relationship issuing module 840 is configured to issue the forwarding correspondence to the remote VTEP.
Another multicast forwarding apparatus provided in this embodiment of the present application is applied to a VTEP accessed by a multicast source, as shown in fig. 9, and includes:
a first receiving module 910, configured to receive a multicast traffic sent by a multicast source, where the multicast traffic corresponds to multiple VXLANs;
a determining module 920, configured to determine whether multiple VXLANs correspond to the same ESI;
a first issuing module 930, configured to issue a multicast flow to the remote VTEP corresponding to the ESI if the determination result of the determining module is yes.
Another multicast forwarding apparatus provided in the embodiment of the present application is applied to a VTEP accessed by a user equipment, as shown in fig. 10, and includes:
a second receiving module 110, configured to receive a multicast traffic sent by a remote VTEP, and determine a multicast group corresponding to the multicast traffic;
the VXLAN determining module 120 is configured to determine a VXLAN to be forwarded by searching a forwarding correspondence, which is stored locally in advance and corresponds to the multicast group;
a multicast replication module 130, configured to replicate multicast traffic according to the number of the VXLAN to be forwarded;
the second issuing module 140 is configured to send multiple multicast flows to corresponding user terminals according to a pre-established forwarding table entry.
Because the same multi-homing network is configured with the same ESI, under the multi-homing scene, according to the preset corresponding relation between VXLAN and ESI, whether the multicast flow sent by the multicast source corresponds to the corresponding multi-homing network is determined, namely whether the multicast flow corresponds to the same far-end VETP, if so, only one multicast flow needs to be sent to the far-end VTEP, and after the multicast flow reaches the far-end VTEP, local replication is carried out. Therefore, the replication workload of the VTEP accessed by the multicast source is reduced, the occupied network bandwidth of the public network is also reduced in the transmission process, and the multicast flow congestion caused by insufficient bandwidth resources is effectively alleviated.
Referring to fig. 11, an embodiment of the present application further provides an electronic device 100, including: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected through the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The Memory 41 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The bus 42 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 11, but that does not indicate only one bus or one type of bus.
The memory 41 is used for storing a program, and the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present application may be applied to the processor 40, or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 40. The Processor 40 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the method in combination with the hardware thereof.
The multicast forwarding device and the electronic device provided by the embodiment of the present application have the same technical features as the multicast forwarding method provided by the above embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The computer program product for performing the multicast forwarding method provided in the embodiment of the present application includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and is not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the electronic device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to 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 multicast forwarding method is applied to a VTEP accessed by a multicast source, and VTEPs in the same multi-homing network configure the same ESI, and the method comprises the following steps:
receiving multicast traffic sent by a multicast source, wherein the multicast traffic corresponds to a plurality of VXLANs;
judging whether the VXLANs correspond to the same Ethernet segment identifier ESI or not according to the preset corresponding relation between the VXLAN and the ESI;
and if so, sending one part of multicast flow to a remote VTEP corresponding to the ESI, copying the multicast flow and sending the multicast flow by the remote VTEP according to the number of the VXLANs.
2. The method of claim 1, wherein before receiving the multicast traffic sent by the multicast source, the method further comprises:
receiving NLRI sent by a far-end VTEP;
extracting ESI corresponding to each forwarding table entry from the NLRI, and determining remote VTEP corresponding to the ESI.
3. The method of claim 1, wherein before receiving the multicast traffic sent by the multicast source, the method further comprises:
receiving NLRI sent by a far-end VTEP;
generating a forwarding corresponding relation according to each forwarding table item of the same multicast group in the NLRI; the forwarding corresponding relation comprises a VXLAN network identifier VNI, multicast information and ESI;
and issuing the forwarding corresponding relation to the remote VTEP.
4. The method according to claim 2 or 3, wherein after receiving the NLRI sent by the far-end VTEP, the method further comprises:
and determining a main forwarding VXLAN and VNI thereof from the VXLANs according to the forwarding table entries in the NLRI.
5. A multicast forwarding method is applied to a VTEP accessed by a user terminal, and further comprises the following steps:
receiving a multicast flow sent by a remote VTEP, and determining a multicast group corresponding to the multicast flow;
determining VXLAN to be forwarded by searching a forwarding corresponding relation which is stored locally in advance and corresponds to the multicast group;
copying the multicast flow according to the number of the VXLANs to be forwarded;
and respectively sending a plurality of multicast flows to corresponding user terminals according to the pre-established forwarding table entry.
6. The method according to claim 5, wherein before receiving the multicast traffic sent by the remote VTEP, the method further comprises:
and receiving a forwarding corresponding relation sent by the remote VTEP, wherein the forwarding corresponding relation comprises VNI, multicast information and ESI.
7. The method according to claim 5, wherein before receiving the multicast traffic sent by the remote VTEP, the method further comprises:
receiving a multicast adding request message sent by a user terminal;
respectively establishing forwarding table items according to the multicast adding request message sent by each user terminal;
determining ESI corresponding to access circuit AC in each forwarding table entry;
generating network layer reachability information NLRI, and synchronizing the NLRI to a remote VTEP; the NLRI includes each forwarding table entry and its corresponding ESI.
8. A multicast forwarding apparatus is applied to a VTEP accessed by a multicast source, and VTEPs in the same multi-homing network configure the same ESI, and the apparatus comprises:
the first receiving module is used for receiving multicast traffic sent by a multicast source, wherein the multicast traffic corresponds to a plurality of VXLANs;
the judging module is used for judging whether the VXLANs correspond to the same ESI or not according to the preset corresponding relation between the VXLAN and the ESI;
and a first sending module, configured to send a copy of the multicast traffic to a remote VTEP corresponding to the ESI when the determination result of the determining module is yes, and copy and send the multicast traffic by the remote VTEP according to the number of the plurality of VXLANs.
9. A multicast forwarding apparatus, applied to a VTEP accessed by a user equipment, further comprising:
the second receiving module is used for receiving a multicast flow sent by the remote VTEP and determining a multicast group corresponding to the multicast flow;
the VXLAN determining module is used for determining VXLAN to be forwarded by searching a forwarding corresponding relation which is stored locally in advance and corresponds to the multicast group;
the multicast replication module is used for replicating the multicast traffic according to the number of the VXLANs to be forwarded;
and the second issuing module is used for respectively sending a plurality of multicast flows to corresponding user terminals according to the pre-established forwarding table entry.
10. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 4 or the method of any of claims 5 to 7 when executing the computer program.
CN201810851327.8A 2018-07-27 2018-07-27 Multicast forwarding method and device and electronic equipment Active CN108900422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810851327.8A CN108900422B (en) 2018-07-27 2018-07-27 Multicast forwarding method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810851327.8A CN108900422B (en) 2018-07-27 2018-07-27 Multicast forwarding method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108900422A CN108900422A (en) 2018-11-27
CN108900422B true CN108900422B (en) 2021-10-12

Family

ID=64352343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810851327.8A Active CN108900422B (en) 2018-07-27 2018-07-27 Multicast forwarding method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108900422B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134776B (en) * 2019-06-25 2022-08-26 华为技术有限公司 Method for generating multicast forwarding table item and access gateway
CN110445702B (en) * 2019-07-09 2021-04-06 新华三技术有限公司合肥分公司 Message forwarding method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905530A (en) * 2006-08-08 2007-01-31 杭州华为三康技术有限公司 Method and system of multicast and video-on-demand
CN101013950A (en) * 2007-02-07 2007-08-08 杭州华为三康技术有限公司 Method and apparatus for realizing multicasting virtual private network binding
US8705526B1 (en) * 2010-12-03 2014-04-22 Juniper Networks, Inc. Extending VPLS support for CE lag multi-homing
CN103814554A (en) * 2013-12-11 2014-05-21 华为技术有限公司 Communication method, device and system of virtual extensible local area network
CN104410560A (en) * 2014-11-27 2015-03-11 盛科网络(苏州)有限公司 Method for realizing BUM packet forwarding through NVGRE unicast
CN107409083A (en) * 2015-03-26 2017-11-28 思科技术公司 Expansible processing to the bgp routing information in the VXLAN with EVPN control planes
CN107623636A (en) * 2016-07-13 2018-01-23 华为技术有限公司 A kind of user isolation method and interchanger
US10033539B1 (en) * 2016-03-31 2018-07-24 Juniper Networks, Inc. Replicating multicast state information between multi-homed EVPN routing devices
CN108322338A (en) * 2018-01-23 2018-07-24 新华三技术有限公司 A kind of broadcast suppressing method and VTEP equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905530A (en) * 2006-08-08 2007-01-31 杭州华为三康技术有限公司 Method and system of multicast and video-on-demand
CN101013950A (en) * 2007-02-07 2007-08-08 杭州华为三康技术有限公司 Method and apparatus for realizing multicasting virtual private network binding
US8705526B1 (en) * 2010-12-03 2014-04-22 Juniper Networks, Inc. Extending VPLS support for CE lag multi-homing
CN103814554A (en) * 2013-12-11 2014-05-21 华为技术有限公司 Communication method, device and system of virtual extensible local area network
CN104410560A (en) * 2014-11-27 2015-03-11 盛科网络(苏州)有限公司 Method for realizing BUM packet forwarding through NVGRE unicast
CN107409083A (en) * 2015-03-26 2017-11-28 思科技术公司 Expansible processing to the bgp routing information in the VXLAN with EVPN control planes
US10033539B1 (en) * 2016-03-31 2018-07-24 Juniper Networks, Inc. Replicating multicast state information between multi-homed EVPN routing devices
CN107623636A (en) * 2016-07-13 2018-01-23 华为技术有限公司 A kind of user isolation method and interchanger
CN108322338A (en) * 2018-01-23 2018-07-24 新华三技术有限公司 A kind of broadcast suppressing method and VTEP equipment

Also Published As

Publication number Publication date
CN108900422A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
KR100680888B1 (en) Virtual multicast routing for a cluster having state synchronization
CN104509073A (en) Discovering ip multicast group memberships in software defined networks
US10855576B2 (en) Information transmission method and device
WO2021031648A1 (en) Evpn and vpls coexistence method, apparatus, and system
CN108259304B (en) Forwarding table item synchronization method and device
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
CN112134776B (en) Method for generating multicast forwarding table item and access gateway
CN114143283B (en) Tunnel self-adaptive configuration method and device, central terminal equipment and communication system
WO2020057445A1 (en) Communication system, method, and device
CN108900422B (en) Multicast forwarding method and device and electronic equipment
CN107483628B (en) DPDK-based one-way proxy method and system
WO2021184862A1 (en) Message sending method, first network device, and network system
CN108092896B (en) Stacking system and aggregation group creation apparatus
CN110769019A (en) Session processing method, device and system
CN112217735A (en) Information synchronization method and load balancing system
CN109462537B (en) Cross-network intercommunication method and device
JP2020188478A (en) Method for synchronizing topology information in sfc network, and routing network element
CN108768845B (en) Multi-homing host routing synchronization method and device
CN107086958B (en) Data transmission method, wap gateway and system
CN111416760B (en) Information synchronization method, terminal and information synchronization system
CN114422427A (en) Flow balancing method and device, electronic equipment and storage medium
CN109600431B (en) Content increment transmission method facing mobile communication network and mobile communication system
CN113472916A (en) MAC address aging processing method and equipment
CN106878051B (en) Multi-machine backup implementation method and device
CN109981302B (en) Multicast communication method and device

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