CN106230730A - A kind of multicast transmission method and device - Google Patents

A kind of multicast transmission method and device Download PDF

Info

Publication number
CN106230730A
CN106230730A CN201610617480.5A CN201610617480A CN106230730A CN 106230730 A CN106230730 A CN 106230730A CN 201610617480 A CN201610617480 A CN 201610617480A CN 106230730 A CN106230730 A CN 106230730A
Authority
CN
China
Prior art keywords
mvpn
label
p2mp tunnel
multicast packet
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610617480.5A
Other languages
Chinese (zh)
Other versions
CN106230730B (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 Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610617480.5A priority Critical patent/CN106230730B/en
Publication of CN106230730A publication Critical patent/CN106230730A/en
Application granted granted Critical
Publication of CN106230730B publication Critical patent/CN106230730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/1886Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with traffic restrictions for efficiency improvement, e.g. involving subnets or subdomains
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

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 embodiment of the present application provides a kind of multicast transmission method and device.Method therein comprises determining that the MVPN that multicast packet is corresponding;The forward table set up is searched and obtains P2MP tunnel outgoing interface corresponding for described MVPN;Described multicast packet is forwarded by described P2MP tunnel outgoing interface;Wherein, the corresponding multiple MVNP in P2MP tunnel.The embodiment of the present application can improve the utilization rate of the P2MP tunnel resource of PE equipment, and reduces the network bandwidth resources that multiple P2MP tunnel takies.

Description

A kind of multicast transmission method and device
Technical field
The application relates to communication technical field, particularly relates to a kind of multicast transmission method and device.
Background technology
MVPN (Multicast virtual private network, multicasting VPN) is a kind of realization in VPN The technology of multicast transmission.One VPN is generally made up of, respectively the public network network of operator and each site (website) of user Isolate each other between individual site, only could realize intercommunication by public network.
With reference to Fig. 1, it is shown that existing a kind of MVPN schematic network structure.Wherein, the CE (Custom in site1 Edge, customer edge) equipment CE1 is connected with multicast source source, and in same MVPN, such as MVPN a, and CE2 With CE3 also in MVPN a.In the network structure shown in Fig. 1, public network uses MPLS (Multi-Protocol Label Switching, multiprotocol label switching) backbone network, in a particular application, can be on PE (Provider Edge, service limit Edge equipment) between set up P2MP (Point 2Multiple Point, point-to-multipoint) Tunnel (tunnel) and transmit in MVPN a Private network data so that the CE3 in CE2 and site3 in site2 can by P2MP tunnel receive multicast source send Multicast packet.
Specifically, when PE1 receives the multicast packet from multicast source, multicast packet is encapsulated MPLS label, then It is forwarded to other connections by P2MP tunnel and has the PE equipment of recipient, the multicast that will receive such as PE2 and PE3, PE2 and PE3 Data remove outer layer label, then are sent respectively to CE2 and CE3 connected through three layers of multicast forwarding.
Summary of the invention
The embodiment of the present application provides a kind of multicast transmission method and device, shares same P2MP tunnel realizing multiple MVPN Road, can improve the utilization rate of the P2MP tunnel resource of PE equipment, and reduce the network bandwidth money that multiple P2MP tunnel takies Source.
In order to solve the problems referred to above, the embodiment of the present application discloses a kind of multicast transmission method, including:
Determine the MVPN that multicast packet is corresponding;
The forward table set up is searched and obtains P2MP tunnel outgoing interface corresponding for described MVPN;
Described multicast packet is forwarded by described P2MP tunnel outgoing interface;Wherein, the corresponding multiple MVNP in P2MP tunnel.
According to further aspect of the application, the embodiment of the present application discloses a kind of multicast transmission device, including:
First determines module, for determining the MVPN that multicast packet is corresponding;
Enquiry module, obtains P2MP tunnel outgoing interface corresponding for described MVPN for searching in the forward table set up;
Data forwarding module, for forwarding described multicast packet by described P2MP tunnel outgoing interface;Wherein, a P2MP The corresponding multiple MVNP in tunnel.
The embodiment of the present application includes advantages below:
The embodiment of the present application can set up the corresponding relation between each MVPN and P2MP tunnel outgoing interface, in propagation group During multicast data, it is first determined the MVPN that multicast packet is corresponding;Then search in the forward table set up and be somebody's turn to do P2MP tunnel outgoing interface corresponding for MVPN;This multicast packet is forwarded finally by this P2MP tunnel outgoing interface.Due to a P2MP Tunnel can corresponding multiple MVNP, and the most corresponding different P2MP tunnel outgoing interface of each MVNP, such that it is able to realize many Individual MVPN shares a public network P2MP tunnel, and then can improve the utilization rate of the P2MP tunnel resource of PE equipment, and reduces The network bandwidth resources that multiple P2MP tunnels take.
Accompanying drawing explanation
Fig. 1 shows existing a kind of MVPN schematic network structure;
Fig. 2 shows the flow chart of steps of a kind of multicast transmission method of one of them embodiment of the application;
Fig. 3 shows a kind of MVPN schematic network structure of the application;
Fig. 4 shows the structured flowchart of a kind of multicast transmission device of one of them embodiment of the application.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the application, feature and advantage to become apparent from, real with concrete below in conjunction with the accompanying drawings The application is described in further detail by mode of executing.
In MVPN technology, MVPN and P2MP tunnel is relation one to one, such as the P2MP tunnel set up in Fig. 1, only The private network data transmitting in MVPN a can be used for, when needing to transmit the private network data in multiple MVPN such as MVPN b, MVPN c, Need to resettle the P2MP tunnel corresponding with MVPN b respectively, and the P2MP tunnel etc. corresponding with MVPN c.Thus, along with Being continuously increased of MVPN quantity, the requirement causing the P2MP tunnel resource to PE equipment is higher, P2MP tunnel resource even occurs Not enough situation occurs, and multiple P2MP tunnel also can cause the waste to network bandwidth resources.
With reference to Fig. 2, it is shown that the flow chart of steps of a kind of multicast transmission method of one of them embodiment of the application, the party Method can be applicable to PE equipment, and described PE equipment is specifically as follows the PE equipment being connected with multicast source, namely described PE equipment is permissible First node for P2MP tunnel;Or, described PE equipment can be the PE equipment being connected with recipient, namely described PE equipment can Think the tail node in P2MP tunnel;Or, described PE equipment can also be intermediate forwarding devices.Be appreciated that the application for The concrete form of described PE equipment is not any limitation as, and described method specifically may include steps of:
Step 201, determine the MVPN that multicast packet is corresponding;
Step 202, in the forward table set up search obtain P2MP tunnel outgoing interface corresponding for described MVPN;
Step 203, by described P2MP tunnel outgoing interface forward described multicast packet;Wherein, a P2MP tunnel is corresponding Multiple MVNP.
The embodiment of the present application is applicable to the application scenarios of MVPN, and relative to existing MVPN, a MVPN can only be corresponding A unique public network P2MP tunnel, the embodiment of the present application can realize multiple MVPN and share a public network P2MP tunnel, thus The utilization rate of the P2MP tunnel resource of PE equipment can be improved, and reduce the network bandwidth resources that multiple P2MP tunnel takies.
Share a public network P2MP tunnel to realize multiple MVPN, the embodiment of the present application can set up each MVPN with Corresponding relation between P2MP tunnel outgoing interface, during propagating multicast packet, it is first determined multicast packet is corresponding MVPN;Then search in the forward table set up and obtain P2MP tunnel outgoing interface corresponding for this MVPN;Finally by this P2MP Tunnel outgoing interface forwards this multicast packet.Due to a P2MP tunnel can corresponding multiple MVNP, and each MVNP is the most right Answer different P2MP tunnel outgoing interfaces, such that it is able to realize multiple MVPN to share a public network P2MP tunnel.
In a kind of alternative embodiment of the application, can use customized label to identify different MVNP, described side Method can also comprise the steps:
For each MVPN that described PE equipment is corresponding, apply for the MVPN label corresponding with described MVPN;
MVPN label corresponding to described MVPN is sent to the neighbor device of described PE equipment.
In a particular application, headed by described PE equipment during node, can be to each MVPN on described PE equipment, Shen MVPN label that please be corresponding, to identify each MVPN.Such as, it is configured with MVPN a on node, and PE1 headed by PE equipment PE1 With MVPN b, then PE1 can be for MVPN a and MVPN b, the MVPN label that SEPARATE APPLICATION is corresponding, and such as, MVPN a is corresponding MVPN label is 300;MVPN label corresponding for MVPN b is 301.Thus, it is possible to it is corresponding by MVPN tags unique identifier MVPN。
After PE1 is MVPN label corresponding to MVPN a and MVPN b SEPARATE APPLICATION, can send out to the neighbor device of PE1 Sending MVPN label corresponding for MVPN a and MVPN b, such as, PE1 can be to BGP (Border Gateway Protocol, border Gateway protocol) neighbor device sends and carries the neighbours of MVPN label and update message, so that each PE in forward-path Equipment can obtain MVPN label corresponding for MVPN, and then can set up MVPN label and P2MP tunnel in the forward table of self Mapping relations between road outgoing interface.
In a kind of application example of the application, with reference to Fig. 3, it is shown that a kind of MVPN network structure signal of the application Figure.Wherein, PE equipment PE1 is connected with multicast source, and PE equipment PE3, PE4, PE5 are connected with multicast receivers respectively, and join on PE1 It is equipped with MVPN a and MVPN b;MVPN a and MVPN b it is configured with on PE3;MVPN b it is configured with on PE4;It is configured with on PE5 MVPN a.With reference to table 1, it is shown that the concrete signal of a kind of forward table of the application, and this forward table pre-builds at PE1 equipment In.Assume that on PE1, built vertical P2MP tunnel is that tunnel1, the tunnel1 outgoing interface on PE1 includes outgoing interface 1 and outgoing interface 2。
Table 1
MVPN title MVPN label P2MP tunnel outgoing interface
a 300 1
b 301 1
a 300 2
b 301 2
In the embodiment of the present application, when PE1 equipment receives after the multicast packet of multicast source, can be by duplication Many parts of multicast packets all forward from the same P2MP tunnel set up, in order to distinguish difference MVPN pair in same tunnel The multicast packet answered, PE1 equipment needs to add MVPN label when to transmitting multicast data, in repeating process, middle forwarding Equipment is after receiving the multicast packet that PE1 forwards, and by the forward table of this MVPN tag queries self, can obtain and be somebody's turn to do The P2MP tunnel outgoing interface that MVPN label is corresponding, can forward this multicast packet by this outgoing interface.
In a kind of alternative embodiment of the application, described by the described P2MP tunnel outgoing interface described multicast packet of forwarding Step, specifically may include that
According to described MVPN label, described multicast packet is packaged;
Multicast packet after encapsulation is forwarded by described P2MP tunnel outgoing interface.
Assume that PE1 equipment receives multicast packet corresponding to MVPN b, search that to obtain MVPN b corresponding in table 1 above Outgoing interface includes outgoing interface 1 and outgoing interface 2, then can replicate this multicast packet a on PE1 equipment, according to this multicast packet Two parts of multicast packets are packaged by corresponding MVPN label 301 respectively, and are passed through respectively by the multicast packet after encapsulation P2MP tunnel outgoing interface 1 forwards to PE3, and is forwarded to PE2 by P2MP tunnel outgoing interface 2.
Receive after the multicast packet of PE1 at PE2, it is first determined the MVPN that multicast packet is corresponding, specifically, described Determine that the step of the MVPN that multicast packet is corresponding may include that described multicast packet is resolved, obtain described multicast packet The MVPN label of corresponding MVPN.Such as, the multicast packet received from PE1 is resolved by PE2, can obtain this multicast number According to MVPN label be 301.
Then, PE2 searches in the forward table of self and obtains the P2MP tunnel outgoing interface that this MVPN label is corresponding.Specifically Ground, described lookup in the forward table set up obtains the step of P2MP tunnel outgoing interface corresponding for described MVPN and may include that In the forward table set up, inquiry obtains the P2MP tunnel outgoing interface that described MVPN label is corresponding;Wherein, in described forward table Storage has the mapping relations between MVPN label and P2MP tunnel outgoing interface.
With reference to table 2, it is shown that the concrete signal of the another kind of forward table of the application, and this forward table pre-builds at PE2 In equipment.Assume that on PE2, built vertical P2MP tunnel is that tunnel1, the tunnel1 outgoing interface on PE2 includes outgoing interface 3 and goes out Interface 4.
Table 2
MVPN label P2MP tunnel outgoing interface
300 3
301 4
PE2, by inquiring about forward table as shown in table 2, can obtain the P2MP tunnel outgoing interface of MVPN label 301 correspondence For outgoing interface 4, then can forward this multicast packet by outgoing interface 4.
When PE1 receives the multicast packet of MVPN a, can pass through this multicast packet is encapsulated MVPN label 300, with And forwarded by the P2MP tunnel outgoing interface of MVPN label 300 correspondence, repeating process and the multicast packet of above-mentioned MVPN b Repeating process similar, here is omitted.Thus, it is possible to the multicast packet realizing MVPN a and MVPN b is shared same P2MP tunnel tunnel1.Such that it is able to improve the utilization rate of the P2MP tunnel resource of PE equipment, and reduce multiple P2MP tunnel The network bandwidth resources taken.
It is appreciated that the multicast packet of above-mentioned MVPN a and two MVPN of MVPN b shares same P2MP tunnel, only makees For a kind of application example of the application, in a particular application, the application is for the number of a sharable MVPN in P2MP tunnel It is not any limitation as.
In a kind of alternative embodiment of the application, in order to be further ensured that the utilization rate of network bandwidth resources, described side Method can also comprise the steps:
Determine the number of the MVPN that described PE equipment is corresponding;
What the number at MVPN corresponding to described PE equipment exceeded current P2MP tunnel presets when sharing threshold value, newly-built P2MP Tunnel.
In a kind of application example of the application, it is assumed that the shared threshold value of presetting pre-setting P2MP tunnel is k, also There to be k MVPN to share same P2MP tunnel, if the number of the MVPN on PE1 exceedes current P2MP tunnel tunnel1's Preset and share threshold value k, then PE1 with newly-built P2MP tunnel tunnel2, and can transmit the MVPN correspondence exceeded by tunnel2 Multicast packet, with share tunnel1 transmission bear.
To sum up, the embodiment of the present application can set up the corresponding relation between each MVPN and P2MP tunnel outgoing interface, During propagating multicast packet, it is first determined the MVPN that multicast packet is corresponding;Then search in the forward table set up To P2MP tunnel outgoing interface corresponding for this MVPN;This multicast packet is forwarded finally by this P2MP tunnel outgoing interface.Due to one P2MP tunnel can corresponding multiple MVNP, and the most corresponding different P2MP tunnel outgoing interface of each MVNP, such that it is able to real Existing multiple MVPN share a public network P2MP tunnel, and then can improve the utilization rate of the P2MP tunnel resource of PE equipment, and Reduce the network bandwidth resources that multiple P2MP tunnel takies.
In another embodiment of the application, described forward table can include vpn label, outer layer label and P2MP tunnel Corresponding relation between road outgoing interface.The embodiment of the present application is by increasing multicast packet interpolation vpn label and outer layer label Query depth during multicast data forwarding, the first node in P2MP tunnel is that each MVPN applies for a vpn label so that In described forward table, same outer layer label can corresponding multiple different vpn labels, can by same P2MP tunnel To forward different multicast packets corresponding for MVPN.It should be noted that the vpn label in the embodiment of the present application can be certainly Definition label, such as MVPN label, and outer layer label can be existing MPLS label, when multicast packet is packaged, can First to encapsulate vpn label (MVPN label), then encapsulate outer layer label (MPLS label).So, the PE equipment in public network receives During multicast packet, after needing multicast packet is carried out the tag queries of two layer depth, just determine that transferring of multicast packet connects Mouthful, realize multiple MVPN with this and share same P2MP tunnel.
In a kind of application example of the application, still as a example by the MVPN schematic network structure shown in Fig. 3.With reference to table 3, Showing the concrete signal of another forward table of the application, this forward table pre-builds in PE1 equipment, and in this forward table Including the corresponding relation between vpn label, outer layer label and P2MP tunnel outgoing interface.
Table 3
MVPN title Vpn label Outer layer label P2MP tunnel outgoing interface
a 300 1150 1
b 301 1150 1
a 300 1151 2
b 301 1151 2
Owing to being configured with MVPN a and MVPN b on PE1 equipment, then PE1 is for MVPN a and MVPN b, SEPARATE APPLICATION pair The vpn label answered, such as, vpn label corresponding for MVPN a is 300;Vpn label corresponding for MVPN b is 301.Assume PE1 Upper built vertical P2MP tunnel is that tunnel1, the tunnel1 outgoing interface on PE1 includes outgoing interface 1 and outgoing interface 2.
When PE1 equipment receives after the multicast packet of multicast source, can by replicate many parts of multicast packets all from The same P2MP tunnel set up forwards, in order to distinguish different multicast packets corresponding for MVPN, PE1 in same tunnel Equipment needs to add two-layer label, respectively vpn label and outer layer label when to transmitting multicast data, in repeating process, Intermediate forwarding devices, after receiving the multicast packet that PE1 forwards, by peeling outer layer label, can obtain the internal layer of internal layer Label, by inquiring about the forward table of self storage, can obtain the outer layer label with this multicast packet and vpn label is corresponding Outgoing interface, this multicast packet can be forwarded by this outgoing interface.
Assume that PE1 equipment receives multicast packet corresponding to MVPN b, in above-mentioned table 3, search that to obtain MVPN b corresponding Forwarding-table item is as shown in table 4, then replicate a described multicast packet on PE1 equipment, by a copy of it multicast packet at internal layer Add vpn label 301, add outer layer label 1150 at outer layer, and forwarded to PE3 by outgoing interface 1;By another part of multicast number Adding vpn label 301 according at internal layer, outer layer adds outer layer label 1151, and is forwarded to PE2 by outgoing interface 2.
Table 4
MVPN title Vpn label Outer layer label P2MP tunnel outgoing interface
b 301 1150 1
b 301 1151 2
It can be seen that the multicast packet that MVPN a and MVPN b is corresponding can be added the internal layer of correspondence by PE1 equipment respectively Label and outer layer label, and it is forwarded to intermediate forwarding devices or tail node by same P2MP tunnel, finally it is forwarded to Corresponding recipient.Same, intermediate forwarding devices (such as PE2, PE3, PE4) can also store the forward table of correspondence, Intermediate forwarding devices receives after the multicast packet of PE1 device forwards, by extract multicast packet outer layer label and Vpn label, and the forward table that twice inquiry is local, finally give correspondence transfers interface.For making transmitting multicast data road Each intermediate forwarding devices in footpath can obtain the vpn label of PE1 equipment application, in the embodiment of the present application, PE1 equipment Vpn label can also be sent to bgp neighbor equipment.
In a particular application, as it is shown on figure 3, after the MVPN corresponding to PE1, PE2, PE3, PE4, PE5 configuration, PE1, PE2, PE3, PE4, PE5 set up BGP MVPN address race neighbours respectively, carry out the discovery operation of BGP MVPN neighbours.PE1 is permissible Set up BGP multicast address race neighbours with PE3, PE4, PE5, P2MP tunnel can be set up after setting up bgp neighbor, as set up P2MP tunnel be the destination address of tunnel1, tunnel1 be PE3, PE4, PE5, and P2MP tunnel is according to shown in Fig. 3 MPLS label distribution, formed forward-path.Now, PE1 can be according to MVPN title, vpn label, outer layer label and P2MP Tunnel outgoing interface sets up forward table.
After PE1 Yu PE3, PE4, PE5 set up BGP multicast address race neighbours, PE1 can update message by institute by neighbours State vpn label corresponding for MVPN and be sent to intermediate forwarding devices.Wherein, described neighbours update message and can carry PMSI The NLRI of Tunnel Attribute (PMSI tunnel attribute) (Network Layer Reachability Information, Network Layer Reachable Information), vpn label can be carried in this attribute, these neighbours can be updated message and be sent to own by PE1 The opposite equip. of MBGP, including PE3, PE4 and PE5, so that PE3, PE4 and PE5 can build according to the vpn label received The forward table of self correspondence vertical, and after receiving multicast packet, multicast packet can be carried out according to the forward table set up The match query of two-layer label, if coupling, then the P2MP tunnel by having set up forwards according to this forward table.
When intermediate forwarding devices receives multicast packet, multicast packet is carried out parsing and can obtain outer layer and internal layer two Layer label, only when this two-layer label all matches with forward table, just can forward.
As a example by PE3 equipment in Fig. 3, with reference to table 5, it is shown that the forward table of a kind of PE3 equipment of the application concrete Signal.After PE3 receives multicast packet corresponding to MVPN b, multicast packet is resolved, extract and obtain outer layer label It is 1150, then inquiry forward table shown in table 5, obtain mating list item with MVPN b and outer layer label 1150 match, as Shown in the third line in table 3, then resolving described multicast packet further, the vpn label obtaining described multicast packet is 301, Matching with the vpn label mated in list item, therefore, this multicast packet can be sent to phase therewith by private network network by PE3 Recipient receiver 1 even.
Table 5
Outer layer label Vpn label MVPN title
1150 300 a
1150 301 b
In the embodiment of the present application, the BGP multicast address race neighbours of node PE equipment headed by described intermediate forwarding devices Time, message can be updated by receiving the neighbours from described first node PE equipment, obtain vpn label corresponding to MVPN, and right In not being the intermediate forwarding devices of BGP multicast address race neighbours of first node PE equipment, such as the PE2 equipment in Fig. 3, then cannot obtain Take vpn label.For solving the problems referred to above, in a kind of alternative embodiment of the application, described method can also include walking as follows Rapid:
Upstream intermediate forwarding devices sends the vpn label that described MVPN is corresponding.
Specifically, described PE2 equipment can be according to the forward-path of the tunnel1 created in Fig. 3, upstream middle forwarding Equipment sends the vpn label that described MVPN is corresponding, and thus, all PE equipment in the whole piece forward-path of tunnel1 are the most permissible Obtain vpn label corresponding to described MVPN, such that it is able to set up each self-corresponding forward table.
In the embodiment of the present application, after described intermediate forwarding devices (such as PE2) receives multicast packet, due to Tunnel1 at PE2 to there being two outgoing interfaces, including outgoing interface 3 and outgoing interface 4, it is therefore desirable to continue according to the forwarding on PE2 Table carries out twice tag queries and a tag replacement operation, just can be from corresponding outgoing interface multicast data forwarding.Reference Table 6, it is shown that the concrete signal of the forward table of a kind of PE2 equipment of the application.
Table 6
As shown in table 6, outer layer label is wherein entered corresponding with the outer layer label of encapsulation in the multicast packet received, out When layer label is this multicast packet of PE2 device forwards, need the outer layer label to multicast packet encapsulation, that is, PE2 equipment will connect After the original outer layer label 1151 of multicast packet received is peeled off, after replacing with out outer layer label 1140 or 1141, then by right The outgoing interface answered forwards.
Specifically, PE2, after receiving multicast packet, first passes through parsing multicast packet and obtains the outer layer of multicast packet Label is 1151, matches with the outer layer label 1151 that enters in the forward table shown in table 6, it is assumed that the vpn label of this multicast packet Be 301, inquire about above-mentioned table 6 according to vpn label 301, be appreciated that the outgoing interface of correspondence be P2MP tunnel tunnel1 go out to connect Mouth 4;The most again this multicast packet being carried out two-layer Tag Packaging, vpn label keeps 301 constant, and outer layer label is from original 1151 replace with 1141;Finally by outgoing interface 4, the multicast data sending after encapsulation is delivered to the PE4 equipment of outgoing interface 4 correspondence.By This, described intermediate forwarding devices PE2 completes the repeating process to multicast packet.
With reference to table 7, it is shown that the concrete signal of the forward table of a kind of PE4 equipment of the application.PE4 can be from P2MP tunnel The outgoing interface 4 of tunnel1 receives the multicast packet corresponding for MVPN b forwarded from PE2, and multicast packet is resolved by PE4 Obtaining outer layer label is 1141, by the forward table shown in inquiry table 7, exists and described MVPN b and described outer layer label 1141 The coupling list item matched, then resolve further to described multicast packet, and the vpn label obtaining described multicast packet is 301, Match with the vpn label in described coupling list item, therefore, it can be sent to receive by this multicast packet by private network network Person receiver 3.
Table 7
Outer layer label Vpn label MVPN title
1141 301 b
Similarly, PE5 equipment can receive, from the outgoing interface 3 of P2MP tunnel tunnel1, the MVPN a forwarded from PE2 Corresponding multicast packet, PE5 carries out parsing and obtains outer layer label multicast packet is 1140, by inquiring about the forward table of self, By private network network, this multicast packet may finally be sent to recipient receiver 2.Thus, in the embodiment of the present application PE equipment can be received by same P2MP tunnel and forward different multicast packet corresponding for MVPN, it is possible to achieve multiple MVPN Share same P2MP tunnel, improve the utilization rate of the P2MP tunnel resource of PE equipment.
The when of additionally, the flux of multicast of the embodiment of the present application forwards on P2MP tunnel, need to carry out ectonexine Twice inquiry of label, so can be properly positioned a P2MP tunnel by the inquiry of vpn label on intermediate forwarding devices The outgoing interface that road is corresponding, such that it is able to realize multiple MVPN can share same P2MP tunnel, and then it is many to reduce foundation The bandwidth resources that individual P2MP tunnel takies.
Thus, sharing of public network P2MP tunnel can be realized by the embodiment of the present application, pre-set a P2MP tunnel The MVPN number that can be shared, applies for the internal layer corresponding for each MVPN on the first node PE equipment being connected with multicast source Label, and update message by bgp neighbor vpn label corresponding for this MVPN is advertised to all tails that this P2MP tunnel is corresponding The PE equipment of node, such as PE3, PE4 and PE5 equipment in Fig. 3, and described tail node can be sent out with upstream intermediate forwarding devices Send vpn label corresponding for described MVPN so that all PE equipment in the whole piece forward-path in P2MP tunnel all can obtain institute State vpn label corresponding to MVPN, such that it is able to set up each self-corresponding forward table.By P2MP tunnel multicast data forwarding During, except the public network outer layer label in forward table need to be mated, such as 1150 or 1151, in addition it is also necessary to further in coupling private network Layer label, such as 300 or 301 so that multiple MVPN can share same P2MP tunnel, such that it is able to realize resource-sharing and Save network bandwidth resources.
To sum up, the embodiment of the present application is by increasing multicast packet to multicast packet encapsulation vpn label and outer layer label Identifying the degree of depth, each vpn label and a MVPN are corresponding so that same outer layer label can be corresponding multiple different Vpn label, when the outgoing interface in the P2MP tunnel passing through to have set up by the multicast packet after encapsulation forwards, a P2MP Tunnel can corresponding multiple MVNP.So, when the PE equipment in public network receives multicast packet, need multicast packet is carried out two After the tag recognition of layer depth, just determine the forward-path of multicast packet, thus can realize multiple MVPN and share same P2MP tunnel, and then improve the utilization rate of the P2MP tunnel resource of PE equipment, and reduce the network that multiple P2MP tunnel takies Bandwidth resources.
With reference to Fig. 4, it is shown that the structured flowchart of a kind of multicast transmission device of one of them embodiment of the application, this device Can be applicable to PE equipment, in the embodiment of the present application, described device specifically may include that
First determines module 401, for determining the MVPN that multicast packet is corresponding;
Enquiry module 402, obtains P2MP tunnel corresponding for described MVPN for lookup in the forward table set up and goes out to connect Mouthful;
Data forwarding module 403, for forwarding described multicast packet by described P2MP tunnel outgoing interface;Wherein, one The corresponding multiple MVNP in P2MP tunnel.
In a kind of alternative embodiment of the application, described first determines module 401, is additionally operable to enter described multicast packet Row resolves, and obtains the MVPN label of described multicast packet correspondence MVPN;
Described enquiry module 402, being additionally operable in the forward table set up inquiry, to obtain described MVPN label corresponding P2MP tunnel outgoing interface;Wherein, in described forward table, storage has the mapping relations between MVPN label and P2MP tunnel outgoing interface.
In the another kind of alternative embodiment of the application, described device can also include:
Label application module, for each MVPN corresponding for described PE equipment, applies for corresponding with described MVPN MVPN label;
Label sending module, for sending MVPN label corresponding to described MVPN to the neighbor device of described PE equipment.
In another alternative embodiment of the application, described data forwarding module 403, specifically may include that
Encapsulation submodule, for according to described MVPN label, is packaged described multicast packet;
Forward submodule, for being forwarded by described P2MP tunnel outgoing interface by the multicast packet after encapsulation.
In another alternative embodiment of the application, described device can also include:
Second determines module, is used for the number of the MVPN determining that described PE equipment is corresponding;
Newly-built module, the number for the MVPN corresponding at described PE equipment exceedes presetting of current P2MP tunnel and shares threshold During value, newly-built P2MP tunnel.
For device embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant Part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, what each embodiment stressed is with The difference of other embodiments, between each embodiment, identical similar part sees mutually.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present application can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present application can use complete hardware embodiment, complete software implementation or combine software and The form of the embodiment of hardware aspect.And, the embodiment of the present application can use one or more wherein include computer can With in the computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) of program code The form of the computer program implemented.
The embodiment of the present application is with reference to method, terminal unit (system) and the computer program according to the embodiment of the present application The flow chart of product and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or block diagram In each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These can be provided Computer program instructions sets to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipment The instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The device of the function specified.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipment In the computer-readable memory worked in a specific way so that the instruction being stored in this computer-readable memory produces bag Including the manufacture of command device, this command device realizes in one flow process of flow chart or multiple flow process and/or one side of block diagram The function specified in frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment so that On computer or other programmable terminal equipment, execution sequence of operations step is to produce computer implemented process, thus The instruction performed on computer or other programmable terminal equipment provides for realizing in one flow process of flow chart or multiple flow process And/or the step of the function specified in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present application, but those skilled in the art once knowing base This creativeness concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to The all changes including preferred embodiment and falling into the embodiment of the present application scope and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operation Between exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant meaning Containing comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only wrap Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article Or the key element that terminal unit is intrinsic.In the case of there is no more restriction, by wanting that statement " including ... " limits Element, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Above to a kind of multicast transmission method provided herein and device, it is described in detail, used herein Principle and the embodiment of the application are set forth by specific case, and the explanation of above example is only intended to help to understand The present processes and core concept thereof;Simultaneously for one of ordinary skill in the art, according to the thought of the application, at tool All will change on body embodiment and range of application, in sum, this specification content should not be construed as the application Restriction.

Claims (10)

1. a multicast transmission method, it is characterised in that be applied to PE equipment, described method includes:
Determine the MVPN that multicast packet is corresponding;
The forward table set up is searched and obtains P2MP tunnel outgoing interface corresponding for described MVPN;
Described multicast packet is forwarded by described P2MP tunnel outgoing interface;Wherein, the corresponding multiple MVNP in P2MP tunnel.
Method the most according to claim 1, it is characterised in that the described step determining MVPN that multicast packet is corresponding, bag Include:
Described multicast packet is resolved, obtains the MVPN label of described multicast packet correspondence MVPN;
Described lookup in the forward table set up obtains the step of P2MP tunnel outgoing interface corresponding for described MVPN, including:
In the forward table set up, inquiry obtains the P2MP tunnel outgoing interface that described MVPN label is corresponding;Wherein, described forwarding In table, storage has the mapping relations between MVPN label and P2MP tunnel outgoing interface.
Method the most according to claim 1, it is characterised in that described method also includes:
For each MVPN that described PE equipment is corresponding, apply for the MVPN label corresponding with described MVPN;
MVPN label corresponding to described MVPN is sent to the neighbor device of described PE equipment.
Method the most according to claim 3, it is characterised in that described by described group of described P2MP tunnel outgoing interface forwarding The step of multicast data, including:
According to described MVPN label, described multicast packet is packaged;
Multicast packet after encapsulation is forwarded by described P2MP tunnel outgoing interface.
Method the most according to claim 1, it is characterised in that described method also includes:
Determine the number of the MVPN that described PE equipment is corresponding;
What the number at MVPN corresponding to described PE equipment exceeded current P2MP tunnel presets when sharing threshold value, newly-built P2MP tunnel Road.
6. a multicast transmission device, it is characterised in that be applied to PE equipment, described device includes:
First determines module, for determining the MVPN that multicast packet is corresponding;
Enquiry module, obtains P2MP tunnel outgoing interface corresponding for described MVPN for searching in the forward table set up;
Data forwarding module, for forwarding described multicast packet by described P2MP tunnel outgoing interface;Wherein, a P2MP tunnel Corresponding multiple MVNP.
Device the most according to claim 6, it is characterised in that described first determines module, is additionally operable to described multicast number According to resolving, obtain the MVPN label of described multicast packet correspondence MVPN;
Described enquiry module, is additionally operable in the forward table set up inquire about the P2MP tunnel obtaining described MVPN label corresponding and goes out Interface;Wherein, in described forward table, storage has the mapping relations between MVPN label and P2MP tunnel outgoing interface.
Device the most according to claim 6, it is characterised in that described device also includes:
Label application module, for each MVPN corresponding for described PE equipment, applies for the MVPN corresponding with described MVPN Label;
Label sending module, for sending MVPN label corresponding to described MVPN to the neighbor device of described PE equipment.
Device the most according to claim 8, it is characterised in that described data forwarding module, including:
Encapsulation submodule, for according to described MVPN label, is packaged described multicast packet;
Forward submodule, for being forwarded by described P2MP tunnel outgoing interface by the multicast packet after encapsulation.
Device the most according to claim 6, it is characterised in that described device also includes:
Second determines module, is used for the number of the MVPN determining that described PE equipment is corresponding;
Newly-built module, the number for the MVPN corresponding at described PE equipment exceedes presetting of current P2MP tunnel and shares threshold value Time, newly-built P2MP tunnel.
CN201610617480.5A 2016-07-28 2016-07-28 Multicast transmission method and device Active CN106230730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610617480.5A CN106230730B (en) 2016-07-28 2016-07-28 Multicast transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610617480.5A CN106230730B (en) 2016-07-28 2016-07-28 Multicast transmission method and device

Publications (2)

Publication Number Publication Date
CN106230730A true CN106230730A (en) 2016-12-14
CN106230730B CN106230730B (en) 2020-02-18

Family

ID=57535651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610617480.5A Active CN106230730B (en) 2016-07-28 2016-07-28 Multicast transmission method and device

Country Status (1)

Country Link
CN (1) CN106230730B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018193285A1 (en) * 2017-04-17 2018-10-25 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for enabling a scalable multicast virtual private network service across a multicast label distribution protocol network using in-band signaling
CN111526079A (en) * 2020-03-31 2020-08-11 新华三技术有限公司 Method and device for establishing tunnel
WO2022027165A1 (en) * 2020-08-03 2022-02-10 Zte Corporation Multicast and broadcast service establishment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487351A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Establishment method of end-to-end multicast label switched path, apparatus thereof and system
CN103716169A (en) * 2012-09-29 2014-04-09 华为技术有限公司 Point-to-multipoint multicast realization method, network nodes and system
CN105450520A (en) * 2015-12-31 2016-03-30 北京华为数字技术有限公司 Message processing method and device, and method and device for building aggregation tunnel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487351A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Establishment method of end-to-end multicast label switched path, apparatus thereof and system
CN103716169A (en) * 2012-09-29 2014-04-09 华为技术有限公司 Point-to-multipoint multicast realization method, network nodes and system
CN105450520A (en) * 2015-12-31 2016-03-30 北京华为数字技术有限公司 Message processing method and device, and method and device for building aggregation tunnel

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018193285A1 (en) * 2017-04-17 2018-10-25 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for enabling a scalable multicast virtual private network service across a multicast label distribution protocol network using in-band signaling
CN111526079A (en) * 2020-03-31 2020-08-11 新华三技术有限公司 Method and device for establishing tunnel
CN111526079B (en) * 2020-03-31 2023-10-13 新华三技术有限公司 Method and device for establishing tunnel
WO2022027165A1 (en) * 2020-08-03 2022-02-10 Zte Corporation Multicast and broadcast service establishment

Also Published As

Publication number Publication date
CN106230730B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN102035729B (en) Multicast data forwarding method
WO2016015497A1 (en) Method, device and system for forwarding packet
CN102143026B (en) Method for avoiding loop circuit in virtual two layer network
CN103685022A (en) Message forwarding method and service provider network edge equipment
CN104660508A (en) Message forwarding method and device
CN107612809A (en) A kind of multicast list synchronous method and equipment
CN104885416A (en) Bridging network devices in a hybrid communication network
CN102801625A (en) Method and device for double layered mutual communication in heterogeneous network
CN108259304B (en) Forwarding table item synchronization method and device
CN102316030A (en) Method for realizing two-layer internetworking of data center and device
CN102238057B (en) Ethernet-tree realization method, system, device and network equipment
CN107547399A (en) The processing method and PE equipment of a kind of multicast forwarding list item
CN105187311A (en) Message forwarding method and message forwarding device
CN106230730A (en) A kind of multicast transmission method and device
CN103220217B (en) A kind of route generating method and equipment
CN105591897B (en) The MAC Address synchronous method and device of TRILL network
CN103986654A (en) LSP generating method and device
CN104009919A (en) Message forwarding method and device
CN101621467A (en) Method, devicedevice and system for realizing multicast VSI
CN103152265A (en) Message forwarding method and equipment in SPB (Shortest Path Bridge) network
CN102724126A (en) Method, device and equipment for forwarding Ethernet tree (E-tree) service message
CN101986623B (en) Method and device for collocating virtual private LAN service (VPLS) media access control (MAC) table entry space
CN105493454A (en) Active-active access to transparent interconnection of lots of links (TRILL) edges
WO2017177794A1 (en) Service path establishment method, apparatus and system
CN102025626B (en) Method for forwarding multicast data message and provider edge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou science and Technology Development Zone, Zhejiang high tech park, No. six and road, No. 310

Applicant before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230620

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.