CN105763659A - IPv6 tunneling packet encapsulation method and system - Google Patents
IPv6 tunneling packet encapsulation method and system Download PDFInfo
- Publication number
- CN105763659A CN105763659A CN201410779694.3A CN201410779694A CN105763659A CN 105763659 A CN105763659 A CN 105763659A CN 201410779694 A CN201410779694 A CN 201410779694A CN 105763659 A CN105763659 A CN 105763659A
- Authority
- CN
- China
- Prior art keywords
- ipv4
- message
- ipv6
- heading
- extension header
- 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.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses an IPv6 tunneling packet encapsulation method and system. According to the method, network equipment can read an encapsulated IPv4 packet and perform a corresponding forwarding strategy. The method comprises a step of receiving an IPv4 packet and taking an IPv4 packet header, a step of setting an Ipv6 packet header, setting an Ipv6 extension header identifier in the Ipv6 packet header, indicating the position of an Ipv4 extension header, and encapsulating the taken IPv4 packet header into the Ipv4 extension header, a step of connecting Ipv4 packet content and encapsulating the Ipv4 packet as an Ipv6 packet. Thus the Ipv4 packet header can be positioned, and the content in the Ipv4 packet header can be read.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of IPv6 channel message method for packing and system.
Background technology
IPv6 tunneling technique is a kind of important technology kind in IPv6 transitional technology.
Although IPv6 tunnel solves IPv6 IPv4 user in transition period and accesses the problem with message passing through IPv 6 network, but owing to IPv4 message is packaged in IPv6 message, cause that the network equipment in message forwarding path can only identify IPv6 heading, the content in IPv4 heading cannot be read, so that some Policy Control mechanism of IPv4 message lost efficacy, for instance adjust bandwidth according to IPv4 message destination address, adjust forwarding priority etc. according to service quality (QoS) labelling.
Summary of the invention
The technical problem to be solved in the present invention is in IPv6 tunnel, and owing to IPv4 message is packaged in IPv6 message, the network equipment cannot position the heading of IPv4, thus the content that cannot read in IPv4 heading.
According to an aspect of the present invention, it is proposed to a kind of IPv6 channel message method for packing, including:
Receive IPv4 message and take out IPv4 heading;
IPv6 heading is set, described IPv6 heading arranges IPv6 extension header mark, indicates the prolate-headed position of IPv4, and the IPv4 heading of taking-up is encapsulated in IPv4 extension header;
Connect described IPv4 message content, be encapsulated as IPv6 message.
Further, receive IPv4 message and take out IPv4 heading;
Judge IPv4 message length whether PMTU value more than IPv6, if it is not greater, do not carry out message fragment, the IPv4 heading of taking-up is encapsulated in IPv4 extension header, and connects described IPv4 message content, be encapsulated as IPv6 message;
If greater than, then IPv4 message is divided into n sheet by the PMTU value according to message length Yu IPv6, the burst flag bit of IPv4 message is set, identify the relation between each fragment message, respectively n IPv4 heading of generation is encapsulated in the IPv4 extension header of n IPv6 message, and connect the IPv4 message content of burst in each IPv6 message, it is encapsulated as the IPv6 message of n burst.
Further, the length of IPv4 message is divided into each fragment message equal with the PMTU value of IPv6, until the PMTU value that the length of IPv4 message is less than or equal to IPv6.
Further, receive at least one IPv6 message, obtain IPv6 extension header mark from IPv6 heading;
Know the prolate-headed position of IPv4 according to IPv6 extension header mark, and read IPv4 extension header;
IPv4 heading is read from IPv4 extension header;
Field contents in IPv4 heading is taken out, mates with the strategy in Policy Table, if it does, then forward according to described strategy, otherwise, normally forward.
Further, when receiving multiple IPv6 message, judge whether to lose burst according to the burst flag bit of IPv4 message, retransmit if it is, trigger IPv4 message.
According to a further aspect in the invention, it is also proposed that a kind of IPv6 channel message package system, including:
Heading extraction module, is used for receiving IPv4 message and taking out IPv4 heading;
Package module, is used for arranging IPv6 heading, arranges IPv6 extension header mark, indicate the prolate-headed position of IPv4, and be encapsulated in IPv4 extension header by the IPv4 heading of taking-up in described IPv6 heading;Connect described IPv4 message content, be encapsulated as IPv6 message.
Further, burst module, for judging IPv4 message length whether PMTU value more than IPv6, if it is not greater, do not carry out message fragment;If it is greater, then IPv4 message is divided into n sheet by the PMTU value according to message length Yu IPv6, the burst flag bit of IPv4 message is set, identifies the relation between each fragment message;
Wherein, n IPv4 heading of generation is encapsulated in the IPv4 extension header of n IPv6 message by described package module respectively, and connects the IPv4 message content of burst in each IPv6 message, is encapsulated as the IPv6 message of n burst.
Further, described burst module is for being divided into each fragment message equal with the PMTU value of IPv6 by the length of IPv4 message, until the PMTU value that the length of IPv4 message is less than or equal to IPv6.
Further, strategic control module, it is used for receiving at least one IPv6 message, obtains IPv6 extension header mark from IPv6 heading;Know the prolate-headed position of IPv4 according to IPv6 extension header mark, and read IPv4 extension header;IPv4 heading is read from IPv4 extension header;Field contents in IPv4 heading is taken out, mates with the strategy in Policy Table, if it does, then forward according to described strategy, otherwise, normally forward.
Further, described strategic control module, for when receiving multiple IPv6 message, judging whether to lose burst according to the burst flag bit of IPv4 message, retransmits if it is, trigger IPv4 message.
Compared with prior art, the present invention is by receiving IPv4 message and taking out IPv4 heading;IPv6 heading is set, described IPv6 heading arranges IPv6 extension header mark, indicates the prolate-headed position of IPv4, and the IPv4 heading of taking-up is encapsulated in IPv4 extension header;Connect described IPv4 message content, be encapsulated as IPv6 message.Therefore, it is possible to location IPv4 heading, read the content in IPv4 heading.
By referring to the accompanying drawing detailed description to the exemplary embodiment of the present invention, the further feature of the present invention and advantage thereof will be made apparent from.
Accompanying drawing explanation
The accompanying drawing of the part constituting description describes embodiments of the invention, and is used for together with the description explaining principles of the invention.
With reference to accompanying drawing, according to detailed description below, it is possible to be more clearly understood from the present invention, wherein:
Fig. 1 is the schematic flow sheet of an embodiment of IPv6 channel message method for packing of the present invention.
Fig. 2 is the structural representation that the present invention carries IPv4 heading in IPv6 extension header.
Fig. 3 is the schematic flow sheet of another embodiment of IPv6 channel message method for packing of the present invention.
Fig. 4 is the schematic flow sheet that the present invention carries out the embodiment of the method for policy control based on the encapsulation of IPv6 message.
Fig. 5 is that the present invention carries out IPv6 message encapsulation and carries out the schematic flow sheet of embodiment of the method for policy control.
The structural diagrams that Fig. 6 is an embodiment of IPv6 channel message package system of the present invention is intended to.
Detailed description of the invention
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should also be noted that unless specifically stated otherwise, the parts otherwise set forth in these embodiments and positioned opposite, the numerical expression of step and numerical value do not limit the scope of the invention.
Simultaneously, it should be appreciated that for the ease of describing, the size of the various piece shown in accompanying drawing is not draw according to actual proportionate relationship.
Description only actually at least one exemplary embodiment is illustrative below, never as any restriction to the present invention and application or use.
The known technology of person of ordinary skill in the relevant, method and apparatus are likely to be not discussed in detail, but in the appropriate case, described technology, method and apparatus should be considered to authorize a part for description.
Shown here with in all examples discussed, any occurrence should be construed as merely exemplary, not as restriction.Therefore, other example of exemplary embodiment can have different values.
It should also be noted that similar label and letter below figure represent similar terms, therefore, once a certain Xiang Yi accompanying drawing is defined, then it need not be further discussed in accompanying drawing subsequently.
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
Fig. 1 is the schematic flow sheet of an embodiment of IPv6 channel message method for packing of the present invention.Comprise the following steps:
In step 110, receive IPv4 message and take out IPv4 heading.
In step 120, IPv6 heading is set, described IPv6 heading arranges IPv6 extension header mark, indicates the prolate-headed position of IPv4, and the IPv4 heading of taking-up is encapsulated in IPv4 extension header.
Fig. 2 show the present invention and carries the structural representation of IPv4 heading in IPv6 extension header.
As shown in the figure, in described IPv6 heading, the next leader label of instruction are IPv4, namely, the instruction prolate-headed position of IPv4, carrying IPv4 heading, IPv4 heading length and next leader label in IPv4 extension header is TCP/UDP, wherein, next leader label be TCP/UDP refer to transmit for TCP/UDP message.It will be understood by those of skill in the art that next leader label are that TCP/UDP is only intended to citing herein, should not be construed as limitation of the present invention.Such as, next leader label are ICMP or other headings, and simply the value of this field is different, does not affect processing procedure.
In step 130, connect described IPv4 message content, be encapsulated as IPv6 message.
In an embodiment of the present invention, by receiving IPv4 message and taking out IPv4 heading;IPv6 heading is set, described IPv6 heading arranges IPv6 extension header mark, indicates the prolate-headed position of IPv4, and the IPv4 heading of taking-up is encapsulated in IPv4 extension header;Connect described IPv4 message content, be encapsulated as IPv6 message.Therefore, it is possible to location IPv4 heading, read the content in IPv4 heading.
Fig. 3 is the schematic flow sheet of another embodiment of IPv6 channel message method for packing of the present invention.Comprise the following steps:
In step 310, receive IPv4 message and take out IPv4 heading.
In step 320, it is judged that IPv4 message length whether PMTU value more than IPv6, if it is not greater, then perform step 330, if it is greater, then perform step 340.
In step 330, do not carry out message fragment, continue executing with step 350.
In step 340, according to the PMTU value of message length Yu IPv6, IPv4 message is divided into n sheet, the burst flag bit of IPv4 message is set, identifies the relation between each fragment message, continue executing with step 350.
Wherein, the operation that IPv4 message is divided into n sheet according to the PMTU value of message length and IPv6 is that the length of IPv4 message is divided into each fragment message equal with the PMTU value of IPv6, until PMTU value less than or equal to IPv6 of the length of IPv4 message.
In step 350, IPv4 heading is encapsulated in the IPv4 extension header of IPv6 message, and connects the IPv4 message content in each IPv6 message, be encapsulated as IPv6 message.
In step 360, channel message exports.
In this embodiment, PMTU value according to message length Yu IPv6 determines IPv4 message fragment number n, the message length after the described burst PMTU value less than IPv6, and IPv4 heading is generated n part, all burst IPv4 messages all have the source identical with original IPv4 message, purpose IP address and QoS marker.
Owing to IPv6 tunnel needs to add IPv6 heading outside IPv4 message, cause that channel message size increases, it is possible to the MTU value beyond transmission path causes message fragment.The burst of current channel message adopts IPv6 burst mechanism, namely the network equipment regards IPv4 message entirety as payload, utilize IPv6 message fragment mechanism that it is split, after so causing that burst completes, only first message encapsulates IPv4 heading, not having IPv4 heading in other channel message, equipment adopts simple offset pointer mode cannot navigate to the IPv4 heading in all messages.
In an embodiment of the present invention, IPv4 message is entering after the network equipment, and the PMTU value of the IPv6 detected with device forwards port is compared by its message length, if the PMTU value that message length is more than IPv6, it is necessary to message would be carried out burst.Its burst length less than the PMTU value of IPv6, rather than should forward the link MTU value of port.Existing IPv6 burst mechanism using IPv4 message as a payload, it is not intended that the form of IPv4 heading, so only having first message to carry IPv4 heading after divide slice.And this embodiment of the present invention solves the problem adopting cause second of IPv6 wafer separator system and successive fragment message not to have IPv4 heading information.
Fig. 4 is the schematic flow sheet of the embodiment of the method carrying out policy control based on the encapsulation of IPv6 message.Comprise the following steps:
In step 410, receive at least one IPv6 message, obtain IPv6 extension header mark from IPv6 heading.
In step 420, it may be judged whether there is IPv4 extension header, if it has, then perform step 430, if it is not, perform step 440.
In step 430, know the prolate-headed position of IPv4 according to IPv6 extension header mark, and read IPv4 extension header.
In step 440, rule is forwarded to forward by IPv6 message.
In step 450, read IPv4 heading from IPv4 extension header.
In step 460, the field contents in IPv4 heading is taken out, mates with the strategy in Policy Table.If it does, then perform step 470, if it does not match, perform step 440.
In step 470, forward according to described strategy.
In this embodiment, the equipment (such as BRAS) carrying out policy control needs to support IPv6 agreement, to support IPv4 extension header attribute when IPv6 protocol analysis.Now, carry out the IPv4 message content that the equipment of policy control can extract in extension header, according to relevant field therein, such as QoS, IPv4 destination address etc., the forwarding behavior (as cushioned, abandoning) of control message.Wherein, QoS marker carries differentiated services code points (DSCP) field at IPv4, and its content can according to application definition.Such as, speed limit, packet loss etc. are carried out according to dscp field.Or, carry out speed limit, raising speed, offer bandwidth safeguard etc. according to purpose IPv4 address.It will be understood by those of skill in the art that and be served only for citing herein, should not be construed as limitation of the present invention.
The equipment carrying out policy control is to be controlled according to the information of each burst, when receiving multiple IPv6 message, judges whether to lose burst according to the burst flag bit of IPv4 message, retransmits if it is, trigger IPv4 message.
In an embodiment of the present invention, it is first according to normal IPv6 message flow process process, when finding that IPv6 message carries IPv4 extension header, the IPv4 heading information in extension header will be resolved, and the forwarding strategy of this IPv6 channel message is set according to its information, it is achieved that the policy control to all messages.
Fig. 5 is that the present invention carries out IPv6 message encapsulation and carries out the schematic flow sheet of embodiment of the method for policy control.Comprise the following steps:
In step 501, receive IPv4 message and take out IPv4 heading.
In step 502, buffer memory IPv4 heading, and judge the relation of message length and the PMTU value of IPv6, it is determined that burst number n.
In step 503, generate n part IPv4 heading by burst number n, and the burst flag bit in IPv4 message is set.
In step 504, the IPv4 heading of generation is encapsulated in channel message, and IPv6 extension header is set.
In step 505, IPv6 extension header mark is set, indicates the prolate-headed position of IPv4.
In step 506, the IPv4 heading of taking-up is encapsulated in IPv4 extension header.
In step 507, connect IPv4 message content, be encapsulated as IPv6 message.
In step 608, recalculate associated check value.
In step 509, forward fragment message.
Wherein, on the network equipment in the middle of tunnel, it is necessary to perform relevant IPv4 message forwarding strategy.
In step 510, obtain IPv6 channel message, process IPv6 heading.
In step 511, obtain IPv6 extension header mark from IPv6 heading.
In step 512, read IPv4 extension header.
In step 513, read Policy Table.
In step 514, the relevant field in IPv4 extension header is taken out, it may be judged whether match with the policy condition in Policy Table.If coupling, then performing step 516, if not mating, then performing step 515.
In step 515, normally forward.
In step 516, strategically forward.
Strategically forwarding mentioned here refers to the relevant field according to IPv4 message, such as QoS, IPv4 destination address etc., the forwarding behavior (as cushioned, abandoning) of control message.Wherein, QoS marker carries differentiated services code points (DSCP) field at IPv4, and its content can according to application definition.Such as, speed limit, packet loss etc. are carried out according to dscp field.Or, carry out speed limit, raising speed, offer bandwidth safeguard etc. according to purpose IPv4 address.It will be understood by those of skill in the art that and be served only for citing herein, should not be construed as limitation of the present invention.
In an embodiment of the present invention, encapsulate at IPv4 message fragment and basis carries out policy control, in conjunction with the IPv4 extension header in IPv6 tunnel head, read the field contents in IPv4 heading, and perform corresponding scheduling strategy according to field meanings, it is achieved that the policy control to all messages.
The structural diagrams that Fig. 6 is an embodiment of IPv6 channel message package system of the present invention is intended to.Including heading extraction module 610 and package module 620, wherein:
Heading extraction module 610, is used for receiving IPv4 message and taking out IPv4 heading.
Package module 620, is used for arranging IPv6 heading, arranges IPv6 extension header mark, indicate the prolate-headed position of IPv4, and be encapsulated in IPv4 extension header by the IPv4 heading of taking-up in described IPv6 heading;Connect described IPv4 message content, be encapsulated as IPv6 message.
Fig. 2 show the present invention and carries the structural representation of IPv4 heading in IPv6 extension header.
As shown in the figure, in described IPv6 heading, the next leader label of instruction are IPv4, namely, the instruction prolate-headed position of IPv4, carrying IPv4 heading, IPv4 heading length and next leader label in IPv4 extension header is TCP/UDP, wherein, next leader label be TCP/UDP refer to transmit for TCP/UDP message.It will be understood by those of skill in the art that next leader label are that TCP/UDP is only intended to citing herein, should not be construed as limitation of the present invention, such as, next leader label are ICMP or other headings, and simply the value of this field is different, does not affect processing procedure.
Wherein, package module 620 is IPv6 tunnel gateway, concrete physical equipment can be home gateway, Broadband Remote Access Server (BRAS), carrier class networks address conversion (CGN), address rotation translation router (AFTR) etc., specifically sees the deployed position of tunnel portal and outlet.
In an embodiment of the present invention, receive IPv4 message by heading extraction module 610 and take out IPv4 heading;Package module 620 arranges IPv6 heading, arranges IPv6 extension header mark, indicate the prolate-headed position of IPv4, and be encapsulated in IPv4 extension header by the IPv4 heading of taking-up in described IPv6 heading;Connect described IPv4 message content, be encapsulated as IPv6 message.Therefore, it is possible to location IPv4 heading, read the content in IPv4 heading.
An alternative embodiment of the invention, after receiving IPv4 message and taking out IPv4 heading, this system also includes burst module 630, for judging IPv4 message length whether PMTU value more than IPv6, if it is not greater, do not carry out message fragment;If it is greater, then IPv4 message is divided into n sheet by the PMTU value according to message length Yu IPv6, the burst flag bit of IPv4 message is set, identifies the relation between each fragment message;
Such as, described burst module is for being divided into each fragment message equal with the PMTU value of IPv6 by the length of IPv4 message, until the PMTU value that the length of IPv4 message is less than or equal to IPv6.
Wherein, n IPv4 heading of generation is encapsulated in the IPv4 extension header of n IPv6 message by described package module 620 respectively, and connects the IPv4 message content of burst in each IPv6 message, is encapsulated as the IPv6 message of n burst.
In this embodiment, PMTU value according to message length Yu IPv6 determines IPv4 message fragment number n, the message length after the described burst PMTU value less than IPv6, and IPv4 heading is generated n part, all burst IPv4 messages all have the source identical with original IPv4 message, purpose IP address and QoS marker.
Owing to IPv6 tunnel needs to add IPv6 heading outside IPv4 message, cause that channel message size increases, it is possible to the MTU value beyond transmission path causes message fragment.The burst of current channel message adopts IPv6 burst mechanism, namely the network equipment regards IPv4 message entirety as payload, utilize IPv6 message fragment mechanism that it is split, after so causing that burst completes, only first message encapsulates IPv4 heading, not having IPv4 heading in other channel message, equipment adopts simple offset pointer mode cannot navigate to the IPv4 heading in all messages.
In an embodiment of the present invention, IPv4 message is entering after the network equipment, and the PMTU value of the IPv6 detected with device forwards port is compared by its message length, if the PMTU value that message length is more than IPv6, it is necessary to message would be carried out burst.Its burst length less than the PMTU value of IPv6, rather than should forward the link MTU value of port.Existing IPv6 burst mechanism using IPv4 message as a payload, it is not intended that the form of IPv4 heading, so only having first message to carry IPv4 heading after divide slice.And the invention solves the problem adopting cause second of IPv6 wafer separator system and successive fragment message not to have IPv4 heading information.
An alternative embodiment of the invention, this system also includes strategic control module 640, is used for receiving at least one IPv6 message, obtains IPv6 extension header mark from IPv6 heading;Know the prolate-headed position of IPv4 according to IPv6 extension header mark, and read IPv4 extension header;IPv4 heading is read from IPv4 extension header;Field contents in IPv4 heading is taken out, mates with the strategy in Policy Table, if it does, then forward according to described strategy, otherwise, normally forward.
In this embodiment, strategic control module 640 needs to support IPv6 agreement, to support IPv4 extension header attribute when IPv6 protocol analysis.Now, carry out the IPv4 message content that the equipment of policy control can extract in extension header, according to relevant field therein, such as QoS, IPv4 destination address etc., the forwarding behavior (as cushioned, abandoning) of control message.Wherein, QoS marker carries differentiated services code points (DSCP) field at IPv4, and its content can according to application definition.Such as, speed limit, packet loss etc. are carried out according to dscp field.Or, carry out speed limit, raising speed, offer bandwidth safeguard etc. according to purpose IPv4 address.It will be understood by those of skill in the art that and be served only for citing herein, should not be construed as limitation of the present invention.
Strategic control module 640 is to be controlled according to the information of each burst, when receiving multiple IPv6 message, judges whether to lose burst according to the burst flag bit of IPv4 message, retransmits if it is, trigger IPv4 message.
Wherein, strategic control module 640 can be router, bandwidth RAS (BRAS) etc..
In an embodiment of the present invention, by conjunction with the IPv4 extension header in IPv6 tunnel head, reading the field contents in IPv4 heading, and perform corresponding scheduling strategy according to field meanings, it is achieved that the policy control to all messages.
So far, the present invention is described in detail.In order to avoid covering the design of the present invention, it does not have describe details more known in the field.Those skilled in the art are as described above, complete it can be appreciated how implement technical scheme disclosed herein.
It is likely to be achieved in many ways the method for the present invention and device.Such as, can by software, hardware, firmware or software, hardware, firmware any combination realize method and the device of the present invention.For the said sequence of step of described method merely to illustrate, the step of the method for the present invention is not limited to order described in detail above, unless specifically stated otherwise.Additionally, in certain embodiments, can being also record program in the recording medium by the invention process, these programs include the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covers the record medium of the storage program for performing the method according to the invention.
Although some specific embodiments of the present invention being described in detail already by example, but it should be appreciated by those skilled in the art, above example is merely to illustrate, rather than in order to limit the scope of the present invention.It should be appreciated by those skilled in the art, can without departing from the scope and spirit of the present invention, above example be modified.The scope of the present invention be defined by the appended claims.
Claims (10)
1. an IPv6 channel message method for packing, including:
Receive IPv4 message and take out IPv4 heading;
IPv6 heading is set, described IPv6 heading arranges IPv6 extension header mark, indicates the prolate-headed position of IPv4, and the IPv4 heading of taking-up is encapsulated in IPv4 extension header;
Connect described IPv4 message content, be encapsulated as IPv6 message.
2. IPv6 channel message method for packing according to claim 1, including:
Receive IPv4 message and take out IPv4 heading;
Judge IPv4 message length whether PMTU value more than IPv6, if it is not greater, do not carry out message fragment, the IPv4 heading of taking-up is encapsulated in IPv4 extension header, and connects described IPv4 message content, be encapsulated as IPv6 message;
If greater than, then IPv4 message is divided into n sheet by the PMTU value according to message length Yu IPv6, the burst flag bit of IPv4 message is set, identify the relation between each fragment message, respectively n IPv4 heading of generation is encapsulated in the IPv4 extension header of n IPv6 message, and connect the IPv4 message content of burst in each IPv6 message, it is encapsulated as the IPv6 message of n burst.
3. IPv6 channel message method for packing according to claim 2, including:
The length of IPv4 message is divided into each fragment message equal with the PMTU value of IPv6, until the PMTU value that the length of IPv4 message is less than or equal to IPv6.
4. according to the arbitrary described IPv6 channel message method for packing of claims 1 to 3, including:
Receive at least one IPv6 message, obtain IPv6 extension header mark from IPv6 heading;
Know the prolate-headed position of IPv4 according to IPv6 extension header mark, and read IPv4 extension header;
IPv4 heading is read from IPv4 extension header;
Field contents in IPv4 heading is taken out, mates with the strategy in Policy Table, if it does, then forward according to described strategy, otherwise, normally forward.
5. IPv6 channel message method for packing according to claim 4, including:
When receiving multiple IPv6 message, judge whether to lose burst according to the burst flag bit of IPv4 message, retransmit if it is, trigger IPv4 message.
6. an IPv6 channel message package system, including:
Heading extraction module, is used for receiving IPv4 message and taking out IPv4 heading;
Package module, is used for arranging IPv6 heading, arranges IPv6 extension header mark, indicate the prolate-headed position of IPv4, and be encapsulated in IPv4 extension header by the IPv4 heading of taking-up in described IPv6 heading;Connect described IPv4 message content, be encapsulated as IPv6 message.
7. IPv6 channel message package system according to claim 6, also includes:
Burst module, for judging IPv4 message length whether PMTU value more than IPv6, if it is not greater, do not carry out message fragment;If it is greater, then IPv4 message is divided into n sheet by the PMTU value according to message length Yu IPv6, the burst flag bit of IPv4 message is set, identifies the relation between each fragment message;
Wherein, n IPv4 heading of generation is encapsulated in the IPv4 extension header of n IPv6 message by described package module respectively, and connects the IPv4 message content of burst in each IPv6 message, is encapsulated as the IPv6 message of n burst.
8. IPv6 channel message package system according to claim 7, including:
Described burst module is for being divided into each fragment message equal with the PMTU value of IPv6 by the length of IPv4 message, until the PMTU value that the length of IPv4 message is less than or equal to IPv6.
9., according to the arbitrary described IPv6 channel message package system of claim 6 to 8, also include:
Strategic control module, is used for receiving at least one IPv6 message, obtains IPv6 extension header mark from IPv6 heading;Know the prolate-headed position of IPv4 according to IPv6 extension header mark, and read IPv4 extension header;IPv4 heading is read from IPv4 extension header;Field contents in IPv4 heading is taken out, mates with the strategy in Policy Table, if it does, then forward according to described strategy, otherwise, normally forward.
10. IPv6 channel message package system according to claim 9, including:
Described strategic control module, for when receiving multiple IPv6 message, judging whether to lose burst according to the burst flag bit of IPv4 message, retransmits if it is, trigger IPv4 message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410779694.3A CN105763659B (en) | 2014-12-16 | 2014-12-16 | A kind of IPv6 tunnel packet packaging method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410779694.3A CN105763659B (en) | 2014-12-16 | 2014-12-16 | A kind of IPv6 tunnel packet packaging method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105763659A true CN105763659A (en) | 2016-07-13 |
CN105763659B CN105763659B (en) | 2019-02-05 |
Family
ID=56336953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410779694.3A Active CN105763659B (en) | 2014-12-16 | 2014-12-16 | A kind of IPv6 tunnel packet packaging method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105763659B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018121257A1 (en) * | 2016-12-30 | 2018-07-05 | 中兴通讯股份有限公司 | Method, apparatus and system for sending message, and storage medium |
CN113726635A (en) * | 2021-08-30 | 2021-11-30 | 新华三大数据技术有限公司 | Message processing method and device and electronic equipment |
WO2022121638A1 (en) * | 2020-12-11 | 2022-06-16 | 华为技术有限公司 | Packet processing method and device |
CN115022423A (en) * | 2022-06-22 | 2022-09-06 | 上海弘积信息科技有限公司 | IPv4 identifier distribution method in load balancing equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716954A (en) * | 2005-05-27 | 2006-01-04 | 清华大学 | Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism |
CN101136841A (en) * | 2006-08-28 | 2008-03-05 | 中兴通讯股份有限公司 | Field programmable gate array based tunnel implementing device and method |
US7424019B1 (en) * | 2001-11-27 | 2008-09-09 | Marvell Israel (M.I.S.L) Ltd. | Packet header altering device |
-
2014
- 2014-12-16 CN CN201410779694.3A patent/CN105763659B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7424019B1 (en) * | 2001-11-27 | 2008-09-09 | Marvell Israel (M.I.S.L) Ltd. | Packet header altering device |
CN1716954A (en) * | 2005-05-27 | 2006-01-04 | 清华大学 | Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism |
CN101136841A (en) * | 2006-08-28 | 2008-03-05 | 中兴通讯股份有限公司 | Field programmable gate array based tunnel implementing device and method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018121257A1 (en) * | 2016-12-30 | 2018-07-05 | 中兴通讯股份有限公司 | Method, apparatus and system for sending message, and storage medium |
WO2022121638A1 (en) * | 2020-12-11 | 2022-06-16 | 华为技术有限公司 | Packet processing method and device |
CN113726635A (en) * | 2021-08-30 | 2021-11-30 | 新华三大数据技术有限公司 | Message processing method and device and electronic equipment |
CN113726635B (en) * | 2021-08-30 | 2023-05-26 | 新华三大数据技术有限公司 | Message processing method and device and electronic equipment |
CN115022423A (en) * | 2022-06-22 | 2022-09-06 | 上海弘积信息科技有限公司 | IPv4 identifier distribution method in load balancing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105763659B (en) | 2019-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11671367B1 (en) | Methods and apparatus for improving load balancing in overlay networks | |
US10374947B2 (en) | Method and apparatus for encapsulating / decapsulating data packets at a radio access node | |
US11979322B2 (en) | Method and apparatus for providing service for traffic flow | |
JP6666051B2 (en) | Data transmission method, device and system | |
US20190245809A1 (en) | System and method for message handling in a network device | |
US10110641B2 (en) | Establishing a data transfer connection | |
CN107682370B (en) | Method and system for creating protocol headers for embedded layer two packets | |
WO2021088813A1 (en) | Packet encapsulating method and apparatus, and packet decapsulating method and apparatus | |
US8724630B2 (en) | Method and system for implementing network intercommunication | |
CN105763659A (en) | IPv6 tunneling packet encapsulation method and system | |
CN104579973B (en) | Message forwarding method and device in a kind of Virtual Cluster | |
US9762486B2 (en) | Method and system for using extension headers to support protocol stack migration | |
CN108064441B (en) | Method and system for accelerating network transmission optimization | |
EP2600569A1 (en) | Method, apparatus and system for processing a tunnel packet | |
CN107231309B (en) | Obtain method, controller and the purpose switching node of SDN the whole network view | |
EP2858415B1 (en) | Multi-link-based data transmission method and device | |
CN115733898A (en) | Data transmission method and related equipment | |
CN113973134A (en) | Data transmission method and device, electronic equipment and computer storage medium | |
US20230412501A1 (en) | Data processing method and apparatus, and chip | |
CN114006860B (en) | User access method, system and device | |
CN105847141A (en) | Communication method on communication device with multiple communication links and the communication device | |
CN117478458A (en) | Message processing method, device and network equipment | |
CN117461297A (en) | Use of an IP network for routing cellular data packets | |
Huaqing et al. | A Customized IPv6 Header for Packet Transmission over a LAN | |
Zhou et al. | A Customized IPv6 Header for Packet Transmission over a LAN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |