WO2011026374A1 - 确定路由的方法和装置 - Google Patents

确定路由的方法和装置 Download PDF

Info

Publication number
WO2011026374A1
WO2011026374A1 PCT/CN2010/074726 CN2010074726W WO2011026374A1 WO 2011026374 A1 WO2011026374 A1 WO 2011026374A1 CN 2010074726 W CN2010074726 W CN 2010074726W WO 2011026374 A1 WO2011026374 A1 WO 2011026374A1
Authority
WO
WIPO (PCT)
Prior art keywords
route
routes
resource matching
resource
matching
Prior art date
Application number
PCT/CN2010/074726
Other languages
English (en)
French (fr)
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 IN1901DEN2012 priority Critical patent/IN2012DN01901A/en
Priority to ES10813296.0T priority patent/ES2456895T3/es
Priority to EP10813296.0A priority patent/EP2464139B1/en
Priority to US13/394,374 priority patent/US8719448B2/en
Publication of WO2011026374A1 publication Critical patent/WO2011026374A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q3/00Selecting arrangements
    • H04Q3/64Distributing or queueing
    • H04Q3/66Traffic distributors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/62Wavelength based

Definitions

  • the present invention relates to routing techniques in the field of communications, and more particularly to a method and apparatus for determining routes. Background technique
  • ASON Automatic switched optical network
  • the routing controller as the module responsible for automatic routing calculation, is an important component of the ASON control plane and an important manifestation of its intelligence.
  • Routing controllers in ASON usually use the traditional Open Shortest Path First (OSPF) protocol to obtain a shortest path, but in some cases it is not enough to provide only one path. For example, in some applications, the resource matching problem may be involved. If the matching is unsuccessful, indicating that the path is unreachable, the route calculation from the source node to the sink node fails. Therefore, in some applications of ASON, the K Shortest Paths (KSP) algorithm is used to solve the resource matching problem. That is, the routing controller calculates the K-optimal alternative path, so that the resource matching can provide a condition for the shortest path with resource constraints in the K alternative paths. Therefore, the KSP algorithm is an important function in the routing controller when it is necessary to calculate the K-optimal alternative path.
  • OSPF Open Shortest Path First
  • KSP K Shortest Paths
  • RM Resource Matching
  • KSP KSP module
  • the working process of the processing module in the ASON routing controller is as shown in FIG. 2, including: Step 10: The KSP module receives a routing query request from the source node to the sink node; Step 11, the KSP module calculates K routes and returns to the RM module; Step 12: The RM module performs resource matching on the received K routes. Step 13: The RM module returns the matching result to the query initiator.
  • the KSP module stops calculating only when all the K-optimal alternative paths are calculated, or even if the K-optimal alternate route is not calculated, but there are no other alternate routes in the network. After that, the KSP module sends all the calculated paths to the RM module for resource matching.
  • KSP algorithm used to calculate K routes is relatively mature. Regardless of the KSP algorithm of the scheme, the time complexity of the entire KSP algorithm is proportional to the K value.
  • the K value is the main parameter of the KSP algorithm, which is preset. If the K value is set too small, the number of alternative routes obtained is small, and the route that satisfies the resource matching requirement may not be found. If the K value is set too large , then the KSP algorithm takes a long time. It can be seen that there is a contradiction between reducing the time-consuming of the KSP algorithm and satisfying the resource matching requirements when determining the route. Summary of the invention
  • the present invention provides a method and apparatus for determining a route to solve the problem of the contradiction between the time-consuming of reducing the KSP algorithm and satisfying the resource matching requirement in the prior art.
  • the present invention provides the following technical solutions:
  • the present invention provides a method for determining a route, including:
  • the preset route number semaphore N after receiving the route query request, performs a K-optimal path algorithm, calculates a route according to the route number semaphore N, and calculates a route for each group of N routes, and performs the group route.
  • N is a positive integer and 1 ⁇ N ⁇ K.
  • the method further includes: determining whether all routes are calculated, and stopping the K-optimal path calculation process when all the routes are calculated.
  • the method further includes: when the resource matching is unsuccessful, determining whether all routes are calculated and matched, and ending the route determining process when all routes are calculated and matched.
  • the calculating routes are performed in the order of the advantages and disadvantages of the paths; the resource matching is performed according to the order of the paths of the routes in the set of routes.
  • N 2, 3, 4 or 5.
  • the present invention also provides an apparatus for determining a route, including:
  • the route calculation module is configured to preset a route number semaphore N, and after receiving the route query request, execute a K-optimal path algorithm, calculate a route according to the route number semaphore N, and calculate each route as a group of outputs.
  • a K-optimal path algorithm calculates a route according to the route number semaphore N, and calculate each route as a group of outputs.
  • the resource matching module is configured to perform resource matching on the received set of routes. If the route that matches the route is obtained, the route is used as the determined route, and the route calculation module is notified to stop calculating the route; otherwise, the next received Group routing performs resource matching to determine the route;
  • N is a positive integer and 1 ⁇ N ⁇ K.
  • the route calculation module is further configured to determine whether all routes are calculated, and stop the K-optimal path calculation process when all routes are calculated.
  • the resource matching module is further configured to end the route determining process when the resource matching is unsuccessful and all route calculations are determined and matched.
  • the route calculation module calculates and outputs a route according to the order of the path; the resource matching module is further configured to perform resource matching on the route outputted by the route calculation module according to the order of the path.
  • N is 2, 3, 4 or 5.
  • the method and apparatus of the present invention when performing a K-optimal path algorithm, obtains a resource matching for a set of routes less than K, and then performs a K-optimal path algorithm if the route exists in the set of routes. If the resource matches the successful route, the K-optimal path algorithm can be terminated early, because the success of the resource matching in the K alternative paths can be basically ensured by setting an appropriate K value, so the method and device of the present invention ensure on the one hand It is able to obtain a route with successful resource matching in the K-optimal path algorithm.
  • FIG. 1 is a schematic structural diagram of an ASON routing controller in the prior art
  • FIG. 2 is a working flow chart of a processing module in an ASON routing controller
  • FIG. 3 is a flow chart of a method for determining a route according to the present invention.
  • FIG. 4 is a flowchart of a method for determining a route according to an embodiment of the present invention.
  • FIG. 5 is an example of a network topology diagram according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for determining a route according to an embodiment of the present invention. detailed description
  • the routes when performing the K-optimal path algorithm to calculate an alternative route, after calculating a set of routes whose number is less than K, the routes are output, and then the resources are matched to the routes, and if the resources are successfully matched in the routes, The route is used as the determined route, otherwise the resources of other routes obtained by the K-optimal path algorithm are matched to determine the route.
  • This method can be used in the ASON system.
  • the routing controller executes the method after receiving the routing query request, and can also be used in other similar applications that need to determine the routing.
  • the utility model is characterized in that the calculation route and the verification route are carried out, for example, performing resource matching. In the implementation, the route calculated is verified at the same time as the route is calculated, so as to improve the efficiency of determining the route work.
  • FIG. 3 is a flow chart of a method for determining a route according to the present invention. The method includes:
  • Step 20 The preset route number semaphore N, after receiving the route query request, execute a K-optimal path algorithm, and calculate a route according to the route number semaphore N, and calculate N routes as a group of outputs.
  • the group route performs resource matching, where N is a positive integer and 1 ⁇ N ⁇ K.
  • Step 21 Determine whether a route with a successful resource matching is obtained in the group of routes. If yes, go to step 22. If not, go to step 23.
  • Step 22 Stop calculating the route, and use the route matching the resource as the determined route, and end the route determining process.
  • Step 23 Perform resource matching on the output of the next set of routes to determine the route.
  • the specific process of the method for determining a route by using the KSP algorithm in this embodiment is as shown in FIG. 4, and includes the following steps:
  • Step 30 preset route number semaphore ⁇ and global identifier; route number semaphore ⁇ is used to identify the number of routes calculated and output each time the optimal path algorithm is executed, where ⁇ is a positive integer and 1 ⁇ ⁇ ⁇ ; The global identifier is used to identify whether the resource matching is successful, and the initial state of the global identifier is set to "failed".
  • the semaphore of the route number can be modified according to the actual situation of the network.
  • the initial state of the global identifier is set to "failed”. After the resource matching for the route is successful, the status of the global identifier is changed to "success".
  • the global identifier can be expressed in binary. When it is 0, it indicates that the resource match fails. When it is 1, it indicates that the resource match succeeds.
  • the initial value of the global identifier is set to 0. After the resources are successfully matched to the route, the value of the global identifier is changed to 1.
  • Step 31 Receive a route query request, where the query request includes a source node and a sink node, and the root According to the route query request, the KSP calculation process of the route is started.
  • Step 32 Read the global identifier, determine whether the status of the global identifier is "success” or "failure”. If it is "successful”, go to step 33; if it is "failed”, go to step 34.
  • Step 33 Stop the calculation of the route, and use the route with the matching resource as the final route.
  • the route determination process ends.
  • Step 34 Execute the K-optimal path algorithm, calculate and output N routes according to the route number semaphore N, and then perform steps 35 and 36 respectively.
  • Step 35 Determine whether all routes are calculated. If yes, stop the KSP calculation process; if no, return to step 32.
  • Step 36 Perform resource matching on the output N routes to determine whether the resource matching is successful. If yes, go to step 37. If it fails, go to step 38.
  • Step 37 Modify the status of the global identifier to "success", then return to step 32.
  • Step 38 Whether all the routes are calculated and matched, and if yes, the routing determination process is ended; if not, return to step 36.
  • Step 32 and step 36 are processed in parallel.
  • step 35 returns to step 32, the process proceeds to step 34 again. It should continue to execute the same K-optimal path algorithm as in the previous step 34, and calculate and output N routes again according to the route number semaphore N, and It is not duplicated with the route already obtained in the previous K-optimal path algorithm.
  • Step 38 returns to step 36 to perform resource matching on the output of the next set of N routes.
  • the process of performing resource matching is in a wait state until another set of N routes is calculated and output. It can be seen that if the routing number semaphore is set to a small value, the process matching time of the resource matching is shorter, which helps to improve the efficiency of the query routing.
  • the preset route number semaphore is greater than one. In general, calculating the KSP calculation time for two routes can Reduce to less than 1/10 of the 10 routes; Calculate the KSP calculation time of 5 routes to less than 1/2 of the 10 routes. Therefore, it is preferred that the preset route number semaphore is 2-5.
  • the method of this embodiment will be further described below by taking the network topology diagram shown in FIG. 5 as an example.
  • the nodes are marked in the ellipse.
  • the link cost is indicated in the middle of the arrow, and the node port number is marked near the end of the ellipse.
  • the preset system K value is 10, which basically guarantees the success of resource matching in the K alternative paths, and then if the K alternative routes are calculated according to the prior art method and then matched, the slave nodes in the experiment 1 It takes about 172ms to establish a service to node 3.
  • the preset system K value is 10, and the preset route number semaphore is 2.
  • the K-optimal path algorithm After the K-optimal path algorithm is executed, after the two alternative routes are calculated, the two alternative routes are obtained.
  • the resource matching is performed and the K-optimal path algorithm is continued at the same time. If the matching is successful, it only takes 16 ms.
  • the resources in the first set of routes that are output may not be matched successfully.
  • the resources of the first group are matched, if two routes of the second group are also If it is calculated, the resource matching of the second group of routes is continued, and so on.
  • the poor case is that the resource matching is successful until the 9th or 10th route is matched.
  • the efficiency is basically the same as that of the prior art. This is a special case. In the normal system, most of the resources have been successfully matched before. .
  • the present invention provides an apparatus for determining a route.
  • the apparatus in this embodiment will be described below.
  • the apparatus in this embodiment can be implemented by means of software, hardware or a combination of both.
  • the device structure is divided by function modules, and each module can be a device or an integral part of the same device in the implementation.
  • One of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program instructing related hardware, and the program may be stored in a computer readable storage medium, such as: ROM/RAM. , disk or disc, etc.
  • the device structure for determining a route in this embodiment is as shown in FIG. 6, and includes: a route calculation module. And resource matching module;
  • the route calculation module is configured to preset the route number semaphore N. After receiving the route query request, the K-optimal path algorithm is executed according to the preset K value, and the route is calculated according to the route number semaphore N, and each route is calculated. That is, as a group of outputs to the resource matching module;
  • the resource matching module is configured to perform resource matching on the received set of routes. If a route with a matching match is obtained, the route is used as the determined route, and the route calculation module is notified to stop calculating the route; if no match is found in the set of routes A successful route performs resource matching on the next set of received routes to determine the route.
  • the route calculation module is further configured to determine whether all routes are calculated, and stop the K-optimal path calculation process when all the routes are calculated.
  • the resource matching module is further configured to end the route determining process when the resource matching is unsuccessful and all route calculations are determined and matched.
  • the route calculation module executes the K-optimal path algorithm
  • the route can be calculated and output according to the order of the path; thus, the resource matching module is further configured to perform resource matching on the routes output by the route calculation module according to the order of the path.
  • N is preferably 2, 3, 4 or 5.
  • the K-optimal path algorithm when executed, after a set of routes smaller than K is obtained, resource matching is performed on the routes, and at the same time, the K-optimal path algorithm is executed, if the route is in the group If there is a route with a successful resource match, the K-optimal path algorithm can be terminated early.
  • the calculation of K routes and resource matching has significantly improved the efficiency. If no route with a matching resource is found in the first group of routes, the second group that is calculated is found. In the actual system, the route with the matching resource is found before the K routes are calculated.
  • the success of resource matching in K alternative paths can be basically guaranteed by setting an appropriate K value.
  • the path algorithm requires time, and the method of the embodiment ensures that the route matching the resource matching can be obtained in the K-optimal path algorithm on the one hand, and the system can exit the K-optimal path calculation in advance on the other hand, so it helps to solve the problem.
  • the contradiction between the time-consuming "and the "matching resource matching requirements" of the KSP algorithm is reduced, thereby improving the efficiency of determining the route.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Navigation (AREA)

Abstract

本发明公开了一种确定路由的方法与装置,该方法包括:预设路由数信号量N,在收到路由查询请求后,执行K优路径算法,根据路由数信号量N,分组计算路由,每计算出N条路由即作为一组输出,对该组路由进行资源匹配;若在该组路由中得到匹配成功的路由,则停止计算路由,将该资源匹配成功的路由作为确定的路由;否则,对输出的下一组路由进行资源匹配以确定出路由;其中,N为正整数且1<N<K。本发明的方法和装置能够保证在K优路径算法中获得资源匹配成功的路由,并能够帮助系统提前退出K优路径计算, 所以有助于解决"减少KSP算法的耗时" 与 "满足资源匹配要求"之间的矛盾,从而提高了确定路由的效率。

Description

确定路由的方法和装置 技术领域
本发明涉及通信领域中路由技术, 特别是涉及一种确定路由的方法和 装置。 背景技术
自动交换光网络 ( Automatic switched optical network, ASON )是具有 智能特性的光传送技术。 它利用信令、 路由、 自动发现等标准协议, 实现 了路由自动计算, 连接自动建立、 网络资源自动发现等功能, 提高了光传 送网的自动控制能力, 使光传送网同 IP网络一样具有了智能特性。 其中, 路由控制器作为负责路由自动计算的模块, 是 ASON控制平面的重要组成 模块, 也是其智能化的一个重要体现。
ASON 中路由控制器通常会采用传统的开放最短路径优先 (Open Shortest Path First, OSPF )协议来获取一条最短路径, 但是在某些场合只提 供一条路径是不够的。 譬如在某些应用中可能会涉及到资源匹配问题, 如 果匹配不成功, 表示这条路径不通, 则从源节点到宿节点的路由计算就失 败了。 所以在 ASON的某些应用中, 采用了 K优路径 ( K Shortest Paths, KSP )算法解决资源匹配问题。 即路由控制器会计算出 K优备选路径, 从 而为资源匹配能够在 K条备选路径中, 确定出一条有资源约束的最短路径 提供了条件。 因此, 在需要计算 K优备选路径的场合, KSP算法是路由控 制器中的一个重要功能。
如图 1所示, 在 ASON路由控制器中有两个处理模块, 一个是资源匹 配( Resource Matching, RM )模块,主要提供资源匹配功能; 另一个是 KSP 模块, 用于接收路由查询请求并且进行计算, 然后将计算出的路由发送给 RM模块, RM模块进行资源匹配处理。 ASON路由控制器内处理模块的工 作过程如图 2所示, 包括: 步驟 10, KSP模块收到源节点到宿节点的路由 查询请求; 步驟 11 , KSP模块计算 K条路由并返回给 RM模块; 步驟 12, RM模块对收到的 K条路由进行资源匹配; 步驟 13 , RM模块将匹配结果 返回给查询发起方。 根据这种工作方式, 只有当 K优备选路径全部计算完 毕, 或者即使 K优备用路由未计算完毕, 但在网络中已无其它备用路由时, KSP模块停止计算。 之后, KSP模块将计算得到的所有路径发送给 RM模 块进行资源匹配。
针对 KSP算法的研究文献很多,目前用于计算出 K条路由的 KSP算法 相对比较成熟。 无论哪种方案的 KSP算法, 整个 KSP算法的时间复杂度都 与 K值成正比。 K值作为 KSP算法的主要参数, 是预先设定的, K值若设 置过小, 则得到的备选路由的数目较少, 可能无法从中找到满足资源匹配 需求的路由; 若 K值设置过大, 则 KSP算法耗时较长。 可以看出, 在确定 路由时, 减少 KSP算法的耗时与满足资源匹配要求之间存在矛盾。 发明内容
本发明提供一种确定路由的方法与装置, 以解决现有技术中减少 KSP 算法的耗时与满足资源匹配要求之间存在矛盾的问题。
为解决上述问题, 本发明提供如下的技术方案:
本发明提供一种确定路由的方法, 包括:
预设路由数信号量 N, 在收到路由查询请求后, 执行 K优路径算法, 根据路由数信号量 N, 分组计算路由, 每计算出 N条路由即作为一组输出, 对该组路由进行资源匹配;
若在该组路由中得到资源匹配成功的路由, 则停止计算路由, 将该资 源匹配成功的路由作为确定的路由; 否则, 对输出的下一组路由进行资源 匹配以确定出路由; 其中, N为正整数且 1 < N < K。
其中, 该方法进一步包括: 判断是否所有路由计算完毕, 并在所有路 由计算完毕时, 停止 K优路径计算流程。
其中, 该方法进一步包括: 在所述资源匹配不成功时, 判断是否所有 路由计算并匹配完毕, 并在所有路由计算并匹配完毕时, 结束该路由确定 流程。
其中, 所述计算路由是按照路径优劣的顺序进行的; 所述资源匹配是 按照所述一组路由中路由的路径优劣的顺序进行的。
其中, 所述 N为 2、 3、 4或 5。
本发明还提供了一种确定路由的装置, 包括:
路由计算模块, 用于预设路由数信号量 N, 在收到路由查询请求后, 执行 K优路径算法, 根据路由数信号量 N, 分组计算路由, 每计算出 N条 路由即作为一组输出至资源匹配模块;
资源匹配模块, 用于对收到的一组路由进行资源匹配, 若得到匹配成 功的路由, 则将该路由作为确定的路由, 并通知路由计算模块停止计算路 由; 否则, 对收到的下一组路由进行资源匹配以确定出路由;
其中, N为正整数且 1 < N < K。
其中, 所述路由计算模块进一步用于判断是否所有路由计算完毕, 并 在所有路由计算完毕时, 停止 K优路径计算流程。
其中, 所述资源匹配模块进一步用于在所述资源匹配不成功且判定所 有路由计算并匹配完毕时, 结束该路由确定流程。
其中, 所述路由计算模块按照路径优劣的顺序计算并输出路由; 所述 资源匹配模块进一步用于对所述路由计算模块输出的路由按照路径优劣的 顺序进行资源匹配。
其中, 所述 N为 2、 3、 4或 5。 本发明的方法和装置, 在执行 K优路径算法时, 得出数目小于 K的一 组路由之后即对这些路由进行资源匹配,与此同时继续执行 K优路径算法, 如果这一组路由中存在资源匹配成功的路由, 则 K优路径算法可以提前结 束, 因为可以通过设置合适的 K值来基本保证在 K条备选路径中获得资源 匹配的成功, 所以本发明的方法和装置一方面保证了能够在 K优路径算法 中获得资源匹配成功的路由, 另一方面能够帮助系统提前退出 K优路径计 算, 所以有助于解决 "减少 KSP算法的耗时" 与 "满足资源匹配要求" 之 间的矛盾, 从而提高了确定路由的效率。 附图说明
图 1为现有技术中 ASON路由控制器的结构示意图;
图 2为 ASON路由控制器内处理模块的工作流程图;
图 3为本发明确定路由的方法流程图;
图 4为本发明实施例确定路由的方法流程图;
图 5为本本发明实施例的网络拓朴图示例;
图 6为本发明实施例确定路由的装置结构示意图。 具体实施方式
下面结合附图对本发明实施例中的技术方案作出说明。 附图用于帮助 理解实施例的技术方案, 在实现中可以不限于附图所示的形式。
在本发明中, 执行 K优路径算法计算备选路由时, 在计算得出数目小 于 K的一组路由之后即输出这些路由, 然后对这些路由进行资源匹配, 如 果在这些路由中得到资源匹配成功的路由, 则将该路由作为确定的路由, 否则再继续对 K优路径算法得到的其他路由进行资源匹配以确定路由。 这 种方法可以用于 ASON系统中, 路由控制器在接收到路由查询请求后执行 该方法, 也可以用于其他类似的需要确定路由的应用场合, 这些应用场合 的特点是包括计算路由和验证路由例如进行资源匹配两部分, 实现时, 在 计算路由的同时即对已经计算出的路由进行验证, 以提高确定路由工作的 效率。
图 3为本发明确定路由的方法流程图。 该方法包括:
步驟 20、 预设路由数信号量 N, 在收到路由查询请求后, 执行 K优路 径算法, 根据路由数信号量 N, 分组计算路由, 每计算出 N条路由即作为 一组输出 , 对该组路由进行资源匹配, 其中, N为正整数且 1 < N < K。
步驟 21、 判断是否在该组路由中得到资源匹配成功的路由, 若得到, 则执行步驟 22; 若未得到, 则执行步驟 23。
步驟 22、 停止计算路由, 将该资源匹配成功的路由作为确定的路由, 结束该路由确定流程。
步驟 23、 对输出的下一组路由进行资源匹配以确定出路由。
下面结合具体实施例进一步说明本发明确定路由的方法。
本实施例中采用 KSP算法确定路由的方法具体流程如图 4所示, 包括 以下步驟:
步驟 30: 预设路由数信号量 Ν和全局标识量; 路由数信号量 Ν用以标 识在执行 Κ优路径算法时每次计算并输出的路由数, 其中, Ν为正整数且 1 < Ν < Κ; 全局标识量用以标识资源匹配是否成功, 该全局标识量的初始 状态设置为 "失败"。
本步驟中, 该路由数信号量 Ν可根据网络的实际情况修改。 该全局标 识量的初始状态设置为 "失败", 在对路由进行资源匹配成功后, 该全局标 识量的状态修改为 "成功"。 例如, 该全局标识量可以二进制表示: 为 0时, 表示资源匹配失败, 为 1 时, 表示资源匹配成功。 全局标识量的初始值设 置为 0, 在对路由进行资源匹配成功后, 将该全局标识量的值修改为 1。
步驟 31 : 接收路由查询请求, 该查询请求中包含源节点和宿节点, 根 据该路由查询请求, 开始进入路由的 KSP计算流程。
步驟 32: 读取全局标识量, 判断该全局标识量的状态为 "成功" 还是 "失败", 若为 "成功", 则执行步驟 33; 若为 "失败", 则执行步驟 34。
步驟 33: 停止计算路由, 将资源匹配成功的路由作为最终确定的路由, 该路由确定流程结束。
步驟 34: 执行 K优路径算法, 根据路由数信号量 N, 计算并输出 N条 路由, 之后, 分别执行步驟 35和步驟 36。
步驟 35: 判断是否所有路由计算完毕, 若是, 则停止 KSP计算流程; 若否, 返回步驟 32。
步驟 36: 对输出的 N条路由进行资源匹配, 判断资源匹配是否成功, 若成功, 则执行步驟 37; 若失败, 则执行步驟 38。
步驟 37: 将全局标识量的状态修改为 "成功", 之后, 返回步驟 32。 步驟 38: 是否所有路由计算并匹配完毕, 若是, 则结束该路由确定流 程; 若否, 返回步驟 36。
其中, 步驟 32和步驟 36并行处理。
根据 KSP算法的特性, 步驟 35返回步驟 32之后, 再次进入步驟 34 应当是继续执行与上次步驟 34中的同一 K优路径算法,根据路由数信号量 N, 再次计算并输出 N条路由, 并且不与前次 K优路径算法中已得出的路 由相重复。
步驟 38返回步驟 36后, 对输出的下一组 N条路由进行资源匹配。 进入步驟 34后, 执行资源匹配的进程处于等待状态, 直到计算并输出 另一组 N条路由。 可以看出路由数信号量如果设置为一个较小的数值, 则 资源匹配的进程等待时间较短, 于是有助于提高查询路由的效率。 但对于 ASON系统来说, 由于 ASON系统本身有提供保护路由的需求, 所以优选 预设路由数信号量大于 1。 一般来说, 计算 2条路由的 KSP计算时间可以 减少到计算 10条路由的 1/10以下; 计算 5条路由的 KSP计算时间可以减 少到计算 10条路由的 1/2以下。 所以, 优选预设路由数信号量为 2-5。
下面以图 5中所示的网络拓朴图为例对本实施例方法再作进一步说明。 在图 5 中, 椭圆内标出了各个节点, 按试验所用数据, 箭头中部标出了链 路开销, 椭圆端部附近标出了节点端口号。 预置系统 K值为 10, 该值基本 保证在 K条备选路径中获得资源匹配的成功, 然后若按现有技术的方法, 计算出 K条备选路由然后进行匹配, 在试验中从节点 1建立业务至节点 3 约需 172ms。 若按本实施例的方法, 预置系统 K值为 10, 并且预置路由数 信号量为 2, 执行 K优路径算法之后, 在计算得到 2条备选路由后, 对这 两条备选路由作资源匹配并同时继续进行 K优路径算法, 若匹配成功, 则 仅耗时 16ms。 当然在一些实际系统中可能不会在输出的第一组路由中资源 匹配成功, 在这种情况下, 在对第一组的 2个路由完成资源匹配后, 如果 第二组的 2个路由也已计算得出, 则继续对这第二组路由进行资源匹配, 以此类推, 对 K=10的 Κ优路径算法得出的路由, 以 2个为一组分批输出 并作资源匹配,最差的情况是直到对第 9或 10条路由进行资源匹配才成功, 此时效率与现有技术的基本相同, 这是一种特殊情况, 在通常的系统中, 大多在此之前已经资源匹配成功。
基于上述方法, 本发明提供了一种确定路由的装置。 以下对本实施例 中的装置作出说明。 本实施例中的装置可以利用软件、 硬件或者二者结合 的方式实现。 以下按功能模块来划分装置结构, 在实现中各模块可以各自 成为设备, 或为同一设备的组成部分。 本领域普通技术人员可以理解实现 上述实施例方法中的全部或部分步驟是可以通过程序来指令相关的硬件来 完成, 所述的程序可以存储于计算机可读取存储介质中, 如: ROM/RAM、 磁碟或光盘等。
本实施例中的确定路由的装置结构如图 6所示, 包括: 路由计算模块 和资源匹配模块;
路由计算模块用于预设路由数信号量 N, 在收到路由查询请求后, 按 照预设的 K值执行 K优路径算法, 根据路由数信号量 N, 分组计算路由, 每计算出 N条路由即作为一组输出至资源匹配模块;
资源匹配模块用于对收到的一组路由进行资源匹配, 若得到匹配成功 的路由, 则将该路由作为确定的路由, 并通知路由计算模块停止计算路由; 若在该组路由中未得到匹配成功的路由, 则对收到的下一组路由进行资源 匹配以确定路由。
所述路由计算模块进一步用于判断是否所有路由计算完毕, 并在所有 路由计算完毕时, 停止 K优路径计算流程。
所述资源匹配模块进一步用于在所述资源匹配不成功且判定所有路由 计算并匹配完毕时, 结束该路由确定流程。
路由计算模块执行 K优路径算法时可以按照路径优劣的顺序计算并输 出路由; 这样, 资源匹配模块进一步用于对路由计算模块输出的路由按照 路径优劣的顺序进行资源匹配。
其中, N值优选为 2、 3、 4或 5。
根据本实施例的技术方案, 在执行 K优路径算法时, 得出数目小于 K 的一组路由之后即对这些路由进行资源匹配, 与此同时继续执行 K优路径 算法, 如果这一组路由中存在资源匹配成功的路由, 则 K优路径算法可以 提前结束。 相比较于现有技术中计算出 K条路由再进行资源匹配的做法, 显著地提高了效率。 如果在第一组路由中没有找到资源匹配成功的路由, 则再从计算得到的第二组中寻找, 在实际系统中, 往往在计算出全部 K条 路由之前就已经找到资源匹配成功的路由。 可以通过设置合适的 K值来基 本保证在 K条备选路径中获得资源匹配的成功。
因为进行资源匹配以及输出、 接收分组的路由所需时间远远小于 K优 路径算法所需时间, 而使用本实施例的方法一方面保证了能够在 K优路径 算法中获得资源匹配成功的路由, 另一方面能够帮助系统提前退出 K优路 径计算, 所以有助于解决 "减少 KSP算法的耗时" 与 "满足资源匹配要求" 之间的矛盾, 从而提高了确定路由的效率。
以上所述, 仅为本发明的较佳实施例, 并非用于限定本发明的保护范 围。

Claims

权利要求书
1、 一种确定路由的方法, 其特征在于, 包括:
预设路由数信号量 N, 在收到路由查询请求后, 执行 K优路径算法, 根据路由数信号量 N, 分组计算路由, 每计算出 N条路由即作为一组输出, 对该组路由进行资源匹配;
若在该组路由中得到资源匹配成功的路由, 则停止计算路由, 将该资 源匹配成功的路由作为确定的路由; 否则, 对输出的下一组路由进行资源 匹配以确定出路由;
其中, N为正整数且 1 < N < K。
2、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 判断是否所有路由计算完毕, 并在所有路由计算完毕时, 停止 K优路 径计算流程。
3、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 在所述资源匹配不成功时, 判断是否所有路由计算并匹配完毕, 并在 所有路由计算并匹配完毕时, 结束该路由确定流程。
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 所述计算路 由是按照路径优劣的顺序进行的;
所述资源匹配是按照所述一组路由中路由的路径优劣的顺序进行的。
5、 根据权利要求 4所述的方法, 其特征在于, 所述 N为 2、 3、 4或 5。
6、 一种确定路由的装置, 其特征在于, 包括:
路由计算模块, 用于预设路由数信号量 N, 在收到路由查询请求后, 执行 K优路径算法, 根据路由数信号量 N, 分组计算路由, 每计算出 N条 路由即作为一组输出至资源匹配模块;
资源匹配模块, 用于对收到的一组路由进行资源匹配, 若得到匹配成 功的路由, 则将该路由作为确定的路由, 并通知路由计算模块停止计算路 由; 否则, 对收到的下一组路由进行资源匹配以确定出路由; 其中, N为正整数且 1 < N < K。
7、 根据权利要求 6所述的装置, 其特征在于, 所述路由计算模块进一 步用于判断是否所有路由计算完毕, 并在所有路由计算完毕时, 停止 K优 路径计算流程。
8、 根据权利要求 6所述的装置, 其特征在于, 所述资源匹配模块进一 步用于在所述资源匹配不成功且判定所有路由计算并匹配完毕时, 结束该 路由确定流程。
9、 根据权利要求 6至 8任一项所述的装置, 其特征在于, 所述路由计 算模块按照路径优劣的顺序计算并输出路由;
所述资源匹配模块进一步用于对所述路由计算模块输出的路由按照路 径优劣的顺序进行资源匹配。
10、 根据权利要求 9所述的装置, 其特征在于, 所述 N为 2、 3、 4或
PCT/CN2010/074726 2009-09-07 2010-06-29 确定路由的方法和装置 WO2011026374A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
IN1901DEN2012 IN2012DN01901A (zh) 2009-09-07 2010-06-29
ES10813296.0T ES2456895T3 (es) 2009-09-07 2010-06-29 Método y dispositivo de determinación de ruta
EP10813296.0A EP2464139B1 (en) 2009-09-07 2010-06-29 Route determination method and device
US13/394,374 US8719448B2 (en) 2009-09-07 2010-06-29 Route determination method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910161960.5 2009-09-07
CN200910161960.5A CN101646108A (zh) 2009-09-07 2009-09-07 确定路由的方法和装置

Publications (1)

Publication Number Publication Date
WO2011026374A1 true WO2011026374A1 (zh) 2011-03-10

Family

ID=41657778

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/074726 WO2011026374A1 (zh) 2009-09-07 2010-06-29 确定路由的方法和装置

Country Status (7)

Country Link
US (1) US8719448B2 (zh)
EP (1) EP2464139B1 (zh)
CN (1) CN101646108A (zh)
ES (1) ES2456895T3 (zh)
IN (1) IN2012DN01901A (zh)
PT (1) PT2464139E (zh)
WO (1) WO2011026374A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101646108A (zh) * 2009-09-07 2010-02-10 中兴通讯股份有限公司 确定路由的方法和装置
US9276838B2 (en) * 2012-10-05 2016-03-01 Futurewei Technologies, Inc. Software defined network virtualization utilizing service specific topology abstraction and interface
CN105282023B (zh) * 2014-06-30 2020-04-24 中兴通讯股份有限公司 一种计算路径的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052235A (zh) * 2007-05-08 2007-10-10 华为技术有限公司 用于ason专用保护的业务梳理方法和装置
CN101227248A (zh) * 2008-01-29 2008-07-23 中兴通讯股份有限公司 业务路径建立方法
CN101321134A (zh) * 2008-07-21 2008-12-10 西安电子科技大学 动态网络条件下的服务质量路由选择方法
CN101646108A (zh) * 2009-09-07 2010-02-10 中兴通讯股份有限公司 确定路由的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6396905B2 (en) * 1997-12-15 2002-05-28 Siemens Information And Communication Networks, Inc. Method and apparatus for routing blocked telephone calls
US6829347B1 (en) * 2001-12-14 2004-12-07 Nortel Networks Limited Constraint based routing
US7162632B2 (en) 2002-09-20 2007-01-09 The Research Foundation Of Suny Efficient optical network design using multi-granular optical cross-connects with wavelength band switching

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052235A (zh) * 2007-05-08 2007-10-10 华为技术有限公司 用于ason专用保护的业务梳理方法和装置
CN101227248A (zh) * 2008-01-29 2008-07-23 中兴通讯股份有限公司 业务路径建立方法
CN101321134A (zh) * 2008-07-21 2008-12-10 西安电子科技大学 动态网络条件下的服务质量路由选择方法
CN101646108A (zh) * 2009-09-07 2010-02-10 中兴通讯股份有限公司 确定路由的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2464139A4 *

Also Published As

Publication number Publication date
EP2464139A1 (en) 2012-06-13
CN101646108A (zh) 2010-02-10
US8719448B2 (en) 2014-05-06
ES2456895T3 (es) 2014-04-23
EP2464139B1 (en) 2014-02-26
US20120166674A1 (en) 2012-06-28
PT2464139E (pt) 2014-04-14
IN2012DN01901A (zh) 2015-07-24
EP2464139A4 (en) 2013-04-24

Similar Documents

Publication Publication Date Title
US11082262B2 (en) Flow entry generating method and apparatus
US10284389B2 (en) High availability for distributed network services in an extended bridge
CN101483539B (zh) 一种获取路径的方法、路径计算单元和系统
US10148595B2 (en) Handling dynamic port/LAG changes without breaking communication in an extended bridge
US20200244574A1 (en) Path computation method, message responding method, and related device
WO2013053276A1 (zh) 一种网络路由收敛处理方法和装置
CN101729385B (zh) 一种路径计算及建立方法、装置和系统
WO2014047784A1 (zh) 报文转发路径确定方法及网络设备、控制设备
CN101309122A (zh) 时钟跟踪关系建立方法及时钟跟踪关系计算装置
US9984028B2 (en) Redundancy for port extender chains
WO2014106387A1 (zh) 建立控制通道的方法、转发设备和控制设备
WO2015035616A1 (zh) 跨网通信方法及装置
WO2019000953A1 (zh) 一种实现Mux机的方法、设备及系统
Liang et al. Blockchain-based efficient recovery for secure distributed control in software defined optical networks
WO2011026374A1 (zh) 确定路由的方法和装置
WO2015120602A1 (zh) 网络路径计算方法、装置和系统
WO2017152585A1 (zh) 路由器之间的消息交互方法和装置
WO2011003260A1 (zh) 一种自动交换光网络中业务迁移的方法和装置
WO2015054826A1 (zh) 一种发送交叉命令的方法和装置
Martínez et al. Experimental validation of dynamic restoration in GMPLS-controlled multi-layer networks using PCE-based global concurrent optimization
WO2014166453A1 (zh) 路径计算单元、路径计算客户端、负荷分担方法及系统
WO2017063166A1 (zh) 一种过中断链路建立标签交换路径的方法及装置
CN105684362B (zh) 流保留协议的第一协议实体与路由选择协议的第二协议实体之间的互相配合
CN113905291A (zh) 连接建立方法、设备和存储介质
JP6113157B2 (ja) 通信ネットワークにおいてルーターをスイッチオフする方法と、この方法を実施するルーター

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: 10813296

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 1901/DELNP/2012

Country of ref document: IN

WWE Wipo information: entry into national phase

Ref document number: 13394374

Country of ref document: US

Ref document number: 2010813296

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE