WO2016058299A1 - Path computation method, tunnel establishment method, pcc, pce, path computation system and storage medium - Google Patents

Path computation method, tunnel establishment method, pcc, pce, path computation system and storage medium Download PDF

Info

Publication number
WO2016058299A1
WO2016058299A1 PCT/CN2015/072148 CN2015072148W WO2016058299A1 WO 2016058299 A1 WO2016058299 A1 WO 2016058299A1 CN 2015072148 W CN2015072148 W CN 2015072148W WO 2016058299 A1 WO2016058299 A1 WO 2016058299A1
Authority
WO
WIPO (PCT)
Prior art keywords
calculation
constraint
path
pce
pcc
Prior art date
Application number
PCT/CN2015/072148
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 中兴通讯股份有限公司
Publication of WO2016058299A1 publication Critical patent/WO2016058299A1/en

Links

Images

Definitions

  • the present invention relates to the field of routing algorithms, and in particular, to a method for calculating a road, a method for establishing a tunnel, a PCC, a PCE, a computing system, and a storage medium.
  • the Path Computation Element is an entity that can calculate the path between any nodes in the network. It can be integrated into the router or exist as a separate entity in the network. It is used for path calculation. Count the road.
  • the Path Computation Clients are used to send a calculation request message to the PCE, and establish a path link after receiving the response with the calculation result.
  • PCEP Path Computation Element Communication Protocol
  • embodiments of the present invention are expected to provide a method for calculating a road, a method for establishing a tunnel, a PCC, a PCE, a computing system, and a storage medium.
  • an embodiment of the present invention provides a method for calculating a path, the method comprising: a path calculation unit PCE receiving a calculation request from a path calculation client PCC, wherein the calculation request carries a basic calculation path Constraint and custom algorithm constraint transaction constraint information; the PCE performs a calculation based on the basic algorithm constraint and the custom algorithm constraint to obtain a first calculation result; the PCE uses the first calculation path The result is sent to the PCC.
  • the method further includes: when the PCE cannot identify the custom calculation path constraint, only based on the The basic calculation path constraint performs a calculation to obtain a second calculation result; the PCE sends the second calculation result to the PCC.
  • the custom algorithm constraint is a minimum number of hops.
  • an embodiment of the present invention further provides a storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the computing method described above.
  • the embodiment of the present invention provides a tunnel establishing method, where the method includes: a path calculation client PCC sends a path request carrying path calculation information to a path calculation unit PCE, where the path constraint information Include a basic algorithm constraint and a custom algorithm constraint; the PCC receives a first algorithm result from the PCE, wherein the first path result is determined by the PCE based on the basic algorithm constraint and Defining a path constraint obtained; the PCC establishes a corresponding tunnel according to the first calculation result.
  • a path calculation client PCC sends a path request carrying path calculation information to a path calculation unit PCE, where the path constraint information Include a basic algorithm constraint and a custom algorithm constraint
  • the PCC receives a first algorithm result from the PCE, wherein the first path result is determined by the PCE based on the basic algorithm constraint and Defining a path constraint obtained
  • the PCC establishes a corresponding tunnel according to the first calculation result.
  • the method further includes: the PCC receiving the second calculation from the PCE a path request, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint; the PCC establishes a corresponding tunnel according to the second calculation result.
  • an embodiment of the present invention further provides a storage medium, where the storage medium is The quality includes a set of instructions that, when executed, cause at least one processor to perform the tunnel establishment method described above.
  • the embodiment of the present invention provides a path calculation unit PCE, where the PCE includes a receiving module, a computing module, and a sending module, where: the receiving module is configured to receive a routing request from the path computing client PCC.
  • the calculation request carries the calculation path constraint information including the basic calculation path constraint and the custom calculation path constraint; the calculation path module is configured to be based on the basic calculation path constraint received by the receiving module
  • the custom calculation algorithm performs a calculation to obtain a first calculation result; the sending module is configured to send the first calculation result obtained by the calculation module to the PCC.
  • the calculation module is further configured to: when the custom calculation path constraint is not recognized, perform calculation based only on the basic calculation path constraint, and obtain a second calculation result; the sending module And configured to send the second calculation result obtained by the calculation module to the PCC.
  • the custom algorithm constraint is a minimum number of hops.
  • the embodiment of the present invention provides a path calculation client PCC, where the PCC includes a sending module, a receiving module, and an establishing module.
  • the sending module is configured to send a path constraint to the path calculating unit PCE.
  • a calculation request of the information wherein the calculation constraint information includes a basic calculation constraint and a custom calculation constraint
  • the receiving module is configured to receive a first calculation result from the PCE, wherein the The result of the calculation is obtained by the PCE based on the basic calculation constraint and the custom calculation constraint
  • the tunnel establishment module is configured to establish a corresponding according to the first calculation result received by the receiving module. tunnel.
  • the receiving module is further configured to receive a second calculation result from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint
  • the tunnel establishment module is further configured to establish a corresponding tunnel according to the second calculation result.
  • an embodiment of the present invention provides a computing system, where the system includes: a path calculation client PCC and a path calculation unit PCE; wherein the PCC is configured to send the path constraint information to the PCE.
  • the calculation path request wherein the calculation path constraint information includes a basic calculation path constraint and a custom calculation path constraint; and is further configured to receive a first calculation result from the PCE, wherein the first calculation result is Obtained by the PCE based on the basic calculation constraint and the custom calculation constraint; and configured to establish a corresponding tunnel according to the first calculation result; the PCE is configured to receive the calculation request;
  • the method is configured to perform a calculation based on the basic calculation constraint and the custom calculation path constraint to obtain a first calculation result; and configured to send the first calculation result to the PCC.
  • the PCE is further configured to perform a calculation based on the basic calculation path constraint only when the custom calculation path constraint is not recognized, obtain a second calculation result, and the second The calculation result is sent to the PCC; the PCC is further configured to receive the second calculation result, and establish a corresponding tunnel according to the second calculation result.
  • the PCC sends a calculation request carrying the calculation constraint information to the PCE, where the calculation constraint The information includes basic calculation constraints and custom calculation constraints. Then, after receiving the calculation request, the PCE performs calculation based on the basic calculation constraints and the custom calculation constraints to obtain the first calculation result, and the The result is sent to the PCC. Then, after receiving the first calculation result, the PCC can establish a corresponding tunnel according to the first calculation result, that is, the PCE comprehensively considers the basic calculation constraint and the custom calculation route sent by the PCC.
  • the constraint is used to calculate the path, and the calculation result that satisfies the basic calculation path constraint and the custom calculation path constraint is obtained.
  • FIG. 1 is a schematic structural diagram of a system of a road computing system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for calculating a path of a computing system according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a format of a private object in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a path obtained by a PCE based on a basic algorithm constraint according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a path calculation method when a custom constraint is a minimum hop count according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for calculating a road according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of a method for establishing a tunnel according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a PCE according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a PCC according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a system architecture of a road computing system according to an embodiment of the present invention. Referring to FIG. 1 , the system includes: PCC 10 and PCE 20;
  • the PCC 10 is configured to send a computing path carrying the path constraint information to the PCE 20, where the path constraint information includes a basic algorithm constraint and a custom algorithm constraint; and receiving the first algorithm from the PCE 20 a result, wherein the first calculation result is obtained by the PCE 20 based on the basic calculation constraint and the custom calculation constraint; and the corresponding tunnel is established according to the first calculation result;
  • the PCE 20 is configured to receive the above-mentioned calculation request from the PCC 10; perform calculation based on the basic calculation path constraint and the custom calculation path constraint to obtain the first calculation result; and send the first calculation result to the PCC 10.
  • FIG. 2 is a schematic flowchart of a method for calculating a path of a computing system according to an embodiment of the present invention. Referring to FIG. 2, the method includes:
  • the PCC sends a calculation request carrying the calculation path constraint information to the PCE, where the calculation path is
  • the constraint information includes a basic algorithm constraint and a custom algorithm constraint;
  • the basic calculation constraint is some basic constraints defined in the existing PCEP calculation request, such as ERO, RRO, SRLG, METRIC, maximum hop count, and the like.
  • the custom calculation path constraint is the calculation path constraint defined by the user according to actual needs.
  • the custom algorithm constraint is the minimum number of hops.
  • other constraints may be used, and the invention is not specifically limited.
  • the calculation request sent by the PCC to the PCE carries the calculation path constraint information of the basic calculation path constraint and the minimum hop count, so that the calculation result is not only the calculation result but not only the calculation result It satisfies the basic calculation path constraint and also satisfies the user's minimum hop count for the calculation result.
  • the PCC can define a private object based on the RFC7150 protocol, and by extending the private object, the calculation constraint carries the custom algorithm constraint.
  • the format of the private object can be as shown in FIG. 3, wherein the length of the private object is 32 bits, and the H bit of the flag field (Flags) represents a custom algorithm constraint, and other bits are undefined, and then temporarily set to 0.
  • the PCC sends a calculation request carrying the basic calculation constraint and the private object message to the PCE.
  • PCE when calculating the road, PCE will comprehensively consider the basic calculation path constraint and the custom calculation path constraint, and obtain a first calculation result that satisfies both the basic calculation path constraint and the custom calculation path constraint.
  • the PCE considers the basic calculation path constraint and the minimum hop, such as ERO, RRO, SRLG, METRIC, and maximum hop count, to obtain a basic calculation path constraint and minimum.
  • the first calculation result of the jump is the basic calculation path constraint and minimum.
  • the PCC may be established by initiating RSVP signaling. Establish the TE tunnel corresponding to the first calculation result.
  • the manner in which the PCC establishes the corresponding tunnel according to the result of the first calculation is subject to the actual situation, and the present invention is not specifically limited.
  • the PCC may also set the above custom computing constraint to a non-essential constraint based on the RFC 5440 protocol. In this way, even if the PCE cannot recognize the custom constraints, it can still calculate the road based on the basic calculation constraints.
  • the PCE can perform the calculation based on the basic calculation constraint only, obtain the second calculation result, and then send the second calculation result to the PCC. After receiving the second calculation result, the PCC establishes a corresponding tunnel according to the second calculation result.
  • FIG. 4 is a schematic diagram of a path obtained by a PCE based on a basic algorithm constraint according to an embodiment of the present invention. Referring to FIG. 4, it is assumed that a PCC needs to establish a tunnel to a D node, and there are two between the PCC and the node D.
  • the path is PCC-Node B-Node C-Node D and PCC-Node C-Node D.
  • FIG. 5 is a schematic flowchart of a path calculation method when a custom constraint is a minimum hop count according to an embodiment of the present invention. Referring to FIG. 5, the method includes:
  • the PCC sends, to the PCE, a calculation request carrying the calculation path constraint information, where the calculation path constraint information includes a basic calculation path constraint and a minimum hop;
  • S502 The PCE parses the calculation request; if the PCE recognizes the minimum hop, it jumps to S503a; if the PCE cannot recognize the minimum hop, it jumps to S503b;
  • the PCE obtains the first calculation result based on the basic calculation path constraint and the minimum hop count, that is, the PCC-node C-node D;
  • S505a The PCC initiates establishment of a TE tunnel by using RSVP signaling, and establishes a TE link through three nodes of the PCC, the node C, and the node D.
  • the PCE obtains the second calculation result based on the basic calculation path constraint, that is, the PCC-node B-node C-node D;
  • S505b The PCC initiates the establishment of the TE tunnel through RSVP signaling, and establishes a TE link through the four nodes of the PCC, the Node B, the Node C, and the Node D.
  • the PCC sends a calculation request carrying the calculation path constraint information to the PCE, wherein the calculation path constraint information includes the basic calculation path constraint and the custom calculation path constraint, then the PCE can comprehensively consider the basic transmission of the PCC. Calculating the road constraints and the custom calculation of the road constraints, and obtaining the calculation results that satisfy the basic calculation constraints and satisfy the custom calculation constraints, thus improving the intelligence of the PCE, and thus enabling the PCE to satisfy the user when calculating the road. The need to improve the user experience.
  • an embodiment of the present invention provides a method for computing, which is applied to a PCE consistent with one or more of the above embodiments.
  • FIG. 6 is a schematic flowchart of a method for calculating a road according to an embodiment of the present invention.
  • the method for calculating the road includes:
  • the PCE receives a calculation request from the PCC, where the calculation request carries the calculation path constraint information including the basic calculation constraint and the custom calculation constraint;
  • the custom algorithm constraint is the minimum number of hops.
  • the method further includes: when the PCE cannot identify the custom calculation path constraint, performing calculation only based on the basic calculation path constraint, and obtaining a second calculation result; the PCE will The second calculation result is sent to the PCC.
  • an embodiment of the present invention provides a method for establishing a tunnel, which is applied to a PCC consistent with one or more of the above embodiments.
  • FIG. 7 is a schematic flowchart of a method for establishing a tunnel according to an embodiment of the present invention. Referring to FIG. 7, the method includes:
  • the PCC sends, to the PCE, a calculation path carrying the calculation path constraint information, where the calculation path constraint information includes a basic calculation path constraint and a custom calculation path constraint;
  • the PCC receives the first calculation result from the PCE, wherein the first calculation result is obtained by the PCE based on the basic calculation constraint and the custom calculation constraint;
  • the method further comprises: the PCC receiving a second calculation request from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint; the PCC A corresponding tunnel is established according to the result of the second calculation.
  • an embodiment of the present invention provides a PCE that is consistent with a PCE in one or more of the above embodiments.
  • an embodiment of the present invention further provides a storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the computing method described above.
  • an embodiment of the present invention further provides a storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the tunnel establishment method described above.
  • FIG. 8 is a schematic structural diagram of a PCE according to an embodiment of the present invention.
  • the PCE includes: a receiving module 801, a computing module 802, and a sending module 803.
  • the receiving module 801 is configured to receive an algorithm from the PCC.
  • the path request where the calculation request carries the calculation path constraint information including the basic calculation path constraint and the custom calculation path constraint;
  • the calculation module 802 is configured to receive the basic calculation path constraint and the custom calculation path based on the receiving module 801. Constraint calculation, get the first calculation
  • the sending module 803 is further configured to send the second calculation result obtained by the algorithm module 802 to the PCC.
  • the receiving module 801, the computing module 802, and the sending module 803 may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a programmable logic array in the PCE ( Field-Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • the custom algorithm constraint is the minimum number of hops.
  • the calculation module 802 is further configured to: when the PCE cannot identify the custom calculation path constraint, perform the calculation based on only the basic calculation constraint, and obtain the second calculation result;
  • the sending module 803 is configured to send the first computing result obtained by the calculating module 802 to the PCC.
  • an embodiment of the present invention provides a PCC that is consistent with a PCC in one or more of the above embodiments.
  • FIG. 9 is a schematic structural diagram of a PCC according to an embodiment of the present invention.
  • the PCC includes: a sending module 901, a receiving module 902, and an establishing module 903.
  • the sending module 901 is configured to send a bearer to the PCE.
  • the path constraint information of the road constraint information wherein the algorithm constraint information includes a basic algorithm constraint and a custom algorithm constraint
  • the receiving module 902 is configured to receive the first algorithm result from the PCE, wherein the first algorithm result is Obtained by the PCE based on the basic calculation path constraint and the custom calculation path constraint
  • the tunnel establishment module 903 is configured to establish a corresponding tunnel according to the first calculation result received by the receiving module 902.
  • the sending module 901, the receiving module 902, and the establishing module 903 can be implemented by a CPU, a DSP, or an FPGA in the PCC.
  • the receiving module 902 is further configured to receive a second calculation result from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint;
  • the tunnel establishment module 903 is further configured to establish a corresponding tunnel according to the second calculation result. Road.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed is a path computation method, comprising: receiving, by a path computation element (PCE), a path computation request from a path computation client (PCC), wherein the path computation request carries path computation constraint information including a basic path computation constraint and a custom path computation constraint; computing, by the PCE, a path based on the basic path computation constraint and the custom path computation constraint to obtain a first path computation result; and sending, by the PCE, the first path computation result to the PCC. Also disclosed at the same time are a tunnel establishment method, a PCE, a PCC and a path computation system.

Description

算路方法、隧道建立方法、PCC、PCE、算路系统和存储介质Calculation method, tunnel establishment method, PCC, PCE, calculation system and storage medium 技术领域Technical field
本发明涉及路由算路领域,尤其涉及一种算路方法、隧道建立方法、PCC、PCE、算路系统和存储介质。The present invention relates to the field of routing algorithms, and in particular, to a method for calculating a road, a method for establishing a tunnel, a PCC, a PCE, a computing system, and a storage medium.
背景技术Background technique
路径计算单元(PCE,Path Computation Element)是一种可以计算网络中任何节点之间的路径的实体,可以集成在路由器内部,也可以作为一个单独的实体存在于网络中,专门用于路径计算即算路。路径计算客户端(PCC,Path Computation Clients)用于向PCE发送算路请求消息,并在接收带有算路结果的响应后建立路径链接。The Path Computation Element (PCE) is an entity that can calculate the path between any nodes in the network. It can be integrated into the router or exist as a separate entity in the network. It is used for path calculation. Count the road. The Path Computation Clients (PCC) are used to send a calculation request message to the PCE, and establish a path link after receiving the response with the calculation result.
目前,PCC和PCE之间的通信采用专门的路径计算协议(PCEP,Path Computation Element Communication Protocol)进行通信。在PCEP协议中定义了一些基本算路约束,比如ERO,RRO,SRLG,METRIC,最大跳数等,那么,PCC将这些算路约束携带在算路请求中发送给PCE后,PCE基于这些算路约束进行算路。但是由于PCEP的规定,在算路请求中仅能够携带PCEP中定义的基本算路约束,那么,如果用户在算路时存在一些特殊需求,此时的PCE是无法满足的。Currently, communication between the PCC and the PCE is performed using a dedicated Path Computation Element Communication Protocol (PCEP). Some basic algorithm constraints are defined in the PCEP protocol, such as ERO, RRO, SRLG, METRIC, maximum hop count, etc. Then, after the PCC carries these calculation constraints in the calculation request and sends them to the PCE, the PCE based on these calculations Constraint to calculate the path. However, due to the PCEP regulations, only the basic algorithm constraints defined in the PCEP can be carried in the calculation request. If the user has some special requirements when calculating the road, the PCE cannot be satisfied at this time.
所以,现有技术中存在PCE不够智能的技术问题。Therefore, in the prior art, there is a technical problem that the PCE is not intelligent enough.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例期望提供一种算路方法、隧道建立方法、PCC、PCE、算路系统和存储介质。To solve the above technical problem, embodiments of the present invention are expected to provide a method for calculating a road, a method for establishing a tunnel, a PCC, a PCE, a computing system, and a storage medium.
本发明实施例的技术方案是这样实现的: The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种算路方法,所述方法包括:路径计算单元PCE接收来自路径计算客户端PCC的算路请求,其中,所述算路请求中携带有包括基本算路约束和自定义算路约束的算路约束信息;所述PCE基于所述基本算路约束和自定义算路约束进行算路,获得第一算路结果;所述PCE将所述第一算路结果发送给所述PCC。In a first aspect, an embodiment of the present invention provides a method for calculating a path, the method comprising: a path calculation unit PCE receiving a calculation request from a path calculation client PCC, wherein the calculation request carries a basic calculation path Constraint and custom algorithm constraint transaction constraint information; the PCE performs a calculation based on the basic algorithm constraint and the custom algorithm constraint to obtain a first calculation result; the PCE uses the first calculation path The result is sent to the PCC.
在一个实施例中,在所述路径计算单元PCE接收来自路径计算客户端PCC的算路请求之后,所述方法还包括:所述PCE在无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果;所述PCE将所述第二算路结果发送给所述PCC。In an embodiment, after the path calculation unit PCE receives the calculation request from the path calculation client PCC, the method further includes: when the PCE cannot identify the custom calculation path constraint, only based on the The basic calculation path constraint performs a calculation to obtain a second calculation result; the PCE sends the second calculation result to the PCC.
在一个实施例中,所述自定义算路约束为最小跳数。In one embodiment, the custom algorithm constraint is a minimum number of hops.
在一个实施例中,本发明实施例还提供了一种存储介质,所述存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上文所述的算路方法。In one embodiment, an embodiment of the present invention further provides a storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the computing method described above.
第二方面,本发明实施例提供一种隧道建立方法,所述方法包括:路径计算客户端PCC向路径计算单元PCE发送携带有算路约束信息的算路请求,其中,所述算路约束信息包括基本算路约束和自定义算路约束;所述PCC接收来自所述PCE的第一算路结果,其中,所述第一算路结果是由所述PCE基于所述基本算路约束和自定义算路约束获得的;所述PCC根据所述第一算路结果建立对应的隧道。In a second aspect, the embodiment of the present invention provides a tunnel establishing method, where the method includes: a path calculation client PCC sends a path request carrying path calculation information to a path calculation unit PCE, where the path constraint information Include a basic algorithm constraint and a custom algorithm constraint; the PCC receives a first algorithm result from the PCE, wherein the first path result is determined by the PCE based on the basic algorithm constraint and Defining a path constraint obtained; the PCC establishes a corresponding tunnel according to the first calculation result.
在一个实施例中,在所述路径计算客户端PCC向路径计算单元PCE发送携带有算路约束信息的算路请求之后,所述方法还包括:所述PCC接收来自所述PCE的第二算路请求,其中,所述第二算路结果是由所述PCE仅基于所述基本算路约束获得的;所述PCC根据所述第二算路结果建立对应的隧道。In one embodiment, after the path calculation client PCC sends a path request carrying the path constraint information to the path calculation unit PCE, the method further includes: the PCC receiving the second calculation from the PCE a path request, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint; the PCC establishes a corresponding tunnel according to the second calculation result.
在一个实施例中,本发明实施例还提供了一种存储介质,所述存储介 质包括一组指令,当执行所述指令时,引起至少一个处理器执行上文所述的隧道建立方法。In an embodiment, an embodiment of the present invention further provides a storage medium, where the storage medium is The quality includes a set of instructions that, when executed, cause at least one processor to perform the tunnel establishment method described above.
第三方面,本发明实施例提供一种路径计算单元PCE,所述PCE包括接收模块、算路模块和发送模块,其中:所述接收模块,配置为接收来自路径计算客户端PCC的算路请求,其中,所述算路请求中携带有包括基本算路约束和自定义算路约束的算路约束信息;所述算路模块,配置为基于所述接收模块接收的所述基本算路约束和自定义算路约束进行算路,获得第一算路结果;所述发送模块,配置为将所述算路模块获得的所述第一算路结果发送给所述PCC。In a third aspect, the embodiment of the present invention provides a path calculation unit PCE, where the PCE includes a receiving module, a computing module, and a sending module, where: the receiving module is configured to receive a routing request from the path computing client PCC. The calculation request carries the calculation path constraint information including the basic calculation path constraint and the custom calculation path constraint; the calculation path module is configured to be based on the basic calculation path constraint received by the receiving module The custom calculation algorithm performs a calculation to obtain a first calculation result; the sending module is configured to send the first calculation result obtained by the calculation module to the PCC.
在一个实施例中,所述算路模块,还配置为当无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果;所述发送模块,还配置为将所述算路模块获得的所述第二算路结果发送给所述PCC。In an embodiment, the calculation module is further configured to: when the custom calculation path constraint is not recognized, perform calculation based only on the basic calculation path constraint, and obtain a second calculation result; the sending module And configured to send the second calculation result obtained by the calculation module to the PCC.
在一个实施例中,所述自定义算路约束为最小跳数。In one embodiment, the custom algorithm constraint is a minimum number of hops.
第四方面,本发明实施例提供一种路径计算客户端PCC,所述PCC包括发送模块、接收模块和建立模块;其中,所述发送模块,配置为向路径计算单元PCE发送携带有算路约束信息的算路请求,其中,所述算路约束信息包括基本算路约束和自定义算路约束;所述接收模块,配置为接收来自所述PCE的第一算路结果,其中,所述第一算路结果是由所述PCE基于所述基本算路约束和自定义算路约束获得的;所述隧道建立模块,配置为根据所述接收模块接收的所述第一算路结果建立对应的隧道。In a fourth aspect, the embodiment of the present invention provides a path calculation client PCC, where the PCC includes a sending module, a receiving module, and an establishing module. The sending module is configured to send a path constraint to the path calculating unit PCE. a calculation request of the information, wherein the calculation constraint information includes a basic calculation constraint and a custom calculation constraint; the receiving module is configured to receive a first calculation result from the PCE, wherein the The result of the calculation is obtained by the PCE based on the basic calculation constraint and the custom calculation constraint; the tunnel establishment module is configured to establish a corresponding according to the first calculation result received by the receiving module. tunnel.
在一个实施例中,所述接收模块,还配置为接收来自所述PCE的第二算路结果,其中,所述第二算路结果是由所述PCE仅基于所述基本算路约束获得的;所述隧道建立模块,还配置为根据所述第二算路结果建立对应的隧道。 In one embodiment, the receiving module is further configured to receive a second calculation result from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint The tunnel establishment module is further configured to establish a corresponding tunnel according to the second calculation result.
第五方面,本发明实施例提供一种算路系统,所述系统包括:路径计算客户端PCC及路径计算单元PCE;其中,所述PCC,配置为向所述PCE发送携带有算路约束信息的算路请求,其中,所述算路约束信息包括基本算路约束和自定义算路约束;还配置为接收来自所述PCE的第一算路结果,其中,所述第一算路结果是由所述PCE基于所述基本算路约束和自定义算路约束获得的;还配置为根据所述第一算路结果建立对应的隧道;所述PCE,配置为接收所述算路请求;还配置为基于所述基本算路约束和自定义算路约束进行算路,获得第一算路结果;还配置为将所述第一算路结果发送给所述PCC。In a fifth aspect, an embodiment of the present invention provides a computing system, where the system includes: a path calculation client PCC and a path calculation unit PCE; wherein the PCC is configured to send the path constraint information to the PCE. The calculation path request, wherein the calculation path constraint information includes a basic calculation path constraint and a custom calculation path constraint; and is further configured to receive a first calculation result from the PCE, wherein the first calculation result is Obtained by the PCE based on the basic calculation constraint and the custom calculation constraint; and configured to establish a corresponding tunnel according to the first calculation result; the PCE is configured to receive the calculation request; The method is configured to perform a calculation based on the basic calculation constraint and the custom calculation path constraint to obtain a first calculation result; and configured to send the first calculation result to the PCC.
在一个实施例中,所述PCE,还配置为当无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果,并将所述第二算路结果发送给所述PCC;所述PCC,还配置为接收所述第二算路结果,并根据所述第二算路结果建立对应的隧道。In an embodiment, the PCE is further configured to perform a calculation based on the basic calculation path constraint only when the custom calculation path constraint is not recognized, obtain a second calculation result, and the second The calculation result is sent to the PCC; the PCC is further configured to receive the second calculation result, and establish a corresponding tunnel according to the second calculation result.
在本发明实施例所提供的一种算路方法、隧道建立方法、PCC、PCE、算路系统和存储介质,PCC向PCE发送携带有算路约束信息的算路请求,其中,该算路约束信息中包括基本算路约束和自定义算路约束,然后,PCE在接收到算路请求后,基于基本算路约束和自定义算路约束进行算路,获得第一算路结果,并将该结果发送给PCC,那么,PCC在接收到第一算路结果之后,就可以根据第一算路结果建立对应的隧道,也就是说,PCE综合考虑PCC发送的基本算路约束以及自定义算路约束进行算路,获得满足基本算路约束又满足自定义算路约束的算路结果,如此,有效地解决了现有技术中存在的PCE不够智能的技术问题,提高了PCE的智能程度,进而使得PCE在算路时能够满足用户的需求,提高用户体验。In the method for calculating a road, the method for establishing a tunnel, the PCC, the PCE, the calculation system, and the storage medium provided by the embodiment of the present invention, the PCC sends a calculation request carrying the calculation constraint information to the PCE, where the calculation constraint The information includes basic calculation constraints and custom calculation constraints. Then, after receiving the calculation request, the PCE performs calculation based on the basic calculation constraints and the custom calculation constraints to obtain the first calculation result, and the The result is sent to the PCC. Then, after receiving the first calculation result, the PCC can establish a corresponding tunnel according to the first calculation result, that is, the PCE comprehensively considers the basic calculation constraint and the custom calculation route sent by the PCC. The constraint is used to calculate the path, and the calculation result that satisfies the basic calculation path constraint and the custom calculation path constraint is obtained. Thus, the technical problem that the PCE is not intelligent enough in the prior art is effectively solved, and the intelligence degree of the PCE is improved, and further This makes the PCE meet the needs of users and improve the user experience when calculating the road.
附图说明DRAWINGS
图1为本发明实施例中的算路系统的系统架构示意图; 1 is a schematic structural diagram of a system of a road computing system according to an embodiment of the present invention;
图2为本发明实施例中的算路系统进行路径计算的方法流程示意图;2 is a schematic flowchart of a method for calculating a path of a computing system according to an embodiment of the present invention;
图3为本发明实施例中的私有对象格式的示意图;3 is a schematic diagram of a format of a private object in an embodiment of the present invention;
图4为本发明实施例中的PCE基于基本算路约束获得的路径的示意图;4 is a schematic diagram of a path obtained by a PCE based on a basic algorithm constraint according to an embodiment of the present invention;
图5为本发明实施例中的自定义约束为最小跳数时的路径计算方法的流程示意图;FIG. 5 is a schematic flowchart of a path calculation method when a custom constraint is a minimum hop count according to an embodiment of the present invention;
图6为本发明实施例中的算路方法的流程示意图;6 is a schematic flowchart of a method for calculating a road according to an embodiment of the present invention;
图7为本发明实施例中的隧道建立方法的流程示意图;FIG. 7 is a schematic flowchart diagram of a method for establishing a tunnel according to an embodiment of the present invention;
图8为本发明实施例中的PCE的结构示意图;FIG. 8 is a schematic structural diagram of a PCE according to an embodiment of the present invention; FIG.
图9为本发明实施例中的PCC的结构示意图。FIG. 9 is a schematic structural diagram of a PCC according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本实施例提供一种算路系统,图1为本发明实施例中的算路系统的系统架构示意图,参照图1所示,该系统包括:PCC10及PCE20;The embodiment provides a system for calculating a road. FIG. 1 is a schematic diagram of a system architecture of a road computing system according to an embodiment of the present invention. Referring to FIG. 1 , the system includes: PCC 10 and PCE 20;
结合本发明实施例,PCC10,配置为向PCE20发送携带有算路约束信息的算路请求,其中,算路约束信息包括基本算路约束和自定义算路约束;接收来自PCE20的第一算路结果,其中,第一算路结果是由PCE20基于基本算路约束和自定义算路约束获得的;根据第一算路结果建立对应的隧道;In conjunction with the embodiment of the present invention, the PCC 10 is configured to send a computing path carrying the path constraint information to the PCE 20, where the path constraint information includes a basic algorithm constraint and a custom algorithm constraint; and receiving the first algorithm from the PCE 20 a result, wherein the first calculation result is obtained by the PCE 20 based on the basic calculation constraint and the custom calculation constraint; and the corresponding tunnel is established according to the first calculation result;
PCE20,配置为接收来自PCC10的上述算路请求;基于基本算路约束和自定义算路约束进行算路,获得第一算路结果;将第一算路结果发送给PCC10。The PCE 20 is configured to receive the above-mentioned calculation request from the PCC 10; perform calculation based on the basic calculation path constraint and the custom calculation path constraint to obtain the first calculation result; and send the first calculation result to the PCC 10.
下面对上述算路系统进行路径计算的方法流程进行说明。The flow of the method for calculating the path of the above-mentioned calculation system will be described below.
图2为本发明实施例中的算路系统进行路径计算的方法流程示意图,参照图2所示,该方法包括:2 is a schematic flowchart of a method for calculating a path of a computing system according to an embodiment of the present invention. Referring to FIG. 2, the method includes:
S10:PCC向PCE发送携带有算路约束信息的算路请求,其中,算路 约束信息包括基本算路约束和自定义算路约束;S10: The PCC sends a calculation request carrying the calculation path constraint information to the PCE, where the calculation path is The constraint information includes a basic algorithm constraint and a custom algorithm constraint;
在本实施例中,基本算路约束为现有PCEP算路请求中定义的一些基本约束,如ERO,RRO,SRLG,METRIC,最大跳数等。自定义算路约束为用户根据实际需求定义的算路约束。In this embodiment, the basic calculation constraint is some basic constraints defined in the existing PCEP calculation request, such as ERO, RRO, SRLG, METRIC, maximum hop count, and the like. The custom calculation path constraint is the calculation path constraint defined by the user according to actual needs.
在一个实施例中,自定义算路约束为最小跳数。当然,还可以为其他约束,本发明不做具体限定。In one embodiment, the custom algorithm constraint is the minimum number of hops. Of course, other constraints may be used, and the invention is not specifically limited.
举例来说,当自定义算路约束为最小跳数时,PCC向PCE发送的算路请求中携带有基本算路约束和最小跳数的算路约束信息,这样一来,使得算路结果不但满足基本算路约束,还满足用户对算路结果的跳数最小的要求。For example, when the custom calculation path constraint is the minimum hop count, the calculation request sent by the PCC to the PCE carries the calculation path constraint information of the basic calculation path constraint and the minimum hop count, so that the calculation result is not only the calculation result but not only the calculation result It satisfies the basic calculation path constraint and also satisfies the user's minimum hop count for the calculation result.
在实际应用中,PCC可以基于RFC7150协议定义私有对象,并通过扩展私有对象使得算路约束信息携带自定义算路约束。该私有对象的格式可以如图3所示,其中,该私有对象的长度为32位,标识字段(Flags)的H位表示自定义算路约束,其他位未定义,那么,暂时设置成0。PCC将携带有基本算路约束以及该私有对象消息的算路请求发送给PCE。In practical applications, the PCC can define a private object based on the RFC7150 protocol, and by extending the private object, the calculation constraint carries the custom algorithm constraint. The format of the private object can be as shown in FIG. 3, wherein the length of the private object is 32 bits, and the H bit of the flag field (Flags) represents a custom algorithm constraint, and other bits are undefined, and then temporarily set to 0. The PCC sends a calculation request carrying the basic calculation constraint and the private object message to the PCE.
S20:PCE基于基本算路约束和自定义算路约束进行算路,获得第一算路结果;S20: The PCE performs calculation based on the basic calculation path constraint and the custom calculation path constraint, and obtains the first calculation result;
具体来说,PCE在算路时会综合考虑基本算路约束和自定义算路约束,并获得一个同时满足基本算路约束和自定义算路约束的第一算路结果。Specifically, when calculating the road, PCE will comprehensively consider the basic calculation path constraint and the custom calculation path constraint, and obtain a first calculation result that satisfies both the basic calculation path constraint and the custom calculation path constraint.
例如,当自定义算路约束为最小跳时,PCE在算路时综合考虑ERO,RRO,SRLG,METRIC,最大跳数等基本算路约束和最小跳,获得一个同时满足基本算路约束和最小跳的第一算路结果。For example, when the custom calculation path constraint is the minimum hop, the PCE considers the basic calculation path constraint and the minimum hop, such as ERO, RRO, SRLG, METRIC, and maximum hop count, to obtain a basic calculation path constraint and minimum. The first calculation result of the jump.
S30:PCE将第一算路结果发送给PCC;S30: The PCE sends the first calculation result to the PCC;
S40:PCC根据第一算路结果建立对应的隧道。S40: The PCC establishes a corresponding tunnel according to the first calculation result.
具体地,PCC收到上述第一算路结果后,可以通过发起RSVP信令建 立第一算路结果对应的TE隧道。Specifically, after receiving the foregoing first calculation result, the PCC may be established by initiating RSVP signaling. Establish the TE tunnel corresponding to the first calculation result.
当然,PCC根据第一算路结果建立对应的隧道的方式以实际情况为准,本发明不做具体限定。Certainly, the manner in which the PCC establishes the corresponding tunnel according to the result of the first calculation is subject to the actual situation, and the present invention is not specifically limited.
在另一实施例中,由于PCE可能无法识别算路请求中的私有对象,所以,PCC还可以基于RFC5440协议将上述自定义算路约束设置为非必要约束。这样,PCE即使无法识别自定义约束,还是可以基于基本算路约束进行算路的。In another embodiment, since the PCE may not be able to identify the private object in the routing request, the PCC may also set the above custom computing constraint to a non-essential constraint based on the RFC 5440 protocol. In this way, even if the PCE cannot recognize the custom constraints, it can still calculate the road based on the basic calculation constraints.
那么,在S10之后,当PCE无法识别算路请求中的自定义约束时,PCE可以仅基于基本算路约束进行算路,获得第二算路结果,然后将第二算路结果发送给PCC,PCC在接收到第二算路结果后根据第二算路结果建立对应的隧道。Then, after S10, when the PCE cannot identify the custom constraint in the calculation request, the PCE can perform the calculation based on the basic calculation constraint only, obtain the second calculation result, and then send the second calculation result to the PCC. After receiving the second calculation result, the PCC establishes a corresponding tunnel according to the second calculation result.
下面以具体实例来对上述路径计算方法进行说明。The above path calculation method will be described below by way of a specific example.
图4为本发明实施例中的PCE基于基本算路约束获得的路径的示意图,参照图4所示,假设PCC需要建立一条通往D节点的隧道,此时在PCC与节点D之间存在两条路径,即PCC-节点B-节点C-节点D和PCC-节点C-节点D。4 is a schematic diagram of a path obtained by a PCE based on a basic algorithm constraint according to an embodiment of the present invention. Referring to FIG. 4, it is assumed that a PCC needs to establish a tunnel to a D node, and there are two between the PCC and the node D. The path is PCC-Node B-Node C-Node D and PCC-Node C-Node D.
图5为本发明实施例中的自定义约束为最小跳数时的路径计算方法的流程示意图,参照图5所示,该方法包括:FIG. 5 is a schematic flowchart of a path calculation method when a custom constraint is a minimum hop count according to an embodiment of the present invention. Referring to FIG. 5, the method includes:
S501:PCC向PCE发送携带有算路约束信息的算路请求,其中,算路约束信息包括基本算路约束和最小跳;S501: The PCC sends, to the PCE, a calculation request carrying the calculation path constraint information, where the calculation path constraint information includes a basic calculation path constraint and a minimum hop;
S502:PCE对算路请求进行解析;若PCE识别出最小跳,跳至S503a;若PCE无法识别最小跳,跳至S503b;S502: The PCE parses the calculation request; if the PCE recognizes the minimum hop, it jumps to S503a; if the PCE cannot recognize the minimum hop, it jumps to S503b;
S503a:PCE基于基本算路约束及最小跳数,获得第一算路结果,即PCC-节点C-节点D;S503a: The PCE obtains the first calculation result based on the basic calculation path constraint and the minimum hop count, that is, the PCC-node C-node D;
S504a:PCE将第一算路结果发送给PCC; S504a: The PCE sends the first calculation result to the PCC;
S505a:PCC通过RSVP信令发起TE隧道的建立,建立通过PCC、节点C及节点D这三个节点的TE链路;S505a: The PCC initiates establishment of a TE tunnel by using RSVP signaling, and establishes a TE link through three nodes of the PCC, the node C, and the node D.
S503b:PCE仅基于基本算路约束,获得第二算路结果,即PCC-节点B-节点C-节点D;S503b: The PCE obtains the second calculation result based on the basic calculation path constraint, that is, the PCC-node B-node C-node D;
S504b:PCE将第二算路结果发送给PCC;S504b: The PCE sends the second calculation result to the PCC;
S505b:PCC通过RSVP信令发起TE隧道的建立,建立通过PCC、节点B、节点C及节点D这四个节点的TE链路。S505b: The PCC initiates the establishment of the TE tunnel through RSVP signaling, and establishes a TE link through the four nodes of the PCC, the Node B, the Node C, and the Node D.
由上述可知,PCC向PCE发送携带有算路约束信息的算路请求,其中,该算路约束信息中包括基本算路约束和自定义算路约束,那么,PCE就能够综合考虑PCC发送的基本算路约束以及自定义算路约束进行算路,获得满足基本算路约束又满足自定义算路约束的算路结果,如此,提高了PCE的智能程度,进而使得PCE在算路时能够满足用户的需求,提高用户体验。It can be seen from the above that the PCC sends a calculation request carrying the calculation path constraint information to the PCE, wherein the calculation path constraint information includes the basic calculation path constraint and the custom calculation path constraint, then the PCE can comprehensively consider the basic transmission of the PCC. Calculating the road constraints and the custom calculation of the road constraints, and obtaining the calculation results that satisfy the basic calculation constraints and satisfy the custom calculation constraints, thus improving the intelligence of the PCE, and thus enabling the PCE to satisfy the user when calculating the road. The need to improve the user experience.
基于同一发明构思,本发明实施例提供一种算路方法,该方法应用于与上述一个或者多个实施例一致的PCE中。Based on the same inventive concept, an embodiment of the present invention provides a method for computing, which is applied to a PCE consistent with one or more of the above embodiments.
图6为本发明实施例中的算路方法的流程示意图,参照图6所示,该算路方法包括:FIG. 6 is a schematic flowchart of a method for calculating a road according to an embodiment of the present invention. Referring to FIG. 6, the method for calculating the road includes:
S601:PCE接收来自PCC的算路请求,其中,算路请求中携带有包括基本算路约束和自定义算路约束的算路约束信息;S601: The PCE receives a calculation request from the PCC, where the calculation request carries the calculation path constraint information including the basic calculation constraint and the custom calculation constraint;
在一个实施例中,自定义算路约束为最小跳数。In one embodiment, the custom algorithm constraint is the minimum number of hops.
S602:PCE基于基本算路约束和自定义算路约束进行算路,获得第一算路结果;S602: The PCE performs calculation based on the basic calculation path constraint and the custom calculation path constraint, and obtains the first calculation result;
S603:PCE将第一算路结果发送给PCC。S603: The PCE sends the first calculation result to the PCC.
在另一实施例中,在S601之后,该方法还包括:PCE在无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果;PCE将第二算路结果发送给PCC。 In another embodiment, after S601, the method further includes: when the PCE cannot identify the custom calculation path constraint, performing calculation only based on the basic calculation path constraint, and obtaining a second calculation result; the PCE will The second calculation result is sent to the PCC.
基于同一发明构思,本发明实施例提供一种建立隧道的方法,该方法应用于与上述一个或者多个实施例一致的PCC中。Based on the same inventive concept, an embodiment of the present invention provides a method for establishing a tunnel, which is applied to a PCC consistent with one or more of the above embodiments.
图7为本发明实施例中的隧道建立方法的流程示意图,参照图7所示,该方法包括:FIG. 7 is a schematic flowchart of a method for establishing a tunnel according to an embodiment of the present invention. Referring to FIG. 7, the method includes:
S701:PCC向PCE发送携带有算路约束信息的算路请求,其中,算路约束信息包括基本算路约束和自定义算路约束;S701: The PCC sends, to the PCE, a calculation path carrying the calculation path constraint information, where the calculation path constraint information includes a basic calculation path constraint and a custom calculation path constraint;
S702:PCC接收来自PCE的第一算路结果,其中,第一算路结果是由PCE基于基本算路约束和自定义算路约束获得的;S702: The PCC receives the first calculation result from the PCE, wherein the first calculation result is obtained by the PCE based on the basic calculation constraint and the custom calculation constraint;
S703:PCC根据第一算路结果建立对应的隧道。S703: The PCC establishes a corresponding tunnel according to the first calculation result.
在另一实施例中,在步骤S701之后,该方法还包括:PCC接收来自PCE的第二算路请求,其中,第二算路结果是由所述PCE仅基于基本算路约束获得的;PCC根据第二算路结果建立对应的隧道。In another embodiment, after step S701, the method further comprises: the PCC receiving a second calculation request from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint; the PCC A corresponding tunnel is established according to the result of the second calculation.
基于同一发明构思,本发明实施例提供一种PCE,该PCE与上述一个或者多个实施例中的PCE一致。Based on the same inventive concept, an embodiment of the present invention provides a PCE that is consistent with a PCE in one or more of the above embodiments.
在一个实施例中,本发明实施例还提供了一种存储介质,所述存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上文所述的算路方法。In one embodiment, an embodiment of the present invention further provides a storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the computing method described above.
在一个实施例中,本发明实施例还提供了一种存储介质,所述存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上文所述的隧道建立方法。In an embodiment, an embodiment of the present invention further provides a storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the tunnel establishment method described above.
图8为本发明实施例中的PCE的结构示意图,参照图8所示,该PCE包括:接收模块801、算路模块802和发送模块803;其中,接收模块801,配置为接收来自PCC的算路请求,其中,算路请求中携带有包括基本算路约束和自定义算路约束的算路约束信息;算路模块802,配置为基于接收模块801接收的基本算路约束和自定义算路约束进行算路,获得第一算路结 果;发送模块803,还配置为将算路模块802获得的第二算路结果发送给PCC。FIG. 8 is a schematic structural diagram of a PCE according to an embodiment of the present invention. Referring to FIG. 8 , the PCE includes: a receiving module 801, a computing module 802, and a sending module 803. The receiving module 801 is configured to receive an algorithm from the PCC. The path request, where the calculation request carries the calculation path constraint information including the basic calculation path constraint and the custom calculation path constraint; the calculation module 802 is configured to receive the basic calculation path constraint and the custom calculation path based on the receiving module 801. Constraint calculation, get the first calculation The sending module 803 is further configured to send the second calculation result obtained by the algorithm module 802 to the PCC.
其中,所述接收模块801、算路模块802和发送模块803可由所述PCE中的中央处理器(Central Processing Unit,CPU)、数字信号处理器(Digital Signal Processor,DSP)或可编程逻辑阵列(Field-Programmable Gate Array,FPGA)实现。The receiving module 801, the computing module 802, and the sending module 803 may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a programmable logic array in the PCE ( Field-Programmable Gate Array (FPGA) implementation.
在一个实施例中,自定义算路约束为最小跳数。In one embodiment, the custom algorithm constraint is the minimum number of hops.
在另一实施例中,算路模块802还配置为当PCE无法识别自定义算路约束时,仅基于基本算路约束进行算路,获得第二算路结果;In another embodiment, the calculation module 802 is further configured to: when the PCE cannot identify the custom calculation path constraint, perform the calculation based on only the basic calculation constraint, and obtain the second calculation result;
相应地,发送模块803,配置为将算路模块802获得的第一算路结果发送给PCC。Correspondingly, the sending module 803 is configured to send the first computing result obtained by the calculating module 802 to the PCC.
基于同一发明构思,本发明实施例提供一种PCC,该PCC与上述一个或者多个实施例中的PCC一致。Based on the same inventive concept, an embodiment of the present invention provides a PCC that is consistent with a PCC in one or more of the above embodiments.
图9为本发明实施例中的PCC的结构示意图,参照图9所示,该PCC包括:发送模块901、接收模块902和建立模块903;其中,发送模块901,配置为向PCE发送携带有算路约束信息的算路请求,其中,算路约束信息包括基本算路约束和自定义算路约束;接收模块902,配置为接收来自PCE的第一算路结果,其中,第一算路结果是由PCE基于基本算路约束和自定义算路约束获得的;隧道建立模块903,配置为根据接收模块902接收的第一算路结果建立对应的隧道。FIG. 9 is a schematic structural diagram of a PCC according to an embodiment of the present invention. Referring to FIG. 9 , the PCC includes: a sending module 901, a receiving module 902, and an establishing module 903. The sending module 901 is configured to send a bearer to the PCE. The path constraint information of the road constraint information, wherein the algorithm constraint information includes a basic algorithm constraint and a custom algorithm constraint; the receiving module 902 is configured to receive the first algorithm result from the PCE, wherein the first algorithm result is Obtained by the PCE based on the basic calculation path constraint and the custom calculation path constraint; the tunnel establishment module 903 is configured to establish a corresponding tunnel according to the first calculation result received by the receiving module 902.
其中,所述发送模块901、接收模块902和建立模块903可由所述PCC中的CPU、DSP或FPGA实现。The sending module 901, the receiving module 902, and the establishing module 903 can be implemented by a CPU, a DSP, or an FPGA in the PCC.
在另一实施例中,接收模块902,还配置为接收来自PCE的第二算路结果,其中,第二算路结果是由PCE仅基于基本算路约束获得的;In another embodiment, the receiving module 902 is further configured to receive a second calculation result from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint;
相应地,隧道建立模块903,还配置为根据第二算路结果建立对应的隧 道。Correspondingly, the tunnel establishment module 903 is further configured to establish a corresponding tunnel according to the second calculation result. Road.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (14)

  1. 一种算路方法,该方法包括:A method of calculating a road, the method comprising:
    路径计算单元PCE接收来自路径计算客户端PCC的算路请求,其中,所述算路请求中携带包括基本算路约束和自定义算路约束的算路约束信息;The path calculation unit PCE receives the calculation request from the path calculation client PCC, wherein the calculation request carries the calculation path constraint information including the basic calculation constraint and the custom calculation path constraint;
    所述PCE基于所述基本算路约束和自定义算路约束进行算路,获得第一算路结果;The PCE performs a calculation based on the basic calculation constraint and a custom calculation constraint to obtain a first calculation result;
    所述PCE将所述第一算路结果发送给所述PCC。The PCE sends the first calculation result to the PCC.
  2. 根据权利要求1所述的方法,其中,在所述路径计算单元PCE接收来自路径计算客户端PCC的算路请求之后,所述方法还包括:The method according to claim 1, wherein after the path calculation unit PCE receives the calculation request from the path calculation client PCC, the method further comprises:
    所述PCE在无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果;When the PCE cannot identify the custom calculation path constraint, the PCE performs the calculation based on the basic calculation path constraint to obtain the second calculation result;
    所述PCE将所述第二算路结果发送给所述PCC。The PCE sends the second calculation result to the PCC.
  3. 根据权利要求1或2所述的方法,其中,所述自定义算路约束为最小跳数。The method of claim 1 or 2, wherein the custom algorithm constraint is a minimum hop count.
  4. 一种隧道建立方法,该方法包括:A tunnel establishment method, the method comprising:
    路径计算客户端PCC向路径计算单元PCE发送携带有算路约束信息的算路请求,其中,所述算路约束信息包括:基本算路约束和自定义算路约束;The path calculation client PCC sends a path request carrying the calculation path constraint information to the path calculation unit PCE, where the calculation path constraint information includes: a basic calculation path constraint and a custom calculation path constraint;
    所述PCC接收来自所述PCE的第一算路结果,其中,所述第一算路结果是由所述PCE基于所述基本算路约束和自定义算路约束获得的;The PCC receives a first calculation result from the PCE, wherein the first calculation result is obtained by the PCE based on the basic calculation constraint and a custom calculation constraint;
    所述PCC根据所述第一算路结果建立对应的隧道。The PCC establishes a corresponding tunnel according to the first calculation result.
  5. 根据权利要求4所述的方法,其中,在所述路径计算客户端PCC向路径计算单元PCE发送携带有算路约束信息的算路请求之后,所述方法 还包括:The method according to claim 4, wherein after the path calculation client PCC transmits a calculation request carrying the path constraint information to the path calculation unit PCE, the method Also includes:
    所述PCC接收来自所述PCE的第二算路请求,其中,所述第二算路结果是由所述PCE仅基于所述基本算路约束获得的;The PCC receives a second calculation request from the PCE, wherein the second calculation result is obtained by the PCE based only on the basic calculation constraint;
    所述PCC根据所述第二算路结果建立对应的隧道。The PCC establishes a corresponding tunnel according to the second calculation result.
  6. 一种路径计算单元PCE,所述PCE包括接收模块、算路模块和发送模块,其中:A path calculation unit PCE, the PCE includes a receiving module, a computing module, and a sending module, where:
    所述接收模块,配置为接收来自路径计算客户端PCC的算路请求,其中,所述算路请求中携带包括基本算路约束和自定义算路约束的算路约束信息;The receiving module is configured to receive a calculation request from the path calculation client PCC, where the calculation request carries the calculation path constraint information including the basic calculation constraint and the custom calculation path constraint;
    所述算路模块,配置为基于所述接收模块接收的所述基本算路约束和自定义算路约束进行算路,获得第一算路结果;The calculating module is configured to perform a calculation based on the basic calculation path constraint and the custom calculation path constraint received by the receiving module, to obtain a first calculation result;
    所述发送模块,配置为将所述算路模块获得的所述第一算路结果发送给所述PCC。The sending module is configured to send the first calculation result obtained by the calculating module to the PCC.
  7. 根据权利要求6所述的PCE,其中,所述算路模块,还配置为当无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果;The PCE according to claim 6, wherein the calculation module is further configured to: when the custom calculation path constraint is not recognized, perform calculation based only on the basic calculation path constraint, and obtain a second calculation result ;
    所述发送模块,还配置为将所述算路模块获得的所述第二算路结果发送给所述PCC。The sending module is further configured to send the second calculation result obtained by the calculating module to the PCC.
  8. 根据权利要求6或7所述的PCE,其中,所述自定义算路约束为最小跳数。The PCE of claim 6 or 7, wherein the custom algorithm constraint is a minimum hop count.
  9. 一种路径计算客户端PCC,所述PCC包括发送模块、接收模块和建立模块;其中,A path calculation client PCC, where the PCC includes a sending module, a receiving module, and an establishing module;
    所述发送模块,配置为向路径计算单元PCE发送携带有算路约束信息的算路请求,其中,所述算路约束信息包括基本算路约束和自定义算路约束; The sending module is configured to send a path request carrying the path constraint information to the path calculation unit PCE, where the path constraint information includes a basic algorithm constraint and a custom algorithm constraint;
    所述接收模块,配置为接收来自所述PCE的第一算路结果,其中,所述第一算路结果是由所述PCE基于所述基本算路约束和自定义算路约束获得的;The receiving module is configured to receive a first calculation result from the PCE, wherein the first calculation result is obtained by the PCE based on the basic calculation constraint and a custom calculation constraint;
    所述隧道建立模块,配置为根据所述接收模块接收的所述第一算路结果建立对应的隧道。The tunnel establishment module is configured to establish a corresponding tunnel according to the first calculation result received by the receiving module.
  10. 根据权利要求9所述的PCC,其中,所述接收模块,还配置为接收来自所述PCE的第二算路结果,其中,所述第二算路结果是由所述PCE仅基于所述基本算路约束获得的;The PCC of claim 9, wherein the receiving module is further configured to receive a second calculation result from the PCE, wherein the second calculation result is based on the PCE based only on the basic Obtained from the road constraint;
    所述隧道建立模块,还配置为根据所述第二算路结果建立对应的隧道。The tunnel establishment module is further configured to establish a corresponding tunnel according to the second calculation result.
  11. 一种算路系统,所述系统包括:路径计算客户端PCC及路径计算单元PCE;其中,A computing system, the system comprising: a path calculation client PCC and a path calculation unit PCE; wherein
    所述PCC,配置为向所述PCE发送携带有算路约束信息的算路请求,其中,所述算路约束信息包括基本算路约束和自定义算路约束;还配置为接收来自所述PCE的第一算路结果,其中,所述第一算路结果是由所述PCE基于所述基本算路约束和自定义算路约束获得的;还配置为根据所述第一算路结果建立对应的隧道;The PCC is configured to send, to the PCE, a routing request carrying path constraint information, where the path constraint information includes a basic algorithm constraint and a custom algorithm constraint; and is further configured to receive from the PCE The first calculation result, wherein the first calculation result is obtained by the PCE based on the basic calculation constraint and the custom calculation constraint; and is further configured to establish a correspondence according to the first calculation result Tunnel
    所述PCE,配置为接收所述算路请求;还配置为基于所述基本算路约束和自定义算路约束进行算路,获得第一算路结果;还配置为将所述第一算路结果发送给所述PCC。The PCE is configured to receive the calculation request; further configured to perform a calculation based on the basic calculation constraint and a custom calculation constraint to obtain a first calculation result; and further configured to: use the first calculation path The result is sent to the PCC.
  12. 根据权利要求11所述的系统,其中,所述PCE,还配置为当无法识别所述自定义算路约束时,仅基于所述基本算路约束进行算路,获得第二算路结果,并将所述第二算路结果发送给所述PCC;The system according to claim 11, wherein the PCE is further configured to: when the custom calculation path constraint is not recognized, perform calculation based only on the basic calculation path constraint, obtain a second calculation result, and Transmitting the second calculation result to the PCC;
    所述PCC,还配置为接收所述第二算路结果,并根据所述第二算路结果建立对应的隧道。The PCC is further configured to receive the second calculation result, and establish a corresponding tunnel according to the second calculation result.
  13. 一种存储介质,所述存储介质包括一组指令,当执行所述指令时, 引起至少一个处理器执行权利要求1-3中所述的算路方法。A storage medium, the storage medium comprising a set of instructions, when the instructions are executed, At least one processor is caused to perform the arithmetic method described in claims 1-3.
  14. 一种存储介质,所述存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行权利要求4-5中所述的隧道建立方法。 A storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the tunnel establishment method of claims 4-5.
PCT/CN2015/072148 2014-10-17 2015-02-03 Path computation method, tunnel establishment method, pcc, pce, path computation system and storage medium WO2016058299A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410554025.6A CN105515981A (en) 2014-10-17 2014-10-17 Path computation method, tunnel establishment method, PCC, PCE and path computation system
CN201410554025.6 2014-10-17

Publications (1)

Publication Number Publication Date
WO2016058299A1 true WO2016058299A1 (en) 2016-04-21

Family

ID=55723636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072148 WO2016058299A1 (en) 2014-10-17 2015-02-03 Path computation method, tunnel establishment method, pcc, pce, path computation system and storage medium

Country Status (2)

Country Link
CN (1) CN105515981A (en)
WO (1) WO2016058299A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209623B (en) * 2016-07-08 2020-01-10 华为技术有限公司 Method and control device for determining forwarding path
CN109716718A (en) * 2016-09-21 2019-05-03 华为技术有限公司 The method and apparatus of Path selection
CN108075980A (en) * 2016-11-17 2018-05-25 中兴通讯股份有限公司 A kind of control method of forward-path, device and control device
CN112054958B (en) * 2019-06-06 2023-07-14 中兴通讯股份有限公司 Path calculation method, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001200A (en) * 2006-01-13 2007-07-18 华为技术有限公司 Flow engineering full network counting method and system between regions
CN101237399A (en) * 2007-09-28 2008-08-06 华为技术有限公司 Method, system and device for getting label switching path
CN101610433A (en) * 2009-07-10 2009-12-23 北京邮电大学 The multi-constraint condition routing selection method that a kind of support policy is resolved
CN101645847A (en) * 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system for improving service resumption speed in transmission network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100693052B1 (en) * 2005-01-14 2007-03-12 삼성전자주식회사 Apparatus and method of fast reroute for mpls multicast
US9071541B2 (en) * 2012-04-25 2015-06-30 Juniper Networks, Inc. Path weighted equal-cost multipath

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001200A (en) * 2006-01-13 2007-07-18 华为技术有限公司 Flow engineering full network counting method and system between regions
CN101237399A (en) * 2007-09-28 2008-08-06 华为技术有限公司 Method, system and device for getting label switching path
CN101610433A (en) * 2009-07-10 2009-12-23 北京邮电大学 The multi-constraint condition routing selection method that a kind of support policy is resolved
CN101645847A (en) * 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system for improving service resumption speed in transmission network

Also Published As

Publication number Publication date
CN105515981A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
US11716202B2 (en) Techniques for secure blockchain routing
KR102315401B1 (en) How to Establish Segment Routing for IPV6 Tunnels
US10237068B2 (en) Network path proof of transit using in-band metadata
US10116593B1 (en) Transmission and storage of routing path information and routing topology information using a single routing protocol
CN105900380B (en) Multiple domain source routing forwarding based on contract network controller
WO2018049649A1 (en) Network performance measurement method and device
WO2016058299A1 (en) Path computation method, tunnel establishment method, pcc, pce, path computation system and storage medium
JP2017517978A5 (en)
WO2018103738A1 (en) Route establishment method and device
WO2018210225A1 (en) Method and device for automatically implementing ioam encapsulation, and storage medium
US10616106B2 (en) Establishing virtual network routes in a computer network
WO2018103737A1 (en) Method and device for establishing route
US20230216788A1 (en) Systems and methods for securing network paths
WO2021022944A1 (en) Route calculation method involving stack depth constraint, and device
US11805047B2 (en) Method and apparatus for controlling network traffic path
US10666562B2 (en) Network path computation method, apparatus, and system
US10397093B2 (en) Method for acquiring cross-domain separation paths, path computation element and related storage medium
WO2018113793A1 (en) Path computation method and apparatus, pcc, pce and path computation system
WO2016061920A1 (en) Path backup method and system, header node device and intermediate node device
WO2015143981A1 (en) Packet forwarding method, system, and apparatus
WO2016141653A1 (en) Sctp connection re-establishing method, device and storage medium
WO2015120741A1 (en) Method and controller for notifying bandwidth of cluster system
WO2018219298A1 (en) Method and device for processing failure of path computation requested by path computation client (pcc)
WO2014094449A1 (en) Secure path cross-domain establishment method and system
WO2016065747A1 (en) Method and apparatus for identifying lsp reaggregation in p2mp

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

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

Country of ref document: EP

Kind code of ref document: A1