CN105162705B - Method, device and system for notifying UNI tunnel state - Google Patents
Method, device and system for notifying UNI tunnel state Download PDFInfo
- Publication number
- CN105162705B CN105162705B CN201510313946.8A CN201510313946A CN105162705B CN 105162705 B CN105162705 B CN 105162705B CN 201510313946 A CN201510313946 A CN 201510313946A CN 105162705 B CN105162705 B CN 105162705B
- Authority
- CN
- China
- Prior art keywords
- uni tunnel
- state
- tunnel
- uni
- status
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/028—Dynamic adaptation of the update intervals, e.g. event-triggered updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0005—Switch and router aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,特别是涉及一种通告用户网络侧接口(User NetworkInterface,UNI)隧道状态的方法、装置及系统。The present invention relates to the field of communication technologies, and in particular to a method, device and system for notifying a user network interface (User Network Interface, UNI) tunnel status.
背景技术Background technique
目前,通信领域对传输业务数据的传输分为两部分,一部分是网际互联协议(Internet Protocol,IP)层业务数据的传输,另外一部分是光层业务数据的传输。所述IP层和所述光层对业务数据传输路径的计算和传输控制相互独立。其中,所述IP层的IP SNC(Smart Network Controller)上配置有IP路径计算模块(Path Computation Element,PCE),所述IP PCE用于管理IP层业务数据的传输路径。其中,所述光层的TSDN(Transport-Software Defined Networking)上配置有光PCE,用于管理光层业务数据的传输路径。At present, the transmission of transmission service data in the communication field is divided into two parts, one part is the transmission of Internet Protocol (Internet Protocol, IP) layer service data, and the other part is the transmission of optical layer service data. The calculation and transmission control of the service data transmission path by the IP layer and the optical layer are independent of each other. Wherein, the IP SNC (Smart Network Controller) of the IP layer is configured with an IP path computation module (Path Computation Element, PCE), and the IP PCE is used to manage the transmission path of the service data of the IP layer. Wherein, the TSDN (Transport-Software Defined Networking) of the optical layer is configured with an optical PCE for managing the transmission path of the optical layer service data.
目前,通信领域将光层传输路径,IP层传输路径中的边界路由器与所述光层路径中的边界节点设备之间的端口连接信息,抽象成虚网络拓扑(Virtual Network Topology,VNT)链路。在IP层中,VNT链路可以看作两个路由器之间一条能够建立但还未建立的虚链路,即VNT链路能够与IP层传输路径构成业务数据传输路径。At present, in the communication field, the optical layer transmission path, the port connection information between the border router in the IP layer transmission path and the border node device in the optical layer path, is abstracted into a virtual network topology (Virtual Network Topology, VNT) link . In the IP layer, the VNT link can be regarded as a virtual link between two routers that can be established but has not yet been established, that is, the VNT link can form a service data transmission path with the IP layer transmission path.
预先人工配置VNT链路与UNI隧道绑定,路径计算客户端(Path ComputationClient,PCC)将VNT链路与UNI隧道的绑定信息上报至IP PCE。IP PCE在计算业务数据流的传输路径时,认为每条VNT链路都可达。但是,VNT链路是否可达,不仅依赖于是否与UNI隧道绑定,还依赖于所绑定的UNI隧道是否可用。实际应用中,在光层网络拓扑中,多条UNI隧道共享一个端口资源,当其中一条UNI隧道建立连接时,与该UNI隧道共享同一个端口的其他UNI隧道则不能建立连接。并且,当光层网络拓扑中的一个光节点故障时,则与故障光节点连接的所有UNI隧道都不可用。The binding of the VNT link and the UNI tunnel is manually configured in advance, and the Path Computation Client (PCC) reports the binding information of the VNT link and the UNI tunnel to the IP PCE. When the IP PCE calculates the transmission path of the service data flow, it considers that each VNT link is reachable. However, whether the VNT link is reachable depends not only on whether it is bound to a UNI tunnel, but also on whether the bound UNI tunnel is available. In practical applications, in the optical layer network topology, multiple UNI tunnels share one port resource. When one of the UNI tunnels establishes a connection, other UNI tunnels that share the same port with the UNI tunnel cannot establish connections. Moreover, when an optical node in the optical layer network topology fails, all UNI tunnels connected to the failed optical node are unavailable.
目前,先由IP PCE根据所获得的VNT链路与UNI隧道的绑定信息,计算得到第一业务数据流的传输路径,IP PCE无法获知计算所得的第一业务数据流传输路径中的第一VNT链路所绑定的第一UNI隧道是否可用。IP PCE向光PCE发送查询所述第一UNI隧道是否可用的报文,光PCE向IP PCE返回所述第一UNI隧道是否可用。当所述第一UNI隧道不可用时,IPPCE需要重新计算获得第二业务数据流的传输路径,向光PCE发送计算所得的第二业务数据流的传输路径中第二VNT链路所绑定的第二UNI隧道是否可用的报文。直至当IP PCE计算所得的业务数据流传输路径中VNT链路所绑定的UNI隧道可用。IP PCE采用上述方法计算业务数据流传输路径计算过程复杂,耗时长。At present, the IP PCE first calculates the transmission path of the first service data flow according to the obtained binding information of the VNT link and the UNI tunnel, and the IP PCE cannot know the first transmission path of the calculated first service data flow transmission path. Whether the first UNI tunnel bound to the VNT link is available. The IP PCE sends a message to the optical PCE to query whether the first UNI tunnel is available, and the optical PCE returns to the IP PCE whether the first UNI tunnel is available. When the first UNI tunnel is unavailable, the IPPCE needs to recalculate and obtain the transmission path of the second service data flow, and send to the optical PCE the second VNT link bound to the second VNT link in the transmission path of the calculated second service data flow. 2. A message indicating whether the UNI tunnel is available. Until the UNI tunnel bound to the VNT link in the service data flow transmission path calculated by the IP PCE is available. The calculation process of the IP PCE using the above method to calculate the transmission path of the service data flow is complicated and time-consuming.
发明内容Contents of the invention
本发明实施例提供了一种通告UNI隧道的状态的方法、装置及系统,用于解决IP控制器无法获知UNI隧道状态导致计算所得的业务数据流的传输路径不可用的问题。Embodiments of the present invention provide a method, device and system for notifying the state of the UNI tunnel, which are used to solve the problem that the transmission path of the calculated service data flow is unavailable due to the inability of the IP controller to know the state of the UNI tunnel.
为此,本发明解决技术问题的技术方案是:For this reason, the technical scheme that the present invention solves technical problem is:
本发明实施例第一方面提供请求用户网络侧接口UNI隧道状态的方法,所述方法包括:The first aspect of the embodiment of the present invention provides a method for requesting the UNI tunnel status of the user network side interface, the method including:
网际互联协议IP控制器生成UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息;The Internet Protocol IP controller generates a UNI Tunnel Status Request message, the UNI Tunnel Status Request message carries a UNI Tunnel Status Request ID, and the UNI Tunnel Status Request ID is used to indicate that when the status of the UNI Tunnel is changed from the first status to the No. When in the second state, request to send the information of the changed second state of the UNI tunnel;
所述IP控制器将所述UNI隧道状态请求消息发送至光控制器。The IP controller sends the UNI tunnel status request message to the light controller.
本发明实施例第一方面第一种可能的实施方式中,In the first possible implementation manner of the first aspect of the embodiment of the present invention,
所述UNI隧道状态请求消息为路径计算单元通信协议PCEP中的open消息,所述open消息包括选项Optional字段,所述Optional字段携带有所述UNI隧道状态请求标识。The UNI tunnel state request message is an open message in the path computation element communication protocol PCEP, and the open message includes an Optional field, and the Optional field carries the UNI tunnel state request identifier.
结合本发明实施例第一方面第一种可能的实施方式,在第二种可能的实施方式中,In combination with the first possible implementation manner of the first aspect of the embodiment of the present invention, in the second possible implementation manner,
所述Optional字段包括类型Type、长度Length和值value,所述Type携带有类型值,所述类型值用于指示所述Optional字段的类型为表征是否请求所述UNI隧道的改变后的第二状态的信息,所述Length指示所述Optional字段的长度,所述Value中的标志位flags携带有所述UNI隧道状态请求标识,指示当所述UNI隧道的状态由第一状态改变为第二状态时,请求所述UNI隧道的改变后的第二状态的信息。The Optional field includes a type Type, a length Length, and a value value, the Type carries a type value, and the type value is used to indicate that the type of the Optional field is to indicate whether to request the changed second state of the UNI tunnel information, the Length indicates the length of the Optional field, and the flags in the Value carry the UNI tunnel status request identifier, indicating that when the status of the UNI tunnel is changed from the first status to the second status , requesting information about the changed second state of the UNI tunnel.
结合本发明实施例第一方面至第一方面第二种可能的实施方式,在第三种可能的实施方式中,所述方法还包括:In combination with the first aspect of the embodiments of the present invention to the second possible implementation manner of the first aspect, in the third possible implementation manner, the method further includes:
所述IP控制器接收所述光控制器发送的UNI隧道状态通告消息,所述UNI隧道状态通告消息携带有UNI隧道状态通告标识、所述UNI隧道的标识以及所述UNI隧道的状态,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;The IP controller receives the UNI tunnel status notification message sent by the optical controller, the UNI tunnel status notification message carries the UNI tunnel status notification identifier, the UNI tunnel identifier and the status of the UNI tunnel, the The UNI tunnel status notification identifier is used to indicate that the type of the UNI tunnel status notification message is information that notifies the changed second state of the UNI tunnel;
所述IP控制器解析所述UNI隧道状态通告消息获得所述第二状态的信息;The IP controller parses the UNI tunnel state notification message to obtain information of the second state;
所述IP控制器利用所述第二状态的信息更新所述UNI隧道的标识所对应的第一状态的信息;The IP controller uses the information of the second state to update the information of the first state corresponding to the identifier of the UNI tunnel;
所述IP控制器根据所述UNI隧道更新后的第二状态的信息获取虚网络拓扑VNT链路的可达性,所述VNT链路与所述UNI隧道绑定;The IP controller obtains the reachability of the virtual network topology VNT link according to the updated information of the second state of the UNI tunnel, and the VNT link is bound to the UNI tunnel;
所述IP控制器根据所述VNT链路的可达性计算业务数据流的传输路径。The IP controller calculates the transmission path of the service data flow according to the reachability of the VNT link.
本发明实施例第二方面提供通告用户网络侧接口UNI隧道的状态的方法,所述方法包括:The second aspect of the embodiment of the present invention provides a method for notifying the state of the UNI tunnel of the user network side interface, the method including:
光控制器接收网际互联协议IP控制器发送的UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息;The optical controller receives the UNI tunnel status request message sent by the Internet Protocol IP controller, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate that when the status of the UNI tunnel is determined by the first When a state is changed to a second state, requesting to send information about the changed second state of the UNI tunnel;
当所述UNI隧道的状态由第一状态改变为第二状态时,所述光控制器获取所述UNI隧道的标识和第二状态的信息;When the state of the UNI tunnel is changed from the first state to the second state, the light controller acquires the identifier of the UNI tunnel and the information of the second state;
所述光控制器生成所述UNI隧道状态通告消息,所述UNI隧道状态通告消息包括:UNI隧道状态通告标识、所述UNI隧道的标识和所述第二状态的信息,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;The optical controller generates the UNI tunnel status notification message, the UNI tunnel status notification message includes: the UNI tunnel status notification identifier, the UNI tunnel identifier and the information of the second state, the UNI tunnel status notification Identifying the information used to indicate that the type of the UNI tunnel state notification message is to notify the changed second state of the UNI tunnel;
所述光控制器将所述UNI隧道状态通告消息发送至所述IP控制器。The optical controller sends the UNI tunnel status notification message to the IP controller.
本发明实施例第二方面第一种可能的实施方式中,In the first possible implementation manner of the second aspect of the embodiment of the present invention,
所述UNI隧道状态通告消息为路径计算通告PCNtf消息,所述PCNtf消息包括通告类型NT字段、通告值NV字段和选项Optional字段,所述NT字段携带有第一类型值。所述第一类型值指示所述PCNtf消息的类型为通告所述UNI隧道改变后的所述第二状态的信息,所述NV字段指示所述PCNtf消息通告的所述第二状态的信息,所述Optional字段携带有所述UNI隧道的标识。The UNI tunnel status notification message is a path computation notification PCNtf message, and the PCNtf message includes a notification type NT field, a notification value NV field and an option Optional field, and the NT field carries a first type value. The first type value indicates that the type of the PCNtf message is the information of the second state after the change of the UNI tunnel is notified, and the NV field indicates the information of the second state notified by the PCNtf message, so The Optional field carries the identifier of the UNI tunnel.
结合本发明实施例第二方面第一种可能的实施方式,在第二种可能的实施方式中,With reference to the first possible implementation manner of the second aspect of the embodiment of the present invention, in the second possible implementation manner,
所述Optional字段包括类型Type、长度Length和值value,所述Type携带有第二类型值,所述第二类型值指示所述Optional字段的类型为表征所述UNI隧道的标识,所述Length指示所述Optional字段的长度,所述value指示所述UNI隧道的标识,所述value包括所述UNI隧道的源地址IPv4 Tunnel Sender Address,标签交换路径LSP ID,隧道TunnelID,扩展隧道Extended Tunnel ID以及目的地址IPv4 Tunnel Endpoint Address。The Optional field includes a type Type, a length Length, and a value value, the Type carries a second type value, and the second type value indicates that the type of the Optional field is an identifier that characterizes the UNI tunnel, and the Length indicates The length of the Optional field, the value indicates the identifier of the UNI tunnel, and the value includes the source address IPv4 Tunnel Sender Address of the UNI tunnel, the label switching path LSP ID, the tunnel TunnelID, the extended tunnel Extended Tunnel ID and the destination Address IPv4 Tunnel Endpoint Address.
结合本发明实施例第二方面至第二方面第二种可能的实施方式,在第三种可能的实施方式中,所述光控制器获取所述UNI隧道的标识和第二状态的信息包括:In combination with the second aspect to the second possible implementation manner of the second aspect of the embodiments of the present invention, in a third possible implementation manner, the acquisition of the identifier of the UNI tunnel and information about the second state by the light controller includes:
所述光控制器接收第一光网络设备发送的所述第一光网络设备与第二光网络设备的连接变化信息;The optical controller receives connection change information between the first optical network device and the second optical network device sent by the first optical network device;
所述光控制器根据所述连接变化信息获得所述第一光网络设备与第二光网络设备之间建立的所述UNI隧道的标识,以及所述UNI隧道从所述第一状态改变为所述第二状态后的所述第二状态的信息。The optical controller obtains the identifier of the UNI tunnel established between the first optical network device and the second optical network device according to the connection change information, and the UNI tunnel changes from the first state to the Information about the second state after the second state.
本发明实施例第三方面提供请求用户网络侧接口UNI隧道状态的网际互联协议IP控制器,所述IP控制器包括:The third aspect of the embodiment of the present invention provides an Internet Protocol IP controller that requests the UNI tunnel status of the user network side interface, and the IP controller includes:
生成单元,用于生成UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息;A generating unit, configured to generate a UNI tunnel status request message, the UNI tunnel status request message carrying a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate that when the status of the UNI tunnel changes from the first status to the second status state, requesting to send information about the changed second state of the UNI tunnel;
发送单元,用于将所述生成单元生成的所述UNI隧道状态请求消息发送至光控制器。a sending unit, configured to send the UNI tunnel status request message generated by the generating unit to the light controller.
在本发明实施例第三方面第一种可能的实施方式中,In the first possible implementation manner of the third aspect of the embodiments of the present invention,
所述UNI隧道状态请求消息为路径计算单元通信协议PCEP中的open消息,所述open消息包括选项Optional字段,所述Optional字段携带有所述UNI隧道状态请求标识。The UNI tunnel state request message is an open message in the path computation element communication protocol PCEP, and the open message includes an Optional field, and the Optional field carries the UNI tunnel state request identifier.
结合本发明实施例第三方面第一种可能的实施方式,在第二种可能的实施方式中,In combination with the first possible implementation manner of the third aspect of the embodiment of the present invention, in the second possible implementation manner,
所述Optional字段包括类型Type、长度Length和值value,所述Type携带有类型值,所述类型值用于指示所述Optional字段的类型为表征是否请求所述UNI隧道的改变后的第二状态的信息,所述Length指示所述Optional字段的长度,所述Value中的标志位flags携带有所述UNI隧道状态请求标识,指示当所述UNI隧道的状态由第一状态改变为第二状态时,请求所述UNI隧道的改变后的第二状态的信息。The Optional field includes a type Type, a length Length, and a value value, the Type carries a type value, and the type value is used to indicate that the type of the Optional field is to indicate whether to request the changed second state of the UNI tunnel information, the Length indicates the length of the Optional field, and the flags in the Value carry the UNI tunnel status request identifier, indicating that when the status of the UNI tunnel is changed from the first status to the second status , requesting information about the changed second state of the UNI tunnel.
结合本发明实施例第三方面至第三方面第二种可能的实施方式,在第三种可能的实施方式中,所述IP控制器还包括:In combination with the third aspect to the second possible implementation manner of the third aspect of the embodiments of the present invention, in the third possible implementation manner, the IP controller further includes:
接收单元,用于接收所述光控制器发送的UNI隧道状态通告消息,所述UNI隧道状态通告消息携带有UNI隧道状态通告标识、所述UNI隧道的标识以及所述UNI隧道的状态,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;a receiving unit, configured to receive a UNI tunnel status notification message sent by the optical controller, the UNI tunnel status notification message carrying a UNI tunnel status notification identifier, an identifier of the UNI tunnel, and a status of the UNI tunnel, the The UNI tunnel status notification identifier is used to indicate that the type of the UNI tunnel status notification message is information that notifies the changed second state of the UNI tunnel;
解析单元,用于解析所述接收单元接收的所述UNI隧道状态通告消息获得所述第二状态的信息;A parsing unit, configured to parse the UNI tunnel state notification message received by the receiving unit to obtain information about the second state;
更新单元,用于利用所述第二状态的信息更新所述UNI隧道的标识所对应的第一状态信息;An updating unit, configured to use the information of the second state to update the first state information corresponding to the identifier of the UNI tunnel;
获取单元,用于根据所述UNI隧道更新后的第二状态的信息获取虚网络拓扑VNT链路的可达性,所述VNT链路与所述UNI隧道绑定;An acquisition unit, configured to acquire the reachability of a virtual network topology VNT link according to the information of the updated second state of the UNI tunnel, and the VNT link is bound to the UNI tunnel;
路径计算单元,用于根据所述VNT链路的可达性计算业务数据流的传输路径。A path calculation unit, configured to calculate the transmission path of the service data flow according to the reachability of the VNT link.
本发明实施例第四方面提供通告用户网络侧接口UNI隧道状态的光控制器,所述光控制器包括:The fourth aspect of the embodiments of the present invention provides an optical controller that notifies the user of the UNI tunnel status of the network side interface, and the optical controller includes:
接收单元,用于接收网际互联协议IP控制器发送的UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息;The receiving unit is used to receive the UNI tunnel status request message sent by the Internet Protocol IP controller, the UNI tunnel status request message carries the UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate the status of the UNI tunnel When changing from the first state to the second state, requesting to send information about the changed second state of the UNI tunnel;
获取单元,用于当所述UNI隧道的状态由第一状态改变为第二状态时,获取所述UNI隧道的标识和第二状态的信息;An acquisition unit, configured to acquire the identifier of the UNI tunnel and the information of the second state when the state of the UNI tunnel is changed from the first state to the second state;
生成单元,用于生成所述UNI隧道状态通告消息,所述UNI隧道状态通告消息包括:UNI隧道状态通告标识、所述UNI隧道的标识和所述第二状态的信息,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;A generating unit, configured to generate the UNI tunnel status notification message, the UNI tunnel status notification message including: a UNI tunnel status notification identifier, the UNI tunnel identifier and information of the second state, the UNI tunnel status notification Identifying the information used to indicate that the type of the UNI tunnel state notification message is to notify the changed second state of the UNI tunnel;
发送单元,用于将所述UNI隧道状态通告消息发送至所述IP控制器。A sending unit, configured to send the UNI tunnel status notification message to the IP controller.
本发明实施例第四方面第一种可能的实施方式中,In the first possible implementation manner of the fourth aspect of the embodiment of the present invention,
所述UNI隧道状态通告信息为路径计算通告PCNtf消息,所述PCNtf消息包括通告类型NT字段、通告值NV字段和选项Optional字段,所述NT字段携带有第一类型值。所述第一类型值指示所述PCNtf消息的类型为通告所述UNI隧道改变后的所述第二状态的信息,所述NV字段指示所述PCNtf消息通告的所述第二状态的信息,所述Optional字段携带有所述UNI隧道的标识。The UNI tunnel state notification information is a path computation notification PCNtf message, and the PCNtf message includes a notification type NT field, a notification value NV field and an optional field, and the NT field carries a first type value. The first type value indicates that the type of the PCNtf message is the information of the second state after the change of the UNI tunnel is notified, and the NV field indicates the information of the second state notified by the PCNtf message, so The Optional field carries the identifier of the UNI tunnel.
结合本发明实施例第四方面第一种可能的实施方式,在第四方面第二种可能的实施方式中,In combination with the first possible implementation manner of the fourth aspect of the embodiment of the present invention, in the second possible implementation manner of the fourth aspect,
所述Optional字段包括类型Type、长度Length和值value,所述Type携带有第二类型值,所述第二类型值指示所述Optional字段的类型为表征所述UNI隧道的标识,所述Length指示所述Optional字段的长度,所述value指示所述UNI隧道的标识,所述value包括所述UNI隧道的源地址IPv4 Tunnel Sender Address,标签交换路径LSP ID,隧道TunnelID,扩展隧道Extended Tunnel ID以及目的地址IPv4 Tunnel Endpoint Address。The Optional field includes a type Type, a length Length, and a value value, the Type carries a second type value, and the second type value indicates that the type of the Optional field is an identifier that characterizes the UNI tunnel, and the Length indicates The length of the Optional field, the value indicates the identifier of the UNI tunnel, and the value includes the source address IPv4 Tunnel Sender Address of the UNI tunnel, the label switching path LSP ID, the tunnel TunnelID, the extended tunnel Extended Tunnel ID and the destination Address IPv4 Tunnel Endpoint Address.
结合本发明实施例第四方面至第四方面第二种可能的实施方式,在第三种可能的实施方式中,所述获取单元包括:In combination with the fourth aspect of the present invention to the second possible implementation manner of the fourth aspect, in the third possible implementation manner, the acquisition unit includes:
接收子单元,用于接收第一光网络设备发送的所述第一光网络设备与第二光网络设备的连接变化信息;The receiving subunit is configured to receive connection change information between the first optical network device and the second optical network device sent by the first optical network device;
信息获取子单元,用于根据所述连接变化信息获得所述第一光网络设备与第二光网络设备之间建立的所述UNI隧道的标识,以及所述UNI隧道从所述第一状态改变为所述第二状态后的所述第二状态的信息。An information obtaining subunit, configured to obtain the identifier of the UNI tunnel established between the first optical network device and the second optical network device according to the connection change information, and the UNI tunnel changes from the first state is the information of the second state after the second state.
本发明实施例第五方面提供获得用户网络侧接口UNI隧道状态的系统,所述系统包括:The fifth aspect of the embodiment of the present invention provides a system for obtaining the UNI tunnel status of the user network side interface, the system includes:
本发明实施例第三方面至第三方面第三种可能的实施方式所述的请求UNI隧道状态的网际互联协议IP控制器,以及本发明实施例第四方面至第四方面第三种可能的实施方式所述的通告UNI隧道状态的光控制器。The third possible implementation manner of the third aspect to the third aspect of the embodiment of the present invention is the Internet Protocol IP controller requesting the UNI tunnel state, and the fourth aspect to the fourth aspect of the embodiment of the present invention is the third possible implementation The light controller that notifies the UNI tunnel status described in the implementation manner.
通过上述技术方案可知,本发明有如下有益效果:As can be seen from the above technical solutions, the present invention has the following beneficial effects:
本发明实施例提供了通告UNI隧道状态的方法、装置及系统,IP控制器向光控制器发送UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,IP控制器请求光控制器发送所述UNI隧道的改变后的第二状态的信息。当所述UNI隧道的状态由第一状态改变为第二状态时,光控制器将所述UNI隧道的改变后的第二状态的信息发送至IP控制器,IP控制器可以及时更新所述UNI隧道改变后的第二状态的信息。IP控制器可以获知所述UNI隧道更新后的状态,则IP控制器在计算业务数据流的传输路径时,就可以获知与所述UNI隧道绑定的VNT链路的可达性,删除不可达的VNT链路,计算得到的业务数据流的传输路径可用。降低IP控制器计算业务数据流传输路径的复杂度,缩短计算业务数据流传输路径的时间。Embodiments of the present invention provide a method, device and system for notifying the status of a UNI tunnel. The IP controller sends a UNI tunnel status request message to the optical controller. The UNI tunnel status request message carries a UNI tunnel status request identifier. The UNI tunnel status request message carries a UNI tunnel status request identifier. The state request flag is used to indicate that when the state of the UNI tunnel changes from the first state to the second state, the IP controller requests the light controller to send information about the changed second state of the UNI tunnel. When the state of the UNI tunnel is changed from the first state to the second state, the optical controller sends the information of the changed second state of the UNI tunnel to the IP controller, and the IP controller can update the UNI in time. Information about the second state of the tunnel after it is changed. The IP controller can know the updated state of the UNI tunnel, and then the IP controller can know the reachability of the VNT link bound to the UNI tunnel when calculating the transmission path of the service data flow, and delete the unreachable The transmission path of the calculated service data flow is available for the VNT link. Reduce the complexity of calculating the transmission path of the service data flow by the IP controller, and shorten the time for calculating the transmission path of the service data flow.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为IP层路径中的边界路由器与光层路径中的边界光网络设备的连接示意图;Fig. 1 is a schematic diagram of the connection between a border router in an IP layer path and a border optical network device in an optical layer path;
图2为本发明实施例提供的请求UNI隧道状态的方法流程图;Fig. 2 is the flow chart of the method for requesting UNI tunnel status provided by the embodiment of the present invention;
图3为本发明实施例提供的Open消息的格式示意图;Fig. 3 is a schematic diagram of the format of the Open message provided by the embodiment of the present invention;
图4为本发明实施例提供的Open消息中Optional字段的格式示意图;FIG. 4 is a schematic diagram of the format of the Optional field in the Open message provided by the embodiment of the present invention;
图5为本发明实施例提供的通告UNI隧道状态的方法流程图;5 is a flow chart of a method for announcing the status of a UNI tunnel provided by an embodiment of the present invention;
图6为本发明实施例提供的PCNtf消息的格式示意图;FIG. 6 is a schematic diagram of the format of the PCNtf message provided by the embodiment of the present invention;
图7为本发明实施例提供的PCNtf消息中Optional字段的格式示意图;Fig. 7 is a schematic diagram of the format of the Optional field in the PCNtf message provided by the embodiment of the present invention;
图8为本发明实施例提供的一种请求UNI隧道状态的IP控制器结构示意图;FIG. 8 is a schematic structural diagram of an IP controller requesting a UNI tunnel state provided by an embodiment of the present invention;
图9为本发明实施例提供的通告UNI隧道状态的光控制器结构示意图;FIG. 9 is a schematic structural diagram of an optical controller for announcing the UNI tunnel status provided by an embodiment of the present invention;
图10为本发明实施例提供的获得UNI隧道状态的系统结构示意图;FIG. 10 is a schematic structural diagram of a system for obtaining a UNI tunnel state provided by an embodiment of the present invention;
图11为本发明实施例提供的请求UNI隧道的状态的IP控制器硬件结构示意图;11 is a schematic diagram of the hardware structure of the IP controller requesting the state of the UNI tunnel provided by the embodiment of the present invention;
图12为本发明实施例提供的通告UNI隧道状态的光控制器硬件结构示意图;12 is a schematic diagram of the hardware structure of the light controller for notifying the UNI tunnel status provided by the embodiment of the present invention;
图13为本发明实施例提供的获得UNI隧道状态的系统硬件结构示意图。FIG. 13 is a schematic diagram of a hardware structure of a system for obtaining a UNI tunnel status provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
为了给出当所述UNI隧道的状态由第一状态改变为第二状态时,IP控制器获知所述UNI隧道改变后的第二状态的信息的实现方案,本发明实施例提供了一种通告UNI隧道状态的方法、装置及系统,以下结合说明书附图对本发明的实施例进行详细说明。In order to provide an implementation scheme for the IP controller to obtain information about the changed second state of the UNI tunnel when the state of the UNI tunnel changes from the first state to the second state, an embodiment of the present invention provides a notification The method, device and system of the UNI tunnel state will be described in detail below in conjunction with the accompanying drawings of the embodiments of the present invention.
图1为IP层路径中的边界路由器与光层路径中的边界光网络设备的连接示意图。IP SNC中的IP PCE维护IP层路径中的路由器,以及边界路由器与光层路径中的边界光网络设备之间的链路。TSDN中的光PCE维护光层路径中的光网络设备,以及边界光网络设备与IP层路径中的边界路由器之间的链路。VNT链路与UNI隧道绑定后,IP PCE即可获得VNT链路与UNI隧道的绑定信息,即认为所述VNT链路可达。但是,IP PCE无法获知位于光传输通路中的所述UNI隧道是否可达,当所述UNI隧道不可达时,与所述UNI隧道绑定的VNT链路也不可达,则IP PCE计算的业务数据流的传输路径经由所述VNT链路时,会导致业务数据流的传输中断。FIG. 1 is a schematic diagram of connection between a border router in an IP layer path and a border optical network device in an optical layer path. The IP PCE in the IP SNC maintains the routers in the IP layer path, and the links between the border routers and the border optical network devices in the optical layer path. The optical PCE in the TSDN maintains the optical network equipment in the optical layer path, and the link between the boundary optical network equipment and the border router in the IP layer path. After the VNT link is bound to the UNI tunnel, the IP PCE can obtain the binding information of the VNT link and the UNI tunnel, that is, it considers that the VNT link is reachable. However, IP PCE cannot know whether the UNI tunnel located in the optical transmission path is reachable. When the UNI tunnel is unreachable, the VNT link bound with the UNI tunnel is also unreachable, and the IP PCE calculated When the transmission path of the data flow passes through the VNT link, the transmission of the service data flow will be interrupted.
为了保证IP PCE可以及时获知光传输通路中的UNI隧道的状态,以便IP PCE计算所得的业务数据流的传输路径可以有效地传输业务数据流,本发明实施例提供了通告UNI隧道状态的方法,下面详细说明。In order to ensure that the IP PCE can know the status of the UNI tunnel in the optical transmission path in time, so that the transmission path of the service data stream calculated by the IP PCE can effectively transmit the service data stream, the embodiment of the present invention provides a method for notifying the status of the UNI tunnel, Details are given below.
图2为本发明实施例提供的请求UNI隧道状态的方法流程图,所述方法包括:Fig. 2 is a flow chart of a method for requesting a UNI tunnel state provided by an embodiment of the present invention, the method comprising:
201:IP控制器生成UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息。201: The IP controller generates a UNI tunnel status request message, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate that when the status of the UNI tunnel changes from the first status to the second status state, requesting to send information about the changed second state of the UNI tunnel.
202:所述IP控制器将所述UNI隧道状态请求消息发送至光控制器。202: The IP controller sends the UNI tunnel status request message to the optical controller.
IP控制器生成了UNI隧道状态请求消息,所述UNI隧道状态请求消息用于向光控制器“订阅”所述UNI隧道的状态。“订阅”指的是,当所述UNI隧道的状态发生变化时(例如,UNI隧道的状态由可达变为不可达,或者UNI隧道的状态由不可达变为可达),即UNI隧道的状态由第一状态改变为第二状态时,所述IP控制器请求光控制器将所述UNI隧道变化后的第二状态的信息发送至所述IP控制器。也就是说,所述IP控制器生成UNI隧道状态请求消息,用于请求光控制器将所述UNI隧道变化后的第二状态的信息及时通告给所述IP控制器,实现所述IP控制器实时获知所述UNI隧道最新的状态信息。The IP controller generates a UNI tunnel status request message for "subscribing" the status of the UNI tunnel to the light controller. "Subscription" means that when the state of the UNI tunnel changes (for example, the state of the UNI tunnel changes from reachable to unreachable, or the state of the UNI tunnel changes from unreachable to reachable), that is, the UNI tunnel When the state changes from the first state to the second state, the IP controller requests the light controller to send information about the changed second state of the UNI tunnel to the IP controller. That is to say, the IP controller generates a UNI tunnel state request message, which is used to request the light controller to notify the IP controller of the changed second state information of the UNI tunnel in time, so as to implement the IP controller Get the latest status information of the UNI tunnel in real time.
其中,所述UNI隧道的状态包括UNI隧道可达和UNI隧道不可达。所述UNI隧道可达,表示所述UNI隧道连通,可以传输业务数据;UNI隧道不可达,表示所述UNI隧道不能连通,不能传输业务数据。一般情况下,实际应用场景中,多条UNI隧道共享同一个光网络设备上的端口,当其中一条UNI隧道利用该端口建立连接后,其他UNI隧道则不能在该端口上建立连接,即其他UNI隧道不可达。还有,当一个光网络设备故障时,利用该光网络设备上的端口建立连接的所有UNI隧道都不可达。Wherein, the status of the UNI tunnel includes that the UNI tunnel is reachable and the UNI tunnel is not reachable. The UNI tunnel is reachable, indicating that the UNI tunnel is connected and can transmit service data; the UNI tunnel is unreachable, indicating that the UNI tunnel cannot be connected and cannot transmit service data. Generally, in actual application scenarios, multiple UNI tunnels share the same port on the optical network device. When one of the UNI tunnels uses this port to establish a connection, other UNI tunnels cannot establish a connection on this port, that is, other UNI The tunnel is unreachable. In addition, when an optical network device fails, all UNI tunnels connected by ports on the optical network device are unreachable.
本发明实施例中,以所述第一状态为UNI隧道可达,所述第二状态为UNI状态不可达为例进行说明。所述第一状态为UNI隧道不可达,所述第二状态为UNI状态可达的实现方法与之类似,这里不再赘述。In the embodiment of the present invention, description will be made by taking the first state that the UNI tunnel is reachable and the second state that the UNI state is unreachable as an example. The first state is that the UNI tunnel is unreachable, and the second state is that the UNI state is reachable. The implementation method is similar and will not be repeated here.
IP控制器将生成的所述UNI隧道状态请求消息发送至光控制器。光控制器接收到所述UNI隧道状态请求消息后,解析到所述UNI隧道状态请求消息中的UNI隧道状态请求标识,即可获知所述IP控制器向所述光控制器“订阅”UNI隧道的状态,则当UNI隧道的状态由第一状态改变为第二状态时,向所述IP控制器发送所述UNI隧道的改变后的第二状态的信息。The IP controller sends the generated UNI tunnel status request message to the light controller. After receiving the UNI tunnel status request message, the optical controller parses the UNI tunnel status request identifier in the UNI tunnel status request message, and then learns that the IP controller "subscribes" the UNI tunnel to the optical controller If the state of the UNI tunnel is changed from the first state to the second state, the information of the changed second state of the UNI tunnel is sent to the IP controller.
具体实现时,所述网络协议IP控制器生成的所述UNI隧道状态请求消息为路径计算单元通信协议(Path Computation Element Communication Protocol,PCEP)中的open消息,所述open消息包括选项Optional字段,所述Optional字段携带有所述UNI隧道状态请求标识。During specific implementation, the UNI tunnel state request message generated by the network protocol IP controller is an open message in the Path Computation Element Communication Protocol (Path Computation Element Communication Protocol, PCEP), and the open message includes an option Optional field, the The Optional field carries the UNI tunnel status request identifier.
所述UNI隧道状态请求消息为PCEP协议中的标准RFC5540定义的Open消息,所述Open消息的格式如图3所示。其中,Ver指示所述Open消息所采用的PCEP的版本号。Flags指示所述Open消息的标志位。Keep alive指示IP控制器发送两个相邻的所述Open消息之间的最大时间间隔。Dead timer指示到达所述Dead timer所指定的时间后,没有收到任何Open消息,表示发送所述Open消息的PCEP会话结束,光控制器将所述光控制器和IP控制器之间的PCEP会话状态置为down。SID指示所述Open消息所属的PCEP会话ID。The UNI tunnel status request message is an Open message defined by the standard RFC5540 in the PCEP protocol, and the format of the Open message is shown in FIG. 3 . Wherein, Ver indicates the version number of the PCEP adopted by the Open message. Flags indicates flag bits of the Open message. Keep alive instructs the IP controller to send the maximum time interval between two adjacent Open messages. Dead timer indicates that after the time specified by the Dead timer is reached, no Open message is received, indicating that the PCEP session sending the Open message ends, and the optical controller transfers the PCEP session between the optical controller and the IP controller The state is set to down. The SID indicates the PCEP session ID to which the Open message belongs.
其中,所述Optional字段携带有所述UNI隧道状态请求标识。所述Optional字段包括类型Type、长度Length和值value,所述Type携带有类型值,所述类型值用于指示所述Optional字段的类型为表征是否请求所述UNI隧道的改变后的第二状态的信息,所述Length指示所述Optional字段的长度,所述Value中的标志位Flags携带有所述UNI隧道状态请求标识,指示当所述UNI隧道的状态由第一状态改变为第二状态时,请求所述UNI隧道的改变后的第二状态的信息。具体设置时,Type的值为30,Length的值为4。Wherein, the Optional field carries the UNI tunnel status request identifier. The Optional field includes a type Type, a length Length, and a value value, the Type carries a type value, and the type value is used to indicate that the type of the Optional field is to indicate whether to request the changed second state of the UNI tunnel information, the Length indicates the length of the Optional field, and the Flags in the Value carry the UNI tunnel status request identifier, indicating that when the status of the UNI tunnel is changed from the first status to the second status , requesting information about the changed second state of the UNI tunnel. When setting specifically, the value of Type is 30, and the value of Length is 4.
所述Optional字段的格式如图4所示,Type占用2个字节;Length占用2个字节;Reserved占用2个字节,是保留字段;Flags占用2个字节,Flags中的N位,表示是否“订阅”UNI隧道的改变后的第二状态的信息。所述Reserved和Flags共同组成所述Optional字段的Value。实际应用场景中,设置Flags中的N位为1时,表示“订阅”所述UNI隧道的可达性,设置Flags中的N位为0时,表示不“订阅”所述UNI隧道的可达性。Type的类型值和Flags中的N位的值共同指示是否“订阅”UNI隧道的改变后的第二状态的信息,即所述UNI隧道的可达性。The format of the Optional field is as shown in Figure 4, Type occupies 2 bytes; Length occupies 2 bytes; Reserved occupies 2 bytes, which is a reserved field; Flags occupies 2 bytes, and N bits in Flags, Information indicating whether to "subscribe" to the changed second state of the UNI tunnel. The Reserved and Flags together form the Value of the Optional field. In actual application scenarios, when the N bit in Flags is set to 1, it means "subscribe" to the reachability of the UNI tunnel, and when the N bit in Flags is set to 0, it means not to "subscribe" to the reachability of the UNI tunnel sex. The type value of Type and the N-bit value in Flags jointly indicate whether to "subscribe" to the information of the changed second state of the UNI tunnel, that is, the reachability of the UNI tunnel.
本发明提供的实施例中,定义了一个状态请求消息,IP控制器生成所述UNI隧道状态请求消息发送至光控制器,请求“订阅”UNI隧道的可达性。在具体实施过程中,所述方法还包括:In the embodiment provided by the present invention, a status request message is defined, and the IP controller generates the UNI tunnel status request message and sends it to the light controller, requesting to "subscribe" to the reachability of the UNI tunnel. In the specific implementation process, the method also includes:
所述IP控制器接收所述光控制器发送的UNI隧道状态通告消息,所述UNI隧道状态通告消息携带有UNI隧道状态通告标识、所述UNI隧道的标识以及所述UNI隧道的状态,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;The IP controller receives the UNI tunnel status notification message sent by the optical controller, the UNI tunnel status notification message carries the UNI tunnel status notification identifier, the UNI tunnel identifier and the status of the UNI tunnel, the The UNI tunnel status notification identifier is used to indicate that the type of the UNI tunnel status notification message is information that notifies the changed second state of the UNI tunnel;
所述IP控制器解析所述UNI隧道状态通告消息获得所述第二状态的信息;The IP controller parses the UNI tunnel state notification message to obtain information of the second state;
所述IP控制器利用所述第二状态的信息更新所述UNI隧道的标识所对应的第一状态的信息;The IP controller uses the information of the second state to update the information of the first state corresponding to the identifier of the UNI tunnel;
所述IP控制器根据所述UNI隧道更新后的第二状态的信息获取虚网络拓扑VNT链路的可达性,所述VNT链路与所述UNI隧道绑定;The IP controller obtains the reachability of the virtual network topology VNT link according to the updated information of the second state of the UNI tunnel, and the VNT link is bound to the UNI tunnel;
所述IP控制器根据所述VNT链路的可达性计算业务数据流的传输路径。The IP controller calculates the transmission path of the service data flow according to the reachability of the VNT link.
IP控制器向光控制器“订阅”了所述当所述UNI隧道的状态,当所述UNI隧道的状态从第一状态改变为第二状态时,所述IP控制器接收到所述光控制器发送的所述UNI隧道状态通告消息,所述UNI隧道状态通告消息用于通告所述UNI隧道改变后的第二状态的信息。所述UNI隧道状态通告消息携带有UNI隧道状态通告标识,用于表示所述状态通告信息的类型为通告所述UNI隧道改变后的第二状态的信息;所述UNI隧道状态通告消息还携带有UNI隧道的标识,用于识别所述UNI隧道;所述UNI隧道状态通告消息还携带有第二状态的信息,用于指示所述UNI隧道改变后的状态。The IP controller "subscribes" the state of the UNI tunnel to the light controller, and when the state of the UNI tunnel changes from the first state to the second state, the IP controller receives the light control The UNI tunnel status notification message sent by the device, the UNI tunnel status notification message is used to notify the changed second state information of the UNI tunnel. The UNI tunnel status notification message carries a UNI tunnel status notification identifier, which is used to indicate that the type of the status notification information is information that notifies the second state of the UNI tunnel after it has been changed; the UNI tunnel status notification message also carries The identifier of the UNI tunnel is used to identify the UNI tunnel; the UNI tunnel state notification message also carries second state information, which is used to indicate the changed state of the UNI tunnel.
所述IP控制器接收到所述UNI隧道状态通告消息后,从所述UNI隧道状态通告消息中解析得到所述UNI隧道改变后的第二状态的信息,用所述第二状态的信息更新所述UNI隧道原有的第一状态的信息。所述IP控制器根据所述UNI隧道改变后的第二状态的信息获取VNT链路的可达性,据所述VNT链路的可达性计算业务数据流的传输路径。After the IP controller receives the UNI tunnel state notification message, it parses the UNI tunnel state notification message to obtain information about the changed second state of the UNI tunnel, and uses the information about the second state to update all Describes the information of the original first state of the UNI tunnel. The IP controller obtains the reachability of the VNT link according to the changed second state information of the UNI tunnel, and calculates the transmission path of the service data flow according to the reachability of the VNT link.
由此可知,当所述UNI隧道的状态由第一状态改变为第二状态时,光控制器立即生成所述UNI隧道状态通告消息发送至所述IP控制器。IP控制器可以及时获知所述UNI隧道改变后的第二状态的信息。IP控制器可以根据所述UNI隧道改变后的第二状态的信息,获知与所述UNI隧道绑定的VNT链路的可达性,再根据所述VNT链路的可达性计算业务数据流的传输路径。当所述UNI隧道第二状态的信息为可达时,与所述UNI隧道绑定的VNT链路也可达,则IP控制器计算业务数据流的传输路径时可以经由所述VNT链路;当所述UNI隧道第二状态的信息为不可达时,与所述UNI隧道绑定的VNT链路也不可达,则IP控制器计算业务数据流的传输路径时不可以经由所述VNT链路,计算出的业务数据流的传输路径避开所述VNT链路,获得有效的业务传输路径。这样,所述IP控制器在计算业务数据流的传输路径时,不会出现由于VNT链路绑定的UNI隧道不可达,需要反复计算才能获得有效的业务数据流的传输路径的问题,既可以降低IP控制器计算业务数据流传输路径的复杂度,又可以缩短计算业务数据流传输路径的时间。It can be seen that, when the state of the UNI tunnel changes from the first state to the second state, the optical controller immediately generates the UNI tunnel state notification message and sends it to the IP controller. The IP controller can learn the information of the changed second state of the UNI tunnel in time. The IP controller can learn the reachability of the VNT link bound to the UNI tunnel according to the changed second state information of the UNI tunnel, and then calculate the service data flow according to the reachability of the VNT link transmission path. When the information of the second state of the UNI tunnel is reachable, the VNT link bound to the UNI tunnel is also reachable, and the IP controller can pass through the VNT link when calculating the transmission path of the service data flow; When the information of the second state of the UNI tunnel is unreachable, the VNT link bound to the UNI tunnel is also unreachable, and the IP controller cannot pass through the VNT link when calculating the transmission path of the service data flow , the calculated transmission path of the service data flow avoids the VNT link to obtain an effective service transmission path. In this way, when the IP controller calculates the transmission path of the service data flow, the problem that the UNI tunnel bound to the VNT link is unreachable and needs repeated calculations to obtain an effective transmission path of the service data flow will not occur. The complexity of calculating the transmission path of the service data flow by the IP controller is reduced, and the time for calculating the transmission path of the service data flow can be shortened.
举例说明:在实际应用场景中,假设当所述UNI隧道的状态从可达改变为不可达时,光控制器生成所述UNI隧道状态通告消息,所述UNI隧道状态通告信息用于通告所述UNI隧道的状态为不可达。当IP控制器接收到所述UNI隧道状态通告信息时,获知所述UNI隧道的状态为不可达,即与所述UNI隧道绑定的VNT链路也不可达。则所述IP控制器计算获得的业务数据流传输路径不经由所述VNT链路。For example: in a practical application scenario, it is assumed that when the status of the UNI tunnel changes from reachable to unreachable, the optical controller generates the UNI tunnel status notification message, and the UNI tunnel status notification information is used to notify the The status of the UNI tunnel is unreachable. When the IP controller receives the UNI tunnel state notification information, it learns that the state of the UNI tunnel is unreachable, that is, the VNT link bound to the UNI tunnel is also unreachable. Then, the service data flow transmission path calculated and obtained by the IP controller does not pass through the VNT link.
图5为本发明实施例提供的通告UNI隧道状态的方法流程图,所述方法包括:FIG. 5 is a flowchart of a method for announcing the status of a UNI tunnel provided by an embodiment of the present invention. The method includes:
501:光控制器接收IP控制器发送的UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当所述UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息。501: The optical controller receives the UNI tunnel status request message sent by the IP controller, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate that when the status of the UNI tunnel is determined by When the first state is changed to the second state, requesting to send information about the changed second state of the UNI tunnel.
光控制器接收IP控制器发送的UNI隧道状态请求消息,解析所述UNI隧道状态请求消息,获知所述IP控制器向所述光控制器“订阅”所述UNI隧道改变后的状态。其中,所述IP控制器生成所述UNI隧道状态请求消息的格式,与图2所示的请求UNI隧道的状态的方法中的描述类似,参考图2所示的方法中的描述,这里不再赘述。The optical controller receives the UNI tunnel state request message sent by the IP controller, parses the UNI tunnel state request message, and learns that the IP controller "subscribes" the changed state of the UNI tunnel to the optical controller. Wherein, the format of the UNI tunnel status request message generated by the IP controller is similar to the description in the method for requesting the status of the UNI tunnel shown in FIG. 2 . Refer to the description in the method shown in FIG. repeat.
502:当所述UNI隧道的状态由第一状态改变为第二状态时,所述光控制器获取所述UNI隧道的标识和第二状态的信息。502: When the state of the UNI tunnel is changed from the first state to the second state, the light controller obtains an identifier of the UNI tunnel and information of the second state.
当所述UNI隧道的状态由第一状态改变为第二状态时,由于所述IP控制器“订阅”了所述UNI隧道的状态,则所述光控制器获取所述UNI隧道改变后的第二状态的信息以及所述UNI隧道的标识。所述UNI隧道由第一状态改变为第二状态,可以是由可达状态改变为不可达状态,也可以是由不可达状态改变为可达状态。下面以所述UNI隧道由可达状态改变为不可达状态为例进行说明,所述UNI隧道由不可达状态改变为可达状态之类似,这里不再赘述。When the state of the UNI tunnel is changed from the first state to the second state, since the IP controller "subscribes" to the state of the UNI tunnel, the light controller obtains the first state after the change of the UNI tunnel. Two state information and the identifier of the UNI tunnel. The change of the UNI tunnel from the first state to the second state may be from the reachable state to the unreachable state, or from the unreachable state to the reachable state. In the following, the UNI tunnel is changed from the reachable state to the unreachable state as an example. The change of the UNI tunnel from the unreachable state to the reachable state is similar, and will not be repeated here.
在具体的实施例中,所述光控制器获取所述UNI隧道的标识和第二状态的信息包括:In a specific embodiment, the light controller obtaining the identification of the UNI tunnel and the information of the second state includes:
所述光控制器接收第一光网络设备发送的所述第一光网络设备与第二光网络设备的连接变化信息;The optical controller receives connection change information between the first optical network device and the second optical network device sent by the first optical network device;
所述光控制器根据所述连接变化信息获得所述第一光网络设备与第二光网络设备之间建立的所述UNI隧道的标识,以及所述UNI隧道从所述第一状态改变为所述第二状态后的所述第二状态的信息。The optical controller obtains the identifier of the UNI tunnel established between the first optical network device and the second optical network device according to the connection change information, and the UNI tunnel changes from the first state to the Information about the second state after the second state.
当第二光网络设备上的端口故障时,第一光网络设备和第二光网络设备上利用所述端口进行连接的UNI隧道连接故障;或者,当所述第二光网络设备故障时,第一光网络设备与第二光网络设备之间的所有UNI隧道都连接故障。则连接故障的UNI隧道的状态由可达状态改变为不可达状态。此时,第一网络设备向光控制器发送连接变化信息。光控制器接收到所述连接变化信息,根据所述连接变化信息获知UNI隧道的标识,以及所述UNI隧道由第一状态改变为第二状态后所述第二状态的信息。When the port on the second optical network device fails, the UNI tunnel connection between the first optical network device and the second optical network device using the port fails; or, when the second optical network device fails, the first optical network device All UNI tunnels between the first optical network device and the second optical network device are faulty. Then the state of the UNI tunnel with connection failure is changed from the reachable state to the unreachable state. At this time, the first network device sends connection change information to the light controller. The light controller receives the connection change information, obtains the identifier of the UNI tunnel and the information of the second state after the UNI tunnel changes from the first state to the second state according to the connection change information.
实际应用中,第一光网络设备与光控制器之间建立了内部网关协议(InteriorGateway Protocol,IGP)或者PCEP协议。所述第一光网络设备利用所述IGP协议或者PCEP协议,向所述光控制器发送所述连接变化信息。In practical applications, an Interior Gateway Protocol (InteriorGateway Protocol, IGP) or a PCEP protocol is established between the first optical network device and the optical controller. The first optical network device sends the connection change information to the optical controller by using the IGP protocol or the PCEP protocol.
503:所述光控制器生成所述UNI隧道状态通告消息,所述UNI隧道状态通告消息包括:UNI隧道状态通告标识、所述UNI隧道的标识和所述第二状态的信息,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息。503: The optical controller generates the UNI tunnel status notification message, the UNI tunnel status notification message includes: a UNI tunnel status notification identifier, an identifier of the UNI tunnel, and information of the second state, and the UNI tunnel The status notification identifier is used to indicate that the type of the UNI tunnel status notification message is information for notifying the changed second state of the UNI tunnel.
504:所述光控制器将所述UNI隧道状态通告消息发送至所述IP控制器。504: The optical controller sends the UNI tunnel status notification message to the IP controller.
所述光控制器获知UNI隧道改变后的第二状态的信息,以及所述UNI隧道的标识后,生成所述UNI隧道状态通告信息,向“订阅”了所述UNI隧道状态的IP控制器发送所述UNI隧道状态通告信息,通告所述UNI隧道改变后的第二状态的信息。After the optical controller learns the information of the second state after the UNI tunnel changes and the identifier of the UNI tunnel, it generates the UNI tunnel status notification information and sends it to the IP controller that has "subscribed" to the UNI tunnel status. The UNI tunnel state announcement information is to announce information about the changed second state of the UNI tunnel.
在具体实施例中,所述状态通告信息为路径计算通告(Path ComputationNotification,PCNtf)消息,所述PCNtf消息包括通告类型NT字段、通告值NV字段和选项Optional字段,所述PCNtf消息包括通述NT字段携带有第一类型值。所述第一类型值指示所述PCNtf消息的类型为通告所述UNI隧道改变后的所述第二状态的信息,所述NV字段指示所述PCNtf消息通告的所述第二状态的信息,所述Optional字段携带有所述UNI隧道的标识。In a specific embodiment, the state notification information is a Path Computation Notification (PCNtf) message, the PCNtf message includes a notification type NT field, a notification value NV field and an option Optional field, and the PCNtf message includes the notification NT Fields carry values of the first type. The first type value indicates that the type of the PCNtf message is the information of the second state after the change of the UNI tunnel is notified, and the NV field indicates the information of the second state notified by the PCNtf message, so The Optional field carries the identifier of the UNI tunnel.
所述光控制器利用所述UNI隧道的标识和第二状态的信息生成的所述UNI隧道状态通告消息为RFC标准中定义的PCNtf消息,所述PCNtf消息包括通告类型NT字段、通告值NV字段和Optional字段,所述NT字段指示所述PCNtf消息的类型,所述NV字段指示所述PCNtf消息通告的所述第二状态的信息,所述Optional字段携带有所述UNI隧道的标识。The UNI tunnel state notification message generated by the optical controller using the identifier of the UNI tunnel and the information of the second state is a PCNtf message defined in the RFC standard, and the PCNtf message includes a notification type NT field and a notification value NV field and an Optional field, the NT field indicates the type of the PCNtf message, the NV field indicates the information of the second state notified by the PCNtf message, and the Optional field carries the identifier of the UNI tunnel.
所述PCNtf消息的格式如图6所示,Reserved为所述PCNtf消息中的保留字段。Flag指示所述PCNtf消息的标志位。NT字段占用2个字节,指示所述PCNtf消息的类型为通告所述UNI隧道改变后的第二状态的信息。NV字段占用2个字节,指示所述PCNtf消息通告的所述第二状态的信息。一个所述PCNtf消息通告一条UNI隧道改变后的第二状态的信息。具体应用场景中,NT字段的值设置为101,定义NV字段的值为1时,表示所述UNI隧道可达,NV字段的值为2时,表示所述UNI隧道不可达。The format of the PCNtf message is shown in FIG. 6 , and Reserved is a reserved field in the PCNtf message. Flag indicates the flag bit of the PCNtf message. The NT field occupies 2 bytes, and indicates that the type of the PCNtf message is information for notifying the changed second state of the UNI tunnel. The NV field occupies 2 bytes and indicates the information of the second state notified by the PCNtf message. A PCNtf message notifies information of a changed second state of the UNI tunnel. In a specific application scenario, the value of the NT field is set to 101, and it is defined that when the value of the NV field is 1, it means that the UNI tunnel is reachable, and when the value of the NV field is 2, it means that the UNI tunnel is unreachable.
其中,所述Optional字段携带有所述UNI隧道的标识。所述Optional字段的格式如图7所示。所述Optional字段包括类型Type、长度Length和值value,所述Type携带有第二类型值,所述第二类型值指示所述Optional字段的类型为表征所述UNI隧道的标识,所述Length指示所述Optional字段的长度,所述value指示所述UNI隧道的标识,所述value包括所述UNI隧道的源地址IPv4 Tunnel Sender Address,标签交换路径LSP ID,隧道TunnelID,扩展隧道Extended Tunnel ID以及目的地址IPv4 Tunnel Endpoint Address。Wherein, the Optional field carries the identifier of the UNI tunnel. The format of the Optional field is shown in FIG. 7 . The Optional field includes a type Type, a length Length, and a value value, the Type carries a second type value, and the second type value indicates that the type of the Optional field is an identifier that characterizes the UNI tunnel, and the Length indicates The length of the Optional field, the value indicates the identifier of the UNI tunnel, and the value includes the source address IPv4 Tunnel Sender Address of the UNI tunnel, the label switching path LSP ID, the tunnel TunnelID, the extended tunnel Extended Tunnel ID and the destination Address IPv4 Tunnel Endpoint Address.
具体应用场景中,Type的值设置为18,Length的值设置为16。所述Optional字段中,IPv4 Tunnel Sender Address,LSP ID,Tunnel ID,Extended Tunnel ID以及IPv4Tunnel Endpoint Address共同组成了所述UNI隧道的标识。In specific application scenarios, the value of Type is set to 18, and the value of Length is set to 16. In the Optional field, IPv4 Tunnel Sender Address, LSP ID, Tunnel ID, Extended Tunnel ID and IPv4Tunnel Endpoint Address together constitute the identifier of the UNI tunnel.
光控制器将所生成的所述UNI隧道状态通告消息发送至所述IP控制器,所述IP控制器根据所述UNI隧道状态通告消息获知所述UNI隧道改变后的第二状态的信息。所述IP控制器根据所述UNI隧道改变后的第二状态的信息,获知与所述UNI隧道绑定的VNT链路的可达性,再根据所述VNT链路的可达性计算所述业务流数据的传输路径。此处与图2所示的方法中的描述类似,参考图2所示的方法中的描述,这里不再赘述。The optical controller sends the generated UNI tunnel state notification message to the IP controller, and the IP controller obtains information about the changed second state of the UNI tunnel according to the UNI tunnel state notification message. The IP controller learns the reachability of the VNT link bound to the UNI tunnel according to the changed second state information of the UNI tunnel, and calculates the VNT link according to the reachability of the VNT link. The transmission path of service flow data. This is similar to the description in the method shown in FIG. 2 , refer to the description in the method shown in FIG. 2 , and details are not repeated here.
由上述内容可知,本发明有如下有益效果:As can be seen from the foregoing, the present invention has the following beneficial effects:
IP控制器向光控制器发送UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态,IP控制器请求光控制器发送所述UNI隧道的改变后的第二状态的信息。当所述UNI隧道的状态由第一状态改变为第二状态时,光控制器将所述UNI隧道的改变后的第二状态的信息发送至IP控制器,IP控制器可以及时更新所述UNI隧道改变后的第二状态的信息。IP控制器可以获知所述UNI隧道更新后的状态,则IP控制器在计算业务数据流的传输路径时,就可以获知与所述UNI隧道绑定的VNT链路的可达性,删除不可达的VNT链路,计算得到的业务数据流的传输路径可用。降低IP控制器计算业务数据流传输路径的复杂度,缩短计算业务数据流传输路径的时间。The IP controller sends a UNI tunnel state request message to the light controller, and the UNI tunnel state request message carries a UNI tunnel state request flag, and the UNI tunnel state request flag is used to indicate that when the state of the UNI tunnel changes from the first state to In the second state, the IP controller requests the light controller to send information of the changed second state of the UNI tunnel. When the state of the UNI tunnel is changed from the first state to the second state, the optical controller sends the information of the changed second state of the UNI tunnel to the IP controller, and the IP controller can update the UNI in time. Information about the second state of the tunnel after it is changed. The IP controller can know the updated state of the UNI tunnel, and then the IP controller can know the reachability of the VNT link bound to the UNI tunnel when calculating the transmission path of the service data flow, and delete the unreachable The transmission path of the calculated service data flow is available for the VNT link. Reduce the complexity of calculating the transmission path of the service data flow by the IP controller, and shorten the time for calculating the transmission path of the service data flow.
图8为本发明实施例提供的一种请求UNI隧道状态的IP控制器800结构示意图,该IP控制器800可以为图2或图5所示的实施例中的IP控制器,所述IP控制器800包括:FIG. 8 is a schematic structural diagram of an IP controller 800 requesting a UNI tunnel state provided by an embodiment of the present invention. The IP controller 800 may be the IP controller in the embodiment shown in FIG. 2 or FIG. device 800 includes:
生成单元801,用于生成UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当所述UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息。The generating unit 801 is configured to generate a UNI tunnel status request message, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate that when the status of the UNI tunnel changes from the first status When it is in the second state, request to send the information of the changed second state of the UNI tunnel.
发送单元802,用于将所述生成单元801生成的所述UNI隧道状态请求消息发送至光控制器。The sending unit 802 is configured to send the UNI tunnel status request message generated by the generating unit 801 to the light controller.
可选的,所述UNI隧道状态请求消息为路径计算单元通信协议PCEP中的open消息,所述open消息包括选项Optional字段,所述Optional字段携带有所述UNI隧道状态请求标识。Optionally, the UNI tunnel state request message is an open message in the path computation element communication protocol PCEP, and the open message includes an Optional field, and the Optional field carries the UNI tunnel state request identifier.
其中,所述Optional字段包括类型Type、长度Length和值value,所述Type携带有类型值,所述类型值用于指示所述Optional字段的类型为表征是否请求所述UNI隧道的改变后的第二状态的信息,所述Length指示所述Optional字段的长度,所述Value中的标志位flags携带有所述UNI隧道状态请求标识,指示当所述UNI隧道的状态由第一状态改变为第二状态时,请求所述UNI隧道的改变后的第二状态的信息。Wherein, the Optional field includes a type Type, a length Length, and a value value, and the Type carries a type value, and the type value is used to indicate that the type of the Optional field is the changed No. Two-state information, the Length indicates the length of the Optional field, and the flags in the Value carry the UNI tunnel state request identifier, indicating that when the state of the UNI tunnel changes from the first state to the second state, request information about the changed second state of the UNI tunnel.
可选的,所述IP控制器还包括:Optionally, the IP controller also includes:
接收单元,用于接收所述光控制器发送的UNI隧道状态通告消息,所述UNI隧道状态通告消息携带有UNI隧道状态通告标识、所述UNI隧道的标识以及所述UNI隧道的状态,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;a receiving unit, configured to receive a UNI tunnel status notification message sent by the optical controller, the UNI tunnel status notification message carrying a UNI tunnel status notification identifier, an identifier of the UNI tunnel, and a status of the UNI tunnel, the The UNI tunnel status notification identifier is used to indicate that the type of the UNI tunnel status notification message is information that notifies the changed second state of the UNI tunnel;
解析单元,用于解析所述接收单元接收的UNI隧道状态通告消息获得所述第二状态的信息;A parsing unit, configured to parse the UNI tunnel state notification message received by the receiving unit to obtain information about the second state;
更新单元,用于利用所述第二状态的信息更新所述UNI隧道的标识所对应的第一状态信息;An updating unit, configured to use the information of the second state to update the first state information corresponding to the identifier of the UNI tunnel;
获取单元,用于根据所述UNI隧道更新后的第二状态的信息获取虚网络拓扑VNT链路的可达性,所述VNT链路与所述UNI隧道绑定;An acquisition unit, configured to acquire the reachability of a virtual network topology VNT link according to the information of the updated second state of the UNI tunnel, and the VNT link is bound to the UNI tunnel;
路径计算单元,用于根据所述VNT链路的可达性计算业务数据流的传输路径。A path calculation unit, configured to calculate the transmission path of the service data flow according to the reachability of the VNT link.
图8所示的请求UNI隧道状态的IP控制器是与图2所示的请求UNI隧道状态的方法所对应的IP控制器,参考图2所示的请求UNI隧道状态的方法中的技术描述,这里不再赘述。The IP controller of requesting the UNI tunnel state shown in Figure 8 is the IP controller corresponding to the method for requesting the UNI tunnel state shown in Figure 2, with reference to the technical description in the method for requesting the UNI tunnel state shown in Figure 2, I won't go into details here.
图9为本发明实施例提供的通告UNI隧道的状态的光控制器900结构示意图,该光控制器900可以为图2或图5所示的实施例中的光控制器,所述光控制器900包括:FIG. 9 is a schematic structural diagram of a light controller 900 for announcing the status of a UNI tunnel provided by an embodiment of the present invention. The light controller 900 may be the light controller in the embodiment shown in FIG. 2 or FIG. 5 , and the light controller 900 includes:
接收单元901,用于接收网际互联协议IP控制器发送的UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息。The receiving unit 901 is configured to receive a UNI tunnel status request message sent by an Internet Protocol IP controller, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate when the UNI tunnel When the state is changed from the first state to the second state, it is requested to send the information of the changed second state of the UNI tunnel.
获取单元902,用于当所述UNI隧道的状态由第一状态改变为第二状态时,获取所述UNI隧道的标识和第二状态的信息。The obtaining unit 902 is configured to obtain the identifier of the UNI tunnel and information of the second state when the state of the UNI tunnel changes from the first state to the second state.
生成单元903,用于生成所述UNI隧道状态通告消息,所述UNI隧道状态通告消息包括:UNI隧道状态通告标识、所述UNI隧道的标识和所述第二状态的信息,所述状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息。A generating unit 903, configured to generate the UNI tunnel status notification message, the UNI tunnel status notification message including: a UNI tunnel status notification identifier, the UNI tunnel identifier and information of the second state, the status notification identifier It is used to indicate that the type of the UNI tunnel state notification message is information for notifying the changed second state of the UNI tunnel.
发送单元904,用于将所述UNI隧道状态通告消息发送至所述IP控制器。The sending unit 904 is configured to send the UNI tunnel status notification message to the IP controller.
可选的,所述UNI隧道状态通告信息为路径计算通告PCNtf消息,所述PCNtf消息包括通告类型NT字段、通告值NV字段和选项Optional字段,所述NT字段携带有第一类型值。所述第一类型值指示所述PCNtf消息的类型为通告所述UNI隧道改变后的所述第二状态的信息,所述NV字段指示所述PCNtf消息通告的所述第二状态的信息,所述Optional字段携带有所述UNI隧道的标识。Optionally, the UNI tunnel state notification information is a path computation notification PCNtf message, and the PCNtf message includes a notification type NT field, a notification value NV field and an optional field, and the NT field carries a first type value. The first type value indicates that the type of the PCNtf message is the information of the second state after the change of the UNI tunnel is notified, and the NV field indicates the information of the second state notified by the PCNtf message, so The Optional field carries the identifier of the UNI tunnel.
其中,所述Optional字段包括类型Type、长度Length和值value,所述Type携带有第二类型值,所述第二类型值指示所述Optional字段的类型为表征所述UNI隧道的标识,所述Length指示所述Optional字段的长度,所述value指示所述UNI隧道的标识,所述value包括所述UNI隧道的源地址IPv4 Tunnel Sender Address,标签交换路径LSP ID,隧道TunnelID,扩展隧道Extended Tunnel ID以及目的地址IPv4 Tunnel Endpoint Address。Wherein, the Optional field includes a type Type, a length Length, and a value value, and the Type carries a second type value, and the second type value indicates that the type of the Optional field is an identifier representing the UNI tunnel, and the Length indicates the length of the Optional field, the value indicates the identifier of the UNI tunnel, and the value includes the source address IPv4 Tunnel Sender Address of the UNI tunnel, the label switched path LSP ID, the tunnel TunnelID, and the extended tunnel Extended Tunnel ID And the destination address IPv4 Tunnel Endpoint Address.
可选的,所述获取单元902包括:Optionally, the acquiring unit 902 includes:
接收子单元,用于接收第一光网络设备发送的所述第一光网络设备与第二光网络设备的连接变化信息;The receiving subunit is configured to receive connection change information between the first optical network device and the second optical network device sent by the first optical network device;
信息获取子单元,用于根据所述连接变化信息获得所述第一光网络设备与第二光网络设备之间建立的所述UNI隧道的标识,以及所述UNI隧道从所述第一状态改变为所述第二状态后的所述第二状态的信息。An information obtaining subunit, configured to obtain the identifier of the UNI tunnel established between the first optical network device and the second optical network device according to the connection change information, and the UNI tunnel changes from the first state is the information of the second state after the second state.
图9所示的通告UNI隧道状态的光控制器是与图5所示的通告UNI隧道状态的方法所对应的IP控制器,参考图5所示的请求UNI隧道状态的方法中的技术描述,这里不再赘述。The optical controller for announcing the UNI tunnel state shown in FIG. 9 is an IP controller corresponding to the method for announcing the UNI tunnel state shown in FIG. 5 . With reference to the technical description in the method for requesting the UNI tunnel state shown in FIG. 5 , I won't go into details here.
图10为本发明实施例提供的获得UNI隧道的状态的系统1000结构示意图,所述系统1000包括:FIG. 10 is a schematic structural diagram of a system 1000 for obtaining the status of a UNI tunnel provided by an embodiment of the present invention. The system 1000 includes:
图8所示的请求UNI隧道的状态的IP控制器1001,以及图9所示的通告UNI隧道的状态的光控制器1002。The IP controller 1001 shown in FIG. 8 requests the status of the UNI tunnel, and the light controller 1002 shown in FIG. 9 notifies the status of the UNI tunnel.
所述IP控制器1001为图8所示的IP控制器,参考图8对所述IP控制器的描述,这里不再赘述;所述光控制器1002为图9所示的光控制器,参考图9对所述光控制器的描述,这里不再赘述。The IP controller 1001 is the IP controller shown in FIG. 8 , referring to the description of the IP controller in FIG. The description of the light controller in FIG. 9 is omitted here.
图11为本发明实施例提供的请求UNI隧道的状态的IP控制器1100硬件结构示意图。该IP控制器1100可以为图2或图5所示的实施例中的IP控制器,所述IP控制器1100包括:FIG. 11 is a schematic diagram of a hardware structure of an IP controller 1100 that requests the status of a UNI tunnel provided by an embodiment of the present invention. The IP controller 1100 may be the IP controller in the embodiment shown in FIG. 2 or FIG. 5, and the IP controller 1100 includes:
存储器1101,发送器1102,以及分别与所述存储器1101和所述发送器1102相连的处理器1103。A memory 1101, a transmitter 1102, and a processor 1103 respectively connected to the memory 1101 and the transmitter 1102.
所述存储器1101用于存储程序指令,所述处理器1103用于从所述存储器1101调取所述程序指令执行以下操作:The memory 1101 is used to store program instructions, and the processor 1103 is used to call the program instructions from the memory 1101 to perform the following operations:
生成UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息;Generate a UNI tunnel status request message, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate that when the status of the UNI tunnel is changed from the first status to the second status, request to send Information about the changed second state of the UNI tunnel;
所述发送器1102,用于将所述处理器1103生成的所述UNI隧道状态请求消息发送至光控制器。The sender 1102 is configured to send the UNI tunnel status request message generated by the processor 1103 to the light controller.
可选的,所述UNI隧道状态请求消息为路径计算单元通信协议PCEP中的open消息,所述open消息包括选项Optional字段,所述Optional字段携带有所述UNI隧道状态请求标识。Optionally, the UNI tunnel state request message is an open message in the path computation element communication protocol PCEP, and the open message includes an Optional field, and the Optional field carries the UNI tunnel state request identifier.
其中,所述Optional字段包括类型Type、长度Length和值value,所述Type携带有类型值,所述类型值用于指示所述Optional字段的类型为表征是否请求所述UNI隧道的改变后的第二状态的信息,所述Length指示所述Optional字段的长度,所述Value中的标志位flags携带有所述UNI隧道状态请求标识,指示当所述UNI隧道的状态由第一状态改变为第二状态时,请求所述UNI隧道的改变后的第二状态的信息。Wherein, the Optional field includes a type Type, a length Length, and a value value, and the Type carries a type value, and the type value is used to indicate that the type of the Optional field is the changed No. Two-state information, the Length indicates the length of the Optional field, and the flags in the Value carry the UNI tunnel state request identifier, indicating that when the state of the UNI tunnel changes from the first state to the second state, request information about the changed second state of the UNI tunnel.
可选的,所述IP控制器还包括:Optionally, the IP controller also includes:
接收器,用于接收所述光控制器发送的UNI隧道状态通告消息,所述UNI隧道状态通告消息携带有UNI隧道状态通告标识、所述UNI隧道的标识以及所述UNI隧道的状态,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;a receiver, configured to receive a UNI tunnel status notification message sent by the optical controller, the UNI tunnel status notification message carrying a UNI tunnel status notification identifier, an identifier of the UNI tunnel, and a status of the UNI tunnel, the The UNI tunnel status notification identifier is used to indicate that the type of the UNI tunnel status notification message is information that notifies the changed second state of the UNI tunnel;
所述处理器1103,还用于执行以下操作:The processor 1103 is further configured to perform the following operations:
解析所述接收器接收的所述UNI隧道状态通告消息获得所述第二状态的信息;Analyzing the UNI tunnel status notification message received by the receiver to obtain information about the second status;
利用所述第二状态的信息更新所述UNI隧道的标识所对应的第一状态信息;Utilizing the information of the second state to update the first state information corresponding to the identifier of the UNI tunnel;
根据所述UNI隧道更新后的第二状态的信息获取虚网络拓扑VNT链路的可达性,所述VNT链路与所述UNI隧道绑定;Obtaining the reachability of a virtual network topology VNT link according to the information of the updated second state of the UNI tunnel, the VNT link is bound to the UNI tunnel;
根据所述VNT链路的可达性计算业务数据流的传输路径。Calculate the transmission path of the service data flow according to the reachability of the VNT link.
图11所示的请求UNI隧道的状态的IP控制器是与图2所示的请求UNI隧道的状态的方法所对应的IP控制器,参考图2所示的请求UNI隧道的状态的方法中的技术描述,这里不再赘述。The IP controller of the state of requesting the UNI tunnel shown in Figure 11 is the IP controller corresponding to the method for the state of requesting the UNI tunnel shown in Figure 2, referring to the method for requesting the state of the UNI tunnel shown in Figure 2 The technical description will not be repeated here.
图12为本发明实施例提供的通告UNI隧道的状态的光控制器1200硬件结构示意图,该光控制器1200可以为图2或图5所示的实施例中的光控制器,所述光控制器1200包括:FIG. 12 is a schematic diagram of the hardware structure of a light controller 1200 for notifying the status of a UNI tunnel provided by an embodiment of the present invention. The light controller 1200 may be the light controller in the embodiment shown in FIG. 2 or FIG. 5 . Device 1200 includes:
存储器1201,接收器1202,发送器1203,以及分别与所述存储器1201、所述接收器1202和所述发送器1203相连的处理器1204。A memory 1201, a receiver 1202, a transmitter 1203, and a processor 1204 connected to the memory 1201, the receiver 1202, and the transmitter 1203 respectively.
所述接收器1202,用于接收网际互联协议IP控制器发送的UNI隧道状态请求消息,所述UNI隧道状态请求消息携带有UNI隧道状态请求标识,所述UNI隧道状态请求标识用于表示当UNI隧道的状态由第一状态改变为第二状态时,请求发送所述UNI隧道的改变后的第二状态的信息;The receiver 1202 is configured to receive a UNI tunnel status request message sent by an Internet Protocol IP controller, the UNI tunnel status request message carries a UNI tunnel status request identifier, and the UNI tunnel status request identifier is used to indicate when the UNI When the state of the tunnel is changed from the first state to the second state, requesting to send information of the changed second state of the UNI tunnel;
所述存储器1201用于存储程序指令,所述处理器1204用于从所述存储器1201中调取所述程序指令执行以下操作:The memory 1201 is used to store program instructions, and the processor 1204 is used to call the program instructions from the memory 1201 to perform the following operations:
当所述UNI隧道的状态由第一状态改变为第二状态时,获取所述UNI隧道的标识和第二状态的信息;When the state of the UNI tunnel is changed from the first state to the second state, obtain the identifier of the UNI tunnel and the information of the second state;
生成所述UNI隧道状态通告消息,所述UNI隧道状态通告消息包括:UNI隧道状态通告标识、所述UNI隧道的标识和所述第二状态的信息,所述UNI隧道状态通告标识用于表示所述UNI隧道状态通告消息的类型为通告所述UNI隧道改变后的第二状态的信息;Generating the UNI tunnel status notification message, the UNI tunnel status notification message includes: a UNI tunnel status notification identifier, the UNI tunnel identifier, and information about the second state, the UNI tunnel status notification identifier is used to represent the The type of the UNI tunnel state announcement message is information about the second state after the change of the UNI tunnel;
所述发送器1203,用于将所述处理器1204生成的所述UNI隧道状态通告消息发送至所述IP控制器。The sender 1203 is configured to send the UNI tunnel status notification message generated by the processor 1204 to the IP controller.
可选的,所述UNI隧道状态通告信息为路径计算通告PCNtf消息,所述PCNtf消息包括通告类型NT字段、通告值NV字段和选项Optional字段,所述NT字段携带有第一类型值。所述第一类型值指示所述PCNtf消息的类型为通告所述UNI隧道改变后的所述第二状态的信息,所述NV字段指示所述PCNtf消息通告的所述第二状态的信息,所述Optional字段携带有所述UNI隧道的标识。Optionally, the UNI tunnel state notification information is a path computation notification PCNtf message, and the PCNtf message includes a notification type NT field, a notification value NV field and an optional field, and the NT field carries a first type value. The first type value indicates that the type of the PCNtf message is the information of the second state after the change of the UNI tunnel is notified, and the NV field indicates the information of the second state notified by the PCNtf message, so The Optional field carries the identifier of the UNI tunnel.
其中,所述Optional字段包括类型Type、长度Length和值value,所述Type携带有第二类型值,所述第二类型值指示所述Optional字段的类型为表征所述UNI隧道的标识,所述Length指示所述Optional字段的长度,所述value指示所述UNI隧道的标识,所述value包括所述UNI隧道的源地址IPv4 Tunnel Sender Address,标签交换路径LSP ID,隧道TunnelID,扩展隧道Extended Tunnel ID以及目的地址IPv4 Tunnel Endpoint Address。Wherein, the Optional field includes a type Type, a length Length, and a value value, and the Type carries a second type value, and the second type value indicates that the type of the Optional field is an identifier representing the UNI tunnel, and the Length indicates the length of the Optional field, the value indicates the identifier of the UNI tunnel, and the value includes the source address IPv4 Tunnel Sender Address of the UNI tunnel, the label switched path LSP ID, the tunnel TunnelID, and the extended tunnel Extended Tunnel ID And the destination address IPv4 Tunnel Endpoint Address.
可选的,optional,
所述接收器1202,还用于接收第一光网络设备发送的所述第一光网络设备与第二光网络设备的连接变化信息;The receiver 1202 is further configured to receive connection change information between the first optical network device and the second optical network device sent by the first optical network device;
所述处理器1204,还用于执行以下操作:The processor 1204 is further configured to perform the following operations:
根据所述连接变化信息获得所述第一光网络设备与第二光网络设备之间建立的所述UNI隧道的标识,以及所述UNI隧道从所述第一状态改变为所述第二状态后的所述第二状态的信息。Obtaining the identifier of the UNI tunnel established between the first optical network device and the second optical network device according to the connection change information, and after the UNI tunnel changes from the first state to the second state Information about the second state of .
图12所示的通告UNI隧道的状态的光控制器是与图5所示的通告UNI隧道的状态的方法所对应的IP控制器,参考图5所示的请求UNI隧道的状态的方法中的技术描述,这里不再赘述。The optical controller for announcing the state of the UNI tunnel shown in Figure 12 is an IP controller corresponding to the method for announcing the state of the UNI tunnel shown in Figure 5, referring to the method for requesting the state of the UNI tunnel shown in Figure 5 The technical description will not be repeated here.
图13为本发明实施例提供的获得UNI隧道的状态的系统硬件结构示意图,所述系统包括:Figure 13 is a schematic diagram of the hardware structure of the system for obtaining the state of the UNI tunnel provided by the embodiment of the present invention, the system includes:
图11所示的请求UNI隧道的状态的IP控制器1301,以及图12所示的通告UNI隧道的状态的光控制器1302。The IP controller 1301 shown in FIG. 11 requests the status of the UNI tunnel, and the light controller 1302 shown in FIG. 12 notifies the status of the UNI tunnel.
所述IP控制器1301为图8所示的IP控制器,参考图8对所述IP控制器的描述,这里不再赘述;所述光控制器1302为图9所示的光控制器,参考图9对所述光控制器的描述,这里不再赘述。The IP controller 1301 is the IP controller shown in FIG. 8, refer to the description of the IP controller in FIG. The description of the light controller in FIG. 9 is omitted here.
本发明实施例中提到的第一状态中的“第一”只是用来做名字标识,并不代表顺序上的第一。该规则同样适用于“第二”等。The "first" in the first state mentioned in the embodiment of the present invention is only used for name identification, and does not represent the first in order. The same rule applies to "second" etc.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质可以是下述介质中的至少一种:只读存储器(Read-Only Memory,ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the execution includes: The steps of the above-mentioned method embodiments; and the aforementioned storage medium can be at least one of the following media: various media that can store program codes such as read-only memory (Read-Only Memory, ROM), RAM, magnetic disk or optical disk .
最后应说明的是:以上实施例仅用以示例性说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明及本发明带来的有益效果进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明权利要求的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention and the beneficial effects brought by the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art Those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the present invention Scope of Claims.
Claims (17)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510313946.8A CN105162705B (en) | 2015-06-09 | 2015-06-09 | Method, device and system for notifying UNI tunnel state |
| PCT/CN2016/084141 WO2016197836A1 (en) | 2015-06-09 | 2016-05-31 | Method, apparatus and system for announcing uni tunnel state |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510313946.8A CN105162705B (en) | 2015-06-09 | 2015-06-09 | Method, device and system for notifying UNI tunnel state |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105162705A CN105162705A (en) | 2015-12-16 |
| CN105162705B true CN105162705B (en) | 2018-09-21 |
Family
ID=54803464
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510313946.8A Expired - Fee Related CN105162705B (en) | 2015-06-09 | 2015-06-09 | Method, device and system for notifying UNI tunnel state |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105162705B (en) |
| WO (1) | WO2016197836A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105162705B (en) * | 2015-06-09 | 2018-09-21 | 华为技术有限公司 | Method, device and system for notifying UNI tunnel state |
| CN105764106B (en) * | 2016-02-03 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of update method of transmission path, terminal and system |
| CN109005473B (en) * | 2017-06-07 | 2021-08-03 | 中兴通讯股份有限公司 | Method, device and system for cooperatively selecting path |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101026524A (en) * | 2006-02-17 | 2007-08-29 | 三星电子株式会社 | Method and apparatus for providing status information of digital devices in a home network |
| CN102006229A (en) * | 2010-11-24 | 2011-04-06 | 中兴通讯股份有限公司 | Processing method, device and system of link state |
| US8165015B1 (en) * | 2007-12-21 | 2012-04-24 | World Wide Packets, Inc. | Modifying a rate based on at least one performance characteristic |
| CN103490968A (en) * | 2013-09-16 | 2014-01-01 | 杭州华三通信技术有限公司 | Method and device for interconnecting across data centers in FCoE network |
| CN103905284A (en) * | 2012-12-27 | 2014-07-02 | 杭州华三通信技术有限公司 | EVI-network-based flow load sharing method and device |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100343827C (en) * | 2003-07-28 | 2007-10-17 | 华为技术有限公司 | Service medium access control address convergence method for special virtual network based on secondary layer |
| CN101330448B (en) * | 2007-06-21 | 2010-12-08 | 华为技术有限公司 | Method and device for notifying link state information and determining multicast forwarding path |
| US7894462B2 (en) * | 2008-12-29 | 2011-02-22 | At&T Intellectual Property I, L.P. | Boundary routers providing redistribution and related backbone networks, computer program products, and methods |
| CN103997368B (en) * | 2013-02-18 | 2017-03-15 | 中兴通讯股份有限公司 | EPON chain circuit detecting method and device |
| CN103491002B (en) * | 2013-08-19 | 2017-02-01 | 北京华为数字技术有限公司 | Method and system for obtaining link cost value of IP link |
| CN105162705B (en) * | 2015-06-09 | 2018-09-21 | 华为技术有限公司 | Method, device and system for notifying UNI tunnel state |
-
2015
- 2015-06-09 CN CN201510313946.8A patent/CN105162705B/en not_active Expired - Fee Related
-
2016
- 2016-05-31 WO PCT/CN2016/084141 patent/WO2016197836A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101026524A (en) * | 2006-02-17 | 2007-08-29 | 三星电子株式会社 | Method and apparatus for providing status information of digital devices in a home network |
| US8165015B1 (en) * | 2007-12-21 | 2012-04-24 | World Wide Packets, Inc. | Modifying a rate based on at least one performance characteristic |
| CN102006229A (en) * | 2010-11-24 | 2011-04-06 | 中兴通讯股份有限公司 | Processing method, device and system of link state |
| CN103905284A (en) * | 2012-12-27 | 2014-07-02 | 杭州华三通信技术有限公司 | EVI-network-based flow load sharing method and device |
| CN103490968A (en) * | 2013-09-16 | 2014-01-01 | 杭州华三通信技术有限公司 | Method and device for interconnecting across data centers in FCoE network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105162705A (en) | 2015-12-16 |
| WO2016197836A1 (en) | 2016-12-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11962496B2 (en) | Method for establishing segment routing for IPv6 tunnel | |
| US20160006614A1 (en) | Source Routing Using Path Computation Elements | |
| CN112491718B (en) | Message header processing method and device, storage medium, and electronic device | |
| CN110870261B (en) | PECP segmented routing path segmented label binding extension | |
| CN112187649B (en) | Message forwarding method, message processing method and device | |
| CN103688510B (en) | Outgoing telecommunication method and device | |
| US11588725B2 (en) | Method and apparatus for path computation | |
| EP4252399B1 (en) | Methods, apparatus and system for creating sr policy using path computation element protocol | |
| WO2017211164A1 (en) | Method, apparatus, and system for determining inter-as label switched path tunnel | |
| CN101588288B (en) | Configuration method, communication equipment and communication system of link attribute information | |
| CN101877892B (en) | Consultation method of node association channel capability and node device | |
| CN105162705B (en) | Method, device and system for notifying UNI tunnel state | |
| CN112261054B (en) | Ethernet/IP and IPv6 protocol conversion system and method based on application service quality | |
| US11611447B2 (en) | Multicast (P2MP) support for path computation element central controller (PCECC) | |
| CN103039054B (en) | For transmitting the method and apparatus of application identities symbol across application element thereof | |
| CN108667731A (en) | A processing and device based on BIER information | |
| CN103650453B (en) | The method communicated in path computation element communication protocol and network equipment | |
| WO2024011950A1 (en) | Information processing method and device, and computer-readable storage medium | |
| US11563692B2 (en) | Communication methods, apparatuses and system for sharing network resources | |
| WO2018077313A1 (en) | Connection capability notification method and device | |
| WO2020021558A1 (en) | Methods, apparatus and machine-readable media relating to path computation in a communication network | |
| CN116800660A (en) | Forwarding table generation method and device, storage medium, electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180921 |