[go: up one dir, main page]

CN108023810A - The notifying method and device of concatenation ability - Google Patents

The notifying method and device of concatenation ability Download PDF

Info

Publication number
CN108023810A
CN108023810A CN201610934284.0A CN201610934284A CN108023810A CN 108023810 A CN108023810 A CN 108023810A CN 201610934284 A CN201610934284 A CN 201610934284A CN 108023810 A CN108023810 A CN 108023810A
Authority
CN
China
Prior art keywords
pce
pcc
message
pces
pcep
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
CN201610934284.0A
Other languages
Chinese (zh)
Inventor
胡方伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610934284.0A priority Critical patent/CN108023810A/en
Priority to PCT/CN2017/117005 priority patent/WO2018077313A1/en
Publication of CN108023810A publication Critical patent/CN108023810A/en
Withdrawn legal-status Critical Current

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/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

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

Abstract

本发明提供了一种连接能力的通告方法及装置,其中,该方法包括:在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。通过本发明,解决了相关技术中PCC不能与多个PCE之间建立多条PCEP会话连接的问题。

The present invention provides a connection capability notification method and device, wherein the method includes: creating a path computation element protocol PCEP message at the path computation client PCC, wherein the PCEP message carries a Attribute information of the multi-connection capability; during the PCEP session phase between the PCC and the path computation unit PCE, the PCEP message is notified to one or more of the PCEs. The invention solves the problem in the related art that the PCC cannot establish multiple PCEP session connections with multiple PCEs.

Description

连接能力的通告方法及装置Notification method and device of connection capability

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种连接能力的通告方法及装置。The present invention relates to the communication field, in particular, to a connection capability notification method and device.

背景技术Background technique

路径计算单元(Path Computation Element,PCE)是能够基于网络图来计算网络路径或者路由,并应用计算约束条件的实体、部件、应用程序或网络节点。路径计算客户(Path Computation Client,PCC)是请求待由PCE执行的路径计算的客户应用程序。RFC4655中描述了一种基于PCE的结构,用于多协议标签交换(Multiprotocol LabelSwitching,MPLS)和通用多协议标签交换(Generalized Multiprotocol LabelSwitching,GMPLS)流量工程(Traffic Engineer,TE)标签交换路径(Label SwitchedPaths,LSP)的路径计算。A Path Computation Element (PCE) is an entity, component, application or network node that can calculate a network path or route based on a network graph and apply calculation constraints. A Path Computation Client (PCC) is a client application that requests path computations to be performed by the PCE. RFC4655 describes a PCE-based structure for Multiprotocol Label Switching (Multiprotocol LabelSwitching, MPLS) and Generalized Multiprotocol Label Switching (Generalized Multiprotocol LabelSwitching, GMPLS) Traffic Engineer (Traffic Engineer, TE) Label Switched Paths (Label Switched Paths) , LSP) path computation.

PCE和PCC之间采用路径计算单元协议(Path Computation Element Protocol,PCEP)作为通信协议[RFC 5440],PCC通过PCEP协议请求来自PCE的路径或者路由,PCE将计算后的路径信息转发给PCC。The PCE and the PCC use the Path Computation Element Protocol (Path Computation Element Protocol, PCEP) as the communication protocol [RFC 5440]. The PCC requests a path or route from the PCE through the PCEP protocol, and the PCE forwards the calculated path information to the PCC.

RFC 4655中定义PCEP协议基于传输控制协议(Transmission Control Protocol,简称为TCP)建立会话(session),端口号4189,并且规定在任何时候每个PCC只能跟一个PCE建立PCEP会话(session),在任何时候,每个PCEP对等体只能建立一个TCP连接。这种协议设计在PCEP用于MPLS和GMPLS网络的流量工程的时候,不存在问题,因为PCE和PCC之间的网络状态同步信息和路径建立信息不太大。但是随着软件定义网络SDN技术的提出,PCEP协议用于PCE和PCC之间的南向接口协议时,PCC和PCE之间的数据传递会大增,特别是PCE和PCC之间需要进行用户流量数据的采集和实时上报,网络带宽和路径需要动态建立和调整时,PCE和PCC之间的可靠性就需要重点考虑了,如果PCE和PCC之间出现连接中断或者故障,那么无法保证业务路径的动态调整和建立。RFC 4655 defines that the PCEP protocol is based on the Transmission Control Protocol (Transmission Control Protocol, referred to as TCP) to establish a session (session), port number 4189, and stipulates that each PCC can only establish a PCEP session (session) with one PCE at any time. Only one TCP connection can be established per PCEP peer at any time. This protocol design does not cause problems when PCEP is used for traffic engineering of MPLS and GMPLS networks, because the network state synchronization information and path establishment information between PCE and PCC are not too large. However, with the software-defined network SDN technology proposed, when the PCEP protocol is used for the southbound interface protocol between the PCE and the PCC, the data transmission between the PCC and the PCE will increase greatly, especially the user traffic between the PCE and the PCC. Data collection and real-time reporting, when network bandwidth and paths need to be dynamically established and adjusted, the reliability between PCE and PCC needs to be considered. If there is a connection interruption or failure between PCE and PCC, then the service path cannot be guaranteed. Adjust and build dynamically.

针对相关技术中存在的上述问题,目前尚未发现有效的解决方案。Aiming at the above-mentioned problems existing in related technologies, no effective solution has been found yet.

发明内容Contents of the invention

本发明实施例提供了一种连接能力的通告方法及装置,以至少解决相关技术中PCC不能与多个PCE之间建立多条PCEP会话连接的问题。Embodiments of the present invention provide a connection capability notification method and device to at least solve the problem in the related art that a PCC cannot establish multiple PCEP session connections with multiple PCEs.

根据本发明的一个实施例,提供了一种连接能力的通告方法,包括:在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。According to an embodiment of the present invention, a method for announcing a connection capability is provided, including: creating a path computation element protocol PCEP message at a path computation client PCC, wherein the PCEP message carries an Attribute information of the multi-connection capability; during the PCEP session phase between the PCC and the path computation unit PCE, the PCEP message is notified to one or more of the PCEs.

可选地,在将所述PCEP报文通告给一个或多个所述PCE之后,所述方法还包括:接收所述PCE的角色请求消息,其中,所述角色请求消息携带所述PCE的优先级属性;根据所述优先级属性为所述PCE分配PCE角色。Optionally, after the PCEP message is notified to one or more of the PCEs, the method further includes: receiving a role request message of the PCE, wherein the role request message carries the priority of the PCE assigning a PCE role to the PCE according to the priority attribute.

可选地,根据所述优先级属性为所述PCE分配PCE角色包括:比较所述PCE的优先级属性与当前连接的主PCE的优先级属性;在所述PCE的优先级属性高于当前连接的主PCE的优先级属性时,将所述PCE的PCE角色分配为主PCE。Optionally, assigning a PCE role to the PCE according to the priority attribute includes: comparing the priority attribute of the PCE with the priority attribute of the main PCE of the current connection; When the priority attribute of the master PCE is assigned, the PCE role of the PCE is assigned as the master PCE.

可选地,所述PCE角色包括:主PCE、从PCE、父PCE、子PCE。Optionally, the PCE roles include: a master PCE, a slave PCE, a parent PCE, and a child PCE.

可选地,在将所述PCEP报文通告给一个或多个所述PCE之后,所述方法包括:确定所述PCC的PCE之间的会话中断;根据预设优先级选举确定主PCE;向所述主PCE发送角色请求消息,并将与所述PCE之间的连接切换到所述主PCE。Optionally, after the PCEP message is notified to one or more of the PCEs, the method includes: determining that a session interruption between PCEs of the PCC is interrupted; determining the master PCE according to a preset priority election; The master PCE sends a role request message, and switches the connection with the PCE to the master PCE.

可选地,确定所述PCC的PCE之间的会话中断包括以下至少之一:在所述PCC接收到所述PCE的关闭消息时,确定所述PCC的PCE之间的会话中断;在所述PCC在预定时间间隔内未收到所述PCE的保活消息时,确定所述PCC的PCE之间的会话中断;在检测到所述PCC与所述PCE之间的传输控制协议TCP连接出现故障时,确定所述PCC的PCE之间的会话中断。Optionally, determining that the session interruption between the PCEs of the PCC includes at least one of the following: when the PCC receives the close message of the PCE, determining that the session interruption between the PCEs of the PCC; When the PCC does not receive the keep-alive message of the PCE within a predetermined time interval, it determines that the session between the PCEs of the PCC is interrupted; when it detects that the transmission control protocol TCP connection between the PCC and the PCE fails , it is determined that the session between the PCEs of the PCC is interrupted.

可选地,在根据预设优先级选举确定主PCE之后,所述方法还包括:根据所述预设优先级选举确定从PCE;向所述从PCE发送角色请求消息。Optionally, after the master PCE is determined according to the preset priority election, the method further includes: determining a slave PCE according to the preset priority election; and sending a role request message to the slave PCE.

可选地,所述属性信息包括:承载在Open消息中的标识字段。Optionally, the attribute information includes: an identification field carried in the Open message.

根据本发明的另一个实施例,提供了一种连接能力的通告装置,包括:创建模块,用于在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;通告模块,用于在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。According to another embodiment of the present invention, a device for announcing a connection capability is provided, including: a creating module, configured to create a Path Computation Element Protocol (PCEP) packet at a path computation client PCC, wherein the PCEP packet carries a The attribute information representing the multi-connection capability of the PCC; the notification module is configured to notify the PCEP message to one or more of the PCEs during the PCEP session phase between the PCC and the PCE.

可选地,所述装置还包括:接收模块,用于在所述通告模块将所述PCEP报文通告给一个或多个所述PCE之后,接收所述PCE的角色请求消息,其中,所述角色请求消息携带所述PCE的优先级属性;分配模块,用于根据所述优先级属性为所述PCE分配PCE角色。Optionally, the device further includes: a receiving module, configured to receive a role request message of the PCE after the notification module notifies the PCEP message to one or more of the PCEs, wherein the The role request message carries the priority attribute of the PCE; the allocation module is configured to assign a PCE role to the PCE according to the priority attribute.

可选地,所述分配模块包括:比较单元,用于比较所述PCE的优先级属性与当前连接的主PCE的优先级属性;确定单元,用于在所述PCE的优先级属性高于当前连接的主PCE的优先级属性时,将所述PCE的PCE角色分配为主PCE。Optionally, the allocation module includes: a comparison unit, configured to compare the priority attribute of the PCE with the priority attribute of the currently connected master PCE; a determination unit, configured to determine when the priority attribute of the PCE is higher than the current When the priority attribute of the connected master PCE is used, the PCE role of the PCE is assigned as the master PCE.

可选地,所述PCE角色包括:主PCE、从PCE、父PCE、子PCE。Optionally, the PCE roles include: a master PCE, a slave PCE, a parent PCE, and a child PCE.

可选地,所述装置包括:确定模块,用于在所述通告模块将所述PCEP报文通告给一个或多个所述PCE之后,确定所述PCC的PCE之间的会话中断;第一选举模块,用于根据预设优先级选举确定主PCE;处理模块,用于向所述主PCE发送角色请求消息,并将与所述PCE之间的连接切换到所述主PCE。Optionally, the device includes: a determining module, configured to determine that the session interruption between PCEs of the PCC is interrupted after the notification module notifies the PCEP message to one or more of the PCEs; An election module, configured to elect and determine a master PCE according to a preset priority; a processing module, configured to send a role request message to the master PCE, and switch the connection with the PCE to the master PCE.

可选地,所述确定模块确定所述PCC的PCE之间的会话中断包括以下至少之一:在所述PCC接收到所述PCE的关闭消息时,确定所述PCC的PCE之间的会话中断;在所述PCC在预定时间间隔内未收到所述PCE的保活消息时,确定所述PCC的PCE之间的会话中断;在检测到所述PCC与所述PCE之间的传输控制协议TCP连接出现故障时,确定所述PCC的PCE之间的会话中断。Optionally, the determining module determining that the session interruption between the PCEs of the PCC includes at least one of the following: when the PCC receives the closing message of the PCE, determining that the session interruption between the PCEs of the PCC ; When the PCC does not receive the keep-alive message of the PCE within a predetermined time interval, it is determined that the session between the PCEs of the PCC is interrupted; when the transmission control protocol between the PCC and the PCE is detected When the TCP connection fails, it is determined that the session between the PCEs of the PCC is interrupted.

可选地,所述装置还包括:第二选举模块,用于在所述第一选举模块根据预设优先级选举确定主PCE之后,根据所述预设优先级选举确定从PCE;发送模块,用于向所述从PCE发送角色请求消息。Optionally, the device further includes: a second election module, configured to elect and determine a slave PCE according to the preset priority after the first election module elects to determine the master PCE according to the preset priority; the sending module, It is used to send a role request message to the secondary PCE.

可选地,所述属性信息包括:承载在Open消息中的标识字段。Optionally, the attribute information includes: an identification field carried in the Open message.

根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is configured to store program code for performing the following steps:

在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;Create a path computation unit protocol PCEP message at the path computation client PCC, wherein the PCEP message carries attribute information for representing that the PCC has multi-connection capability;

在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。In the PCEP session phase between the PCC and the PCE, the PCEP message is notified to one or more of the PCEs.

通过本发明,在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE,通过创建具备多连接能力的PCEP报文中并通告给PCE,PCC跟多个PCE之间建立多条PCEP会话连接,可以实现PCE连接的切换,保证业务的连续性,解决了相关技术中PCC不能与多个PCE之间建立多条PCEP会话连接的问题。Through the present invention, a path computation unit protocol PCEP message is created at the path computation client PCC, wherein the PCEP message carries attribute information for characterizing that the PCC has multi-connection capability; between the PCC and the path computation unit PCE In the PCEP session stage, the PCEP message is notified to one or more of the PCEs, and multiple PCEP session connections are established between the PCC and multiple PCEs by creating a PCEP message with multi-connection capability and notifying the PCE , can realize switching of PCE connections, guarantee service continuity, and solve the problem in the related art that the PCC cannot establish multiple PCEP session connections with multiple PCEs.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的连接能力的通告方法的流程图;FIG. 1 is a flowchart of a method for announcing a connection capability according to an embodiment of the present invention;

图2是根据本发明实施例的连接能力的通告装置的结构框图;FIG. 2 is a structural block diagram of an apparatus for notifying connection capabilities according to an embodiment of the present invention;

图3是本实施例的PCE总体功能架构示意图;FIG. 3 is a schematic diagram of the PCE overall functional architecture of the present embodiment;

图4是本实施例的多PCE连接网络图;Fig. 4 is a multi-PCE connection network diagram of the present embodiment;

图5是本实施例的Open消息的Open对象的格式图;Fig. 5 is a format diagram of the Open object of the Open message of the present embodiment;

图6是本实施例的MULTIPLE-PCE-CAPABILITY-TLV格式图;Fig. 6 is a MULTIPLE-PCE-CAPABILITY-TLV format diagram of the present embodiment;

图7是本实施例的PCE-ROLE-TLV格式图;FIG. 7 is a PCE-ROLE-TLV format diagram of this embodiment;

图8是本实施例的多PCE连接的初始化流程图;Fig. 8 is the initialization flowchart of the multiple PCE connection of this embodiment;

图9是本实施例的PCC发起的PCE切换流程图;FIG. 9 is a flow chart of PCE handover initiated by the PCC in this embodiment;

图10是本实施例的PCE发起的PCE切换的流程图;FIG. 10 is a flow chart of the PCE handover initiated by the PCE in this embodiment;

图11是本实施例的层次化PCE场景下的PCE切换流程图。FIG. 11 is a flow chart of PCE switching in the hierarchical PCE scenario of this embodiment.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

实施例1Example 1

在本实施例中提供了一种连接能力的通告方法,图1是根据本发明实施例的连接能力的通告方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for notifying a connection capability is provided. FIG. 1 is a flowchart of a method for notifying a connection capability according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:

步骤S102,在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,PCEP报文携带用于表征PCC具备多连接能力的属性信息;Step S102, creating a path computation unit protocol PCEP message at the path computation client PCC, wherein the PCEP message carries attribute information for indicating that the PCC has multi-connection capability;

步骤S104,在PCC和路径计算单元PCE的PCEP会话阶段,将PCEP报文通告给一个或多个PCE。In step S104, during the PCEP session phase between the PCC and the PCE, the PCEP message is notified to one or more PCEs.

通过上述步骤,在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,PCEP报文携带用于表征PCC具备多连接能力的属性信息;在PCC和路径计算单元PCE的PCEP会话阶段,将PCEP报文通告给一个或多个PCE,通过创建具备多连接能力的PCEP报文中并通告给PCE,PCC跟多个PCE之间建立多条PCEP会话连接,可以实现PCE连接的切换,保证业务的连续性,解决了相关技术中PCC不能与多个PCE之间建立多条PCEP会话连接的问题。Through the above steps, the path computation client PCC creates a path computation unit protocol PCEP message, wherein, the PCEP message carries attribute information used to indicate that the PCC has multi-connection capability; during the PCEP session phase between the PCC and the path computation unit PCE, the The PCEP message is notified to one or more PCEs. By creating a PCEP message with multi-connection capability and notifying the PCE, multiple PCEP session connections can be established between the PCC and multiple PCEs, which can realize the switching of PCE connections and ensure business continuity, which solves the problem in the related art that the PCC cannot establish multiple PCEP session connections with multiple PCEs.

可选地,上述步骤的执行主体可以为PCC、PCC的控制端等,但不限于此。Optionally, the execution subject of the above steps may be the PCC, the control terminal of the PCC, etc., but is not limited thereto.

可选的,属性信息包括:承载在Open消息中的标识字段。Optionally, the attribute information includes: an identification field carried in the Open message.

可选的,在将PCEP报文通告给一个或多个PCE之后,PCC跟多个PCE之间建立多条PCEP会话连接,当一条连接出现故障时,可以快速的切换到另外一个连接上,保证业务的连续。可以是主动切换和被动切换。Optionally, after the PCEP message is notified to one or more PCEs, multiple PCEP session connections are established between the PCC and multiple PCEs. When a connection fails, it can be quickly switched to another connection to ensure Continuity of business. It can be active switching and passive switching.

在被动切换的方案中,方法还包括:In the scheme of passive switching, the method also includes:

S11,接收PCE的角色请求消息,其中,角色请求消息携带PCE的优先级属性;S11. Receive a role request message from the PCE, where the role request message carries the priority attribute of the PCE;

S12,根据优先级属性为PCE分配PCE角色。S12. Allocate a PCE role to the PCE according to the priority attribute.

可选的,具体根据优先级属性为PCE分配PCE角色包括:比较PCE的优先级属性与当前连接的主PCE的优先级属性;在PCE的优先级属性高于当前连接的主PCE的优先级属性时,将PCE的PCE角色分配为主PCE。优先级属性预先配置在PCE侧,PCC可以获取已经连接的PCE的优先级属性。Optionally, assigning the PCE role to the PCE according to the priority attribute includes: comparing the priority attribute of the PCE with the priority attribute of the currently connected master PCE; the priority attribute of the PCE is higher than the priority attribute of the currently connected master PCE , assign the PCE role of the PCE as the master PCE. The priority attribute is pre-configured on the PCE side, and the PCC can obtain the priority attribute of the connected PCE.

在本实施例中,PCE角色包括:主PCE、从PCE;父PCE、子PCE。In this embodiment, the PCE roles include: a master PCE, a slave PCE; a parent PCE, and a child PCE.

在主动切换的方案中,方法包括:In an active handover scenario, methods include:

S21,确定PCC的PCE之间的会话中断;S21, determine the session interruption between the PCEs of the PCC;

S22,根据预设优先级选举确定主PCE;S22, determine the primary PCE according to preset priority election;

S23,向主PCE发送角色请求消息,并将与PCE之间的连接切换到主PCE。S23. Send a role request message to the master PCE, and switch the connection with the PCE to the master PCE.

可选的,在根据预设优先级选举确定主PCE之后,方法还包括:根据预设优先级选举确定从PCE;向从PCE发送角色请求消息。Optionally, after the master PCE is determined according to the preset priority election, the method further includes: determining the slave PCE according to the preset priority election; and sending a role request message to the slave PCE.

在本实施例中,确定PCC的PCE之间的会话中断通过以下场景来触发:在PCC接收到PCE的关闭消息时,确定PCC的PCE之间的会话中断;在PCC在预定时间间隔内未收到PCE的保活消息时,确定PCC的PCE之间的会话中断;在检测到PCC与PCE之间的传输控制协议TCP连接出现故障时,确定PCC的PCE之间的会话中断。In this embodiment, it is determined that the session interruption between the PCEs of the PCC is triggered by the following scenarios: when the PCC receives the shutdown message of the PCE, it is determined that the session interruption between the PCEs of the PCC is not received within a predetermined time interval; When a keep-alive message from the PCE is received, it is determined that the session between the PCEs of the PCC is interrupted; when a fault is detected in the transmission control protocol TCP connection between the PCC and the PCE, it is determined that the session between the PCEs of the PCC is interrupted.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

实施例2Example 2

在本实施例中还提供了一种连接能力的通告装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for notifying connection capabilities is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图2是根据本发明实施例的连接能力的通告装置的结构框图,如图2所示,该装置包括:Fig. 2 is a structural block diagram of a connection capability notification device according to an embodiment of the present invention. As shown in Fig. 2, the device includes:

创建模块20,用于在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,PCEP报文携带用于表征PCC具备多连接能力的属性信息;The creation module 20 is used to create a PCEP message of the path calculation element protocol at the path calculation client PCC, wherein the PCEP message carries attribute information for indicating that the PCC has multi-connection capabilities;

通告模块22,用于在PCC和路径计算单元PCE的PCEP会话阶段,将PCEP报文通告给一个或多个PCE。The notification module 22 is configured to notify the PCEP message to one or more PCEs during the PCEP session phase between the PCC and the PCE.

可选的,属性信息包括:承载在Open消息中的标识字段。Optionally, the attribute information includes: an identification field carried in the Open message.

在根据本实施例的可选实施方式中,装置还包括:接收模块,用于在通告模块将PCEP报文通告给一个或多个PCE之后,接收PCE的角色请求消息,其中,角色请求消息携带PCE的优先级属性;分配模块,用于根据优先级属性为PCE分配PCE角色。In an optional implementation manner according to this embodiment, the device further includes: a receiving module, configured to receive a role request message of a PCE after the notification module notifies the PCEP message to one or more PCEs, wherein the role request message carries The priority attribute of the PCE; an allocation module, configured to assign a PCE role to the PCE according to the priority attribute.

可选的,分配模块包括:比较单元,用于比较PCE的优先级属性与当前连接的主PCE的优先级属性;确定单元,用于在PCE的优先级属性高于当前连接的主PCE的优先级属性时,将PCE的PCE角色分配为主PCE。Optionally, the allocation module includes: a comparison unit, used to compare the priority attribute of the PCE with the priority attribute of the currently connected main PCE; When the level attribute is specified, the PCE role of the PCE is assigned as the primary PCE.

本实施例的PCE角色包括:主PCE、从PCE;父PCE、子PCE。The PCE roles in this embodiment include: a master PCE, a slave PCE; a parent PCE, and a child PCE.

在根据本实施例的可选实施方式中,装置包括:确定模块,用于在通告模块将PCEP报文通告给一个或多个PCE之后,确定PCC的PCE之间的会话中断;第一选举模块,用于根据预设优先级选举确定主PCE;处理模块,用于向主PCE发送角色请求消息,并将与PCE之间的连接切换到主PCE。In an optional implementation manner according to this embodiment, the device includes: a determining module, configured to determine that the session interruption between PCEs of the PCC is interrupted after the notification module notifies the PCEP message to one or more PCEs; the first election module , used to elect and determine the main PCE according to the preset priority; the processing module is used to send a role request message to the main PCE, and switch the connection with the PCE to the main PCE.

可选的,确定模块确定PCC的PCE之间的会话中断包括以下至少之一:在PCC接收到PCE的关闭消息时,确定PCC的PCE之间的会话中断;在PCC在预定时间间隔内未收到PCE的保活消息时,确定PCC的PCE之间的会话中断;在检测到PCC与PCE之间的传输控制协议TCP连接出现故障时,确定PCC的PCE之间的会话中断。Optionally, the determining module determines that the session interruption between the PCEs of the PCC includes at least one of the following: when the PCC receives the closing message of the PCE, it determines that the session interruption between the PCEs of the PCC; When a keep-alive message from the PCE is received, it is determined that the session between the PCEs of the PCC is interrupted; when a fault is detected in the transmission control protocol TCP connection between the PCC and the PCE, it is determined that the session between the PCEs of the PCC is interrupted.

可选的,装置还包括:第二选举模块,用于在第一选举模块根据预设优先级选举确定主PCE之后,根据预设优先级选举确定从PCE;发送模块,用于向从PCE发送角色请求消息。Optionally, the device further includes: a second election module, configured to elect and determine a slave PCE according to a preset priority after the first election module elects to determine a master PCE according to a preset priority; a sending module, configured to send a message to the slave PCE Role request message.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.

实施例3Example 3

本实施例是根据本发明的可选实施例,用于结合具体的场景对本申请进行详细说明:This embodiment is an optional embodiment according to the present invention, and is used to describe this application in detail in combination with specific scenarios:

本实施例提出了一种实现PCEP协议多PCE控制和连接的方法,PCC跟多个PCE之间建立多条PCEP会话连接,当一条连接出现故障时,可以快速的切换到另外一个连接上,保证业务的连续。This embodiment proposes a method for realizing PCEP multi-PCE control and connection. PCC establishes multiple PCEP session connections with multiple PCEs. When a connection fails, it can be quickly switched to another connection to ensure Continuity of business.

本实施例的实现PCEP协议多PCE连接的方法包括:扩展PCEP协议报文通告多PCE连接能力属性信息或者角色信息,所述PCE的角色信息包括master PCE(主PCE)和slave PCE(从PCE);所述扩展PCEP协议通告多连接能力属性信息包括扩展PCEP协议的Open消息中携带具有多连接能力属性的标识字段;所述扩展PCEP协议通告PCE角色信息包括扩展PCEP协议新增PCE Role Request(PCRrq,PCE角色请求)消息携带PCE的角色信息,PCrq消息由PCE发送给PCC请求自己的角色改变。所述扩展PCEP协议通告PCE角色信息还包括扩展PCEP协议新增PCE Role Reply(PCRrp)消息携带PCE的角色信息,PCRrp消息由PCC发送给PCE,通告当前的Master PCE。The method for realizing the multi-PCE connection of the PCEP protocol of the present embodiment includes: extending the PCEP protocol message to announce multi-PCE connection capability attribute information or role information, and the role information of the PCE includes master PCE (main PCE) and slave PCE (slave PCE) The multi-connection ability attribute information of the extended PCEP protocol includes the identification field that carries the multi-connection ability attribute in the Open message of the extended PCEP agreement; , PCE role request) message carries the role information of the PCE, and the PCrq message is sent by the PCE to the PCC to request its own role change. The extended PCEP protocol notification of PCE role information also includes the extended PCEP protocol newly added PCE Role Reply (PCRrp) message carrying the role information of the PCE, and the PCRrp message is sent by the PCC to the PCE to notify the current Master PCE.

图3是本实施例的PCE总体功能架构示意图,PCE与网络管理系统(NetworkManagement System,简称为NMS)、多个节点,其他域网的PCE连接,包括:流量工程数据库(Traffic Engineering Database,简称为TED),路径计算模块,PCE通信模块等。图4是本实施例的多PCE连接网络图,以下以图4所示阐述本发明的具体实施方式的内容。FIG. 3 is a schematic diagram of the overall functional architecture of the PCE in this embodiment. The PCE is connected to a network management system (Network Management System, referred to as NMS), a plurality of nodes, and PCEs of other domain networks, including: Traffic Engineering Database (Traffic Engineering Database, referred to as NMS for short) TED), path calculation module, PCE communication module, etc. FIG. 4 is a multi-PCE connection network diagram of this embodiment, and the content of the specific implementation manner of the present invention will be described below as shown in FIG. 4 .

图4中,路径计算客户PCC跟多个路径计算单元PCE1,PCE2,PCE3建立PCEP会话。其中PCE1为master(主)角色,PCE2和PCE3为slave(从)角色。当PCC和PCE1的TCP连接或者PCEP会话出现故障时,PCC选择PCE2或者PCE3作为master,PCEP会话切换到新的master PCE与PCC之间。In FIG. 4, the path computation client PCC establishes PCEP sessions with multiple path computation elements PCE1, PCE2, and PCE3. Among them, PCE1 is the master (master) role, and PCE2 and PCE3 are slave (slave) roles. When the TCP connection or PCEP session between the PCC and PCE1 fails, the PCC selects PCE2 or PCE3 as the master, and the PCEP session is switched between the new master PCE and the PCC.

本实施例的多PCE连接的方法需要扩展现有的PCEP协议的功能有:The method for multi-PCE connection of the present embodiment needs to expand the function of existing PCEP agreement to have:

能力通告(Capability advertisement)(E-C,C-E):PCC和PCE在PCEP会话阶段需要通告具有多PCE连接的能力Capability advertisement (E-C, C-E): PCC and PCE need to advertise the ability to have multiple PCE connections during the PCEP session phase

角色请求(Role Request)(E-C):PCE发送角色请求消息给PCC,当PCC收到了PCE的角色请求消息后,根据消息中的参数选择master PCE。Role Request (Role Request) (E-C): The PCE sends a role request message to the PCC, and when the PCC receives the PCE's role request message, it selects the master PCE according to the parameters in the message.

角色响应(Role Reply)(C-E):PCC发送角色响应消息给PCE,通告当前的MasterPCE。Role Reply (C-E): The PCC sends a role response message to the PCE to notify the current MasterPCE.

图5是本实施例的Open消息的Open对象的格式图,Open对象封装在Open消息中,由Open消息在PCC和PCE之间发送。Open对象中的Ver字段为PCEP的版本号,Flag字段为标识位,Keepalive字段为PCEP对等体的发送Keepalive消息的间隔时间,以秒作为单位,Deadtimer字段为PCEP会话的过期时间,即超过Deadtimer时间内没有收到对端的keepalive消息就认为对端出现了故障,而需要解除PCEP会话。SID字段(PCEP session ID)为PCEP会话的标识号。Optional TVLs为Open对象中可能携带的TLV。FIG. 5 is a format diagram of the Open object of the Open message in this embodiment. The Open object is encapsulated in the Open message and sent between the PCC and the PCE by the Open message. The Ver field in the Open object is the version number of PCEP, the Flag field is the identification bit, the Keepalive field is the interval time for sending Keepalive messages from the PCEP peer, in seconds, and the Deadtimer field is the expiration time of the PCEP session, that is, when the Deadtimer is exceeded If the keepalive message from the peer is not received within a certain period of time, it is considered that the peer is faulty, and the PCEP session needs to be terminated. The SID field (PCEP session ID) is the identification number of the PCEP session. Optional TVLs are TLVs that may be carried in the Open object.

本实施例的PCEP多PCE连接的能力通告就是通过扩展新增MULTIPLE-PCE-CAPABILITY TLV携带在Open对象的optional TLV中。本发明的MULTIPLE-PCE-CAPABILITY的格式定义如图6所示,图6是本实施例的MULTIPLE-PCE-CAPABILITY-TLV格式图,各个字段的描述如下:The capability announcement of the PCEP multi-PCE connection in this embodiment is carried in the optional TLV of the Open object by adding the MULTIPLE-PCE-CAPABILITY TLV through extension. The format definition of MULTIPLE-PCE-CAPABILITY of the present invention is as shown in Figure 6, and Figure 6 is the MULTIPLE-PCE-CAPABILITY-TLV format figure of this embodiment, and the description of each field is as follows:

Type字段表示本TLV为MULTIPLE-PCE-CAPABILITY TLV;The Type field indicates that this TLV is MULTIPLE-PCE-CAPABILITY TLV;

Length字段为本TLV的长度;The Length field is the length of this TLV;

Flag字段为本TLV可能需要用到的标识,当前没有定义标识。The Flag field is an identifier that may be used by this TLV, and currently no identifier is defined.

Priority字段为master PCE选举优先级,PCE向PCC发送Open消息时携带该PCE的优先级,PCC发送的Open消息中该字段填充为0。The Priority field is the priority of the master PCE election. When the PCE sends the Open message to the PCC, it carries the priority of the PCE. In the Open message sent by the PCC, this field is filled with 0.

本发明的角色请求消息的格式如下:The format of the role request message of the present invention is as follows:

<PCRrq Message>::=<Common Header><PCRrq Message>::=<Common Header>

<Role><Role>

PCRrq消息中仅包含Role对象,Role对象包含PCE-ROLE-TLV,图7是本实施例的PCE-ROLE-TLV格式图,见图7所示,角色请求消息由PCE设备发送给PCC设备。The PCRrq message only includes the Role object, and the Role object includes the PCE-ROLE-TLV. FIG. 7 is a PCE-ROLE-TLV format diagram of this embodiment. As shown in FIG. 7, the role request message is sent from the PCE device to the PCC device.

本发明的角色响应消息的格式如下:The format of the role response message of the present invention is as follows:

<PCRrp Message>::=<Common Header><PCRrp Message>::=<Common Header>

<Role><Role>

PCRrp消息中也是仅包含Role对象,其中Role对象包含PCE-ROLE-TLV。角色响应消息由PCC设备发送给PCE设备。The PCRrp message also only includes the Role object, where the Role object includes the PCE-ROLE-TLV. The role response message is sent by the PCC to the PCE.

本发明的PCE-ROLE-TLV格式如图7所示,字段的定义如下:The PCE-ROLE-TLV format of the present invention is as shown in Figure 7, and the definition of field is as follows:

Type字段标识本TLV为PCE-ROLE-TLV;The Type field identifies this TLV as PCE-ROLE-TLV;

Length字段为本TLV的长度;The Length field is the length of this TLV;

PCE-ROLE字段为PCE的角色,可以取值为master或者slave。The PCE-ROLE field is the role of the PCE, which can be master or slave.

Priority字段为master PCE选举优先级。当PCE-ROLE-TLV携带在PCRrp中由PCC向PCE发送时,该字段填充为当前的Master PCE的优先级的值,当PCE-ROLE-TLV携带在PCRrq中由PCE向PCC发送时,该字段填充为该PCE的优先级的值。The Priority field is the master PCE election priority. When PCE-ROLE-TLV is carried in PCRrp and sent from PCC to PCE, this field is filled with the priority value of the current Master PCE; when PCE-ROLE-TLV is carried in PCRrq and sent from PCE to PCC, this field Filled with the priority value of this PCE.

master-PCE-ID字段为master PCE的router id,长度为32bits。当PCE-ROLE-TLV封装在PCRrp消息由PCE向PCC发送时,该字段的值填充为该PCE的路由器ID标识;当PCE-ROLE-TLV封装在PCRrp消息由PCC向PCE发送时,该字段的值填充master PCE的路由器ID标识。The master-PCE-ID field is the router id of the master PCE, with a length of 32 bits. When PCE-ROLE-TLV is encapsulated in PCRrp message and sent from PCE to PCC, the value of this field is filled with the router ID of the PCE; when PCE-ROLE-TLV is encapsulated in PCRrp message and sent from PCC to PCE, the value of this field The value is filled with the router ID of the master PCE.

具体实施例一:Specific embodiment one:

图8是本实施例的多PCE连接的初始化流程图,阐述本发明的多PCE连接的初始化过程。FIG. 8 is a flow chart of initialization of a multi-PCE connection in this embodiment, illustrating the initialization process of a multi-PCE connection in the present invention.

图8中,PCC期望分别跟PCE1和PCE2建立PCEP会话,PCE1、PCE2和PCC都需要在Open消息中通告其具有多PCE连接的能力。具有多PCE连接的初始化流程如下:In FIG. 8 , PCC expects to establish PCEP sessions with PCE1 and PCE2 respectively, and PCE1 , PCE2 and PCC all need to announce in the Open message that they have the capability of multi-PCE connection. The initialization process with multiple PCE connections is as follows:

(1)PCC向PCE1发送Open消息,消息中携带有本发明提出MULTIPLE-PCE-CAPABILITY TLV,通告本PCC具有多PCE连接的能力;(1) PCC sends an Open message to PCE1, carrying the MULTIPLE-PCE-CAPABILITY TLV proposed by the present invention in the message, and announcing that the PCC has the ability to connect multiple PCEs;

(2)PCE1也向PCC发送Open消息,消息中也携带有本发明提出的MULTIPLE-PCE-CAPABILITY TLV,通告PCE1也具有多PCE连接的能力;(2) PCE1 also sends Open message to PCC, also carries the MULTIPLE-PCE-CAPABILITY TLV that the present invention proposes in the message, announces that PCE1 also has the ability of multi-PCE connection;

(3)同样,PCC与PCE2之间也相互发送携带有MULTIPLE-PCE-CAPABILITY TLV的Open消息,通告各自具有多PCE连接的能力;(3) Similarly, PCC and PCE2 also send Open messages carrying MULTIPLE-PCE-CAPABILITY TLV to each other, announcing that they have the ability to connect to multiple PCEs;

(4)PCC收到了PCE1的Open消息后,按照Open消息中keepalive(保活)字段中定义的时间间隔发送keepalive消息进行PCEP的会话保活;(4) After PCC receives the Open message of PCE1, it sends a keepalive message according to the time interval defined in the keepalive (keep alive) field in the Open message to keep alive the session of PCEP;

(5)PCE1收到了PCC的Open消息后,也会按照Open消息中的keepalive字段定义的时间间隔发送keepalive消息,进行PCEP的会话保活。(5) After receiving the Open message from the PCC, PCE1 will also send a keepalive message at the time interval defined by the keepalive field in the Open message to keep the PCEP session alive.

(6)PCC和PCE2之间也类似发送keepalive消息进行会话保活。(6) A keepalive message is similarly sent between PCC and PCE2 to keep the session alive.

具体实施例二:Specific embodiment two:

图9是本实施例的PCC发起的PCE切换流程图,阐述利用本发明的内容进行由PCC发起的PCE切换的流程。FIG. 9 is a flow chart of PCE switching initiated by the PCC in this embodiment, illustrating the flow of PCE switching initiated by the PCC using the content of the present invention.

图9中,PCC与PCE1,PCE2,PCE3建立PCEP会话,其中PCE1为master PCE,而PCE2和PCE3为slave PCE。In Fig. 9, the PCC establishes a PCEP session with PCE1, PCE2, and PCE3, wherein PCE1 is the master PCE, and PCE2 and PCE3 are slave PCEs.

以下阐述当PCE1与PCC之间的会话中断后,Master PCE切换为PCE2的过程。The following describes the process of switching the Master PCE to PCE2 when the session between the PCE1 and the PCC is interrupted.

(1)当PCC收到了PCE1的close消息,要进行关闭PCC与PCE1之间的PCEP会话后,或者PCC在Deadtimer时间间隔内没有收到PCE1的keepalive消息,或者PCC检测到跟PCE1之间的TCP连接出现故障时,PCC关闭跟PCE1之间的PCEP会话,启动重新选择Master PCE流程;(1) When the PCC receives the close message from PCE1, it needs to close the PCEP session between the PCC and PCE1, or the PCC does not receive the keepalive message from PCE1 within the Deadtimer interval, or the PCC detects a TCP connection with PCE1 When the connection fails, the PCC closes the PCEP session with PCE1 and starts the process of reselecting the Master PCE;

(2)PCC根据优先级选举产生新的master PCE,假定根据优先级选举PCE2为masterPCE;(2) The PCC elects a new master PCE according to the priority, assuming that PCE2 is elected as the masterPCE according to the priority;

(3)PCC向PCE2发送PCRrp消息,PCRrp消息中携带PCE-ROLE-TLV信息,该TLV中,PCE-Role字段取值为master,master-PCE-ID为PCE2的路由器ID;(3) PCC sends a PCRrp message to PCE2, and the PCRrp message carries PCE-ROLE-TLV information. In this TLV, the value of the PCE-Role field is master, and the master-PCE-ID is the router ID of PCE2;

(4)PCC也会向PCE3发送PCRrp消息,PCRrp消息中也携带PCE-ROLE-TLV信息,其中,PCE-Role字段取值为slave,master-PCE-ID取值为PCE2的路由器ID;(4) PCC will also send a PCRrp message to PCE3, and the PCRrp message also carries PCE-ROLE-TLV information, wherein the value of the PCE-Role field is slave, and the value of master-PCE-ID is the router ID of PCE2;

完成了PCC的主Master从PCE1切换到PCE2。The primary master of PCC is switched from PCE1 to PCE2.

具体实施例三:Specific embodiment three:

图10是本实施例的PCE发起的PCE切换的流程图,本发明实施例结合图10阐述利用本发明的内容进行由PCE发起的PCE切换流程。FIG. 10 is a flow chart of the PCE handover initiated by the PCE in this embodiment. The embodiment of the present invention describes the PCE handover process initiated by the PCE by using the content of the present invention in conjunction with FIG. 10 .

PCC与PCE1,PCE2,PCE3建立PCEP会话,其中PCE1为master PCE,而PCE2和PCE3为slave PCE。PCE2希望取代PCE1成为master PCE。The PCC establishes a PCEP session with PCE1, PCE2, and PCE3, where PCE1 is the master PCE, and PCE2 and PCE3 are slave PCEs. PCE2 hopes to replace PCE1 as the master PCE.

以下阐述该master PCE的切换流程:The following describes the switching process of the master PCE:

(1)PCE2向PCC发送PCRrq消息,PCRrq消息中携带PCE-ROLE-TLV,其中PCE-role字段为master,优先级为PCE2的优先级,master-PCE-ID为PCE2的路由器ID;(1) PCE2 sends a PCRrq message to PCC, and the PCRrq message carries PCE-ROLE-TLV, wherein the PCE-role field is master, the priority is the priority of PCE2, and the master-PCE-ID is the router ID of PCE2;

(2)PCC收到了PCE的PCRrq消息请求改变Role后,比较PCE2跟当前的Master PCE的优先级,如果发现PCE2的优先级比当前的master PCE的优先级高,则PCC将当前的masterPCE切换为PCE2,并且向PCE发送PCRrp消息通告master PCE已经改变;(2) After the PCC receives the PCE's PCRrq message requesting to change the Role, it compares the priorities of PCE2 and the current Master PCE. If it finds that the priority of PCE2 is higher than that of the current master PCE, the PCC switches the current masterPCE to PCE2, and sends a PCRrp message to the PCE to notify the master PCE that it has changed;

(3)PCC向PCE1发送PCRrp消息,其中PCE-Role消息为slave,priority字段为PCE2的优先级,master-PCE-ID为PCE2的路由器ID;(3) PCC sends a PCRrp message to PCE1, wherein the PCE-Role message is slave, the priority field is the priority of PCE2, and the master-PCE-ID is the router ID of PCE2;

(4)PCC也向PCE2发送PCRrp消息,其中PCE-Role消息为master,priority字段为PCE2的优先级,master-PCE-ID为PCE2的路由器ID;(4) PCC also sends a PCRrp message to PCE2, wherein the PCE-Role message is master, the priority field is the priority of PCE2, and the master-PCE-ID is the router ID of PCE2;

(5)PCC向PCE3发送PCRrp消息,其中PCE-Role消息为slave,priority字段为PCE2的优先级,master-PCE-ID为PCE2的路由器ID。(5) The PCC sends a PCRrp message to PCE3, wherein the PCE-Role message is slave, the priority field is the priority of PCE2, and the master-PCE-ID is the router ID of PCE2.

具体实施例四Specific embodiment four

图11是本实施例的层次化PCE场景下的PCE切换流程图,本发明实施例结合图11阐述利用本发明的内容在层次化PCE场景下的PCE切换的方法。FIG. 11 is a flow chart of PCE switching in a hierarchical PCE scenario in this embodiment. The embodiment of the present invention describes a method for PCE switching in a hierarchical PCE scenario using the content of the present invention in conjunction with FIG. 11 .

图11中,PCE1、PCE2、PCE3为子PCE,受父PCE的管理和控制,PCE1为master PC,PCE2和PCE3为slave PCE。在层次化PCE中,只有master PCE需要向父PCE进行链路状态数据的通告,其他的slave PCE只需要跟master PCE进行状态同步。当master PCE由PCE1切换为PCE2(不管是PCE发起的,还是由PCC发起的)后,PCE2取代PCE1向父PCE通告链路状态数据。In Fig. 11, PCE1, PCE2, and PCE3 are child PCEs, which are managed and controlled by the parent PCE, PCE1 is the master PC, and PCE2 and PCE3 are slave PCEs. In the hierarchical PCE, only the master PCE needs to notify the parent PCE of link state data, and other slave PCEs only need to synchronize the state with the master PCE. When the master PCE is switched from PCE1 to PCE2 (whether initiated by the PCE or by the PCC), PCE2 replaces PCE1 to notify the parent PCE of link state data.

实施例4Example 4

本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:

S1,在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;S1. Create a Path Computation Element Protocol PCEP message at the path calculation client PCC, where the PCEP message carries attribute information for indicating that the PCC has a multi-connection capability;

S2,在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。S2. Notifying one or more of the PCEs of the PCEP packet during the PCEP session phase between the PCC and the PCE.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk Various media that can store program codes such as discs or optical discs.

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium, to create a path computation unit protocol PCEP packet at the path computation client PCC, where the PCEP packet carries a Attribute information of PCC with multi-connection capability;

可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。Optionally, in this embodiment, the processor executes the PCEP session phase between the PCC and the path computation element PCE according to the program code stored in the storage medium, and notifies the PCEP message to one or more of the PCE.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (16)

1.一种连接能力的通告方法,其特征在于,包括:1. A method for announcing a connection capability, comprising: 在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;Create a path computation unit protocol PCEP message at the path computation client PCC, wherein the PCEP message carries attribute information for representing that the PCC has multi-connection capability; 在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。In the PCEP session phase between the PCC and the PCE, the PCEP message is notified to one or more of the PCEs. 2.根据权利要求1所述的方法,其特征在于,在将所述PCEP报文通告给一个或多个所述PCE之后,所述方法还包括:2. The method according to claim 1, characterized in that, after the PCEP message is notified to one or more of the PCEs, the method further comprises: 接收所述PCE的角色请求消息,其中,所述角色请求消息携带所述PCE的优先级属性;receiving the role request message of the PCE, where the role request message carries the priority attribute of the PCE; 根据所述优先级属性为所述PCE分配PCE角色。Allocating a PCE role to the PCE according to the priority attribute. 3.根据权利要求2所述的方法,其特征在于,根据所述优先级属性为所述PCE分配PCE角色包括:3. The method according to claim 2, wherein assigning a PCE role to the PCE according to the priority attribute comprises: 比较所述PCE的优先级属性与当前连接的主PCE的优先级属性;Comparing the priority attribute of the PCE with the priority attribute of the currently connected main PCE; 在所述PCE的优先级属性高于当前连接的主PCE的优先级属性时,将所述PCE的PCE角色分配为主PCE。When the priority attribute of the PCE is higher than the priority attribute of the currently connected primary PCE, assign the PCE role of the PCE to the primary PCE. 4.根据权利要求2所述的方法,其特征在于,所述PCE角色包括:主PCE、从PCE、父PCE、子PCE。4. The method according to claim 2, wherein the PCE roles include: a master PCE, a slave PCE, a parent PCE, and a child PCE. 5.根据权利要求1所述的方法,其特征在于,在将所述PCEP报文通告给一个或多个所述PCE之后,所述方法包括:5. The method according to claim 1, characterized in that, after the PCEP message is notified to one or more of the PCEs, the method comprises: 确定所述PCC的PCE之间的会话中断;determining a session interruption between PCEs of the PCC; 根据预设优先级选举确定主PCE;Determine the main PCE according to the preset priority election; 向所述主PCE发送角色请求消息,并将与所述PCE之间的连接切换到所述主PCE。Sending a role request message to the master PCE, and switching the connection with the PCE to the master PCE. 6.根据权利要求5所述的方法,其特征在于,确定所述PCC的PCE之间的会话中断包括以下至少之一:6. The method according to claim 5, wherein determining that the session interruption between the PCEs of the PCC comprises at least one of the following: 在所述PCC接收到所述PCE的关闭消息时,确定所述PCC的PCE之间的会话中断;When the PCC receives the close message of the PCE, determine that the session between the PCEs of the PCC is interrupted; 在所述PCC在预定时间间隔内未收到所述PCE的保活消息时,确定所述PCC的PCE之间的会话中断;When the PCC does not receive the keep-alive message of the PCE within a predetermined time interval, determine that the session between the PCEs of the PCC is interrupted; 在检测到所述PCC与所述PCE之间的传输控制协议TCP连接出现故障时,确定所述PCC的PCE之间的会话中断。When it is detected that the transmission control protocol TCP connection between the PCC and the PCE fails, it is determined that the session between the PCEs of the PCC is interrupted. 7.根据权利要求5所述的方法,其特征在于,在根据预设优先级选举确定主PCE之后,所述方法还包括:7. The method according to claim 5, characterized in that, after determining the primary PCE according to preset priority elections, the method further comprises: 根据所述预设优先级选举确定从PCE;Determine the slave PCE according to the preset priority election; 向所述从PCE发送角色请求消息。Send a role request message to the slave PCE. 8.根据权利要求1所述的方法,其特征在于,所述属性信息包括:承载在Open消息中的标识字段。8. The method according to claim 1, wherein the attribute information comprises: an identification field carried in an Open message. 9.一种连接能力的通告装置,其特征在于,包括:9. A device for notifying connection capabilities, comprising: 创建模块,用于在路径计算客户端PCC创建路径计算单元协议PCEP报文,其中,所述PCEP报文携带用于表征所述PCC具备多连接能力的属性信息;A creation module, configured to create a PCEP message of the path calculation element protocol at the PCC of the path calculation client, wherein the PCEP message carries attribute information used to indicate that the PCC has a multi-connection capability; 通告模块,用于在所述PCC和路径计算单元PCE的PCEP会话阶段,将所述PCEP报文通告给一个或多个所述PCE。The notification module is configured to notify one or more of the PCEs of the PCEP message during the PCEP session phase between the PCC and the PCE. 10.根据权利要求9所述的装置,其特征在于,所述装置还包括:10. The device according to claim 9, further comprising: 接收模块,用于在所述通告模块将所述PCEP报文通告给一个或多个所述PCE之后,接收所述PCE的角色请求消息,其中,所述角色请求消息携带所述PCE的优先级属性;A receiving module, configured to receive a role request message of the PCE after the notification module notifies the PCEP message to one or more of the PCEs, wherein the role request message carries the priority of the PCE Attributes; 分配模块,用于根据所述优先级属性为所述PCE分配PCE角色。An allocation module, configured to allocate a PCE role to the PCE according to the priority attribute. 11.根据权利要求10所述的装置,其特征在于,所述分配模块包括:11. The device according to claim 10, wherein the distribution module comprises: 比较单元,用于比较所述PCE的优先级属性与当前连接的主PCE的优先级属性;A comparison unit, configured to compare the priority attribute of the PCE with the priority attribute of the currently connected main PCE; 确定单元,用于在所述PCE的优先级属性高于当前连接的主PCE的优先级属性时,将所述PCE的PCE角色分配为主PCE。A determining unit configured to assign the PCE role of the PCE as the master PCE when the priority attribute of the PCE is higher than the priority attribute of the currently connected master PCE. 12.根据权利要求10所述的装置,其特征在于,所述PCE角色包括:主PCE、从PCE、父PCE、子PCE。12. The device according to claim 10, wherein the PCE roles include: a master PCE, a slave PCE, a parent PCE, and a child PCE. 13.根据权利要求9所述的装置,其特征在于,所述装置包括:13. The device of claim 9, wherein the device comprises: 确定模块,用于在所述通告模块将所述PCEP报文通告给一个或多个所述PCE之后,确定所述PCC的PCE之间的会话中断;A determining module, configured to determine that the session interruption between the PCEs of the PCC is performed after the notification module notifies the PCEP message to one or more of the PCEs; 第一选举模块,用于根据预设优先级选举确定主PCE;The first election module is configured to elect and determine the primary PCE according to a preset priority; 处理模块,用于向所述主PCE发送角色请求消息,并将与所述PCE之间的连接切换到所述主PCE。A processing module, configured to send a role request message to the master PCE, and switch the connection with the PCE to the master PCE. 14.根据权利要求13所述的装置,其特征在于,所述确定模块确定所述PCC的PCE之间的会话中断包括以下至少之一:14. The device according to claim 13, wherein the determining module determines that the session interruption between the PCEs of the PCC includes at least one of the following: 在所述PCC接收到所述PCE的关闭消息时,确定所述PCC的PCE之间的会话中断;When the PCC receives the close message of the PCE, determine that the session between the PCEs of the PCC is interrupted; 在所述PCC在预定时间间隔内未收到所述PCE的保活消息时,确定所述PCC的PCE之间的会话中断;When the PCC does not receive the keep-alive message of the PCE within a predetermined time interval, determine that the session between the PCEs of the PCC is interrupted; 在检测到所述PCC与所述PCE之间的传输控制协议TCP连接出现故障时,确定所述PCC的PCE之间的会话中断。When it is detected that the transmission control protocol TCP connection between the PCC and the PCE fails, it is determined that the session between the PCEs of the PCC is interrupted. 15.根据权利要求13所述的装置,其特征在于,所述装置还包括:15. The device according to claim 13, further comprising: 第二选举模块,用于在所述第一选举模块根据预设优先级选举确定主PCE之后,根据所述预设优先级选举确定从PCE;The second election module is configured to determine the slave PCE according to the preset priority election after the first election module determines the master PCE according to the preset priority election; 发送模块,用于向所述从PCE发送角色请求消息。A sending module, configured to send a role request message to the secondary PCE. 16.根据权利要求9所述的装置,其特征在于,所述属性信息包括:承载在Open消息中的标识字段。16. The device according to claim 9, wherein the attribute information comprises: an identification field carried in an Open message.
CN201610934284.0A 2016-10-31 2016-10-31 The notifying method and device of concatenation ability Withdrawn CN108023810A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610934284.0A CN108023810A (en) 2016-10-31 2016-10-31 The notifying method and device of concatenation ability
PCT/CN2017/117005 WO2018077313A1 (en) 2016-10-31 2017-12-18 Connection capability notification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610934284.0A CN108023810A (en) 2016-10-31 2016-10-31 The notifying method and device of concatenation ability

Publications (1)

Publication Number Publication Date
CN108023810A true CN108023810A (en) 2018-05-11

Family

ID=62024337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610934284.0A Withdrawn CN108023810A (en) 2016-10-31 2016-10-31 The notifying method and device of concatenation ability

Country Status (2)

Country Link
CN (1) CN108023810A (en)
WO (1) WO2018077313A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614558A (en) * 2020-05-11 2020-09-01 烽火通信科技股份有限公司 Method and system for optimizing work of main and standby path calculation units
CN113193988A (en) * 2021-04-09 2021-07-30 烽火通信科技股份有限公司 Multi-PCE path computation interaction method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060198308A1 (en) * 2005-03-02 2006-09-07 Jean-Philippe Vasseur Technique for selecting a path computation element based on response time delay
CN101432720A (en) * 2004-11-05 2009-05-13 思科技术公司 Technique for selecting a path computation element
CN101984602A (en) * 2010-11-05 2011-03-09 中兴通讯股份有限公司 Path calculation method, system and node equipment
CN102714621A (en) * 2010-01-04 2012-10-03 瑞典爱立信有限公司 Providing feedback to path computation element
CN105763447A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Label switching path state acquisition method and apparatus thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820362B (en) * 2010-04-29 2013-02-27 中兴通讯股份有限公司 Method and device for solving resource distribution conflict
CN102238185B (en) * 2011-07-19 2017-08-11 南京中兴新软件有限责任公司 Session establishing method and system
CN104348744B (en) * 2013-08-01 2019-05-24 中兴通讯股份有限公司 A path calculation method and path calculation unit
US9537753B2 (en) * 2014-03-03 2017-01-03 Cisco Technology, Inc. Opaque profile identifiers for path computation element protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101432720A (en) * 2004-11-05 2009-05-13 思科技术公司 Technique for selecting a path computation element
US20060198308A1 (en) * 2005-03-02 2006-09-07 Jean-Philippe Vasseur Technique for selecting a path computation element based on response time delay
CN102714621A (en) * 2010-01-04 2012-10-03 瑞典爱立信有限公司 Providing feedback to path computation element
CN101984602A (en) * 2010-11-05 2011-03-09 中兴通讯股份有限公司 Path calculation method, system and node equipment
CN105763447A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Label switching path state acquisition method and apparatus thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
E. CRABBE,等: "《draft-ietf-pce-stateful-pce-16》", 1 September 2016 *
S. LITKOWSKI,等: "《draft-litkowski-pce-state-sync-00》", 26 October 2016 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614558A (en) * 2020-05-11 2020-09-01 烽火通信科技股份有限公司 Method and system for optimizing work of main and standby path calculation units
CN113193988A (en) * 2021-04-09 2021-07-30 烽火通信科技股份有限公司 Multi-PCE path computation interaction method and system
CN113193988B (en) * 2021-04-09 2022-08-12 烽火通信科技股份有限公司 Multi-PCE path computation interaction method and system

Also Published As

Publication number Publication date
WO2018077313A1 (en) 2018-05-03

Similar Documents

Publication Publication Date Title
US11362940B2 (en) Method and apparatus for determining identification information about cross-domain path, and storage medium
US9094285B2 (en) Automatic discovery of multiple controllers in Software Defined Networks (SDNs)
US9386047B2 (en) Method, switch, server and system for sending connection establishment request
US10218600B2 (en) Path computation element hierarchical software defined network control
RU2645296C2 (en) Routing services &#34;point-to-multipoint&#34; in multi-domain network
CN103688510B (en) Outgoing telecommunication method and device
EP3188408B1 (en) Method and apparatus for determining network topology, and centralized network state information storage device
CN114826891A (en) Method, device and system for communication among controllers in TSN (traffic service network)
CN105704029A (en) Pseudo wire establishing method, pseudo wire establishing system and equipment
CN102624745B (en) Method and device for establishing PCEP session
CN113765791A (en) A method, node and system for determining processing power
US10887207B2 (en) System and method for determining branch gateway device availability in computer networks
US11641307B2 (en) Method for configuring a network node
CN107615721A (en) Transmitting software defines network (SDN) logical links polymerization (LAG) member&#39;s signaling
CN112910704B (en) Local area network system, method and device supporting dynamic self-adaptive network configuration
CN104159289B (en) The certification register method and device of home terminal
EP3484107B1 (en) Parameter notification and obtaining methods and devices, and storage medium
CN104994019B (en) A kind of horizontal direction interface system for SDN controllers
US20180145929A1 (en) Path computation element protocol response and simple network management protocol confirmation for tunnel configuration
CN114268583B (en) SDN-based dual-stack backbone management method and device and electronic equipment
CN108023810A (en) The notifying method and device of concatenation ability
US20100238939A1 (en) Intermediate node device, method of controlling intermediate node device, and network system
Chen et al. Demonstration of OpenFlow-controlled cooperative resource allocation in a multi-domain SD-EON testbed across multiple nations
CN113193988B (en) Multi-PCE path computation interaction method and system
WO2018086552A1 (en) Method and device for adjusting planned bandwidth

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180511