WO2012167477A1 - 一种IPv6报文处理方法及装置 - Google Patents

一种IPv6报文处理方法及装置 Download PDF

Info

Publication number
WO2012167477A1
WO2012167477A1 PCT/CN2011/077106 CN2011077106W WO2012167477A1 WO 2012167477 A1 WO2012167477 A1 WO 2012167477A1 CN 2011077106 W CN2011077106 W CN 2011077106W WO 2012167477 A1 WO2012167477 A1 WO 2012167477A1
Authority
WO
WIPO (PCT)
Prior art keywords
jump
header
ipv6
packet
offset
Prior art date
Application number
PCT/CN2011/077106
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN201180001655.5A priority Critical patent/CN103004166B/zh
Priority to PCT/CN2011/077106 priority patent/WO2012167477A1/zh
Publication of WO2012167477A1 publication Critical patent/WO2012167477A1/zh

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/22Parsing or analysis of headers

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a method and an apparatus for processing an IPv6 packet. Background technique
  • IPv6 Internet Protocol version 6
  • IPv4 Internet Protocol version 4
  • IPv6 is the underlying protocol for the next generation of Internet.
  • the IPv6 address is 128 bits long and the IPv6 address space is sufficient for fast-growing users.
  • IPv6 allows a set of extension headers to be defined to flexibly convey a variety of information.
  • IPv6 messages usually optional information is placed in the extension header.
  • An IPv6 packet is allowed to have zero, one or more extension headers.
  • the extension header is located after the IPv6 header. Each extension header points to the beginning of the next extension header, and the type of the next extension header is marked.
  • IPv6 packet header is processed directly, that is, the upper layer header is directly processed, that is, the transport layer protocol packet header is directly processed; when an IPv6 packet includes multiple extension headers, Each extension header must be processed in strict accordance with the order of the extension headers in the IPv6 message. For example, when a network device receives an IPv6 packet, the network device first processes the header of the IPv6 packet, and then checks each extension header one by one until the sequence tail of the extension header.
  • the sequence tail of the extended header may be a transport layer protocol packet header, an encapsulated IP packet header, or data information carried by the packet.
  • each extension header must strictly follow the order of the extension headers in the IPv6 packet. deal with.
  • some extension headers are not concerned or irrelevant to the receiver of the message, and the existing scheme cannot directly skip the extension headers and directly process the content of the message of interest to the receiver of the message. This is a very inefficient message processing method in many scenarios. Summary of the invention
  • the invention provides an IPv6 packet processing method, which can implement a fast jump when processing an IPv6 packet extension header, and further improve the efficiency of processing the IPv6 packet.
  • the method includes: receiving an IPv6 packet; when the extension header of the IPv6 packet is processed, the jump information included in the jump information is acquired, and the jump offset is processed After the amount of message content
  • Another aspect of the present invention provides an apparatus for processing an IPv6 packet, which can implement a fast jump when processing an IPv6 packet extension header, and further improve the efficiency of processing the IPv6 packet.
  • the device includes: a message receiving unit, configured to receive an IPv6 packet; and a message processing unit, configured to: when the extended header of the IPv6 packet is processed, includes a hop included in the jump information The offset amount is processed, and the content of the message after the jump offset is processed.
  • FIG. 1 is a flow chart of a method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a format of a new IPv6 extension header according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a format of a hop-by-hop extension header according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an IPv6 packet processing apparatus according to an embodiment of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart of a method according to an embodiment of the present invention, where the method includes:
  • the jump information included in the jump information is obtained, and the content of the packet after the jump offset is processed.
  • the jump information may be carried in a new IPv6 extension header, where the newly added IPv6 extension header is used to support fast jump of the extension header;
  • the newly added IPv6 extension header further includes an extended header type after the hopping; further, the newly added IPv6 extension header further includes information of the skipped extended header.
  • the jump information may also be carried in a hop-by-hop extension header. Specifically, the jump information is included in an option of the hop by hop option.
  • the jump information mentioned in the embodiment of the present invention includes at least a jump offset, and the size of the jump offset is set according to specific actual requirements, for example, the set offset can directly reach the transport layer.
  • the location of the protocol header that is, the content of the packet after processing the jump offset is to process the transport layer protocol header.
  • embodiments of the present invention may also cause the set offset to reach the location of other IPv6 extension headers that are actually needed. Specifically, how to set the starting position of the offset amount is not specifically limited in the embodiment of the present invention.
  • the tail of the extension header may be obtained according to the length information in the extension header.
  • FIG. 2 is a schematic diagram of a format of a new IPv6 extension header according to an embodiment of the present invention. among them, Next Header indicates the type of the next extension header;
  • Hdr Ext Len indicates the length of the new extension header
  • the specific type indicates the type of the extension header.
  • the embodiment of the present invention is not limited to the manner in which the extension header is used. As long as the type of the extension header is a fast jump that supports the extension header.
  • Offset represents the jump offset
  • the header of the extension header is the type of the extension header.
  • the extension header type after the jump may be a transport layer protocol packet header, or may be another IPv6 extension header, which is not limited in the embodiment of the present invention, and may be based on the packet. The specific requirements of the recipient's request.
  • FIG. 3 is a schematic diagram of a format of a hop-by-hop extension header according to an embodiment of the present invention.
  • Option Type is an option to expand the header hop by hop;
  • Opt Data Len indicates the length of the option
  • Offset represents the jump offset
  • the header of the extension header is the type of the extension header.
  • the extension header type after the jump may be a transport layer protocol packet header, or may be another IPv6 extension header, which is not limited in the embodiment of the present invention, and may be based on the packet. The specific requirements of the recipient's request.
  • Extension header needs additional information, such as information that may include the skipped header.
  • the jump information included in the jump information is acquired, and the report after the jump offset is processed is processed.
  • the content of the text specifically includes: 106.
  • the local policy determines whether to execute the jump information.
  • the jump offset included in the jump information is obtained, and the content of the packet after the jump offset is processed.
  • the local receiver may set the local policy, and determine whether to perform the jump information according to the local policy, if the local policy determines After the jump information is executed, the jump offset included in the extended header is obtained, and the content of the packet after the jump offset is processed. If the local policy decides not to execute the jump information, the next jump header is executed sequentially.
  • the setting of the local policy may be determined according to the requirements of the receiver, which is not specifically limited in the embodiment of the present invention.
  • the jump information is to jump to the transport layer header
  • the receiver is only interested in the session layer or the application layer
  • the jump can be performed, that is, the jump can be directly jumped to the TCP header. Speed up the processing of IPv6 packets.
  • the IPv6 packet processing method provided by the embodiment of the present invention can support the fast jump of the extended header when processing the IPv6 packet, and further can determine whether to perform the fast jump of the extended header according to the local policy of the receiver. , mentioned the efficiency of IPv6 packet processing.
  • Embodiment 2 the efficiency of IPv6 packet processing.
  • FIG. 4 is a schematic diagram of an IPv6 packet processing apparatus according to an embodiment of the present invention.
  • the device includes:
  • a message receiving unit 402 configured to receive an IPv6 packet
  • a message processing unit 404 configured to: when a jump header is included in an extended header of the IPv6 packet, obtain a jump offset included in the jump information, and process the jump offset After the message content.
  • the jump information may be carried in a newly added IPv6 extension header, where the newly added IPv6 extension header is used to support fast jump of the extension header; Further, the newly added IPv6 extension header further includes an extended header type after the jump; further, the newly added IPv6 extension header further includes information of the skipped extended header.
  • the jump information may also be carried in a hop-by-hop extension header. Specifically, the jump information is included in an option of a hop by hop.
  • the jump information mentioned in the embodiment of the present invention includes at least a jump offset, and the size of the jump offset is set according to specific actual requirements, for example, the set offset can directly reach the transport layer.
  • the location of the protocol header can also reach the location of other IPv6 extension headers that are actually needed.
  • how to set the starting position of the offset is not specifically limited in the embodiment of the present invention. For example, it may be set as the starting position from the starting position of the extended header as the jump offset, that is, after processing the jump offset from the starting position of the extended header Message content; of course, we can also use the tail of the extension header as the starting position of the jump offset, that is, processing the report after jumping the jump offset from the tail of the extension header. Content.
  • the tail of the extended header may be obtained according to the length information in the extended header.
  • the format of the newly added IPv6 extension header may be as shown in FIG. 2.
  • the fast jump information may be added in the option Option in the existing hop-by-hop extension header (hop-by-hop).
  • the specific format can be as shown in Figure 3.
  • the packet processing unit specifically includes: when the extension header of the IPv6 packet is included in the header, the packet processing unit specifically includes:
  • a local policy search module configured to: when the extended header of the IPv6 packet is processed, includes a local policy to determine whether to execute the jump information;
  • a jump execution module configured to: when the jump information is executed according to the local policy, obtain a jump offset included in the jump information, and process the packet after the jump offset is processed
  • the local receiver may set the local policy, and determine whether to perform the jump information according to the local policy, if the local policy determines After the jump information is executed, the jump offset included in the extended header is obtained, and the content of the packet after the jump offset is processed. If the local policy decides not to execute the jump information, the next jump header is executed sequentially.
  • the setting of the local policy may be determined according to the requirements of the receiver, which is not specifically limited in the embodiment of the present invention.
  • the jump information is to jump to the transport layer header
  • the receiver is only interested in the session layer or the application layer
  • the jump can be performed, that is, the jump can be directly jumped to the TCP header. Speed up the processing of IPv6 packets.
  • the IPv6 packet processing apparatus can support fast jump of the extended header when processing the IPv6 packet, and further can decide whether to perform the fast jump of the extended header according to the local policy of the receiver. , mentioned the efficiency of IPv6 packet processing.
  • a person skilled in the art can understand that all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

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

本发明实施例提供一种IPv6报文处理方法,该方法包括:接收IPv6报文;当处理所述IPv6报文的扩展头中包含跳转信息时,获取所述跳转信息中包含的跳转偏移量,处理跳转所述跳转偏移量后的报文内容。此外,本发明实施例提供相应的IPv6报文处理装置。可见,通过本发明实施例提供的IPv6报文处理装置,可以实现在处理IPv6报文时支持扩展头的快速跳转,进一步地可以根据接收方的本地策略来决定是否执行扩展头的快速跳转,提高了IPv6报文处理的效率。

Description

一种 IPv6报文处理方法及装置 技术领域
本发明实施例涉及通信技术,尤其涉及一种 IPv6报文处理方法及装置。 背景技术
随着互联网的不断发展, 因特网协议版本 6 ( Internet Protocol version 6; IPv6 )是继因特网协议版本 4 ( Internet Protocol version 4; IPv4 )之后的新 一代的互联网网络层协议。 IPv6是下一代互联网的基础性协议, IPv6的地 址长度为 128比特, IPv6地址空间足以适应迅速增长的用户。 IPv6允许定 义一系列扩展头来灵活传递各种信息。 在 IPv6报文中, 通常可选信息放在 扩展头中。一个 IPv6报文允许有零个,一个或多个扩展头,扩展头位于 IPv6 报文头后, 每一个扩展头指向下一个扩展头的开始位置, 并且会标出下一 个扩展头的类型。当一个 IPv6报文没有扩展头时,则在 IPv6报文头处理后, 直接处理上层报文头, 也就是直接处理传输层协议报文头; 当一个 IPv6报 文含有多个扩展头时, 则各个扩展头必须严格按照各个扩展头在 IPv6报文 中的顺序来处理。 例如, 当一个网络设备接收到一个 IPv6报文时, 该网络 设备首先处理该 IPv6报文的报文头, 然后逐个检查各个扩展头直到扩展头 的序列尾部。 扩展头的序列尾部可以是传输层协议报文头, 封装的 IP报文 头, 或者是报文承载的数据信息。
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 当一个 IPv6报文中含有多个扩展头时, 各个扩展头必须严格按照各个 扩展头在 IPv6报文中的顺序来处理。 然而, 有些扩展头对报文接收方来说 是不关心或不相关的, 而现有的方案是无法跳过这些扩展头而直接处理报 文接收方所关注的报文内容。 这在很多场景下是一种很低效的报文处理方 法。 发明内容
本发明一方面提供一种 IPv6报文处理方法,可以在处理 IPv6报文扩展 头时实现快速跳转, 进一步提高 IPv6报文处理的效率。 该方法包括: 接收 IPv6报文; 当处理所述 IPv6报文的扩展头中包含跳转信息时, 获取所述跳 转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容
本发明另一方面提供一种 IPv6报文处理装置,可以在处理 IPv6报文扩 展头时实现快速跳转, 进一步提高 IPv6报文处理的效率。 该装置包括: 报 文接收单元, 用于接收 IPv6报文; 报文处理单元, 用于当处理所述 IPv6 报文的扩展头中包含跳转信息时, 获取所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例的方法流程图;
图 2是本发明实施例提供新增 IPv6扩展头的格式示意图;
图 3是本发明实施例提供逐跳扩展头的格式示意图;
图 4是本发明实施例提供的 IPv6报文处理装置示意图。
具体实肺式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一:
本发明实施例提供了一种 IPv6报文处理的方法, 可参考图 1, 图 1是 本发明实施例的方法流程图, 该方法包括:
102、 接收 IPv6报文;
104、 当处理所述 IPv6报文的扩展头中包含跳转信息时,获取所述跳转 信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。
在本发明实施例的具体实现时, 所述跳转信息可以携带在新增 IPv6扩 展头中, 所述新增 IPv6扩展头用于支持扩展头的快速跳转;
进一步地, 所述新增 IPv6扩展头还包括跳转后的扩展头类型; 进一步地, 所述新增 IPv6扩展头还包括被跳过的扩展头的信息。
或者, 所述跳转信息也可以携带在逐跳扩展头中, 具体来说, 所述跳 转信息包含在所述逐跳扩展头 (hop by hop ) 的选项 (Option ) 中。
其中, 本发明实施例中提及的所述跳转信息至少包括跳转偏移量, 跳 转偏移量的大小根据具体的实际要求设置, 例如可以使设置的偏移量能够 直接到达传输层协议报文头的位置, 也就是说, 处理跳转所述跳转偏移量 后的报文内容就是处理传输层协议报文头。 此外, 本发明实施例也可以使 设置的偏移量到达所实际需要的其他 IPv6扩展头的位置。 具体如何设置偏 移量的起算位置, 本发明实施例不做具体的限定。 例如可以设置为从所述 扩展头的起始位置作为跳转偏移量的起算位置, 也就是说, 处理从所述扩 展头的起始位置向后跳转所述跳转偏移量后的报文内容; 当然, 我们也可 以从该扩展头的尾部作为跳转偏移量的起算位置, 也就是说, 处理从该扩 展头的尾部向后跳转所述跳转偏移量后的报文内容。 具体实现时, 可以根 据该扩展头中的长度信息来获取该扩展头的尾部。
为了更清楚地了解本发明实施例, 所述新增 IPv6扩展头的格式可以如 图 2所示。 图 2是本发明实施例提供新增 IPv6扩展头的格式示意图。其中, Next Header表示下一个扩展头的类型;
Hdr Ext Len表示该新增扩展头的长度;
Specific Type表示本扩展头的类型, 对采用何种方式来表示本扩展头, 本发明实施例不做限定, 只要本扩展头的类型是支持扩展头的快速跳转即 可。
Offset表示跳转偏移量。
Next Header after jum 表示跳转后的扩展头类型,跳转后的扩展头类型 可以是传输层协议报文头, 也可以是其他 IPv6扩展头, 本发明实施例不做 具体限定, 可以根据报文接收方的要求具体设置。
Other Information表示本扩展头需要附加的其他信息, 例如可以包括被 跳过的扩展头的信息。 此外, 在本发明实施例的具体实现时, 可以在现有的逐跳扩展头 ( Hop-by-Hop ) 中的选项 Option中新增快速跳转信息。 具体的格式可以如 图 3所示。图 3是本发明实施例提供逐跳扩展头的格式示意图。其中, Option Type表示为逐跳扩展头的选项;
Opt Data Len表示该选项的长度;
Offset表示跳转偏移量。
Next Header after jum 表示跳转后的扩展头类型,跳转后的扩展头类型 可以是传输层协议报文头, 也可以是其他 IPv6扩展头, 本发明实施例不做 具体限定, 可以根据报文接收方的要求具体设置。
Other Information表示本扩展头需要附加的其他信息, 例如可以包括被 跳过的扩展头的信息。
进一步地, 所述当处理所述 IPv6报文的扩展头中包含跳转信息时, 获 取所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文 内容具体包括: 106、 当处理所述 IPv6报文的扩展头中包含跳转信息时,查找本地策略 决定是否执行所述跳转信息;
108、 当根据本地策略决定执行所述跳转信息时, 获取所述跳转信息中 包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。
在本发明实施例的具体实现时, 由于报文接收方对扩展头的处理要求 不同, 可以由报文接收方设定本地策略, 根据本地策略来决定是否执行该 跳转信息, 如果本地策略决定执行该跳转信息, 则获取所述扩展头中包含 的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。 如果本地策略决 定不执行该跳转信息, 则顺序执行下一个跳转头。 本地策略的设定可以根 据接收方的需求来决定, 本发明实施例不做具体限定。 例如该跳转信息是 跳转到传输层报文头, 则如果接收方只对会话层或应用层感兴趣的话, 则 可以执行该跳转, 也就是可以直接跳转到 TCP报文头, 从而加快 IPv6报文 处理速度。
可见, 通过本发明实施例提供的 IPv6报文处理方法, 可以实现在处理 IPv6报文时支持扩展头的快速跳转,进一步地可以根据接收方的本地策略来 决定是否执行扩展头的快速跳转, 提到了 IPv6报文处理的效率。 实施例二:
本发明实施例还提供了一种 IPv6报文处理装置, 如图 4所示, 图 4是 本发明实施例提供的 IPv6报文处理装置示意图。 该装置包括:
报文接收单元 402, 用于接收 IPv6报文;
报文处理单元 404, 用于当处理所述 IPv6报文的扩展头中包含跳转信 息时, 获取所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量 后的报文内容。
在本发明实施例的具体实现时, 所述跳转信息可以携带在新增 IPv6扩 展头中, 所述新增 IPv6扩展头用于支持扩展头的快速跳转; 进一步地, 所述新增 IPv6扩展头还包括跳转后的扩展头类型; 进一步地, 所述新增 IPv6扩展头还包括被跳过的扩展头的信息。 或者, 所述跳转信息也可以携带在逐跳扩展头中, 具体来说, 所述跳 转信息包含在所述逐跳扩展头 (hop by hop ) 的选项 (Option ) 中。
其中, 本发明实施例中提及的所述跳转信息至少包括跳转偏移量, 跳 转偏移量的大小根据具体的实际要求设置, 例如可以使设置的偏移量能够 直接到达传输层协议报文头的位置, 也可以到达所实际需要的其他 IPv6扩 展头的位置。 具体如何设置偏移量的起算位置, 本发明实施例不做具体的 限定。 例如可以设置为从所述扩展头的起始位置作为跳转偏移量的起算位 置, 也就是说, 处理从所述扩展头的起始位置向后跳转所述跳转偏移量后 的报文内容; 当然, 我们也可以从该扩展头的尾部作为跳转偏移量的起算 位置, 也就是说, 处理从该扩展头的尾部向后跳转所述跳转偏移量后的报 文内容。 具体实现时, 可以根据该扩展头中的长度信息来获取该扩展头的 尾部。
为了更清楚地了解本发明实施例, 所述新增 IPv6扩展头的格式可以如 图 2所示。
此外, 在本发明实施例的具体实现时, 可以在现有的逐跳扩展头 ( Hop-by-Hop ) 中的选项 Option中新增快速跳转信息。 具体的格式可以如 图 3所示。
进一步地, 所述当处理所述 IPv6报文的扩展头中包含跳转信息时, 所 述报文处理单元具体包括:
本地策略查找模块, 用于当处理所述 IPv6报文的扩展头中包含跳转信 息时, 查找本地策略决定是否执行所述跳转信息;
跳转执行模块, 用于当根据本地策略决定执行所述跳转信息时, 获取 所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内 在本发明实施例的具体实现时, 由于报文接收方对扩展头的处理要求 不同, 可以由报文接收方设定本地策略, 根据本地策略来决定是否执行该 跳转信息, 如果本地策略决定执行该跳转信息, 则获取所述扩展头中包含 的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。 如果本地策略决 定不执行该跳转信息, 则顺序执行下一个跳转头。 本地策略的设定可以根 据接收方的需求来决定, 本发明实施例不做具体限定。 例如该跳转信息是 跳转到传输层报文头, 则如果接收方只对会话层或应用层感兴趣的话, 则 可以执行该跳转, 也就是可以直接跳转到 TCP报文头, 从而加快 IPv6报文 处理速度。
可见, 通过本发明实施例提供的 IPv6报文处理装置, 可以实现在处理 IPv6报文时支持扩展头的快速跳转,进一步地可以根据接收方的本地策略来 决定是否执行扩展头的快速跳转, 提到了 IPv6报文处理的效率。 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述程序可以存储于一计算机可 读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而 前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代 码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权利要求
1、 一种 IPv6报文处理方法, 其特征在于, 该方法包括:
接收 IPv6 艮文;
当处理所述 IPv6报文的扩展头中包含跳转信息时, 获取所述跳转信息 中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述当处理所述 IPv6 报文的扩展头中包含跳转信息时, 获取所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容具体包括:
当处理所述 IPv6报文的扩展头中包含跳转信息时, 查找本地策略决定 是否执行所述跳转信息;
当根据本地策略决定执行所述跳转信息时, 获取所述跳转信息中包含 的跳转偏移量, 处理跳转所述跳转偏移量后的报文内容。
3、 根据权利要求 1所述的方法, 其特征在于, 所述跳转信息携带在新 增 IPv6扩展头中, 所述新增 IPv6扩展头用于支持扩展头的快速跳转。
4、 根据权利要求 1所述的方法, 其特征在于, 所述跳转信息携带在逐 跳扩展头(hop by hop)的选项(option)中。
5、根据权利要求 3或 4所述的方法, 其特征在于, 所述新增 IPv6扩展 头包括被跳过的扩展头的信息。
6、根据权利要求 3或 4所述的方法, 其特征在于, 所述新增 IPv6扩展 头包括跳转后的扩展头类型。
7、 根据权利要求 1至 4任一权利要求所述的方法, 其特征在于, 所述 处理跳转所述跳转偏移量后的报文内容包括: 处理从所述扩展头的起始位 置向后跳转所述跳转偏移量后的报文内容。
8、 根据权利要求 1至 4任一权利要求所述的方法, 其特征在于, 所述 处理跳转所述跳转偏移量后的报文内容包括: 处理从所述扩展头的尾部向 后跳转所述跳转偏移量后的报文内容。
9、 根据权利要求 1至 4任一权利要求所述的方法, 其特征在于, 处理 跳转所述跳转偏移量后的报文内容包括处理传输层协议报文头。
10、 一种 IPv6报文处理装置, 其特征在于, 该装置包括:
报文接收单元, 用于接收 IPv6报文;
报文处理单元,用于当处理所述 IPv6报文的扩展头中包含跳转信息时, 获取所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报 文内容。
11、 根据权利要求 10所述的装置, 其特征在于, 所述报文处理单元具 体包括:
本地策略查找模块, 用于当处理所述 IPv6报文的扩展头中包含跳转信 息时, 查找本地策略决定是否执行所述跳转信息;
跳转执行模块, 用于当根据本地策略决定执行所述跳转信息时, 获取 所述跳转信息中包含的跳转偏移量, 处理跳转所述跳转偏移量后的报文内
PCT/CN2011/077106 2011-07-13 2011-07-13 一种IPv6报文处理方法及装置 WO2012167477A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180001655.5A CN103004166B (zh) 2011-07-13 2011-07-13 一种IPv6报文处理方法及装置
PCT/CN2011/077106 WO2012167477A1 (zh) 2011-07-13 2011-07-13 一种IPv6报文处理方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/077106 WO2012167477A1 (zh) 2011-07-13 2011-07-13 一种IPv6报文处理方法及装置

Publications (1)

Publication Number Publication Date
WO2012167477A1 true WO2012167477A1 (zh) 2012-12-13

Family

ID=47295367

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/077106 WO2012167477A1 (zh) 2011-07-13 2011-07-13 一种IPv6报文处理方法及装置

Country Status (2)

Country Link
CN (1) CN103004166B (zh)
WO (1) WO2012167477A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547407A (zh) * 2017-09-15 2018-01-05 新华三技术有限公司 报文传输方法、装置和实现装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691448B (zh) * 2020-05-18 2022-09-23 华为技术有限公司 SRv6业务链中转发报文的方法、SFF及SF设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1610338A (zh) * 2003-10-24 2005-04-27 阿尔卡特公司 用于加速分组处理的方法
CN1833415A (zh) * 2003-08-12 2006-09-13 奥林奇股份有限公司 分组数据通信
US20080181216A1 (en) * 2007-01-30 2008-07-31 Sprint Spectrum L.P. Optimized mobile IPv6 encapsulation for wireless networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808016B (zh) * 2010-03-02 2012-12-26 河海大学常州校区 IPv6下DiffServ区域端到端网络性能的快速测量方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1833415A (zh) * 2003-08-12 2006-09-13 奥林奇股份有限公司 分组数据通信
CN1610338A (zh) * 2003-10-24 2005-04-27 阿尔卡特公司 用于加速分组处理的方法
US20080181216A1 (en) * 2007-01-30 2008-07-31 Sprint Spectrum L.P. Optimized mobile IPv6 encapsulation for wireless networks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547407A (zh) * 2017-09-15 2018-01-05 新华三技术有限公司 报文传输方法、装置和实现装置

Also Published As

Publication number Publication date
CN103004166B (zh) 2015-08-19
CN103004166A (zh) 2013-03-27

Similar Documents

Publication Publication Date Title
JP6057260B2 (ja) 無線ユーザデバイスにおける伝送のためのアプリケーションデータの優先順位付け
CN108432194B (zh) 一种拥塞处理的方法、主机及系统
WO2020233192A1 (zh) 一种为业务流提供业务服务的方法和装置
US20190075049A1 (en) Determining Direction of Network Sessions
US9742879B2 (en) Hardware-based packet editor
JP6269999B2 (ja) パケット処理方法および装置
EP3331205B1 (en) Data packet transmission method utilized in ipv6 network and device utilizing same
CN106233775B (zh) 应用程序或无线电信息在网络数据包头中的插入和使用
WO2018121257A1 (zh) 报文发送方法、装置、系统以及存储介质
WO2016029862A1 (zh) 一种链路状态信息通告方法和设备
US20150256459A1 (en) Packet processing method and apparatus
US10136375B2 (en) Method for service data management, apparatus, and system
EP2717519A2 (en) Method and apparatus for transferring bootstrap message
WO2012167477A1 (zh) 一种IPv6报文处理方法及装置
US20160212045A1 (en) Method and system for using extension headers to support protocol stack migration
EP3068075B1 (en) Trace feature across the network (depth & breadth)-wise
WO2016184209A1 (zh) 一种应用下载方法、推送方法、装置及系统
US9954767B2 (en) Internet control message protocol for completing a secondary protocol transaction
CN113179251A (zh) 一种前端文件处理方法、装置、设备及机器可读存储介质
TW201919414A (zh) 完整性保護的控制方法、網路設備及電腦存儲媒介
JP2017046325A (ja) 通信装置、通信方法およびプログラム
US10367725B2 (en) Network programming
WO2015058490A1 (zh) 一种报文转发的方法及装置
JP2010154130A (ja) 経路確認装置、経路確認システム、経路確認方法およびそのプログラム
US9832289B2 (en) Method and network device for data processing

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

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

Country of ref document: EP

Kind code of ref document: A1