WO2009012695A1 - A method and device for transmitting protocol information - Google Patents

A method and device for transmitting protocol information Download PDF

Info

Publication number
WO2009012695A1
WO2009012695A1 PCT/CN2008/071656 CN2008071656W WO2009012695A1 WO 2009012695 A1 WO2009012695 A1 WO 2009012695A1 CN 2008071656 W CN2008071656 W CN 2008071656W WO 2009012695 A1 WO2009012695 A1 WO 2009012695A1
Authority
WO
WIPO (PCT)
Prior art keywords
header
protocol information
ipv6 packet
node
ipv6
Prior art date
Application number
PCT/CN2008/071656
Other languages
French (fr)
Chinese (zh)
Inventor
Yuanlong Jiang
Yang Yang
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009012695A1 publication Critical patent/WO2009012695A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for transmitting protocol information, and a method and apparatus for receiving protocol information.
  • IPv4 Internet Protocol Version 6, Internet Protocol version 6
  • IPv6 Internet Protocol Version 6, Internet Protocol version 6
  • FIG. 1 is an IPv6 packet format that contains a basic header and an optional number of extended headers, as well as optional upper layer protocol payloads.
  • the basic header consists of the version number (value is fixed to 6), stream type, stream label, PL (Playload Leng th, payload length), should (Next Header, next header), HL ( Hop Limi t , path segment limit ), source address, destination address consists of 8 fields.
  • IPv6 extension headers including: hop-by-hop option header, destination option header, routing header, fragment header, authentication header, encapsulating security payload header, ⁇ H (No Next Header, an IPv6 extension header), etc. They can be combined into an IPv6 packet according to certain rules. Whether it is a basic header or an extended header, the Next Header field indicates the extended header type or upper protocol type that follows.
  • IPv6 is the basic technology of the next generation Internet.
  • the prior art proposes a number of extension protocols for it. Usually, these protocols need to define their own signaling information. See Figure 2, which shows a typical protocol information encapsulation format.
  • IP telecommunications networks are likely to become the future direction of telecommunications networks.
  • IPv6 itself
  • the 0AM (Operation Management and Maintenance) function required by the telecommunication network cannot be supported.
  • 0AM is a tool for monitoring and resolving network problems. It reports the status of the network, enabling network administrators to manage the network more efficiently, including link performance monitoring, fault detection and alerting, loop testing, and remote MIB (Management Information Base) variable requests.
  • MIB Management Information Base
  • 0AM includes basic 0AM connection, link monitoring, remote fault diagnosis, remote loopback and remote MIB variable requests. Summary of the invention
  • the embodiment of the invention provides a method for transmitting protocol information, for example: protocol information of the 0AM function required for transmitting a telecommunication network.
  • an embodiment of the present invention provides a method, a receiving method, and a network node for transmitting protocol information, and the technical solution is as follows:
  • an embodiment of the present invention provides a method for sending protocol information, where the method includes: constructing protocol information;
  • IPv6 packet header forms an IPv6 packet, and marking the IPv6 packet as an IPv6 empty packet in the IPv6 packet header;
  • a node that processes the protocol information needs to be parsed on the IPv6 packet header identification transmission path, and the IPv6 packet is sent out.
  • the embodiment of the present invention further provides a method for receiving protocol information, where the method includes: receiving an IPv6 packet;
  • IPv6 packet Determining, if the IPv6 packet is an IPv6 null packet, determining whether the IPv6 packet includes protocol information, and determining, according to the header of the IPv6 packet, whether the current node that receives the IPv6 packet is parsing and processing the protocol information.
  • the IPv6 packet is parsed, and the protocol information is parsed and processed.
  • An embodiment of the present invention further provides an apparatus for transmitting protocol information, where the apparatus includes: a protocol information construction module for constructing protocol information;
  • a packet header construction module for constructing an IPv6 packet header
  • a packet construction module configured to join the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and mark the IPv6 packet as an IPv6 empty packet in the IPv6 packet header;
  • a sending module configured to: in the IPv6 packet header identifier transmission path, parse the node that processes the protocol information, and send the IPv6 packet.
  • An embodiment of the present invention further provides an apparatus for receiving protocol information, where the apparatus includes: a receiving module, configured to receive an IPv6 packet;
  • a first determining module configured to determine, according to whether the basic header payload length field of the IPv6 packet is greater than a length of all extended headers, whether the IPv6 packet is included in the protocol information when the IPv6 packet is an IPv6 null packet IPv6 packet;
  • a second determining module configured to: when the first determining module determines that the IPv6 packet is a packet that includes protocol information, determine, according to a header of the IPv6 packet, whether the current node is a node that parses the protocol information;
  • the parsing processing module is configured to parse the IPv6 packet when the IPv6 packet includes protocol information, and parse and process the protocol information.
  • the above embodiment of the present invention enhances the transmission function of the protocol information by using the IPv6 null packet feature by directly encapsulating the extended protocol information into the payload area after the header of the IPv6 packet, and is backward compatible with the conventional IPv6 protocol, and the extended protocol information. It can be transparently transmitted on the intermediate nodes of traditional IPv6 routers, thus ensuring network interoperability, and it is easier to implement without IETF assigning new Next Header types or adding new option data types. Based on this method, complex protocol information can be constructed, and the simplicity of the form and the ease of analysis are maintained, and the forwarding speed is improved.
  • IPv6 is a schematic diagram of a packet format of IPv6 in the prior art
  • FIG. 2 is a schematic diagram of a typical protocol information encapsulation format
  • 3 is a schematic diagram of an IPv6 packet including protocol information according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of a method for transmitting protocol information according to Embodiment 1 of the present invention
  • FIG. 5 is a flowchart of a method for receiving protocol information according to Embodiment 1 of the present invention.
  • FIG. 6 is a flow chart of receiving processing of any IPv6 packet according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic diagram of a transmission protocol information apparatus according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic diagram of a receiving protocol information apparatus according to Embodiment 5 of the present invention.
  • the Next Header field of the IPv6 base header or any extension header is 59, it means that there is nothing after the header, so this header type actually defines an empty packet. It also states that any such null packet, even if its IPv6 payload length indicates that there are extra bytes thereafter, should ignore the bytes and forward the packet unchanged.
  • Embodiment 1 of the present invention provides a method for transmitting protocol information.
  • an IPv6 packet is configured as a null packet, wherein the IPv6 packet includes the protocol information. details as follows:
  • Step 101 Construct protocol information.
  • the format of the protocol information is as shown in Fig. 2.
  • the present invention does not limit the configuration format of the protocol information, and any application that satisfies the configuration requirements of the protocol information itself and is arbitrarily expanded as needed is applicable to the present invention.
  • Protocol type, version, and protocol function number are defined according to the content of the protocol information that needs to be transmitted, and the above three pieces of information are used as the header of the protocol information format, followed by the data for placing the protocol information.
  • Step 102 Construct an IPv6 packet header.
  • the load length field value of the basic header of the IPv6 packet is set equal to the sum of the lengths of all extension headers and the protocol information.
  • the packet header can be the IPv6 basic header, or the IPv6 basic header and the IPv6-compliant protocol. A combination of extended headers.
  • Step 103 Add the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and mark the IPv6 packet as an IPv6 empty packet in the IPv6 packet header; if there is no extension header, The Next Header field of the basic header of the IPv6 packet is set to 59 (when there is no extension header), and if so, the Next Header field of the last extended header is set to 59, so that the IPv6 packet is an IPv6 empty packet.
  • the protocol information is encapsulated in the format shown in Figure 2 and placed in the payload area of the IPv6 packet.
  • Figure 3 shows a schematic diagram of an IPv6 packet containing protocol information.
  • the left picture is the payload area after the protocol information is directly encapsulated in the basic header, and the right picture is the payload area after the protocol information is encapsulated in the extension header.
  • the protocol information is 0AM protocol information
  • the 0AM protocol information is encapsulated and placed in the payload area of the IPv6 null packet.
  • the payload length field value of the basic header of the constructed IPv6 packet can reflect the sum of the length of the 0AM protocol information carried and the length of all the extension headers of the packet.
  • Step 104 The node that needs to parse the protocol information needs to be parsed on the IPv6 packet header identifier transmission path, and send the IPv6 packet.
  • the flow label of the basic header is used to identify a node that parses the protocol information, or when the IPv6 packet includes both the basic header and other types of extension headers,
  • the header is extended to identify the node that parses the protocol information.
  • an IPv6 packet includes both a basic header and other types of extension headers, there are the following cases, and embodiments of the present invention are not limited to the following cases in which an extension header is used.
  • the identifier is transmitted. All nodes on the transport path are nodes that resolve the protocol information; or
  • the identifier destination node is a node that parses the protocol information
  • the node specified by the routing header is identified as a node that parses the protocol information.
  • FIG. 5 it is a flowchart of a method for receiving protocol information according to Embodiment 2 of the present invention, where the receiving method specifically includes:
  • Step 201 Receive an IPv6 packet.
  • Step 202 When the received IPv6 packet is an IPv6 null packet, determine whether the IPv6 packet includes protocol information, and determine, according to the header of the IPv6 packet, whether the current node that receives the IPv6 packet is an analysis processing station. a node describing the protocol information;
  • the IPv6 packet when the IPv6 packet has a header with a Header value of 59, the IPv6 packet is an IPv6 null packet.
  • IPv6 packet includes protocol information, specifically: when the IPv6 packet is an IPv6 null packet, and when a payload length field of a basic header of the IPv6 packet is equal to a sum of lengths of all extended headers and the protocol information
  • the IPv6 packet contains protocol information.
  • Step 203 When it is determined that the current node is a node that parses the protocol information, parsing the IPv6 packet, and parsing and processing the protocol information.
  • the step of determining whether the current node is a node for parsing the protocol information includes:
  • the flow label of the basic header of the IPv6 packet identifies whether the current node is a node that parses the protocol information
  • the IPv6 packet When the IPv6 packet includes both the basic header and other types of extension headers, it is identified according to the extended header used whether the current node is a node that parses the protocol information. For example: when the extended header included in the IPv6 packet is a directory header and a header, the current node is a node that parses the protocol information; or
  • the current node is a node that parses the protocol information
  • the current node is a node that parses the protocol information.
  • the process of receiving and processing the IPv6 packet in Embodiment 3 of the present invention is as follows:
  • the received IPv6 packet is an IPv6 empty packet, it is determined whether the IPv6 packet includes protocol information, and when the IPv6 packet does not include protocol information, determining whether the current node is a destination node, and completing processing of the IPv6 packet, Otherwise, the IPv6 packet is directly forwarded; or, when the received IPv6 packet is not a null packet, and any of the headers identifies that the IPv6 packet includes upper layer protocol information, the upper layer protocol information is processed;
  • IPv6 packet is an IPv6 null packet and contains protocol information
  • the header of the IPv6 packet it is determined whether the current node is a node that parses the protocol information.
  • the protocol information is parsed.
  • the IPv6 packet is directly forwarded.
  • Embodiment 4 of the present invention further provides an apparatus for transmitting protocol information, where the apparatus includes:
  • protocol information construction module 101 configured to construct protocol information
  • a packet header construction module 102 configured to construct an IPv6 packet header
  • a packet construction module 103 configured to join the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and mark, in the IPv6 packet header, the IPv6 packet as an IPv6 empty packet;
  • the sending module 104 is configured to: in the IPv6 packet header identifier transmission path, a node that needs to parse the protocol information, and send the IPv6 packet.
  • the packet header construction module 102 includes:
  • a first padding unit configured to fill a Next Header field of the header of the IPv6 packet, where the IPv6 packet is an IPv6 empty packet;
  • a second padding unit configured to fill a payload length field of a header of the IPv6 packet.
  • the sending module 104 further includes:
  • a node identification unit configured to use a flow label of the basic header to identify a node that parses the protocol information when the IPv6 packet includes only a basic header, or when an IPv6 packet includes a basic header and other types of extended headers simultaneously And for identifying, by using the extended header used, a node that parses the protocol information.
  • an IPv6 packet includes both a basic header and other types of extension headers
  • the node for identifying all nodes on the transmission path for parsing the protocol information is a hop-by-hop option header and a header, the node for identifying all nodes on the transmission path for parsing the protocol information; or
  • extension header included in the IPv6 packet is a destination option header and a header, and is used to identify that the destination node is a node that parses the protocol information;
  • the node designated by the routing header is used to parse the protocol information.
  • the embodiment 5 of the present invention further provides an apparatus for receiving protocol information, where the apparatus includes:
  • the receiving module 201 is configured to receive an IPv6 packet.
  • the first determining module 202 is configured to: when the IPv6 packet is an IPv6 empty packet, according to the IPv6 Whether the basic header payload length field of the packet is greater than the sum of the lengths of all extension headers
  • IPv6 packet is an IPv6 packet containing protocol information
  • the second determining module 203 is configured to: when the first determining module determines that the IPv6 packet is a packet that includes protocol information, determine, according to a header of the IPv6 packet, whether the current node is a node that parses the protocol information;
  • the parsing processing module 204 is configured to parse the IPv6 packet when the IPv6 packet includes protocol information, and parse and process the protocol information.
  • the parsing processing module 204 parses the received packet and extracts the protocol information.
  • the current node is a node that parses the protocol information but is not a destination node, after parsing the protocol information, forwarding the IPv6 packet, or when the current node is not parsing the When the node of the protocol information is not the destination node, the IPv6 packet is directly forwarded until the current node is the destination node.
  • the second determining module 203 specifically includes:
  • An information extraction module configured to extract header information in the IPv6 packet
  • a node determining module configured to determine, according to an identifier of a basic header flow label of the IPv6 packet, whether the current node is a node that parses the protocol information, when the IPv6 packet includes only a basic header;
  • IPv6 packet When the IPv6 packet includes both the basic header and other types of extension headers, it is used to determine whether the current node is a node that parses the protocol information according to the identifier of the extended header used.
  • the method for determining whether the current node is the node for parsing the protocol information according to the header of the IPv6 packet includes the following cases.
  • the embodiment of the present invention is not limited to the following cases where the extended header is used.
  • the extended header included in the IPv6 packet is a hop-by-hop option header and a ⁇ H header
  • the current node is a node that parses the protocol information; or
  • the current node is a node that parses the protocol information
  • the current node is a node that parses the protocol information.
  • the embodiment of the present invention provides a method for transmitting protocol information, and by using the IPv6 null packet feature, the protocol information is directly encapsulated into a payload area after the header of the IPv6 packet, and the protocol information is enhanced.
  • the transfer function, and the extended protocol information can be transparently transmitted on the intermediate nodes of the traditional IPv6 router, thereby ensuring the interoperability of the network, and the IETF does not need to allocate a new Next Header type or add a new option data type, which is easy to implement.
  • it can be fully compatible with the conventional IPv6 protocol, ensuring the interoperability of IPv6 compatible networks, and also ensuring the simplicity of the protocol information form and the ease of analysis, and improving the forwarding speed.

Landscapes

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

Abstract

It involves a method for transmitting and receiving protocol information and transmitting and receiving device in communication field. The transmitting method includes: constructing protocol information, constructing IPv6 grouping header, adding protocol information in the payload field of IPv6 grouping, and forming IPv6 grouping with IPv6 grouping header, and marking the IPv6 grouping as a null packet in the IPv6 grouping header, identifying the node which needs to analyze and process protocol information on communication path in the IPv6 grouping header, and sending out the IPv6 grouping. By IPv6 protocol extension, it is used to transmitting protocol information, and is compatible with normal IPv6 protocol, it can assure protocol information simple form and analyzing conveniently.

Description

一种发送协议信息的方法和装置 技术领域  Method and device for transmitting protocol information
本发明涉及通信领域, 特别涉及一种发送协议信息的方法和装置, 以及 一种接收协议信息的方法和装置。  The present invention relates to the field of communications, and in particular, to a method and apparatus for transmitting protocol information, and a method and apparatus for receiving protocol information.
背景技术 Background technique
目前 Internet主要釆用的还是 IPv4技术, 但是随着各种网络应用和业 务的迅速发展, 用户急剧增加, IPv4技术面临着一些难以克服的困难, 例如 IP地址的耗尽, 实时业务 QoS ( Qua l i ty of Service , 服务质量) 的支持差 等方面的不足。 而 IPv6技术在地址数量、 安全性、 服务质量、 移动性等方面 具有明显的优势。 因此, 釆用 IPv6 ( Internet Protocol Version 6, 互联网协议 第 6版)的网络将比现有的 IPv4网络扩展性更好、 更容易为用户提供 QoS业 务。  At present, the Internet mainly uses IPv4 technology. However, with the rapid development of various network applications and services, users have increased dramatically. IPv4 technology faces some difficult difficulties, such as exhaustion of IP addresses and real-time service QoS (Qua li Ty of Service, quality of service) lack of support and other aspects. IPv6 technology has obvious advantages in terms of address quantity, security, quality of service, mobility, and so on. Therefore, networks using IPv6 (Internet Protocol Version 6, Internet Protocol version 6) will be more scalable and easier to provide QoS services to users than existing IPv4 networks.
参见图 1 , 它是 IPv6的分组格式, 包含一个基本首部和可选个数的扩展 首部, 以及可选的上层协议载荷。 其中, 基本首部由版本号(数值固定为 6 )、 信流类型、 流标签、 PL ( Playload Leng th, 载荷长度)、 應 ( Next Header , 下一首部)、 HL ( Hop Limi t , 路径段限制)、 源地址、 目的地址 8个字段组成。 而 IPv6扩展首部有很多种, 其中包括: 逐跳选项首部、 目的选项首部、 路由 首部、 分片首部、 认证首部、 封装安全载荷首部、 匪 H ( No Next Header , 一种 IPv6扩展首部 )等等,它们可按照一定的规则组合到一个 IPv6分组中。 无论是基本首部还是扩展首部, 其中的 Next Header 字段都指示其后所跟的 扩展首部类型或者上层协议类型。  See Figure 1, which is an IPv6 packet format that contains a basic header and an optional number of extended headers, as well as optional upper layer protocol payloads. The basic header consists of the version number (value is fixed to 6), stream type, stream label, PL (Playload Leng th, payload length), should (Next Header, next header), HL ( Hop Limi t , path segment limit ), source address, destination address consists of 8 fields. There are many IPv6 extension headers, including: hop-by-hop option header, destination option header, routing header, fragment header, authentication header, encapsulating security payload header, 匪H (No Next Header, an IPv6 extension header), etc. They can be combined into an IPv6 packet according to certain rules. Whether it is a basic header or an extended header, the Next Header field indicates the extended header type or upper protocol type that follows.
IPv6作为下一代因特网的基础技术, 现有技术针对它提出了不少的扩展 协议, 通常这些协议都需要定义自己的信令信息。 参见图 2 , 它给出了一种典 型的协议信息封装格式。  IPv6 is the basic technology of the next generation Internet. The prior art proposes a number of extension protocols for it. Usually, these protocols need to define their own signaling information. See Figure 2, which shows a typical protocol information encapsulation format.
IP电信网很有可能成为未来的电信网络发展方向。 然而, 目前 IPv6本身 尚不能支持电信网络所需要的 0AM( Operat ion Admini s trat ion Ma intenance, 运营管理维护)功能。 0AM是监控和解决网络问题的工具。 它能够报告网络的 状态, 使网络管理员能够更有效地管理网络, 包括链路性能监测、 故障侦测 和告警、 环路测试、 远程 MIB ( Management Informat ion Base, 管理信息库) 变量请求。 0AM作为一种设备互操作、 互维护的通用机制, 其基本操作包括建 立 0AM连接、 链路监控、 远端故障诊断、 远程环回和远程 MIB变量请求。 发明内容 IP telecommunications networks are likely to become the future direction of telecommunications networks. However, currently IPv6 itself The 0AM (Operation Management and Maintenance) function required by the telecommunication network cannot be supported. 0AM is a tool for monitoring and resolving network problems. It reports the status of the network, enabling network administrators to manage the network more efficiently, including link performance monitoring, fault detection and alerting, loop testing, and remote MIB (Management Information Base) variable requests. As a general mechanism for interoperability and mutual maintenance of devices, 0AM includes basic 0AM connection, link monitoring, remote fault diagnosis, remote loopback and remote MIB variable requests. Summary of the invention
本发明实施例提供了一种发送协议信息的方法, 例如: 发送电信网络所 需要的 0AM功能的协议信息。  The embodiment of the invention provides a method for transmitting protocol information, for example: protocol information of the 0AM function required for transmitting a telecommunication network.
为了解决上述问题, 本发明实施例提供了一种发送协议信息的方法、 接 收方法和网络节点, 技术方案如下:  In order to solve the above problem, an embodiment of the present invention provides a method, a receiving method, and a network node for transmitting protocol information, and the technical solution is as follows:
首先, 本发明实施例提供了一种发送协议信息的方法, 所述方法包括: 构造协议信息;  First, an embodiment of the present invention provides a method for sending protocol information, where the method includes: constructing protocol information;
构造 IPv6分组首部;  Construct an IPv6 packet header;
在 IPv6分组的净荷区加入所述协议信息,和所述 IPv6分组首部构成 IPv6 分组, 并在所述 IPv6分组首部标记所述 IPv6分组为 IPv6空包;  Adding the protocol information to a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and marking the IPv6 packet as an IPv6 empty packet in the IPv6 packet header;
在所述 IPv6 分组首部标识传输路径上需要解析处理所述协议信息的节 点, 将所述 IPv6分组发送出去。  A node that processes the protocol information needs to be parsed on the IPv6 packet header identification transmission path, and the IPv6 packet is sent out.
本发明实施例还提供了一种接收协议信息的方法, 所述方法, 包括: 接收 IPv6分组;  The embodiment of the present invention further provides a method for receiving protocol information, where the method includes: receiving an IPv6 packet;
当所述 IPv6分组为 IPv6空包时,确定所述 IPv6分组是否包含协议信息, 是则根据所述 IPv6分组的首部, 确定接收到所述 IPv6分组的当前节点是否 为解析处理所述协议信息的节点;  Determining, if the IPv6 packet is an IPv6 null packet, determining whether the IPv6 packet includes protocol information, and determining, according to the header of the IPv6 packet, whether the current node that receives the IPv6 packet is parsing and processing the protocol information. Node
当确定当前节点为解析处理所述协议信息的节点时 ,解析所述 IPv6分组 , 并解析处理所述协议信息。  When it is determined that the current node is a node that parses the protocol information, the IPv6 packet is parsed, and the protocol information is parsed and processed.
本发明实施例还提供了一种发送协议信息的装置, 所述装置包括: 协议信息构造模块, 用于构造协议信息; An embodiment of the present invention further provides an apparatus for transmitting protocol information, where the apparatus includes: a protocol information construction module for constructing protocol information;
分组首部构造模块, 用于构造 IPv6分组首部;  a packet header construction module for constructing an IPv6 packet header;
分组构造模块,用于在 IPv6分组的净荷区加入所述协议信息,和所述 IPv6 分组首部构成 IPv6分组,并在所述 IPv6分组首部标记所述 IPv6分组为 IPv6 空包;  a packet construction module, configured to join the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and mark the IPv6 packet as an IPv6 empty packet in the IPv6 packet header;
发送模块, 用于在所述 IPv6分组首部标识传输路径上需要解析处理所述 协议信息的节点, 将所述 IPv6分组发送出去。  And a sending module, configured to: in the IPv6 packet header identifier transmission path, parse the node that processes the protocol information, and send the IPv6 packet.
本发明实施例还提供了一种接收协议信息的装置, 所述装置包括: 接收模块, 用来接收 IPv6分组;  An embodiment of the present invention further provides an apparatus for receiving protocol information, where the apparatus includes: a receiving module, configured to receive an IPv6 packet;
第一判断模块, 用来当所述 IPv6分组为 IPv6空包时, 才艮据所述 IPv6分 组的基本首部载荷长度字段是否大于所有扩展首部的长度之和判断所述 IPv6 分组是否为包含协议信息的 IPv6分组;  a first determining module, configured to determine, according to whether the basic header payload length field of the IPv6 packet is greater than a length of all extended headers, whether the IPv6 packet is included in the protocol information when the IPv6 packet is an IPv6 null packet IPv6 packet;
第二判断模块, 用于当第一判断模块判断所述 IPv6分组为包含协议信息 的分组时, 根据所述 IPv6分组的首部判断当前节点是否为解析处理所述协议 信息的节点;  a second determining module, configured to: when the first determining module determines that the IPv6 packet is a packet that includes protocol information, determine, according to a header of the IPv6 packet, whether the current node is a node that parses the protocol information;
解析处理模块, 用来当所述 IPv6 分组包含协议信息时, 解析所述 IPv6 分组, 并解析处理所述协议信息。  The parsing processing module is configured to parse the IPv6 packet when the IPv6 packet includes protocol information, and parse and process the protocol information.
本发明以上实施例通过将扩展协议信息直接封装到 IPv6分组的首部之后 的净荷区, 利用 IPv6空包特性, 增强协议信息的传送功能, 它向后兼容常规 的 IPv6协议, 并且扩展的协议信息在传统 IPv6路由器的中间节点上可以透 明传输, 从而能够保证网络的互通性, 而且无需 IETF分配新的 Next Header 类型或者增加新的选项数据类型, 因此更容易推行。 基于该方法能够构造复 杂的协议信息, 并保持形式的简单性和解析的简易性, 提高了转发速度。 附图说明  The above embodiment of the present invention enhances the transmission function of the protocol information by using the IPv6 null packet feature by directly encapsulating the extended protocol information into the payload area after the header of the IPv6 packet, and is backward compatible with the conventional IPv6 protocol, and the extended protocol information. It can be transparently transmitted on the intermediate nodes of traditional IPv6 routers, thus ensuring network interoperability, and it is easier to implement without IETF assigning new Next Header types or adding new option data types. Based on this method, complex protocol information can be constructed, and the simplicity of the form and the ease of analysis are maintained, and the forwarding speed is improved. DRAWINGS
图 1为现有技术中 IPv6的分组格式示意图;  1 is a schematic diagram of a packet format of IPv6 in the prior art;
图 2为一种典型的协议信息封装格式示意图; 图 3为根据本发明实施例 1提供的包含协议信息的 IPv6分组示意图; 图 4为根据本发明实施例 1提供的发送协议信息方法流程图; 2 is a schematic diagram of a typical protocol information encapsulation format; 3 is a schematic diagram of an IPv6 packet including protocol information according to Embodiment 1 of the present invention; FIG. 4 is a flowchart of a method for transmitting protocol information according to Embodiment 1 of the present invention;
图 5为根据本发明实施例 1提供的接收协议信息方法流程图;  FIG. 5 is a flowchart of a method for receiving protocol information according to Embodiment 1 of the present invention; FIG.
图 6为根据本发明实施例 3提供的对任意 IPv6分组进行接收处理的流程 图;  6 is a flow chart of receiving processing of any IPv6 packet according to Embodiment 3 of the present invention;
图 7为根据本发明实施例 4提供的发送协议信息装置示意图;  7 is a schematic diagram of a transmission protocol information apparatus according to Embodiment 4 of the present invention;
图 8为根据本发明实施例 5提供的接收协议信息装置示意图。  FIG. 8 is a schematic diagram of a receiving protocol information apparatus according to Embodiment 5 of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动的前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
根据 IPv6规范, 若 IPv6基本首部或者任何扩展首部的 Next Header字 段为 59 , 则表明在该首部之后没有任何东西, 因此这种首部类型实际上定义 了一种空包。 另外它还规定, 任何这种空包, 即使其 IPv6载荷长度表示其后 有额外字节, 也应该忽略这些字节并且无改变地转发该分组。  According to the IPv6 specification, if the Next Header field of the IPv6 base header or any extension header is 59, it means that there is nothing after the header, so this header type actually defines an empty packet. It also states that any such null packet, even if its IPv6 payload length indicates that there are extra bytes thereafter, should ignore the bytes and forward the packet unchanged.
如图 4所示, 本发明实施例 1提供了一种发送协议信息的方法。 为了传 送某种满足应用需求的协议信息, 根据本发明技术方案, 构造为空包的 IPv6 分组, 其中所述 IPv6分组包含所述协议信息。 具体如下:  As shown in FIG. 4, Embodiment 1 of the present invention provides a method for transmitting protocol information. In order to transmit some protocol information that satisfies the application requirements, according to the technical solution of the present invention, an IPv6 packet is configured as a null packet, wherein the IPv6 packet includes the protocol information. details as follows:
步骤 101 , 构造协议信息;  Step 101: Construct protocol information.
协议信息的格式如图 2 所示, 本发明不限制协议信息的构造格式, 任何 满足协议信息本身的构造要求, 并按照需要做任意扩展的形式应用于本发明 都在本发明保护之内。  The format of the protocol information is as shown in Fig. 2. The present invention does not limit the configuration format of the protocol information, and any application that satisfies the configuration requirements of the protocol information itself and is arbitrarily expanded as needed is applicable to the present invention.
其中, 协议类型、 版本、 协议功能号根据实际需要传输的协议信息内容 定义, 并将上述三个信息作为协议信息格式的头部, 其后跟着放置该协议信 息的数据。 步骤 102 , 构造 IPv6分组首部; The protocol type, version, and protocol function number are defined according to the content of the protocol information that needs to be transmitted, and the above three pieces of information are used as the header of the protocol information format, followed by the data for placing the protocol information. Step 102: Construct an IPv6 packet header.
设置 IPv6分组的基本首部的载荷长度字段值等于所有扩展首部和所述协 议信息的长度之和。  The load length field value of the basic header of the IPv6 packet is set equal to the sum of the lengths of all extension headers and the protocol information.
根据应用的需要, 可以选择是否使用符合 IPv6协议的扩展首部, 并选择 任何一种或多种扩展首部, 因此, 分组首部可以是 IPv6基本首部, 也可以是 IPv6基本首部和符合 IPv6协议规范的各种扩展首部的组合。  Depending on the needs of the application, you can choose whether to use the extended header that conforms to the IPv6 protocol and select any one or more extension headers. Therefore, the packet header can be the IPv6 basic header, or the IPv6 basic header and the IPv6-compliant protocol. A combination of extended headers.
步骤 103, 在 IPv6分组的净荷区加入所述协议信息, 和所述 IPv6分组首 部构成 IPv6分组, 并在所述 IPv6分组首部标记所述 IPv6分组为 IPv6空包; 如果没有扩展首部, 就将 IPv6分组的基本首部的 Next Header字段置为 59 (没有扩展头时), 如果有, 就将最后一个扩展首部的 Next Header字段置 为 59 , 从而该 IPv6分组为一个 IPv6空包。  Step 103: Add the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and mark the IPv6 packet as an IPv6 empty packet in the IPv6 packet header; if there is no extension header, The Next Header field of the basic header of the IPv6 packet is set to 59 (when there is no extension header), and if so, the Next Header field of the last extended header is set to 59, so that the IPv6 packet is an IPv6 empty packet.
其中, 协议信息用以如图 2所示的格式封装, 置于 IPv6分组的净荷区。 图 3所示为包含协议信息的 IPv6分组示意图。 其中左图是将该协议信息直接 封装在基本首部之后的净荷区, 右图是将该协议信息封装在扩展首部之后的 净荷区。 例如, 当协议信息为 0AM协议信息时, 将 0AM协议信息进行封装并 放置在 IPv6空包的净荷区。  The protocol information is encapsulated in the format shown in Figure 2 and placed in the payload area of the IPv6 packet. Figure 3 shows a schematic diagram of an IPv6 packet containing protocol information. The left picture is the payload area after the protocol information is directly encapsulated in the basic header, and the right picture is the payload area after the protocol information is encapsulated in the extension header. For example, when the protocol information is 0AM protocol information, the 0AM protocol information is encapsulated and placed in the payload area of the IPv6 null packet.
这时, 构造好的 IPv6 分组的基本首部的载荷长度字段值为能够反映所 携带的 0AM协议信息长度和该分组所有扩展首部长度的总和。  At this time, the payload length field value of the basic header of the constructed IPv6 packet can reflect the sum of the length of the 0AM protocol information carried and the length of all the extension headers of the packet.
步骤 104 , 在所述 IPv6分组首部标识传输路径上需要解析处理所述协议 信息的节点, 将所述 IPv6分组发送出去。  Step 104: The node that needs to parse the protocol information needs to be parsed on the IPv6 packet header identifier transmission path, and send the IPv6 packet.
例如, 当所述 IPv6分组只包括基本首部时, 利用所述基本首部的流标签 来标识解析处理所述协议信息的节点, 或者当 IPv6分组同时包括基本首部和 其它类型扩展首部时, 利用所用的扩展首部来标识解析处理所述协议信息的 节点。 例如, 当 IPv6分组同时包括基本首部和其它类型扩展首部时, 可以有 以下几种情况, 本发明实施例不限于以下的几种使用扩展首部的情况。  For example, when the IPv6 packet includes only the basic header, the flow label of the basic header is used to identify a node that parses the protocol information, or when the IPv6 packet includes both the basic header and other types of extension headers, The header is extended to identify the node that parses the protocol information. For example, when an IPv6 packet includes both a basic header and other types of extension headers, there are the following cases, and embodiments of the present invention are not limited to the following cases in which an extension header is used.
当所述 IPv6分组包括的扩展首部为逐 ϋ选项首部和 ΝΝΗ首部时, 标识传 输路径上所有节点为解析处理所述协议信息的节点; 或者 When the extended header included in the IPv6 packet is a directory header and a header, the identifier is transmitted. All nodes on the transport path are nodes that resolve the protocol information; or
当所述 IPv6分组包括的扩展首部为目的选项首部和匪 H首部, 标识目的 节点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is a destination option header and a 首H header, the identifier destination node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为路由扩展首部和匪 H首部, 标识由所 述路由首部指定的节点为解析处理所述协议信息的节点。  When the extended header included in the IPv6 packet is a route extension header and a 首H header, the node specified by the routing header is identified as a node that parses the protocol information.
如图 5所示, 为本发明实施例 2提供的一种接收协议信息的方法的流程 图, 所述接收方法具体包括:  As shown in FIG. 5, it is a flowchart of a method for receiving protocol information according to Embodiment 2 of the present invention, where the receiving method specifically includes:
步骤 201 , 接收 IPv6分组;  Step 201: Receive an IPv6 packet.
步骤 202 , 当接收到的 IPv6分组为 IPv6空包时, 确定所述 IPv6分组是 否包含协议信息, 是则根据所述 IPv6分组的首部, 确定接收到所述 IPv6分 组的当前节点是否为解析处理所述协议信息的节点;  Step 202: When the received IPv6 packet is an IPv6 null packet, determine whether the IPv6 packet includes protocol information, and determine, according to the header of the IPv6 packet, whether the current node that receives the IPv6 packet is an analysis processing station. a node describing the protocol information;
其中, 当所述 IPv6分组有任一首部的 Next Header值为 59时,所述 IPv6 分组为 IPv6空包。  Wherein, when the IPv6 packet has a header with a Header value of 59, the IPv6 packet is an IPv6 null packet.
继续判断所述 IPv6分组是否包含协议信息, 具体包括: 当所述 IPv6分 组为 IPv6空包时, 并且当所述 IPv6分组的基本首部的载荷长度字段等于所 有扩展首部和所述协议信息长度之和时, 所述 IPv6分组包含协议信息。  Continuing to determine whether the IPv6 packet includes protocol information, specifically: when the IPv6 packet is an IPv6 null packet, and when a payload length field of a basic header of the IPv6 packet is equal to a sum of lengths of all extended headers and the protocol information The IPv6 packet contains protocol information.
步骤 203, 当确定当前节点为解析处理所述协议信息的节点时, 解析所述 IPv6分组, 并解析处理所述协议信息。  Step 203: When it is determined that the current node is a node that parses the protocol information, parsing the IPv6 packet, and parsing and processing the protocol information.
其中, 判断当前节点是否为解析处理所述协议信息的节点的步骤又包 括:  The step of determining whether the current node is a node for parsing the protocol information includes:
提取所述 IPv6分组的首部;  Extracting a header of the IPv6 packet;
当所述 IPv6分组只包括基本首部时, 由所述 IPv6分组的基本首部的流 标签来标识所述当前节点是否为解析处理所述协议信息的节点;  When the IPv6 packet includes only the basic header, the flow label of the basic header of the IPv6 packet identifies whether the current node is a node that parses the protocol information;
或者  Or
当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 根据所用的 扩展首部来标识所述当前节点是否为解析处理所述协议信息的节点。 例如: 当所述 IPv6分组包括的扩展首部为逐 ϋ选项首部和匪 Η首部时, 则当前节点为解析处理所述协议信息的节点; 或者 When the IPv6 packet includes both the basic header and other types of extension headers, it is identified according to the extended header used whether the current node is a node that parses the protocol information. For example: when the extended header included in the IPv6 packet is a directory header and a header, the current node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为目的选项首部和匪 Η首部, 且当前节 点是目的节点时, 则当前节点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is a destination option header and a header, and the current node is a destination node, the current node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为路由扩展首部和匪 Η首部, 且当前节 点由所述路由首部指定, 则当前节点为解析处理所述协议信息的节点。  When the extended header included in the IPv6 packet is a route extension header and a header, and the current node is specified by the routing header, the current node is a node that parses the protocol information.
如图 6所示,对于任意一个 IPv6分组,本发明实施例 3接收处理所述 IPv6 分组的流程如下:  As shown in FIG. 6, for any one of the IPv6 packets, the process of receiving and processing the IPv6 packet in Embodiment 3 of the present invention is as follows:
接收 IPv6分组;  Receiving IPv6 packets;
判断所述 IPv6分组是否为 IPv6空包:  Determine whether the IPv6 packet is an IPv6 empty packet:
当接收到的 IPv6分组为 IPv6空包, 判断所述 IPv6分组是否包含协议信 息, 当所述 IPv6分组不包含协议信息时, 判断当前节点是否为目的节点, 是 则完成对该 IPv6分组的处理, 否则直接转发所述 IPv6分组; 或者, 当接收 到的 IPv6分组不为空包时, 且其任一首部标识所述 IPv6分组包含上层协议 信息时, 进行上层协议信息处理;  When the received IPv6 packet is an IPv6 empty packet, it is determined whether the IPv6 packet includes protocol information, and when the IPv6 packet does not include protocol information, determining whether the current node is a destination node, and completing processing of the IPv6 packet, Otherwise, the IPv6 packet is directly forwarded; or, when the received IPv6 packet is not a null packet, and any of the headers identifies that the IPv6 packet includes upper layer protocol information, the upper layer protocol information is processed;
当所述 IPv6分组为 IPv6空包并包含协议信息时, 根据所述 IPv6分组的 首部, 确定当前节点是否为解析处理所述协议信息的节点。  When the IPv6 packet is an IPv6 null packet and contains protocol information, according to the header of the IPv6 packet, it is determined whether the current node is a node that parses the protocol information.
当确定当前节点为解析处理所述协议信息的节点时, 解析处理所述协议 信息。  When it is determined that the current node is a node that parses the protocol information, the protocol information is parsed.
当前节点为传统的 IPv6路由器时, 直接转发所述 IPv6分组。  When the current node is a traditional IPv6 router, the IPv6 packet is directly forwarded.
判断所述 IPv6分组是否到达目的节点, 当到达当前节点为目的节点时, 完成对该 IPv6分组的处理, 否则将接着转发下去。  It is determined whether the IPv6 packet arrives at the destination node, and when the current node is the destination node, the processing of the IPv6 packet is completed, otherwise it will be forwarded.
参见图 7 , 本发明实施例 4还提供了一种发送协议信息的装置, 所述装置 包括:  Referring to FIG. 7, Embodiment 4 of the present invention further provides an apparatus for transmitting protocol information, where the apparatus includes:
协议信息构造模块 101 , 用于构造协议信息;  a protocol information construction module 101, configured to construct protocol information;
分组首部构造模块 102 , 用于构造 IPv6分组首部; 分组构造模块 103, 用于在 IPv6分组的净荷区加入所述协议信息, 和所 述 IPv6分组首部构成 IPv6分组, 并在所述 IPv6分组首部标记所述 IPv6分 组为 IPv6空包; a packet header construction module 102, configured to construct an IPv6 packet header; a packet construction module 103, configured to join the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and mark, in the IPv6 packet header, the IPv6 packet as an IPv6 empty packet;
发送模块 104 , 用于在所述 IPv6分组首部标识传输路径上需要解析处理 所述协议信息的节点, 将所述 IPv6分组发送出去。  The sending module 104 is configured to: in the IPv6 packet header identifier transmission path, a node that needs to parse the protocol information, and send the IPv6 packet.
如图 7所示, 所述分组首部构造模块 102包括:  As shown in FIG. 7, the packet header construction module 102 includes:
第一填充单元, 用于填充所述 IPv6分组的首部的 Next Header字段, 以 标己所述 IPv6分组为 IPv6空包;  a first padding unit, configured to fill a Next Header field of the header of the IPv6 packet, where the IPv6 packet is an IPv6 empty packet;
第二填充单元, 用于填充所述 IPv6分组的首部的载荷长度字段。  And a second padding unit, configured to fill a payload length field of a header of the IPv6 packet.
所述发送模块 104还包括:  The sending module 104 further includes:
节点标识单元, 当所述 IPv6分组只包括基本首部时, 用于利用所述基本 首部的流标签来标识解析处理所述协议信息的节点, 或者当 IPv6分组同时包 括基本首部和其它类型扩展首部时, 用于利用所用的扩展首部来标识解析处 理所述协议信息的节点。  a node identification unit, configured to use a flow label of the basic header to identify a node that parses the protocol information when the IPv6 packet includes only a basic header, or when an IPv6 packet includes a basic header and other types of extended headers simultaneously And for identifying, by using the extended header used, a node that parses the protocol information.
例如, 当 IPv6分组同时包括基本首部和其它类型扩展首部时, 可以有以 下几种情况, 本发明实施例不限于以下的几种使用扩展首部的情况。  For example, when an IPv6 packet includes both a basic header and other types of extension headers, there are several cases, and embodiments of the present invention are not limited to the following cases in which an extension header is used.
当所述 IPv6分组包括的扩展首部为逐跳选项首部和匪 Η首部时, 用于标 识传输路径上所有节点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is a hop-by-hop option header and a header, the node for identifying all nodes on the transmission path for parsing the protocol information; or
当所述 IPv6分组包括的扩展首部为目的选项首部和匪 Η首部, 用于标识 目的节点为解析处理所述协议信息的节点; 或者  And the extension header included in the IPv6 packet is a destination option header and a header, and is used to identify that the destination node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为路由扩展首部和匪 Η首部, 用于标识 由所述路由首部指定的节点为解析处理所述协议信息的节点。  When the IPv6 packet includes an extension header, the routing extension header and the header, the node designated by the routing header is used to parse the protocol information.
参见图 8 , 本发明实施例 5还提供了一种接收协议信息的装置, 所述装置 包括:  Referring to FIG. 8, the embodiment 5 of the present invention further provides an apparatus for receiving protocol information, where the apparatus includes:
接收模块 201 , 用来接收 IPv6分组;  The receiving module 201 is configured to receive an IPv6 packet.
第一判断模块 202 ,用来当所述 IPv6分组为 IPv6空包时,根据所述 IPv6 分组的基本首部载荷长度字段是否大于所有扩展首部的长度之和判断所述The first determining module 202 is configured to: when the IPv6 packet is an IPv6 empty packet, according to the IPv6 Whether the basic header payload length field of the packet is greater than the sum of the lengths of all extension headers
IPv6分组是否为包含协议信息的 IPv6分组; Whether the IPv6 packet is an IPv6 packet containing protocol information;
第二判断模块 203, 用于当第一判断模块判断所述 IPv6分组为包含协议 信息的分组时, 根据所述 IPv6分组的首部判断当前节点是否为解析处理所述 协议信息的节点;  The second determining module 203 is configured to: when the first determining module determines that the IPv6 packet is a packet that includes protocol information, determine, according to a header of the IPv6 packet, whether the current node is a node that parses the protocol information;
解析处理模块 204 ,用来当所述 IPv6分组包含协议信息时,解析所述 IPv6 分组, 并解析处理所述协议信息。  The parsing processing module 204 is configured to parse the IPv6 packet when the IPv6 packet includes protocol information, and parse and process the protocol information.
当当前节点为解析处理协议信息的节点时, 并且接收到的分组包含协议 信息时, 解析处理模块 204对接收到的分组进行解析, 并提取所述的协议信 息。  When the current node is a node that parses the protocol information, and the received packet contains protocol information, the parsing processing module 204 parses the received packet and extracts the protocol information.
当所述当前节点为为解析处理所述协议信息的节点但不为目的节点时, 所述解析处理协议信息后, 对所述 IPv6分组进行转发, 或者当所述当前节点 不为解析处理所述协议信息的节点且不为目的节点时, 直接转发所述 IPv6分 组, 直到所述当前节点是目的节点。  When the current node is a node that parses the protocol information but is not a destination node, after parsing the protocol information, forwarding the IPv6 packet, or when the current node is not parsing the When the node of the protocol information is not the destination node, the IPv6 packet is directly forwarded until the current node is the destination node.
如上所述的接收装置, 所述第二判断模块 203具体包括:  The receiving device, as described above, the second determining module 203 specifically includes:
信息提取模块, 用于提取所述 IPv6分组中的首部信息;  An information extraction module, configured to extract header information in the IPv6 packet;
节点判断模块, 用于当所述 IPv6分组只包括基本首部时,根据所述 IPv6 分组的基本首部流标签的标识判断所述当前节点是否为解析处理所述协议信 息的节点;  a node determining module, configured to determine, according to an identifier of a basic header flow label of the IPv6 packet, whether the current node is a node that parses the protocol information, when the IPv6 packet includes only a basic header;
或者,  Or,
当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 用于根据所 用的扩展首部的标识判断所述当前节点是否为解析处理所述协议信息的节 点。  When the IPv6 packet includes both the basic header and other types of extension headers, it is used to determine whether the current node is a node that parses the protocol information according to the identifier of the extended header used.
其中, 根据所述 IPv6分组的首部判断当前节点是否为解析处理所述协议 信息的节点, 包括以下几种情况, 本发明实施例不限于以下几种使用扩展首 部的情况。 当所述 IPv6分组包括的扩展首部为逐跳选项首部和匪 H首部时, 则当前 节点为解析处理所述协议信息的节点; 或者 The method for determining whether the current node is the node for parsing the protocol information according to the header of the IPv6 packet includes the following cases. The embodiment of the present invention is not limited to the following cases where the extended header is used. When the extended header included in the IPv6 packet is a hop-by-hop option header and a 匪H header, the current node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为目的选项首部和匪 H首部, 且当前节 点是目的节点时, 则当前节点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is the destination option header and the 匪H header, and the current node is the destination node, the current node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为路由扩展首部和匪 H首部, 且当前节 点由所述路由首部指定, 则当前节点为解析处理所述协议信息的节点。  When the extended header included in the IPv6 packet is a route extension header and a 首H header, and the current node is specified by the routing header, the current node is a node that parses the protocol information.
从上述实施方式的描述可以看出, 本发明实施例提供了一种方法来发送 协议信息, 通过利用 IPv6空包特性, 将协议信息直接封装到 IPv6分组的首 部之后的净荷区, 增强协议信息传送功能, 并且使得扩展的协议信息在传统 IPv6路由器的中间节点上可以透明传输, 从而能够保证网络的互通性, 而且 无需 IETF分配新的 Next Header类型或者增加新的选项数据类型, 艮容易推 行。 同时它能够完全兼容于常规的 IPv6协议, 保证 IPv6兼容网络的互通, 还可以保证协议信息形式的简单性和解析的简易性, 提高了转发速度。  As can be seen from the description of the foregoing embodiments, the embodiment of the present invention provides a method for transmitting protocol information, and by using the IPv6 null packet feature, the protocol information is directly encapsulated into a payload area after the header of the IPv6 packet, and the protocol information is enhanced. The transfer function, and the extended protocol information can be transparently transmitted on the intermediate nodes of the traditional IPv6 router, thereby ensuring the interoperability of the network, and the IETF does not need to allocate a new Next Header type or add a new option data type, which is easy to implement. At the same time, it can be fully compatible with the conventional IPv6 protocol, ensuring the interoperability of IPv6 compatible networks, and also ensuring the simplicity of the protocol information form and the ease of analysis, and improving the forwarding speed.

Claims

权 利 要求 书 Claim
1. 一种发送协议信息的方法, 其特征在于, 所述方法包括:  A method for transmitting protocol information, the method comprising:
构造协议信息;  Constructing protocol information;
构造 IPv6分组首部;  Construct an IPv6 packet header;
在 IPv6分组的净荷区加入所述协议信息, 和所述 IPv6分组首部构成 IPv6 分组, 并在所述 IPv6分组首部标记所述 IPv6分组为 IPv6空包;  Adding the protocol information in a payload area of the IPv6 packet, and the IPv6 packet header forms an IPv6 packet, and marking the IPv6 packet as an IPv6 empty packet in the IPv6 packet header;
在所述 IPv6分组首部标识传输路径上需要解析处理所述协议信息的节点, 将所述 IPv6分组发送出去。  A node that processes the protocol information needs to be parsed on the IPv6 packet header identification transmission path, and the IPv6 packet is sent out.
2. 根据权利要求 1所述的一种发送协议信息的方法, 其特征在于, 所述标 记所述 IPv6分组为 IPv6空包, 包括:  The method for transmitting protocol information according to claim 1, wherein the marking the IPv6 packet as an IPv6 empty packet comprises:
当所述 IPv6分组只包括基本首部时, 将所述基本首部的 Next Header字段 值设置为 59;  When the IPv6 packet includes only the basic header, setting the Next Header field value of the basic header to 59;
当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 将最后一个扩 展首部的 Next Header字段值设置为 59。  When the IPv6 packet includes both the basic header and other types of extension headers, the Next Header field value of the last extension header is set to 59.
3. 根据权利要求 2所述的一种发送协议信息的方法, 其特征在于, 所述构 造 IPv6分组首部, 包括:  The method for transmitting protocol information according to claim 2, wherein the constructing the IPv6 packet header comprises:
设置 IPv6分组的基本首部的载荷长度字段值等于所有扩展首部和所述协议 信息的长度之和。  The payload length field value of the basic header of the IPv6 packet is set equal to the sum of the lengths of all extension headers and the protocol information.
4. 根据权利要求 1所述的一种发送协议信息的方法, 其特征在于, 所述在 所述 IPv6分组首部标识传输路径上需要解析处理所述协议信息的节点, 包括: 当所述 IPv6分组只包括基本首部时, 设置基本首部的流标签以标识解析处 理所述协议信息的节点, 或者  The method for transmitting protocol information according to claim 1, wherein the node that needs to parse the protocol information on the IPv6 packet header identification transmission path comprises: when the IPv6 packet When only the basic header is included, the flow label of the basic header is set to identify the node that parses the protocol information, or
当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 根据所用的扩 展首部标识解析处理所述协议信息的节点。  When the IPv6 packet includes both the base header and other types of extension headers, the node that processes the protocol information is parsed according to the extended header identifier used.
5. 根据权利要求 4所述的一种发送协议信息的方法, 其特征在于, 所述当 所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 根据所用的扩展首部 标识解析处理所述协议信息的节点, 包括: The method for transmitting protocol information according to claim 4, wherein when the IPv6 packet includes a basic header and other types of extension headers, according to the extended header used The node that identifies and parses the protocol information includes:
当所述 IPv6分组包括的扩展首部为逐 ϋ选项首部和 ΝΝΗ首部时 , 标识传输 路径上所有节点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is an option header and a header, identifying all nodes on the transmission path as nodes for parsing the protocol information; or
当所述 IPv6分组包括的扩展首部为目的选项首部和匪 Η首部, 标识目的节 点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is a destination option header and a header, the identifier destination node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为路由扩展首部和匪 Η首部, 标识由所述 路由首部指定的节点为解析处理所述协议信息的节点。  When the extended header included in the IPv6 packet is a route extension header and a header, the node specified by the routing header is identified as a node that parses the protocol information.
6. 根据权利要求 1至 5任意一项所述的一种发送协议信息的方法, 其特征 在于, 所述协议信息为运营管理维护协议信息。  The method for transmitting protocol information according to any one of claims 1 to 5, wherein the protocol information is operation management and maintenance protocol information.
7. 一种接收协议信息的方法, 其特征在于, 所述方法包括:  A method for receiving protocol information, the method comprising:
接收 IPv6分组;  Receiving IPv6 packets;
当所述 IPv6分组为 IPv6空包时, 确定所述 IPv6分组是否包含协议信息, 是则根据所述 IPv6分组的首部, 确定接收到所述 IPv6分组的当前节点是否为 解析处理所述协议信息的节点;  Determining, if the IPv6 packet is an IPv6 null packet, determining whether the IPv6 packet includes protocol information, and determining, according to the header of the IPv6 packet, whether the current node that receives the IPv6 packet is parsing and processing the protocol information. Node
当确定当前节点为解析处理所述协议信息的节点时, 解析所述 IPv6分组, 并解析处理所述协议信息。  When it is determined that the current node is a node that parses the protocol information, the IPv6 packet is parsed, and the protocol information is parsed and processed.
8. 根据权利要求 7所述的一种接收协议信息的方法, 其特征在于, 所述确 定所述 IPv6分组是否包含协议信息的步骤, 包括:  The method for receiving protocol information according to claim 7, wherein the step of determining whether the IPv6 packet includes protocol information comprises:
判断所述 IPv6分组的基本首部的载荷长度字段是否等于所有扩展首部和所 述协议信息长度之和, 是则所述 IPv6分组包含协议信息。  It is judged whether the payload length field of the basic header of the IPv6 packet is equal to the sum of all extension headers and the length of the protocol information, and the IPv6 packet contains protocol information.
9. 根据权利要求 7所述的一种接收协议信息的方法, 其特征在于, 所述根 据所述 IPv6分组的首部, 确定接收到所述 IPv6分组的当前节点是否为解析处 理所述协议信息的节点的步骤, 包括:  The method for receiving protocol information according to claim 7, wherein, according to the header of the IPv6 packet, determining whether a current node that receives the IPv6 packet is parsing and processing the protocol information The steps of the node, including:
提取所述 IPv6分组的首部;  Extracting a header of the IPv6 packet;
当所述 IPv6分组只包括基本首部时, 根据所述 IPv6分组的基本首部的流 标签标识确认所述当前节点是否为解析处理所述协议信息的节点; 或者 When the IPv6 packet includes only the basic header, determining, according to the flow label identifier of the basic header of the IPv6 packet, whether the current node is a node that parses the protocol information; or
当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 根据扩展首部 的标识确认所述当前节点是否为解析处理所述协议信息的节点。  When the IPv6 packet includes both the basic header and other types of extension headers, it is confirmed according to the identifier of the extension header whether the current node is a node that parses the protocol information.
10. 根据权利要求 9 所述的一种接收协议信息的方法, 其特征在于, 所述 当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 根据所用的扩展首 部来标识所述当前节点是否为解析处理所述协议信息的节点, 包括:  The method for receiving protocol information according to claim 9, wherein when the IPv6 packet includes a basic header and other types of extension headers, the current node is identified according to an extended header used. Whether it is a node that parses the protocol information, including:
当所述 IPv6分组包括的扩展首部为逐跳选项首部和匪 H首部时, 则当前节 点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is a hop-by-hop option header and a 首H header, the current node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为目的选项首部和匪 H首部, 且当前节点 是目的节点时, 则当前节点为解析处理所述协议信息的节点; 或者  When the extended header included in the IPv6 packet is the destination option header and the 匪H header, and the current node is the destination node, the current node is a node that parses the protocol information; or
当所述 IPv6分组包括的扩展首部为路由扩展首部和匪 H首部, 且当前节点 由所述路由首部指定, 则当前节点为解析处理所述协议信息的节点。  When the extended header included in the IPv6 packet is a route extension header and a 首H header, and the current node is specified by the routing header, the current node is a node that parses the protocol information.
11. 根据权利要求 7至 10任意一项所述的一种接收协议信息的方法, 其特 征在于, 所述方法, 包括:  The method for receiving protocol information according to any one of claims 7 to 10, wherein the method comprises:
当所述当前节点解析处理所述协议信息后, 或者当所述当前节点不为解析 处理所述协议信息的节点时, 判断当前节点是否为目的节点, 是则完成对所述 IPv6分组的转发处理, 否则转发所述 IPv6分组。  After the current node parses the protocol information, or when the current node is not a node that parses the protocol information, it is determined whether the current node is a destination node, and then the forwarding process of the IPv6 packet is completed. , otherwise forward the IPv6 packet.
12. 根据权利要求 11所述的一种接收协议信息的方法, 其特征在于, 当判 断接收所述 IPv6分组的当前节点为传统的 IPv6路由器时, 直接转发所述 IPv6 分组。  The method for receiving protocol information according to claim 11, wherein when the current node that receives the IPv6 packet is determined to be a conventional IPv6 router, the IPv6 packet is directly forwarded.
1 3. 一种发送协议信息的装置, 其特征在于, 所述装置包括:  A device for transmitting protocol information, characterized in that the device comprises:
协议信息构造模块, 用于构造协议信息;  a protocol information construction module for constructing protocol information;
分组首部构造模块, 用于构造 IPv6分组首部;  a packet header construction module for constructing an IPv6 packet header;
分组构造模块, 用于在 IPv6分组的净荷区加入所述协议信息, 和所述 IPv6 分组首部构成 IPv6分组, 并在所述 IPv6分组首部标记所述 IPv6分组为 IPv6 空包; 发送模块, 用于在所述 IPv6分组首部标识传输路径上需要解析处理所述协 议信息的节点, 将所述 IPv6分组发送出去。 a packet construction module, configured to join the protocol information in a payload area of an IPv6 packet, and the IPv6 packet header constitutes an IPv6 packet, and mark the IPv6 packet as an IPv6 empty packet in the IPv6 packet header; And a sending module, configured to parse the node that processes the protocol information on the IPv6 packet header identifier transmission path, and send the IPv6 packet.
14. 根据权利要求 13所述的一种发送协议信息的装置, 其特征在于, 所述 分组首部构造模块包括:  14. The apparatus for transmitting protocol information according to claim 13, wherein the packet header construction module comprises:
第一填充单元, 用于填充所述 IPv6分组首部的 Next Header字段, 以标记 所述 IPv6分组为 IPv6空包;  a first padding unit, configured to fill a Next Header field of the IPv6 packet header, to mark the IPv6 packet as an IPv6 empty packet;
第二填充单元, 用于填充所述 IPv6分组的基本首部的载荷长度字段。 And a second padding unit, configured to fill a payload length field of a basic header of the IPv6 packet.
15. 根据权利要求 13所述的一种发送协议信息的装置, 其特征在于, 所述 发送模块还包括: The device for transmitting protocol information according to claim 13, wherein the sending module further comprises:
节点标识单元, 当所述 IPv6分组只包括基本首部时, 用于利用所述基本首 部的流标签来标识解析处理所述协议信息的节点, 或者当 IPv6分组同时包括基 本首部和其它类型扩展首部时, 用于利用所用的扩展首部来标识解析处理所述 协议信息的节点。  a node identification unit, configured to use a flow label of the basic header to identify a node that parses the protocol information when the IPv6 packet includes only a basic header, or when an IPv6 packet includes a basic header and other types of extended headers simultaneously And for identifying, by using the extended header used, a node that parses the protocol information.
16. 一种接收协议信息的装置, 其特征在于, 所述装置包括:  16. An apparatus for receiving protocol information, the apparatus comprising:
接收模块, 用来接收 IPv6分组;  a receiving module, configured to receive an IPv6 packet;
第一判断模块, 用来当所述 IPv6分组为 IPv6空包时, 根据所述 IPv6分组 的基本首部的载荷长度字段是否大于所有扩展首部的长度之和判断所述 IPv6分 组是否为包含协议信息的 IPv6分组;  a first determining module, configured to determine, according to whether a payload length field of a basic header of the IPv6 packet is greater than a length of all extended headers, whether the IPv6 packet is included in the protocol information when the IPv6 packet is an IPv6 null packet IPv6 packet;
第二判断模块, 用于当第一判断模块判断所述 IPv6分组为包含协议信息的 分组时, 根据所述 IPv6分组的首部判断接收到所述 IPv6分组的当前节点是否 为解析处理所述协议信息的节点;  a second determining module, configured to: when the first determining module determines that the IPv6 packet is a packet that includes protocol information, determine, according to a header of the IPv6 packet, whether the current node that receives the IPv6 packet is parsing and processing the protocol information Node
解析处理模块, 用来当所述 IPv6分组包含协议信息时, 解析所述 IPv6分 组, 并解析处理所述协议信息。  The parsing processing module is configured to parse the IPv6 packet when the IPv6 packet includes protocol information, and parse and process the protocol information.
17.根据权利要求 16 所述的一种接收协议信息的装置, 其特征在于, 所述 第二判断模块, 包括:  The device for receiving protocol information according to claim 16, wherein the second determining module comprises:
信息提取模块, 用于提取所述 IPv6分组中的首部信息; 节点判断模块, 用于当所述 IPv6 分组只包括基本首部时, 根据所述 IPv6 分组的基本首部流标签的标识判断所述当前节点是否为解析处理所述协议信息 的节点; 或者, 当所述 IPv6分组同时包括基本首部和其它类型扩展首部时, 用 于根据所用的扩展首部的标识判断所述当前节点是否为解析处理所述协议信息 的节点。 An information extraction module, configured to extract header information in the IPv6 packet; a node judging module, configured to: when the IPv6 packet includes only the basic header, determine, according to the identifier of the basic header flow label of the IPv6 packet, whether the current node is a node that parses the protocol information; or, when When the IPv6 packet includes the basic header and other types of extension headers, it is used to determine whether the current node is a node that parses the protocol information according to the identifier of the extended header used.
PCT/CN2008/071656 2007-07-20 2008-07-16 A method and device for transmitting protocol information WO2009012695A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710076084.7 2007-07-20
CN 200710076084 CN101350693B (en) 2007-07-20 2007-07-20 Method and apparatus for conveying protocol information

Publications (1)

Publication Number Publication Date
WO2009012695A1 true WO2009012695A1 (en) 2009-01-29

Family

ID=40269302

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071656 WO2009012695A1 (en) 2007-07-20 2008-07-16 A method and device for transmitting protocol information

Country Status (2)

Country Link
CN (1) CN101350693B (en)
WO (1) WO2009012695A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411930B (en) * 2016-11-09 2019-06-07 腾讯音乐娱乐(深圳)有限公司 A kind of protocol information executes method and its equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060262788A1 (en) * 2005-05-23 2006-11-23 Broadcom Corporation Dynamic payload header suppression extensions for IPV6
CN101001258A (en) * 2006-01-09 2007-07-18 三星电子株式会社 Device supporting mobile internet protocol version 6 (mobile IPv6)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1138391C (en) * 1999-07-14 2004-02-11 邮电部武汉邮电科学研究院 Frame encapsulation of adaptation method for making internet be compatible with synchronous digital system
JP3613102B2 (en) * 1999-12-14 2005-01-26 日本電気株式会社 Frame configuration method, frame configuration apparatus, and frame configuration transfer system
CN1177452C (en) * 2002-01-30 2004-11-24 华为技术有限公司 Method for transmission of protocol data unit information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060262788A1 (en) * 2005-05-23 2006-11-23 Broadcom Corporation Dynamic payload header suppression extensions for IPV6
CN101001258A (en) * 2006-01-09 2007-07-18 三星电子株式会社 Device supporting mobile internet protocol version 6 (mobile IPv6)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DEERING S. AND HINDEN R.: "Internet Protocol, Version 6(IPv6) Specification RFC 2460", December 1998 (1998-12-01), XP015008244 *
MA GUANGXING: "Use of IPv6 Extension Header", CHINA DATA COMMUNICATION, no. 10, October 2001 (2001-10-01), pages 41 - 52 *

Also Published As

Publication number Publication date
CN101350693A (en) 2009-01-21
CN101350693B (en) 2011-04-06

Similar Documents

Publication Publication Date Title
US8913623B2 (en) Method and apparatus for processing labeled flows in a communications access network
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US7486622B2 (en) OAM echo messaging to verify a service-based network distribution path
US7499445B2 (en) System and method for routing ISIS traffic through unidirectional links of a computer network
KR100454502B1 (en) Apparatus for providing QoS on IP router and method for forwarding VoIP traffic
JP5880570B2 (en) Mapping server device, network system, packet transfer method and program
US6895008B2 (en) Label switching router
CN108307434A (en) Method for flow control and equipment
WO2012106869A1 (en) Message processing method and related device thereof
JP2002344476A (en) Method for use in packet communication and edge switch
US9225622B2 (en) OAM echo messaging to verify a service-based network distribution path
WO2009012688A1 (en) Method, system and apparatus for forwarding message in three-layer virtual private network
WO2008080315A1 (en) A method, equipment and system for transmitting data
CN111491330B (en) Fusion networking method of SDN (software defined network) and wireless network
CN110474721A (en) Method of transmitting video data, device and computer readable storage medium
WO2017193732A1 (en) Method for encapsulating and decapsulating pseudo-wire data message, and relevant apparatus
JP2001168915A (en) Ip packet transfer system
US11165893B2 (en) Techniques for packet data conversion
WO2018000859A1 (en) Topology determination method, message response method, controller and switch
CN113055293A (en) Routing method and device in software defined wide area network and communication system
WO2011103761A1 (en) Data packet transmission method and access device
WO2011000330A1 (en) Method, device and system for measuring internet protocol network performance
WO2008034365A1 (en) Methods and a system and devices for ipv6 datagram transmission in the ethernet
WO2012000282A1 (en) Method for implementing time division multiplex (tdm) service relay in access device and access device thehrof
WO2021254454A1 (en) Bier oam detection method, and device and system

Legal Events

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

Ref document number: 08773196

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08773196

Country of ref document: EP

Kind code of ref document: A1