Embodiment
The embodiment of the invention provides a kind of route computing method, can accurately reflect the actual routing condition of network.
The embodiment of the invention is considered to calculate under the TE-Tunnel occupied bandwidth situation in the COST value of carrying out using when route is calculated, and the shortest path that calculate according to the COST value this moment is only the shortest path that meets actual routing condition.
Below dynamically to adjust the COST value according to the TE-Tunnel occupied bandwidth and to describe according to the instance that the actual bandwidth operating position is dynamically adjusted the COST value but be not limited to this; Wherein the adjustment of COST value can also define through other management methods, such as methods such as the user set up on their own.
Suppose in one network, comprise many routers, every router abbreviates a node as in network; In the network topology; There is one or more accessibility link between each node, therefore need carries out route and calculate, select shortest path to instruct forwarding of flow.
Seeing also Fig. 1, is the embodiment of the invention one route computing method flow chart.
Embodiment one dynamically adjusts the COST value according to the TE-Tunnel occupied bandwidth, specifically comprises step:
Behind step 101, the network design TE-Tunnel, the bandwidth that record TE-Tunnel takies in advance;
Step 102, pass to each node having disposed the bandwidth information that TE-Tunnel takies in advance behind the TE-Tunnel;
Step 103, calculate the COST value, and the COST value that obtains is flooded to the whole network according to the band width in physical that deducts after the bandwidth that TE-Tunnel takies in advance;
Each node in the network, operation OSPF/ISIS agreement is calculated the COST value of the link of this node.
This moment, the computing formula of COST value was:
COST=is with reference to radix/(band width in physical-TE-Tunnel bandwidth reserved)
The TE-Tunnel bandwidth reserved is the bandwidth that TE-Tunnel takies in advance behind the network design TE-Tunnel; Node operation OSPF/ISIS agreement; Band width in physical is deducted the TE-Tunnel bandwidth reserved draw the back remaining bandwidth of being taken of each interface of this node by TE-Tunnel; And then will remove in remaining bandwidth with reference to radix, calculate the COST value of the link after this node updates, and the link-state information that handle carries this node of this COST value is flooded to the whole network.
The COST value that step 104, basis calculate calculates shortest path.
After each node is collected the link-state information after the renewal of all nodes; Operation OSPF/ISIS agreement; Calculate the shortest path that arrives the destination according to the link COST value in the link-state information that receives, and finally be used for instructing non-TE-Tunnel forwarding of flow.
Seeing also Fig. 2, is the embodiment of the invention two route computing method flow charts.
Embodiment two dynamically adjusts the COST value according to the TE-Tunnel occupied bandwidth; But with implement one and different be, the COST value that calculates among the embodiment one itself is flooded to the whole network through the OSPF/ISIS agreement, node directly can receive the COST value of the link that other nodes calculate in the network; And embodiment two is according to the TE-Tunnel occupied bandwidth information that is flooded to the whole network; Obtain the bandwidth usage of the whole network node, calculate the COST value of the link of each node at this node, carry out route then and calculate; Obtain shortest path, instruct non-TE-Tunnel forwarding of flow.
Fig. 2 specifically comprises step:
Behind step 201, the network design TE-Tunnel, the bandwidth that record TE-Tunnel takies in advance;
Step 202, pass to each node having disposed the bandwidth information that TE-Tunnel takies in advance behind the TE-Tunnel, each node is flooded to the whole network with it;
Each node also can be to the whole network with remaining bandwidth information from flooding after deducting the bandwidth that TE-Tunnel takies in advance.
Step 203, according to the bandwidth usage of the whole network node that obtains, calculate the COST value of the link of each node in the network;
Each node in the network, the COST value of the link of other nodes in the COST value of the link of this node of operation OSPF/ISIS agreement calculating and the network.
This moment, the computing formula of COST value was:
COST=is with reference to radix/(band width in physical-TE-Tunnel bandwidth reserved)
The TE-Tunnel bandwidth reserved is the bandwidth that TE-Tunnel takies in advance behind the network design TE-Tunnel; Operation OSPF/ISIS agreement; Band width in physical is deducted the TE-Tunnel bandwidth reserved draw the back remaining bandwidth of being taken of each each interface of node by TE; And then will remove in remaining bandwidth, thereby calculate the COST value after each node updates with reference to radix.
The COST value that step 204, basis calculate calculates shortest path.
Each node operation OSPF/ISIS agreement calculates the shortest path of arrival destination according to the link COST value of each node that calculates, and finally is used for instructing non-TE-Tunnel forwarding of flow.
Seeing also Fig. 3, is the embodiment of the invention three route computing method flow charts.
Different with the foregoing description one and embodiment two is that embodiment three is according to real network flow dynamics adjustment COST value, specifically comprises step:
The bandwidth of step 301, computing network actual flow;
The bandwidth of network actual flow is meant actual occupied bandwidth in the network, comprises the actual bandwidth value that actual bandwidth that the TE-Tunnel bandwidth reserved is used and non-TE-Tunnel flow use.Though behind the network design TE-Tunnel; For TE-Tunnel has reserved occupied bandwidth; But the bandwidth that TE-Tunnel not necessarily can absorb reserves; Perhaps reserved but reality does not take, thus among this embodiment no matter how many occupied bandwidths TE-Tunnel has reserved, actual occupied bandwidth in each node computing network.
Step 302, update calculation COST value when arriving threshold value, and the COST value that obtains is flooded to the whole network;
Each node in the network, operation OSPF/ISIS agreement is calculated the COST value of the link of this node.
This moment, the computing formula of COST value was:
COST=is with reference to radix/(bandwidth of band width in physical-network actual flow)
Be divided into different ranks to the network actual flow in the present embodiment,, set different threshold values, when arriving threshold value, upgrade the COST value according to the size of actual flow.The bandwidth that for example takies according to actual flow is different, and several threshold values are set, and for example can set 3 threshold values, and the value of threshold value is the ratio value that accounts for said band width in physical according to the actual flow bandwidth of network, and can establish proportion is 30%, 60% and 90%.
The bandwidth that takies when actual flow be whole band width in physical 30% the time, by the dynamic COST value of adjustment of above-mentioned formula; By that analogy, the bandwidth that takies when actual flow be whole band width in physical 60% the time, by the dynamic COST value of adjustment of above-mentioned formula, the bandwidth that takies when actual flow be whole band width in physical 90% the time, dynamically adjust a COST value by above-mentioned formula again.
Each node operation OSPF/ISIS agreement according to the shared bandwidth situation of actual flow, calculates the COST value of the link of this node after the renewal, when the COST value changes, is flooded to the whole network to the link-state information of this node that carries this COST value.
The COST value that step 303, basis calculate calculates shortest path.
After each node is collected the link-state information after the renewal of all nodes; Operation OSPF/ISIS agreement; Calculate the shortest path that arrives the destination according to the link COST value in the link-state information that receives, and finally be used for instructing non-TE-Tunnel forwarding of flow.
Need to prove; Embodiment of the invention method is applicable to too carries out CSPF (the Constraint-based Shortest Path First that route is calculated among the traffic engineering TE; Constraint Shortest Path First) algorithm; Can realize through revising the CSPF algorithm, in collection network information, COST value and bandwidth information associated according to the CSPF algorithm; Carry out no longer to consider when route is calculated the influence of bandwidth like this, directly use the COST value that obtains according to the occupied situation of bandwidth to carry out route and calculate.Existing CSPF algorithm detailed process is to select link according to the COST value earlier; Calculate the remaining bandwidth after current actual physical bandwidth deducts the TE-TUNNEL occupied bandwidth again, judge then whether result calculated satisfies the link bandwidth of reserving, if do not satisfy; Just find second shortest path; See whether satisfy, look for down according to this order, and the COST value is constant in this process again.Calculate the thought of COST value according to embodiment of the invention method; Can select the link merging with the first step according to COST value calculating the process that current actual physical bandwidth deducts this step of remaining bandwidth behind the TE-TUNNEL occupied bandwidth; Promptly according to occupied bandwidth update calculation COST value, thereby directly find suitable link according to the COST value of renewal.
Foregoing has been introduced the embodiment of the invention in detail and has been carried out the route Calculation Method, and corresponding, the embodiment of the invention provides a kind of router.
Seeing also Fig. 4, is embodiment of the invention router one structural representation.
Router among Fig. 4 comprises first computing unit 401 and second computing unit 402.
First computing unit 401 is used to obtain the traffic engineering tunnel bandwidth reserved and calculates remaining bandwidth, calculates the path cost value of link according to said remaining bandwidth.Calculating remaining bandwidth is specially and band width in physical is deducted the traffic engineering tunnel bandwidth reserved obtains remaining bandwidth.
Second computing unit 402; Be used to calculate each link that arrives the destination the path cost value with; From said each link, select a link set to instruct non-traffic engineering tunnel forwarding of flow, for example select and be that the link set of minimum value instructs non-traffic engineering tunnel forwarding of flow as optimal path as optimal path.
Said first computing unit 401 is concrete by following formula calculating path value at cost:
COST=is with reference to radix/(band width in physical-TE-Tunnel bandwidth reserved)
The TE-Tunnel bandwidth reserved is the bandwidth that TE-Tunnel takies in advance behind the network design TE-Tunnel; Router operation OSPF/ISIS agreement; By first computing unit band width in physical is deducted the TE-Tunnel bandwidth reserved and draw the back remaining bandwidth of being taken of each interface of router by TE-Tunnel; And then will remove in remaining bandwidth with reference to radix, calculate the COST value of the link after router upgrades.
First computing unit 401 can only calculate the COST value of the link of this router, is flooded to the whole network to the link-state information of this router that carries this COST value then, and other routers just can receive the COST value that has calculated; First computing unit 401 also can be the bandwidth usage according to each router in the whole network, calculates the COST value of the link of each router of network at this router.
When second computing unit 402 calculates shortest path; If 401 of first computing units calculate the COST value of the link of this router; The COST value that then further calculates and be flooded to the link of the whole network according to other routers that receive obtains shortest path, instructs non-TE-Tunnel forwarding of flow.If first computing unit 401 has calculated the COST value of the link of each router of network, then can obtain shortest path directly according to the COST value of the link that calculates, instruct non-TE-Tunnel forwarding of flow.
Seeing also Fig. 5, is embodiment of the invention router two structural representations.
Router among Fig. 5 comprises threshold cell 501, first computing unit 502 and second computing unit 503.
Threshold cell 501 is used to the actual flow bandwidth of network setting threshold is set.Specifically be to be divided into different ranks to the network actual flow; Size according to actual flow; Set different threshold values; The value of threshold value is the ratio value that accounts for said band width in physical according to the actual flow bandwidth of network, for example can set 3 threshold values, and establishing proportion respectively is 30%, 60% and 90%.
First computing unit 502; Be used for after the actual flow bandwidth of network arrives the setting threshold of threshold cell 501 settings; Calculate remaining bandwidth; Calculate the path cost value of link according to said remaining bandwidth, the actual flow bandwidth of said network comprises the actual bandwidth that the traffic engineering tunnel bandwidth reserved is used and the actual bandwidth value of non-traffic engineering tunnel flow use.Calculating remaining bandwidth is specially and band width in physical is deducted the actual flow bandwidth of network obtains remaining bandwidth.
Second computing unit 503; Be used to calculate each link that arrives the destination the path cost value with; From said each link, select a link set to instruct non-traffic engineering tunnel forwarding of flow, for example select and be that the link set of minimum value instructs non-traffic engineering tunnel forwarding of flow as optimal path as optimal path.
Said first computing unit 502 is concrete by following formula calculating path value at cost:
COST=is with reference to radix/(bandwidth of band width in physical-network actual flow)
If threshold cell 501 is set 3 threshold values, establishing proportion respectively is 30%, 60% and 90%.The bandwidth that takies when actual flow be whole band width in physical 30% the time, by the dynamic COST value of adjustment of above-mentioned formula; By that analogy, the bandwidth that takies when actual flow be whole band width in physical 60% the time, by the dynamic COST value of adjustment of above-mentioned formula, the bandwidth that takies when actual flow be whole band width in physical 90% the time, dynamically adjust a COST value by above-mentioned formula again.
What first computing unit 502 calculated is the COST value of the link of this router, is flooded to the whole network to the link-state information of this router that carries this COST value then, and other routers just can receive the COST value that has calculated.
When second computing unit 503 calculates shortest path; First computing unit 502 has calculated the COST value of the link of this router; The COST value that then further calculates and be flooded to the link of the whole network according to other routers that receive obtains shortest path, instructs non-TE-Tunnel forwarding of flow.
In sum; The COST value of the link that when carrying out route calculating, uses in the prior art is not considered the situation of the bandwidth that is taken by TE-Tunnel; And the embodiment of the invention is considered to calculate under the TE-Tunnel occupied bandwidth situation in the COST value of carrying out using when route is calculated, and when calculating the COST value of link, obtains the traffic engineering tunnel bandwidth reserved and calculates remaining bandwidth; Calculate the path cost value of link according to said remaining bandwidth; Perhaps after the actual flow bandwidth of network arrives setting threshold, calculate remaining bandwidth, calculate the path cost value of link according to said remaining bandwidth; The actual flow bandwidth of said network comprises the actual bandwidth that actual bandwidth that the traffic engineering tunnel bandwidth reserved is used and non-traffic engineering tunnel flow use; So the shortest path that calculate according to the COST value this moment is only the shortest path that meets actual routing condition, just accurately reflects the actual routing condition of network, instructs the forwarding of network traffics reliably.
Further, can be the path cost value of calculating the link of this node when calculating the path cost value of link according to remaining bandwidth, the path cost value of the link of this node that will calculate then is flooded to the whole network; Or according to the path cost value of the link of each node in the bandwidth usage computing network of each node that is flooded to the whole network.
More than a kind of route computing method and router that the embodiment of the invention provided have been carried out detailed introduction; For one of ordinary skill in the art; Thought according to the embodiment of the invention; The part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.