CN106209635A - A kind of weight the route control method of multipath WCMP, device and system - Google Patents
A kind of weight the route control method of multipath WCMP, device and system Download PDFInfo
- Publication number
- CN106209635A CN106209635A CN201510219341.2A CN201510219341A CN106209635A CN 106209635 A CN106209635 A CN 106209635A CN 201510219341 A CN201510219341 A CN 201510219341A CN 106209635 A CN106209635 A CN 106209635A
- Authority
- CN
- China
- Prior art keywords
- path
- group
- random
- probability
- path member
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Navigation (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses the route control method of a kind of WCMP, device and system, the method may include that the weight correspondence according to each path member under same route obtains the random probability hitting each path member;Probability according to described random hit each path member is grouped according to default grouping strategy, obtains at least one member's group;Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group, the probability of each path member in random hit member's group is identical;Set up corresponding relation between described path member and described member's group, obtain multiple index table;Described multiple index table is sent to turning dough leavening device;Wherein, multiple index table is for making to turn the routing information of dough leavening device acquisition weighting multipath forwarding.
Description
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of weighting multipath (WCMP, Weighted
Cost Multipath) route control method, device and system.
Background technology
WCMP can transmit flow according to weight proportion the most flexibly on link, and the network equipment can be in order to
With WCMP by arriving the flow of same purpose network, share by weight proportion and transferring on different links
Go.When the weight of different links is identical, now it is properly termed as equal cost multipath (ECMP, Equal-Cost
Multipath Routing), it is possible to understand that ground, ECMP is the special case of WCMP.
In the current network equipment, the implementation method of WCMP is as it is shown in figure 1, include that two parts describe:
1, face list item design is forwarded;2, chain of command joins table design.
For forwarding face list item design, the form of one-level index, i.e. table of query and routing is generally used to obtain
Multipath member under this route organizes information, and multipath member organizes information can include the index of multipath member
Plot (member.base_idx) and multipath membership (count), then obtained by hash module and breathe out
Uncommon index (random value) carries out modulo operation to multipath membership, it is thus achieved that in multipath member's group information
The random skew (member.offset) relatively that each path member is corresponding, adds multipath member's
Index plot (member.base_idx), can obtain the forwarding information in any member path.
Forward under the list item design in face at this, chain of command joins table design, and to realize the process of WCMP as follows: if
Certain route includes the forwarding information of N number of path member, then the forwarding of N number of path member can be believed by upper layer software (applications)
Breath collects and obtains membership table, distribute from membership table one to the member of path member indexing plot in table,
Indexing plot by member and be continuously written into N number of path member entries, the weight between different path members can root
The number of times repeating to fill in this membership table according to member entries embodies, according to the path member that weight is the biggest,
Hit the biggest principle of the probability of this path member the most at random to realize WCMP.It is to be appreciated that work as N
When individual path member entries is only filled with one time in membership table, then achieve ECMP.As in figure 2 it is shown, it is false
If corresponding 8 the path members of certain route, weight proportion is 1:1:1:1:2:2:4:4, then according to each path member
Weight proportion, the random probability hitting each path member is followed successively by: member 1:1/16, member 2:1/16,
Member 3:1/16, member 4:1/16, member 5:2/16, member 6:2/16, member 7:4/16, become
Member 8:4/16.At this point it is possible to member 5 and member 6 are filled with 2 times in membership table, member 7 with become
Member 8 is filled with 4 times in membership table.By the way of repeating filling, meet the path member that weight is the biggest,
Hit the principle that the probability of this path member is the biggest the most at random.
Above-mentioned processing mode there will be some path member can occupy showing of multiple membership table entry in membership table
As.For WCMP, entry number included in membership table is significantly larger than actual path membership,
In Fig. 2, membership is 8 and the entry number of list item in membership table is 16.Due to membership table
The list item width of each entry wider, cause membership table resource consumption very big, and the place of the network equipment
In reason device chip, precious resources is exactly list item storage resource, therefore, at present for the realization of WCMP,
It is required to consume list item storage resource in large quantities.
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides the route test side of a kind of WCMP
Method, device and system, it is possible to reduce and realize the consumption of list item storage resource during WCMP, save chip-stored
Space.
The technical scheme is that and be achieved in that:
First aspect, embodiments provides a kind of route control method weighting multipath WCMP,
Described method includes:
Weight correspondence according to each path member under same route obtains the general of each path member of random hit
Rate;
Probability according to described random hit each path member is grouped according to default grouping strategy, obtains
At least one member's group;Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group,
The probability of each path member in random hit member's group is identical;
Set up corresponding relation between described path member and described member's group, obtain multiple index table;
Described multiple index table is sent to turning dough leavening device;Wherein, multiple index table is used for so that forwarding face
Device obtains the routing information that weighting multipath forwards.
In such scheme, the described weight correspondence according to each path member under same route obtains random life
In the probability of each path member, including:
The weight of all path members under same route is sued for peace, as denominator;
Using the weight of described each path member as molecule, acquire the random probability hitting each path member.
In such scheme, described basis hits the probability of each path member at random according to default grouping strategy
It is grouped, obtains at least one member's group, including:
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meet P=mN, wherein, when m is positive integer, m the member's group corresponding to this path member is set;
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meeting P=nN+p1, wherein, n is natural number, when remainder p1 is less than N, arranges n corresponding to this road
Member's group of footpath member, and additionally set for the path member that remainder summation is N according to the default rule that arranges
The person's of being set to group.
In such scheme, described to arrange rule extra for the path member that remainder summation is N according to default
Member's group is set, including:
Identical for remainder and that remainder summation is N path member is arranged member's group;And,
In the path member that remainder is different and remainder summation is N, more than the path member that remainder is bigger
The path member that remainder is bigger is carried out multiple divided by the quotient obtained by the remainder of the path member of remainder minimum by number
System, and the minimum path member of path member and remainder after replicating arranges member's group.
In such scheme, described set up corresponding relation between path member and member's group, obtain multiple index
Table, specifically includes:
All member's groups are summarized as member's group table;
All path members are summarized as membership table;
The corresponding pass that included path member sets up between path member and member's group is organized according to each member
System, and set up the concordance list between member's group table and membership table.
Second aspect, embodiments provides a kind of route control method weighting multipath WCMP,
Described method includes:
Receive the multiple index table that chain of command sends;Wherein, described multiple index table includes member Zu Biaohe road
Footpath membership table, wherein, described member's group table includes that at least one member organizes entry, and each member organizes entry
At least one path member in respective path membership table;And hit each member at random and organize the probability N phase of entry
With;And after hit member organizes entry, the described member of random hit organizes each path member's corresponding to entry
Probability is identical;
After message table of query and routing, according to the forwarding information of described multiple index table acquisition approach member.
In such scheme, the described forwarding information according to multiple index table acquisition approach member, including:
After inquiring about described routing table according to described message, obtain the pointer of member's group table in described multiple index table
ptr;
Random with the pointer ptr that the member of described acquisition organizes table according to the random Harsh factor that hash module produces
The index member obtained in described member's group table organizes entry, and obtains described member and organize entry and become in described path
In member's table, corresponding path member indexes plot base_idx and path membership count;
Entry institute in the membership table of path is organized right by member described in the random Harsh factor pair that hash module produces
The path membership answered carries out modulo operation, it is thus achieved that random offsets offset relatively;
Described relative skew offset is organized, plus described member, the path that entry is corresponding in the membership table of path
Member indexes plot base_idx, the path member index obtained in described multiple index table in the membership table of path,
And the forwarding information obtaining described path member is indexed according to described path member.
The third aspect, embodiments provides a kind of chain of command device, described chain of command device, including:
Acquiring unit, grouped element, set up unit and transmitting element, wherein,
Described acquiring unit, obtains random life for the weight correspondence according to each path member under same route
In the probability of each path member;
Described grouped element, is used for the probability according to described random hit each path member according to default packet
Strategy is grouped, and obtains at least one member's group;Wherein, the probability N that random each member of hit organizes is identical;
And after hit member's group, the probability of each path member in random hit member's group is identical;
Described set up unit, be used for setting up corresponding relation between described path member and described member's group, obtain
Multiple index table;
Described transmitting element, turns dough leavening device described in being sent extremely by described multiple index table;Wherein, many
Level concordance list is for making to turn the routing information of dough leavening device acquisition weighting multipath forwarding.
In such scheme, described acquiring unit, it is used for:
The weight of all path members under same route is sued for peace, as denominator;And,
Using the weight of described each path member as molecule, acquire the random probability hitting each path member.
In such scheme, described grouped element, it is used for:
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meet P=mN, wherein, when m is positive integer, m the member's group corresponding to this path member is set;
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meeting P=nN+p1, wherein, n is natural number, when remainder p1 is less than N, arranges n corresponding to this road
Member's group of footpath member, and additionally set for the path member that remainder summation is N according to the default rule that arranges
The person's of being set to group.
In such scheme, described grouped element, it is used for:
Identical for remainder and that remainder summation is N path member is arranged member's group;And,
In the path member that remainder is different and remainder summation is N, more than the path member that remainder is bigger
The path member that remainder is bigger is carried out multiple divided by the quotient obtained by the remainder of the path member of remainder minimum by number
System, and the minimum path member of path member and remainder after replicating arranges member's group.
In such scheme, described set up unit, be used for:
All member's groups are summarized as member's group table;And,
All path members are summarized as membership table;And,
The corresponding pass that included path member sets up between path member and member's group is organized according to each member
System, and set up the concordance list between member's group table and membership table.
Fourth aspect, embodiments provides one and turns dough leavening device, described in turn dough leavening device, including:
Receive unit and inquire about acquiring unit, wherein,
Described reception unit, for receiving the multiple index table that chain of command sends;Wherein, described multiple index
Table includes member's group table and path membership table, and wherein, described member's group table includes that at least one member organizes bar
Mesh, each member organizes at least one path member in entry respective path membership table;And hit each one-tenth at random
The probability N of member's group entry is identical;And after hit member organizes entry, the described member of random hit organizes entry institute
The probability of corresponding each path member is identical;
Described inquiry acquiring unit, after according to message table of query and routing, obtains according to described multiple index table
Take the forwarding information of path member.
In such scheme, described inquiry acquiring unit, specifically for:
After inquiring about described routing table according to described message, obtain the pointer of member's group table in described multiple index table
ptr;And,
Random with the pointer ptr that the member of described acquisition organizes table according to the random Harsh factor that hash module produces
The index member obtained in described member's group table organizes entry, and obtains described member and organize entry and become in described path
In member's table, corresponding path member indexes plot base_idx and path membership count;And,
Entry institute in the membership table of path is organized right by member described in the random Harsh factor pair that hash module produces
The path membership answered carries out modulo operation, it is thus achieved that random offsets offset relatively;And,
Described relative skew offset is organized, plus described member, the path that entry is corresponding in the membership table of path
Member indexes plot base_idx, the path member index obtained in described multiple index table in the membership table of path,
And the forwarding information obtaining described path member is indexed according to described path member.
5th aspect, embodiments provides a kind of route control system weighting multipath WCMP,
Described system includes: chain of command device and turn dough leavening device, wherein,
Described chain of command device, obtains random for the weight correspondence according to each path member under same route
Hit the probability of each path member;And,
Probability according to described random hit each path member is grouped according to default grouping strategy, obtains
At least one member's group;Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group,
The probability of each path member in random hit member's group is identical;And,
Set up corresponding relation between described path member and described member's group, obtain multiple index table;And,
Dough leavening device is turned described in being sent by described multiple index table extremely;Wherein, multiple index table is used for so that turning
Dough leavening device obtains the routing information that weighting multipath forwards;
Described turn dough leavening device, for receiving the multiple index table that described chain of command device sends;Wherein, institute
Stating multiple index table and include member's group table and path membership table, wherein, described member's group table includes at least one
Individual member organizes entry, and each member organizes at least one path member in entry respective path membership table;And with
The probability N that the machine each member of hit organizes entry is identical;And after hit member organizes entry, the described one-tenth of random hit
The probability of member's group each path member corresponding to entry is identical;And,
After message table of query and routing, according to the forwarding information of described multiple index table acquisition approach member.
Embodiments provide the route control method of a kind of WCMP, device and system, utilize multistage
The weights of the multiple path members under identical route are stated by the means mapped by conditional probability, from
And make the entry number of list item in membership table identical with the number of path member such that it is able to reduce and realize
During WCMP, the consumption of list item storage resource, saves chip-stored space.
Accompanying drawing explanation
Fig. 1 is the implementation method structural representation of WCMP in prior art;
Fig. 2 is the membership table schematic diagram realizing WCMP in prior art;
The route control method schematic flow sheet of a kind of WCMP that Fig. 3 provides for the embodiment of the present invention;
A kind of multiple index that Fig. 4 provides for the embodiment of the present invention represents intention;
The route control method schematic flow sheet of the another kind of WCMP that Fig. 5 provides for the embodiment of the present invention;
The stream of the forwarding information according to multiple index table acquisition approach member that Fig. 6 provides for the embodiment of the present invention
Journey schematic diagram;
A kind of chain of command apparatus structure schematic diagram that Fig. 7 provides for the embodiment of the present invention;
A kind of forwarding face apparatus structure schematic diagram that Fig. 8 provides for the embodiment of the present invention;
The structural representation of the route control system of a kind of WCMP that Fig. 9 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by.
During the realization of WCMP, due to each path member under same route weight all can by with
Machine hits the probability of each path member and states, and therefore, the basic thought of the embodiment of the present invention is: pass through
The mode of multistage-mapping states the probability hitting each path member at random the form of conditional probability as, so that
Obtain the list item number of entries in membership table identical with the number of path member.
Based on above-mentioned basic thought, see Fig. 3, it illustrates a kind of WCMP that the embodiment of the present invention provides
Route control method, the method can apply to for generating the chain of command device of forward table in the network equipment,
The method may include that
S301: obtain each path member of random hit according to the weight correspondence of each path member under same route
Probability;
Exemplarily, the process that realizes of S301 is specifically as follows:
The weight of all path members under same route is sued for peace, as denominator;And each path is become
The weight of member just can be hit the probability of each path member at random as molecule.
As in figure 2 it is shown, corresponding 8 the path members of route A, weight proportion is 1:1:1:1:2:2:4:4, then,
The weight summation of all path members can obtain 1+1+1+1+2+2+4+4=16, and this result is made
For denominator;Using the weight of each path member as molecule, thus hit the probability of each path member at random
Being followed successively by: member 1:1/16, member 2:1/16, member 3:1/16, member 4:1/16, member 5:
2/16, member 6:2/16, member 7:4/16, member 8:4/16.
S302: be grouped according to default grouping strategy according to the random probability hitting each path member,
To at least one member's group;
Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group, hit at random
The probability of each path member in member's group is identical;
Specifically, the probability P of random hit either path member is it is to be understood that hitting this path member
Under conditions of the member's group of place, in member's group at member place, this path, random hit this path member's is general
Rate.Therefore, the computing formula of the random probability P hitting each path member is P=N × X, and wherein, P is
The random probability hitting a path member, N is the probability hitting member place, this path member group at random,
X is under conditions of hit member place, this path member's group, in member's group at member place, this path with
Machine hits the probability of this path member.
Specifically, identical in order to realize hitting at random the probability N of each member group;And after hit member's group,
Probability this technical characteristic identical of each path member in random hit member's group, hits each road according to random
The probability of footpath member is grouped according to default grouping strategy, obtains at least one member's group, may include that
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meet P=mN, wherein, when m is positive integer, m the member's group corresponding to this path member is set;
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meeting P=nN+p1, wherein, n is natural number, when remainder p1 is less than N, arranges n corresponding to this road
Member's group of footpath member, and additionally set for the path member that remainder summation is N according to the default rule that arranges
The person's of being set to group;
Further, according to the default rule that arranges, member is additionally set for the path member that remainder summation is N
Group, may include that
Identical for remainder and that remainder summation is N path member is arranged member's group;And,
In the path member that remainder is different and remainder summation is N, more than the path member that remainder is bigger
The path member that remainder is bigger is carried out multiple divided by the quotient obtained by the remainder of the path member of remainder minimum by number
System, and the minimum path member of path member and remainder after replicating arranges member's group.
Or as a example by 8 corresponding for the route A path members shown in Fig. 2, each path member of random hit
Probability can be decomposed into: member 1: Member 2: Member 3:
Member 4: Member 5: Member 6: Member 7:
Member 8:Owing to the random hit probability of 8 path members all can be decomposed intoWith other numbers
Product, therefore, it can these 8 path members are divided into four groups, random arbitrary group hit in these four groups
Probability N be
For member 1, member 2, member 3, member 4, respective remainder isAnd these four
The remainder sum of member isFor member 5 and member 6, respective remainder isAnd this two
The remainder sum of individual member isTherefore, it can be set to member 1, member 2, member 3, member 4
One member's group, is set to member's group by member 5 and member 6;
For member 7 and member 8, each it is satisfied byTherefore, respectively member 7 with become
Member 8 arranges member's group;
Thus, it is set to organize a by member 1, member 2, member 3, member 4;Member 5 and member 6 set
It is set to organize b;Member 7 is set to organize c;After member 8 is set to organize d, it is appreciated that in group a, becomes
The probability that member 1, member 2, member 3, member 4 are hit isIn group b, member 5 and member
6 probability being hit areIn group c, the probability that member 7 is hit is 1;In group d, member
8 probability being hit are 1, it is achieved thereby that the probability N hitting each member group at random is identical;And in hit
After member's group, the probability of each path member in random hit member's group is identical.
If it should be noted that the random hit probability of path member is respectivelyWhen, this
The remainder of three path members is also respectivelyAnd the remainder summation of these three path member is also
At this time, it may be necessary to by remainder bePath member replicate, and due toAccordingly, it would be desirable to will
Remainder isPath member copy as two path members so that and two paths after replicating become
Member with two other remainder isPath member be set to member's group.It is to be appreciated that due to remainder
Usually arranging member before organizes remaining path member for different and path member that remainder summation is N, because of
This, need the path number of members replicated few, also do not result in all authority described in prior art
The path member of weight all carries out situation about replicating, thus also can reduce the consumption phenomenon of list item storage resource, joint
Save chip-stored space.
During also, it should be noted be not even number for the denominator of the fraction in lowest term form of membership probability,
In order to reach more preferable compression effectiveness, in addition it is also necessary to weight is finely adjusted by chain of command, now fine setting weight is drawn
Error need determine according to practical situations
S303: set up corresponding relation between path member and member's group, obtains multiple index table;
Exemplarily, set up corresponding relation between path member and member's group, obtain multiple index table, specifically
May include that
All member's groups are summarized as member's group table;
All path members are summarized as membership table;
The corresponding pass that included path member sets up between path member and member's group is organized according to each member
System, and set up the concordance list between member's group table and membership table.
Specifically, or as a example by 8 corresponding for the route A path members shown in Fig. 2, member 1, one-tenth
Between member 2, member 3, member 4 and group a, between member 5 and member 6 and group b, member 7 and group c
Between, member 8 and group d between be respectively provided with corresponding relation;Set up for group a, group b, group c, group d subsequently
Member organizes table, such that it is able to obtain corresponding relation as shown in Figure 4.
It is to be appreciated that in multiple index table, the list item quantity of membership table and the path membership of WCMP
Unanimously.
S304: multiple index table is sent to turning dough leavening device;
Wherein, multiple index table is for making to turn the routing information of dough leavening device acquisition weighting multipath forwarding.
The present embodiment is converted into conditional probability to chain of command according to the weight of each path member under same route
Set up multiple index table so that the list item number of the membership table in multiple index table and path member
Number is identical, thus avoids prior art owing to meeting, by the way of repeating filling, the path that weight is bigger
The consumption phenomenon of the list item storage resource that the mode of member is caused, saves chip-stored space.
Based on the technology design that previous embodiment is identical, when turning dough leavening device after receiving multiple index table,
Just can carry out the inquiry of forward-path according to multiple index table, see Fig. 5, it illustrates the present invention and implement
The route control method of the another kind of WCMP that example provides, the method can apply in the network equipment for root
Carry out the dough leavening device that turns forwarded according to forward table, the method may include that
S501: receive the multiple index table that chain of command sends;
Wherein, this multiple index table includes member's group table and path membership table, and wherein, member's group table includes
At least one member organizes entry, and each member organizes at least one path member in entry respective path membership table;
And hitting each member at random, to organize the probability N of entry identical;And after hit member organizes entry, hit at random
The probability that this member organizes each path member corresponding to entry is identical;
It is to be appreciated that the generation process previous embodiment of multiple index table has a detailed description, at this not
Repeat again.
S502: after message table of query and routing, according to the forwarding information of multiple index table acquisition approach member;
It is to be appreciated that due to list item number of entries and WCMP path in path membership table in multiple index table
The number of member is consistent so that turn dough leavening device and the list item of path member preserves consumed storage money
Source prior art to be much smaller than, therefore, reduces the consumption phenomenon of list item storage resource, saves chip-stored
Space.
Specifically, according to the forwarding information of multiple index table acquisition approach member, can wrap as shown in Figure 6
Include:
After certain message table of query and routing, obtain member in multiple index table and organize the pointer ptr of table;
The random Harsh factor produced according to hash module and the member of acquisition organize the pointer ptr random index of table
Obtain the member in member's group table and organize entry, and obtain member and organize the road that entry is corresponding in the membership table of path
Footpath member indexes plot base_idx and path membership count;
It is corresponding in the membership table of path that the random Harsh factor pair member produced by hash module organizes entry
Path membership carries out modulo operation, it is thus achieved that random offsets offset relatively;
Described relative skew offset is organized, plus member, the path member that entry is corresponding in the membership table of path
Index plot base_idx, the path member obtained in multiple index table in the membership table of path indexes, and according to
Path member indexes the forwarding information of acquisition approach member.
Preferably, in actual applications, a high position for the random Harsh factor that hash module can be produced
Hash_index_Msb is for obtaining in member's group table with the pointer ptr random index of the member's group table obtained
Member organizes entry;The high-order Hash_index_Lsb of the random Harsh factor produced by hash module is used for one-tenth
Member's group entry path membership count corresponding in the membership table of path carries out modulo operation.The present invention
This is not repeated by embodiment.
The present embodiment to forward face according to the forwarding information of multiple index table acquisition approach member in previous embodiment
It is described, during so that the face of forwarding preserves multiple index table, the entry number in the membership table of path and road
Footpath number of members is consistent, it is to avoid forwards the consumption phenomenon of the storage resource in face, saves chip-stored space.
Based on the technology design that previous embodiment is identical, seeing Fig. 7, it illustrates the embodiment of the present invention provides
A kind of chain of command device 70, described chain of command device 70, including: acquiring unit 701, grouped element 702,
Set up unit 703 and transmitting element 704, wherein,
Acquiring unit 701, obtains random life for the weight correspondence according to each path member under same route
In the probability of each path member;
Grouped element 702, for according to hitting the probability of each path member at random according to default grouping strategy
It is grouped, obtains at least one member's group;Wherein, the probability N that random each member of hit organizes is identical;And
After hit member's group, the probability of each path member in random hit member's group is identical;
Set up unit 703, be used for setting up corresponding relation between path member and member's group, obtain multiple index
Table;
Transmitting element 704, for sending multiple index table to turning dough leavening device;Wherein, multiple index table
For making to turn the routing information of dough leavening device acquisition weighting multipath forwarding.
Exemplarily, acquiring unit 701, specifically for:
The weight of all path members under same route is sued for peace, as denominator;And,
Using the weight of each path member as molecule, acquire the random probability hitting each path member.
Exemplarily, grouped element 702, specifically for:
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meet P=mN, wherein, when m is positive integer, m the member's group corresponding to this path member is set;
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meeting P=nN+p1, wherein, n is natural number, when remainder p1 is less than N, arranges n corresponding to this road
Member's group of footpath member, and additionally set for the path member that remainder summation is N according to the default rule that arranges
The person's of being set to group.
Further, grouped element 702, specifically for:
Identical for remainder and that remainder summation is N path member is arranged member's group;And,
In the path member that remainder is different and remainder summation is N, more than the path member that remainder is bigger
The path member that remainder is bigger is carried out multiple divided by the quotient obtained by the remainder of the path member of remainder minimum by number
System, and the minimum path member of path member and remainder after replicating arranges member's group.
Exemplarily, set up unit 703, specifically for:
All member's groups are summarized as member's group table;And,
All path members are summarized as membership table;And,
The corresponding pass that included path member sets up between path member and member's group is organized according to each member
System, and set up the concordance list between member's group table and membership table.
The chain of command device 70 that the present embodiment provides, converts according to the weight of each path member under same route
Set up multiple index table for conditional probability so that the list item number of the membership table in multiple index table with
The number of path member is identical, thus avoids prior art owing to meeting power by the way of repeating filling
The consumption phenomenon of the list item storage resource that the mode of the path member that weight is bigger is caused, saves chip-stored
Space.
Based on the technology design that previous embodiment is identical, seeing Fig. 8, it illustrates the embodiment of the present invention provides
One turn dough leavening device 80, this turns dough leavening device 80, including: receive unit 801 and inquiry obtain single
Unit 802, wherein,
Receive unit 801, for receiving the multiple index table that chain of command sends;Wherein, multiple index table bag
Including member's group table and path membership table, wherein, member's group table includes that at least one member organizes entry, each
Member organizes at least one path member in entry respective path membership table;And hit each member at random and organize entry
Probability N identical;And after hit member organizes entry, random hit member organizes each path corresponding to entry
The probability of member is identical;
Inquiry acquiring unit 802, after according to message table of query and routing, obtains road according to multiple index table
The forwarding information of footpath member.
Exemplarily, inquire about acquiring unit 802, specifically for:
After message table of query and routing, obtain member in multiple index table and organize the pointer ptr of table;And
The random Harsh factor produced according to hash module and the member of acquisition organize the pointer ptr random index of table
Obtain the member in member's group table and organize entry, and obtain member and organize the road that entry is corresponding in the membership table of path
Footpath member indexes plot base_idx and path membership count;And,
It is corresponding in the membership table of path that the random Harsh factor pair member produced by hash module organizes entry
Path membership carries out modulo operation, it is thus achieved that random offsets offset relatively;And,
Organize, plus member, the path member index that entry is corresponding in the membership table of path by relatively offseting offset
Plot base_idx, the path member obtained in multiple index table in the membership table of path indexes, and according to path
Member indexes the forwarding information of acquisition approach member.
What the present embodiment provided turns dough leavening device 80, becomes according to multiple index table acquisition approach in previous embodiment
Member forwarding information so that forward face preserve multiple index table time, the entry number in the membership table of path with
Path number of members is consistent, it is to avoid forward the consumption phenomenon of the storage resource in face, saves chip-stored sky
Between.
Based on the technology design that previous embodiment is identical, seeing Fig. 9, it illustrates the embodiment of the present invention provides
The route control system 90 of a kind of WCMP, this system 90 includes: chain of command device 70 and the face of forwarding
Device 80, wherein,
Chain of command device 70, obtains random life for the weight correspondence according to each path member under same route
In the probability of each path member;And,
It is grouped according to default grouping strategy according to the random probability hitting each path member, obtains at least
One member's group;Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group, with
The probability of each path member in machine hit member's group is identical;And,
Set up corresponding relation between path member and member's group, obtain multiple index table;And,
Multiple index table is sent to turning dough leavening device 80;Wherein, multiple index table is used for so that forwarding face fills
Put the routing information that 80 acquisition weighting multipaths forward;
Turn dough leavening device 80, for receiving the multiple index table that chain of command device 70 sends;Wherein, multistage
Concordance list includes member's group table and path membership table, and wherein, member's group table includes that at least one member organizes bar
Mesh, each member organizes at least one path member in entry respective path membership table;And hit each one-tenth at random
The probability N of member's group entry is identical;And after hit member organizes entry, random hit member organizes corresponding to entry
The probability of each path member identical;And,
After message table of query and routing, according to the forwarding information of multiple index table acquisition approach member.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and
The form of the embodiment of hardware aspect.And, the present invention can use and wherein include calculating one or more
The computer-usable storage medium of machine usable program code (includes but not limited to disk memory and optical storage
Device etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention
Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or side
Flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or the knot of square frame
Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or
The processor of other programmable data processing device is to produce a machine so that by computer or other can
The instruction that the processor of programming data processing equipment performs produces for realizing in one flow process or multiple of flow chart
The device of the function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device
In the computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream
The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.
Claims (15)
1. the route control method weighting multipath WCMP, it is characterised in that described method includes:
Weight correspondence according to each path member under same route obtains the general of each path member of random hit
Rate;
Probability according to described random hit each path member is grouped according to default grouping strategy, obtains
At least one member's group;Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group,
The probability of each path member in random hit member's group is identical;
Set up corresponding relation between described path member and described member's group, obtain multiple index table;
Described multiple index table is sent to turning dough leavening device;Wherein, multiple index table is used for so that forwarding face
Device obtains the routing information that weighting multipath forwards.
Method the most according to claim 1, it is characterised in that described according to same route Xia Ge road
The weight correspondence of footpath member obtains the random probability hitting each path member, including:
The weight of all path members under same route is sued for peace, as denominator;
Using the weight of described each path member as molecule, acquire the random probability hitting each path member.
Method the most according to claim 1, it is characterised in that described basis hits each path at random
The probability of member is grouped according to default grouping strategy, obtains at least one member's group, including:
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meet P=mN, wherein, when m is positive integer, m the member's group corresponding to this path member is set;
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meeting P=nN+p1, wherein, n is natural number, when remainder p1 is less than N, arranges n corresponding to this road
Member's group of footpath member, and additionally set for the path member that remainder summation is N according to the default rule that arranges
The person's of being set to group.
Method the most according to claim 3, it is characterised in that described according to the default rule that arranges be
Remainder summation is that the path member of N additionally arranges member's group, including:
Identical for remainder and that remainder summation is N path member is arranged member's group;And,
In the path member that remainder is different and remainder summation is N, more than the path member that remainder is bigger
The path member that remainder is bigger is carried out multiple divided by the quotient obtained by the remainder of the path member of remainder minimum by number
System, and the minimum path member of path member and remainder after replicating arranges member's group.
Method the most according to claim 1, it is characterised in that described set up path member and member's group
Between corresponding relation, obtain multiple index table, specifically include:
All member's groups are summarized as member's group table;
All path members are summarized as membership table;
The corresponding pass that included path member sets up between path member and member's group is organized according to each member
System, and set up the concordance list between member's group table and membership table.
6. the route control method weighting multipath WCMP, it is characterised in that described method includes:
Receive the multiple index table that chain of command sends;Wherein, described multiple index table includes member Zu Biaohe road
Footpath membership table, wherein, described member's group table includes that at least one member organizes entry, and each member organizes entry
At least one path member in respective path membership table;And hit each member at random and organize the probability N phase of entry
With;And after hit member organizes entry, the described member of random hit organizes each path member's corresponding to entry
Probability is identical;
After message table of query and routing, according to the forwarding information of described multiple index table acquisition approach member.
Method the most according to claim 6, it is characterised in that described according to multiple index table acquisition road
The forwarding information of footpath member, including:
After inquiring about described routing table according to described message, obtain the pointer of member's group table in described multiple index table
ptr;
Random with the pointer ptr that the member of described acquisition organizes table according to the random Harsh factor that hash module produces
The index member obtained in described member's group table organizes entry, and obtains described member and organize entry and become in described path
In member's table, corresponding path member indexes plot base_idx and path membership count;
Entry institute in the membership table of path is organized right by member described in the random Harsh factor pair that hash module produces
The path membership answered carries out modulo operation, it is thus achieved that random offsets offset relatively;
Described relative skew offset is organized, plus described member, the path that entry is corresponding in the membership table of path
Member indexes plot base_idx, the path member index obtained in described multiple index table in the membership table of path,
And the forwarding information obtaining described path member is indexed according to described path member.
8. a chain of command device, it is characterised in that described chain of command device, including: acquiring unit, point
Organize unit, set up unit and transmitting element, wherein,
Described acquiring unit, obtains random life for the weight correspondence according to each path member under same route
In the probability of each path member;
Described grouped element, is used for the probability according to described random hit each path member according to default packet
Strategy is grouped, and obtains at least one member's group;Wherein, the probability N that random each member of hit organizes is identical;
And after hit member's group, the probability of each path member in random hit member's group is identical;
Described set up unit, be used for setting up corresponding relation between described path member and described member's group, obtain
Multiple index table;
Described transmitting element, turns dough leavening device described in being sent extremely by described multiple index table;Wherein, many
Level concordance list is for making to turn the routing information of dough leavening device acquisition weighting multipath forwarding.
Chain of command device the most according to claim 8, it is characterised in that described acquiring unit, is used for:
The weight of all path members under same route is sued for peace, as denominator;And,
Using the weight of described each path member as molecule, acquire the random probability hitting each path member.
Chain of command device the most according to claim 8, it is characterised in that described grouped element, uses
In:
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meet P=mN, wherein, when m is positive integer, m the member's group corresponding to this path member is set;
Relation between the probability P and the random probability N hitting each member group of random hit one path member
Meeting P=nN+p1, wherein, n is natural number, when remainder p1 is less than N, arranges n corresponding to this road
Member's group of footpath member, and additionally set for the path member that remainder summation is N according to the default rule that arranges
The person's of being set to group.
11. chain of command devices according to claim 10, it is characterised in that described grouped element, use
In:
Identical for remainder and that remainder summation is N path member is arranged member's group;And,
In the path member that remainder is different and remainder summation is N, more than the path member that remainder is bigger
The path member that remainder is bigger is carried out multiple divided by the quotient obtained by the remainder of the path member of remainder minimum by number
System, and the minimum path member of path member and remainder after replicating arranges member's group.
12. chain of command devices according to claim 8, it is characterised in that described unit of setting up, use
In:
All member's groups are summarized as member's group table;And,
All path members are summarized as membership table;And,
The corresponding pass that included path member sets up between path member and member's group is organized according to each member
System, and set up the concordance list between member's group table and membership table.
13. 1 kinds turn dough leavening device, it is characterised in that described in turn dough leavening device, including: receive unit and
Inquiry acquiring unit, wherein,
Described reception unit, for receiving the multiple index table that chain of command sends;Wherein, described multiple index
Table includes member's group table and path membership table, and wherein, described member's group table includes that at least one member organizes bar
Mesh, each member organizes at least one path member in entry respective path membership table;And hit each one-tenth at random
The probability N of member's group entry is identical;And after hit member organizes entry, the described member of random hit organizes entry institute
The probability of corresponding each path member is identical;
Described inquiry acquiring unit, after according to message table of query and routing, obtains according to described multiple index table
Take the forwarding information of path member.
14. according to claim 13 turn dough leavening device, it is characterised in that described inquiry acquiring unit,
Specifically for:
After inquiring about described routing table according to described message, obtain the pointer of member's group table in described multiple index table
ptr;And,
Random with the pointer ptr that the member of described acquisition organizes table according to the random Harsh factor that hash module produces
The index member obtained in described member's group table organizes entry, and obtains described member and organize entry and become in described path
In member's table, corresponding path member indexes plot base_idx and path membership count;And,
Entry institute in the membership table of path is organized right by member described in the random Harsh factor pair that hash module produces
The path membership answered carries out modulo operation, it is thus achieved that random offsets offset relatively;And,
Described relative skew offset is organized, plus described member, the path that entry is corresponding in the membership table of path
Member indexes plot base_idx, the path member index obtained in described multiple index table in the membership table of path,
And the forwarding information obtaining described path member is indexed according to described path member.
15. 1 kinds of route control systems weighting multipath WCMP, it is characterised in that described system includes:
Chain of command device and turn dough leavening device, wherein,
Described chain of command device, obtains random for the weight correspondence according to each path member under same route
Hit the probability of each path member;And,
Probability according to described random hit each path member is grouped according to default grouping strategy, obtains
At least one member's group;Wherein, the probability N that random each member of hit organizes is identical;And after hit member's group,
The probability of each path member in random hit member's group is identical;And,
Set up corresponding relation between described path member and described member's group, obtain multiple index table;And,
Dough leavening device is turned described in being sent by described multiple index table extremely;Wherein, multiple index table is used for so that turning
Dough leavening device obtains the routing information that weighting multipath forwards;
Described turn dough leavening device, for receiving the multiple index table that described chain of command device sends;Wherein, institute
Stating multiple index table and include member's group table and path membership table, wherein, described member's group table includes at least one
Individual member organizes entry, and each member organizes at least one path member in entry respective path membership table;And with
The probability N that the machine each member of hit organizes entry is identical;And after hit member organizes entry, the described one-tenth of random hit
The probability of member's group each path member corresponding to entry is identical;And,
After message table of query and routing, according to the forwarding information of described multiple index table acquisition approach member.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510219341.2A CN106209635B (en) | 2015-04-30 | 2015-04-30 | It is a kind of to weight the route control method of multipath WCMP, device and system |
PCT/CN2015/094738 WO2016173241A1 (en) | 2015-04-30 | 2015-11-16 | Routing control method, apparatus and system, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510219341.2A CN106209635B (en) | 2015-04-30 | 2015-04-30 | It is a kind of to weight the route control method of multipath WCMP, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209635A true CN106209635A (en) | 2016-12-07 |
CN106209635B CN106209635B (en) | 2019-06-11 |
Family
ID=57198913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510219341.2A Active CN106209635B (en) | 2015-04-30 | 2015-04-30 | It is a kind of to weight the route control method of multipath WCMP, device and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106209635B (en) |
WO (1) | WO2016173241A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505148A (en) * | 2019-07-24 | 2019-11-26 | 烽火通信科技股份有限公司 | Realize the method and system of weighting multipath |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753455A (en) * | 2009-12-15 | 2010-06-23 | 中兴通讯股份有限公司 | Retransmission method and device |
US8180725B1 (en) * | 2007-08-01 | 2012-05-15 | Google Inc. | Method and apparatus for selecting links to include in a probabilistic generative model for text |
CN103379042A (en) * | 2012-04-25 | 2013-10-30 | 丛林网络公司 | Path weighted equal-cost multipath |
CN103854072A (en) * | 2014-03-17 | 2014-06-11 | 湖南工学院 | Processing method and system for path selection |
US8982700B1 (en) * | 2012-01-27 | 2015-03-17 | Google Inc. | System and method for minimizing hardware resources for given performance using weighted cost multi-path flow distribution |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897564B (en) * | 2005-07-11 | 2010-04-14 | 中兴通讯股份有限公司 | Strategic routing matching method based on recursive-flow category algorithm |
CN101094179A (en) * | 2007-07-16 | 2007-12-26 | 中兴通讯股份有限公司 | Method and device for looking up route indexed in multiple stages |
-
2015
- 2015-04-30 CN CN201510219341.2A patent/CN106209635B/en active Active
- 2015-11-16 WO PCT/CN2015/094738 patent/WO2016173241A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8180725B1 (en) * | 2007-08-01 | 2012-05-15 | Google Inc. | Method and apparatus for selecting links to include in a probabilistic generative model for text |
CN101753455A (en) * | 2009-12-15 | 2010-06-23 | 中兴通讯股份有限公司 | Retransmission method and device |
US8982700B1 (en) * | 2012-01-27 | 2015-03-17 | Google Inc. | System and method for minimizing hardware resources for given performance using weighted cost multi-path flow distribution |
CN103379042A (en) * | 2012-04-25 | 2013-10-30 | 丛林网络公司 | Path weighted equal-cost multipath |
CN103854072A (en) * | 2014-03-17 | 2014-06-11 | 湖南工学院 | Processing method and system for path selection |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505148A (en) * | 2019-07-24 | 2019-11-26 | 烽火通信科技股份有限公司 | Realize the method and system of weighting multipath |
Also Published As
Publication number | Publication date |
---|---|
CN106209635B (en) | 2019-06-11 |
WO2016173241A1 (en) | 2016-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wu et al. | Optimal variable-weight optical orthogonal codes via difference packings | |
CN102546089B (en) | Method and device for implementing cycle redundancy check (CRC) code | |
CN101753455B (en) | Forwarding method and device thereof | |
CN105871514A (en) | Data transmission method and data transmission device | |
CN108900283B (en) | Transmit the method and communication equipment of information | |
CN201153259Y (en) | Parallel data cyclic redundancy check apparatus and bidirectional data transmission system | |
CN103873181B (en) | Pseudorandom sequence parallel generation method in LTE system | |
Wang et al. | A gradual noisy chaotic neural network for solving the broadcast scheduling problem in packet radio networks | |
CN103178888A (en) | Method and device for sending feedback of channel state information | |
CN101795175B (en) | Data verifying method and device | |
CN103259626A (en) | Channel coding method of variable length information using block code | |
CN109842652A (en) | A kind of method for uploading of file, terminal, Cloud Server and computer storage medium | |
CN104580017B (en) | BlueDrama distribution method and system based on RSS | |
CN114244470B (en) | Channel State Information (CSI) encoding method and device, storage medium and processor | |
CN106209635A (en) | A kind of weight the route control method of multipath WCMP, device and system | |
CN108768481B (en) | The channel information feedback method and device of aerial array | |
CN104378426B (en) | A kind of load-balancing method for real time information dissemination system | |
CN107291746A (en) | A kind of method and apparatus for storing and reading data | |
JP4566513B2 (en) | Method and apparatus for generating pseudo-random sequences | |
CN106470445A (en) | Buffer status report generation method and device | |
CN105245454A (en) | Flow forwarding method and flow forwarding device for switching system | |
CN108243113B (en) | Random load balancing method and device | |
CN106254282A (en) | The implementation method of link aggregation and device | |
CN106354581B (en) | A kind of cyclic redundancy check method and multi-core processor | |
CN104104963B (en) | A kind of vector candidate's list generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |