WO2009043256A1 - Method, system and device for obtaining label switched path - Google Patents

Method, system and device for obtaining label switched path Download PDF

Info

Publication number
WO2009043256A1
WO2009043256A1 PCT/CN2008/072260 CN2008072260W WO2009043256A1 WO 2009043256 A1 WO2009043256 A1 WO 2009043256A1 CN 2008072260 W CN2008072260 W CN 2008072260W WO 2009043256 A1 WO2009043256 A1 WO 2009043256A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
request
module
path calculation
constraint condition
Prior art date
Application number
PCT/CN2008/072260
Other languages
French (fr)
Chinese (zh)
Inventor
Hongmiao Xia
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009043256A1 publication Critical patent/WO2009043256A1/en

Links

Classifications

    • 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/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/20Hop count for routing purposes, e.g. TTL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/645Splitting route computation layer and forwarding layer, e.g. routing according to path computational element [PCE] or based on OpenFlow functionality

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, system, and device for acquiring a label switching path.
  • Traffic Engineering focuses on the optimization of overall network performance. Its main goal is to provide efficient and reliable network services, optimize the use of network resources, and optimize network traffic. Traffic engineering is divided into two levels: First, it is traffic-oriented, that is, how to improve the service quality of the network; Second, it is resource-oriented, that is, how to optimize the use of network resources, the most important thing is how to effectively use bandwidth resources.
  • traffic-oriented that is, how to improve the service quality of the network
  • resource-oriented that is, how to optimize the use of network resources, the most important thing is how to effectively use bandwidth resources.
  • GMPLS Geneneral Multiple Protocol Label Switch
  • MPLS Multiple Protocol Label Switch
  • GMPLS traffic engineering are important components.
  • the path calculation between multiple ASs is very complex. It may require the computing entities of different ASs to cooperate and work together.
  • the constrained path calculation method based on the PCE (Path Computation Element) model can also be applied to inter-domain traffic engineering. This calculation method does not affect the use of calculated paths, such as LSP (Label Swithing Path). Path) establishment, maintenance and removal.
  • the inbound label switching router PCC
  • the PCE When the LSP path is established by the ingress label switch (PC), the inbound label switching router (PCC) sends a request to the PCE through the PCEP protocol packet.
  • the destination information is included in the request information.
  • Basic information such as address and various constraints.
  • the PCE Based on the network topology information in the TED (Traffic Engineering Database), the PCE calculates the path that satisfies the condition of the request, and returns the response packet to the PCC as the ER0 (Explicit Route Object).
  • Path object the calculation results can contain precise nodes (a router) and loose nodes (a network segment, a region or an AS).
  • the calculation range that a PCE is responsible for is generally an AS. This is because the range of the TED information spread by the IGP (Interior Gateway Protocol) is an AS. When the destination of the calculation request is another AS, PCE collaboration between different ASs is required to complete the calculation of a path.
  • the PCE is not limited to a specific implementation, and may be implemented in a router or in a designated server.
  • the PCE (Path Computation Element Discovery Protocol) is responsible for PCC's discovery of the existence and computing power of the PCE.
  • the PCE is selected to send a calculation request for calculation;
  • PCEP Path Computation Element Communication Protocol
  • PCC contains various constraints.
  • PCE calculation requires other PCEs for assistance, Communication between PCEs also requires this communication protocol support.
  • the PCEP protocol carries various information in the form of TLV (Type, Length, Value, Type, Length, and Value).
  • TLV Type, Length, Value, Type, Length, and Value.
  • the encapsulation format is as follows:
  • Object-Class object type
  • Object-Type object type
  • processing rule field when set, indicates that the constraint described by the object must be processed
  • I Ignore the field, when set, indicates whether the constraint described by the object is ignored during the calculation
  • Object Length the length of the entire object
  • Object body The content of the object.
  • Object-Class and Object-Type only represent 'objects, and when 0b ject-Class and 0b ject-Type are determined, the contents of the Object body are determined.
  • R1_R3-R5. Assuming that each node and each link have the same probability of failure, it can be known from the perspective of probability that R1-R2-R4-R5 should have a higher probability of failure than R1-R3-R5. In other words, the fewer links and nodes that pass, the more reliable the path is.
  • an embodiment of the present invention provides a method, system, and device for acquiring a label switching path.
  • the technical solution is as follows:
  • An embodiment of the present invention provides a method for obtaining a label switching path, where the method includes:
  • a path calculation request carrying a destination address, a basic constraint condition, and a hop count constraint condition; calculating a path that satisfies the basic constraint condition according to a network topology structure and a destination address in the request; Selecting a path in which the number of hops satisfies the hop limit constraint;
  • An embodiment of the present invention provides a system for acquiring a label switching path, where the system includes:
  • a path calculation requesting device configured to send a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint;
  • a path calculation device configured to receive a path calculation request sent by the path calculation requesting device, calculate a path that satisfies the basic constraint condition according to a network topology structure and a destination address in the request, and select a path selected from the calculated path The hop counts the path satisfying the hop limit constraint, and returns the selected path to the path calculation requesting device.
  • the embodiment of the invention provides a device, and the device includes:
  • a packet extension module configured to extend a path calculation node communication protocol packet, and carry the hop limit constraint condition in the packet
  • a path calculation request sending module configured to use the path calculation node communication protocol packet sending path calculation request extended by the packet extension module, where the packet carries a destination address, a basic constraint condition, and a hop limit constraint condition;
  • the receiving module is configured to receive a path calculated by the path computing device. Further, the embodiment of the present invention further provides a device, where the device includes:
  • a path calculation request receiving module configured to receive a path calculation request, where the request carries a destination address, a basic constraint condition, and a hop limit constraint condition;
  • a path calculation module configured to calculate a destination address in the request received by the request receiving module according to the network topology and the path, and calculate a path that satisfies the basic constraint condition
  • a path selection module configured to select, from the path calculated by the path calculation module, a path whose hop count satisfies the hop limit condition
  • a sending module configured to return the path selected by the path selection module to the path calculation requesting device.
  • the hop count is increased as a new constraint. If other constraints are met, the path with the smallest hop count is selected, and the path passes through the node. The less the path, the higher the reliability of the path. Therefore, after the hop count is used as the constraint, a better LSP path can be obtained.
  • FIG. 1 is a schematic diagram of a ⁇ path node in the prior art
  • FIG. 2 is a flowchart of a method for acquiring a label switching path according to Embodiment 1 of the present invention
  • FIG. 3 is a structural diagram of a system for acquiring a label switching path according to Embodiment 2 of the present invention.
  • FIG. 4 is a structural diagram of an apparatus according to Embodiment 3 of the present invention.
  • FIG. 5 is a structural diagram of an apparatus according to Embodiment 4 of the present invention. detailed description
  • the hop count object is introduced into the PCEP protocol packet, and the hop count is used as the constraint condition of the CSPF calculation. When other constraints are met, the path with the least hop count is selected.
  • An embodiment of the present invention provides a method for obtaining a label switching path, which is implemented by a PCE, and includes: receiving a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint; according to the network topology and the request Destination address, calculate the path that satisfies the basic constraints;
  • the PCE in this embodiment may be a router or a designated server, configured to receive path calculation request information of the PCC, and calculate an LSP path that satisfies the constraint condition.
  • the foregoing method for obtaining a label switching path specifically includes the following steps:
  • Step 101 Extend the PCEP protocol packet, and introduce a new hop count object, that is, a MAX-H0P Object, into the PCEP protocol packet, and use the hop count as a constraint condition for obtaining the LSP path.
  • a new hop count object that is, a MAX-H0P Object
  • the Object-Class and Object-Type of the newly introduced hop object need to be additionally applied to distinguish them from some existing Objects.
  • the Object body format of the hop object is as follows:
  • S (Scope): Indicates the meaning of the hop count, whether it is a Node Hop or an Area Hop, or an AS Hop (AS hops) field that occupies 3 bits.
  • R Flag bit, which can be set to 1 or 0. It can be set to 1, indicating that the PCC needs to know the actual hop count of the path; by setting it to 0, the PCC does not need to know the actual hop count of the path, and the PCE does not need to return.
  • Hop-value Indicates the actual hop count of the path calculated by the PCE. For example, the hop-value is 3, which indicates that the hop count of the path calculated by the PCE is 3. You can determine which hop-value is specified based on the set value of the S field. The number of hops.
  • the PCE can return the minimum hop count in the actual path for PCC reference in the response message sent by the PCE to notify the PCC that the packet fails to be calculated.
  • the minimum hop count in the actual path is 7, PCE By setting the bit in the hop count object, the minimum hop count 7 is returned to the PCC in the response message sent by the PCE to notify the PCC that the calculation fails.
  • the PCC does not use the hop count as a constraint when calculating the path for the PCE, but requires the PCE to return the hop count as a result to the PCC after calculating the path.
  • Step 102 When the PCC establishes an LSP path, send a path calculation request to the PCE.
  • PCEs there may be one or more PCEs.
  • the PCC is sending PCEP to the PCE. Before the message, you can select a suitable PCE based on the computing power of each PCE.
  • the path calculation request carries the information of the constraint and the destination address of the path to be established by the PCC.
  • the constraint includes a basic constraint such as a bandwidth, a forbidden node, and a management group.
  • the hop limit is also added to the constraint. The condition, that is, when other constraints are met, the PCE is required to select the path with the smallest number of hops.
  • the path calculation request can be in various forms.
  • the packet is used as an example.
  • the PCC sends the extended PCEP protocol packet to the PCE.
  • the extended PCEP protocol packet can be set.
  • the number of hops of the object is set to set the number of hops required by the PCC. For example, the maximum acceptable number of hops is set to 5.
  • Step 103 After receiving the path calculation request sent by the PCC, the PCE calculates a path that satisfies the basic constraint condition in the request according to the information in the TED.
  • the TED stores the topology information of the same network.
  • the PCE calculates the path that satisfies the basic constraints in the packet according to the destination address and network topology information of the received packet. In the path of the constraint, select the path whose hop count satisfies the hop constraint.
  • Step 104 Determine whether there is a path that satisfies the constraint, and if yes, execute step 105; otherwise, execute step 106.
  • Step 105 The PCE sends a PCEP response message to the PCC, where the response message carries information such as an LSR address of the path node that meets the constraint condition, and then performs step 107.
  • the calculation result of the CSPF algorithm is to output an external path, which includes a set of LSR addresses of the shortest path nodes satisfying the constraint conditions, and the PCE can encode the calculated LSR address information of the path nodes satisfying the constraint condition by ER0.
  • the way to return to the PCC For example, in Figure 2, if two suitable paths are found with the constraints of bandwidth, etc.: R1-R2-R4-R5 and R1_R3_R5, then compare the hop count of the two paths and select the path with the smallest hop count, ie R1 -R3-R5, then PCE returns this result to the PCC via the response message.
  • the PCE When the PCE calculates a number of paths that satisfy the constraint, it will pick the optimal path and return the selected path to the PCC.
  • Step 106 The PCE sends a PCEP response message to the PCC to notify the PCC that the calculation fails, that is, there is no path that satisfies the current constraint condition.
  • the PCE When the calculation of the PCE fails due to the hop count, that is, the PCE does not select a path that satisfies the hop limit constraint in the calculated path that satisfies the basic constraint condition, it is determined according to the flag bit R in the PCEP protocol packet sent by the PCC. Whether to return the calculated number of hops of the path to the PCC. For example, the maximum acceptable hop count required in the request message is 5, and the calculated minimum hop count of the actual path is 7. When the R position is 1, the minimum hop count 7 is returned to the response message. PCC is used as a reference. When the R position is 0, the hop count information is not returned.
  • Step 107 After receiving the response message sent by the PCE, the PCC extracts the path node information in the packet and uses it as a construction. Establish the ELSP parameters of the LSP, initiate signaling to establish an LSP, and establish an LSP path.
  • the response packet received by the PCC is a notification that the calculation fails, it can wait for a period of time to calculate again, or reduce the constraint condition and request to calculate a new path again.
  • the method is the same as above, and will not be described here.
  • the hop count object is introduced in the packet by extending the PCEP protocol packet.
  • the hop count is used as a constraint condition, and if other constraints are satisfied, the path with the smallest hop count is selected. The fewer the nodes passing through the path, the more reliable it is. Therefore, after the hop count is used as the constraint, a better LSP path can be obtained.
  • an embodiment of the present invention provides a system for acquiring a label switching path, which specifically includes:
  • the path calculation requesting device 201 is configured to send a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint;
  • the path calculation device 202 is configured to receive a path calculation request sent by the path calculation requesting device 201, calculate a path that satisfies the basic constraint according to the network topology and the destination address in the request, and select a hop count from the calculated path to satisfy the hop. The path of the number of constraints is returned, and the selected path is returned to the path calculation requesting device 201.
  • the path calculation requesting device 201 may specifically include:
  • a message extension module configured to extend a path calculation node communication protocol packet, and carry a hop count constraint condition in the packet; the path calculation request sending module, and the path calculation node communication protocol packet sent by using the ten-use message extension module
  • the path calculation request carries the destination address, the basic constraint, and the hop limit constraint.
  • the path computing device 202 can specifically include:
  • a path calculation request receiving module configured to receive a path calculation request sent by the path calculation requesting device 201, and a path calculation module, configured to calculate a destination address in the request received by the request receiving module according to the network topology structure and the path, and calculate a basic constraint condition Path
  • a path selection module configured to select, from the path calculated by the path calculation module, a path whose hop count satisfies the hop constraint
  • a sending module configured to return the path selected by the path selection module to the path calculation requesting device 201.
  • an embodiment of the present invention provides an apparatus.
  • the device provided in this embodiment may be used to send a path calculation request when establishing an LSP path, and specifically includes:
  • the message expansion module 301 is configured to: extend the path calculation node communication protocol message, and carry the hop limit constraint condition in the message; the path calculation request sending module 302 is configured to use the path expansion node communication protocol extended by the message expansion module 301.
  • the packet is sent to the path calculation request, and the packet carries the destination address, the basic constraint, and the hop limit constraint.
  • the receiving module 303 is configured to receive a path calculated by the path computing device.
  • an embodiment of the present invention further provides an apparatus.
  • the device provided in this embodiment may be configured to receive a path calculation request, and calculate a path that meets a constraint condition in the request according to the request, and specifically includes:
  • the path calculation request receiving module 401 is configured to receive a path calculation request, where the request carries a destination address, a basic constraint condition, and a hop limit constraint condition;
  • the path calculation module 402 is configured to calculate a destination address in the request received by the request receiving module 401 according to the network topology and the path, and calculate a path that satisfies the basic constraint condition;
  • the path selection module 403 is configured to select, from the path calculated by the path calculation module 402, a path whose hop count satisfies the hop constraint condition;
  • the sending module 404 is configured to return the path selected by the path selecting module 403 to the path calculation requesting device.
  • the embodiments of the present invention can be implemented by software, and the corresponding software can be stored in a readable storage medium, such as a hard disk, a floppy disk or an optical disk of a computer, or a network device such as a router.
  • a hop count object is introduced in a PCEP packet. When the PCC establishes an LSP path, the hop count is used as a constraint condition, and if other constraints are satisfied, the path with the smallest hop count is selected, and the ⁇ path is passed. The fewer the nodes, the more reliable they are.

Landscapes

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

Abstract

A method, system and device for obtaining label switched path are provided. The method includes steps of: receiving a path computation request carrying destination address, basic constraint condition and hop count constraint condition; computing paths that meet basic constraint condition based on a network topology structure and the destination address; selecting a path with hop count meeting the hop count constraint condition from the computed paths; returning the selected path to a path computation request sending part. The system includes path computing request device and path computing device. The device includes message extending module, path computation request sending module and receiving module. Another device that includes path computation request receiving module, path computing module, path selecting module and sending module is also disclosed. This invention improves the reliability of the calculated path by adding the hop count constraint condition during the path calculation.

Description

获取标签交换路径的方法、 系统和设备 技术领域  Method, system and device for obtaining label switching path
本发明涉及通信领域, 特别涉及一种获取标签交换路径的方法、 系统和设备。 背景技术 说  The present invention relates to the field of communications, and in particular, to a method, system, and device for acquiring a label switching path. Background art
TE (Traffic Engineering,流量工程)关注网络整体性能的优化, 其主要目标是提供高 效可靠的网络服务, 优化网络资源的使用, 优化网络流量。 流量工程具体分为两个层面: 一是面向流量的, 即关注如何提高网络的服务质量; 二是面向资源的, 即关注如何优化网 络资源的使用,最主要的是如何有效地利用带宽资源。书随着网络部署范围的扩大,以及 GMPLS (Genneral Multiple Protocol Label Switch, 通用的多协议标签交换) 技术的发展, 域 间流量工程将会跨越不同的运营商, 涵盖 GMPLS网络。  TE (Traffic Engineering) focuses on the optimization of overall network performance. Its main goal is to provide efficient and reliable network services, optimize the use of network resources, and optimize network traffic. Traffic engineering is divided into two levels: First, it is traffic-oriented, that is, how to improve the service quality of the network; Second, it is resource-oriented, that is, how to optimize the use of network resources, the most important thing is how to effectively use bandwidth resources. With the expansion of network deployment and the development of GMPLS (Genneral Multiple Protocol Label Switch) technology, inter-domain traffic engineering will span different operators, covering GMPLS networks.
CSPF ( Constraint-based Shortest Path First , 基于约束的最短路径优先) 计算是 CSPF (Constraint-based Shortest Path First)
MPLS (Multiple Protocol Label Switch, 多协议标签交换) 和 GMPLS 流量工程的重要组 成部分, 多 AS (Autonomous Systems, 自治系统) 间的路径计算非常复杂, 可能需要不同 AS 的计算实体相互协作, 共同完成。 此外, 基于 PCE (Path Computation Element , 路径 计算节点) 模型的约束路径计算方法也可以应用于域间流量工程, 该计算方法并不影响计 算出来的路径的使用, 如 LSP ( Label Swithing Path, 标签交换路径) 的建立、 维护和拆 除。 MPLS (Multiple Protocol Label Switch) and GMPLS traffic engineering are important components. The path calculation between multiple ASs is very complex. It may require the computing entities of different ASs to cooperate and work together. In addition, the constrained path calculation method based on the PCE (Path Computation Element) model can also be applied to inter-domain traffic engineering. This calculation method does not affect the use of calculated paths, such as LSP (Label Swithing Path). Path) establishment, maintenance and removal.
基于 PCE模型的约束路径计算方法具体如下:  The method of constrained path calculation based on PCE model is as follows:
当 PCC (Path Computation Client ,路径计算客户端),如 ingress LSR ( ingress Label Switch Router, 入口标签交换路由器) 建立 LSP路径时, 通过 PCEP协议报文向 PCE发送 请求, 请求信息中会含有路径的目的地址和各种约束条件等基本信息。  When the LSP path is established by the ingress label switch (PC), the inbound label switching router (PCC) sends a request to the PCE through the PCEP protocol packet. The destination information is included in the request information. Basic information such as address and various constraints.
PCE根据 TED (Traffic Engineering Database, 流量工程数据库) 中的网络拓扑信息, 计算出满足该请求中的约朿条件的路径, 通过响应报文返回给 PCC, 作为建立 LSP 的 ER0 ( Explicit Route Object , 显式路径对象) 参数, 计算结果中可以含有精确节点 (一个路 由器) 和松散节点 (一个网段、 一个区域或一个 AS ) 。  Based on the network topology information in the TED (Traffic Engineering Database), the PCE calculates the path that satisfies the condition of the request, and returns the response packet to the PCC as the ER0 (Explicit Route Object). Path object) parameters, the calculation results can contain precise nodes (a router) and loose nodes (a network segment, a region or an AS).
一个 PCE负责的计算范围一般是一个 AS, 这是由于 IGP ( Interior Gateway Protocol , 内部网关协议)扩散 TED信息的范围是一个 AS, 当计算请求的目的地是另外一个 AS时, 则 需要不同的 AS间的 PCE协作, 来完成一条路径的计算。 PCE不限于具体实现形式, 可以实 现于路由器中, 或者是一台指定的服务器中。 The calculation range that a PCE is responsible for is generally an AS. This is because the range of the TED information spread by the IGP (Interior Gateway Protocol) is an AS. When the destination of the calculation request is another AS, PCE collaboration between different ASs is required to complete the calculation of a path. The PCE is not limited to a specific implementation, and may be implemented in a router or in a designated server.
在 PCE模型中有两个基本协议:  There are two basic protocols in the PCE model:
PCED (Path Computation Element Discovery Protocol, PCE 发现协议) , 负责 PCC 发现 PCE的存在和计算能力, 在 PCC有计算请求时, 根据该协议得到的信息, 选择合适的 PCE发送计算请求进行计算;  The PCE (Path Computation Element Discovery Protocol) is responsible for PCC's discovery of the existence and computing power of the PCE. When the PCC has a calculation request, according to the information obtained by the protocol, the PCE is selected to send a calculation request for calculation;
PCEP (Path Computation Element communication Protocol, PCE通信协议) , 负责 PCC和 PCE之间传送计算请求和响应信息, PCC在发送计算请求时, 包含各种约束条件, 当 某一 PCE计算需要其它 PCE进行协助, PCE之间的通信也需要该通信协议支持。  PCEP (Path Computation Element Communication Protocol), which is responsible for transmitting calculation request and response information between PCC and PCE. When sending a calculation request, PCC contains various constraints. When a PCE calculation requires other PCEs for assistance, Communication between PCEs also requires this communication protocol support.
PCEP协议报文采用 TLV (Type, Length, Value, 类型, 长度, 值) 方式携带各种信息, 封装格式如下:  The PCEP protocol carries various information in the form of TLV (Type, Length, Value, Type, Length, and Value). The encapsulation format is as follows:
0 1 2 3  0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Object-Class | 0T Res | P | I Object Length (bytes) Object-Class | 0T Res | P | I Object Length (bytes)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
(Object body) // (Object body) //
其中各个字段的含义如下: The meaning of each field is as follows:
Object-Class: 对象种类;  Object-Class: object type;
Object-Type: 对象类型;  Object-Type: object type;
Res: 保留字段;  Res: reserved field;
P: 处理规则字段, 置位时表示该对象描述的约束条件必须被处理;  P: processing rule field, when set, indicates that the constraint described by the object must be processed;
I: 忽略字段, 置位时表示该对象描述的约束条件在计算时是否被忽略;  I: Ignore the field, when set, indicates whether the constraint described by the object is ignored during the calculation;
Object Length: 整个对象的长度;  Object Length: the length of the entire object;
Object body: 对象的内容。  Object body: The content of the object.
其中, Object-Class和 Object-Type唯 ·表示 '个对象,当 0b ject-Class和 0b ject-Type 确定后, Object body的内容也就确定了。  Among them, Object-Class and Object-Type only represent 'objects, and when 0b ject-Class and 0b ject-Type are determined, the contents of the Object body are determined.
在建立 LSP路径时, 得到的满足约束条件的路径不止一个。 例如, 参见图 1, 网络中有 5 个节点 Rl、 R2、 R3、 R4和 R5, 其中, R1-R2, R2-R4, R4-R5之间的 TE代价均为 10, Rl- R3, R3-R5的 TE代价均为 15 ; 现在需要建立一个 Rl到 R5的 TE路径, 假设带宽信息在每个链路上都 完全 .样并且满足约束条件, 通过当前的拓扑可知有两条路径: R1-R2-R4-R5和 R1-R3-R5 , 总的 TE代价都是 30, 所以可以认为这是两条等价的路径。 When the LSP path is established, more than one path is obtained that satisfies the constraint. For example, see Figure 1, there are 5 in the network. Nodes R1, R2, R3, R4, and R5, where the TE cost between R1-R2, R2-R4, and R4-R5 is 10, and the TE cost of Rl-R3 and R3-R5 is 15; Establish a TE path from R1 to R5. Assume that the bandwidth information is complete on each link and meets the constraints. The current topology shows that there are two paths: R1-R2-R4-R5 and R1-R3-R5 The total TE cost is 30, so you can think of this as two equivalent paths.
但是, 如果需要找出一条更加可靠的路径, 应该选择 R1_R3-R5。 假定各个节点以及各 条链路发生故障的可能性相同, 从概率的角度分析可以知道, R1-R2-R4-R5应该比 R1-R3-R5 发生故障的概率高。 也就是说经过的链路和节点越少, 那么这条路径相对来说就更加可靠。  However, if you need to find a more reliable path, you should choose R1_R3-R5. Assuming that each node and each link have the same probability of failure, it can be known from the perspective of probability that R1-R2-R4-R5 should have a higher probability of failure than R1-R3-R5. In other words, the fewer links and nodes that pass, the more reliable the path is.
在实现本发明的过程中, 发明人发现现有技术至少存在如下问题:  In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
在建立 LSP路径时, 无法从得到的满足现有约束条件的路径中选择出更加可靠的 LSP路 径, 使选择的路径不够优化, 实用性差。 发明内容  When establishing an LSP path, it is impossible to select a more reliable LSP path from the obtained path that satisfies the existing constraint, so that the selected path is not optimized enough and the practicability is poor. Summary of the invention
为了找到更优的 LSP路径, 本发明实施例提供了一种获取标签交换路径的方法、 系统 和设备。 所述技术方案如下:  In order to find a better LSP path, an embodiment of the present invention provides a method, system, and device for acquiring a label switching path. The technical solution is as follows:
本发明实施例提供了一种获取标签交换路径的方法, 所述方法包括:  An embodiment of the present invention provides a method for obtaining a label switching path, where the method includes:
接收路径计算请求, 所述请求携带目的地址、 基本约束条件和跳数约束条件; 根据网络拓扑结构和所述请求中的目的地址, 计算满足所述基本约束条件的路径; 从所计算出的路径中选择跳数满足所述跳数约束条件的路径;  Receiving a path calculation request, the request carrying a destination address, a basic constraint condition, and a hop count constraint condition; calculating a path that satisfies the basic constraint condition according to a network topology structure and a destination address in the request; Selecting a path in which the number of hops satisfies the hop limit constraint;
将选择出的路径返回给路径计算请求发送方。  Return the selected path to the path calculation request sender.
本发明实施例提供了 种获取标签交换路径的系统, 所述系统包括:  An embodiment of the present invention provides a system for acquiring a label switching path, where the system includes:
路径计算请求设备, 用于发送路径计算请求, 所述请求携带目的地址、 基本约束条件 和跳数约束条件;  a path calculation requesting device, configured to send a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint;
路径计算设备, 用于接收所述路径计算请求设备发送的路径计算请求, 根据网络拓扑 结构和所述请求中的目的地址, 计算满足所述基本约束条件的路径, 从所计算出的路径中 选择跳数满足所述跳数约束条件的路径, 并将选择出的路径返回给所述路径计算请求设备。  a path calculation device, configured to receive a path calculation request sent by the path calculation requesting device, calculate a path that satisfies the basic constraint condition according to a network topology structure and a destination address in the request, and select a path selected from the calculated path The hop counts the path satisfying the hop limit constraint, and returns the selected path to the path calculation requesting device.
本发明实施例提供了 种设备, 所述设备包括:  The embodiment of the invention provides a device, and the device includes:
报文扩展模块, 用于扩展路径计算节点通信协议报文, 在所述报文中携带跳数约束条 件;  a packet extension module, configured to extend a path calculation node communication protocol packet, and carry the hop limit constraint condition in the packet;
路径计算请求发送模块, 用于使用所述报文扩展模块扩展后的路径计算节点通信协议 报文发送路径计算请求, 所述报文携带目的地址、 基本约束条件和跳数约束条件;  a path calculation request sending module, configured to use the path calculation node communication protocol packet sending path calculation request extended by the packet extension module, where the packet carries a destination address, a basic constraint condition, and a hop limit constraint condition;
接收模块, 用于接收路径计算设备计算出的路径。 进一歩地, 本发明实施例还提供了一种设备, 所述设备包括: The receiving module is configured to receive a path calculated by the path computing device. Further, the embodiment of the present invention further provides a device, where the device includes:
路径计算请求接收模块, 用于接收路径计算请求, 所述请求携带目的地址、 基本约束 条件和跳数约束条件;  a path calculation request receiving module, configured to receive a path calculation request, where the request carries a destination address, a basic constraint condition, and a hop limit constraint condition;
路径计算模块, 用于根据网络拓扑结构和所述路径计算请求接收模块接收的请求中的 目的地址, 计算满足所述基本约束条件的路径;  a path calculation module, configured to calculate a destination address in the request received by the request receiving module according to the network topology and the path, and calculate a path that satisfies the basic constraint condition;
路径选择模块, 用于从所述路径计算模块所计算出的路径中选择跳数满足所述跳数约 束条件的路径;  a path selection module, configured to select, from the path calculated by the path calculation module, a path whose hop count satisfies the hop limit condition;
发送模块, 用于将所述路径选择模块选择出的路径返回给路径计算请求设备。  And a sending module, configured to return the path selected by the path selection module to the path calculation requesting device.
本发明实施例提供的技术方案的有益效果是:  The beneficial effects of the technical solutions provided by the embodiments of the present invention are:
通过在 PCEP报文中引进跳数对象, 在 PCC建立 LSP路径时, 增加跳数作为新的约束条 件, 在其它约束条件都满足的情况下, 选择跳数最小的路径, ώ于路径经过的节点越少, 路径的可靠性也越高, 因此将跳数作为约束条件后, 可以获取到更优的 LSP路径。 附图说明  By introducing a hop object in a PCEP packet, when the LSP path is established on the PCC, the hop count is increased as a new constraint. If other constraints are met, the path with the smallest hop count is selected, and the path passes through the node. The less the path, the higher the reliability of the path. Therefore, after the hop count is used as the constraint, a better LSP path can be obtained. DRAWINGS
图 1是现有技术中 ΤΕ路径节点的示意图;  1 is a schematic diagram of a ΤΕ path node in the prior art;
图 2是本发明实施例 1提供的获取标签交换路径的方法的流程图;  2 is a flowchart of a method for acquiring a label switching path according to Embodiment 1 of the present invention;
图 3是本发明实施例 2提供的获取标签交换路径的系统的结构图;  3 is a structural diagram of a system for acquiring a label switching path according to Embodiment 2 of the present invention;
图 4是本发明实施例 3提供的设备的结构图;  4 is a structural diagram of an apparatus according to Embodiment 3 of the present invention;
图 5是本发明实施例 4提供的设备的结构图。 具体实施方式  Figure 5 is a structural diagram of an apparatus according to Embodiment 4 of the present invention. detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进 ·^地详细描述。  In order to make the objects, the technical solutions and the advantages of the present invention more apparent, the embodiments of the present invention will be described in detail below.
本发明实施例通过在 PCEP协议报文中引进跳数对象, 将跳数作为 CSPF计算的约束条 件, 当其它约束条件都满足时, 选择跳数最少的路径。  In the embodiment of the present invention, the hop count object is introduced into the PCEP protocol packet, and the hop count is used as the constraint condition of the CSPF calculation. When other constraints are met, the path with the least hop count is selected.
实施例 1  Example 1
本发明实施例提供了一种获取标签交换路径的方法, 该方法通过 PCE完成, 包括: 接收路径计算请求, 该请求携带目的地址、 基本约束条件和跳数约束条件; 根据网络拓扑结构和请求中的目的地址, 计算满足基本约束条件的路径;  An embodiment of the present invention provides a method for obtaining a label switching path, which is implemented by a PCE, and includes: receiving a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint; according to the network topology and the request Destination address, calculate the path that satisfies the basic constraints;
从所计算出的路径中选择跳数满足跳数约束条件的路径;  Selecting, from the calculated paths, a path whose hop count satisfies the hop limit constraint;
将选择出的路径返回给路径计算请求发送方。 本实施例中的 PCE可以是一个路由器或者是一台指定的服务器, 用于接收 PCC的路径 计算请求信息, 计算满足约束条件的 LSP路径。 Return the selected path to the path calculation request sender. The PCE in this embodiment may be a router or a designated server, configured to receive path calculation request information of the PCC, and calculate an LSP path that satisfies the constraint condition.
参见图 2, 上述获取标签交换路径的方法具体包括以下歩骤:  Referring to FIG. 2, the foregoing method for obtaining a label switching path specifically includes the following steps:
歩骤 101:扩展 PCEP协议报文,在 PCEP协议报文中引进一个新的跳数对象,即 MAX-H0P Object, 将跳数作为获取 LSP路径时的一个约束条件。  Step 101: Extend the PCEP protocol packet, and introduce a new hop count object, that is, a MAX-H0P Object, into the PCEP protocol packet, and use the hop count as a constraint condition for obtaining the LSP path.
新引进的跳数对象的 Object-Class和 Object-Type需要另外申请, 以区别于已有的一 些 Object, 跳数对象的 Object body格式如下:  The Object-Class and Object-Type of the newly introduced hop object need to be additionally applied to distinguish them from some existing Objects. The Object body format of the hop object is as follows:
0 1 2 3  0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+
R I S hop-value  R I S hop-value
+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 其中,上述新申请的跳数对象中各个字段的含义如下:  +-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+ Among them, the meanings of the fields in the hop count object of the above new application are as follows:
S (Scope): 表示跳数的含义, 是 Node Hop (节点跳数), 还是 Area Hop (域跳数), 或是 AS Hop (AS跳数) ^字段占用 3个 bit位。  S (Scope): Indicates the meaning of the hop count, whether it is a Node Hop or an Area Hop, or an AS Hop (AS hops) field that occupies 3 bits.
R: 标志位, 可以设置为 1或 0。 可以通过设置为 1, 表示 PCC需要知道路径的实际跳 数; 通过设置为 0表示 PCC不需要知道路径的实际跳数, PCE没有必要返回。  R: Flag bit, which can be set to 1 or 0. It can be set to 1, indicating that the PCC needs to know the actual hop count of the path; by setting it to 0, the PCC does not need to know the actual hop count of the path, and the PCE does not need to return.
hop-value: 表示 PCE计算出的路径的实际跳数, 例如, hop-value为 3, 表示 PCE计 算出的路径的跳数为 3, 可以根据 S字段的设置值来判断 hop-value具体表示哪类跳数。  Hop-value: Indicates the actual hop count of the path calculated by the PCE. For example, the hop-value is 3, which indicates that the hop count of the path calculated by the PCE is 3. You can determine which hop-value is specified based on the set value of the S field. The number of hops.
1) 当 PCC需要建立 LSP路径时, 向 PCE发送扩展后的 PCEP协议报文, 设置 ·个最大 能接受的跳数, 作为 PCE时的一个约束条件, 例如, 设置最大能接受的跳数为 5, 如果 PCE 无法计算出满足指定跳数的路径时, 即没有找到跳数在 5 以内的路径时, 向 PCC通知计算 失败;  1) When the PCC needs to establish an LSP path, send the extended PCEP protocol packet to the PCE, and set the maximum acceptable hop count as a constraint condition for the PCE. For example, set the maximum acceptable hop count to 5 If the PCE cannot calculate the path that meets the specified hop count, that is, if the path with the hop count is less than 5, the PCC is notified that the calculation fails;
2) 如果 PCE因为跳数的原因计算失败, 可以在 PCE发送的通知 PCC计算失败的响应报 文中返回实际路径中的最小跳数供 PCC参考, 例如, 实际路径中最小跳数为 7, PCE通过设 置跳数对象中的比特位, 在 PCE发送的通知 PCC计算失败的响应报文中将最小跳数 7返冋 给 PCC;  2) If the PCE fails to calculate due to the hop count, the PCE can return the minimum hop count in the actual path for PCC reference in the response message sent by the PCE to notify the PCC that the packet fails to be calculated. For example, the minimum hop count in the actual path is 7, PCE By setting the bit in the hop count object, the minimum hop count 7 is returned to the PCC in the response message sent by the PCE to notify the PCC that the calculation fails.
3) PCC没有将跳数作为 PCE计算路径时的一个约束条件, 但是要求 PCE在计算出路径 后, 将跳数作为结果的 ·部分返回给 PCC。  3) The PCC does not use the hop count as a constraint when calculating the path for the PCE, but requires the PCE to return the hop count as a result to the PCC after calculating the path.
歩骤 102: 当 PCC建立 LSP路径时, 向 PCE发送路径计算请求。  Step 102: When the PCC establishes an LSP path, send a path calculation request to the PCE.
在一个 AS内部, 可以有一个或多个 PCE, 当存在多个 PCE时, PCC在向 PCE发送 PCEP 报文前, 可以根据每个 PCE的计算能力选择一个合适的 PCE。 Within an AS, there may be one or more PCEs. When there are multiple PCEs, the PCC is sending PCEP to the PCE. Before the message, you can select a suitable PCE based on the computing power of each PCE.
路径计算请求中携带了约束条件和 PCC要建立的路径的目的地址的信息, 约束条件包 括带宽、 禁止节点、 管理组等基本约束条件, 在本实施例中, 约束条件中还增加了跳数约 束条件, 即在其它约束条件都满足时, 要求 PCE选择跳数最小的路径。  The path calculation request carries the information of the constraint and the destination address of the path to be established by the PCC. The constraint includes a basic constraint such as a bandwidth, a forbidden node, and a management group. In this embodiment, the hop limit is also added to the constraint. The condition, that is, when other constraints are met, the PCE is required to select the path with the smallest number of hops.
路径计算请求可以有多种形式, 本实施例中以报文为例进行说明, PCC向 PCE发送扩展 后的 PCEP协议报文, 对于新增加的约束条件, 可以设置扩展后的 PCEP协议报文中跳数对 象的比特位, 来设置 PCC要求的跳数, 例如, 设置最大能接受的跳数为 5。  The path calculation request can be in various forms. In this embodiment, the packet is used as an example. The PCC sends the extended PCEP protocol packet to the PCE. For the newly added constraint, the extended PCEP protocol packet can be set. The number of hops of the object is set to set the number of hops required by the PCC. For example, the maximum acceptable number of hops is set to 5.
歩骤 103 : PCE收到 PCC发送的路径计算请求后, 根据 TED中的信息计算满足该请求中 的基本约束条件的路径。  Step 103: After receiving the path calculation request sent by the PCC, the PCE calculates a path that satisfies the basic constraint condition in the request according to the information in the TED.
TED中存储着与网络同歩的拓扑信息, PCE根据接收到的报文中的路径的目的地址和网 络拓扑信息, 通过 CSPF算法计算满足报文中基本约束条件的路径, 在计算出的满足基本约 束条件的路径中选择跳数满足跳数约束条件的路径。  The TED stores the topology information of the same network. The PCE calculates the path that satisfies the basic constraints in the packet according to the destination address and network topology information of the received packet. In the path of the constraint, select the path whose hop count satisfies the hop constraint.
歩骤 104 : 判断是否存在满足约束条件的路径, 如果是, 则执行歩骤 105 ; 否则, 执行 歩骤 106。  Step 104: Determine whether there is a path that satisfies the constraint, and if yes, execute step 105; otherwise, execute step 106.
歩骤 105 : PCE向 PCC发送 PCEP响应报文, 该响应报文中携带了一组满足约束条件的 路径节点的 LSR地址等信息, 然后执行歩骤 107。  Step 105: The PCE sends a PCEP response message to the PCC, where the response message carries information such as an LSR address of the path node that meets the constraint condition, and then performs step 107.
CSPF算法的计算结果是输出一个外在路 , 该外在路 包含了一组满足约束条件的最 短路径节点的 LSR地址, PCE可以将计算出的满足约束条件的路径节点的 LSR地址信息以 ER0编码的方式返回给 PCC。 例如, 在图 2中, 如果以带宽等为约束条件找到两条合适的路 径: R1-R2-R4-R5和 R1_R3_R5,这时比较两条路径的跳数,选择跳数最小的路径,即 R1-R3-R5 , 然后 PCE将这个结果通过响应报文返回给 PCC。  The calculation result of the CSPF algorithm is to output an external path, which includes a set of LSR addresses of the shortest path nodes satisfying the constraint conditions, and the PCE can encode the calculated LSR address information of the path nodes satisfying the constraint condition by ER0. The way to return to the PCC. For example, in Figure 2, if two suitable paths are found with the constraints of bandwidth, etc.: R1-R2-R4-R5 and R1_R3_R5, then compare the hop count of the two paths and select the path with the smallest hop count, ie R1 -R3-R5, then PCE returns this result to the PCC via the response message.
当 PCE计算出多条满足约束条件的路径时, 将从中挑选最优的路径, 将挑选出的路径 返回给 PCC。  When the PCE calculates a number of paths that satisfy the constraint, it will pick the optimal path and return the selected path to the PCC.
歩骤 106 : PCE向 PCC发送 PCEP响应报文, 通知 PCC计算失败, 即不存在满足当前约 束条件的路径。  Step 106: The PCE sends a PCEP response message to the PCC to notify the PCC that the calculation fails, that is, there is no path that satisfies the current constraint condition.
当 PCE因为跳数的原因计算失败时, 即 PCE没有在计算出的满足基本约束条件的路径 中选出满足跳数约束条件的路径时, 根据 PCC发送的 PCEP协议报文中的标志位 R判断是否 将计算出的路径的跳数返回给 PCC。 例如, 请求报文中要求的最大能接受的跳数为 5, 而计 算出的实际路径的最小的跳数为 7, 当 R位置 1 时, 在响应报文中将该最小跳数 7返回给 PCC作为参考, 当 R位置 0时, 不返回跳数信息。  When the calculation of the PCE fails due to the hop count, that is, the PCE does not select a path that satisfies the hop limit constraint in the calculated path that satisfies the basic constraint condition, it is determined according to the flag bit R in the PCEP protocol packet sent by the PCC. Whether to return the calculated number of hops of the path to the PCC. For example, the maximum acceptable hop count required in the request message is 5, and the calculated minimum hop count of the actual path is 7. When the R position is 1, the minimum hop count 7 is returned to the response message. PCC is used as a reference. When the R position is 0, the hop count information is not returned.
歩骤 107 : PCC收到 PCE发送的响应报文后, 提取报文中的路径节点信息, 将其作为建 立 LSP的 ERO参数, 发起建立 LSP的信令, 建立 LSP路径。 Step 107: After receiving the response message sent by the PCE, the PCC extracts the path node information in the packet and uses it as a construction. Establish the ELSP parameters of the LSP, initiate signaling to establish an LSP, and establish an LSP path.
如果 PCC 收到的响应报文是通知计算失败的, 可以等待一段时间再次计算, 或者降低 约束条件再次请求计算新的路径, 方法同上, 这里不再赘述。  If the response packet received by the PCC is a notification that the calculation fails, it can wait for a period of time to calculate again, or reduce the constraint condition and request to calculate a new path again. The method is the same as above, and will not be described here.
本实施例通过扩展 PCEP协议报文,在该报文中引进跳数对象,当 PCC建立 LSP路径时, 将跳数作为约束条件, 在其它约束条件都满足的情况下, 选择跳数最小的路径, 由于路径 经过的节点越少, 相对来说也越可靠, 因此将跳数作为约束条件后, 可以获取到更优的 LSP 路径。  In this embodiment, the hop count object is introduced in the packet by extending the PCEP protocol packet. When the PCC establishes the LSP path, the hop count is used as a constraint condition, and if other constraints are satisfied, the path with the smallest hop count is selected. The fewer the nodes passing through the path, the more reliable it is. Therefore, after the hop count is used as the constraint, a better LSP path can be obtained.
实施例 2  Example 2
参见图 3, 本发明实施例提供了一种获取标签交换路径的系统, 具体包括:  Referring to FIG. 3, an embodiment of the present invention provides a system for acquiring a label switching path, which specifically includes:
路径计算请求设备 201, 用于发送路径计算请求, 请求携带目的地址、 基本约束条件和 跳数约束条件;  The path calculation requesting device 201 is configured to send a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint;
路径计算设备 202, 用于接收路径计算请求设备 201发送的路径计算请求, 根据网络拓 扑结构和请求中的目的地址, 计算满足基本约束条件的路径, 从所计算出的路径中选择跳 数满足跳数约束条件的路径, 并将选择出的路径返回给路径计算请求设备 201。  The path calculation device 202 is configured to receive a path calculation request sent by the path calculation requesting device 201, calculate a path that satisfies the basic constraint according to the network topology and the destination address in the request, and select a hop count from the calculated path to satisfy the hop. The path of the number of constraints is returned, and the selected path is returned to the path calculation requesting device 201.
进一歩地, 路径计算请求设备 201可以具体包括:  Further, the path calculation requesting device 201 may specifically include:
报文扩展模块, 用于扩展路径计算节点通信协议报文, 在报文中携带跳数约束条件; 路径计算请求发送模块, 用十使用报文扩展模块扩展后的路径计算节点通信协议报文 发送路径计算请求, 报文携带目的地址、 基本约束条件和跳数约束条件。  a message extension module, configured to extend a path calculation node communication protocol packet, and carry a hop count constraint condition in the packet; the path calculation request sending module, and the path calculation node communication protocol packet sent by using the ten-use message extension module The path calculation request carries the destination address, the basic constraint, and the hop limit constraint.
路径计算设备 202可以具体包括:  The path computing device 202 can specifically include:
路径计算请求接收模块, 用于接收路径计算请求设备 201发送的路径计算请求; 路径计算模块, 用于根据网络拓扑结构和路径计算请求接收模块接收的请求中的目的 地址, 计算满足基本约束条件的路径;  a path calculation request receiving module, configured to receive a path calculation request sent by the path calculation requesting device 201, and a path calculation module, configured to calculate a destination address in the request received by the request receiving module according to the network topology structure and the path, and calculate a basic constraint condition Path
路径选择模块, 用于从路径计算模块所计算出的路径中选择跳数满足跳数约束条件的 路径;  a path selection module, configured to select, from the path calculated by the path calculation module, a path whose hop count satisfies the hop constraint;
发送模块, 用于将路径选择模块选择出的路径返回给路径计算请求设备 201。  And a sending module, configured to return the path selected by the path selection module to the path calculation requesting device 201.
实施例 3  Example 3
参见图 4, 本发明实施例提供了一种设备, 本实施例提供的设备可以用于在建立 LSP路 径时, 发送路径计算请求, 具体包括:  Referring to FIG. 4, an embodiment of the present invention provides an apparatus. The device provided in this embodiment may be used to send a path calculation request when establishing an LSP path, and specifically includes:
报文扩展模块 301,用于扩展路径计算节点通信协议报文,在报文中携带跳数约束条件; 路径计算请求发送模块 302,用于使用报文扩展模块 301扩展后的路径计算节点通信协 议报文发送路径计算请求, 报文携带目的地址、 基本约束条件和跳数约束条件; 接收模块 303, 用于接收路径计算设备计算出的路径。 实施例 4 The message expansion module 301 is configured to: extend the path calculation node communication protocol message, and carry the hop limit constraint condition in the message; the path calculation request sending module 302 is configured to use the path expansion node communication protocol extended by the message expansion module 301. The packet is sent to the path calculation request, and the packet carries the destination address, the basic constraint, and the hop limit constraint. The receiving module 303 is configured to receive a path calculated by the path computing device. Example 4
参见图 5, 本发明实施例还提供了一种设备, 本实施例提供的设备可以用于接收路径计 算请求, 根据请求计算满足请求中约束条件的路径, 具体包括:  Referring to FIG. 5, an embodiment of the present invention further provides an apparatus. The device provided in this embodiment may be configured to receive a path calculation request, and calculate a path that meets a constraint condition in the request according to the request, and specifically includes:
路径计算请求接收模块 401, 用于接收路径计算请求, 请求携带目的地址、 基本约束条 件和跳数约束条件;  The path calculation request receiving module 401 is configured to receive a path calculation request, where the request carries a destination address, a basic constraint condition, and a hop limit constraint condition;
路径计算模块 402,用于根据网络拓扑结构和路径计算请求接收模块 401接收的请求中 的目的地址, 计算满足基本约束条件的路径;  The path calculation module 402 is configured to calculate a destination address in the request received by the request receiving module 401 according to the network topology and the path, and calculate a path that satisfies the basic constraint condition;
路径选择模块 403,用于从路径计算模块 402所计算出的路径中选择跳数满足跳数约束 条件的路径;  The path selection module 403 is configured to select, from the path calculated by the path calculation module 402, a path whose hop count satisfies the hop constraint condition;
发送模块 404, 用于将路径选择模块 403选择出的路径返回给路径计算请求设备。 本发明实施例可以通过软件实现, 相应的软件可以存储在可读取的存储介质中, 例如 计算机的硬盘、 软盘或光盘中, 或路 器等网络设备中。 本发明实施例通过在 PCEP报文中引进跳数对象, 当 PCC建立 LSP路径时, 将跳数作为 约束条件, 在其它约束条件都满足的情况下, 选择跳数最小的路径, ώ十路径经过的节点 越少, 相对来说也越可靠, 因此将跳数作为约束条件后, 可以获取到更优的 LSP路径。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The sending module 404 is configured to return the path selected by the path selecting module 403 to the path calculation requesting device. The embodiments of the present invention can be implemented by software, and the corresponding software can be stored in a readable storage medium, such as a hard disk, a floppy disk or an optical disk of a computer, or a network device such as a router. In the embodiment of the present invention, a hop count object is introduced in a PCEP packet. When the PCC establishes an LSP path, the hop count is used as a constraint condition, and if other constraints are satisfied, the path with the smallest hop count is selected, and the ώ path is passed. The fewer the nodes, the more reliable they are. Therefore, after the hop count is used as a constraint, a better LSP path can be obtained. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 书 Claim
1.一种获取标签交换路径的方法, 其特征在于, 所述方法包括:  A method for obtaining a label switching path, the method comprising:
接收路径计算请求, 所述请求携带目的地址、 基本约束条件和跳数约束条件; 根据网络拓扑结构和所述请求中的目的地址, 计算满足所述基本约束条件的路径; 从所计算出的路径中选择跳数满足所述跳数约束条件的路径;  Receiving a path calculation request, the request carrying a destination address, a basic constraint condition, and a hop count constraint condition; calculating a path that satisfies the basic constraint condition according to a network topology structure and a destination address in the request; Selecting a path in which the number of hops satisfies the hop limit constraint;
将选择出的路径返回给路径计算请求发送方。  Return the selected path to the path calculation request sender.
2.根据权利要求 1 所述的获取标签交换路径的方法, 其特征在于, 所述路径计算请求 具体为携带跳数约束条件的路径计算节点通信协议报文。 The method for obtaining a label switching path according to claim 1, wherein the path calculation request is specifically a path calculation node communication protocol message carrying a hop limit constraint condition.
3.根据权利要求 1所述的获取标签交换路径的方法, 其特征在于, 所述方法还包括: 当所计算出的路径中没有满足所述跳数约束条件的路径时, 向路径计算请求发送方返 计算失败通知。 The method for obtaining a label switching path according to claim 1, wherein the method further comprises: when there is no path that satisfies the hop limit constraint in the calculated path, requesting a sender to the path calculation request Return to the calculation failure notice.
4. 一种获取标签交换路径的系统, 其特征在于, 所述系统包括: A system for obtaining a label switching path, the system comprising:
路径计算请求设备, 用于发送路径计算请求, 所述请求携带目的地址、 基本约束条件 和跳数约束条件;  a path calculation requesting device, configured to send a path calculation request, where the request carries a destination address, a basic constraint, and a hop limit constraint;
路径计算设备, 用于接收所述路径计算请求设备发送的路径计算请求, 根据网络拓扑 结构和所述请求中的目的地址, 计算满足所述基本约束条件的路径, 从所计算出的路径中 选择跳数满足所述跳数约束条件的路径, 并将选择出的路径返回给所述路径计算请求设备。  a path calculation device, configured to receive a path calculation request sent by the path calculation requesting device, calculate a path that satisfies the basic constraint condition according to a network topology structure and a destination address in the request, and select a path selected from the calculated path The hop counts the path satisfying the hop limit constraint, and returns the selected path to the path calculation requesting device.
5.根据权利要求 4所述的获取标签交换路径的系统, 其特征在于, 所述路径计算请求 设备包括: The system for obtaining a label switching path according to claim 4, wherein the path calculation requesting device comprises:
报文扩展模块, 用于扩展路径计算节点通信协议报文, 在所述报文中携带跳数约束条 件;  a packet extension module, configured to extend a path calculation node communication protocol packet, and carry the hop limit constraint condition in the packet;
路径计算请求发送模块, 用于使用所述报文扩展模块扩展后的路径计算节点通信协议 报文发送路径计算请求, 所述报文携带目的地址、 基本约束条件和跳数约束条件。  The path calculation request sending module is configured to use the path calculation node communication protocol packet sending path calculation request extended by the packet extension module, where the packet carries a destination address, a basic constraint condition, and a hop limit constraint condition.
6.根据权利要求 4所述的获取标签交换路径的系统, 其特征在于, 所述路径计算设备 包括: 路径计算请求接收模块, 用于接收所述路径计算请求设备发送的路径计算请求; 路径计算模块, 用于根据网络拓扑结构和所述路径计算请求接收模块接收的请求中的 目的地址, 计算满足所述基本约束条件的路径; The system for acquiring a label switching path according to claim 4, wherein the path computing device comprises: a path calculation request receiving module, configured to receive a path calculation request sent by the path calculation requesting device, and a path calculation module, configured to calculate a destination address in the request received by the request receiving module according to the network topology structure and the path calculation The path of the basic constraint;
路径选择模块, 用于从所述路径计算模块所计算出的路径中选择跳数满足所述跳数约 束条件的路径;  a path selection module, configured to select, from the path calculated by the path calculation module, a path whose hop count satisfies the hop limit condition;
发送模块, 用于将所述路径选择模块选择出的路径返回给所述路径计算请求设备。  And a sending module, configured to return the path selected by the path selection module to the path calculation requesting device.
7.—种设备, 其特征在于, 所述设备包括: 7. A device, characterized in that the device comprises:
报文扩展模块, 用于扩展路径计算节点通信协议报文, 在所述报文中携带跳数约束条 件;  a packet extension module, configured to extend a path calculation node communication protocol packet, and carry the hop limit constraint condition in the packet;
路径计算请求发送模块, 用于使用所述报文扩展模块扩展后的路径计算节点通信协议 报文发送路径计算请求, 所述报文携带目的地址、 基本约束条件和跳数约束条件;  a path calculation request sending module, configured to use the path calculation node communication protocol packet sending path calculation request extended by the packet extension module, where the packet carries a destination address, a basic constraint condition, and a hop limit constraint condition;
接收模块, 用于接收路径计算设备计算出的路径。  The receiving module is configured to receive a path calculated by the path computing device.
8.—种设备, 其特征在于, 所述设备包括: 8. A device, wherein the device comprises:
路径计算请求接收模块, 用于接收路径计算请求, 所述请求携带目的地址、 基本约束 条件和跳数约束条件;  a path calculation request receiving module, configured to receive a path calculation request, where the request carries a destination address, a basic constraint condition, and a hop limit constraint condition;
路径计算模块, 用于根据网络拓扑结构和所述路径计算请求接收模块接收的请求中的 目的地址, 计算满足所述基本约束条件的路径;  a path calculation module, configured to calculate a destination address in the request received by the request receiving module according to the network topology and the path, and calculate a path that satisfies the basic constraint condition;
路径选择模块, 用于从所述路径计算模块所计算出的路径中选择跳数满足所述跳数约 束条件的路径;  a path selection module, configured to select, from the path calculated by the path calculation module, a path whose hop count satisfies the hop limit condition;
发送模块, 用于将所述路径选择模块选择出的路径返回给路径计算请求设备。  And a sending module, configured to return the path selected by the path selection module to the path calculation requesting device.
PCT/CN2008/072260 2007-09-28 2008-09-03 Method, system and device for obtaining label switched path WO2009043256A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2007101752960A CN101237399A (en) 2007-09-28 2007-09-28 Method, system and device for getting label switching path
CN200710175296.0 2007-09-28

Publications (1)

Publication Number Publication Date
WO2009043256A1 true WO2009043256A1 (en) 2009-04-09

Family

ID=39920765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072260 WO2009043256A1 (en) 2007-09-28 2008-09-03 Method, system and device for obtaining label switched path

Country Status (2)

Country Link
CN (1) CN101237399A (en)
WO (1) WO2009043256A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208527A (en) * 2023-02-28 2023-06-02 西安电子科技大学 Method for evaluating destructiveness of mobile self-organizing network limited by transceiver

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237399A (en) * 2007-09-28 2008-08-06 华为技术有限公司 Method, system and device for getting label switching path
CN101645847A (en) 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system for improving service resumption speed in transmission network
CN102201971A (en) * 2010-03-23 2011-09-28 中兴通讯股份有限公司 Pseudo wire routing realization method, device and system
CN103155498A (en) * 2010-07-15 2013-06-12 华为技术有限公司 Method and apparatus for implementing p2mp path computation
US8837292B2 (en) * 2010-09-21 2014-09-16 Telefonaktiebolaget L M Ericsson (Publ) Relayed CSPF computation for multiple areas and multiple autonomous systems
CN102523156B (en) * 2011-12-09 2014-11-26 北京邮电大学 Routing method based on hop count constraint
CN103532849B (en) * 2012-07-06 2018-10-23 中兴通讯股份有限公司 A kind of method, path-calculating element and node calculating frequency slot channel
US9705747B1 (en) 2012-12-04 2017-07-11 Qualcomm Incorporated Distributed path selection in hybrid networks
US9184998B2 (en) 2013-03-14 2015-11-10 Qualcomm Incorporated Distributed path update in hybrid networks
WO2014139356A1 (en) * 2013-03-15 2014-09-18 Huawei Technologies Co., Ltd. Method of communicating for establishing path and network apparatus
CN104092611B (en) * 2014-07-17 2018-05-15 新华三技术有限公司 Determine the method and device of trans-regional affined label switched path
CN105306245B (en) * 2014-07-31 2019-02-22 新华三技术有限公司 Traffic engineering link information maintaining method and device
CN105515981A (en) * 2014-10-17 2016-04-20 中兴通讯股份有限公司 Path computation method, tunnel establishment method, PCC, PCE and path computation system
CN105681190A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Tunnel restraint information sending, receiving method and device
CN105763447B (en) * 2014-12-16 2020-04-24 中兴通讯股份有限公司 Method and device for acquiring label switching path state
CN107154862A (en) * 2016-03-04 2017-09-12 上海海岸展览服务有限公司 A kind of go-between recommends method and system
CN107800637B (en) * 2016-08-30 2021-06-22 中国电信股份有限公司 Method for determining service transmission path, PCE (path computation element) and SDN (software defined network)
CN109716718A (en) * 2016-09-21 2019-05-03 华为技术有限公司 The method and apparatus of Path selection
CN107864103B (en) * 2016-09-22 2022-10-11 中兴通讯股份有限公司 Tunnel establishment method and device
CN108075939B (en) * 2016-11-17 2020-06-09 中国电信股份有限公司 Network quality detection system and method
CN108123871B (en) * 2016-11-28 2021-10-26 中兴通讯股份有限公司 Equivalent multipath ECMP processing method and device
CN106789656B (en) * 2016-12-16 2019-10-25 北京格林伟迪科技股份有限公司 A kind of route requests treating method and apparatus
CN108989065A (en) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 The processing method and processing device of road failure is calculated in a kind of PCC request
CN111385206B (en) * 2018-12-29 2022-04-22 北京华为数字技术有限公司 Message forwarding method, network system, related equipment and computer storage medium
CN114996544B (en) * 2022-04-26 2024-07-12 东南大学 Travel path extraction method based on mobile phone signaling data and Mix-Markov model

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764146A (en) * 2004-10-21 2006-04-26 华为技术有限公司 Optimization route choosing method
JP2007235579A (en) * 2006-03-01 2007-09-13 Nippon Telegr & Teleph Corp <Ntt> Control device, path setting method, and program
CN101237399A (en) * 2007-09-28 2008-08-06 华为技术有限公司 Method, system and device for getting label switching path

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764146A (en) * 2004-10-21 2006-04-26 华为技术有限公司 Optimization route choosing method
JP2007235579A (en) * 2006-03-01 2007-09-13 Nippon Telegr & Teleph Corp <Ntt> Control device, path setting method, and program
CN101237399A (en) * 2007-09-28 2008-08-06 华为技术有限公司 Method, system and device for getting label switching path

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
J. ASH. ED. ET AL.: "Path Computation Element (PCE) Communication Protocol Generic Requirements", RFC 4657, September 2006 (2006-09-01) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208527A (en) * 2023-02-28 2023-06-02 西安电子科技大学 Method for evaluating destructiveness of mobile self-organizing network limited by transceiver
CN116208527B (en) * 2023-02-28 2024-03-26 西安电子科技大学 Method for evaluating destructiveness of mobile self-organizing network limited by transceiver

Also Published As

Publication number Publication date
CN101237399A (en) 2008-08-06

Similar Documents

Publication Publication Date Title
WO2009043256A1 (en) Method, system and device for obtaining label switched path
JP4960443B2 (en) Multi-domain route calculation method and system
US10250459B2 (en) Bandwidth on-demand services in multiple layer networks
US8588081B2 (en) Monitoring a flow set to detect faults
US7814227B2 (en) Computation of a shortest inter-domain TE-LSP across a set of autonomous systems
CN101228739B (en) Method, equipment and system of dynamic enforcement of MPLS-TE inter-domain policy and QoS
US8825898B2 (en) Technique for optimized routing of data streams on an IP backbone in a computer network
EP2985960A1 (en) Network topology discovery method and system
US20050195835A1 (en) Router configured for outputting update messages specifying a detected attribute change of a connected active path according to a prescribed routing protocol
JP2013541290A (en) Relayed CSPF for multiple regions and multiple autonomous systems
JP2010536285A (en) Route selection method, network system, route calculation element
US11632322B2 (en) Preferred path route graphs in a network
EP2009848B1 (en) Computing a path in a label switched network
WO2017211164A1 (en) Method, apparatus, and system for determining inter-as label switched path tunnel
WO2018010658A1 (en) Information transfer method and apparatus in bit indexed explicit replication
CN108574628B (en) Method, device and system for establishing domain-level topology
WO2008031337A1 (en) A traffic engineering path computation method, a system and a path computation element
EP3361683B1 (en) Path computation method and device
WO2008098452A1 (en) A method, system and network device for performing path computation between autonomous systems
EP2063585A1 (en) Method and apparatus for computing a path in a network
WO2015024440A1 (en) Method and system of obtaining link overhead value of ip link
Dhody et al. Extensions to the Path Computation Element Communication Protocol (PCEP) to Compute Service-Aware Label Switched Paths (LSPs)
WO2008000125A1 (en) A method, system and apparatus for discovering path computation element
WO2018053747A1 (en) Resource sharing method, network node, and associated apparatus
Paolucci et al. Enhancing backward recursive PCE-based computation (BRPC) for inter-domain protected LSP provisioning

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

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

Country of ref document: EP

Kind code of ref document: A1