CN101060494A - A route selection method, system and router - Google Patents
A route selection method, system and router Download PDFInfo
- Publication number
- CN101060494A CN101060494A CNA2007101070389A CN200710107038A CN101060494A CN 101060494 A CN101060494 A CN 101060494A CN A2007101070389 A CNA2007101070389 A CN A2007101070389A CN 200710107038 A CN200710107038 A CN 200710107038A CN 101060494 A CN101060494 A CN 101060494A
- Authority
- CN
- China
- Prior art keywords
- multicast
- address
- next hop
- list item
- router
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
Abstract
The disclosed route selection method comprises: router takes all of the MB address, MB mask and relative next-jump router address as input, calculates with Hash algorithm, and selects the maximal result from multiple next-jump router addresses. This invention shares the loading of MB data flow.
Description
Technical field
The present invention relates to the route technology field, particularly a kind of method of routing, system and router.
Background technology
Internet Protocol (IP, Internet Protocol) multicast is a kind of data flow transmission mode, and it is meant that in IP network certain that data flow is sent in the network with the form that transmits (best-effort) as possible determines the node subclass.This node subclass is called multicast group (Multicast group).The basic thought of IP multicast is, source host only sends a piece of data, and the destination address of this piece of data is a multicast group address; Main frame in the multicast group can receive same data copy, and has only the main frame in the multicast group, and promptly destination host can receive this data copy, and other main frame then can't receive in the network.
In the multicast mode, the path of transfer of data is called multicast distribution tree, and the task of multicast routing protocol is exactly to make up the forwarding that multicast distribution tree is realized multicast traffic stream.Protocol Independent Multicast (PIM, ProtocolIndependent Multicast) is multicast routing protocol in the territory of using always, comprise Protocol Independent Multicast-Sparse Mode (PIM-SM, Protocol Independent Multicast-Sparse Mode) and Protocol Independent Multicast-Dense Mode (PIM-DS, Protocol Independent Multicast-Dense Mode).Under dense mode, it is the source distribution tree of root that PIM makes up with the multicast source; Under sparse mode, it is the shared distribution tree of root that PIM makes up with multicast share tree convergent point (RP, Rendezvous Point).
The unicast routing table that the PIM agreement utilizes router to preserve is made reverse path and is transmitted (RPF, ReversePath Forwarding) inspection, obtains multicast distribution tree thus.Specifically, when router will add certain multicast tree, router is at first inquired about the unicast routing table of oneself, select to arrive the shortest path of multicast source address or multicast RP address by pairing next hop router, with its next hop router as oneself, and then transmission joins message or graft packet arrives selected next hop router.Next hop router receive this join message or graft packet after, the interface that receives this message is joined in the outgoing interface tabulation of multicast forwarding list item of its preservation.The multicast forwarding list item of each router comprises: the set of multicast source address, multicast group address, incoming interface and outgoing interface, the multicast forwarding list item of router also comprises multicast RP address in the shared distribution tree.Each router all repeats said process, and when selected next hop router was multicast source or multicast RP, multicast distribution tree was set up and finished.
Follow-up when transmitting message packet, transmit according to the multicast distribution tree that builds up.Router duplicates the back with the message of receiving and transmits a from each outgoing interface.
In the above-mentioned process of setting up multicast distribution tree, router is when the inquiry unicast routing table, if equal-cost route appears in multicast source address, just multicast source address has the next hop router of a plurality of correspondences, need select the next hop router of a conduct oneself from a plurality of next hop routers, the way of prior art is: select the next hop router of the next hop router of IP address maximum as oneself.
As seen, present multicast traffic stream Route Selection is carried out according to multicast source.Under the different situation of multicast source, can realize the load balancing of multicast traffic stream.But, for multicast source or the identical situation of multicast RP, when router arrives multicast source or multicast RP and has equal-cost route, can only fix and select the pairing next hop router of one of them route as its next hop router, other next hop router then can not be chosen.Follow-uply when multicast data forwarding, also can only transmit, can't accomplish the load balancing of multicast traffic stream according to this paths.
Summary of the invention
The embodiment of the invention provides a kind of method of routing, distributes multicast traffic stream on the multicast distribution tree that adopts this method to set up, and can realize the load balancing of multicast traffic stream.
The embodiment of the invention also provides a kind of system and router of Route Selection, distributes multicast traffic stream on the multicast distribution tree of this system of employing and router foundation, can realize the load balancing of multicast traffic stream.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of method of routing, this method comprises:
Router with the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt Hash (hash) algorithm to calculate respectively, in a plurality of next hop routers address of multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
The embodiment of the invention also provides a kind of system of Route Selection, this system comprises a plurality of routers, wherein, described each router, be used for the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt the hash algorithm to calculate respectively, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
The embodiment of the invention also provides a kind of router, and this router comprises: computing module and selection module;
Described computing module, be used for the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt the hash algorithm to calculate respectively, result of calculation is sent to the selection module;
Described selection module, be used for the result of calculation that receives from computing module is compared, in a plurality of next hop routers address of each multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
As seen, method, system and router that the embodiment of the invention proposes, occur under the equivalents to the route between a plurality of next hop routers at router, this router adopts the hash algorithm, from a plurality of next hop routers address of the multicast forwarding list item correspondence of router, select a hash algorithm computation as a result the next hop router of maximum and then make up multicast distribution tree as the next hop router of this router at this multicast forwarding list item.Owing to used the hash algorithm, router is sent out the next hop router of transmitting selection at group and is had equal opportunities, therefore, follow-up in this way, on the multicast distribution tree set up of system and router during multicast data forwarding stream, just can realize the load balancing of multicast traffic stream.
Description of drawings
Fig. 1 is the route selection method schematic diagram that embodiment of the invention multicast source is identical, multicast group is different;
Fig. 2 is the route selection method schematic diagram that embodiment of the invention multicast RP is identical, multicast group is different;
The route selection method schematic diagram that Fig. 3 is an embodiment of the invention multicast source difference, multicast group is different;
The route selection method schematic diagram that Fig. 4 is an embodiment of the invention multicast RP difference, multicast group is different;
Fig. 5 is the structural representation of embodiment of the invention path selection system;
Fig. 6 is the structural representation of embodiment of the invention router.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The method that the embodiment of the invention provides, system and router, occur under the equivalents to the route between a plurality of next hop routers at router, this router adopts the hash algorithm, from a plurality of next hop routers address of the multicast forwarding list item correspondence of router, select a hash algorithm computation as a result the next hop router of maximum and then in whole system, make up multicast distribution tree as the next hop router of this router at this multicast forwarding list item.The embodiment of the invention is owing to used the hash algorithm, router is sent out the next hop router of transmitting selection at group and is had equal opportunities, therefore, follow-up in this way, on the multicast distribution tree set up of system and router during multicast data forwarding stream, just can realize the load balancing of multicast traffic stream.
In embodiments of the present invention, in each router, all stored multicast forward table, it is corresponding with the next hop router address that can reach respectively that this multicast forward table has a plurality of multicast forwarding list items, certainly, if when router equivalence occurred to the route between a plurality of next hop routers, a multicast forwarding list item will be corresponding to a plurality of next hop routers address.
During several situation below the multicast forwarding list item stored in router occurs, may to the route between a plurality of next hop routers equivalents appear at router:
Multicast source is identical, multicast group is different; Multicast RP is identical, multicast group is different; Multicast source difference, multicast group difference; Multicast RP difference, multicast group difference.
Below respectively to these several situations, for example how router adopts the hash algorithm computation, in a plurality of next hop routers address of multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
Embodiment one: the Route Selection that multicast source is identical, multicast group is different.As Fig. 1, Fig. 1 is the route selection method schematic diagram that embodiment of the invention multicast source is identical, multicast group is different.Router RTC103 arrives multicast source S1 and has two equal-cost routes, and the next hop router of these two route correspondences is respectively RTA101 and RTB102.Exist on the router RTC103 (S1, G1) and (S1, G2) multicast forwarding list item, S1 are multicast source address, G1 and G2 are multicast group address.The multicast source of two multicast forwarding list items is identical, multicast group is different.
Select (S1, G1) during corresponding next hop router, router RTC103 is by the hash algorithm:
Value(G1,M1,N)=
(1103515245*((1103515245*(G1&M1)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA101 and RTB102 respectively, select the big next hop router of Value as (S1, G1) Dui Ying next hop router.In the following formula, M1 is the mask of multicast group G1, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Select (S1, G2) during corresponding next hop router, router RTC103 is by the hash algorithm:
Value(G2,M2,N)=
(1103515245*((1103515245*(G2&M2)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA101 and RTB102 respectively, select the big next hop router of Value as (S1, G2) Dui Ying next hop router.In the following formula, M2 is the mask of multicast group G2, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Owing to used the hash algorithm, the next hop router that router is selected at multicast group address, multicast group mask hash is effectively opened, and accomplishes to select different next hop routers as its next hop router at different multicast forwarding list items.In this example, at (S1 G1) selects RTA101 as next hop router, at (S1 G2) selects RTB102 as next hop router.
After having selected next hop router, the next hop router of selecting can repeat above-mentioned same step, and when next hop router was S1, multicast distribution tree built up.On this multicast distribution tree, transmit data flow, can realize the load balancing of multicast traffic stream.
In above-mentioned hash algorithm, all addresses: G1, G2, M1, M2, N1, N2 are 32 IP addresses.If the step-by-step xor operation then with one section of per 32 intercepting in this IPv6 address, is carried out with 4 32 the binary sequence that intercepts in the IPv6 address, generate 32 new binary sequences, the formula of the above-mentioned hash algorithm of substitution is calculated.
Embodiment two: the Route Selection that multicast RP is identical, multicast group is different.As Fig. 2, Fig. 2 is the route selection method schematic diagram that embodiment of the invention multicast RP is identical, multicast group is different.Router RTC203 arrives multicast RP1 and has two equal-cost routes, and the next hop router of these two route correspondences is respectively RTA201 and RTB202.Exist on the router RTC203 (*, G1) and (wherein " * " represents all source addresses for *, G2) multicast forwarding list item, and G1, G2 are multicast group address.The multicast RP of two multicast forwarding list items is identical, multicast group is different.
Select (*, G1) during corresponding next hop router, router RTC203 is by the hash algorithm:
Value(G1,M1,N)=
(1103515245*((1103515245*(G1&M1)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA201 and RTB202 respectively, select the big next hop router of Value as (*, G1) Dui Ying next hop router.In the following formula, M1 is the mask of multicast group G1, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Select (*, G2) during corresponding next hop router, router RTC203 is by the hash algorithm:
Value(G2,M2,N)=
(1103515245*((1103515245*(G2&M2)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA201 and RTB202 respectively, select the big next hop router of Value as (*, G2) Dui Ying next hop router.In the following formula, M2 is the mask of multicast group G2, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Owing to used the hash algorithm, the next hop router that router is selected at multicast group address, multicast group mask hash is effectively opened, and accomplishes to select different next hop routers as its next hop router at different multicast forwarding list items.In this example, at (* G1) selects RTA201 as next hop router, at (* G2) selects RTB202 as next hop router.
After having selected next hop router, the next hop router of selecting can repeat above-mentioned same process, and when next hop router was RP1, multicast distribution tree built up.On this multicast distribution tree, transmit data flow, realize the load balancing of multicast traffic stream.
In above-mentioned hash algorithm, all addresses: G1, G2, M1, M2, N1, N2 are 32 IP addresses.If the step-by-step xor operation then with one section of per 32 intercepting in this IPv6 address, is carried out with 4 32 the binary sequence that intercepts in the IPv6 address, generate 32 new binary sequences, the formula of the above-mentioned hash algorithm of substitution is calculated.
Embodiment three: multicast source difference, the Route Selection that multicast group is different.As Fig. 3, the route selection method schematic diagram that Fig. 3 is an embodiment of the invention multicast source difference, multicast group is different.Router RTC303 arrives multicast source S1, S2 and all has two equal-cost routes, and corresponding next hop router is respectively RTA301 and RTB302.Exist on the router RTC303 (S1, G1) and (S2, G2) multicast forwarding list item, S1, S2 are multicast source address, G1, G2 are multicast group address.The multicast source of two multicast forwarding list items is all different with multicast group.
Select (S1, G1) during corresponding next hop router, router RTC303 is by the hash algorithm:
Value(S1,G1,M1,N)=
(1103515245*((1103515245*((S1^G1)&M1)+12345)XOR?N)+12345)mod?2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA301 and RTB302 respectively, select the big next hop router of Value as (S1, G1) Dui Ying next hop router.In the following formula, M1 is the mask of multicast group G1, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Select (S2, G2) during corresponding next hop router, router RTC303 is by the hash algorithm:
Value(S2,G2,M2,N)=
(1103515245*((1103515245*((S2^G2)&M2)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA301 and RTB302 respectively, select the big next hop router of Value as (S2, G2) Dui Ying next hop router.In the following formula, M2 is the mask of multicast group G2, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Owing to used the hash algorithm, the next hop router that router is selected at multicast source address, multicast group address, multicast group mask hash is effectively opened, and accomplishes to select different next hop routers as its next hop router at different multicast forwarding list items.In this example, at (S1 G1) selects RTA301 as next hop router, at (S2 G2) selects RTB302 as next hop router.
After having selected next hop router, the next hop router of selecting can repeat above-mentioned same process, and when next hop router was S1 or S2, multicast distribution tree built up.On this multicast distribution tree, transmit data flow, can realize the load balancing of multicast traffic stream.
In above-mentioned hash algorithm, all addresses: S1, S2, G1, G2, M1, M2, N1, N2 are 32 IP addresses.If the step-by-step xor operation then with one section of per 32 intercepting in this IPv6 address, is carried out with 4 32 the binary sequence that intercepts in the IPv6 address, generate 32 new binary sequences, the formula of the above-mentioned hash algorithm of substitution is calculated.
Embodiment four: multicast RP difference, the Route Selection that multicast group is different.As Fig. 4, the route selection method schematic diagram that Fig. 4 is an embodiment of the invention multicast RP difference, multicast group is different.Router RTC403 arrives multicast RP1, RP2 and all has two equal-cost routes, and corresponding next hop router is respectively RTA401 and RTB402.Exist on the router RTC (RP1, G1) and (RP2, G2) multicast forwarding list item, RP1, RP2 are multicast RP address, and G1, G2 are multicast group address.The multicast RP of two multicast forwarding list items is different with multicast group.
Select (RP1, G1) during corresponding next hop router, router RTC403 is by the hash algorithm:
Value(RP1,G1,M1,N)=
(1103515245*((1103515245*((RP1^G1)&M1)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA401 and RTB402 respectively, select the big next hop router of Value as (RP1, G1) Dui Ying next hop router.In the following formula, M1 is the mask of multicast group G1, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Select (RP2, G2) during corresponding next hop router, router RTC403 is by the hash algorithm:
Value(RP2,G2,M2,N)=
(1103515245*((1103515245*((RP2^G2)&M2)+12345)XOR?N)+12345)mod2^31
Calculate the Value of the address N2 correspondence of the address N1 of two next hop router RTA401 and RTB402 respectively, select the big next hop router of Value as (RP2, G2) Dui Ying next hop router.In the following formula, M2 is the mask of multicast group G2, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Owing to used the hash algorithm, the next hop router that router is selected at multicast RP address, multicast group address, multicast group mask hash is effectively opened, and accomplishes to select different next hop routers as its next hop router at different multicast forwarding list items.In this example, at (RP1 G1) selects RTA401 as next hop router, at (RP2 G2) selects RTB402 as next hop router.
After having selected next hop router, the next hop router of selecting can repeat above-mentioned same process, and when next hop router was RP1 or RP2, multicast distribution tree built up.On this multicast distribution tree, transmit data flow, can realize the load balancing of multicast traffic stream.
In above-mentioned hash algorithm, all addresses: RP1, RP2, G1, G2, M1, M2, N1, N2 are 32 IP addresses.If the step-by-step xor operation then with one section of per 32 intercepting in this IPv6 address, is carried out with 4 32 the binary sequence that intercepts in the IPv6 address, generate 32 new binary sequences, the formula of the above-mentioned hash algorithm of substitution is calculated.
Embodiment five: the system of multicast traffic stream Route Selection under the equal-cost route situation.Referring to Fig. 5, Fig. 5 is the structural representation of embodiment of the invention path selection system.
This system comprises a plurality of routers.Wherein, (S1, G1) Dui Ying next hop router has two to the multicast forwarding list item of router RTA501: RTB502 and RTC503.Wherein S1 is a multicast source address, and G1 is a multicast group address.Router RTA501 adopts the hash algorithm, and (S1, G1) Dui Ying next hop router is RTB502 to select the multicast forwarding list item.
After selected RTB502 is next hop router, if there is equal-cost route in RTB502, then repeat above-mentioned selection course, selected its next hop router, otherwise the shortest path of directly choosing multicast source RTn506 by the next hop router of correspondence as its next hop router.Up to next hop router is multicast source RTn506.Router RTA501, all by way of next hop router, and multicast source RTn506 mutual group become system of the present invention.
System of the present invention also can replace with multicast source RTn506 multicast RP.
Embodiment six: the router of multicast traffic stream Route Selection under the equal-cost route situation.Referring to Fig. 6, Fig. 6 is the structural representation of embodiment of the invention router.
Router RTa610 comprises computing module 612 and selects module 613.
Suppose that (S1, G1) Dui Ying next hop router has two: RTb620 and RTc630 for the multicast forwarding list item of router RTa610.Wherein S1 is a multicast source address, and G1 is a multicast group address, and the address of RTb620 is N1, and the address of RTc630 is N2.
Value(G1,M1,N1)=(1103515245*((1103515245*(G1&M1)+12345)XOR?N1)+12345)mod2^31
Value(G1,M1,N2)=(1103515245*((1103515245*(G1&M1)+12345)XOR?N2)+12345)mod2^31
Wherein, M1 is the mask , ﹠amp of multicast group G1; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Two result of calculations selecting module 613 to receive: Value (G1, M1, N1) and Value (G1, M1, N2) compare, the next hop router of selection result maximum is as the corresponding next hop router of the multicast forwarding list item (S1, G1) of router RTa610.Suppose that (G1, M1 N1) greatly, then select RTb620 to Value.
Computing module can also carry out following hash and calculate:
Value(S,G,M,N)=
(1103515245*((1103515245*((S^G)&M)+12345)XOR?N)+12345)mod2^31
Wherein, S is that source address, G are that multicast group address, M are the multicast group mask, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
Or:
Value(RP,G,M,N)=
(1103515245*((1103515245*((RP^G)&M)+12345)XOR?N)+12345)mod2^31
Wherein, RP is that multicast RP address, G are that multicast group address, M are the multicast group mask, and N is next hop router address , ﹠amp; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
As seen, the embodiment of the invention can according to multicast group information, multicast source and multicast group information and multicast RP and multicast group information, be selected different routes when equal-cost route occurring.Make distributing data stream on the multicast distribution tree of setting up in this way, can accomplish the load balancing of multicast traffic stream.
Claims (10)
1, a kind of method of routing is characterized in that, this method comprises:
Router with the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt Hash hash algorithm to calculate respectively, in a plurality of next hop routers address of multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
2, method according to claim 1 is characterized in that, described employing hash algorithm is calculated as respectively:
Value(G,M,N)=(1103515245*((1103515245*(G&M)+12345)XOR?N)+12345)mod?2^31
Wherein, G is the multicast group address of multicast forwarding list item, and M is the mask of the multicast group of multicast forwarding list item, and N is each next hop router address of multicast forwarding list item correspondence; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
3, method according to claim 2, it is characterized in that, before employing hash algorithm calculates respectively, also comprise: the multicast group address of multicast forwarding list item, the mask of multicast group are or/and next hop router address when being IPv 6 address ip v6 address, with one section of per 32 intercepting in this IPv6 address, 4 32 binary sequence of intercepting is carried out the step-by-step xor operation, generate 32 binary sequences, respectively as the G that uses in the hash algorithm, M or/and N.
4, method according to claim 1 is characterized in that, described employing hash algorithm calculates respectively, comprises that also the multicast source address with the multicast forwarding list item calculates as input,
Described employing hash algorithm is calculated as:
Value(S,G,M,N)=(1103515245*((1103515245*((S^G)&M)+12345)XOR?N)+12345)mod2^31
Wherein, S is the multicast source address of multicast forwarding list item, and G is the multicast group address of multicast forwarding list item, and M is the mask of the multicast group of multicast forwarding list item, and N is each next hop router address of multicast forwarding list item; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
5, method according to claim 4, it is characterized in that, before employing hash algorithm calculates respectively, also comprise: the mask of the multicast source address of multicast forwarding list item, multicast group address, multicast group is or/and next hop router address when being the IPv6 address, with one section of per 32 intercepting in this IPv6 address, with the intercepting 4 32 binary sequence carry out the step-by-step xor operation, generate 32 binary sequences, respectively as the S that uses in the hash algorithm, G, M or/and N.
6, method according to claim 1 is characterized in that, described employing hash algorithm calculates respectively, also comprises: the multicast share tree convergent point RP address of multicast forwarding list item is calculated as input;
Described employing hash algorithm is calculated as:
Value(RP,G,M,N)=(1103515245*((1103515245*((RP^G)&M)+12345)XOR?N)+12345)mod2^31
Wherein, RP is the multicast RP address of multicast forwarding list item, and G is the multicast group address of multicast forwarding list item, and M is the mask of the multicast group of multicast forwarding list item, and N is each next hop router address of multicast forwarding list item; For step-by-step with, XOR is the step-by-step XOR, mod is surplus for getting.
7, method according to claim 6, it is characterized in that, before employing hash algorithm calculates respectively, also comprise: the mask of the multicast RP address of multicast forwarding list item, multicast group address, multicast group is or/and next hop router address when being the IPv6 address, with one section of per 32 intercepting in this IPv6 address, with the intercepting 4 32 binary sequence carry out the step-by-step xor operation, generate 32 binary sequences, respectively as the RP that uses in the hash algorithm, G, M or/and N.
8, a kind of system of Route Selection, it is characterized in that, this system comprises a plurality of routers, wherein, described each router, be used for the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt the hash algorithm to calculate respectively, in a plurality of next hop routers address of multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
9, system according to claim 8 is characterized in that, described router comprises: computing module and selection module;
Described computing module, be used for the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt the hash algorithm to calculate respectively, result of calculation is sent to the selection module;
Described selection module, be used for the result of calculation that receives from computing module is compared, in a plurality of next hop routers address of multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
10, a kind of router is characterized in that, this router comprises: computing module and selection module;
Described computing module, be used for the mask of the multicast group address of multicast forwarding list item, multicast group, and corresponding each next hop router address as input, adopt the hash algorithm to calculate respectively, result of calculation is sent to the selection module;
Described selection module, be used for the result of calculation that receives from computing module is compared, in a plurality of next hop routers address of each multicast forwarding list item correspondence, select the next hop router of the next hop router of result of calculation maximum as this multicast forwarding list item correspondence.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101070389A CN101060494A (en) | 2007-05-17 | 2007-05-17 | A route selection method, system and router |
PCT/CN2008/070809 WO2008141555A1 (en) | 2007-05-17 | 2008-04-25 | A method, system and router for route selection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101070389A CN101060494A (en) | 2007-05-17 | 2007-05-17 | A route selection method, system and router |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101060494A true CN101060494A (en) | 2007-10-24 |
Family
ID=38866390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007101070389A Pending CN101060494A (en) | 2007-05-17 | 2007-05-17 | A route selection method, system and router |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101060494A (en) |
WO (1) | WO2008141555A1 (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008141555A1 (en) * | 2007-05-17 | 2008-11-27 | Huawei Technologies Co., Ltd. | A method, system and router for route selection |
CN101841485A (en) * | 2010-05-28 | 2010-09-22 | 华为技术有限公司 | Method and relevant device for sharing multicast traffic |
CN102647424A (en) * | 2012-04-18 | 2012-08-22 | 杭州华三通信技术有限公司 | Data transmission method and data transmission device |
CN101960428B (en) * | 2008-02-26 | 2013-11-13 | 国际商业机器公司 | Routing workloads and method thereof |
CN103501272A (en) * | 2013-09-18 | 2014-01-08 | 杭州华三通信技术有限公司 | Multicast flow forwarding method and device |
WO2017088718A1 (en) * | 2015-11-25 | 2017-06-01 | 华为技术有限公司 | Method and apparatus for transmitting control message |
CN106844233A (en) * | 2016-12-07 | 2017-06-13 | 深圳市德传技术有限公司 | A kind of router service data caching method and system based on Hash table |
CN107623640A (en) * | 2017-11-07 | 2018-01-23 | 北京锐安科技有限公司 | A kind of method and device for strengthening hash algorithm |
CN109639579A (en) * | 2018-12-04 | 2019-04-16 | 盛科网络(苏州)有限公司 | The processing method and processing device of multicast message, storage medium, processor |
CN111917622A (en) * | 2019-09-23 | 2020-11-10 | 华为技术有限公司 | Reverse Path Forwarding (RPF) checking method and device |
CN113422735A (en) * | 2021-06-22 | 2021-09-21 | 恒安嘉新(北京)科技股份公司 | Load balancing configuration method, convergence diverter and medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111431798B (en) * | 2020-03-31 | 2022-07-12 | 新华三信息安全技术有限公司 | Route switching method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060182049A1 (en) * | 2005-01-31 | 2006-08-17 | Alcatel | IP multicasting with improved redundancy |
CN101060494A (en) * | 2007-05-17 | 2007-10-24 | 华为技术有限公司 | A route selection method, system and router |
-
2007
- 2007-05-17 CN CNA2007101070389A patent/CN101060494A/en active Pending
-
2008
- 2008-04-25 WO PCT/CN2008/070809 patent/WO2008141555A1/en active Application Filing
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008141555A1 (en) * | 2007-05-17 | 2008-11-27 | Huawei Technologies Co., Ltd. | A method, system and router for route selection |
CN101960428B (en) * | 2008-02-26 | 2013-11-13 | 国际商业机器公司 | Routing workloads and method thereof |
RU2556464C2 (en) * | 2010-05-28 | 2015-07-10 | Хуавэй Текнолоджиз Ко., Лтд. | Method and appropriate device for joint use of traffic at multicast |
CN101841485A (en) * | 2010-05-28 | 2010-09-22 | 华为技术有限公司 | Method and relevant device for sharing multicast traffic |
WO2011147206A1 (en) * | 2010-05-28 | 2011-12-01 | 华为技术有限公司 | Multicast traffic sharing method and correlative device |
CN101841485B (en) * | 2010-05-28 | 2013-04-24 | 华为技术有限公司 | Method and relevant device for sharing multicast traffic |
CN102647424B (en) * | 2012-04-18 | 2015-07-22 | 杭州华三通信技术有限公司 | Data transmission method and data transmission device |
CN102647424A (en) * | 2012-04-18 | 2012-08-22 | 杭州华三通信技术有限公司 | Data transmission method and data transmission device |
CN103501272A (en) * | 2013-09-18 | 2014-01-08 | 杭州华三通信技术有限公司 | Multicast flow forwarding method and device |
WO2017088718A1 (en) * | 2015-11-25 | 2017-06-01 | 华为技术有限公司 | Method and apparatus for transmitting control message |
CN106844233A (en) * | 2016-12-07 | 2017-06-13 | 深圳市德传技术有限公司 | A kind of router service data caching method and system based on Hash table |
CN107623640A (en) * | 2017-11-07 | 2018-01-23 | 北京锐安科技有限公司 | A kind of method and device for strengthening hash algorithm |
CN109639579A (en) * | 2018-12-04 | 2019-04-16 | 盛科网络(苏州)有限公司 | The processing method and processing device of multicast message, storage medium, processor |
WO2020114239A1 (en) * | 2018-12-04 | 2020-06-11 | 盛科网络(苏州)有限公司 | Multicast message processing method and apparatus, storage medium and processor |
CN109639579B (en) * | 2018-12-04 | 2021-05-14 | 盛科网络(苏州)有限公司 | Multicast message processing method and device, storage medium and processor |
CN111917622A (en) * | 2019-09-23 | 2020-11-10 | 华为技术有限公司 | Reverse Path Forwarding (RPF) checking method and device |
CN111917622B (en) * | 2019-09-23 | 2021-08-03 | 华为技术有限公司 | Reverse Path Forwarding (RPF) checking method and device |
CN113422735A (en) * | 2021-06-22 | 2021-09-21 | 恒安嘉新(北京)科技股份公司 | Load balancing configuration method, convergence diverter and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2008141555A1 (en) | 2008-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101060494A (en) | A route selection method, system and router | |
US11044112B2 (en) | Bit indexed explicit forwarding optimization | |
US11240053B2 (en) | Overlay signaling for bit indexed explicit replication | |
CN1791054A (en) | Virtual special network multicast method by virtual router mode | |
US11451474B2 (en) | Equal cost multi-path with bit indexed explicit replication | |
US10536324B2 (en) | Per-prefix LFA FRR with bit indexed explicit replication | |
CN1777149A (en) | Method for realizing multicast translation in three-layer switching unit | |
CN1725761A (en) | Method of implementing link aggregation of network equipment | |
US20130077627A1 (en) | Method and apparatus for routing multicast data across multiple multicast routing domains connected by a shortest path bridging (spb) network | |
CN1863147A (en) | Method for implementing multicast data stream retransmission in virtual special LAN service | |
CN1992676A (en) | Forwarding state sharing between multiple traffic paths in a communication network | |
CN101030943A (en) | Method for transmitting message and route | |
CN1968184A (en) | Link layer communication method in LAN and network device thereof | |
CN101047651A (en) | Method, system and equipment for setting IP priority level | |
CN101442564A (en) | Method for forwarding multicast data and NAT equipment | |
EP2961115A1 (en) | Method, device, and system for transmitting multicast packet across layer 2 virtual network | |
CN1929444A (en) | Operator's boundary notes, virtual special LAN service communication method and system | |
CN1801783A (en) | Multi-domain multicast integration data distributing structure and method based on IP/MPLS/BGP | |
CN101052004A (en) | Multicast transmission method based on virtual distribution net in network | |
EP2899933B1 (en) | Equal cost multi-path with bit indexed explicit replication | |
CN1889448A (en) | Method and system for crossing virtual local network group broadcasting under assigned source group broadcasting protocol extraneous group broadcasting mode | |
CN102111279B (en) | Method and equipment for transmitting multicast data | |
CN101052006A (en) | Message up sending method and interface plate and router for realizing said method | |
CN1595879A (en) | A method for increasing efficiency of multicast data forwarding in circumstance of large-capacity routing table | |
CN101047634A (en) | Allocating method for upper tag |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20071024 |