CN103004166B - A kind of IPv6 message processing method and device - Google Patents
A kind of IPv6 message processing method and device Download PDFInfo
- Publication number
- CN103004166B CN103004166B CN201180001655.5A CN201180001655A CN103004166B CN 103004166 B CN103004166 B CN 103004166B CN 201180001655 A CN201180001655 A CN 201180001655A CN 103004166 B CN103004166 B CN 103004166B
- Authority
- CN
- China
- Prior art keywords
- processing
- information
- skip
- message
- offset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 7
- 238000012545 processing Methods 0.000 claims abstract description 61
- 238000000034 method Methods 0.000 claims abstract description 25
- 230000009191 jumping Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
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
The embodiment of the present invention provides a kind of IPv6 message processing method, and the method comprises: receive IPv6 message; When comprising jump information in the extension header processing described IPv6 message, obtain the redirect side-play amount comprised in described jump information, the message content after redirect side-play amount described in process redirect.In addition, the embodiment of the present invention provides corresponding IPv6 message process device.Visible, the IPv6 message process device provided by the embodiment of the present invention, support prolate-headed quick redirect when can be implemented in process IP v6 message, can determine whether performing prolate-headed quick redirect according to the local policy of recipient further, improve the efficiency of IPv6 Message processing.
Description
Technical Field
The embodiment of the invention relates to the communication technology, in particular to an IPv6 message processing method and device.
Background
With the continuous development of the Internet, Internet Protocol version 6(Internet Protocol version 6; IPv6) is a new generation of Internet network layer Protocol following Internet Protocol version 4(Internet Protocol version 4; IPv 4). The IPv6 is the basic protocol of the next generation Internet, the address length of the IPv6 is 128 bits, and the IPv6 address space is enough to adapt to rapidly growing users. IPv6 allows a series of extension headers to be defined to flexibly pass various information. In the IPv6 message, optional information is usually placed in the extension header. An IPv6 message allows zero, one or more extension headers, which are located behind the IPv6 message header, each of which points to the beginning of the next extension header and will mark the type of the next extension header. When an IPv6 message has no extension header, directly processing an upper layer message header after the IPv6 message header is processed, namely directly processing a transmission layer protocol message header; when an IPv6 message contains multiple extension headers, then the extension headers must be processed exactly in the order in which they are in the IPv6 message. For example, when a network device receives an IPv6 message, the network device first processes the header of the IPv6 message and then checks each extension header one by one until the end of the sequence of extension headers. The sequence end of the extension header may be a transport layer protocol header, an encapsulated IP header, or data information carried by the packet.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
when a plurality of extension headers are contained in an IPv6 message, each extension header must be processed exactly in the order of each extension header in the IPv6 message. However, some extension headers are not concerned or relevant for the message receiver, and the existing scheme cannot directly process the message content concerned by the message receiver by skipping the extension headers. This is a very inefficient method of message processing in many scenarios.
Disclosure of Invention
The invention provides an IPv6 message processing method, which can realize quick skip when processing an IPv6 message extension header and further improve the efficiency of IPv6 message processing. The method comprises the following steps: receiving an IPv6 message; when the extended header for processing the IPv6 message contains the jump information, acquiring the jump offset contained in the jump information, and processing the message content after jumping the jump offset
Another aspect of the present invention provides an IPv6 message processing apparatus, which can implement fast skip when processing an IPv6 message extension header, and further improve the efficiency of IPv6 message processing. The device includes: the message receiving unit is used for receiving the IPv6 message; and the message processing unit is used for acquiring the jump offset contained in the jump information and processing the message content after the jump offset is jumped when the expansion header for processing the IPv6 message contains the jump information. .
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
fig. 2 is a schematic format diagram of an IPv6 extension header provided in an embodiment of the present invention;
fig. 3 is a schematic diagram of a format of a hop-by-hop extension header provided by an embodiment of the present invention;
fig. 4 is a schematic diagram of an IPv6 message processing apparatus according to an embodiment of the present invention.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
an embodiment of the present invention provides a method for processing an IPv6 message, which may refer to fig. 1, where fig. 1 is a flowchart of the method according to the embodiment of the present invention, and the method includes:
102. receiving an IPv6 message;
104. when the extended header for processing the IPv6 message contains the jump information, acquiring the jump offset contained in the jump information, and processing the message content after jumping the jump offset.
During the specific implementation of the embodiment of the invention, the jump information can be carried in a newly added IPv6 extension header, and the newly added IPv6 extension header is used for supporting the quick jump of the extension header;
further, the newly added IPv6 extension header also comprises the type of the extended header after the jump;
further, the newly added IPv6 extension header also includes information of the skipped extension header.
Alternatively, the skip information may also be carried in a hop-by-hop extension header, and specifically, the skip information is contained in an Option (Option) of the hop-by-hop extension header (hop by hop).
The skip information mentioned in the embodiment of the present invention at least includes a skip offset, and the size of the skip offset is set according to a specific actual requirement, for example, the set offset can directly reach the position of the transport layer protocol packet header, that is, the processing of the packet content after the skip offset is the processing of the transport layer protocol packet header. In addition, the embodiment of the invention can also make the set offset reach the position of other IPv6 extension headers which are actually needed. Specifically, how to set the starting position of the offset is not specifically limited in the embodiment of the present invention. For example, the starting position of the extension header can be set as the starting position of the jump offset, that is, the message content after jumping backwards from the starting position of the extension header by the jump offset is processed; of course, the tail of the extension header can also be used as the starting position of the jump offset, that is, the message content after jumping backwards from the tail of the extension header by the jump offset is processed. In a specific implementation, the tail of the extension header may be obtained according to the length information in the extension header.
For a clearer understanding of the embodiment of the present invention, the format of the newly added IPv6 extension header may be as shown in fig. 2. Fig. 2 is a schematic format diagram of an IPv6 extension header provided in an embodiment of the present invention. Wherein,
next Header indicates the type of the Next extension Header;
hdr Ext Len represents the length of the newly added extension head;
the Specific Type indicates a Type of the extension header, and what manner is used to indicate the extension header, which is not limited in the embodiment of the present invention as long as the Type of the extension header supports fast skip of the extension header.
Offset represents a skip Offset amount.
The Next Header after jump indicates the type of the extended Header after the jump, and the type of the extended Header after the jump may be a transport layer protocol packet Header or other IPv6 extended headers.
The Other Information indicates that the present extension header needs additional Other Information, and may include Information of the skipped extension header, for example.
In addition, in the specific implementation of the embodiment of the present invention, fast Hop information may be newly added to the Option in the existing Hop-by-Hop extension header (Hop-by-Hop). The specific format may be as shown in fig. 3. Fig. 3 is a schematic diagram of a format of a hop-by-hop extension header according to an embodiment of the present invention. Wherein, the Option Type is represented as an Option of a hop-by-hop extension header;
opt Data Len indicates the length of the option;
offset represents a skip Offset amount.
The Next Header after jump indicates the type of the extended Header after the jump, and the type of the extended Header after the jump may be a transport layer protocol packet Header or other IPv6 extended headers.
The Other Information indicates that the present extension header needs additional Other Information, and may include Information of the skipped extension header, for example.
Further, when the extended header for processing the IPv6 message contains the skip information, acquiring a skip offset contained in the skip information, and processing the message content after skipping the skip offset specifically includes:
106. when the extended header for processing the IPv6 message contains the jump information, searching a local strategy to determine whether to execute the jump information;
108. and when the skip information is determined to be executed according to a local strategy, acquiring skip offset contained in the skip information, and processing the message content after the skip offset.
In the specific implementation of the embodiment of the present invention, because the message receiver has different processing requirements for the extension header, the message receiver may set a local policy, determine whether to execute the skip information according to the local policy, and if the local policy determines to execute the skip information, obtain a skip offset included in the extension header, and process the message content after skipping the skip offset. If the local policy decides not to execute the hop information, then the next hop header is executed in sequence. The setting of the local policy may be determined according to the requirement of the receiving party, and the embodiment of the present invention is not particularly limited. For example, if the skip information is a skip to a transport layer header, if the receiver is only interested in a session layer or an application layer, the skip may be performed, that is, the skip may be directly to a TCP header, thereby speeding up the IPv6 message processing speed.
Therefore, the IPv6 message processing method provided in the embodiment of the present invention can support fast hopping of the extension header when processing an IPv6 message, and further can determine whether to execute the fast hopping of the extension header according to a local policy of a receiver, which improves efficiency of IPv6 message processing.
Example two:
an IPv6 message processing apparatus is further provided in the embodiment of the present invention, as shown in fig. 4, fig. 4 is a schematic diagram of an IPv6 message processing apparatus provided in the embodiment of the present invention. The device includes:
a message receiving unit 402, configured to receive an IPv6 message;
a message processing unit 404, configured to, when an extension header of the IPv6 message includes the skip information, obtain a skip offset included in the skip information, and process a message content after the skip offset is skipped.
During the specific implementation of the embodiment of the invention, the jump information can be carried in a newly added IPv6 extension header, and the newly added IPv6 extension header is used for supporting the quick jump of the extension header;
further, the newly added IPv6 extension header also comprises the type of the extended header after the jump;
further, the newly added IPv6 extension header also includes information of the skipped extension header.
Alternatively, the skip information may also be carried in a hop-by-hop extension header, and specifically, the skip information is contained in an Option (Option) of the hop-by-hop extension header (hop by hop).
The skip information mentioned in the embodiment of the present invention at least includes a skip offset, and the size of the skip offset is set according to a specific actual requirement, for example, the set offset can directly reach the position of a transport layer protocol packet header, and also can reach the position of other IPv6 extension headers actually required. Specifically, how to set the starting position of the offset is not specifically limited in the embodiment of the present invention. For example, the starting position of the extension header can be set as the starting position of the jump offset, that is, the message content after jumping backwards from the starting position of the extension header by the jump offset is processed; of course, the tail of the extension header can also be used as the starting position of the jump offset, that is, the message content after jumping backwards from the tail of the extension header by the jump offset is processed. In a specific implementation, the tail of the extension header may be obtained according to the length information in the extension header.
For a clearer understanding of the embodiment of the present invention, the format of the newly added IPv6 extension header may be as shown in fig. 2.
In addition, in the specific implementation of the embodiment of the present invention, fast Hop information may be newly added to the Option in the existing Hop-by-Hop extension header (Hop-by-Hop). The specific format may be as shown in fig. 3.
Further, when the extension header for processing the IPv6 packet contains the skip information, the packet processing unit specifically includes:
the local strategy searching module is used for searching a local strategy to determine whether to execute the jump information when the expansion header for processing the IPv6 message contains the jump information;
and the skip execution module is used for acquiring skip offset contained in the skip information and processing the message content after the skip offset is skipped when the skip information is determined to be executed according to a local strategy.
In the specific implementation of the embodiment of the present invention, because the message receiver has different processing requirements for the extension header, the message receiver may set a local policy, determine whether to execute the skip information according to the local policy, and if the local policy determines to execute the skip information, obtain a skip offset included in the extension header, and process the message content after skipping the skip offset. If the local policy decides not to execute the hop information, then the next hop header is executed in sequence. The setting of the local policy may be determined according to the requirement of the receiving party, and the embodiment of the present invention is not particularly limited. For example, if the skip information is a skip to a transport layer header, if the receiver is only interested in a session layer or an application layer, the skip may be performed, that is, the skip may be directly to a TCP header, thereby speeding up the IPv6 message processing speed.
Therefore, the IPv6 message processing apparatus provided in the embodiment of the present invention can support fast hopping of the extension header when processing an IPv6 message, and further can determine whether to execute the fast hopping of the extension header according to a local policy of a receiver, which improves efficiency of processing an IPv6 message.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. An IPv6 message processing method, comprising:
receiving an IPv6 message;
when the extended header for processing the IPv6 message contains the jump information, acquiring the jump offset contained in the jump information, and processing the message content after jumping the jump offset; the processing of the message content after the skip offset comprises: and processing the message content after the jump offset from the initial position of the extension head backward, or processing the message content after the jump offset from the tail part of the extension head backward.
2. The method according to claim 1, wherein when an extension header of the IPv6 packet contains the skip information, the obtaining of the skip offset contained in the skip information, and the processing of the packet content after the skip offset specifically includes:
when the extended header for processing the IPv6 message contains the jump information, searching a local strategy to determine whether to execute the jump information;
and when the skip information is determined to be executed according to a local strategy, acquiring skip offset contained in the skip information, and processing the message content after the skip offset.
3. The method of claim 1, wherein the hop information is carried in a newly added IPv6 extension header, and wherein the newly added IPv6 extension header is used to support fast hopping of extension headers.
4. The method of claim 1, wherein the hop information is carried in an option (option) of a hop-by-hop extension header (hop by hop).
5. The method of claim 3, wherein the newly added IPv6 extension header includes information of skipped extension headers.
6. The method of claim 3, wherein the newly added IPv6 extension header includes a hopped extension header type.
7. The method according to any of claims 1 to 4, wherein processing the message content after hopping the hop offset comprises processing a transport layer protocol header.
8. An IPv6 message processing apparatus, comprising:
the message receiving unit is used for receiving the IPv6 message;
the message processing unit is used for acquiring the jump offset contained in the jump information when the expansion header for processing the IPv6 message contains the jump information, and processing the message content after the jump offset is jumped; the processing of the message content after the skip offset comprises: and processing the message content after the jump offset from the initial position of the extension head backward, or processing the message content after the jump offset from the tail part of the extension head backward.
9. The apparatus according to claim 8, wherein the message processing unit specifically includes:
the local strategy searching module is used for searching a local strategy to determine whether to execute the jump information when the expansion header for processing the IPv6 message contains the jump information;
and the skip execution module is used for acquiring skip offset contained in the skip information and processing the message content after the skip offset is skipped when the skip information is determined to be executed according to a local strategy.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/077106 WO2012167477A1 (en) | 2011-07-13 | 2011-07-13 | Ipv6 message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103004166A CN103004166A (en) | 2013-03-27 |
CN103004166B true CN103004166B (en) | 2015-08-19 |
Family
ID=47295367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180001655.5A Active CN103004166B (en) | 2011-07-13 | 2011-07-13 | A kind of IPv6 message processing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103004166B (en) |
WO (1) | WO2012167477A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547407B (en) * | 2017-09-15 | 2021-03-09 | 新华三技术有限公司 | Message transmission method, device and implementation device |
CN113691448B (en) * | 2020-05-18 | 2022-09-23 | 华为技术有限公司 | SRv6 method for forwarding message in service chain, SFF and SF device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1610338A (en) * | 2003-10-24 | 2005-04-27 | 阿尔卡特公司 | Method for accelerated packet processing |
CN101808016A (en) * | 2010-03-02 | 2010-08-18 | 河海大学常州校区 | Method and system for rapidly measuring end-to-end network performance of DiffServ region under IPv6 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2405052A (en) * | 2003-08-12 | 2005-02-16 | Orange Personal Comm Serv Ltd | Packet data communications |
US20080181216A1 (en) * | 2007-01-30 | 2008-07-31 | Sprint Spectrum L.P. | Optimized mobile IPv6 encapsulation for wireless networks |
-
2011
- 2011-07-13 WO PCT/CN2011/077106 patent/WO2012167477A1/en active Application Filing
- 2011-07-13 CN CN201180001655.5A patent/CN103004166B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1610338A (en) * | 2003-10-24 | 2005-04-27 | 阿尔卡特公司 | Method for accelerated packet processing |
CN101808016A (en) * | 2010-03-02 | 2010-08-18 | 河海大学常州校区 | Method and system for rapidly measuring end-to-end network performance of DiffServ region under IPv6 |
Non-Patent Citations (1)
Title |
---|
S. Deering et.al."RFC 2460".《Internet Protocol,Version 6 (IPv6) Specification,Network Working Group》.1998, * |
Also Published As
Publication number | Publication date |
---|---|
WO2012167477A1 (en) | 2012-12-13 |
CN103004166A (en) | 2013-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111628995B (en) | SRv-based SID compression method, SRv-based SID compression device, SRv-based SID compression equipment and storage medium | |
CN104025548B (en) | For the method and apparatus for the flexible caching for being delivered media | |
CN102843351B (en) | A kind of processing method of streaming media service, streaming media server and system | |
CN106233775B (en) | Insertion and use of application or radio information in network data packet headers | |
CN111328108B (en) | 5G service data processing method, device and distribution equipment | |
JP6057260B2 (en) | Prioritizing application data for transmission in wireless user devices | |
CN105794172A (en) | Packet parsing and key generation in a network device | |
EP3179679A1 (en) | Method and device for link state information announcement | |
WO2018121257A1 (en) | Method, apparatus and system for sending message, and storage medium | |
CN105791169A (en) | Switch transmission control method, switch transmitting method and related equipment in SDN (Software Defined Network) | |
CN104378234A (en) | Cross-data-center data transmission processing method and system | |
CN104796439A (en) | Webpage pushing method, webpage pushing client, webpage pushing server and webpage pushing system | |
CN115699685A (en) | Follow-up flow detection method and electronic equipment | |
CN103004166B (en) | A kind of IPv6 message processing method and device | |
CN101594289A (en) | Realize the method and apparatus of Differentiated Services traffic engineering | |
CN113704647A (en) | Method and device for jumping multiple types of pages and electronic equipment | |
US20160119848A1 (en) | Method for service data management, apparatus, and system | |
CN115362661A (en) | Mixing segments of different sizes for segment routing | |
CN108429764A (en) | A method of the data transmission based on proprietary protocol and parsing | |
CN102077497B (en) | System and methods for generating masking sequences | |
CN115398869A (en) | Minimizing differences in segment identifiers for segment routing | |
CN107548121B (en) | Method and device for determining access network | |
CN109688622B (en) | Information transmission method, receiving method, network equipment and terminal equipment | |
CN107332839B (en) | Message transmission method and device | |
CN113973074A (en) | Message processing method and device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |