[go: up one dir, main page]

CN102769562B - Method for implementing two-way protocol independent multicast (PIM) and equipment - Google Patents

Method for implementing two-way protocol independent multicast (PIM) and equipment Download PDF

Info

Publication number
CN102769562B
CN102769562B CN201210226473.4A CN201210226473A CN102769562B CN 102769562 B CN102769562 B CN 102769562B CN 201210226473 A CN201210226473 A CN 201210226473A CN 102769562 B CN102769562 B CN 102769562B
Authority
CN
China
Prior art keywords
multicast
interface
elects
rpf
routing device
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
CN201210226473.4A
Other languages
Chinese (zh)
Other versions
CN102769562A (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 CN201210226473.4A priority Critical patent/CN102769562B/en
Publication of CN102769562A publication Critical patent/CN102769562A/en
Application granted granted Critical
Publication of CN102769562B publication Critical patent/CN102769562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for implementing two-way protocol independent multicast (PIM) and equipment. According to the method, an equivalent routing number for allowed load sharing is configured on each piece of routing equipment in a two-way PIM network; each piece of routing equipment generates corresponding quantity of designated forwarder (DF) election examples according to the equivalent routing number for allowed load sharing and elects a DF interface corresponding to each DF election example, wherein a reverse path forwarding (RPF) interface corresponding to each DF election example is selected from an equivalent routing interface set of the routing equipment by the routing equipment in a polling way; and when generating a multicast forwarding table entry, the routing equipment is matched to the corresponding DF election example according to a corresponding multicast group, acquires the RPF interface which corresponds to the matched DF election example, and generates a corresponding multicast forwarding table entry, wherein the RPF interface in an output interface list in the generated multicast forwarding table entry is the RPF interface which corresponds to the matched DF election example. By the method and the equipment, multicast load sharing can be realized by using equivalent routing.

Description

A kind of bidirectional pim method of realizing group broadcasting and equipment thereof
Technical field
The present invention relates to the multicasting technology of the communications field, particularly relate to a kind of bidirectional pim method of realizing group broadcasting and equipment thereof.
Background technology
As a kind of with clean culture (Unicast) with broadcast (Broadcast) communication mode arranged side by side, multicast (Multicast) technology can solve the problem of single-point transmission, multipoint reception effectively, thus achieve efficient data transmission point-to-multipoint in network, a large amount of network bandwidth can be saved, reduce offered load.
Multicast routing protocol PIM (the Protocol Independent Multicast of main flow, Protocol Independent Multicast) be a protocol suite, in this family, successively be born four agreements: PIM DM (Protocol Independent Multicast-dense mode), PIM SM (Protocol Independent Multicast-sparse mode), SSM (source-specific multicast) pattern, Bidir-PIM (bidirectional pim) pattern, to adapt to different applied environments.
Bidir-PIM is applicable to multicast source and receives a lot of applied environment of client.In Bidir-PIM agreement, the Business Stream of multicast source, then to be forwarded to multiple reception client by RP toward RP (Rendezvous Point, Rendezvous Point) by unconditional forwarding.It does not need Login process, eliminates routing device carries out source condition managing resource consumption to a large amount of multicast source.In Bidir-PIM protocol domain, only there is (*, G) list item, decrease equipment because safeguard the resource loss that multicast forwarding list item all causes.
The basic thought of Bidir-PIM agreement running mainly comprises:
Every bar link all needs to select a DF (Designated Forwarder specifies forwarding router) router, and DF router this link arrives the nearest router in RP address; The address configuration of suggestion selection non-genuine interface is the address (RPA) of RP, RP link (RPL) is exactly that subnet (link) at RPA place, connecting the function that the router of RPL can provide RP, the PIM from last-hop Router adds/and prune message all ends at the router connecting RPL; RPF (Reverse Path Forwarding, reverse path forwards) interface in Bidir-PIM agreement all refers to that interface that on router, distance RPA is nearest, and RPF neighbours refer to the next hop router of the best singlecast router arriving RPA.
The principle observed is needed mainly to comprise in Bidir-PIM protocol realization:
(1) DF uniquely has process and adds/prune message (to comprise PIM and IGMP (Internet GroupManagement Protocol, Internet igmpinternet)/MLD (Multicast Listener DiscoveryProtocol, multicast listener finds agreement) message) router of ability (or right), and downstream router also only PIM can be added/prune message sends to DF.
(2) in Bidir-PIM agreement, the outgoing interface set of any one (*, G) list item comprises: RPF interface, have received PIM add message and from as DF routing interface and have received IGMP/MLD and to join request message and from as the local member interface of DF.According to actual conditions, the outgoing interface set of (*, a G) list item may be a subset of above-mentioned set.
(3) if a router is elected as DF on a certain link, then the outgoing interface of the multicast data flow on this link toward corresponding (*, G) list item can unconditionally forward by it; If a router receives multicast data flow on RPF interface, the outgoing interface of these multicast data flows toward corresponding (*, G) list item will forward by it.Certainly these multicast data flows must have the group address corresponding to DF or RPF interface, and router only receives multicast and just can forward in above-mentioned two kinds of situations.
(4) router campaigns for DF on a certain link, if its interface is on the link the RPF interface towards this RPA, then the metric of route that its is issued must be infinitely great, and in other words, RPF interface can never become the DF on this link.
Fig. 1 shows a kind of typical Bidir-PIM networking structure.Wherein, RPA is 1.1.1.1, and it is the address of a non-genuine interface; The interface e0/0 of router R1, R2 and R3 is respectively the RPF interface on respective router.Router R1 is DF on its interface e1/0 place link, and the IGMP that it can process from recipient joins request, and simultaneously it sends PIM toward the DF neighbours of its RPF interface place link and joins request; Router R2 receives after PIM joins request, because oneself be the DF of this link, so process this message, simultaneously because oneself be the router connecting RPL, request message ends at oneself.Router R3 is DF on its interface e1/0 place link, so it is unconditional by past outgoing interface---the RPF interface e0/0 of multicast data flow forwarding from multicast source, so multicast data flow has just been forwarded to RPL link; Router R2 receives multicast data flow on RPF interface e0/0, so forward multicast data flow toward outgoing interface---and that once received and had processed the interface e1/0 that PIM adds message; Router R1 receives multicast data flow on RPF interface e0/0, so forward multicast data flow toward outgoing interface---local member interface e1/0.
Under above-mentioned Bidir-PIM protocol, the Multicast load splitting of equal-cost route cannot be realized as PIM DM/SM.
Summary of the invention
Embodiments provide a kind of bidirectional pim method of realizing group broadcasting and equipment thereof, realize Multicast load splitting in order to utilize equal-cost route.
The PIM method of realizing group broadcasting that the embodiment of the present invention provides, is applied to PIM network, and each routing device in described bidirectional pim network configures the equal-cost route number allowing to realize load balancing to some extent, the method comprises:
Each routing device is according to the equal-cost route number of allowed load balancing, and the appointment forwarding router DF generating respective numbers elects example, and elects the DF interface of each DF election corresponding to example; Wherein, the reverse path of each DF election corresponding to example forwards RPF interface is that routing device poll from its equal-cost route set of interfaces chooses;
When routing device joins message or multicast data message from DF interface to multicast, and when not inquiring corresponding multicast forwarding-table item, match corresponding DF according to corresponding multicast group and elect example, obtain the RPF interface of DF election corresponding to example matched, generate corresponding multicast forwarding-table item, and the multicast received to be joined message or multicast data message elects the RPF interface corresponding to example to send to RP direction by the DF that matches; Wherein, the RPF interface in the multicast forwarding list item outgoing interface list generated elects the RPF interface corresponding to example for the DF that matches; When routing device receives multicast data message, and when inquiring corresponding multicast forwarding-table item, the multicast forwarding list item according to inquiring forwards described multicast data message.
The kind routing device that the embodiment of the present invention provides, is applied to PIM network, and this routing device comprises:
Configuration module, for configure allow to realize the equal-cost route number of load balancing;
DF elects instance processes module, and for the equal-cost route number according to allowed load balancing, the appointment forwarding router DF generating respective numbers elects example, and elects the DF interface of each DF election corresponding to example; Wherein, the reverse path of each DF election corresponding to example forwards RPF interface is that routing device poll from its equal-cost route set of interfaces chooses;
Multicast forwarding list item processing module, for joining message or multicast data message from DF interface to multicast when this equipment, and when not inquiring corresponding multicast forwarding-table item, match corresponding DF according to corresponding multicast group and elect example, obtain the RPF interface of DF election corresponding to example matched, generate corresponding multicast forwarding-table item, and the multicast received to be joined message or multicast data message elects the RPF interface corresponding to example to send to RP direction by the DF that matches; Wherein, the RPF interface in the multicast forwarding list item outgoing interface list generated elects the RPF interface corresponding to example for the DF that matches;
Multicast forwarding module, for receiving multicast data message when this equipment, and when inquiring corresponding multicast forwarding-table item, the multicast forwarding list item according to inquiring forwards described multicast data message.
In the above embodiment of the present invention, each routing device configures the equal-cost route number allowing to realize load balancing to some extent, the DF generating respective numbers accordingly elects example, wherein the RPF interface of each DF election corresponding to example is that routing device poll from its equal-cost route set of interfaces chooses, and then elects the DF interface of each DF election corresponding to example.Like this, on the up direction from multicast source to RP, when routing device receives multicast data message, elect the RPF interface corresponding to example to send to RP direction from DF corresponding to multicast group it, thus the multicast data message of different multicast group is shared on different interfaces mail to RP; From RP to the down direction of multicast receivers, when downstream interface adds multicast group G, being joined message by multicast from the DF that multicast group is corresponding elects the RPF interface corresponding to example to send to RP direction, thus by different multicast group join request from different interfaces to RP direction send, the most at last multicast data flow never homology equivalence routing interface guide downstream recipients into.
Accompanying drawing explanation
Fig. 1 is a kind of typical Bidir-PIM networking structure schematic diagram in prior art;
Fig. 2 is one of bidirectional pim networking schematic diagram in the embodiment of the present invention;
Fig. 3 is that the DF in the embodiment of the present invention elects message format schematic diagram;
The router that Fig. 4 provides for the embodiment of the present invention is from the handling process schematic diagram after its DF interface to multicast data message;
Fig. 5 for router that the embodiment of the present invention provides join message from its DF interface to multicast after handling process schematic diagram;
Fig. 6 is the PIM networking schematic diagram two in the embodiment of the present invention;
The structural representation of the routing device that Fig. 7 provides for the embodiment of the present invention.
Embodiment
As previously mentioned, under Bidir-PIM protocol, the load balancing of equal-cost route cannot be realized as PIM DM/SM.This is because: on a router, once RP elects, a RPF interface of its correspondence and one group of DF interface are just decided (follow-up the RPF interface of on router and one group of DF interface are called RPF_DF_TABLE), (the * of the bidirectional pim on router, G) in list item, its RPF interface and DF interface all come from the RPF_DF_TABLE on this router, if (the * under same RP, G) list item employs different RPF interfaces, then its DF interface list also may be different, result just may violate the multinomial principle in above-mentioned Bidir-PIM agreement, cause occurring loop or forwarding obstructed.
With an example, this problem is described below:
In the networking shown in Fig. 2, assuming that S4 arrives RP there is equal-cost route S4-> S2-> S1-> R1 and S4-> S3-> S1-> R1, wherein the IP address of the interface S2.4 of S2 sensing S4 is greater than the IP address that S3 points to the interface S3.4 of S4.
After agreement is stable, RPF interface on S4 is S4.2, now suppose that S4.3 is chosen as DF mouth (can be accomplished by the configuration of certain routing priority), then S3.4 is not just DF interface, and S2.4 will inevitably elect DF interface (because must not be DF interface by aforementioned principle RPF interface S4.2) as simultaneously.
Under normal circumstances, after Client1 sends (*, G) joins request and arrives S4, if S4 chooses RPF interface from RPF_DF_TABLE, S4.2 then can be chosen upstream to send PIM join request, S2 can correctly process, and finally can set up correct forward-path.If S4 chooses the interface of certain down hop in equal-cost route as incoming interface after calculating by HASH as common PIM agreement, then may choose interface S4.3, attempt upstream to send PIM by S4-> S3-> S1-> R1 hop-by-hop to join request, S3.4 due to S3 is not DF interface, therefore this message must not be processed, cause finally to form (*, G) list item on S3, whole forward-path is obstructed.
The essence of this problem is: by bidirectional pim protocol, RPF interface is inevitable is not DF interface, in RPF_DF_TABLE, RPF interface only may exist one, and if (the * of bidirectional pim, G) list item uses RPF interface not to be the RPF interface come from RPF_DF_TABLE, then the RPF interface chosen may cause this interface to have the dual role of RPF interface and DF interface simultaneously, and it is chaotic that result causes agreement to be run.
Be not difficult to find out from Such analysis, why single RP cannot realize the Multicast load splitting under single broadcast route equivalence condition, and basic reason is on current router a RPF interface and one group can only be had in single RP, RPF_DF_TABLE to connect DF interface.
According to above analysis, the embodiment of the present invention is to a RP, run multiple DF and elect example, different RPF_DF_TABLE is generated by different equal-cost route interfaces, different (*, G) list item is mapped in different RPF_DF_TABLE and obtains RPF interface and corresponding DF interface, just can address this problem.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
In the embodiment of the present invention, the router in bidirectional pim territory provides user configuration interface, realize bidirectional pim by this user's configuration interface and carry out load balancing by singlecast router.Concrete, by the user's configuration interface on each router in whole Bidir-PIM territory, configuration allows the equal-cost route number M realizing load balancing, can synchronously configure the equal-cost route number M allowing to realize load balancing like this in whole multicast domain.
Based on above-mentioned configuration, the embodiment of the present invention has carried out corresponding improvement to bidirectional pim DF election mechanism, by the DF interface election multiple example type under same for existing bidirectional pim RP, namely point to the processing procedure of M DF election under same RP, independently select the DF interface list corresponding with RPF interface separately.
Concrete, router, according to user configured M value, generates M DF and elects example, and each DF elects the corresponding RPF_DF_TABLE of example.If the direction of the current RP of going to exists N bar equal-cost route on this router, corresponding set of interfaces is ECMP_INTERFACE_SET={P 0, P 1p n-1.Then M DF elects RPF interface poll from ECMP_INTERFACE_SET that example is corresponding to select, and such as, the RPF interface in the 0th RPF_DF_TABLE is P0, and the RPF interface in the 1st RPF_DF_TABLE is P 1, the RPF interface in i-th RPF_DF_TABLE is P i%N(wherein % represents complementation), the rest may be inferred.
After electing example to determine RPF interface to each DF, router is that each DF elects example to generate corresponding DF election message, being elected by corresponding DF the instance number of example to be carried on DF elects message to send to PIM neighbours, specify according to bidirectional pim agreement, DF elects in message and carries route metric value, the method to set up of this route metric value still follows existing bidirectional pim agreement regulation, such as, router campaigns for DF on a certain link, if its interface is on the link the RPF interface towards this RPA, then the metric of route that its is issued must be infinitely great.Each router in Bidir-PIM territory is according to bidirectional pim consensus standard, message and the routing iinformation of self is elected according to the DF that its PIM neighbours received send, elect each DF respectively and elect the DF interface list that example is corresponding, wherein, each DF on router elects example independently to process DF corresponding to this instance number and elects message, elects to elect corresponding DF the DF interface list that example is corresponding.Such as, the election message carrying instance number 0 that router sends for its each PIM neighbours, elects the DF interface of DF election corresponding to example 0, the DF interface list namely in RPF_DF_TABLE (0); The election message carrying instance number 1 that router sends for its each PIM neighbours, elects the DF interface of DF election corresponding to example 1, the DF interface list namely in RPF_DF_TABLE (1); By that analogy.
According to bidirectional pim consensus standard, the message format of DF election as shown in Figure 3, can utilize Rsvd field (reserved field) wherein to carry DF and elect instance number.Rsvd field is totally 4 bit, 16 DF examples can be identified, instance number 0-15, accordingly, the equal-cost route number M allowing to realize load balancing that each router configures, its span can be: 1=< M <=16.Certainly, message (as new field elects instance number to carry DF) or alternate manner can also be elected wherein by expansion DF, elect instance number to send to PIM neighbours DF, if so, can as required not by the restriction of above-mentioned M span.
The following describes Bidir-PIM territory complete DF election after multicast service implementation procedure.Before description multicast service implementation procedure, first the following concept in bidirectional pim agreement is described: towards that direction of RPA (tree root) in distribution tree, be called up, namely multicast data flow flows to that direction of RPL from multicast source; Distribution tree carries that direction of RPA (tree root), is called descending, and namely multicast data flow flows to that direction of recipient from RPL.
The multicast service that the embodiment of the present invention provides realizes principle:
On up direction from multicast source to RP, when multicast data flow sends to RP direction, different multicast group G calculates through HASH, be mapped to different RPF_DF_TABLE, from wherein obtaining corresponding RPF interface, by bidirectional pim protocol specification, multicast data flow can be sent to RP from this RPF interface, deposit in case at equal-cost route, these RPF interfaces come from the ECMP_INTERFACE_SET={P corresponding to equal-cost route 0, P 1p n-1, thus achieve multicast message and share on different interfaces and mail to RP.
From RP to the down direction of multicast receivers, when downstream interface adds multicast group G, through carrying out HASH calculating to multicast group G, be mapped to different RPF_DF_TABLE, from wherein obtaining corresponding RPF interface, by bidirectional pim protocol specification, multicast joins request and is sent to the DF interface of upstream router from this RPF interface, deposit in case at equal-cost route, these RPF interfaces come from the ECMP_INTERFACE_SET={P corresponding to equal-cost route 0, P 1p n-1, joining request from different interfaces to RP direction of the different multicast group G of result sends, the most at last multicast data flow never homology equivalence routing interface guide downstream recipients into.
According to above principle, Fig. 4 shows router from the processing procedure after its DF interface to multicast data message, Fig. 5 show router join message from its DF interface to multicast after processing procedure.
As shown in Figure 4, when router is after its DF interface to multicast data message, perform following steps:
Step 401, obtains the multicast group G that multicast data message is corresponding, the multicast forwarding list item that inquiry is corresponding.
Step 402, if find corresponding multicast forwarding list item, then proceeds to step 403; If do not inquire corresponding multicast forwarding list item, then proceed to step 404.
Step 403, the multicast forwarding list item according to finding forwards this multicast data message.
Step 404, matches corresponding RPF_DF_TABLE according to multicast group G, generates the multicast forwarding list item of multicast group G according to this RPF_DF_TABLE, and forwards this multicast data message according to the multicast forwarding list item generated.
A kind of specific implementation of this step can be: multicast group G is carried out HASH computing by router, corresponding RPF_DF_TABLE (as selected the RPF_DF_TABLE that numbering is identical with this operation result) is selected according to this operation result, inquire about the RPF interface in this RPF_DF_TABLE, this RPF interface is added to (* as outgoing interface, in the outgoing interface list of G) list item, then by this multicast data message from this RPF interface to RPA direction forwarding.
When connecting the router of RPA after its RPF interface to multicast data message, according to bidirectional pim agreement, shared tree that can be corresponding according to the corresponding multicast group taking RPA as tree root, to this multicast data message of downstream device forwards.That is, when router is after its RPF interface to multicast data message, the multicast forwarding list item that inquiry is corresponding, and forward this multicast data message according to the multicast forwarding list item inquired.
As shown in Figure 5, after router joins message from its DF interface to multicast, perform following steps:
Step 501, from multicast join message middle acquisition ask the multicast group G that adds, match corresponding RPF_DF_TABLE according to multicast group G, the multicast forwarding list item that inquiry is corresponding.
Step 502, if inquire corresponding multicast forwarding list item, then proceeds to step 503; If do not inquire corresponding multicast forwarding list item, then proceed to step 504.
Step 503, sends multicast by the RPF interface upstream device in the RPF_DF_TABLE that multicast group G is corresponding and joins message.
Step 504, the RPF_DF_TABLE corresponding according to multicast group G generates multicast forwarding list item, and is joined message by the RPF interface upstream device transmission multicast in this RPF_DF_TABLE.
A kind of specific implementation of this step can be: multicast group G is carried out HASH computing by router, corresponding RPF_DF_TABLE (as selected the RPF_DF_TABLE that numbering is identical with this operation result) is selected according to this operation result, inquire about the RPF interface in this RPF_DF_TABLE, the receiving interface that the RPF interface inquired and this multicast join message is added to (* as outgoing interface, in the outgoing interface list of G) list item, then send multicast by this RPF interface inquired to RPA direction and join message.
In above-mentioned flow process, if the multicast that router receives client transmission from DF interface to its local multicast connected joins message as IGMP report message, then generate PIM to join message, and send this PIM by the RPF interface upstream device in RPF_DF_TABLE corresponding to multicast group G and join message.If the PIM that router sends from DF interface to its downstream router joins message, then being joined message by this PIM is forwarded by the RPF interface upstream device in RPF_DF_TABLE corresponding to multicast group G.
After the router connecting RPA joins message from its DF interface to multicast, according to bidirectional pim agreement, this multicast that terminates joins message.Like this, from the router be connected to RPA with the router of multicast reception client's side link, generate multicast group G corresponding take RPA as the shared tree branch of tree root, so that this multicast data message after from its RPF interface to the multicast data message of multicast group G, forwards along this shared tree branch by the router be connected with RPA.
In order to ensure the realization of multicast service when singlecast router changes, in another embodiment of the invention, on the basis of previous embodiment, after each router in Bidir-PIM territory finds that singlecast router changes, ECMP_INTERFACE_SET is regenerated according to the singlecast router after change, recalculate the RPF interface of M RPF_DF_TABLE accordingly, and by DF election process, generate corresponding DF interface list, thereafter multicast adition process and multicast data flow forwarding process identical with previous embodiment, do not repeat them here.
Above embodiment describes for M > 1, obviously, when configuring M=1, be equivalent to support 1 equal-cost route at most, the actual bidirectional pim agreement situation being degenerated to standard, now the reserved word segment value of DF EB packet is 0, is compatible with existing protocol.
In order to the clearer explanation embodiment of the present invention, below for the multicast architecture shown in Fig. 6, the multicast service implementation procedure of the embodiment of the present invention is described.
As shown in Figure 6, a whole multicast domain global configuration RP, namely configures RP on R1, each router configures bidirectional pim and support that equal-cost route realizes load balancing by multicast group address, and configuration allows the equal-cost route number M=4 realizing load balancing.
From multicast source (Server1 in figure) on the up direction of RP, there are two equal-cost route R3-> R4-> R1 and R3-> R2-> R1 in R3 to R1, on from RP to the down direction of multicast reception client (Client1 in figure), there are two equal-cost route S4-> S2-> S1-> R1 and S4-> S3-> S1-> R1 in S4 to R1.
Owing to being configured with M=4, therefore upper to same RP at R1, R2, R3, R4, run 4 DF and elect example.On R3, owing to there is equal-cost route, ECMP_INTERFACE_SET={R3.4, R3.2} is totally two interfaces, according to HASH result of calculation and agreement ruuning situation, the RPF interface of RPF_DF_TABLE (i) selects the individual interface of " i%N " (herein N=2) in ECMP_INTERFACE_SET to be RPF interface, and after DF election, each relevant interface role is as shown in table 1:
Table 1
In table 1, non RPF interface is that " non-RPF " itself may be DF interface in addition because another one interface is selected in order to RPF interface, also may not be DF interface, is also therefore unknown to the state of end interface, specifically depends on the ruuning situation of agreement.
In like manner, owing to being configured with M=4, therefore upper to same RP at S1, S2, S2, S4, run 4 DF and elect example.On S4 equipment, owing to there is equal-cost route, ECMP_INTERFACE_SET={S4.2, R4.3} is totally two interfaces, RPF interface according to HASH result of calculation and agreement ruuning situation RPF_DF_TABLE (i) selects the individual interface of " i%N " (herein N=2) in ECMP_INTERFACE_SET to be RPF interface, after DF election, each relevant interface role is as shown in table 2
Table 2
In table 2, non RPF interface is that " non-RPF " itself may be DF interface in addition because another one interface is selected in order to RPF interface, also may not be DF interface, is also therefore unknown to the state of end interface, specifically depends on the ruuning situation of agreement.
Have sent two multicast data flows (S, G1) and (S, G2) from Server1, then the agreement of up direction and data flow ruuning situation as follows:
Multicast data flow (S is sent from Server1, G1) R3 is arrived, through carrying out HASH calculating to multicast group G1 address, assuming that have selected RPF_DF_TABLE (0), so generating table entry (* on R3, G1), RPF interface is wherein R3.4, according to protocol specification, data message continues to send to RPF interface direction, so be sent to the interface R4.3 of R4, because this interface is DF interface, the RPF interface on this equipment can be forwarded to by protocol requirement, so final multicast packet flows through R3-> R4-> R1, along road generating forward list item (*, G1).
Similarly, multicast data flow (S is sent from Server1, G2) R3 is arrived, through carrying out HASH calculating to multicast group G2 address, assuming that have selected RPF_DF_TABLE (3), so generating table entry (* on R3, G2), RPF interface is wherein R3.2, according to protocol specification, data message continues to send to RPF interface direction, so be sent to the interface R2.3 of R2, because this interface is DF interface, the RPF interface on this equipment can be forwarded to by protocol requirement, so final message is through R3-> R2-> R1, along road generating forward list item (*, G2).
If from Client1 request receiving two multicast data flows (*, G1) and (*, G2), then the agreement of down direction and data run situation as follows:
Send joining request of multicast group G1 from Client1 and arrive S4, S4 is through carrying out HASH calculating to multicast group G1 address, assuming that have selected RPF_DF_TABLE (0), so generating table entry (* on S4, G1), RPF interface is wherein S4.2, according to protocol specification, continue to send (* to RPF interface direction, G1) join request, so the interface S2.4 of S2 receives joining request of downstream, because this interface is DF interface in RPF_DF_TABLE (0), (* can be generated by protocol requirement, G1) list item, the outgoing interface of this list item points to S2.4, and continue upstream S1 transmission (*, G1) join request, final at R1-> S1-> S2-> S4 along road generating forward list item (*, G1), multicast data flow is guided into recipient from RP.
Similarly, (the * that Client1 sends, G2) join request and finally to trigger at R1-> S1-> S3-> S4 along road generating forward list item (*, G2), guide multicast data flow into recipient from RP.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of routing device being applied to PIM network and above-mentioned flow process.
See Fig. 7, be the structural representation of the routing device that the embodiment of the present invention provides, this routing device can comprise:
Configuration module 701, for configure allow to realize the equal-cost route number (being expressed as M) of load balancing;
DF elects instance processes module 702, and for the equal-cost route number M according to allowed load balancing, the appointment forwarding router DF generating respective numbers (M) elects example, and elects the DF interface of each DF election corresponding to example; Wherein, the reverse path of each DF election corresponding to example forwards RPF interface is that routing device poll from its equal-cost route set of interfaces chooses;
Multicast forwarding list item processing module 703, for joining message or multicast data message from DF interface to multicast when this equipment, and when not inquiring corresponding multicast forwarding-table item, match corresponding DF according to corresponding multicast group and elect example, obtain the RPF interface of DF election corresponding to example matched, generate corresponding multicast forwarding-table item, and the multicast received to be joined message or multicast data message elects the RPF interface corresponding to example to send to RP direction by the DF that matches; Wherein, the RPF interface in the multicast forwarding list item outgoing interface list generated elects the RPF interface corresponding to example for the DF that matches;
Multicast forwarding module 704, for receiving multicast data message when this equipment, and when inquiring corresponding multicast forwarding-table item, the multicast forwarding list item according to inquiring forwards described multicast data message.
Concrete, DF elects instance processes module 702 to can be each DF election example and generates the EB packet carrying corresponding DF election instance number, and sends to respective neighbours; According to the EB packet carrying same instance number that its neighbours send, the DF corresponding to described same instance number elects example to carry out DF election.Concrete, DF elects instance processes module 702 DF can be elected examples Example number be carried on the reserved field of EB packet.
Concrete, multicast forwarding list item processing module 703 is when the DF corresponding according to corresponding multicast group coupling elects example, HASH computing can be carried out to corresponding multicast group, determine that the DF mated with HASH operation result elects instance number, elected by the DF matched DF corresponding to instance number to elect example to elect example as the DF mated with corresponding multicast group.
Further, DF elect instance processes module 702 also for: when finding this equipment clean culture routing variable, generate equal-cost route set of interfaces according to the singlecast router after change; And according to the equal-cost route number of allowed load balancing, the DF generating respective numbers elects example, and elect the DF interface of each DF election corresponding to example; Wherein, the RPF interface of each DF election corresponding to example is that routing device poll from its equal-cost route set of interfaces chooses.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a station terminal equipment (can be mobile phone, personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.

Claims (8)

1. a bidirectional protocol independent multicast PIM implementation method, is applied to PIM network, it is characterized in that, each routing device in described bidirectional pim network configures the equal-cost route number allowing to realize load balancing to some extent, the method comprises:
Each routing device is according to the equal-cost route number of allowed load balancing, the appointment forwarding router DF generating respective numbers elects example, after electing example to determine reverse path forwarding RPF interface to each DF, each routing device is that each DF elects example generation to carry the EB packet that corresponding DF elects instance number, and sends to respective neighbours; The EB packet carrying same instance number that each routing device sends according to its neighbours, the DF corresponding to described same instance number elects example to carry out DF election; Wherein, the RPF interface of each DF election corresponding to example is that routing device poll from its equal-cost route set of interfaces chooses;
When routing device joins message or multicast data message from DF interface to multicast, and when not inquiring corresponding multicast forwarding-table item, match corresponding DF according to corresponding multicast group and elect example, obtain the RPF interface of DF election corresponding to example matched, generate corresponding multicast forwarding-table item, and the multicast received to be joined message or multicast data message elects the RPF interface corresponding to example to send to Rendezvous Point RP direction by the DF that matches; Wherein, the RPF interface in the multicast forwarding list item outgoing interface list generated elects the RPF interface corresponding to example for the DF that matches;
When routing device is from DF interface or RPF interface to multicast data message, and when inquiring corresponding multicast forwarding-table item, the multicast forwarding list item according to inquiring forwards described multicast data message.
2. the method for claim 1, is characterized in that, DF elects instance number to be carried on the reserved field of EB packet.
3. the method for claim 1, is characterized in that, the described DF election example matching correspondence according to corresponding multicast group, is specially:
HASH computing is carried out to corresponding multicast group, determines that the DF mated with HASH operation result elects instance number, elected by the DF matched DF corresponding to instance number to elect example to elect example as the DF mated with corresponding multicast group.
4. the method as described in one of claim 1-3, is characterized in that, the method also comprises:
When routing device finds singlecast router change, generate equal-cost route set of interfaces according to the singlecast router after change;
Described routing device is according to the equal-cost route number of allowed load balancing, the DF generating respective numbers elects example, after electing example to determine RPF interface to each DF, each routing device is that each DF elects example generation to carry the EB packet that corresponding DF elects instance number, and sends to respective neighbours; The EB packet carrying same instance number that each routing device sends according to its neighbours, the DF corresponding to described same instance number elects example to carry out DF election; Wherein, the RPF interface of each DF election corresponding to example is that routing device poll from its equal-cost route set of interfaces chooses.
5. a routing device, is applied to bidirectional protocol independent multicast PIM network, it is characterized in that, comprising:
Configuration module, for configure allow to realize the equal-cost route number of load balancing;
Forwarding router DF is specified to elect instance processes module, for the equal-cost route number according to allowed load balancing, the DF generating respective numbers elects example, after electing example to determine reverse path forwarding RPF interface to each DF, carry for each DF elects example to generate the EB packet that corresponding DF elects instance number, and send to respective neighbours; According to the EB packet carrying same instance number that its neighbours send, the DF corresponding to described same instance number elects example to carry out DF election; Wherein, the RPF interface of each DF election corresponding to example is that routing device poll from its equal-cost route set of interfaces chooses;
Multicast forwarding list item processing module, for joining message or multicast data message from DF interface to multicast when this equipment, and when not inquiring corresponding multicast forwarding-table item, match corresponding DF according to corresponding multicast group and elect example, obtain the RPF interface of DF election corresponding to example matched, generate corresponding multicast forwarding-table item, and the multicast received to be joined message or multicast data message elects the RPF interface corresponding to example to send to RP direction by the DF that matches; Wherein, the RPF interface in the multicast forwarding list item outgoing interface list generated elects the RPF interface corresponding to example for the DF that matches;
Multicast forwarding module, for when this equipment is from DF interface or RPF interface to multicast data message, and when inquiring corresponding multicast forwarding-table item, the multicast forwarding list item according to inquiring forwards described multicast data message.
6. routing device as claimed in claim 5, is characterized in that, described DF elect instance processes module specifically for, elected by DF instance number to be carried on the reserved field of EB packet.
7. routing device as claimed in claim 5, it is characterized in that, when the described multicast forwarding list item processing module DF corresponding according to corresponding multicast group coupling elects example specifically for, HASH computing is carried out to corresponding multicast group, determine that the DF mated with HASH operation result elects instance number, elected by the DF matched DF corresponding to instance number to elect example to elect example as the DF mated with corresponding multicast group.
8. the routing device as described in one of claim 5-7, is characterized in that, described DF elect instance processes module also for, when finding this equipment clean culture routing variable, generate equal-cost route set of interfaces according to the singlecast router after change; And, according to the equal-cost route number of allowed load balancing, the DF generating respective numbers elects example, after electing example to determine RPF interface to each DF, each routing device is that each DF elects example generation to carry the EB packet that corresponding DF elects instance number, and sends to respective neighbours; The EB packet carrying same instance number that each routing device sends according to its neighbours, the DF corresponding to described same instance number elects example to carry out DF election; Wherein, the RPF interface of each DF election corresponding to example is that routing device poll from its equal-cost route set of interfaces chooses.
CN201210226473.4A 2012-07-03 2012-07-03 Method for implementing two-way protocol independent multicast (PIM) and equipment Active CN102769562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210226473.4A CN102769562B (en) 2012-07-03 2012-07-03 Method for implementing two-way protocol independent multicast (PIM) and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210226473.4A CN102769562B (en) 2012-07-03 2012-07-03 Method for implementing two-way protocol independent multicast (PIM) and equipment

Publications (2)

Publication Number Publication Date
CN102769562A CN102769562A (en) 2012-11-07
CN102769562B true CN102769562B (en) 2015-07-22

Family

ID=47096818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210226473.4A Active CN102769562B (en) 2012-07-03 2012-07-03 Method for implementing two-way protocol independent multicast (PIM) and equipment

Country Status (1)

Country Link
CN (1) CN102769562B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117935B (en) * 2013-02-28 2016-02-17 杭州华三通信技术有限公司 Be applied to multicast data forwarding method and the device of multi-home networking
CN103491015B (en) * 2013-09-06 2016-11-09 杭州华三通信技术有限公司 Realize public network and support the method and device of data multicast distribution tree
CN109104364B (en) * 2017-11-27 2020-11-06 新华三技术有限公司 Designated forwarder election method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159659A (en) * 2007-11-23 2008-04-09 清华大学 Multicast method using single static two-way shared tree in soft wire tunnel
CN101577679A (en) * 2009-06-26 2009-11-11 杭州华三通信技术有限公司 Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof
CN102104551A (en) * 2011-03-31 2011-06-22 杭州华三通信技术有限公司 Bidirectional protocol independent multicast forwarding method and two-layer network device
CN102111279A (en) * 2011-02-28 2011-06-29 杭州华三通信技术有限公司 Method and equipment for transmitting multicast data
CN102396190A (en) * 2009-06-03 2012-03-28 上海贝尔股份有限公司 Method and device for jointly processing mobile multicast source multicast service by multiple convergence nodes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644177B2 (en) * 2003-02-28 2010-01-05 Cisco Technology, Inc. Multicast-routing-protocol-independent realization of IP multicast forwarding
US8427959B2 (en) * 2007-01-22 2013-04-23 Cisco Technology, Inc. Bandwidth based selection for routing data
US8391185B2 (en) * 2007-05-29 2013-03-05 Cisco Technology, Inc. Method to transport bidir PIM over a multiprotocol label switched network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159659A (en) * 2007-11-23 2008-04-09 清华大学 Multicast method using single static two-way shared tree in soft wire tunnel
CN102396190A (en) * 2009-06-03 2012-03-28 上海贝尔股份有限公司 Method and device for jointly processing mobile multicast source multicast service by multiple convergence nodes
CN101577679A (en) * 2009-06-26 2009-11-11 杭州华三通信技术有限公司 Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof
CN102111279A (en) * 2011-02-28 2011-06-29 杭州华三通信技术有限公司 Method and equipment for transmitting multicast data
CN102104551A (en) * 2011-03-31 2011-06-22 杭州华三通信技术有限公司 Bidirectional protocol independent multicast forwarding method and two-layer network device

Also Published As

Publication number Publication date
CN102769562A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
US8009671B2 (en) Multicast method and multicast routing method
Costa et al. Hop by hop multicast routing protocol
US7580368B2 (en) Packet distribution control method
US7839850B2 (en) Forming equal cost multipath multicast distribution structures
Deering et al. Protocol independent multicast-sparse mode (PIM-SM): motivation and architecture
KR101278843B1 (en) Application-level routing protocol for multiparty audio-video conferencing
US7911977B2 (en) Designated router assignment per multicast group address/range
US8270395B2 (en) Forming multicast distribution structures using exchanged multicast optimization data
CN103546381B (en) Method, the apparatus and system of two-way multicast distribution tree are created based on Interior Gateway Protocol
US20110002333A1 (en) Terminal and n-tree constructing method
US20140314079A1 (en) Efficient Multicast Delivery to Dually Connected (VPC) Hosts in Overlay Networks
CN101986601B (en) Multicast data transmission method and equipment
Nagata et al. Delivering a file by multipath-multicast on openflow networks
CN102316083B (en) Method and device for realizing multicast service in Internet protocol (IP) network
CN102111279B (en) Method and equipment for transmitting multicast data
CN102769562B (en) Method for implementing two-way protocol independent multicast (PIM) and equipment
EP3958517B1 (en) Weighted multicast join load balance
Zhang et al. A destination-initiated multicast routing protocol for shortest path tree constructions
CN102413062B (en) Route selecting method and route equipment
CN102843303B (en) Multicast message processing method in PIM and device
Bartczak et al. Lightweight PIM—a new multicast routing protocol
CN1996931A (en) Network multicast method
Bartczak et al. Performance evaluation of source-specific multicast routing protocols for IP networks
Tripathi et al. Comparative Analysis of Quality of Service of Dense and CBT Mode of Multicast Routing Strategies
Chang et al. Multiparty videoconferencing using IP multicast

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

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

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230628

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.

TR01 Transfer of patent right