WO2017152585A1 - Method and device for message exchange between routers - Google Patents

Method and device for message exchange between routers Download PDF

Info

Publication number
WO2017152585A1
WO2017152585A1 PCT/CN2016/095728 CN2016095728W WO2017152585A1 WO 2017152585 A1 WO2017152585 A1 WO 2017152585A1 CN 2016095728 W CN2016095728 W CN 2016095728W WO 2017152585 A1 WO2017152585 A1 WO 2017152585A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
message
tlv
usage information
applications
Prior art date
Application number
PCT/CN2016/095728
Other languages
French (fr)
Chinese (zh)
Inventor
黄占彬
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017152585A1 publication Critical patent/WO2017152585A1/en

Links

Images

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/02Topology update or discovery

Definitions

  • the present application relates to, but is not limited to, the field of message interaction technologies between routers, and in particular, to a message interaction method and apparatus between routers.
  • the routers usually need to complete the routing through message interaction.
  • the messages exchanged between the routers only include the router ID TLV (type, length, value).
  • the router ID TLV Through the router ID TLV, the router receiving the message can know to send the message. The ID of the router and route it accordingly.
  • the router that receives the message performs a lot of redundant operations because it does not know anything about the ID of the router that sent the message, resulting in wasted resources.
  • the embodiment of the invention provides a message interaction method and device between routers, which solves the redundancy operation caused by the router not knowing the application that is using the router ID, and avoids waste of resources.
  • a method for message interaction between routers comprising:
  • a router ID usage information TLV is added to the message exchanged between the routers, the router ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the message.
  • a router performs an operation corresponding to an application of a router ID of a router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
  • the message further includes a router ID of a router that sends the message.
  • the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
  • the sub-TLV type includes two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
  • the application that is using the router ID includes one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segment routing SR.
  • the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message.
  • the operations corresponding to the application of the router ID of the router that is using the sending message include:
  • the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
  • a message interaction apparatus comprising: one or more processors including the following modules: a message processing module and an operation module.
  • the message processing module is configured to add a router ID usage information TLV to the message exchanged between the routers, the router ID usage information TLV for indicating one or more applications of the router ID of the router that is using the message.
  • the operation module is configured to perform an operation corresponding to an application of a router ID of a router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
  • the message further includes a router ID of a router that sends the message.
  • the message processing module is further configured to: set a router ID of the router in the message.
  • the content identifier field included in the router ID usage information TLV includes a sub-TLV.
  • Type, sub-TLV length, and sub-TLV content are included in the router ID usage information TLV.
  • the message processing module is configured to add a router ID usage information TLV in a message exchanged between the routers in the following manner: setting a sub-TLV type, a sub-TLV in a content field included in the router ID usage information TLV Length and sub-TLV content.
  • the sub-TLV type includes two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
  • the message processing module is configured to set the sub-TLV type as follows: the sub-TLV type is set to IPv4 router ID usage information or IPv6 router ID usage information.
  • the application that is using the router ID includes one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segment routing SR.
  • the message processing module is configured to add a router ID usage information TLV in the message exchanged between the routers according to the following manner: setting an application that is using the router ID includes: traffic engineering TE, remote anti-ring routing remote - LFA and segmentation route SR.
  • the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message.
  • the message processing module is configured to set the sub-TLV content according to: setting a flag flag and a corresponding description in the sub-TLV content field, by using the flag and the description that the router ID of the router that sends the message is Which application or applications are used, and reflects which application or applications are not used by the router ID.
  • the operation module performs operations corresponding to an application of the router ID of the router that is using the sending message, including:
  • the router ID usage information TLV indicates one or more applications of the router ID of the router that is transmitting the message
  • a topology or tunnel corresponding to the indicated one or more applications is established.
  • the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
  • the device is located in a router.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the described method of message interaction between routers.
  • the router ID of the router that sends the message is used by an application or some applications by adding a router ID using the information TLV, so that the router that receives the message can directly perform the same. Routing-related operations, such as topology establishment or tunnel establishment, improve the flexibility of router parsing and using router ID information, reducing unnecessary resource loss due to redundant operations.
  • FIG. 1 is a schematic flowchart diagram of a message interaction method according to an embodiment of the present invention
  • FIG. 2 is a topological view of an application example 1 according to an embodiment of the present invention.
  • Embodiment 3 is a topological diagram of Embodiment 2 of an embodiment of the present invention.
  • Embodiment 4 is a topological diagram of Embodiment 3 of an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • the router's LSP link state PDU
  • the technical solution of the embodiment of the present invention indicates that the router ID of the router that sends the message is being used by an application or some application by adding the router ID using the information TLV, so that the router that receives the message can directly perform routing related operations according to the method. For example, topology establishment or tunnel establishment improves the flexibility of router parsing and using router ID information, and reduces unnecessary resource loss of routers due to redundant operations.
  • the embodiment of the invention provides a method for message interaction between routers. As shown in FIG. 1 , the method includes steps 101-102:
  • the device ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the message to be sent; that is, the router ID usage information TLV is used to indicate which applications the router ID of the router that sent the message is being used by.
  • a router performs an operation corresponding to an application of a router ID of a router that is using the message by using the router ID usage information TLV in the message received from another router.
  • the message further includes a router ID of a router that sends the message.
  • the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
  • the sub-TLV type includes two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
  • the application that uses the router ID includes one or more of the following: TE (Traffic Engineering), remote anti-ring routing, Remote-LFA (Loop free alternate), and SR (Segment Routing, segmentation). routing).
  • TE Traffic Engineering
  • Remote-LFA Remote-Loop free alternate
  • SR Segment Routing, segmentation). routing
  • the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message. That is, the flag and the description can indicate which router or applications the router ID of the router that sent the message is being used by, and reflect which router or applications are not used by which application.
  • the sub-TLV content field passes the flag flag.
  • the corresponding description can only indicate which application or applications are being used by the router ID of the router that sent the message.
  • the operations corresponding to the application of the router ID of the router that is using the sending message include:
  • the router ID usage information TLV does not indicate the route that is using the sent message
  • the topology or tunnel corresponding to the one or more applications that are not indicated is abandoned or stopped.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • Sub-TLV length ⁇ sub-TLV content length.
  • sub-TLV type 1 IPv4 router ID usage information
  • This sub-TLV contains the IPv4 routing ID usage information, and it should appear at most once in the router ID usage information TLV.
  • the length of the sub-TLV is not fixed to 1 byte (eight bits).
  • Sub-TLV Type 2 IPv6 Router ID Usage Information
  • This sub-TLV contains the IPv6 routing ID usage information, and it should appear at most once in the router ID usage information TLV.
  • the length of the sub-TLV is not fixed to 1 byte (eight bits).
  • the directly connected nodes are interoperable, and the bidirectional Metric cost value (10 in the figure) is the same.
  • the node C is an alternative PQ node. If the information TLV is used by parsing the router ID of the C node, and it is found that the router ID carried by the C node is not applied to the Remote-LFA, the S node will immediately abandon the standby topology from the S node to the C node, and will also give up trying to establish the slave. Tunnel from S node to C node.
  • Application Example 2 Assume that there is a network topology as shown in Figure 3. The directly connected nodes are interworking and the bidirectional metric values are the same. Now set up a TE tunnel for the S node to the E node. Although the router ID is obtained from the LSP of the E node, if the information TLV is used by parsing the router ID of the E node, and the router ID carried by the E node is not applied to the TE, the S node will immediately abandon the establishment from the S node to the E. The TE tunnel of the node.
  • Application Example 3 Assume that there is a network topology as shown in Figure 4, the directly connected nodes are interworking, and the bidirectional metric values are the same. It is now planned to implement SR for the path from the S node to the D node, requiring S-A, A-B, B-C and C-D to pass. Although the router ID is obtained from the LSP of the A node, if the information TLV is used by parsing the router ID of the A node, and it is found that the router ID carried by the A node is not applied to the SR, the S node will abandon the SR-specific sub-TLV. And stop the SR related actions.
  • An embodiment of the present invention provides a message interaction apparatus.
  • the apparatus includes: one or more processors including the following modules: a message processing module and an operation module.
  • the message processing module 501 is configured to add a router ID usage information TLV to the message exchanged between the routers, the router ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the sending message;
  • the Router ID Usage Information TLV is used to indicate which application or applications the router ID of the router that sent the message is being used by.
  • the operation module 502 is configured to perform an operation corresponding to an application of the router ID of the router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
  • the message further includes a router ID of a router that sends the message.
  • the message processing module 501 is further configured to: set a router ID of the router in the message.
  • the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
  • the message processing module 501 is configured to add a router ID usage information TLV in a message exchanged between the routers in the following manner: setting a sub-TLV type, a sub-in the content field included in the router ID usage information TLV TLV length and sub-TLV content.
  • the sub-TLV type includes two types: IPv4 router ID usage information and IPv6 router ID usage information.
  • the message processing module 501 is configured to set the sub-TLV type as follows: the sub-TLV type is set to IPv4 router ID usage information or IPv6 router ID usage information.
  • the application that is using the router ID includes one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segment routing SR.
  • the message processing module 501 is configured to add a router ID usage information TLV in the message exchanged between the routers according to the following manner: setting an application that is using the router ID includes: TE (Traffic Engineering, traffic engineering), remote defense One or more of the remote-LFA (Loop free alternate) and the SR (Segment Routing).
  • TE Traffic Engineering, traffic engineering
  • remote defense One or more of the remote-LFA (Loop free alternate)
  • SR Segment Routing
  • the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message.
  • the message processing module 501 is configured to set the sub-TLV content in a manner of setting a flag flag and a corresponding description in the sub-TLV content field, the flag and a description indicating a router that is using a router that sends a message One or more applications of the ID. That is, by the flag and description, it is indicated which router or applications the router ID of the router that sent the message is being used by, and it reflects that the router ID is not used by which application or applications. Here, it can be reflected that the router ID is not used by which application or applications, instead of indicating that the router ID is not used by which application or applications, because from the following embodiment 1, the sub-TLV content field passes the flag flag. And the corresponding description can only indicate which router ID of the router that sent the message is being or Some applications use.
  • the operation module 502 performs an operation corresponding to an application of the router ID of the router that is using the sending message, including:
  • the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
  • the above device is located in the router.
  • the router ID usage information TLV if the received message includes the router ID usage information TLV, and the routing device parses the router ID in the message, the router ID is used according to the information in the router ID usage information TLV, thereby avoiding useless processing. Reduce unnecessary resource loss on the router.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the described method of message interaction between routers.
  • the router ID of the router that sends the message is used by an application or some applications by adding a router ID using the information TLV, so that the router that receives the message can directly perform the same. Routing-related operations, such as topology establishment or tunnel establishment, improve the flexibility of router parsing and using router ID information, reducing unnecessary resource loss due to redundant operations.

Landscapes

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

Abstract

A method and device for message exchange between routers. The method comprises: adding router ID use information TLV to a message exchanged between routers, wherein the router ID use information TLV is used for indicating one or more applications that are using the router ID of the router sending the message; and by means of the router ID use information TLV in the message received from other routers, the router executing an operation corresponding to the application that is using the router ID of the router sending the message.

Description

路由器之间的消息交互方法和装置Message interaction method and device between routers 技术领域Technical field
本申请涉及但不限于路由器之间的消息交互技术领域,尤其涉及一种路由器之间的消息交互方法和装置。The present application relates to, but is not limited to, the field of message interaction technologies between routers, and in particular, to a message interaction method and apparatus between routers.
背景技术Background technique
路由器之间通常需要通过消息交互来完成路由,相关技术中,路由器之间交互的消息中只包括路由器ID TLV(type,length,value),通过该路由器ID TLV,接收消息的路由器可以知道发送消息的路由器的ID,并据此进行路由。The routers usually need to complete the routing through message interaction. In the related art, the messages exchanged between the routers only include the router ID TLV (type, length, value). Through the router ID TLV, the router receiving the message can know to send the message. The ID of the router and route it accordingly.
当多种应用共用路由器ID TLV信息时,由于不知道发送消息的路由器的ID的任何情况,接收到消息的路由器会执行很多冗余的操作,从而造成资源浪费。When multiple applications share router ID TLV information, the router that receives the message performs a lot of redundant operations because it does not know anything about the ID of the router that sent the message, resulting in wasted resources.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种路由器之间的消息交互方法和装置,解决了由于路由器不知道正在使用路由器ID的应用而造成的冗余操作,避免资源浪费。The embodiment of the invention provides a message interaction method and device between routers, which solves the redundancy operation caused by the router not knowing the application that is using the router ID, and avoids waste of resources.
一种路由器之间消息交互的方法,该方法包括:A method for message interaction between routers, the method comprising:
在路由器之间交互的消息中增加路由器ID使用信息TLV,该路由器ID使用信息TLV用于指示正在使用该发送消息的路由器的路由器ID的一个或多个应用。A router ID usage information TLV is added to the message exchanged between the routers, the router ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the message.
一路由器通过从其他路由器接收到的所述消息中的所述路由器ID使用信息TLV,执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作。A router performs an operation corresponding to an application of a router ID of a router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
可选地,所述消息中还包括发送消息的路由器的路由器ID。 Optionally, the message further includes a router ID of a router that sends the message.
可选地,所述路由器ID使用信息TLV所包括的内容字段中包括子TLV类型、子TLV长度和子TLV内容。Optionally, the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
可选地,所述子TLV类型包括互联网协议第四版IPv4路由器ID使用信息和互联网协议第六版IPv6路由器ID使用信息两种类型。Optionally, the sub-TLV type includes two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
可选地,所述正在使用所述路由器ID的应用包括以下一种或多种:流量工程TE、远程防环备路由Remote-LFA和分段路由SR。Optionally, the application that is using the router ID includes one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segment routing SR.
可选地,所述子TLV内容字段包括标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。Optionally, the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message.
可选地,所述执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作包括:Optionally, the operations corresponding to the application of the router ID of the router that is using the sending message include:
当所述路由器ID使用信息TLV指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,建立与所述被指示出的一个或多个应用相应的拓扑或隧道;Establishing a topology or tunnel corresponding to the indicated one or more applications when the router ID usage information TLV indicates one or more applications of the router ID of the router that is using the message to be sent;
当所述路由器ID使用信息TLV未指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,放弃或停止建立与所述未被指示出的一个或多个应用相应的拓扑或隧道。When the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
一种消息交互装置,该装置包括:包括以下模块的一个或多个处理器:消息处理模块和操作模块。A message interaction apparatus, the apparatus comprising: one or more processors including the following modules: a message processing module and an operation module.
所述消息处理模块,设置成在路由器之间交互的消息中增加路由器ID使用信息TLV,该路由器ID使用信息TLV用于指示正在使用该发送消息的路由器的路由器ID的一个或多个应用。The message processing module is configured to add a router ID usage information TLV to the message exchanged between the routers, the router ID usage information TLV for indicating one or more applications of the router ID of the router that is using the message.
所述操作模块,设置成通过从其他路由器接收到的所述消息中的所述路由器ID使用信息TLV,执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作。The operation module is configured to perform an operation corresponding to an application of a router ID of a router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
可选地,所述消息中还包括发送消息的路由器的路由器ID。Optionally, the message further includes a router ID of a router that sends the message.
可选地,所述消息处理模块还设置成:在所述消息中设置路由器的路由器ID。Optionally, the message processing module is further configured to: set a router ID of the router in the message.
可选地,所述路由器ID使用信息TLV所包括的内容字段中包括子TLV 类型、子TLV长度和子TLV内容。Optionally, the content identifier field included in the router ID usage information TLV includes a sub-TLV. Type, sub-TLV length, and sub-TLV content.
可选地,所述消息处理模块设置成按照如下方式在路由器之间交互的消息中增加路由器ID使用信息TLV:在所述路由器ID使用信息TLV所包括的内容字段中设置子TLV类型、子TLV长度和子TLV内容。Optionally, the message processing module is configured to add a router ID usage information TLV in a message exchanged between the routers in the following manner: setting a sub-TLV type, a sub-TLV in a content field included in the router ID usage information TLV Length and sub-TLV content.
可选地,所述子TLV类型包括互联网协议第四版IPv4路由器ID使用信息和互联网协议第六版IPv6路由器ID使用信息两种类型。Optionally, the sub-TLV type includes two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
可选地,所述消息处理模块设置成按照如下方式设置所述子TLV类型:将所述子TLV类型设置为IPv4路由器ID使用信息或IPv6路由器ID使用信息。Optionally, the message processing module is configured to set the sub-TLV type as follows: the sub-TLV type is set to IPv4 router ID usage information or IPv6 router ID usage information.
可选地,所述正在使用所述路由器ID的应用包括以下一种或多种:流量工程TE、远程防环备路由Remote-LFA和分段路由SR。Optionally, the application that is using the router ID includes one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segment routing SR.
可选地,所述消息处理模块设置成按照如下方式在路由器之间交互的消息中增加路由器ID使用信息TLV:设置正在使用所述路由器ID的应用包括:流量工程TE、远程防环备路由Remote-LFA和分段路由SR。Optionally, the message processing module is configured to add a router ID usage information TLV in the message exchanged between the routers according to the following manner: setting an application that is using the router ID includes: traffic engineering TE, remote anti-ring routing remote - LFA and segmentation route SR.
可选地,所述子TLV内容字段包括标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。Optionally, the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message.
可选地,所述消息处理模块设置成按照如下方式设置所述子TLV内容:在所述子TLV内容字段设置标志flag和相应的描述,通过该flag和描述表明发送消息的路由器的路由器ID正在被哪个或哪些应用使用,同时反映出该路由器ID没有被哪个或哪些应用使用。Optionally, the message processing module is configured to set the sub-TLV content according to: setting a flag flag and a corresponding description in the sub-TLV content field, by using the flag and the description that the router ID of the router that sends the message is Which application or applications are used, and reflects which application or applications are not used by the router ID.
可选地,所述操作模块执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作包括:Optionally, the operation module performs operations corresponding to an application of the router ID of the router that is using the sending message, including:
当所述路由器ID使用信息TLV指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,建立与所述被指示出的一个或多个应用相应的拓扑或隧道。When the router ID usage information TLV indicates one or more applications of the router ID of the router that is transmitting the message, a topology or tunnel corresponding to the indicated one or more applications is established.
当所述路由器ID使用信息TLV未指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,放弃或停止建立与所述未被指示出的一个或多个应用相应的拓扑或隧道。 When the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
可选地,该装置位于路由器中。Optionally, the device is located in a router.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的路由器之间消息交互方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the described method of message interaction between routers.
采用本发明实施例的技术方案后,通过新增路由器ID使用信息TLV来表明发送消息的路由器的路由器ID正在被某一应用或某些应用使用,使得接收到该消息的路由器可以直接据此进行路由相关操作,如拓扑建立或隧道建立,提高了路由器解析和使用路由器ID信息的灵活性,降低了路由器因冗余操作到来的不必要的资源损耗。After the technical solution of the embodiment of the present invention is used, the router ID of the router that sends the message is used by an application or some applications by adding a router ID using the information TLV, so that the router that receives the message can directly perform the same. Routing-related operations, such as topology establishment or tunnel establishment, improve the flexibility of router parsing and using router ID information, reducing unnecessary resource loss due to redundant operations.
附图概述BRIEF abstract
图1为本发明实施例的消息交互方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a message interaction method according to an embodiment of the present invention;
图2为本发明实施例的应用示例1的拓扑图;2 is a topological view of an application example 1 according to an embodiment of the present invention;
图3为本发明实施例的实施示例2的拓扑图;3 is a topological diagram of Embodiment 2 of an embodiment of the present invention;
图4为本发明实施例的实施示例3的拓扑图;4 is a topological diagram of Embodiment 3 of an embodiment of the present invention;
图5为本发明实施例的装置结构示意图。FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
路由器的LSP(link state PDU,链路状态协议数据单元)泛洪路由器ID信息时,可能存在多种应用或称功能同时使用该路由器ID的情况。本发明实施例技术方案通过新增路由器ID使用信息TLV来表明发送消息的路由器的路由器ID正在被某一应用或某些应用使用,使得接收到该消息的路由器可以直接据此进行路由相关操作,如拓扑建立或隧道建立,提高了路由器解析和使用路由器ID信息的灵活性,降低了路由器因冗余操作到来的不必要的资源损耗。When the router's LSP (link state PDU) floods the router ID information, there may be multiple applications or functions that use the router ID at the same time. The technical solution of the embodiment of the present invention indicates that the router ID of the router that sends the message is being used by an application or some application by adding the router ID using the information TLV, so that the router that receives the message can directly perform routing related operations according to the method. For example, topology establishment or tunnel establishment improves the flexibility of router parsing and using router ID information, and reduces unnecessary resource loss of routers due to redundant operations.
本发明实施例提供了一种路由器之间消息交互的方法,如图1所示,该方法包括步骤101-102:The embodiment of the invention provides a method for message interaction between routers. As shown in FIG. 1 , the method includes steps 101-102:
101、在路由器之间交互的消息中增加路由器ID使用信息TLV,该路由 器ID使用信息TLV用于指示正在使用该发送消息的路由器的路由器ID的一个或多个应用;即该路由器ID使用信息TLV用于表明发送消息的路由器的路由器ID正在被哪些应用使用。101. Add a router ID usage information TLV in the message exchanged between the routers, the route The device ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the message to be sent; that is, the router ID usage information TLV is used to indicate which applications the router ID of the router that sent the message is being used by.
102、一路由器通过从其他路由器接收到的所述消息中的所述路由器ID使用信息TLV,执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作。102. A router performs an operation corresponding to an application of a router ID of a router that is using the message by using the router ID usage information TLV in the message received from another router.
可选地,所述消息中还包括发送消息的路由器的路由器ID。Optionally, the message further includes a router ID of a router that sends the message.
可选地,所述路由器ID使用信息TLV所包括的内容字段中包括子TLV类型、子TLV长度和子TLV内容。Optionally, the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
可选地,所述子TLV类型包括互联网协议第四版IPv4路由器ID使用信息和互联网协议第六版IPv6路由器ID使用信息两种类型。Optionally, the sub-TLV type includes two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
可选地,正在使用所述路由器ID的应用包括以下一种或多种:TE(Traffic Engineering,流量工程)、远程防环备路由Remote-LFA(Loop free alternate)和SR(Segment Routing,分段路由)。Optionally, the application that uses the router ID includes one or more of the following: TE (Traffic Engineering), remote anti-ring routing, Remote-LFA (Loop free alternate), and SR (Segment Routing, segmentation). routing).
可选地,所述子TLV内容字段包括标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。即通过该flag和描述能够表明发送消息的路由器的路由器ID正在被哪个或哪些应用使用,同时反映出该路由器ID没有被哪个或哪些应用使用。此处之所以所能够反映出该路由器ID没有被哪个或哪些应用使用,而不是表明该路由器ID没有被哪个或哪些应用使用,是因为从下面的实施例一可知,子TLV内容字段通过标志flag和相应的描述只能表明发送消息的路由器的路由器ID正在被哪个或哪些应用使用。Optionally, the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message. That is, the flag and the description can indicate which router or applications the router ID of the router that sent the message is being used by, and reflect which router or applications are not used by which application. Here, it can be reflected that the router ID is not used by which application or applications, instead of indicating that the router ID is not used by which application or applications, because from the following embodiment 1, the sub-TLV content field passes the flag flag. And the corresponding description can only indicate which application or applications are being used by the router ID of the router that sent the message.
可选地,所述执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作包括:Optionally, the operations corresponding to the application of the router ID of the router that is using the sending message include:
当所述路由器ID使用信息TLV指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,建立与所述被指示出的一个或多个应用相应的拓扑或隧道;Establishing a topology or tunnel corresponding to the indicated one or more applications when the router ID usage information TLV indicates one or more applications of the router ID of the router that is using the message to be sent;
当所述路由器ID使用信息TLV未指示出正在使用所述发送消息的路由 器的路由器ID的一个或多个应用时,放弃或停止建立与所述未被指示出的一个或多个应用相应的拓扑或隧道。When the router ID usage information TLV does not indicate the route that is using the sent message When one or more applications of the router ID of the router, the topology or tunnel corresponding to the one or more applications that are not indicated is abandoned or stopped.
实施例一:Embodiment 1:
本发明实施例的路由器ID使用信息TLV格式可以定义如下:The router ID usage information TLV format of the embodiment of the present invention can be defined as follows:
路由器ID使用信息–这个可选TLV,在LSP里面应该最多出现一次,用来指明路由器ID的使用情况。Router ID Usage Information – This optional TLV should appear at most once in the LSP to indicate the router ID usage.
类型码–未确定Type code – not determined
长度–内容总长度Length – total length of content
内容–content-
子TLV类型码–1或2.Sub-TLV type code – 1 or 2.
子TLV长度–子TLV内容长度.Sub-TLV length – sub-TLV content length.
子TLV内容–Sub-TLV content –
flag  描述Flag Description
0x1  TE使用路由器ID0x1 TE uses the router ID
0x2  Remote-LFA使用路由器ID0x2 Remote-LFA uses router ID
0x4  SR(Segment Routing)使用路由器ID0x4 SR (Segment Routing) uses the router ID
其中,子TLV类型1:IPv4路由器ID使用信息Among them, sub-TLV type 1: IPv4 router ID usage information
这种子TLV里面包含的是IPv4路由ID使用信息,并且它应该在路由器ID使用信息TLV里面最多出现一次。出于灵活易于扩展的考虑,该子TLV的长度没有固定成1个字节(八比特)。This sub-TLV contains the IPv4 routing ID usage information, and it should appear at most once in the router ID usage information TLV. For the sake of flexibility and ease of expansion, the length of the sub-TLV is not fixed to 1 byte (eight bits).
子TLV类型2:IPv6路由器ID使用信息Sub-TLV Type 2: IPv6 Router ID Usage Information
这种子TLV里面包含的是IPv6路由ID使用信息,并且它应该在路由器ID使用信息TLV里面最多出现一次。出于灵活易于扩展的考虑,该子TLV的长度没有固定成1个字节(八比特)。This sub-TLV contains the IPv6 routing ID usage information, and it should appear at most once in the router ID usage information TLV. For the sake of flexibility and ease of expansion, the length of the sub-TLV is not fixed to 1 byte (eight bits).
下面用本发明实施例的几个应用示例加以说明。The following is a description of several application examples of the embodiments of the present invention.
假设路由设备支持了路由器ID使用信息TLV: Assume that the routing device supports the router ID usage information TLV:
应用示例1:Application example 1:
假设有如图2网络拓扑,直连节点是互通的,双向Metric花销值(如图中的10)相同。现在为链路S-E尝试生成Remote-LFA备路由,根据算法可以知道节点C是备选的PQ节点。如果通过解析C节点的路由器ID使用信息TLV,发现C节点携带的路由器ID并不应用于Remote-LFA,那么S节点将立马放弃从S节点到C节点的备拓扑,同时也将放弃尝试建立从S节点到C节点的隧道。Assume that there is a network topology as shown in Figure 2, the directly connected nodes are interoperable, and the bidirectional Metric cost value (10 in the figure) is the same. Now try to generate a Remote-LFA backup route for the link S-E. According to the algorithm, it can be known that the node C is an alternative PQ node. If the information TLV is used by parsing the router ID of the C node, and it is found that the router ID carried by the C node is not applied to the Remote-LFA, the S node will immediately abandon the standby topology from the S node to the C node, and will also give up trying to establish the slave. Tunnel from S node to C node.
应用示例2:假设有如图3网络拓扑,直连节点是互通的,双向Metric值相同。现在为S节点到E节点建立TE隧道。虽然从E节点的LSP里面获取到了路由器ID,但是如果通过解析E节点的路由器ID使用信息TLV,发现E节点携带的路由器ID并不应用于TE,那么S节点将立马放弃建立从S节点到E节点的TE隧道。Application Example 2: Assume that there is a network topology as shown in Figure 3. The directly connected nodes are interworking and the bidirectional metric values are the same. Now set up a TE tunnel for the S node to the E node. Although the router ID is obtained from the LSP of the E node, if the information TLV is used by parsing the router ID of the E node, and the router ID carried by the E node is not applied to the TE, the S node will immediately abandon the establishment from the S node to the E. The TE tunnel of the node.
应用示例3:假设有如图4网络拓扑,直连节点是互通的,双向Metric值相同。现在计划为S节点到D节点的路径实施SR,要求必须经过S-A,A-B,B-C和C-D。虽然从A节点的LSP里面获取到了路由器ID,但是如果通过解析A节点的路由器ID使用信息TLV,发现A节点携带的路由器ID并不应用于SR,那么S节点将放弃解析SR专有的子TLV,并停止SR相关动作。Application Example 3: Assume that there is a network topology as shown in Figure 4, the directly connected nodes are interworking, and the bidirectional metric values are the same. It is now planned to implement SR for the path from the S node to the D node, requiring S-A, A-B, B-C and C-D to pass. Although the router ID is obtained from the LSP of the A node, if the information TLV is used by parsing the router ID of the A node, and it is found that the router ID carried by the A node is not applied to the SR, the S node will abandon the SR-specific sub-TLV. And stop the SR related actions.
本发明实施例提供了一种消息交互装置,如图5所示,该装置包括:包括以下模块的一个或多个处理器:消息处理模块和操作模块。An embodiment of the present invention provides a message interaction apparatus. As shown in FIG. 5, the apparatus includes: one or more processors including the following modules: a message processing module and an operation module.
消息处理模块501,设置成在路由器之间交互的消息中增加路由器ID使用信息TLV,该路由器ID使用信息TLV用于指示正在使用该发送消息的路由器的路由器ID的一个或多个应用;即该路由器ID使用信息TLV用于表明发送消息的路由器的路由器ID正在被哪个或哪些应用使用。The message processing module 501 is configured to add a router ID usage information TLV to the message exchanged between the routers, the router ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the sending message; The Router ID Usage Information TLV is used to indicate which application or applications the router ID of the router that sent the message is being used by.
操作模块502,设置成通过从其他路由器接收到的所述消息中的所述路由器ID使用信息TLV,执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作。The operation module 502 is configured to perform an operation corresponding to an application of the router ID of the router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
可选地,所述消息中还包括发送消息的路由器的路由器ID。 Optionally, the message further includes a router ID of a router that sends the message.
可选地,所述消息处理模块501还设置成:在所述消息中设置路由器的路由器ID。Optionally, the message processing module 501 is further configured to: set a router ID of the router in the message.
可选地,所述路由器ID使用信息TLV所包括的内容字段中包括子TLV类型、子TLV长度和子TLV内容。Optionally, the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
可选地,所述消息处理模块501设置成按照如下方式在路由器之间交互的消息中增加路由器ID使用信息TLV:在所述路由器ID使用信息TLV所包括的内容字段中设置子TLV类型、子TLV长度和子TLV内容。Optionally, the message processing module 501 is configured to add a router ID usage information TLV in a message exchanged between the routers in the following manner: setting a sub-TLV type, a sub-in the content field included in the router ID usage information TLV TLV length and sub-TLV content.
可选地,所述子TLV类型包括IPv4路由器ID使用信息和IPv6路由器ID使用信息两种类型。Optionally, the sub-TLV type includes two types: IPv4 router ID usage information and IPv6 router ID usage information.
可选地,所述消息处理模块501设置成按照如下方式设置所述子TLV类型:将所述子TLV类型设置为IPv4路由器ID使用信息或IPv6路由器ID使用信息。Optionally, the message processing module 501 is configured to set the sub-TLV type as follows: the sub-TLV type is set to IPv4 router ID usage information or IPv6 router ID usage information.
可选地,所述正在使用所述路由器ID的应用包括以下一种或多种:流量工程TE、远程防环备路由Remote-LFA和分段路由SR。Optionally, the application that is using the router ID includes one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segment routing SR.
可选地,所述消息处理模块501设置成按照如下方式在路由器之间交互的消息中增加路由器ID使用信息TLV:设置正在使用路由器ID的应用包括:TE(Traffic Engineering,流量工程),远程防环备路由Remote-LFA(Loop free alternate)和SR(Segment Routing,分段路由)中的一种或多种。Optionally, the message processing module 501 is configured to add a router ID usage information TLV in the message exchanged between the routers according to the following manner: setting an application that is using the router ID includes: TE (Traffic Engineering, traffic engineering), remote defense One or more of the remote-LFA (Loop free alternate) and the SR (Segment Routing).
可选地,所述子TLV内容字段包括标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。Optionally, the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications that are using the router ID of the router that sent the message.
可选地,所述消息处理模块501设置成按照如下方式设置所述子TLV内容:在所述子TLV内容字段设置标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。即通过该flag和描述表明发送消息的路由器的路由器ID正在被哪个或哪些应用使用,同时反映出该路由器ID没有被哪个或哪些应用使用。此处之所以所能够反映出该路由器ID没有被哪个或哪些应用使用,而不是表明该路由器ID没有被哪个或哪些应用使用,是因为从下面的实施例一可知,子TLV内容字段通过标志flag和相应的描述只能表明发送消息的路由器的路由器ID正在被哪个或哪 些应用使用。Optionally, the message processing module 501 is configured to set the sub-TLV content in a manner of setting a flag flag and a corresponding description in the sub-TLV content field, the flag and a description indicating a router that is using a router that sends a message One or more applications of the ID. That is, by the flag and description, it is indicated which router or applications the router ID of the router that sent the message is being used by, and it reflects that the router ID is not used by which application or applications. Here, it can be reflected that the router ID is not used by which application or applications, instead of indicating that the router ID is not used by which application or applications, because from the following embodiment 1, the sub-TLV content field passes the flag flag. And the corresponding description can only indicate which router ID of the router that sent the message is being or Some applications use.
可选地,所述操作模块502执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作包括:Optionally, the operation module 502 performs an operation corresponding to an application of the router ID of the router that is using the sending message, including:
当所述路由器ID使用信息TLV指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,建立与所述被指示出的一个或多个应用相应的拓扑或隧道;Establishing a topology or tunnel corresponding to the indicated one or more applications when the router ID usage information TLV indicates one or more applications of the router ID of the router that is using the message to be sent;
当所述路由器ID使用信息TLV未指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,放弃或停止建立与所述未被指示出的一个或多个应用相应的拓扑或隧道。When the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
可选地,上述装置位于路由器中。Optionally, the above device is located in the router.
上述装置与方法相应的部分与方法的实现相同,在此不再赘述。The corresponding parts of the above apparatus and method are the same as the implementation of the method, and are not described herein again.
上述技术方案中,如果收到的消息中包括路由器ID使用信息TLV,路由设备解析消息中的路由器ID后,将按照路由器ID使用信息TLV里面的信息来使用该路由器ID,避免做无用处理,从而降低路由器不必要的资源损耗。In the above technical solution, if the received message includes the router ID usage information TLV, and the routing device parses the router ID in the message, the router ID is used according to the information in the router ID usage information TLV, thereby avoiding useless processing. Reduce unnecessary resource loss on the router.
需要说明的是,如果不冲突,本发明实施例以及实施例中的每个特征可以相互结合,均在本发明实施例的保护范围之内。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that each of the features of the embodiments of the present invention and the embodiments may be combined with each other, and are within the protection scope of the embodiments of the present invention. Additionally, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的路由器之间消息交互方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the described method of message interaction between routers.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。上述实施例中的每个模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
当然,本发明实施例还可有其他多种实施例,在不背离本发明实施例精 神及其实质的情况下,熟悉本领域的技术人员当可根据本发明实施例作出多种相应的改变和变形,但这些相应的改变和变形都应属于本发明实施例的权利要求的保护范围。Of course, there are other various embodiments of the embodiments of the present invention, without departing from the embodiments of the present invention. In the case of God and its substance, those skilled in the art can make various changes and modifications in accordance with the embodiments of the present invention, but the corresponding changes and modifications should fall within the scope of the claims of the embodiments of the present invention. .
工业实用性Industrial applicability
采用本发明实施例的技术方案后,通过新增路由器ID使用信息TLV来表明发送消息的路由器的路由器ID正在被某一应用或某些应用使用,使得接收到该消息的路由器可以直接据此进行路由相关操作,如拓扑建立或隧道建立,提高了路由器解析和使用路由器ID信息的灵活性,降低了路由器因冗余操作到来的不必要的资源损耗。 After the technical solution of the embodiment of the present invention is used, the router ID of the router that sends the message is used by an application or some applications by adding a router ID using the information TLV, so that the router that receives the message can directly perform the same. Routing-related operations, such as topology establishment or tunnel establishment, improve the flexibility of router parsing and using router ID information, reducing unnecessary resource loss due to redundant operations.

Claims (15)

  1. 一种路由器之间消息交互的方法,该方法包括:A method for message interaction between routers, the method comprising:
    在路由器之间交互的消息中增加路由器ID使用信息TLV,该路由器ID使用信息TLV用于指示正在使用该发送消息的路由器的路由器ID的一个或多个应用;Adding a router ID usage information TLV to the message exchanged between the routers, the router ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the message to be sent;
    一路由器通过从其他路由器接收到的所述消息中的所述路由器ID使用信息TLV,执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作。A router performs an operation corresponding to an application of a router ID of a router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
  2. 如权利要求1所述的路由器之间消息交互的方法,其中,所述消息中还包括发送消息的路由器的路由器ID。The method of message interaction between routers according to claim 1, wherein the message further includes a router ID of a router that sends the message.
  3. 如权利要求1所述的路由器之间消息交互的方法,其中,所述路由器ID使用信息TLV所包括的内容字段中包括子TLV类型、子TLV长度和子TLV内容。The method of message interaction between routers according to claim 1, wherein the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
  4. 如权利要求3所述的路由器之间消息交互的方法,其中,所述子TLV类型包括互联网协议第四版IPv4路由器ID使用信息和互联网协议第六版IPv6路由器ID使用信息两种类型。The method of message interaction between routers according to claim 3, wherein the sub-TLV types include Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
  5. 如权利要求1所述的路由器之间消息交互的方法,其中,所述正在使用所述路由器ID的应用包括以下一种或多种:流量工程TE、远程防环备路由Remote-LFA和分段路由SR。The method of message interaction between routers according to claim 1, wherein the application that is using the router ID comprises one or more of the following: a traffic engineering TE, a remote anti-ring routing remote-LFA, and a segmentation. Route SR.
  6. 如权利要求3所述的路由器之间消息交互的方法,其中,所述子TLV内容字段包括标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。The method of message interaction between routers of claim 3, wherein said sub-TLV content field includes a flag flag and a corresponding description indicating one or more of router IDs of routers that are using the message to be sent application.
  7. 如权利要求1所述的路由器之间消息交互的方法,其中,所述执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作包括:The method of message interaction between routers according to claim 1, wherein said performing an operation corresponding to an application of a router ID of a router that is using said message to be transmitted comprises:
    当所述路由器ID使用信息TLV指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,建立与所述被指示出的一个或多个应用相应的拓扑或隧道;Establishing a topology or tunnel corresponding to the indicated one or more applications when the router ID usage information TLV indicates one or more applications of the router ID of the router that is using the message to be sent;
    当所述路由器ID使用信息TLV未指示出正在使用所述发送消息的路由 器的路由器ID的一个或多个应用时,放弃或停止建立与所述未被指示出的一个或多个应用相应的拓扑或隧道。When the router ID usage information TLV does not indicate the route that is using the sent message When one or more applications of the router ID of the router, the topology or tunnel corresponding to the one or more applications that are not indicated is abandoned or stopped.
  8. 一种消息交互装置,该装置包括:包括以下模块的一个或多个处理器:消息处理模块和操作模块;A message interaction apparatus, the apparatus comprising: one or more processors including the following modules: a message processing module and an operation module;
    所述消息处理模块,设置成在路由器之间交互的消息中增加路由器ID使用信息TLV,该路由器ID使用信息TLV用于指示正在使用该发送消息的路由器的路由器ID的一个或多个应用;The message processing module is configured to add a router ID usage information TLV to the message exchanged between the routers, the router ID usage information TLV is used to indicate one or more applications of the router ID of the router that is using the sending message;
    所述操作模块,设置成通过从其他路由器接收到的所述消息中的所述路由器ID使用信息TLV,执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作。The operation module is configured to perform an operation corresponding to an application of a router ID of a router that is using the transmission message by using the router ID usage information TLV in the message received from another router.
  9. 如权利要求8所述的消息交互装置,其中,所述消息中还包括发送消息的路由器的路由器ID。The message interaction apparatus according to claim 8, wherein said message further includes a router ID of a router that transmits the message.
  10. 如权利要求8或9所述的消息交互装置,其中,所述路由器ID使用信息TLV所包括的内容字段中包括子TLV类型、子TLV长度和子TLV内容。The message interaction apparatus according to claim 8 or 9, wherein the content field included in the router ID usage information TLV includes a sub-TLV type, a sub-TLV length, and sub-TLV content.
  11. 如权利要求10所述的消息交互装置,其中,所述子TLV类型包括互联网协议第四版IPv4路由器ID使用信息和互联网协议第六版IPv6路由器ID使用信息两种类型。The message interaction apparatus according to claim 10, wherein said sub-TLV type comprises two types of Internet Protocol version 4 IPv4 router ID usage information and Internet Protocol version 6 IPv6 router ID usage information.
  12. 如权利要求8所述的消息交互装置,其中,所述正在使用所述路由器ID的应用包括以下一种或多种:流量工程TE、自由交替循环远程Remote-LFA和分段路由SR。The message interaction apparatus according to claim 8, wherein said application that is using said router ID comprises one or more of the following: a traffic engineering TE, a free alternate cyclic remote Remote-LFA, and a segment routing SR.
  13. 如权利要求10所述的消息交互装置,其中,所述子TLV内容字段包括标志flag和相应的描述,该flag和描述指示正在使用发送消息的路由器的路由器ID的一个或多个应用。The message interaction apparatus of claim 10, wherein the sub-TLV content field includes a flag flag and a corresponding description indicating one or more applications of a router ID of a router that is transmitting a message.
  14. 如权利要求8所述的消息交互装置,其中,所述操作模块执行与正在使用所述发送消息的路由器的路由器ID的应用相应的操作包括:The message interaction apparatus according to claim 8, wherein the operation module performs an operation corresponding to an application of a router ID of a router that is using the message to be transmitted, including:
    当所述路由器ID使用信息TLV指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,建立与所述被指示出的一个或多个应用 相应的拓扑或隧道;Establishing one or more of the indicated applications when the router ID usage information TLV indicates one or more applications of the router ID of the router that is using the message to be sent Corresponding topology or tunnel;
    当所述路由器ID使用信息TLV未指示出正在使用所述发送消息的路由器的路由器ID的一个或多个应用时,放弃或停止建立与所述未被指示出的一个或多个应用相应的拓扑或隧道。When the router ID usage information TLV does not indicate one or more applications of the router ID of the router that is using the message to be sent, aborting or stopping establishing a topology corresponding to the one or more applications not indicated Or tunnel.
  15. 如权利要求8所述的消息交互装置,其特征在于,该装置位于路由器中。 The message interaction device of claim 8 wherein the device is located in a router.
PCT/CN2016/095728 2016-03-10 2016-08-17 Method and device for message exchange between routers WO2017152585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610136162.7A CN107181689B (en) 2016-03-10 2016-03-10 Message interaction method and device between routers
CN201610136162.7 2016-03-10

Publications (1)

Publication Number Publication Date
WO2017152585A1 true WO2017152585A1 (en) 2017-09-14

Family

ID=59789953

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095728 WO2017152585A1 (en) 2016-03-10 2016-08-17 Method and device for message exchange between routers

Country Status (2)

Country Link
CN (1) CN107181689B (en)
WO (1) WO2017152585A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061920B (en) * 2018-01-18 2021-10-19 中兴通讯股份有限公司 Method, equipment and storage medium for establishing bidirectional segment routing tunnel
CN110535766B (en) * 2018-05-25 2021-10-22 华为技术有限公司 Method and equipment for generating route
CN111107004B (en) 2018-10-27 2021-06-01 华为技术有限公司 Message processing method, related equipment and computer storage medium
CN114448860A (en) * 2019-06-17 2022-05-06 华为技术有限公司 Method and device for processing message and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155135A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Method and device for flooding autonomous system border router ability information
CN101369958A (en) * 2007-08-15 2009-02-18 华为技术有限公司 Fast rerouting method and label exchange router
CN102833157A (en) * 2012-08-10 2012-12-19 华为技术有限公司 Method and device for eliminating media access control withdrawal message concussion in VPLS (virtual private LAN service)
WO2013181130A1 (en) * 2012-05-30 2013-12-05 Alcatel-Lucent Usa Inc. System and method for managing mpls-te overload

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610205B (en) * 2008-06-20 2015-04-08 华为技术有限公司 Method for obtaining path, transmitting equipment, receiving equipment and network system
US9019865B2 (en) * 2011-03-04 2015-04-28 Juniper Networks, Inc. Advertising traffic engineering information with the border gateway protocol
US20160094439A1 (en) * 2014-09-26 2016-03-31 Futurewei Technologies, Inc. Method and apparatus for interface capability and elastic content response encoding in information centric networking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155135A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Method and device for flooding autonomous system border router ability information
CN101369958A (en) * 2007-08-15 2009-02-18 华为技术有限公司 Fast rerouting method and label exchange router
WO2013181130A1 (en) * 2012-05-30 2013-12-05 Alcatel-Lucent Usa Inc. System and method for managing mpls-te overload
CN102833157A (en) * 2012-08-10 2012-12-19 华为技术有限公司 Method and device for eliminating media access control withdrawal message concussion in VPLS (virtual private LAN service)

Also Published As

Publication number Publication date
CN107181689B (en) 2021-09-14
CN107181689A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
KR102415794B1 (en) A method for establishing segment routing for ipv6 tunnel
EP3016323B1 (en) Service transmission path determination method, device and system
EP2996287B1 (en) Method for notifying information of pe device and pe device
US11627070B2 (en) Data packet processing method and apparatus, storage medium, and electronic device
WO2021043086A1 (en) Method, device and system for establishing sbfd session
US10439880B2 (en) Loop-free convergence in communication networks
WO2017152585A1 (en) Method and device for message exchange between routers
WO2018210225A1 (en) Method and device for automatically implementing ioam encapsulation, and storage medium
CN112187647B (en) Message forwarding method, message forwarding equipment and computer readable storage medium
WO2017036180A1 (en) Packet processing method and device
KR20140116196A (en) Ring network label switch path creating method, related device and communication system
WO2015035616A1 (en) Method and device for cross-network communications
WO2017211164A1 (en) Method, apparatus, and system for determining inter-as label switched path tunnel
WO2018188663A1 (en) Method and device for information notification
WO2022001365A1 (en) Information exchange and tunnel establishment methods, apparatuses, communication nodes, and storage medium
EP4030703A1 (en) Routing control method and apparatus
KR102271639B1 (en) Method and device for modular orientation of AVB streams
EP3203685A1 (en) Method and apparatus for implementing operations, administration and maintenance function
WO2006102851A1 (en) A method for informing and negotiating the monitor ability of the label switching capability
WO2013013642A1 (en) Method for processing inter-loop service and crossing node
JP2022522175A (en) Systems and methods for handling IGP flooding topology inconsistencies
CN111464440A (en) Communication method and device
WO2014029287A1 (en) Method and device for sharing tunnel load
CN107231249B (en) Method for acquiring physical topology information of forwarding node, controller and forwarding node
WO2020063765A1 (en) Cross-domain bidirectional tunnel creation method, communication method and apparatus, and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16893230

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16893230

Country of ref document: EP

Kind code of ref document: A1