WO2015196494A1 - Path calculation method and apparatus - Google Patents

Path calculation method and apparatus Download PDF

Info

Publication number
WO2015196494A1
WO2015196494A1 PCT/CN2014/081071 CN2014081071W WO2015196494A1 WO 2015196494 A1 WO2015196494 A1 WO 2015196494A1 CN 2014081071 W CN2014081071 W CN 2014081071W WO 2015196494 A1 WO2015196494 A1 WO 2015196494A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
service
source
maximum flow
sink nodes
Prior art date
Application number
PCT/CN2014/081071
Other languages
French (fr)
Chinese (zh)
Inventor
王巧灵
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480057546.9A priority Critical patent/CN105723667B/en
Priority to PCT/CN2014/081071 priority patent/WO2015196494A1/en
Publication of WO2015196494A1 publication Critical patent/WO2015196494A1/en

Links

Definitions

  • the present invention relates to network communication technologies, and in particular, to a method and apparatus for path calculation. Background technique
  • SDN Software Defined Network
  • NFV Network Function Virtualization
  • Centralized control requires centralized controllers to have strong scheduling capabilities for network-wide resources, especially when the network fails, requiring centralized controllers to respond quickly and recover as many of the damaged services as possible.
  • the centralized controller still uses the distributed Constrained Shorest Path Tree (CSPF) path calculation method to separately calculate the traffic for each service affected by the fault.
  • CSPF path calculation method is likely to cause resource competition, resulting in failure of the calculation and low success rate.
  • the embodiment of the invention provides a method and a device for calculating a path, which solves the problem that the existing path calculation cannot effectively utilize the resources of the whole network and the success rate of the calculation path is low.
  • a first aspect of the present invention provides a method for path calculation, including:
  • the cost of any link is an upward rounding value of the traffic of any one of the links and the remaining bandwidth of the any of the links, the any link And the sum of the traffic aggregated on any of the links for the maximum flow between the source and sink nodes of all of the services affected by the failure;
  • the method before the detecting that the network is faulty, the method further includes:
  • the determining, by using the maximum flow between the source and sink nodes of each service, is allocated on each link Traffic including:
  • the maximum flow between the source and sink nodes of any of the services is allocated on multiple links carrying the largest flow;
  • the maximum flow between source and sink nodes of a service is allocated traffic on each link.
  • the maximum flow between the source and sink nodes of the any service is allocated to multiple links that carry the largest flow.
  • the maximum flow between the source and sink nodes of the any service is allocated to multiple links that carry the largest flow.
  • the maximum flow between the source and sink nodes of any of the services is allocated on the link with the least remaining bandwidth among the plurality of links carrying the largest flow.
  • the second possible implementation manner, or the third possible implementation manner, in a fourth possible implementation manner, before the detecting that the network is faulty also includes:
  • a second aspect of the present invention provides an apparatus for path calculation, including: a service determining unit, configured to determine, after detecting a network failure, all services affected by the fault;
  • An acquiring unit configured to acquire, by the service determining unit, a traffic that is allocated on each link in the network by a maximum flow between source and sink nodes of each of the services affected by the fault; acquiring each of the The cost of the link, where the cost of any link is the rounded up value of the traffic of any of the links and the remaining bandwidth of the link; the traffic of any of the links is The sum of the traffic of the maximum flow between the source and sink nodes of the service affected by the fault on the any of the links;
  • the path calculation unit calculates, according to the cost value of each link acquired by the acquiring unit, the shortest path that satisfies the bandwidth requirement of the service affected by the fault.
  • the device further includes:
  • a maximum flow calculation unit configured to calculate, after the service determining unit detects a network failure, a maximum flow between source and sink nodes of each service in the network according to a remaining bandwidth of the link in the network;
  • a traffic determining unit configured to determine, according to the maximum flow between the source and sink nodes of each service that is calculated by the maximum flow calculation unit, the traffic that is allocated on each link.
  • the traffic determining unit is specifically configured to: if the link carrying the maximum flow between the source and sink nodes of any service is not unique And allocating a maximum flow between the source and sink nodes of the any service on the multiple links carrying the maximum flow; calculating a maximum flow between the source and sink nodes of the any service on each of the links The traffic on the distribution.
  • the traffic determining unit specifically includes:
  • a first sub-unit configured to allocate, if the link between the source and sink nodes of the any service is the only one, the maximum flow between the source and sink nodes of the any service On the link;
  • a second subunit configured to calculate a traffic that is allocated by the maximum flow between the source and sink nodes of the any service on each link.
  • the first sub-unit is specifically configured to: if the source and sink nodes of any service carry a maximum flow chain The path is not unique, and the maximum flow between the source and sink nodes of any of the services is allocated on the link with the least remaining bandwidth among the multiple links carrying the largest flow.
  • the maximum flow calculation unit is further used by the service determining unit Before detecting a network failure, if the remaining bandwidth of the link in the network changes, the maximum flow between the source and sink nodes of each service is recalculated.
  • a method and a device for calculating a path provided by an embodiment of the present invention, comprehensively considering the traffic that is allocated to each link in the network by the maximum flow between the source and sink nodes of the service affected by the fault, and is a service affected by the fault. Calculate the path, effectively use the resources of the whole network, and calculate the success rate of the road.
  • FIG. 1 is a flowchart of a method for path calculation according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a network networking provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of traffic flow allocated by each node between a node A and a node C according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of traffic flow allocated by each node between a node A and a node D according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of an apparatus for path calculation according to an embodiment of the present invention
  • FIG. 6 is another structural block diagram of an apparatus for path calculation according to an embodiment of the present invention
  • FIG. 7 is a structural block diagram of another apparatus for path calculation according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method and apparatus for path calculation.
  • the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
  • the embodiment of the present invention provides a process for calculating a path as shown in FIG. 1 , and the method includes the following steps:
  • Step S101 After detecting a network failure, determine all services affected by the fault.
  • Step S102 Acquire a traffic that is allocated on each link in the network by the maximum flow between the source and sink nodes of each service affected by the fault.
  • Step S103 Obtain a value of each link, where the cost value of any link is an upward rounding value of the traffic of the any link and the remaining bandwidth of the link, and the traffic sum of the link is all The sum of the traffic that the maximum flow between the source and sink nodes of the service affected by the failure is spread over any of the links.
  • Step S104 Calculate, according to the cost value of each link, a shortest path that satisfies the bandwidth requirement for the service affected by the fault.
  • the method may further include the step S100: calculating a maximum flow between the source and sink nodes of each service in the network according to the remaining bandwidth of the link in the network, and determining a source and sink node of each service. The maximum flow between the traffic on each link.
  • determining the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link may specifically include: if the link carrying the largest flow between the source and sink nodes of any service is not unique, The maximum flow between the source and sink nodes of any service is allocated on multiple links carrying the largest flow; Calculate the traffic that the maximum flow between the source and sink nodes of any service is allocated on each link.
  • the maximum flow between the source and sink nodes of any service is allocated on the multiple links that carry the maximum flow, and the specific flow includes: maximizing the maximum flow between the source and sink nodes of any service. On the links with the fewest remaining bandwidth among the multiple links of the flow.
  • step S100 may further include: recalculating the maximum flow between the source and sink nodes of each service if the remaining bandwidth of the link in the network changes.
  • the executor in the embodiment of the present invention may be a centralized control device, and the centralized control device may be a centralized controller, such as a network management system, a path calculation unit, a network controller, an SDN controller, etc., and the centralized control device may also be A device built into the above centralized controller.
  • the centralized control device may be a centralized controller, such as a network management system, a path calculation unit, a network controller, an SDN controller, etc.
  • the centralized control device may also be A device built into the above centralized controller.
  • the embodiment of the invention provides a method for path calculation, and the execution subject takes a centralized controller as an example.
  • the execution subject takes a centralized controller as an example.
  • the services in the network are: service 1, whose route is A-E-D-C; service 2, whose route is A-E-D; service 3, whose route is A-B.
  • the remaining bandwidth of link A-B is 3 bandwidth units;
  • the remaining bandwidth of the link A-D is 3 bandwidth units;
  • the remaining bandwidth of link A-E is 6 bandwidth units
  • the remaining bandwidth of the link E-D is 6 bandwidth units
  • the remaining bandwidth of the link D-C is 3 bandwidth units
  • the remaining bandwidth of the link BC is 3 bandwidth units.
  • the remaining bandwidth of the link is a relative value, indicating how many bandwidth units.
  • the remaining bandwidth value is 3, which represents 3 bandwidth units; the remaining bandwidth value is 6, representing 6 bandwidth units. It can represent 3MHz bandwidth and 6MHz bandwidth, respectively, and can also represent 30MHz bandwidth and 60MHz bandwidth respectively.
  • the method for calculating the path specifically includes the following steps:
  • Step S201 After detecting a network failure, determine all services affected by the fault.
  • Step S202 Acquire, according to the maximum flow between each source and sink node of the service affected by the fault, traffic allocated on each link in the network, where the maximum flow is the maximum traffic that can be carried between the source node and the sink node. .
  • the maximum flow between the source and sink nodes of service 1 and service 2 is obtained on each link in the network.
  • the source and sink nodes of service 1 are node A and node C, respectively, and the source and sink nodes of service 2 are node A and node D, respectively.
  • the traffic that the maximum flow between the source and sink nodes of each service in the network is allocated on each link may be pre-configured before the network fails, or may be pre-calculated before the network fails. This embodiment does not ⁇ 1 is limited.
  • the maximum flow between the node A and the node C can be directly obtained from the traffic that is allocated on each link in the maximum flow between the source and sink nodes of each service in the network obtained in advance.
  • the maximum flow between node A and node C is allocated on each link, as shown in Figure 3.
  • the traffic on link A-B is 3 bandwidth units.
  • the traffic allocated on link A-D is 3 bandwidth units.
  • the traffic allocated on link A-E is 0 bandwidth units.
  • the traffic allocated on the link ED is 0 bandwidth units.
  • the traffic allocated on the link DC is 3 bandwidth units.
  • the traffic allocated on link B-C is 3 bandwidth units.
  • the maximum flow between node A and node D is allocated on each link, as shown in Figure 4:
  • the traffic on link A-B is 0 bandwidth units.
  • the traffic allocated on link A-D is 3 bandwidth units.
  • the traffic allocated on link A-E is 6 bandwidth units.
  • the traffic allocated on the link E-D is 6 bandwidth units.
  • the traffic allocated on the link D-C is 0 bandwidth units.
  • the traffic on the link B-C is 0 bandwidth units.
  • Step S203 Obtain a cost (Metric) value of each link.
  • the Metric value of the link is the rounded up value of the traffic of the link and the remaining bandwidth of the link; the traffic of the link and the source of all services affected by the fault The sum of the traffic spread by the maximum flow between the sink nodes on the link.
  • the link AB is taken as an example.
  • the traffic of the maximum flow between the source and sink nodes A and C of the service 1 on the link AB is 3 bandwidth units, and the source and sink nodes A and D of the service 2
  • the sum of the traffic of the maximum flow on the link AB is 0, and the sum of the traffic flowed by the maximum flow between the service 1 and the source and sink nodes of the service 2 on the link AB is 3 bandwidth units. That is, the traffic of the link AB is 3 bandwidth units.
  • the other links are similar to the link A-B.
  • the maximum flow between the service 1 and the source and sink nodes of the service 2 is the sum of the traffic allocated on each link, that is, the traffic of each link is:
  • the traffic sum of link A-B is 3 bandwidth units
  • the traffic of the link A-D is 6 bandwidth units;
  • the traffic of link A-E is 6 bandwidth units;
  • the traffic of the link E-D is 6 bandwidth units;
  • the traffic of the link D-C is 3 bandwidth units;
  • the traffic of the link BC is 3 bandwidth units. Take link AB as an example.
  • the traffic sum of link AB is 3 bandwidth units, and the remaining bandwidth value is 3 bandwidth units.
  • the cost of link AB is the round-up value of the result of dividing by 3 and 3, that is, 1 .
  • the other links are similar to the link AB. According to the traffic of each link and the remaining bandwidth value of each link, the value of each link is obtained: the cost value of the link AB is 1; the cost value of the link AD is 2. The cost value of the link AE is 1, the cost of the link ED is 1, the cost of the link DC is 1, and the cost of the link BC is 1.
  • Step S204 Calculate, according to the cost value of each link, the shortest path that satisfies the bandwidth requirement for the service affected by the fault.
  • the shortest path that satisfies the bandwidth requirement is calculated for the service 1 and service 2 affected by the failure according to the cost value of each link acquired in step S203.
  • the method of calculating the shortest path according to the value of the link may use a method such as a dijkstra algorithm, a Bellman-Ford algorithm or a Floyd-Warshall algorithm, which is not limited in this embodiment.
  • the method may further include:
  • Step S200 Calculate a maximum flow between source and sink nodes of each service in the network according to remaining bandwidth of the link in the network, and determine that a maximum flow between source and sink nodes of each service is allocated on each link. flow.
  • the maximum flow between the source and sink nodes A and C of service 1 is 6 bandwidth units
  • the maximum flow between source and sink nodes A and D of service 2 is
  • the maximum bandwidth between the 9 bandwidth units and the source and sink nodes A and B of service 3 is 3 bandwidth units.
  • the service determines the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link. Specifically, if the link carrying the largest flow between the source and sink nodes of the service is not unique, the service is The maximum flow between the source and sink nodes is allocated on multiple links carrying the largest flow, and the maximum flow between the source and sink nodes of the service is calculated on each link; if the source and sink nodes of the service The maximum flow between the source and sink nodes of the service is directly allocated on the link, and the maximum flow between the source and sink nodes of the service is calculated and allocated on each link. Traffic.
  • the maximum flow between the source and sink nodes of the service is allocated on multiple links carrying the largest flow, and the maximum flow between the source and sink nodes of the service may be allocated to multiple links carrying the largest flow.
  • the maximum flow is evenly distributed on multiple links, or the maximum flow is allocated on the link with the most remaining bandwidth. No restrictions.
  • the traffic of the maximum flow between the source and sink nodes of service 1, service 2, and service 3 is allocated on each link.
  • the maximum flow between the source and sink nodes A and C of service 1 is 6 bandwidth units, and the link carrying the largest flow between node A and node C is not unique, and link AD and link AE and ED can replace each other. That is, the link AD can replace the links AE and ED, and the links AE and ED can replace the link AD.
  • the maximum flow between the source and sink nodes of the service is allocated to the link with the smallest remaining bandwidth among the multiple links carrying the largest flow.
  • the maximum flow between the node A and the node C is allocated on the link with the smallest remaining bandwidth among the multiple links carrying the largest flow, and the remaining bandwidth of the link AD is 3 bandwidth units, and the remaining bandwidth of the link AE and the ED are both 6 bandwidth units, between which the link AD with less remaining bandwidth is selected as the link carrying the largest flow.
  • the traffic with the maximum flow between the node A and the node C as shown in Figure 3 is allocated on each link, and the traffic on the links A-E and E-D is 0.
  • the maximum flow between the source and sink nodes A and D of service 2 is 9 bandwidth units.
  • the link carrying the largest flow between node A and node D is unique.
  • the traffic allocated on each link is shown in Figure 4.
  • the maximum flow between the source and sink nodes A and B of service 3 is 3 bandwidth units, and the link carrying the largest flow between node A and node B is unique, and the traffic allocated on link AB is 3 bandwidth units.
  • the traffic allocated on other links is 0.
  • each node in the network may go up and down.
  • calculate the maximum flow between the source and sink nodes of each service in the network and determine the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link, which is equivalent to calculating the network.
  • the maximum flow between any two nodes determining the traffic that the maximum flow between any two nodes is allocated on each link.
  • the CSPF is used to recalculate the path. Because CSPF does not make effective use of the entire network resources, it is a separate way for each business affected by the failure. If service 1 calculates the path first, according to the shortest path rule, the calculated path is A-D-C, then service 2 fails and service 2 cannot be recovered.
  • a path calculation method provided by an embodiment of the present invention comprehensively considers the traffic that is allocated by each of the source and sink nodes of the service affected by the fault in each link in the network, and calculates the path for the service affected by the fault. , Effective use of the entire network resources, high success rate of calculation.
  • the path calculation method provided by the embodiment of the present invention may further calculate, before the network failure, pre-calculate the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link, and according to the link. The change of the remaining bandwidth and the real-time refresh of the allocated traffic make the path calculation more accurate and effective.
  • the embodiment of the present invention provides a device 500 for path calculation. As shown in FIG. 5, the device includes a service determining unit 510, an obtaining unit 520, and a path calculating unit 530:
  • the service determining unit 510 is configured to: after detecting that the network is faulty, determine all affected by the fault.
  • the obtaining unit 520 is configured to acquire, by the service determining unit 510, the traffic that is allocated on each link in the network by the maximum flow between the source and sink nodes of each service affected by the fault; acquire the cost value of each link, Wherein the cost of any link is an upward rounding value of the traffic of any of the links and the remaining bandwidth of the link; the traffic of any of the links is between the source and sink nodes of all services affected by the fault The sum of the traffic that the maximum flow distributes on any of the links;
  • the path calculation unit 530 calculates a shortest path that satisfies the bandwidth requirement according to the cost of each link acquired by the acquisition unit 520.
  • the device 500 for calculating the path may further include:
  • the maximum flow calculation unit 540 is configured to calculate, according to the remaining bandwidth of the link in the network, the maximum flow between the source and sink nodes of each service in the network before the service determining unit 510 detects that the network is faulty; the traffic determining unit 550 is configured to: The flow rate of the maximum flow between the source and sink nodes of each service calculated by the maximum flow calculation unit 540 on each link is determined.
  • the traffic determining unit 550 may be specifically configured to: if the link carrying the largest flow between the source and sink nodes of any service is not unique, allocate the maximum flow between the source and sink nodes of any service to the maximum flow of the bearer. On multiple links; calculate the traffic that the maximum flow between the source and sink nodes of any service is allocated on each link.
  • the traffic determining unit 550 may specifically include:
  • the first sub-unit 551 is configured to allocate, if the link that carries the largest flow between the source and sink nodes of any service is not unique, allocate the maximum flow between the source and sink nodes of any service to multiple chains that carry the largest flow.
  • the second sub-unit 552 is configured to calculate the traffic that the maximum flow between the source and sink nodes of the any service is allocated on each link.
  • the first sub-unit 552 may be specifically configured to: if the link carrying the largest flow between the source and sink nodes of any service is not unique, the maximum flow between the source and sink nodes of any service is allocated to the maximum bearer. On the links with the fewest remaining bandwidth among the multiple links of the flow. Further, the maximum flow calculation unit 540 is further configured to: before the service determining unit 510 detects that the network has a fault, if the remaining bandwidth of the link in the network changes, recalculate the maximum flow between the source and sink nodes of each service.
  • Another embodiment of the present invention provides a path calculation device 700, as shown in FIG. 7, including a transmitter 710, a memory 720, and a processor 730:
  • a transmitter 710 configured to send a shortest path that meets a bandwidth requirement for a service affected by the fault
  • a memory 720 configured to store information including a program routine
  • the processor 730 is coupled to the memory 720 and the transmitter 710 for controlling the execution of the program routine, and specifically includes:
  • the processor 730 can also be used to control the execution of the program routine:
  • the traffic that is allocated by the maximum flow between the source and sink nodes of each service on each link may include: if the link carrying the largest flow between the source and sink nodes of any service is not unique, The maximum flow between source and sink nodes of any service is allocated on multiple links carrying the largest flow; The traffic that the maximum flow between the source and sink nodes of any service is allocated on each link.
  • the maximum flow between the source and sink nodes of any service is allocated on the multiple links that carry the maximum flow, and the specific flow includes: the maximum flow between the source and sink nodes of any service is allocated in the maximum flow of the bearer. On the links with the fewest remaining bandwidth among the multiple links.
  • the processor 730 can also be used to control the execution of the program routine:
  • the device for calculating the path in the above embodiment may be a centralized control device, and the centralized control device may be a centralized controller, such as a network management system, a path calculation unit, a network controller, an SDN controller, etc., and the centralized control device may also be It is a device built into the above centralized controller.
  • the information interaction, the execution process, and the like between the units in the path calculation device are based on the same concept as the method embodiment of the present invention.
  • the device for calculating a path provided by the embodiment of the present invention comprehensively considers the traffic that is allocated to each link in the network by the maximum flow between the source and sink nodes of the service affected by the fault, and is the service affected by the fault. Calculate the path, effectively use the resources of the whole network, and calculate the success rate of the road.
  • a person skilled in the art can understand that all or part of the steps of the foregoing embodiment can be implemented by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

The present invention relates to the field of network communications. Specifically disclosed is a path calculation method. The method comprises: after it is detected that a fault occurs on a network, determining all affected services; acquiring traffics, allocated on each link in the network, of a largest stream between a source node and a destination node of each service affected by the fault; acquiring a cost value of each link, wherein the cost value of any link is a rounded-up value of a result obtained by dividing a traffic of the any link by a remaining bandwidth of the any link, and a sum of the traffics of the any link is a sum of traffics, allocated on the any link, of largest streams between source nodes and destination nodes of all affected services; and calculating, for a service affected by the fault, a shortest path satisfying bandwidth requirements according to the cost value of each link. Also disclosed is a path calculation apparatus.

Description

一种路径计算的方法和装置 技术领域  Method and device for path calculation
本发明涉及网络通信技术 , 尤其涉及一种路径计算的方法和装置。 背景技术  The present invention relates to network communication technologies, and in particular, to a method and apparatus for path calculation. Background technique
随着软件定义网络( Software Defined Network, SDN )、 网络功能虚拟化 ( Network Function Virtualization, NFV )等新技术的出现, 集中控制的应用 越来越广。  With the advent of new technologies such as Software Defined Network (SDN) and Network Function Virtualization (NFV), centralized control applications are becoming more widespread.
集中控制要求集中控制器对全网资源有很强的调度处理能力, 特别是当 网络发生故障时, 需要集中控制器给出快速的响应, 尽量多地恢复受损的业 务。 现有技术中, 当网络发生故障时, 集中控制器仍沿用分布式的约束最短 路径优先(Constrained Shorest Path Tree, CSPF )路径计算方法, 为每个受故 障影响的业务单独算路。 在网络利用率较高、 网络资源比较紧张的情况下, 这种 CSPF路径计算方法容易造成资源竟争, 导致算路失败, 算路成功率低。 发明内容  Centralized control requires centralized controllers to have strong scheduling capabilities for network-wide resources, especially when the network fails, requiring centralized controllers to respond quickly and recover as many of the damaged services as possible. In the prior art, when the network fails, the centralized controller still uses the distributed Constrained Shorest Path Tree (CSPF) path calculation method to separately calculate the traffic for each service affected by the fault. In the case of high network utilization and tight network resources, this CSPF path calculation method is likely to cause resource competition, resulting in failure of the calculation and low success rate. Summary of the invention
本发明的实施例提供了一种路径计算的方法和装置, 解决现有路径计算 不能有效利用全网资源、 算路成功率低的问题。  The embodiment of the invention provides a method and a device for calculating a path, which solves the problem that the existing path calculation cannot effectively utilize the resources of the whole network and the success rate of the calculation path is low.
本发明的实施例釆用如下技术方案:  Embodiments of the present invention use the following technical solutions:
本发明第一方面提供了一种路径计算的方法, 包括:  A first aspect of the present invention provides a method for path calculation, including:
检测到网络发生故障后, 确定所有受故障影响的业务;  After detecting a network failure, determine all services affected by the failure;
获取每个所述受故障影响的业务的源宿节点之间的最大流在所述网络中 每条链路上分摊的流量;  Obtaining, by each of the source-sink nodes of the service affected by the fault, a traffic that is allocated on each link in the network;
获取所述每条链路的代价值, 其中, 任一链路的代价值为所述任一链路 的流量和除以所述任一链路的剩余带宽的结果的向上取整值, 所述任一链路 的流量和为所有所述受故障影响的业务的源宿节点之间的最大流在所述任一 链路上分摊的流量之和; Obtaining a value of the cost of each link, where the cost of any link is an upward rounding value of the traffic of any one of the links and the remaining bandwidth of the any of the links, the any link And the sum of the traffic aggregated on any of the links for the maximum flow between the source and sink nodes of all of the services affected by the failure;
根据所述每条链路的代价值为所述受故障影响的业务计算满足带宽需求 的最短路径。  Calculating, according to the cost value of each link, the shortest path that satisfies the bandwidth requirement of the service affected by the fault.
在第一种可能的实现方式中, 所述检测到网络发生故障之前, 所述方法 还包括:  In a first possible implementation manner, before the detecting that the network is faulty, the method further includes:
根据所述网络中链路的剩余带宽计算所述网络中每个业务的源宿节点之 间的最大流, 确定所述每个业务的源宿节点之间的最大流在所述每条链路上 分摊的流量。  Calculating a maximum flow between source and sink nodes of each service in the network according to a remaining bandwidth of the link in the network, determining that a maximum flow between the source and sink nodes of each service is on each of the links The traffic on the distribution.
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述确定所述每个业务的源宿节点之间的最大流在所述每条链路上分摊的流 量, 具体包括:  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the determining, by using the maximum flow between the source and sink nodes of each service, is allocated on each link Traffic, including:
如果任一业务的源宿节点之间承载最大流的链路不唯一, 将所述任一业 务的源宿节点之间的最大流分配在承载最大流的多条链路上; 计算所述任一 业务的源宿节点之间的最大流在所述每条链路上分摊的流量。  If the link carrying the largest flow between the source and sink nodes of any service is not unique, the maximum flow between the source and sink nodes of any of the services is allocated on multiple links carrying the largest flow; The maximum flow between source and sink nodes of a service is allocated traffic on each link.
结合第一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述将所述任一业务的源宿节点之间的最大流分配在承载最大流的多条链路 上, 具体包括:  In conjunction with the second possible implementation of the first aspect, in a third possible implementation, the maximum flow between the source and sink nodes of the any service is allocated to multiple links that carry the largest flow. On, specifically include:
将所述任一业务的源宿节点之间的最大流分配在承载最大流的多条链路 中剩余带宽最少的链路上。  The maximum flow between the source and sink nodes of any of the services is allocated on the link with the least remaining bandwidth among the plurality of links carrying the largest flow.
结合第一方面的第一种可能的实现方式、 第二种可能的实现方式或第三 种可能的实现方式, 在第四种可能的实现方式中, 所述检测到网络发生故障 之前, 所述方法还包括:  With reference to the first possible implementation manner of the first aspect, the second possible implementation manner, or the third possible implementation manner, in a fourth possible implementation manner, before the detecting that the network is faulty, The method also includes:
如果所述网络中链路的剩余带宽发生变化, 重新计算所述每个业务的源 宿节点之间的最大流。  If the remaining bandwidth of the link in the network changes, the maximum flow between the source and sink nodes of each service is recalculated.
本发明第二方面提供了一种路径计算的装置, 包括: 业务确定单元, 用于检测到网络发生故障后, 确定所有受故障影响的业 务; A second aspect of the present invention provides an apparatus for path calculation, including: a service determining unit, configured to determine, after detecting a network failure, all services affected by the fault;
获取单元, 用于获取所述业务确定单元确定的每个所述受故障影响的业 务的源宿节点之间的最大流在所述网络中每条链路上分摊的流量; 获取所述 每条链路的代价值, 其中, 任一链路的代价值为所述任一链路的流量和除以 所述任一链路的剩余带宽的结果的向上取整值; 所述任一链路的流量和为所 有所述受故障影响的业务的源宿节点之间的最大流在所述任一链路上分摊的 流量之和;  An acquiring unit, configured to acquire, by the service determining unit, a traffic that is allocated on each link in the network by a maximum flow between source and sink nodes of each of the services affected by the fault; acquiring each of the The cost of the link, where the cost of any link is the rounded up value of the traffic of any of the links and the remaining bandwidth of the link; the traffic of any of the links is The sum of the traffic of the maximum flow between the source and sink nodes of the service affected by the fault on the any of the links;
路径计算单元, 根据所述获取单元获取的所述每条链路的代价值为所述 受故障影响的业务计算满足带宽需求的最短路径。  The path calculation unit calculates, according to the cost value of each link acquired by the acquiring unit, the shortest path that satisfies the bandwidth requirement of the service affected by the fault.
在第一种可能的实现方式中, 所述装置还包括:  In a first possible implementation, the device further includes:
最大流计算单元, 用于所述业务确定单元检测到网络发生故障之前, 根 据所述网络中链路的剩余带宽计算所述网络中每个业务的源宿节点之间的最 大流;  a maximum flow calculation unit, configured to calculate, after the service determining unit detects a network failure, a maximum flow between source and sink nodes of each service in the network according to a remaining bandwidth of the link in the network;
流量确定单元, 用于确定所述最大流计算单元计算得到的所述每个业务 的源宿节点之间的最大流在所述每条链路上分摊的流量。  And a traffic determining unit, configured to determine, according to the maximum flow between the source and sink nodes of each service that is calculated by the maximum flow calculation unit, the traffic that is allocated on each link.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述流量确定单元具体用于, 如果任一业务的源宿节点之间承载最大流的链 路不唯一, 将所述任一业务的源宿节点之间的最大流分配在承载最大流的多 条链路上; 计算所述任一业务的源宿节点之间的最大流在所述每条链路上分 摊的流量。  With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the traffic determining unit is specifically configured to: if the link carrying the maximum flow between the source and sink nodes of any service is not unique And allocating a maximum flow between the source and sink nodes of the any service on the multiple links carrying the maximum flow; calculating a maximum flow between the source and sink nodes of the any service on each of the links The traffic on the distribution.
结合第二方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述流量确定单元具体包括:  With the second possible implementation of the second aspect, in a third possible implementation, the traffic determining unit specifically includes:
第一子单元, 用于如果所述任一业务的源宿节点之间承载最大流的链路 不唯一, 将所述任一业务的源宿节点之间的最大流分配在承载最大流的多条 链路上; 第二子单元, 用于计算所述任一业务的源宿节点之间的最大流在所述每 条链路上分摊的流量。 a first sub-unit, configured to allocate, if the link between the source and sink nodes of the any service is the only one, the maximum flow between the source and sink nodes of the any service On the link; And a second subunit, configured to calculate a traffic that is allocated by the maximum flow between the source and sink nodes of the any service on each link.
结合第二方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述第一子单元具体用于, 如果所述任一业务的源宿节点之间承载最大流的 链路不唯一, 将所述任一业务的源宿节点之间的最大流分配在承载最大流的 多条链路中剩余带宽最少的链路上。  With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation, the first sub-unit is specifically configured to: if the source and sink nodes of any service carry a maximum flow chain The path is not unique, and the maximum flow between the source and sink nodes of any of the services is allocated on the link with the least remaining bandwidth among the multiple links carrying the largest flow.
结合第二方面的第一种至第四种可能的实现方式中的任意一种可能的实 现方式, 在第五种可能的实现方式中, 所述最大流计算单元还用于所述业务 确定单元检测到网络发生故障之前, 如果所述网络中链路的剩余带宽发生变 化, 重新计算所述每个业务的源宿节点之间的最大流。  With reference to any one of the possible implementations of the first to fourth possible implementations of the second aspect, in a fifth possible implementation, the maximum flow calculation unit is further used by the service determining unit Before detecting a network failure, if the remaining bandwidth of the link in the network changes, the maximum flow between the source and sink nodes of each service is recalculated.
本发明实施例提供的一种路径计算的方法和装置, 综合考虑所有受故障 影响的业务的源宿节点之间的最大流在网络中每条链路上分摊的流量, 为受 故障影响的业务计算路径, 有效利用全网资源、 算路成功率高。 附图说明  A method and a device for calculating a path provided by an embodiment of the present invention, comprehensively considering the traffic that is allocated to each link in the network by the maximum flow between the source and sink nodes of the service affected by the fault, and is a service affected by the fault. Calculate the path, effectively use the resources of the whole network, and calculate the success rate of the road. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所需要 使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提 下, 还可以根据这些附图获得其它的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. One of ordinary skill in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图 1为本发明的实施例提供的一种路径计算的方法的流程图;  FIG. 1 is a flowchart of a method for path calculation according to an embodiment of the present invention;
图 2为本发明的实施例提供的网络组网示意图;  2 is a schematic diagram of a network networking provided by an embodiment of the present invention;
图 3为本发明的实施例提供的节点 A和节点 C之间的最大流在每条链路 上分摊的流量示意图;  FIG. 3 is a schematic diagram of traffic flow allocated by each node between a node A and a node C according to an embodiment of the present invention;
图 4为本发明的实施例提供的节点 A和节点 D之间的最大流在每条链路 上分摊的流量示意图;  FIG. 4 is a schematic diagram of traffic flow allocated by each node between a node A and a node D according to an embodiment of the present invention;
图 5为本发明的实施例提供的一种路径计算的装置的一结构框图; 图 6为本发明的实施例提供的一种路径计算的装置的另一结构框图。 图 7为本发明的实施例提供的另一种路径计算的装置的结构框图。 具体实施方式 FIG. 5 is a structural block diagram of an apparatus for path calculation according to an embodiment of the present invention; FIG. 6 is another structural block diagram of an apparatus for path calculation according to an embodiment of the present invention. FIG. 7 is a structural block diagram of another apparatus for path calculation according to an embodiment of the present invention. detailed description
本发明实施例提供了一种路径计算的方法和装置。 为了更好的理解本发 明的技术方案, 下面结合附图对本发明实施例进行详细描述。  Embodiments of the present invention provide a method and apparatus for path calculation. For a better understanding of the technical solutions of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
应当明确, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的 实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其它实施例, 都属于本发明保护的范围。  It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种路径计算的方法的流程如图 1所示,该方法包 括以下步骤:  The embodiment of the present invention provides a process for calculating a path as shown in FIG. 1 , and the method includes the following steps:
步骤 S101 , 检测到网络发生故障后, 确定所有受故障影响的业务。  Step S101: After detecting a network failure, determine all services affected by the fault.
步骤 S102 , 获取每个受故障影响的业务的源宿节点之间的最大流在网络 中每条链路上分摊的流量。  Step S102: Acquire a traffic that is allocated on each link in the network by the maximum flow between the source and sink nodes of each service affected by the fault.
步骤 S103 , 获取每条链路的代价值, 其中, 任一链路的代价值为该任一 链路的流量和除以该任一链路的剩余带宽的结果的向上取整值, 该任一链路 的流量和为所有受故障影响的业务的源宿节点之间的最大流在该任一链路上 分摊的流量之和。  Step S103: Obtain a value of each link, where the cost value of any link is an upward rounding value of the traffic of the any link and the remaining bandwidth of the link, and the traffic sum of the link is all The sum of the traffic that the maximum flow between the source and sink nodes of the service affected by the failure is spread over any of the links.
步骤 S104 , 根据每条链路的代价值为受故障影响的业务计算满足带宽需 求的最短路径。  Step S104: Calculate, according to the cost value of each link, a shortest path that satisfies the bandwidth requirement for the service affected by the fault.
进一步地, 检测到网络发生故障之前, 该方法还可以包括步骤 S100: 根 据网络中链路的剩余带宽计算网络中每个业务的源宿节点之间的最大流, 确 定每个业务的源宿节点之间的最大流在每条链路上分摊的流量。  Further, before detecting that the network is faulty, the method may further include the step S100: calculating a maximum flow between the source and sink nodes of each service in the network according to the remaining bandwidth of the link in the network, and determining a source and sink node of each service. The maximum flow between the traffic on each link.
具体地, 确定每个业务的源宿节点之间的最大流在每条链路上分摊的流 量, 可以具体包括: 如果任一业务的源宿节点之间承载最大流的链路不唯一, 将该任一业务的源宿节点之间的最大流分配在承载最大流的多条链路上; 计 算该任一业务的源宿节点之间的最大流在每条链路上分摊的流量。 具体地, 将任一业务的源宿节点之间的最大流分配在承载最大流的多条 链路上, 可以具体包括: 将该任一业务的源宿节点之间的最大流分配在承载 最大流的多条链路中剩余带宽最少的链路上。 Specifically, determining the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link may specifically include: if the link carrying the largest flow between the source and sink nodes of any service is not unique, The maximum flow between the source and sink nodes of any service is allocated on multiple links carrying the largest flow; Calculate the traffic that the maximum flow between the source and sink nodes of any service is allocated on each link. Specifically, the maximum flow between the source and sink nodes of any service is allocated on the multiple links that carry the maximum flow, and the specific flow includes: maximizing the maximum flow between the source and sink nodes of any service. On the links with the fewest remaining bandwidth among the multiple links of the flow.
进一步地,步骤 S100还可以包括:如果网络中链路的剩余带宽发生变化, 重新计算每个业务的源宿节点之间的最大流。 下面结合附图对本发明实施例提供的一种路径计算的方法和装置进行详 细描述。  Further, step S100 may further include: recalculating the maximum flow between the source and sink nodes of each service if the remaining bandwidth of the link in the network changes. A method and apparatus for path calculation according to an embodiment of the present invention are described in detail below with reference to the accompanying drawings.
应当明确, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的 实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其它实施例, 都属于本发明保护的范围。  It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例中的执行主体可以为集中控制的装置, 该集中控制的装置 可以为集中控制器, 例如网管、 路径计算单元、 网络控制器、 SDN控制器等, 该集中控制的装置也可以为内置于上述集中控制器中的装置。  The executor in the embodiment of the present invention may be a centralized control device, and the centralized control device may be a centralized controller, such as a network management system, a path calculation unit, a network controller, an SDN controller, etc., and the centralized control device may also be A device built into the above centralized controller.
本发明实施例提供了一种路径计算的方法, 执行主体以集中控制器为例。 如图 2所示的网络组网示意图, 网络中共有 5个节点 A、 B、 C、 D和 E, 由 一个集中控制器控制。 网络中的业务有: 业务 1 , 其路由为 A-E-D-C; 业务 2, 其路由为 A-E-D; 业务 3 , 其路由为 A-B。  The embodiment of the invention provides a method for path calculation, and the execution subject takes a centralized controller as an example. As shown in Figure 2, there are five nodes A, B, C, D, and E in the network, which are controlled by a centralized controller. The services in the network are: service 1, whose route is A-E-D-C; service 2, whose route is A-E-D; service 3, whose route is A-B.
图 2所示网络中各链路的剩余带宽为:  The remaining bandwidth of each link in the network shown in Figure 2 is:
链路 A-B的剩余带宽为 3个带宽单位;  The remaining bandwidth of link A-B is 3 bandwidth units;
链路 A-D的剩余带宽为 3个带宽单位;  The remaining bandwidth of the link A-D is 3 bandwidth units;
链路 A-E的剩余带宽为 6个带宽单位;  The remaining bandwidth of link A-E is 6 bandwidth units;
链路 E-D的剩余带宽为 6个带宽单位;  The remaining bandwidth of the link E-D is 6 bandwidth units;
链路 D-C的剩余带宽为 3个带宽单位;  The remaining bandwidth of the link D-C is 3 bandwidth units;
链路 B-C的剩余带宽为 3个带宽单位。 其中, 链路的剩余带宽为相对值, 表示多少个带宽单位。 例如, 剩余带 宽值为 3 , 表示 3个带宽单位; 剩余带宽值为 6, 表示 6个带宽单位。 可以分 别表示 3MHz带宽和 6MHz带宽, 也可以分别表示 30MHz带宽和 60MHz带 宽。 The remaining bandwidth of the link BC is 3 bandwidth units. The remaining bandwidth of the link is a relative value, indicating how many bandwidth units. For example, the remaining bandwidth value is 3, which represents 3 bandwidth units; the remaining bandwidth value is 6, representing 6 bandwidth units. It can represent 3MHz bandwidth and 6MHz bandwidth, respectively, and can also represent 30MHz bandwidth and 60MHz bandwidth respectively.
该路径计算的方法具体包括如下步骤:  The method for calculating the path specifically includes the following steps:
步骤 S201 , 检测到网络发生故障后, 确定所有受故障影响的业务。  Step S201: After detecting a network failure, determine all services affected by the fault.
本实施例中, 检测到网络中链路 A-E发生故障后, 确定受故障影响的业 务为业务 1和业务 2。  In this embodiment, after detecting that the link A-E in the network is faulty, it is determined that the service affected by the fault is service 1 and service 2.
步骤 S202 , 获取每个受故障影响的业务的源宿节点之间的最大流在该网 络中每条链路上分摊的流量, 其中, 最大流为源节点到宿节点之间能够承载 的最大流量。  Step S202: Acquire, according to the maximum flow between each source and sink node of the service affected by the fault, traffic allocated on each link in the network, where the maximum flow is the maximum traffic that can be carried between the source node and the sink node. .
本实施例中, 获取业务 1和业务 2的源宿节点之间的最大流在该网络中 每条链路上分摊的流量。 业务 1的源宿节点分别为节点 A和节点 C, 业务 2 的源宿节点分别为节点 A和节点 D。  In this embodiment, the maximum flow between the source and sink nodes of service 1 and service 2 is obtained on each link in the network. The source and sink nodes of service 1 are node A and node C, respectively, and the source and sink nodes of service 2 are node A and node D, respectively.
网络中每条业务的源宿节点之间的最大流在每条链路上分摊的流量, 可 以在网络发生故障之前预先配置, 也可以在网络发生故障之前预先计算获得, 本实施例对此不 ^1限定。  The traffic that the maximum flow between the source and sink nodes of each service in the network is allocated on each link may be pre-configured before the network fails, or may be pre-calculated before the network fails. This embodiment does not ^1 is limited.
因此, 本实施例中, 可以在预先获得的网络中每条业务的源宿节点之间 的最大流在每条链路上分摊的流量中, 直接获取节点 A和节点 C之间的最大 流在每条链路上分摊的流量, 以及节点 A和节点 D之间的最大流在每条链路 上分摊的流量。  Therefore, in this embodiment, the maximum flow between the node A and the node C can be directly obtained from the traffic that is allocated on each link in the maximum flow between the source and sink nodes of each service in the network obtained in advance. The traffic that is allocated on each link, and the traffic that is spread across each link, and the maximum flow between node A and node D.
节点 A和节点 C之间的最大流在每条链路上分摊的流量, 如图 3所示: 链路 A-B上分摊的流量为 3个带宽单位;  The maximum flow between node A and node C is allocated on each link, as shown in Figure 3. The traffic on link A-B is 3 bandwidth units.
链路 A-D上分摊的流量为 3个带宽单位;  The traffic allocated on link A-D is 3 bandwidth units.
链路 A-E上分摊的流量为 0个带宽单位;  The traffic allocated on link A-E is 0 bandwidth units.
链路 E-D上分摊的流量为 0个带宽单位; 链路 D-C上分摊的流量为 3个带宽单位; The traffic allocated on the link ED is 0 bandwidth units. The traffic allocated on the link DC is 3 bandwidth units.
链路 B-C上分摊的流量为 3个带宽单位。  The traffic allocated on link B-C is 3 bandwidth units.
节点 A和节点 D之间的最大流在每条链路上分摊的流量, 如图 4所示: 链路 A-B上分摊的流量为 0个带宽单位;  The maximum flow between node A and node D is allocated on each link, as shown in Figure 4: The traffic on link A-B is 0 bandwidth units.
链路 A-D上分摊的流量为 3个带宽单位;  The traffic allocated on link A-D is 3 bandwidth units.
链路 A-E上分摊的流量为 6个带宽单位;  The traffic allocated on link A-E is 6 bandwidth units.
链路 E-D上分摊的流量为 6个带宽单位;  The traffic allocated on the link E-D is 6 bandwidth units.
链路 D-C上分摊的流量为 0个带宽单位;  The traffic allocated on the link D-C is 0 bandwidth units.
链路 B-C上分摊的流量为 0个带宽单位。  The traffic on the link B-C is 0 bandwidth units.
步骤 S203 , 获取每条链路的代价(Metric )值。  Step S203: Obtain a cost (Metric) value of each link.
对于网络中的任一链路, 该链路的 Metric值为该链路的流量和除以该链 路的剩余带宽的结果的向上取整值; 该链路的流量和为所有受故障影响业务 的源宿节点之间的最大流在该链路上分摊的流量之和。  For any link in the network, the Metric value of the link is the rounded up value of the traffic of the link and the remaining bandwidth of the link; the traffic of the link and the source of all services affected by the fault The sum of the traffic spread by the maximum flow between the sink nodes on the link.
本实施例中, 以链路 A-B为例, 业务 1的源宿节点 A和 C之间的最大流 在链路 A-B上分摊的流量为 3个带宽单位,业务 2的源宿节点 A和 D之间的 最大流在链路 A-B上分摊的流量为 0, 则受故障影响的业务 1和业务 2的源 宿节点之间的最大流在链路 A-B上分摊的流量之和为 3个带宽单位, 即链路 A-B的流量和为 3个带宽单位。  In this embodiment, the link AB is taken as an example. The traffic of the maximum flow between the source and sink nodes A and C of the service 1 on the link AB is 3 bandwidth units, and the source and sink nodes A and D of the service 2 The sum of the traffic of the maximum flow on the link AB is 0, and the sum of the traffic flowed by the maximum flow between the service 1 and the source and sink nodes of the service 2 on the link AB is 3 bandwidth units. That is, the traffic of the link AB is 3 bandwidth units.
其它链路与链路 A-B类似, 受故障影响的业务 1和业务 2的源宿节点之 间的最大流在各链路上分摊的流量之和, 即各链路的流量和为:  The other links are similar to the link A-B. The maximum flow between the service 1 and the source and sink nodes of the service 2 is the sum of the traffic allocated on each link, that is, the traffic of each link is:
链路 A-B的流量和为 3个带宽单位;  The traffic sum of link A-B is 3 bandwidth units;
链路 A-D的流量和为 6个带宽单位;  The traffic of the link A-D is 6 bandwidth units;
链路 A-E的流量和为 6个带宽单位;  The traffic of link A-E is 6 bandwidth units;
链路 E-D的流量和为 6个带宽单位;  The traffic of the link E-D is 6 bandwidth units;
链路 D-C的流量和为 3个带宽单位;  The traffic of the link D-C is 3 bandwidth units;
链路 B-C的流量和为 3个带宽单位。 以链路 A-B为例, 链路 A-B的流量和为 3个带宽单位, 剩余带宽值为 3 个带宽单位, 则链路 A-B的代价值为 3除以 3的结果的向上取整值, 即 1。 The traffic of the link BC is 3 bandwidth units. Take link AB as an example. The traffic sum of link AB is 3 bandwidth units, and the remaining bandwidth value is 3 bandwidth units. Then, the cost of link AB is the round-up value of the result of dividing by 3 and 3, that is, 1 .
其它链路与链路 A-B类似, 根据上述各链路的流量和以及各链路的剩余 带宽值, 获得各链路的代价值: 链路 A-B的代价值为 1 ; 链路 A-D的代价值 为 2, 链路 A-E的代价值为 1 , 链路 E-D的代价值为 1 , 链路 D-C的代价值为 1 , 链路 B-C的代价值为 1。  The other links are similar to the link AB. According to the traffic of each link and the remaining bandwidth value of each link, the value of each link is obtained: the cost value of the link AB is 1; the cost value of the link AD is 2. The cost value of the link AE is 1, the cost of the link ED is 1, the cost of the link DC is 1, and the cost of the link BC is 1.
步骤 S204 , 根据每条链路的代价值对受故障影响的业务计算满足带宽需 求的最短路径。  Step S204: Calculate, according to the cost value of each link, the shortest path that satisfies the bandwidth requirement for the service affected by the fault.
本实施例中, 根据步骤 S203中获取的每条链路的代价值对受故障影响的 业务 1和业务 2计算满足带宽需求的最短路径。  In this embodiment, the shortest path that satisfies the bandwidth requirement is calculated for the service 1 and service 2 affected by the failure according to the cost value of each link acquired in step S203.
根据链路的代价值计算最短路径可以釆用 dijkstra算法、 Bellman-Ford算 法或 Floyd-Warshall算法等方法, 本实施例不做限定。  The method of calculating the shortest path according to the value of the link may use a method such as a dijkstra algorithm, a Bellman-Ford algorithm or a Floyd-Warshall algorithm, which is not limited in this embodiment.
计算得到链路 A-E故障后业务 1节点 A到节点 C的路径为 A-B-C; 计算 得到链路 A-E故障后业务 2节点 A到节点 D的路径为 A-D。 另一实施例中, 在上述实施例的步骤 S201之前, 即检测到该网络发生故 障之前, 该方法还可以包括:  After the link A-E is faulty, the path from node A to node C is A-B-C. After the link A-E is faulty, the path from node A to node D is A-D. In another embodiment, before the step S201 of the foregoing embodiment, that is, before the network is detected to be faulty, the method may further include:
步骤 S200 , 根据该网络中链路的剩余带宽计算该网络中每个业务的源宿 节点之间的最大流, 确定每个业务的源宿节点之间的最大流在每条链路上分 摊的流量。  Step S200: Calculate a maximum flow between source and sink nodes of each service in the network according to remaining bandwidth of the link in the network, and determine that a maximum flow between source and sink nodes of each service is allocated on each link. flow.
本实施例中, 根据各链路的剩余带宽值, 获得业务 1的源宿节点 A和 C 之间的最大流为 6个带宽单位, 业务 2的源宿节点 A和 D之间的最大流为 9 个带宽单位, 以及业务 3的源宿节点 A和 B之间的最大流为 3个带宽单位。 最大流的计算方法为现有技术, 本实施例中不再赘述。  In this embodiment, according to the remaining bandwidth value of each link, the maximum flow between the source and sink nodes A and C of service 1 is 6 bandwidth units, and the maximum flow between source and sink nodes A and D of service 2 is The maximum bandwidth between the 9 bandwidth units and the source and sink nodes A and B of service 3 is 3 bandwidth units. The calculation method of the maximum flow is the prior art, and details are not described in this embodiment.
而后, 确定每个业务的源宿节点之间的最大流在每条链路上分摊的流量。 具体地, 如果业务的源宿节点之间承载最大流的链路不唯一, 将该业务 的源宿节点之间的最大流分配在承载最大流的多条链路上, 计算该业务的源 宿节点之间的最大流在每条链路上分摊的流量; 如果业务的的源宿节点之间 承载的最大流的链路唯一, 直接将该业务的源宿节点之间的最大流分配在该 链路上, 计算该业务的源宿节点之间的最大流在每条链路上分摊的流量。 Then, determine the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link. Specifically, if the link carrying the largest flow between the source and sink nodes of the service is not unique, the service is The maximum flow between the source and sink nodes is allocated on multiple links carrying the largest flow, and the maximum flow between the source and sink nodes of the service is calculated on each link; if the source and sink nodes of the service The maximum flow between the source and sink nodes of the service is directly allocated on the link, and the maximum flow between the source and sink nodes of the service is calculated and allocated on each link. Traffic.
具体地, 将该业务的源宿节点之间的最大流分配在承载最大流的多条链 路上, 可以将该业务的源宿节点之间的最大流分配在承载最大流的多条链路 中剩余带宽最少的链路上, 也可以釆用其它分配方式, 例如将最大流平均分 配在多条链路上, 或者将最大流分配在剩余带宽最多的链路上等, 本实施例 对此不做限制。  Specifically, the maximum flow between the source and sink nodes of the service is allocated on multiple links carrying the largest flow, and the maximum flow between the source and sink nodes of the service may be allocated to multiple links carrying the largest flow. In the link with the least remaining bandwidth, other allocation modes may be used, for example, the maximum flow is evenly distributed on multiple links, or the maximum flow is allocated on the link with the most remaining bandwidth. No restrictions.
本实施例中, 获取业务 1、 业务 2和业务 3的源宿节点之间的最大流在每 条链路上分摊的流量。  In this embodiment, the traffic of the maximum flow between the source and sink nodes of service 1, service 2, and service 3 is allocated on each link.
其中, 业务 1的源宿节点 A和 C之间的最大流为 6个带宽单位, 节点 A 和节点 C之间承载最大流的链路不唯一,链路 A-D与链路 A-E和 E-D可以互 相替代, 即链路 A-D可以替代链路 A-E和 E-D , 链路 A-E和 E-D可以替代链 路 A-D。  The maximum flow between the source and sink nodes A and C of service 1 is 6 bandwidth units, and the link carrying the largest flow between node A and node C is not unique, and link AD and link AE and ED can replace each other. That is, the link AD can replace the links AE and ED, and the links AE and ED can replace the link AD.
本实施例中, 以将该业务的源宿节点之间的最大流分配在承载最大流的 多条链路中剩余带宽最小的链路上为例。 将节点 A和节点 C之间的最大流分 配在承载最大流的多条链路中剩余带宽最少的链路上, 链路 A-D剩余带宽为 3个带宽单位, 链路 A-E和 E-D剩余带宽均为 6个带宽单位, 在二者之间选 择剩余带宽少的链路 A-D作为承载最大流的链路。 得到如图 3所示的节点 A 和节点 C之间的最大流在每条链路上分摊的流量, 链路 A-E和 E-D上分摊的 流量为 0。  In this embodiment, the maximum flow between the source and sink nodes of the service is allocated to the link with the smallest remaining bandwidth among the multiple links carrying the largest flow. The maximum flow between the node A and the node C is allocated on the link with the smallest remaining bandwidth among the multiple links carrying the largest flow, and the remaining bandwidth of the link AD is 3 bandwidth units, and the remaining bandwidth of the link AE and the ED are both 6 bandwidth units, between which the link AD with less remaining bandwidth is selected as the link carrying the largest flow. The traffic with the maximum flow between the node A and the node C as shown in Figure 3 is allocated on each link, and the traffic on the links A-E and E-D is 0.
业务 2的源宿节点 A和 D之间的最大流为 9个带宽单位,节点 A和节点 D之间承载最大流的链路唯一, 在每条链路上分摊的流量如图 4所示。  The maximum flow between the source and sink nodes A and D of service 2 is 9 bandwidth units. The link carrying the largest flow between node A and node D is unique. The traffic allocated on each link is shown in Figure 4.
业务 3的源宿节点 A和 B之间的最大流为 3个带宽单位, 节点 A和节点 B之间承载最大流的链路唯一, 在链路 A-B上分摊的流量为 3个带宽单位, 其它链路上分摊的流量均为 0。 The maximum flow between the source and sink nodes A and B of service 3 is 3 bandwidth units, and the link carrying the largest flow between node A and node B is unique, and the traffic allocated on link AB is 3 bandwidth units. The traffic allocated on other links is 0.
实际应用的网络中经常存在大量业务, 网络中的每个节点可能都会上下 业务。 此种情况下, 计算该网络中每个业务的源宿节点之间的最大流, 确定 每个业务的源宿节点之间的最大流在每条链路上分摊的流量, 相当于需要计 算网络中任意两个节点之间的最大流, 确定任意两个节点之间的最大流在每 条链路上分摊的流量。  A large number of services are often present in the actual application network, and each node in the network may go up and down. In this case, calculate the maximum flow between the source and sink nodes of each service in the network, and determine the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link, which is equivalent to calculating the network. The maximum flow between any two nodes, determining the traffic that the maximum flow between any two nodes is allocated on each link.
进一步地, 在检测到网络发生故障之前, 如果该网络中链路的剩余带宽 发生变化, 则重新计算每个业务的源宿节点之间的最大流, 继而重新确定每 个业务的源宿节点之间的最大流在每条链路上分摊的流量, 以便网络发生故 障后, 为受故障影响的业务计算满足带宽需求的最短路径。 现有技术中, 当检测到链路 A-E故障, 釆用 CSPF重新算路。 由于 CSPF 没有有效利用全网资源, 而是为每个受故障影响的业务单独算路。如果业务 1 先计算路径, 根据最短路规则, 计算的路径为 A-D-C, 那么业务 2算路失败, 业务 2无法恢复。  Further, before detecting a network failure, if the remaining bandwidth of the link in the network changes, recalculating the maximum flow between the source and sink nodes of each service, and then re-determining the source and sink nodes of each service. The maximum flow between each link is allocated to each link, so that after the network fails, the shortest path that meets the bandwidth requirement is calculated for the service affected by the failure. In the prior art, when a link A-E failure is detected, the CSPF is used to recalculate the path. Because CSPF does not make effective use of the entire network resources, it is a separate way for each business affected by the failure. If service 1 calculates the path first, according to the shortest path rule, the calculated path is A-D-C, then service 2 fails and service 2 cannot be recovered.
本发明实施例提供的一种路径计算的方法, 综合考虑所有受故障影响的 业务的源宿节点之间的最大流在网络中每条链路上分摊的流量, 为受故障影 响的业务计算路径, 有效利用全网资源、 算路成功率高。  A path calculation method provided by an embodiment of the present invention comprehensively considers the traffic that is allocated by each of the source and sink nodes of the service affected by the fault in each link in the network, and calculates the path for the service affected by the fault. , Effective use of the entire network resources, high success rate of calculation.
此外, 本发明实施例提供的路径计算的方法, 还可以在网络发生故障之 前预先计算获得每个业务的源宿节点之间的最大流在每条链路上分摊的流 量, 且根据链路的剩余带宽的变化, 实时刷新分摊的流量, 使得路径计算更 准确、 有效。 本发明实施例提供了一种路径计算的装置 500, 如图 5所示, 包括业务确 定单元 510、 获取单元 520和路径计算单元 530:  In addition, the path calculation method provided by the embodiment of the present invention may further calculate, before the network failure, pre-calculate the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link, and according to the link. The change of the remaining bandwidth and the real-time refresh of the allocated traffic make the path calculation more accurate and effective. The embodiment of the present invention provides a device 500 for path calculation. As shown in FIG. 5, the device includes a service determining unit 510, an obtaining unit 520, and a path calculating unit 530:
业务确定单元 510 , 用于检测到网络发生故障后, 确定所有受故障影响的 业务; The service determining unit 510 is configured to: after detecting that the network is faulty, determine all affected by the fault. Business
获取单元 520 ,用于获取业务确定单元 510确定的每个受故障影响的业务 的源宿节点之间的最大流在网络中每条链路上分摊的流量; 获取每条链路的 代价值, 其中, 任一链路的代价值为该任一链路的流量和除以该任一链路的 剩余带宽的结果的向上取整值; 该任一链路的流量和为所有受故障影响的业 务的源宿节点之间的最大流在该任一链路上分摊的流量之和;  The obtaining unit 520 is configured to acquire, by the service determining unit 510, the traffic that is allocated on each link in the network by the maximum flow between the source and sink nodes of each service affected by the fault; acquire the cost value of each link, Wherein the cost of any link is an upward rounding value of the traffic of any of the links and the remaining bandwidth of the link; the traffic of any of the links is between the source and sink nodes of all services affected by the fault The sum of the traffic that the maximum flow distributes on any of the links;
路径计算单元 530 ,根据获取单元 520获取的每条链路的代价值为受故障 影响的业务计算满足带宽需求的最短路径。  The path calculation unit 530 calculates a shortest path that satisfies the bandwidth requirement according to the cost of each link acquired by the acquisition unit 520.
进一步地, 如图 6所示, 该路径计算的装置 500还可以包括:  Further, as shown in FIG. 6, the device 500 for calculating the path may further include:
最大流计算单元 540 , 用于业务确定单元 510检测到网络发生故障之前, 根据网络中链路的剩余带宽计算网络中每个业务的源宿节点之间的最大流; 流量确定单元 550 ,用于确定最大流计算单元 540计算得到的每个业务的 源宿节点之间的最大流在每条链路上分摊的流量。  The maximum flow calculation unit 540 is configured to calculate, according to the remaining bandwidth of the link in the network, the maximum flow between the source and sink nodes of each service in the network before the service determining unit 510 detects that the network is faulty; the traffic determining unit 550 is configured to: The flow rate of the maximum flow between the source and sink nodes of each service calculated by the maximum flow calculation unit 540 on each link is determined.
进一步地, 流量确定单元 550可以具体用于, 如果任一业务的源宿节点 之间承载最大流的链路不唯一, 将该任一业务的源宿节点之间的最大流分配 在承载最大流的多条链路上; 计算该任一业务的源宿节点之间的最大流在每 条链路上分摊的流量。  Further, the traffic determining unit 550 may be specifically configured to: if the link carrying the largest flow between the source and sink nodes of any service is not unique, allocate the maximum flow between the source and sink nodes of any service to the maximum flow of the bearer. On multiple links; calculate the traffic that the maximum flow between the source and sink nodes of any service is allocated on each link.
进一步地, 流量确定单元 550可以具体包括:  Further, the traffic determining unit 550 may specifically include:
第一子单元 551 ,用于如果任一业务的源宿节点之间承载最大流的链路不 唯一, 将该任一业务的源宿节点之间的最大流分配在承载最大流的多条链路 上;  The first sub-unit 551 is configured to allocate, if the link that carries the largest flow between the source and sink nodes of any service is not unique, allocate the maximum flow between the source and sink nodes of any service to multiple chains that carry the largest flow. On the road
第二子单元 552 ,用于计算该任一业务的源宿节点之间的最大流在每条链 路上分摊的流量。  The second sub-unit 552 is configured to calculate the traffic that the maximum flow between the source and sink nodes of the any service is allocated on each link.
进一步地, 第一子单元 552可以具体用于, 如果任一业务的源宿节点之 间承载最大流的链路不唯一, 将该任一业务的源宿节点之间的最大流分配在 承载最大流的多条链路中剩余带宽最少的链路上。 进一步地, 最大流计算单元 540还可以用于: 业务确定单元 510检测到 网络发生故障之前, 如果网络中链路的剩余带宽发生变化, 重新计算每个业 务的源宿节点之间的最大流。 本发明另一实施例提供了一种路径计算的装置 700, 如图 7所示, 包括发 送器 710、 存储器 720和处理器 730: Further, the first sub-unit 552 may be specifically configured to: if the link carrying the largest flow between the source and sink nodes of any service is not unique, the maximum flow between the source and sink nodes of any service is allocated to the maximum bearer. On the links with the fewest remaining bandwidth among the multiple links of the flow. Further, the maximum flow calculation unit 540 is further configured to: before the service determining unit 510 detects that the network has a fault, if the remaining bandwidth of the link in the network changes, recalculate the maximum flow between the source and sink nodes of each service. Another embodiment of the present invention provides a path calculation device 700, as shown in FIG. 7, including a transmitter 710, a memory 720, and a processor 730:
发送器 710 , 用于发送受故障影响的业务计算满足带宽需求的最短路径; 存储器 720, 用于存储包括程序例程的信息;  a transmitter 710, configured to send a shortest path that meets a bandwidth requirement for a service affected by the fault; and a memory 720, configured to store information including a program routine;
处理器 730 ,与存储器 720和发送器 710耦合,用于控制程序例程的执行, 具体包括:  The processor 730 is coupled to the memory 720 and the transmitter 710 for controlling the execution of the program routine, and specifically includes:
检测到网络发生故障后, 确定所有受故障影响的业务;  After detecting a network failure, determine all services affected by the failure;
获取每个受故障影响的业务的源宿节点之间的最大流在网络中每条链路 上分摊的流量;  Obtaining the traffic that the maximum flow between the source and sink nodes of each service affected by the fault is allocated on each link in the network;
获取每条链路的代价值, 其中, 任一链路的代价值为该任一链路的流量 和除以该任一链路的剩余带宽的结果的向上取整值, 该任一链路的流量和为 所有受故障影响的业务的源宿节点之间的最大流在该任一链路上分摊的流量 之和;  Obtaining the cost value of each link, where the cost of any link is the rounded up value of the traffic of any link and the remaining bandwidth of the link, and the traffic of any link is affected by all the faults. The sum of the traffic of the maximum flow between the source and sink nodes of the service on the any of the links;
根据每条链路的代价值为受故障影响的业务计算满足带宽需求的最短路 径。  Calculate the shortest path that meets the bandwidth requirement based on the cost of each link.
进一步地, 检测到网络发生故障之前, 处理器 730 还可以用于控制程序 例程执行:  Further, before detecting a network failure, the processor 730 can also be used to control the execution of the program routine:
根据网络中链路的剩余带宽计算网络中每个业务的源宿节点之间的最大 流, 确定每个业务的源宿节点之间的最大流在每条链路上分摊的流量。  Calculate the maximum flow between the source and sink nodes of each service in the network according to the remaining bandwidth of the link in the network, and determine the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link.
其中, 确定每个业务的源宿节点之间的最大流在每条链路上分摊的流量, 可以具体包括: 如果任一业务的源宿节点之间承载最大流的链路不唯一, 将 该任一业务的源宿节点之间的最大流分配在承载最大流的多条链路上; 计算 该任一业务的源宿节点之间的最大流在每条链路上分摊的流量。 The traffic that is allocated by the maximum flow between the source and sink nodes of each service on each link may include: if the link carrying the largest flow between the source and sink nodes of any service is not unique, The maximum flow between source and sink nodes of any service is allocated on multiple links carrying the largest flow; The traffic that the maximum flow between the source and sink nodes of any service is allocated on each link.
其中, 将任一业务的源宿节点之间的最大流分配在承载最大流的多条链 路上, 可以具体包括: 将该任一业务的源宿节点之间的最大流分配在承载最 大流的多条链路中剩余带宽最少的链路上。  The maximum flow between the source and sink nodes of any service is allocated on the multiple links that carry the maximum flow, and the specific flow includes: the maximum flow between the source and sink nodes of any service is allocated in the maximum flow of the bearer. On the links with the fewest remaining bandwidth among the multiple links.
进一步地, 检测到网络发生故障之前, 处理器 730 还可以用于控制程序 例程执行:  Further, before detecting a network failure, the processor 730 can also be used to control the execution of the program routine:
如果网络中链路的剩余带宽发生变化, 重新计算每个业务的源宿节点之 间的最大流。 上述实施例中的路径计算的装置可以为集中控制的装置, 该集中控制的 装置可以为集中控制器, 例如网管、 路径计算单元、 网络控制器、 SDN控制 器等, 该集中控制的装置也可以为内置于上述集中控制器中的装置。  If the remaining bandwidth of the link in the network changes, recalculate the maximum flow between the source and sink nodes of each service. The device for calculating the path in the above embodiment may be a centralized control device, and the centralized control device may be a centralized controller, such as a network management system, a path calculation unit, a network controller, an SDN controller, etc., and the centralized control device may also be It is a device built into the above centralized controller.
上述实施例中, 一种路径计算的装置内的各单元之间的信息交互、 执行 过程等内容, 由于与本发明方法实施例基于同一构思, 具体内容可参见本发 明方法实施例中的叙述, 此处不再赘述。  In the foregoing embodiment, the information interaction, the execution process, and the like between the units in the path calculation device are based on the same concept as the method embodiment of the present invention. For details, refer to the description in the method embodiment of the present invention. I will not repeat them here.
釆用本发明实施例提供的一种路径计算的装置, 综合考虑所有受故障影 响的业务的源宿节点之间的最大流在网络中每条链路上分摊的流量, 为受故 障影响的业务计算路径, 有效利用全网资源、 算路成功率高。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步 骤, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体 ( Random Access Memory, RAM )等。  The device for calculating a path provided by the embodiment of the present invention comprehensively considers the traffic that is allocated to each link in the network by the maximum flow between the source and sink nodes of the service affected by the fault, and is the service affected by the fault. Calculate the path, effectively use the resources of the whole network, and calculate the success rate of the road. A person skilled in the art can understand that all or part of the steps of the foregoing embodiment can be implemented by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily within the technical scope disclosed by the present invention. All changes or substitutions contemplated are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利 要求 书 Claim
1、 一种路径计算的方法, 其特征在于, 包括:  A method for path calculation, comprising:
检测到网络发生故障后, 确定所有受故障影响的业务;  After detecting a network failure, determine all services affected by the failure;
获取每个所述受故障影响的业务的源宿节点之间的最大流在所述网络中每 条链路上分摊的流量;  Obtaining, by each of the source-sink nodes of the service affected by the fault, a traffic that is allocated on each link in the network;
获取所述每条链路的代价值, 其中, 任一链路的代价值为所述任一链路的 流量和除以所述任一链路的剩余带宽的结果的向上取整值, 所述任一链路的流 量和为所有所述受故障影响的业务的源宿节点之间的最大流在所述任一链路上 分摊的流量之和;  Obtaining the cost value of each link, where the cost value of any link is an upward rounding value of the traffic of any one of the links and the remaining bandwidth of the any link, and the traffic of the any link is The sum of the traffic aggregated on any of the links for the maximum flow between the source and sink nodes of all of the fault-affected services;
根据所述每条链路的代价值为所述受故障影响的业务计算满足带宽需求的 最短路径。  Calculating, according to the cost value of each link, the shortest path that satisfies the bandwidth requirement of the service affected by the fault.
2、 根据权利要求 1所述的方法, 其特征在于, 所述检测到网络发生故障之 前, 所述方法还包括:  The method according to claim 1, wherein the method further comprises: before the detecting that the network is faulty, the method further comprises:
根据所述网络中链路的剩余带宽计算所述网络中每个业务的源宿节点之间 的最大流, 确定所述每个业务的源宿节点之间的最大流在所述每条链路上分摊 的流量。  Calculating a maximum flow between source and sink nodes of each service in the network according to a remaining bandwidth of the link in the network, determining that a maximum flow between the source and sink nodes of each service is on each of the links The traffic on the distribution.
3、 根据权利要求 2所述的方法, 其特征在于, 所述确定所述每个业务的源 宿节点之间的最大流在所述每条链路上分摊的流量, 具体包括:  The method according to claim 2, wherein the determining the traffic that the maximum flow between the source and sink nodes of each service is allocated on each link includes:
如果任一业务的源宿节点之间承载最大流的链路不唯一, 将所述任一业务 的源宿节点之间的最大流分配在承载最大流的多条链路上; 计算所述任一业务 的源宿节点之间的最大流在所述每条链路上分摊的流量。  If the link carrying the largest flow between the source and sink nodes of any service is not unique, the maximum flow between the source and sink nodes of any of the services is allocated on multiple links carrying the largest flow; The maximum flow between source and sink nodes of a service is allocated traffic on each link.
4、 根据权利要求 3所述的方法, 其特征在于, 所述将所述任一业务的源宿 节点之间的最大流分配在承载最大流的多条链路上, 具体包括:  The method according to claim 3, wherein the allocating the maximum flow between the source and sink nodes of the any service on the multiple links that carry the maximum flow includes:
将所述任一业务的源宿节点之间的最大流分配在承载最大流的多条链路中 剩余带宽最少的链路上。  The maximum flow between the source and sink nodes of any of the services is allocated on the link with the least remaining bandwidth among the plurality of links carrying the largest flow.
5、 根据权利要求 2、 3或 4所述的方法, 其特征在于, 所述检测到网络发 生故障之前, 所述方法还包括: The method according to claim 2, 3 or 4, wherein the detecting the network transmission Before the failure, the method further includes:
如果所述网络中链路的剩余带宽发生变化, 重新计算所述每个业务的源宿 节点之间的最大流。  If the remaining bandwidth of the link in the network changes, the maximum flow between the source and sink nodes of each service is recalculated.
6、 一种路径计算的装置, 其特征在于, 包括:  6. A device for path calculation, comprising:
业务确定单元, 用于检测到网络发生故障后, 确定所有受故障影响的业务; 获取单元, 用于获取所述业务确定单元确定的每个所述受故障影响的业务 的源宿节点之间的最大流在所述网络中每条链路上分摊的流量; 获取所述每条 链路的代价值, 其中, 任一链路的代价值为所述任一链路的流量和除以所述任 一链路的剩余带宽的结果的向上取整值; 所述任一链路的流量和为所有所述受 故障影响的业务的源宿节点之间的最大流在所述任一链路上分摊的流量之和; 路径计算单元, 根据所述获取单元获取的所述每条链路的代价值为所述受 故障影响的业务计算满足带宽需求的最短路径。  a service determining unit, configured to determine, after detecting a network failure, a service that is affected by the fault; and an acquiring unit, configured to acquire, between the source and sink nodes of each of the services affected by the fault determined by the service determining unit The maximum flow is the traffic that is distributed on each link in the network; the cost of each link is obtained, where the cost of any link is the traffic of any of the links and the remainder of any of the links The rounded up value of the result of the bandwidth; the sum of the traffic of any one of the links and the traffic of the maximum flow between the source and sink nodes of all the services affected by the fault on any of the links; a path calculation unit, Calculating, according to the cost of each link acquired by the acquiring unit, a shortest path that satisfies a bandwidth requirement by the service affected by the fault.
7、 根据权利要求 6所述的装置, 其特征在于, 所述装置还包括:  The device according to claim 6, wherein the device further comprises:
最大流计算单元, 用于所述业务确定单元检测到网络发生故障之前, 根据 所述网络中链路的剩余带宽计算所述网络中每个业务的源宿节点之间的最大 流;  a maximum flow calculation unit, configured to calculate, according to a remaining bandwidth of the link in the network, a maximum flow between source and sink nodes of each service in the network, before the service determining unit detects that the network is faulty;
流量确定单元, 用于确定所述最大流计算单元计算得到的所述每个业务的 源宿节点之间的最大流在所述每条链路上分摊的流量。  The traffic determining unit is configured to determine, according to the maximum flow between the source and sink nodes of each service that is calculated by the maximum flow computing unit, the traffic that is allocated on each link.
8、根据权利要求 7所述的装置, 其特征在于, 所述流量确定单元具体用于, 如果任一业务的源宿节点之间承载最大流的链路不唯一, 将所述任一业务的源 宿节点之间的最大流分配在承载最大流的多条链路上; 计算所述任一业务的源 宿节点之间的最大流在所述每条链路上分摊的流量。  The device according to claim 7, wherein the traffic determining unit is specifically configured to: if the link carrying the largest flow between the source and sink nodes of any service is not unique, the service of any one of the services The maximum flow between the source and sink nodes is allocated on multiple links carrying the largest flow; and the traffic that the maximum flow between the source and sink nodes of any of the services is allocated on each link is calculated.
9、根据权利要求 8所述的装置, 其特征在于, 所述流量确定单元具体包括: 第一子单元, 用于如果所述任一业务的源宿节点之间承载最大流的链路不 唯一, 将所述任一业务的源宿节点之间的最大流分配在承载最大流的多条链路 上; 第二子单元, 用于计算所述任一业务的源宿节点之间的最大流在所述每条 链路上分摊的流量。 The device according to claim 8, wherein the traffic determining unit specifically includes: a first subunit, configured to: if the link between the source and sink nodes of the any service carries the largest flow, the link is not unique Allocating a maximum flow between source and sink nodes of any of the services on multiple links carrying the largest flow; And a second subunit, configured to calculate a traffic that is allocated by the maximum flow between the source and sink nodes of the any service on each link.
10、 根据权利要求 9所述的装置, 其特征在于, 所述第一子单元具体用于, 如果所述任一业务的源宿节点之间承载最大流的链路不唯一, 将所述任一业务 的源宿节点之间的最大流分配在承载最大流的多条链路中剩余带宽最少的链路 上。  The device according to claim 9, wherein the first sub-unit is specifically configured to: if the link carrying the largest flow between the source and sink nodes of the any service is not unique, The maximum flow between the source and sink nodes of a service is allocated on the link with the least bandwidth remaining among the multiple links carrying the largest flow.
11、 根据权利要求 7-10中任意一项所述的装置, 其特征在于, 所述最大流 计算单元还用于所述业务确定单元检测到网络发生故障之前, 如果所述网络中 链路的剩余带宽发生变化, 重新计算所述每个业务的源宿节点之间的最大流。  The device according to any one of claims 7 to 10, wherein the maximum flow calculation unit is further configured to: before the service determining unit detects that the network is faulty, if the link in the network The remaining bandwidth changes, and the maximum flow between the source and sink nodes of each service is recalculated.
PCT/CN2014/081071 2014-06-28 2014-06-28 Path calculation method and apparatus WO2015196494A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480057546.9A CN105723667B (en) 2014-06-28 2014-06-28 A kind of method and apparatus of path computing
PCT/CN2014/081071 WO2015196494A1 (en) 2014-06-28 2014-06-28 Path calculation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/081071 WO2015196494A1 (en) 2014-06-28 2014-06-28 Path calculation method and apparatus

Publications (1)

Publication Number Publication Date
WO2015196494A1 true WO2015196494A1 (en) 2015-12-30

Family

ID=54936539

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081071 WO2015196494A1 (en) 2014-06-28 2014-06-28 Path calculation method and apparatus

Country Status (2)

Country Link
CN (1) CN105723667B (en)
WO (1) WO2015196494A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479137A (en) * 2020-04-16 2020-07-31 广州酷狗计算机科技有限公司 Method and device for providing line address, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020067693A1 (en) * 2000-07-06 2002-06-06 Kodialam Muralidharan S. Dynamic backup routing of network tunnel paths for local restoration in a packet network
US20070076601A1 (en) * 2004-04-16 2007-04-05 Yufei Wang Nodes for managing congestion and traffic flow by considering the minimization of link utilization values
CN101399748A (en) * 2007-09-25 2009-04-01 华为技术有限公司 Route computing method and router
CN103650435A (en) * 2013-08-14 2014-03-19 华为技术有限公司 Routing traffic adjusting method, device and controller
CN103685054A (en) * 2013-12-18 2014-03-26 武汉烽火网络有限责任公司 Multipath load balancing method based on service awareness

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461732C (en) * 2006-06-16 2009-02-11 华为技术有限公司 Ethernet technology switching and forwarding method, system and equipment
CN101594555B (en) * 2008-05-30 2012-11-07 华为技术有限公司 Media forwarding method, system and device
CN101692669A (en) * 2009-07-23 2010-04-07 中兴通讯股份有限公司 Method and device for virtual private network label distribution
CN101938424B (en) * 2010-09-15 2013-03-13 北京星网锐捷网络技术有限公司 Method and device for establishing routing table and method and device for transmitting message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020067693A1 (en) * 2000-07-06 2002-06-06 Kodialam Muralidharan S. Dynamic backup routing of network tunnel paths for local restoration in a packet network
US20070076601A1 (en) * 2004-04-16 2007-04-05 Yufei Wang Nodes for managing congestion and traffic flow by considering the minimization of link utilization values
CN101399748A (en) * 2007-09-25 2009-04-01 华为技术有限公司 Route computing method and router
CN103650435A (en) * 2013-08-14 2014-03-19 华为技术有限公司 Routing traffic adjusting method, device and controller
CN103685054A (en) * 2013-12-18 2014-03-26 武汉烽火网络有限责任公司 Multipath load balancing method based on service awareness

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479137A (en) * 2020-04-16 2020-07-31 广州酷狗计算机科技有限公司 Method and device for providing line address, server and storage medium

Also Published As

Publication number Publication date
CN105723667B (en) 2019-02-19
CN105723667A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
US20150055453A1 (en) Detour path calculation method in emergency
CN103650435A (en) Routing traffic adjusting method, device and controller
JP2017507536A (en) SDN controller, data center system, and routing connection method
JP6007799B2 (en) Centralized network control system
CN104283781B (en) A kind of path calculation method and device
CN110661708B (en) Network optimization method, system and network equipment
CN108476175B (en) Transfer SDN traffic engineering method and system using dual variables
JP2010141794A (en) Transport control server, network system, and method of determining aggregate path
CN112804151B (en) Data processing method and device and electronic equipment
JP2011166661A (en) Band control system, band control apparatus, band control method, and band control program
CN104283807A (en) TE tunnel building method and device
JP6084583B2 (en) Flow path change calculation device and flow path change calculation system
WO2012149754A1 (en) Service cross-layer separated path calculation method, device and communication system
KR20150080183A (en) Method and Apparatus for dynamic traffic engineering in Data Center Network
WO2015196494A1 (en) Path calculation method and apparatus
US9001651B2 (en) Method for call admission control in MPLS networks
CN106878356B (en) Scheduling method and computing node
CN105515981A (en) Path computation method, tunnel establishment method, PCC, PCE and path computation system
US20180077085A1 (en) Parameter determination apparatus, parameter determination method and program
WO2018036606A1 (en) Device and method for managing end-to-end connections
WO2015120741A1 (en) Method and controller for notifying bandwidth of cluster system
US9450858B2 (en) Standby bandwidth aware path computation
CN112653623B (en) Relay protection service-oriented route distribution method and device
CN106716935B (en) cross-layer service configuration method and controller
CN106487682B (en) Diameter signaling network routing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895597

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895597

Country of ref document: EP

Kind code of ref document: A1