CN106209635B - It is a kind of to weight the route control method of multipath WCMP, device and system - Google Patents

It is a kind of to weight the route control method of multipath WCMP, device and system Download PDF

Info

Publication number
CN106209635B
CN106209635B CN201510219341.2A CN201510219341A CN106209635B CN 106209635 B CN106209635 B CN 106209635B CN 201510219341 A CN201510219341 A CN 201510219341A CN 106209635 B CN106209635 B CN 106209635B
Authority
CN
China
Prior art keywords
path
group
random
probability
hitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510219341.2A
Other languages
Chinese (zh)
Other versions
CN106209635A (en
Inventor
朱智华
安康
丁金凤
王春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201510219341.2A priority Critical patent/CN106209635B/en
Priority to PCT/CN2015/094738 priority patent/WO2016173241A1/en
Publication of CN106209635A publication Critical patent/CN106209635A/en
Application granted granted Critical
Publication of CN106209635B publication Critical patent/CN106209635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses the route control method of WCMP a kind of, device and system, this method may include: to hit the probability of each path member at random according to the corresponding acquisition of the weight of each path member under same routing;It is grouped according to the probability for hitting each path member at random according to preset grouping strategy, obtains at least one member's group;Wherein, the probability N for hitting each member's group at random is identical;And after hitting member's group, the random probability for hitting each path member in member's group is identical;Corresponding relationship between the path member and member's group is established, multiple index table is obtained;The multiple index table is sent to forwarding surface device;Wherein, multiple index table is used for so that forwarding surface device obtains the routing information of weighting multipath forwarding.

Description

It is a kind of to weight the route control method of multipath WCMP, device and system
Technical field
The present invention relates to network communication technology more particularly to a kind of weighting multipath (WCMP, Weighted Cost Multipath route control method), device and system.
Background technique
WCMP very flexibly can transmit flow according to weight proportion on the link, and the network equipment can use WCMP will The flow for reaching same purpose network is shared different chain roads by weight proportion and is forwarded.When the weight of different links When identical, it is properly termed as equal cost multipath (ECMP, Equal-Cost Multipath Routing) at this time, 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 shown in Figure 1, include that two parts describe: 1, forwarding surface table Item design;2, control plane is designed with table.
For the design of forwarding surface list item, the form of level-one index is generallyd use, i.e. table of query and routing obtains the routing Under multipath member's group information, multipath member's group information may include the index plot of multipath member (member.base_idx) and multipath membership (count), then by hash module to obtain hash index (random value) right Multipath membership carries out modulo operation, obtains the corresponding random phase of each path member in multipath member group information To offset (member.offset), along with the index plot (member.base_idx) of multipath member, it can be obtained and appoint The forwarding information in one member path.
Under the list item design of this forwarding surface, control plane is designed with table to realize that the process of WCMP is as follows: if certain routing packet Including the forwarding information of N number of path member, then upper layer software (applications) can summarize the forwarding information of N number of path member to obtain membership table, from The member that path member in the correspondence table is distributed in membership table indexes plot, is continuously written into N number of road by member's index plot Diameter member entries, the weight between different path members can be repeated in the membership table according to member entries the number of filling come It embodies, according to the bigger path member of weight, then the probability for hitting path member at random bigger principle realizes WCMP. It is to be appreciated that then realizing ECMP when N number of path member entries are only filled with one time in membership table.As shown in Fig. 2, false If certain routes corresponding 8 path members, weight proportion 1:1:1:1:2:2:4:4, then according to the weight ratio of each path member Example, hits the probability of each path member successively are as follows: member 1:1/16, member 2:1/16, member 3:1/16, member 4:1/ at random 16, member 5:2/16, member 6:2/16, member 7:4/16, member 8:4/16.At this point it is possible to by member 5 and member 6 in member It is filled in table 2 times, member 7 and member 8 are filled with 4 times in membership table.By way of repeating to fill, it is bigger to meet weight Path member, then the principle that the probability for hitting path member at random is bigger.
Above-mentioned processing mode will appear the phenomenon that certain path members can occupy multiple member's table clauses in membership table.It is right For WCMP, included entry number is significantly larger than actual path membership, in Fig. 2, membership in membership table For 8, the entry number of the list item in membership table is 16.Since the list item width of each entry of membership table is wider, Cause membership table resource consumption very big, and in the processor chips of the network equipment, most precious resources is exactly list item storage resource, because This is required to consume list item storage resource in large quantities at present for the realization of WCMP.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide the route control method of WCMP a kind of, device and System can reduce the consumption of list item storage resource when realizing WCMP, save chip memory space.
The technical scheme of the present invention is realized as follows:
In a first aspect, the embodiment of the invention provides a kind of route control method for weighting multipath WCMP, the method Include:
Hit the probability of each path member at random according to the corresponding acquisition of the weight of each path member under same routing;
It is grouped according to the probability for hitting each path member at random according to preset grouping strategy, obtains at least one A member's group;Wherein, the probability N for hitting each member's group at random is identical;It is random to hit in member's group and after hitting member's group The probability of each path member is identical;
Corresponding relationship between the path member and member's group is established, multiple index table is obtained;
The multiple index table is sent to forwarding surface device;Wherein, multiple index table is used for so that forwarding surface device obtains Take the routing information of weighting multipath forwarding.
In the above scheme, described that each road is hit according to corresponding obtain of the weight of each path member under same routing at random The probability of diameter member, comprising:
The weight of all path members under same routing is summed, as denominator;
Using the weight of each path member as molecule, the probability for hitting each path member at random is acquired.
In the above scheme, the probability that the basis hits each path member at random divides according to preset grouping strategy Group obtains at least one member's group, comprising:
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= MN, wherein when m is positive integer, setting m correspond to member's group of path member;
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= NN+p1, wherein n is natural number, and when remainder p1 is less than N, setting n correspond to member's group of path member, and according to pre- If setting rule be that member's group is additionally arranged in the path member that remainder summation is N.
In the above scheme, described according to preset setting rule is that the path member that remainder summation is N is additionally arranged to Member's group, comprising:
Member's group is arranged in the path member that remainder is identical and remainder summation is N;And
In remainder, different and remainder summation is in the path member of N, according to the biggish path member of remainder remainder divided by The obtained quotient of remainder of the smallest path member of remainder replicates the biggish path member of remainder, and will be after duplication Member's group is arranged in path member and the smallest path member of remainder.
In the above scheme, described to establish corresponding relationship between path member and member's group, multiple index table is obtained, specifically Include:
All member's groups are summarized as member's group table;
All path members are summarized as membership table;
According to each member group, included path member establishes the corresponding relationship between path member and member's group, and Establish the concordance list between member's group table and membership table.
Second aspect, the embodiment of the invention provides a kind of route control method for weighting multipath WCMP, the methods Include:
Receive the multiple index table that control plane is sent;Wherein, the multiple index table includes member's group table and path member Table, wherein it includes that at least one member organizes entry that the member, which organizes in table, and each member organizes in entry respective path membership table extremely A few path member;And the probability N for hitting each member's group entry at random is identical;And after hit member organizes entry, at random The probability for hitting each path member corresponding to member's group entry is identical;
After message table of query and routing, according to the forwarding information of the multiple index table to acquisite approachs member.
In the above scheme, the forwarding information according to multiple index table to acquisite approachs member, comprising:
After inquiring the routing table according to the message, the pointer ptr of member's group table in the multiple index table is obtained;
The pointer ptr random index of the random Harsh factor and member's group table of the acquisition that are generated according to hash module obtains The member in table is organized to the member and organizes entry, and is obtained the member and organized entry road corresponding in the path membership table Diameter member indexes plot base_idx and path membership count;
It is corresponding in the membership table of path that member described in the random Harsh factor pair generated by hash module organizes entry Path membership carries out modulo operation, obtains random opposite offset offset;
The opposite offset offset is organized into entry path member corresponding in the membership table of path plus the member Plot base_idx is indexed, obtains the path member index in the multiple index table in the membership table of path, and according to the road Diameter member indexes the forwarding information for obtaining the path member.
The third aspect, the embodiment of the invention provides a kind of control plane device, the control plane device, comprising: obtain single Member, establishes unit and transmission unit at grouped element, wherein
The acquiring unit, for hitting each road at random according to corresponding obtain of the weight of each path member under same routing The probability of diameter member;
The grouped element, for according to the probability for hitting each path member at random according to preset grouping strategy into Row grouping, obtains at least one member's group;Wherein, the probability N for hitting each member's group at random is identical;And after hitting member's group, The probability of each path member in random hit member's group is identical;
It is described to establish unit, for establishing corresponding relationship between the path member and member's group, obtain multistage rope Draw table;
The transmission unit, for the multiple index table to be sent to the forwarding surface device;Wherein, multiple index table For making forwarding surface device obtain the routing information of weighting multipath forwarding.
In the above scheme, the acquiring unit, is used for:
The weight of all path members under same routing is summed, as denominator;And
Using the weight of each path member as molecule, the probability for hitting each path member at random is acquired.
In the above scheme, the grouped element, is used for:
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= MN, wherein when m is positive integer, setting m correspond to member's group of path member;
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= NN+p1, wherein n is natural number, and when remainder p1 is less than N, setting n correspond to member's group of path member, and according to pre- If setting rule be that member's group is additionally arranged in the path member that remainder summation is N.
In the above scheme, the grouped element, is used for:
Member's group is arranged in the path member that remainder is identical and remainder summation is N;And
In remainder, different and remainder summation is in the path member of N, according to the biggish path member of remainder remainder divided by The obtained quotient of remainder of the smallest path member of remainder replicates the biggish path member of remainder, and will be after duplication Member's group is arranged in path member and the smallest path member of remainder.
In the above scheme, described to establish unit, it is used for:
All member's groups are summarized as member's group table;And
All path members are summarized as membership table;And
According to each member group, included path member establishes the corresponding relationship between path member and member's group, and Establish the concordance list between member's group table and membership table.
Fourth aspect, the embodiment of the invention provides a kind of forwarding surface device, the forwarding surface device, comprising: receive single Member and inquiry acquiring unit, wherein
The receiving unit, for receiving the multiple index table of control plane transmission;Wherein, the multiple index table includes into Member's group table and path membership table, wherein it includes that at least one member organizes entry that the member, which organizes in table, and each member organizes entry pair Answer at least one path member in the membership table of path;And the probability N for hitting each member's group entry at random is identical;And hit at After member's group entry, the probability for hitting each path member corresponding to member's group entry at random is identical;
The inquiry acquiring unit, after according to message table of query and routing, according to the multiple index table to acquisite approachs The forwarding information of member.
In the above scheme, the inquiry acquiring unit, is specifically used for:
After inquiring the routing table according to the message, the pointer ptr of member's group table in the multiple index table is obtained;With And
The pointer ptr random index of the random Harsh factor and member's group table of the acquisition that are generated according to hash module obtains The member in table is organized to the member and organizes entry, and is obtained the member and organized entry road corresponding in the path membership table Diameter member indexes plot base_idx and path membership count;And
It is corresponding in the membership table of path that member described in the random Harsh factor pair generated by hash module organizes entry Path membership carries out modulo operation, obtains random opposite offset offset;And
The opposite offset offset is organized into entry path member corresponding in the membership table of path plus the member Plot base_idx is indexed, obtains the path member index in the multiple index table in the membership table of path, and according to the road Diameter member indexes the forwarding information for obtaining the path member.
5th aspect, the embodiment of the invention provides a kind of route control system for weighting multipath WCMP, the systems It include: control plane device and forwarding surface device, wherein
The control plane device, for obtaining random hit respectively according to the weight of each path member under same routing is corresponding The probability of path member;And
It is grouped according to the probability for hitting each path member at random according to preset grouping strategy, obtains at least one A member's group;Wherein, the probability N for hitting each member's group at random is identical;It is random to hit in member's group and after hitting member's group The probability of each path member is identical;And
Corresponding relationship between the path member and member's group is established, multiple index table is obtained;And
The multiple index table is sent to the forwarding surface device;Wherein, multiple index table is used for so that forwarding surface fills Set the routing information for obtaining weighting multipath forwarding;
The forwarding surface device, the multiple index table sent for receiving the control plane device;Wherein, the multistage rope Drawing table includes member's group table and path membership table, wherein it includes that at least one member organizes entry, Mei Gecheng that the member, which organizes in table, At least one path member in member's group entry respective path membership table;And the probability N for hitting each member's group entry at random is identical; And after hit member organizes entry, the probability for hitting each path member corresponding to member's group entry at random is identical;And
After message table of query and routing, according to the forwarding information of the multiple index table to acquisite approachs member.
The embodiment of the invention provides the route control methods of WCMP a kind of, device and system, utilize the hand of multistage-mapping Section, is stated by weight of the conditional probability to multiple path members under identical routing, so that list item in membership table Entry number it is identical as the number of path member, so as to reduce realize WCMP when list item storage resource consumption, save core Piece memory space.
Detailed description of the invention
Fig. 1 is the implementation method structural schematic diagram of WCMP in the prior art;
Fig. 2 is the membership table schematic diagram for realizing WCMP in the prior art;
Fig. 3 is a kind of route control method flow diagram of WCMP provided in an embodiment of the present invention;
Fig. 4 is that a kind of multiple index provided in an embodiment of the present invention indicates to be intended to;
Fig. 5 is the route control method flow diagram of another kind WCMP provided in an embodiment of the present invention;
Fig. 6 is that the process of the forwarding information provided in an embodiment of the present invention according to multiple index table to acquisite approachs member is illustrated Figure;
Fig. 7 is a kind of control plane apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 8 is a kind of forwarding surface apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of the route control system of WCMP provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
During the realization of WCMP, since the weight of each path member under same routing can be each by hitting at random The probability of path member is stated, and therefore, the basic thought of the embodiment of the present invention is: will be random by way of multistage-mapping The probability for hitting each path member states the form of conditional probability as, so that list item number of entries and path in membership table The number of member is identical.
Based on above-mentioned basic thought, referring to Fig. 3, it illustrates a kind of route tests of WCMP provided in an embodiment of the present invention Method, this method can be applied to for generating the control plane device of forwarding table in the network equipment, and this method may include:
S301: the general of each path member is hit according to corresponding obtain of the weight of each path member under same routing at random Rate;
Illustratively, the realization process of S301 is specifically as follows:
The weight of all path members under same routing is summed, as denominator;And by the power of each path member Recast is the probability that molecule can be hit each path member at random.
As shown in Fig. 2, the corresponding 8 path members of routing A, weight proportion 1:1:1:1:2:2:4:4, then, Suo Youlu The weight available 1+1+1+1+2+2+4+4=16 of summation of diameter member, and using this result as denominator;By each path at The weight of member is as molecule, to be hit the probability of each path member at random successively are as follows: 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: it is grouped, is obtained at least according to preset grouping strategy according to the probability for hitting each path member at random One member's group;
Wherein, the probability N for hitting each member's group at random is identical;It is random to hit in member's group and after hitting member's group The probability of each path member is identical;
Specifically, the probability P of either path member is hit at random it is to be understood that hitting member where the member of the path Under conditions of group, the probability of path member is hit at random in member's group where the member of the path.Therefore, random hit is each The calculation formula of the probability P of path member is P=N × X, wherein P is the probability of one path member of hit at random, and N is random The probability of member's group where hitting path member, X are under conditions of hitting member's group where the member of the path, in the path The probability of path member is hit in member's group where member at random.
Specifically, in order to realize that the probability N for hitting each member group at random is identical;It is random to hit and after hitting member's group This identical technical characteristic of probability of each path member in member's group, according to hitting the probability of each path member at random according to pre- If grouping strategy be grouped, obtain at least one member's group, may include:
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= MN, wherein when m is positive integer, setting m correspond to member's group of path member;
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= NN+p1, wherein n is natural number, and when remainder p1 is less than N, setting n correspond to member's group of path member, and according to pre- If setting rule be that member's group is additionally arranged in the path member that remainder summation is N;
It further, is that member's group is additionally arranged in the path member that remainder summation is N according to preset setting rule, it can be with Include:
Member's group is arranged in the path member that remainder is identical and remainder summation is N;And
In remainder, different and remainder summation is in the path member of N, according to the biggish path member of remainder remainder divided by The obtained quotient of remainder of the smallest path member of remainder replicates the biggish path member of remainder, and will be after duplication Member's group is arranged in path member and the smallest path member of remainder.
Or by taking the corresponding 8 path members of routing A shown in Fig. 2 as an example, the probability for hitting each path member at random can To decompose are as follows: member 1:Member 2:Member 3:Member 4:At Member 5:Member 6:Member 7:Member 8: due to 8 path members Random hit probability can be decomposed into other number product therefore this 8 path members can be divided into four groups, with Any group of the probability N that machine is hit in this four groups is
For member 1, member 2, member 3, member 4, respective remainder isAnd the remainder of this four members The sum of beFor member 5 and member 6, respective remainder isAnd the sum of the remainder of the two members isCause This, can set member's group for member 1, member 2, member 3, member 4, set a member for member 5 and member 6 Group;
For member 7 and member 8, respectively it is all satisfiedTherefore, respectively member 7 and member 8 are arranged one A member's group;
To set a group a for member 1, member 2, member 3, member 4;Member 5 and member 6 are set as a group b;Member 7 sets It is set to a group c;Member 8 is set as after group d, can learn in group a, and member 1, member 2, member 3, member 4 are hit general Rate isIn group b, the probability that member 5 and member 6 are hit isIn group c, the probability that member 7 is hit is 1;In group d, probability that member 8 is hit is 1, thus realize hit at random each member's group probability N it is identical;And it is hitting After member's group, the random probability for hitting each path member in member's group is identical.
It should be noted that if the random hit probability of path member is respectivelyWhen, these three The remainder of path member is also respectivelyAnd the remainder summation of these three paths member is alsoAt this time, it may be necessary to will Remainder isPath member replicate, and due toTherefore, it is necessary to be by remainderPath member it is multiple Two path members are made as, so that and by two path members after duplication being with other two remainderPath at Member is set as member's group.It is to be appreciated that being set before being usually due to the path member that remainder is different and remainder summation is N The person of being set to organizes remaining path member, therefore, it is necessary to the path number of members of duplication is few, will not cause in the prior art The case where path member of described all big weights replicates, so that the consumption that also can be reduced list item storage resource is existing As saving chip memory space.
It should also be noted that, for the case where denominator of the fraction in lowest term form of membership probability is not even number, in order to reach To better compression effectiveness, it is also necessary to which control plane is finely adjusted weight, finely tunes error caused by weight at this time and needs basis Practical situations determine
S303: establishing corresponding relationship between path member and member's group, obtains multiple index table;
Illustratively, corresponding relationship between path member and member's group is established, multiple index table is obtained, specifically can wrap It includes:
All member's groups are summarized as member's group table;
All path members are summarized as membership table;
According to each member group, included path member establishes the corresponding relationship between path member and member's group, and Establish the concordance list between member's group table and membership table.
Specifically, or by taking the corresponding 8 path members of routing A shown in Fig. 2 as an example, member 1, member 2, member 3, at Corresponding pass is all had between member 4 and group a, between member 5 and member 6 and group b, between member 7 and group c, between member 8 and group d System;Then for group an a, group b, group c, group d establish member's group table, so as to obtain corresponding relationship as shown in Figure 4.
It is to be appreciated that the list item quantity of membership table and the path membership of WCMP are consistent in multiple index table.
S304: multiple index table is sent to forwarding surface device;
Wherein, multiple index table is used for so that forwarding surface device obtains the routing information of weighting multipath forwarding.
The present embodiment is converted into conditional probability according to the weight of each path member under same routing to control plane to establish Multiple index table, so that the list item number of the membership table in multiple index table is identical as the number of path member, to keep away Prior art list item caused by the mode by way of repeating to fill to meet the biggish path member of weight is exempted from The consumption phenomenon of storage resource, saves chip memory space.
Based on the identical technical concept of previous embodiment, when forwarding surface device is after receiving multiple index table, so that it may To be forwarded the inquiry in path according to multiple index table, referring to Fig. 5, it illustrates another kinds provided in an embodiment of the present invention The route control method of WCMP, this method can be applied to the forwarding surface in the network equipment for being forwarded according to forwarding table and fill It sets, this method may include:
S501: the multiple index table that control plane is sent is received;
Wherein, which includes member's group table and path membership table, wherein it includes at least one in table that member, which organizes, Member organizes entry, and each member organizes at least one path member in entry respective path membership table;And each member is hit at random The probability N of group entry is identical;And after hit member organizes entry, the member is hit at random and organizes each path member corresponding to entry Probability it is identical;
It is to be appreciated that having had a detailed description in the generating process previous embodiment of multiple index table, details are not described herein.
S502: after message table of query and routing, according to the forwarding information of multiple index table to acquisite approachs member;
It is to be appreciated that due in multiple index table in the membership table of path list item number of entries and the path WCMP member Number is consistent so that forwarding surface device to the list item of path member saved consumed by storage resource to be much smaller than existing skill Therefore art reduces the consumption phenomenon of list item storage resource, saves chip memory space.
It specifically, can be as shown in Figure 6 according to the forwarding information of multiple index table to acquisite approachs member, comprising:
After certain message table of query and routing, the pointer ptr that member in multiple index table organizes table is obtained;
The pointer ptr random index of member's group table of the random Harsh factor and acquisition that are generated according to hash module is obtained into Member in member's group table organizes entry, and obtains member's group entry path member corresponding in the membership table of path and index plot Base_idx and path membership count;
The random Harsh factor pair member generated by hash module organizes entry path corresponding in the membership table of path Membership carries out modulo operation, obtains random opposite offset offset;
The opposite offset offset is organized into entry path member index corresponding in the membership table of path plus member Plot base_idx obtains the path member index in multiple index table in the membership table of path, and is obtained according to path member index Take the forwarding information of path member.
Preferably, in practical applications, the high-order Hash_index_ for the random Harsh factor that hash module can be generated Msb is used to obtain the member in member's group table with the pointer ptr random index of member's group table of acquisition to organize entry;By hash module It is corresponding in the membership table of path that the high-order Hash_index_Lsb of the random Harsh factor of generation is used to organize member entry Path membership count carries out modulo operation.The embodiment of the present invention does not repeat this.
The present embodiment carries out forwarding surface according to the forwarding information of multiple index table to acquisite approachs member in previous embodiment Description, so that the entry number in the membership table of path is with path number of members consistent when forwarding surface saves multiple index table, The consumption phenomenon for avoiding the storage resource of forwarding surface, saves chip memory space.
Based on the identical technical concept of previous embodiment, referring to Fig. 7, it illustrates a kind of controls provided in an embodiment of the present invention Face device 70 processed, the control plane device 70, comprising: acquiring unit 701, grouped element 702 are established unit 703 and sent single Member 704, wherein
Acquiring unit 701, for hitting each road at random according to corresponding obtain of the weight of each path member under same routing The probability of diameter member;
Grouped element 702, for being divided according to the probability for hitting each path member at random according to preset grouping strategy Group obtains at least one member's group;Wherein, the probability N for hitting each member's group at random is identical;And after hitting member's group, at random The probability for hitting each path member in member's group is identical;
Unit 703 is established, for establishing corresponding relationship between path member and member's group, obtains multiple index table;
Transmission unit 704, for multiple index table to be sent to forwarding surface device;Wherein, multiple index table be used for so that Forwarding surface device obtains the routing information of weighting multipath forwarding.
Illustratively, acquiring unit 701 are specifically used for:
The weight of all path members under same routing is summed, as denominator;And
Using the weight of each path member as molecule, the probability for hitting each path member at random is acquired.
Illustratively, grouped element 702 are specifically used for:
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= MN, wherein when m is positive integer, setting m correspond to member's group of path member;
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P= NN+p1, wherein n is natural number, and when remainder p1 is less than N, setting n correspond to member's group of path member, and according to pre- If setting rule be that member's group is additionally arranged in the path member that remainder summation is N.
Further, grouped element 702 are specifically used for:
Member's group is arranged in the path member that remainder is identical and remainder summation is N;And
In remainder, different and remainder summation is in the path member of N, according to the biggish path member of remainder remainder divided by The obtained quotient of remainder of the smallest path member of remainder replicates the biggish path member of remainder, and will be after duplication Member's group is arranged in path member and the smallest path member of remainder.
Illustratively, unit 703 is established, is specifically used for:
All member's groups are summarized as member's group table;And
All path members are summarized as membership table;And
According to each member group, included path member establishes the corresponding relationship between path member and member's group, and Establish the concordance list between member's group table and membership table.
Control plane device 70 provided in this embodiment is converted into condition according to the weight of each path member under same routing Probability establishes multiple index table, so that the number phase of the list item number of the membership table in multiple index table and path member Together, so as to avoid the prior art by being led by way of repeating to fill to meet the mode of the biggish path member of weight The consumption phenomenon of the list item storage resource of cause, saves chip memory space.
Based on the identical technical concept of previous embodiment, referring to Fig. 8, it illustrates a kind of turn provided in an embodiment of the present invention Dough leavening device 80, the forwarding surface device 80, comprising: receiving unit 801 and inquiry acquiring unit 802, wherein
Receiving unit 801, for receiving the multiple index table of control plane transmission;Wherein, multiple index table includes member's group Table and path membership table, wherein it includes that at least one member organizes entry that member, which organizes in table, each member organize entry respective path at At least one path member in member's table;And the probability N for hitting each member's group entry at random is identical;And entry is organized in hit member Afterwards, the probability of each path member corresponding to hit member group entry is identical at random;
Acquiring unit 802 is inquired, after according to message table of query and routing, according to multiple index table to acquisite approachs member's Forwarding information.
Illustratively, acquiring unit 802 is inquired, is specifically used for:
After message table of query and routing, the pointer ptr that member in multiple index table organizes table is obtained;And
The pointer ptr random index of member's group table of the random Harsh factor and acquisition that are generated according to hash module is obtained into Member in member's group table organizes entry, and obtains member's group entry path member corresponding in the membership table of path and index plot Base_idx and path membership count;And
The random Harsh factor pair member generated by hash module organizes entry path corresponding in the membership table of path Membership carries out modulo operation, obtains random opposite offset offset;And
Opposite offset offset is organized into entry path member corresponding in the membership table of path plus member and indexes plot Base_idx obtains the path member index in multiple index table in the membership table of path, and is indexed according to path member and obtain road The forwarding information of diameter member.
Forwarding surface device 80 provided in this embodiment, according to turn of multiple index table to acquisite approachs member in previous embodiment Photos and sending messages, so that the entry number in the membership table of path is consistent with path number of members when forwarding surface saves multiple index table, The consumption phenomenon for avoiding the storage resource of forwarding surface, saves chip memory space.
Based on the identical technical concept of previous embodiment, referring to Fig. 9, it illustrates one kind provided in an embodiment of the present invention The route control system 90 of WCMP, the system 90 include: control plane device 70 and forwarding surface device 80, wherein
Control plane device 70, for hitting each road at random according to corresponding obtain of the weight of each path member under same routing The probability of diameter member;And
Be grouped according to the probability for hitting each path member at random according to preset grouping strategy, obtain at least one at Member's group;Wherein, the probability N for hitting each member's group at random is identical;It is random to hit the road member Zu Zhongge and after hitting member's group The probability of diameter member is identical;And
Corresponding relationship between path member and member's group is established, multiple index table is obtained;And
Multiple index table is sent to forwarding surface device 80;Wherein, multiple index table is used for so that forwarding surface device 80 obtains Take the routing information of weighting multipath forwarding;
Forwarding surface device 80, for receiving the multiple index table of the transmission of control plane device 70;Wherein, multiple index table includes Member organizes table and path membership table, wherein it includes that at least one member organizes entry that member, which organizes in table, and it is corresponding that each member organizes entry At least one path member in the membership table of path;And the probability N for hitting each member's group entry at random is identical;And in hit member After group entry, the random probability for hitting each path member corresponding to member's group entry is identical;And
After message table of query and routing, according to the forwarding information of multiple index table to acquisite approachs member.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
More than, only presently preferred embodiments of the present invention is not intended to limit the scope of the present invention.

Claims (15)

1. a kind of route control method for weighting multipath WCMP, which is characterized in that the described method includes:
Hit the probability of each path member at random according to the corresponding acquisition of the weight of each path member under same routing;
Be grouped according to the probability for hitting each path member at random according to preset grouping strategy, obtain at least one at Member's group;Wherein, the probability N for hitting each member's group at random is identical;It is random to hit the road member Zu Zhongge and after hitting member's group The probability of diameter member is identical;
Corresponding relationship between the path member and member's group is established, multiple index table is obtained;
The multiple index table is sent to forwarding surface device;Wherein, multiple index table is used for so that the acquisition of forwarding surface device adds Weigh the routing information of multipath forwarding.
2. the method according to claim 1, wherein the weight according to each path member under same routing It is corresponding to obtain the probability for hitting each path member at random, comprising:
The weight of all path members under same routing is summed, as denominator;
Using the weight of each path member as molecule, the probability for hitting each path member at random is acquired.
3. the method according to claim 1, wherein the basis hit at random the probability of each path member according to Preset grouping strategy is grouped, and obtains at least one member's group, comprising:
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P=mN, Wherein, when m is positive integer, setting m correspond to member's group of path member;
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P=nN+ P1, wherein n is natural number, and when remainder p1 is less than N, setting n correspond to member's group of path member, and according to default Setting rule be that member's group is additionally arranged in the path member that remainder summation is N.
4. according to the method described in claim 3, it is characterized in that, described be remainder summation according to preset setting rule is N Path member member's group is additionally set, comprising:
Member's group is arranged in the path member that remainder is identical and remainder summation is N;And
In the path member that different and remainder summation is N in remainder, according to the remainder of the biggish path member of remainder divided by remainder The obtained quotient of remainder of the smallest path member replicates the biggish path member of remainder, and by the path after duplication Member's group is arranged in member and the smallest path member of remainder.
5. the method according to claim 1, wherein described establish corresponding pass between path member and member's group System, obtains multiple index table, specifically includes:
All member's groups are summarized as member's group table;
All path members are summarized as membership table;
According to each member group, included path member establishes the corresponding relationship between path member and member's group, and establishes Member organizes the concordance list between table and membership table.
6. a kind of route control method for weighting multipath WCMP, which is characterized in that the described method includes:
Receive the multiple index table that control plane is sent;Wherein, the multiple index table includes member's group table and path membership table, In, it includes that at least one member organizes entry that the member, which organizes in table, and each member organizes at least one in entry respective path membership table A path member;And the probability N for hitting each member's group entry at random is identical;It is random to hit and after hit member organizes entry The probability that the member organizes each path member corresponding to entry is identical;
After message table of query and routing, according to the forwarding information of the multiple index table to acquisite approachs member.
7. according to the method described in claim 6, it is characterized in that, the forwarding according to multiple index table to acquisite approachs member Information, comprising:
After inquiring the routing table according to the message, the pointer ptr of member's group table in the multiple index table is obtained;
The pointer ptr random index of member's group table of the random Harsh factor and the acquisition that are generated according to hash module obtains institute State member in member's group table and organize entry, and obtain the member organize entry path corresponding in the path membership table at Member's index plot base_idx and path membership count;
Member described in the random Harsh factor pair generated by hash module organizes entry path corresponding in the membership table of path Membership carries out modulo operation, obtains random opposite offset offset;
The opposite offset offset is organized into entry path member index corresponding in the membership table of path plus the member Plot base_idx, obtain in the multiple index table in the membership table of path path member index, and according to the path at Member's index obtains the forwarding information of the path member.
8. a kind of control plane device, which is characterized in that the control plane device, comprising: acquiring unit, establishes list at grouped element Member and transmission unit, wherein
The acquiring unit, for according to the weight of each path member under same routing it is corresponding obtain hit at random each path at The probability of member;
The grouped element, for being divided according to the probability for hitting each path member at random according to preset grouping strategy Group obtains at least one member's group;Wherein, the probability N for hitting each member's group at random is identical;And after hitting member's group, at random The probability for hitting each path member in member's group is identical;
It is described to establish unit, for establishing corresponding relationship between the path member and member's group, obtain multiple index table;
The transmission unit, for the multiple index table to be sent to forwarding surface device;Wherein, multiple index table be used for so that Forwarding surface device obtains the routing information of weighting multipath forwarding.
9. control plane device according to claim 8, which is characterized in that the acquiring unit is used for:
The weight of all path members under same routing is summed, as denominator;And
Using the weight of each path member as molecule, the probability for hitting each path member at random is acquired.
10. control plane device according to claim 8, which is characterized in that the grouped element is used for:
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P=mN, Wherein, when m is positive integer, setting m correspond to member's group of path member;
The relationship between probability N for hitting each member group when the probability P of one path member of hit at random and at random meets P=nN+ P1, wherein n is natural number, and when remainder p1 is less than N, setting n correspond to member's group of path member, and according to default Setting rule be that member's group is additionally arranged in the path member that remainder summation is N.
11. control plane device according to claim 10, which is characterized in that the grouped element is used for:
Member's group is arranged in the path member that remainder is identical and remainder summation is N;And
In the path member that different and remainder summation is N in remainder, according to the remainder of the biggish path member of remainder divided by remainder The obtained quotient of remainder of the smallest path member replicates the biggish path member of remainder, and by the path after duplication Member's group is arranged in member and the smallest path member of remainder.
12. control plane device according to claim 8, which is characterized in that it is described to establish unit, it is used for:
All member's groups are summarized as member's group table;And
All path members are summarized as membership table;And
According to each member group, included path member establishes the corresponding relationship between path member and member's group, and establishes Member organizes the concordance list between table and membership table.
13. a kind of forwarding surface device, which is characterized in that the forwarding surface device, comprising: receiving unit and inquiry acquiring unit, Wherein,
The receiving unit, for receiving the multiple index table of control plane transmission;Wherein, the multiple index table includes member's group Table and path membership table, wherein it includes that at least one member organizes entry that the member, which organizes in table, and each member organizes entry and corresponds to road At least one path member in diameter membership table;And the probability N for hitting each member's group entry at random is identical;And in hit member's group After entry, the probability for hitting each path member corresponding to member's group entry at random is identical;
The inquiry acquiring unit, after according to message table of query and routing, according to the multiple index table to acquisite approachs member Forwarding information.
14. forwarding surface device according to claim 13, which is characterized in that the inquiry acquiring unit is specifically used for:
After inquiring the routing table according to the message, the pointer ptr of member's group table in the multiple index table is obtained;And
The pointer ptr random index of member's group table of the random Harsh factor and the acquisition that are generated according to hash module obtains institute State member in member's group table and organize entry, and obtain the member organize entry path corresponding in the path membership table at Member's index plot base_idx and path membership count;And
Member described in the random Harsh factor pair generated by hash module organizes entry path corresponding in the membership table of path Membership carries out modulo operation, obtains random opposite offset offset;And
The opposite offset offset is organized into entry path member index corresponding in the membership table of path plus the member Plot base_idx, obtain in the multiple index table in the membership table of path path member index, and according to the path at Member's index obtains the forwarding information of the path member.
15. a kind of route control system for weighting multipath WCMP, which is characterized in that the system comprises: control plane device and Forwarding surface device, wherein
The control plane device, for hitting each path at random according to corresponding obtain of the weight of each path member under same routing The probability of member;And
Be grouped according to the probability for hitting each path member at random according to preset grouping strategy, obtain at least one at Member's group;Wherein, the probability N for hitting each member's group at random is identical;It is random to hit the road member Zu Zhongge and after hitting member's group The probability of diameter member is identical;And
Corresponding relationship between the path member and member's group is established, multiple index table is obtained;And
The multiple index table is sent to the forwarding surface device;Wherein, multiple index table is used for so that forwarding surface device obtains Take the routing information of weighting multipath forwarding;
The forwarding surface device, the multiple index table sent for receiving the control plane device;Wherein, the multiple index table Table and path membership table are organized including member, wherein it includes that at least one member organizes entry, each member's group that the member, which organizes in table, At least one path member in entry respective path membership table;And the probability N for hitting each member's group entry at random is identical;And After hitting member's group entry, the probability for hitting each path member corresponding to member's group entry at random is identical;And
After message table of query and routing, according to the forwarding information of the multiple index table to acquisite approachs member.
CN201510219341.2A 2015-04-30 2015-04-30 It is a kind of to weight the route control method of multipath WCMP, device and system Active CN106209635B (en)

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 CN106209635A (en) 2016-12-07
CN106209635B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN106209635A (en) 2016-12-07
WO2016173241A1 (en) 2016-11-03

Similar Documents

Publication Publication Date Title
CN101753455B (en) Forwarding method and device thereof
CN103023804B (en) A kind of aggregated links adaptive flow load-balancing method, device and the network equipment
CN101217528B (en) A link aggregation method and device
KR101676587B1 (en) Method and apparatus for determining network topology structure
CN103298009B (en) The modeling of complicated wireless network control system and fault propagation method
CN106209635B (en) It is a kind of to weight the route control method of multipath WCMP, device and system
CN103761212A (en) Method for designing mapping scheme and topological structure between task and node in on-chip network
Khakurel et al. FastChain: Lightweight blockchain with sharding for Internet of battlefield-things in NS-3
CN111193971A (en) Machine learning-oriented distributed computing interconnection network system and communication method
CN104954249B (en) A kind of message forwarding method, system and device
CN108243113B (en) Random load balancing method and device
CN115834054A (en) Multilevel key level management method and device
CN106354581B (en) A kind of cyclic redundancy check method and multi-core processor
CN105515761B (en) A kind of circuit of high-speed multi-mode time cyclic shift
CN105900383B (en) Communication system, control node and communication means
Ogawa et al. One-to-many file transfers using multipath-multicast with coding at source
CN103391617B (en) The E-PDCCH search volume defining method of UE
CN106332287B (en) Data transmission method and communication node
CN117097661B (en) Data packet forwarding method and device, storage medium and electronic equipment
CN104753639B (en) Data transferring method and device
CN113825175B (en) Satellite data transmission method, device, equipment and storage medium
CN102833864A (en) Radio resource allocation method for multi-cell mobile communication system
Tamura et al. A channel assignment problem in multihop wireless networks and graph theory
CN109582986A (en) A kind of method of network on three-dimensional chip test port selection optimization under power consumption limit
CN101860455B (en) Method for construction of network trust topology based on reliable loop

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