CN101645823A - Method and device for compressing 6to4 tunnel - Google Patents

Method and device for compressing 6to4 tunnel Download PDF

Info

Publication number
CN101645823A
CN101645823A CN200910169781A CN200910169781A CN101645823A CN 101645823 A CN101645823 A CN 101645823A CN 200910169781 A CN200910169781 A CN 200910169781A CN 200910169781 A CN200910169781 A CN 200910169781A CN 101645823 A CN101645823 A CN 101645823A
Authority
CN
China
Prior art keywords
ipv6
head
field
ipv4
address
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
Application number
CN200910169781A
Other languages
Chinese (zh)
Other versions
CN101645823B (en
Inventor
黄哲
曹佐清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009101697816A priority Critical patent/CN101645823B/en
Publication of CN101645823A publication Critical patent/CN101645823A/en
Application granted granted Critical
Publication of CN101645823B publication Critical patent/CN101645823B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for compressing a 6to4 tunnel, comprising the following steps: encapsulating IPv6 message into IPv4 message by source end equipment; compressing headers of the IPv4 and IPv6 by downsizing or sharing parts of fields; adding compressed zonebit and transmitting the zonebit to target end equipment through the tunnel; receiving the message from the starting point of thetunnel by the target end equipment; and restoring original IPv6 message in the compressed message according to a decompression method corresponding to the compression method of the target end equipment when judging as the compression message by the compression zonebit. The invention can greatly reduce the header length in transmission, is able to obtain MTU value approximately equivalent to non tunnel encapsulation, and improves transmission efficiency.

Description

The compression method and the device in a kind of 6to4 tunnel
Technical field
The present invention relates to communication technical field, relate in particular to the compression method and the device in a kind of 6to4 tunnel.
Background technology
IPv6 (Internet Protocol version 6, IP Internet Protocol version 6) to IPv4 (InternetProtocol version 4, the IP Internet Protocol edition 4) tunnel is the heading that encapsulates IPv4 before the IPv6 data message, make the IPv6 message pass through the IPv4 network by tunnel (Tunnel), realize the interoperability methods of the IPv6 network of isolation.
Tunnel type is divided into manual tunnel and automatic tunnel two big classes again, and manually the tunnel needs the manual destination IP v4 address, tunnel of specifying; Automatic tunnel then can obtain the IPv4 address of tunnel destination automatically according to purpose IPv6 address.Automatic tunnel is divided into the compatible IPv6 automatic tunnel of IPv4,6to4 tunnel, ISATAP (Intra-Site Automatic Tunnel Addressing Protocol, the inner automatic tunnel addressing protocol of website) tunnel again.
Wherein, the 6to4 tunnel is realized as shown in Figure 1, two 6to4 networks (6to4 group 1 and 6to4 group 2) link to each other with the IPv4 network by network edge 6to4 router (router-A and router B), in order to realize main frame Host A in the 6to4 network and the intercommunication between the Host B, need configuration 6to4 tunnel.
Wherein, the 6to4 tunnel adopts special 6to4 address, and its form is: 2002:abcd:efgh: subnet number:: interface ID/64.Wherein, the fixing IPv6 address prefix of 2002 expressions, abcd:efgh represents the globally unique IPv4 source address of 32 of this 6to4 tunnel correspondence, represents (can be expressed as 0101:0101 as 1.1.1.1) with 16 systems.Part unique identification after the 2002:abcd:efgh position of main frame in the 6to4 group.Can determine automatically the terminal point in tunnel to make setting up of tunnel very convenient by the IPv4 address of this embedding.
For example, the IPv4 address of interface Ethernet1/2 is 2.1.1.1/24 on the router-A, converts use 6to4 prefix 2002:0201:0101: behind the IPv6 address to :/48.This prefix is carried out subnet divide, Tunnel0 uses 2002:0201:0101: :/64 subnets, Ethernet1/1 uses 2002:0201:0101:1: :/64 subnets.The IPv4 address that router B goes up interface Ethernet1/2 is 5.1.1.1/24, converts use 6to4 prefix 2002:0501:0101: behind the IPv6 address to :/48.This prefix is carried out subnet divide, Tunnel0 uses 2002:0501:0101: :/64 subnets, Ethernet1/1 uses 2002:0501:0101:1: :/64 subnets.
After having disposed above-mentioned 6to4 tunnel, router the IPv6 message is carried out the 6to4 encapsulation, and the 6to4 message after will encapsulating sends to opposite equip. by the 6to4 tunnel after receiving the IPv6 message of main frame by the transmission of 6to4 group.Wherein the 6to4 encapsulation process is as shown in Figure 2:
Before this IPv6 bag, add the first-born one-tenth of IPv4 6to4 bag, before this 6to4 bag, add frame head, add postamble in this 6to4 bag back and form transmission frame.Because in the encapsulation process in 6to4 tunnel, on original IPv6 package base, increased the head of IPv4, make the 6to4 packet length increase by 20 bytes (length of IPv4 head) than the IPv6 bag, can cause MTU (Maximum Transmission Unit for IPv6 reality, MTU) value reduces 20 bytes (length of IPv4 head), be that the useful byte number of transmission reduces in the effective bandwidth, thereby reduce efficiency of transmission.
Summary of the invention
The invention provides the compression method and the device in a kind of 6to4 tunnel, when the IPv6 message passes through tunnel transmission,, thereby provide bigger MTU to IPv6 by the compression head length.
The invention provides the compression method in a kind of 6to4 tunnel, the IPv6 network that is applied to isolate is by in the system of IPv4 network interworking, and described system comprises source end equipment and destination equipment, said method comprising the steps of:
Described source end equipment is encapsulated as the IPv4 message with the IPv6 message, and IPv4 head and IPv6 head are compressed by reduction or common sparing field, and adds the compression flag bit, sends to destination equipment by the tunnel;
Described destination equipment receives the message from described source end equipment, is judged as compressed packet by the compression flag bit, then restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet.
Described IPv4 head and IPv6 head are compressed concrete one or more realizations in the following manner by reducing the part field:
Reduce the part of representing fixing IPv6 address prefix in IPv6 address, source and the purpose IPv6 address and representing corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Reduce the Version field of IPv6 head;
Reduce the pay(useful) load length field of IPv6 head.
Described IPv4 head and IPv6 head are compressed concrete one or more realizations in the following manner by the common sparing field:
The Next Header and the HopLimit field of IPv6 head are total to the Identification field that 16bits integral body is put into the IPv4 head;
High 4 with the Traffic Class field of IPv6 head and Flow Label field amount to 12 as a whole, are put into low 12 of Fragment Offset field of IPv4 head;
Low 16 with Flow Label field are placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address.
Described interpolation compression flag bit is specially:
With the extreme higher position of the Flag field of IPv4 is 1 or 0, with the expression compressed packet.
From described compressed packet, restore original IPv6 message according to the decompression method corresponding with the compression method of source end equipment, specifically comprise following one or more:
According to fixing IPv6 address prefix, the corresponding relation of fixed port and 32 unique IPv4 source addresses in the whole world recovers the IPv6 address prefix that expression is fixed in IPv6 address, source and the purpose IPv6 address and represents corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Obtain the Version field of IPv6 head according to the protocol fields of IPv4 head in the compressed packet;
Total Length field in the IPv4 head-compression back message length obtains the pay(useful) load length field of IPv6 head;
From the Identification field of IPv4 head, obtain the Next Header and the HopLimit field of IPv6 head;
From low 12 of the Fragment Offset field of IPv4 head, obtain the high 4 of the TrafficClass field of IPv6 head and Flow Label field;
Obtain low 16 and the IPv6 source address and remaining 20 bytes of destination address of Flow Label field from IPv4 head back.
The present invention also provides a kind of 6to4 the compression set in tunnel, and the IPv6 network that is applied to isolate is by in the system of IPv4 network interworking, and described system comprises source end equipment and destination equipment, when described device is source end equipment, comprising:
Package module is used for the IPv6 message is encapsulated as the IPv4 message, and IPv4 head and IPv6 head are compressed by reduction or common sparing field, and adds the compression flag bit;
Sending module is connected with described package module, is used for sending to destination equipment by the message of tunnel after with described compression;
When described device is destination equipment, comprising:
Receiver module is used to receive the message from described tunnel starting point;
Judge module is connected with described receiver module, is used for being judged as compressed packet by the compression flag bit;
Decompression module is connected with described judge module, is used for compressed packet, restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet.
Described package module, one or more realizations that specifically are used for are in the following manner reduced:
Reduce the part of representing fixing IPv6 address prefix in IPv6 address, source and the purpose IPv6 address and representing corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Reduce the Version field of IPv6 head;
Reduce the pay(useful) load length field of IPv6 head.
Described package module, one or more realizations that specifically are used in the following manner are shared:
The Next Header and the HopLimit field of IPv6 head are total to the Identification field that 16bits integral body is put into the IPv4 head;
High 4 with the Traffic Class field of IPv6 head and Flow Label field amount to 12 as a whole, are put into low 12 of Fragment Offset field of IPv4 head;
Low 16 with Flow Label field are placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address.
Described package module is 1 or 0 with the extreme higher position of the Flag field of IPv4, with the expression compressed packet.
Described decompression module, specifically be used for according to fixing IPv6 address prefix, the corresponding relation of fixed port and 32 unique IPv4 source addresses in the whole world recovers the IPv6 address prefix that expression is fixed in IPv6 address, source and the purpose IPv6 address and represents corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel; Obtain the Version field of IPv6 head according to the protocol fields of IPv4 head in the compressed packet;
Total Length field in the IPv4 head-compression back message length obtains the pay(useful) load length field of IPv6 head;
From the Identification field of IPv4 head, obtain the Next Header and the HopLimit field of IPv6 head;
From low 12 of the Fragment Offset field of IPv4 head, obtain the high 4 of the TrafficClass field of IPv6 head and Flow Label field;
Obtain low 16 and the IPv6 source address and remaining 20 bytes of destination address of Flow Label field from IPv4 head back.
Compared with prior art, the present invention has the following advantages:
Among the present invention, during the IPv6 message transmits, significantly reduce the head length of transmission in the tunnel, can obtain the MTU value roughly suitable, improve efficiency of transmission with non-tunnel encapsulation; And owing to be, help adopting the mode of hardware accelerator to improve the speed of compression and decompress(ion) at fixed field and reduction and merging.
Description of drawings
Fig. 1 is that the IPv6 message passes through IPv4 network development process schematic diagram by the 6to4 tunnel in the prior art;
Fig. 2 is the encapsulation process schematic diagram that data enter the 6to4 tunnel in the prior art;
Fig. 3 is the compression method flow chart in a kind of 6to4 tunnel among the present invention;
Fig. 4 is the head construction schematic diagram of IPv6 among the present invention;
Fig. 5 is the compression process schematic diagram when IPv6 message passes through the IPv4 network by the 6to4 tunnel among the present invention;
Fig. 6 is the message encapsulation format schematic diagram after the compression of 6to4 tunnel among the present invention;
Fig. 7 is the compression set structure chart in 6to4 tunnel among the present invention.
Embodiment
Core concept of the present invention is: at 6to4 tunnel source end equipment the IPv6 message that has added the IPv4 head is compressed, the IPv4 head of 20 bytes and the IPv6 head of 40 bytes are passed through to reduce or the common sparing field, thereby be compressed to 42 bytes; Message after the compression is arrived 6to4 tunnel destination equipment by the 6to4 tunnel transmission; This 6to4 destination equipment adopts the decompression method opposite with 6to4 source end equipment compression method that the compressed packet that receives is decompressed, and obtains the preceding message of compression.Therefore, the present invention can significantly reduce the head length of transmission, can obtain the MTU value roughly suitable with non-tunnel encapsulation, improves efficiency of transmission.
The invention provides the compression method in a kind of 6to4 tunnel, the IPv6 network that is applied to isolate is by in the system of IPv4 network interworking, and described system comprises source end equipment and destination equipment, and described method may further comprise the steps as shown in Figure 3:
Step 301, described source end equipment is encapsulated as the IPv4 message with the IPv6 message, and IPv4 head and IPv6 head are compressed by reduction or common sparing field, and adds the compression flag bit, sends to destination equipment by the 6to4 tunnel.
Described IPv4 head and IPv6 head are compressed concrete one or more realizations in the following manner by reducing the part field:
Reduce the part of representing fixing IPv6 address prefix in IPv6 address, source and the purpose IPv6 address and representing corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel, promptly 2002:abcd:efgh amounts to 12 bytes; Because the fixing IPv6 address prefix of 2002 expressions, so this field can reduce, and can directly add during recovery; 32 unique IPv4 source address parts in the whole world are corresponding with fixed port, and destination device is known, so this field can be reduced.
Reducing the Version field of IPv6 head, amount to 4bits, is the IPv6 message because the protocol fields in the IPv4 head (value is 41) can show this tunnel encapsulation.
Reduce the pay(useful) load length field of IPv6 head, because can calculate the pay(useful) load length field of IPv6 head from the TotalLength field the IPv4 head.
Described IPv4 head and IPv6 head are compressed concrete one or more realizations in the following manner by the common sparing field:
The Next Header (next packet header) and HopLimit (the jumping the hop count restriction) field of IPv6 head are total to Identification (sign) field that 16bits integral body is put into the IPv4 head; Because in the 6to4 tunnel, IPv4 sees the link layer of IPv6 as, thus need not to consider the situation of IPv4 burst, but by IPv6 burst voluntarily, the Identification field of IPv4 is not used, and can be used to place NextHeader and Hop Limit field.
High 4 with Traffic Class (discharge pattern) field of IPv6 head and Flow Label (flow label) field amount to 12 as a whole, are put into low 12 of Fragment Offset (pip displacement) field of IPv4 head; Because low 12 of the Fragment Offset field of IPv4 head are left reserved field, therefore, can place foregoing.
Low 16 with Flow Label field are placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address, because foregoing can be deposited for filling field in IPv4 head back therefore.
With the extreme higher position of the Flag field of IPv4 is 1 or 0, with the expression compressed packet.
Step 302, described destination equipment receives the message from described source end equipment, is judged as compressed packet by the compression flag bit, then restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet.
From described compressed packet, restore original IPv6 message according to the decompression method corresponding with the compression method of source end equipment, specifically comprise following one or more:
According to fixing IPv6 address prefix, the corresponding relation of fixed port and 32 unique IPv4 source addresses in the whole world recovers the IPv6 address prefix that expression is fixed in IPv6 address, source and the purpose IPv6 address and represents corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Obtain the Version field of IPv6 head according to the protocol fields of IPv4 head in the compressed packet;
Total Length (data packet length) field in the IPv4 head-compression back message length obtains the pay(useful) load length field of IPv6 head;
Next Header and the HopLimit field of obtaining the IPv6 head from the Identification field of IPv4 head are total to 16bits;
From low 12 of the Fragment Offset field of IPv4 head, obtain the high 4 of the TrafficClass field of IPv6 head and Flow Label field;
Obtain low 16 and the IPv6 source address and remaining 20 bytes of destination address of Flow Label field from IPv4 head back.
Can realize the reduction of heading and shared according to above-mentioned principle, below be that example describes with the optimum efficiency, be about to 2002:abcd:efgh in two IPv6 addresses (source address and destination address) wherein and partly amount to 12 bytes and dismiss, only keep the remaining address part that amounts to 20 bytes; And the head of IPv4 is then reduced or merged to IPv6 head other field except that stream label, finally obtains the head of 42 bytes.Also can adopt wherein part reduction or method for sharing in the practical application,, also can realize the compressed packet purpose though do not realize optimum efficiency.
The IPv6 heading compresses preceding form as shown in Figure 4, and compression process is illustrated in fig. 5 shown below when passing through the IPv4 network by the 6to4 tunnel, and compression process specifically describes as follows:
1, IPv6 address, source (Source Address) and purpose IPv6 address (DestinationAddress) respectively account for 16 bytes, 32 bytes have been taken altogether, structure according to the 6to4 address, the fixing IPv6 address prefix of expression wherein and represent the part of corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel, be 2002:abcd:efgh, amount to 12 bytes and reduce.
2, the Version field (4bits) of IPv6 head reduces; Because the IPv6 tunnel communication of all tunnel encapsulation in the IPV4 header all IPv4 protocol fields in the header is set to 41, wherein, the communication of IPv6 tunnel comprises the communication of using IPv4 compatible address, 6over4 address, ISATAP address and 6to4 address.What therefore, the protocol fields in the IPv4 head (value is 41) can show this tunnel encapsulation is the IPv6 message.
3, the pay(useful) load length field of IPv6 head (Payload Length) reduces, because can calculate (projectional technique is Payload Length=TotalLength-42) from the Total Length field the IPv4 head;
4, the Next Header (8bits) of IPv6 head and HopLimit (8bits) field are total to the Identification field (16bits) that 16bits integral body is put into the IPv4 head.Because in the 6to4 tunnel, IPv4 sees the link layer of IPv6 as, thus need not to consider the situation of IPv4 burst, but by IPv6 burst voluntarily, the Identification field of IPv4 is not used, and can be used to place Next Header and Hop Limit field.
5, high 4 of Traffic Class (8bits) field of IPv6 head and Flow Label (20bits) field amount to 12 as a whole, are put into low 12 of Fragment Offset (13bits) field of IPv4 head;
6, low 16 (2 bytes) of Flow Label field is placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address.
7, the highest order of the Flag field (3bits) of IPv4, promptly keep the position, be changed to 1, be a compressed packet to represent this, the recipient can judge that according to this sign this message through overcompression, need do corresponding decompression.
Through after the above-mentioned compression, only remaining 22 bytes of IPv6 head, add 20 bytes of IPv4, amount to 42 bytes, promptly when the IPv6 message passed through the 6to4 tunnel transmission, the head length of 6to4 was compressed into 42 byte lengths, with respect to the IPv6 message of non-tunnel encapsulation, only increase the head length of 2 bytes, improved the efficient of transmission.
Message encapsulation format after the tunnel compression is illustrated in fig. 6 shown below:
After termination point of a tunnel is received compressed packet, judging this message according to the reservation flag position in the Flag field is compressed packet, then can from message, restore TC (Traffic Class), FL (Flow Label), Next Header, HopLimit field, and extrapolate Payload Length value, and reformulate source address and the destination address of IPv6 according to the source address of IPv4 and destination address, thereby complete restore original IPv6 message.
Make the head length in 6to4 tunnel by original 42 bytes of 60 byte boil down tos by the method for IPv6 head fixed field being reduced and merge, can obtain the MTU value roughly suitable with non-tunnel transmission, thereby improved efficiency of transmission relatively, and reduction original message that can be complete.
The present invention also provides a kind of 6to4 the compression set in tunnel, and as shown in Figure 7, the IPv6 network that is applied to isolate is by in the system of IPv4 network interworking, and described system comprises source end equipment and destination equipment, when described device is source end equipment, comprising:
Package module 710 is used for the IPv6 message is encapsulated as the IPv4 message, and IPv4 head and IPv6 head are compressed by reduction or common sparing field, and adds the compression flag bit;
Package module 710, one or more realizations that specifically are used for are in the following manner reduced:
Reduce the part of representing fixing IPv6 address prefix in IPv6 address, source and the purpose IPv6 address and representing corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel, promptly 2002:abcd:efgh amounts to 12 bytes;
Reduce the Version field of IPv6 head, amount to 4bits;
Reduce the pay(useful) load length field of IPv6 head.
Package module 710, one or more realizations that specifically are used in the following manner are shared:
The Next Header and the HopLimit field of IPv6 head are total to the Identification field that 16bits integral body is put into the IPv4 head;
High 4 with the Traffic Class field of IPv6 head and Flow Label field amount to 12 as a whole, are put into low 12 of Fragment Offset field of IPv4 head;
Low 16 with Flow Label field are placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address.
Package module 710 is 1 or 0 with the extreme higher position of the Flag field of IPv4, with the expression compressed packet.
Sending module 720 is connected with package module 710, is used for sending to destination equipment by the message of tunnel after with described compression;
When described device is destination equipment, comprising:
Receiver module 730 is used to receive the message from described source end equipment;
Judge module 740 is connected with receiver module 730, is used for being judged as compressed packet by the compression flag bit; For example, judging this message according to the reservation flag position in the Flag field is compressed packet.
Decompression module 750 is connected with judge module 740, is used for compressed packet, restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet.Specifically be used for according to fixing IPv6 address prefix, the corresponding relation of fixed port and 32 unique IPv4 source addresses in the whole world recovers the IPv6 address prefix that expression is fixed in IPv6 address, source and the purpose IPv6 address and represents corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Obtain the Version field of IPv6 head according to the protocol fields of IPv4 head in the compressed packet;
Total Length field in the IPv4 head-compression back message length obtains the pay(useful) load length field of IPv6 head;
Next Header and the HopLimit field of obtaining the IPv6 head from the Identification field of IPv4 head are total to 16bits;
From low 12 of the Fragment Offset field of IPv4 head, obtain the high 4 of the TrafficClass field of IPv6 head and Flow Label field;
Obtain low 16 and the IPv6 source address and remaining 20 bytes of destination address of Flow Label field from IPv4 head back.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1, the compression method in a kind of 6to4 tunnel, the IPv6 network that is applied to isolate is by in the system of IPv4 network interworking, and described system comprises source end equipment and destination equipment, it is characterized in that, said method comprising the steps of:
Described source end equipment is encapsulated as the IPv4 message with the IPv6 message, and IPv4 head and IPv6 head are compressed by reduction or common sparing field, and adds the compression flag bit, sends to destination equipment by the tunnel;
Described destination equipment receives the message from described source end equipment, is judged as compressed packet by the compression flag bit, then restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet.
2, the method for claim 1 is characterized in that, described IPv4 head and IPv6 head is compressed by reducing the part field, concrete one or more realizations in the following manner:
Reduce the part of representing fixing IPv6 address prefix in IPv6 address, source and the purpose IPv6 address and representing corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Reduce the version Version field of IPv6 head;
Reduce the pay(useful) load length field of IPv6 head.
3, the method for claim 1 is characterized in that, described IPv4 head and IPv6 head is compressed by the common sparing field, concrete one or more realizations in the following manner:
The Identification field that the Next Header and the HopLimit field integral body of IPv6 head are put into the IPv4 head;
High 4 with the Traffic Class field of IPv6 head and Flow Label field amount to 12 as a whole, are put into low 12 of Fragment Offset field of IPv4 head;
Low 16 with Flow Label field are placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address.
4, the method for claim 1 is characterized in that, described interpolation compression flag bit is specially:
With the extreme higher position of the Flag field of IPv4 is 1 or 0, with the expression compressed packet.
5, the method for claim 1 is characterized in that, restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet, specifically comprise following one or more:
According to fixing IPv6 address prefix, the corresponding relation of fixed port and 32 unique IPv4 source addresses in the whole world recovers the IPv6 address prefix that expression is fixed in IPv6 address, source and the purpose IPv6 address and represents corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Obtain the Version field of IPv6 head according to the protocol fields of IPv4 head in the compressed packet;
Total Length field in the IPv4 head-compression back message length obtains the pay(useful) load length field of IPv6 head;
From the Identification field of IPv4 head, obtain the Next Header and the HopLimit field of IPv6 head;
From low 12 of the Fragment Offset field of IPv4 head, obtain the high 4 of the TrafficClass field of IPv6 head and Flow Label field;
Obtain low 16 and the IPv6 source address and remaining 20 bytes of destination address of Flow Label field from IPv4 head back.
6, the compression set in a kind of 6to4 tunnel, the IPv6 network that is applied to isolate is by in the system of IPv4 network interworking, and described system comprises source end equipment and destination equipment, it is characterized in that, when described device is source end equipment, comprising:
Package module is used for the IPv6 message is encapsulated as the IPv4 message, and IPv4 head and IPv6 head are compressed by reduction or common sparing field, and adds the compression flag bit;
Sending module is connected with described package module, is used for sending to destination equipment by the message of tunnel after with described compression;
When described device is destination equipment, comprising:
Receiver module is used to receive the message from described source end equipment;
Judge module is connected with described receiver module, is used for being judged as compressed packet by the compression flag bit;
Decompression module is connected with described judge module, is used for compressed packet, restores original IPv6 message according to the decompression method corresponding with the compression method of source end equipment from described compressed packet.
7, device as claimed in claim 6 is characterized in that,
Described package module, one or more realizations that specifically are used for are in the following manner reduced:
Reduce the part of representing fixing IPv6 address prefix in IPv6 address, source and the purpose IPv6 address and representing corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Reduce the Version field of IPv6 head;
Reduce the pay(useful) load length field of IPv6 head.
8, device as claimed in claim 6 is characterized in that,
Described package module, one or more realizations that specifically are used in the following manner are shared:
The Next Header and the HopLimit field of IPv6 head are total to the Identification field that 16bits integral body is put into the IPv4 head;
High 4 with the Traffic Class field of IPv6 head and Flow Label field amount to 12 as a whole, are put into low 12 of Fragment Offset field of IPv4 head;
Low 16 with Flow Label field are placed on IPv4 head back with IPv6 source address and remaining 20 bytes of destination address.
9, device as claimed in claim 6 is characterized in that, described package module is 1 or 0 with the extreme higher position of the Flag field of IPv4, with the expression compressed packet.
10, device as claimed in claim 6 is characterized in that,
Described decompression module, specifically be used for according to fixing IPv6 address prefix, the corresponding relation of fixed port and 32 unique IPv4 source addresses in the whole world recovers the IPv6 address prefix that expression is fixed in IPv6 address, source and the purpose IPv6 address and represents corresponding 32 the unique IPv4 source addresses in the whole world in this 6to4 tunnel;
Obtain the Version field of IPv6 head according to the protocol fields of IPv4 head in the compressed packet;
Total Length field in the IPv4 head-compression back message length obtains the pay(useful) load length field of IPv6 head;
From the Identification field of IPv4 head, obtain the Next Header and the HopLimit field of IPv6 head;
From low 12 of the Fragment Offset field of IPv4 head, obtain the high 4 of the TrafficClass field of IPv6 head and Flow Label field;
Obtain low 16 and the IPv6 source address and remaining 20 bytes of destination address of Flow Label field from IPv4 head back.
CN2009101697816A 2009-09-02 2009-09-02 Method and device for compressing 6to4 tunnel Expired - Fee Related CN101645823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101697816A CN101645823B (en) 2009-09-02 2009-09-02 Method and device for compressing 6to4 tunnel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101697816A CN101645823B (en) 2009-09-02 2009-09-02 Method and device for compressing 6to4 tunnel

Publications (2)

Publication Number Publication Date
CN101645823A true CN101645823A (en) 2010-02-10
CN101645823B CN101645823B (en) 2012-01-04

Family

ID=41657547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101697816A Expired - Fee Related CN101645823B (en) 2009-09-02 2009-09-02 Method and device for compressing 6to4 tunnel

Country Status (1)

Country Link
CN (1) CN101645823B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012089107A1 (en) * 2010-12-27 2012-07-05 华为技术有限公司 Method and device for transmitting information over ipv4 network
CN103152441A (en) * 2013-01-31 2013-06-12 北京天地互连信息技术有限公司 Header compression method in mobile IPv6
TWI493948B (en) * 2012-08-22 2015-07-21 Hon Hai Prec Ind Co Ltd System, device and method for reducing network address header
CN106376021A (en) * 2016-08-31 2017-02-01 邱岩 Internet of things-oriented content centric network protocol optimization method
US20170237835A1 (en) * 2014-08-21 2017-08-17 Nokia Technologies Oy Ipv4 communications using 6lowpan header compression mechanisms
CN107104911A (en) * 2017-04-06 2017-08-29 清华大学 The dividing method and sending method of UDP message bag
CN112804146A (en) * 2018-05-25 2021-05-14 华为技术有限公司 Message transmission method, communication device and system
CN113242181A (en) * 2021-01-18 2021-08-10 网络通信与安全紫金山实验室 Message and sending method for realizing source routing at overlay layer based on ESP (encapsulating Security protocol) encapsulation and compressed IP (Internet protocol)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100353727C (en) * 2004-07-16 2007-12-05 中国科学院计算技术研究所 A robust IPv6 header compression method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571545A (en) * 2010-12-27 2012-07-11 华为技术有限公司 Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network
WO2012089107A1 (en) * 2010-12-27 2012-07-05 华为技术有限公司 Method and device for transmitting information over ipv4 network
TWI493948B (en) * 2012-08-22 2015-07-21 Hon Hai Prec Ind Co Ltd System, device and method for reducing network address header
US9172775B2 (en) 2012-08-22 2015-10-27 Hon Hai Precision Industry Co., Ltd. Network communication system, device, and method for reducing a network addressing header
CN103152441A (en) * 2013-01-31 2013-06-12 北京天地互连信息技术有限公司 Header compression method in mobile IPv6
CN103152441B (en) * 2013-01-31 2015-12-02 北京天地互连信息技术有限公司 Header compression method in mobile IPv6
US11528346B2 (en) * 2014-08-21 2022-12-13 Nokia Technologies Oy IPv4 communications using 6lowpan header compression mechanisms
US20170237835A1 (en) * 2014-08-21 2017-08-17 Nokia Technologies Oy Ipv4 communications using 6lowpan header compression mechanisms
CN106376021A (en) * 2016-08-31 2017-02-01 邱岩 Internet of things-oriented content centric network protocol optimization method
CN106376021B (en) * 2016-08-31 2019-09-20 赫里奥(苏州)科技有限公司 A kind of optimization method of the content center network agreement of internet of things oriented
CN107104911A (en) * 2017-04-06 2017-08-29 清华大学 The dividing method and sending method of UDP message bag
CN112804146A (en) * 2018-05-25 2021-05-14 华为技术有限公司 Message transmission method, communication device and system
CN112804146B (en) * 2018-05-25 2022-05-10 华为技术有限公司 Message transmission method, communication device and system
US11444874B2 (en) 2018-05-25 2022-09-13 Huawei Technologies Co., Ltd. Packet transmission method, and communications apparatus and system
CN113242181A (en) * 2021-01-18 2021-08-10 网络通信与安全紫金山实验室 Message and sending method for realizing source routing at overlay layer based on ESP (encapsulating Security protocol) encapsulation and compressed IP (Internet protocol)

Also Published As

Publication number Publication date
CN101645823B (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN101645823B (en) Method and device for compressing 6to4 tunnel
JP4602568B2 (en) Communication method used in packet server
CN1615618B (en) A bi-directional packet data transmission system and method
US7209491B2 (en) Method and system for transmitting data in a packet based communication network
EP2464063B1 (en) Method and apparatus for header compression in network relay scenarios
US20060104278A1 (en) Apparatus and method for compressing headers in a broadband wireless communication system
US8855090B2 (en) Packet transmission system based on wireless personal area network and method thereof
KR101835340B1 (en) Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal
US6674731B1 (en) Transmission and reception of TCP/IP data over a wireless communication channel
CN101369977A (en) Method, apparatus and system for transmitting data
US10674233B2 (en) Method and device for transmitting/receiving broadcast signal
CN103973645A (en) Data transmission method and data transmission device
WO2010020197A1 (en) Data transmission method, communication equipment and communication system
CN109526030A (en) Processing method, device and the equipment of message
KR20100105086A (en) Method for compressing the header of an ip packet and a node in a network based on multiple addresses therefor
CN110012314B (en) IP transmission method and system based on DTMB
CN112769743A (en) Header compression method, device and equipment
US6650636B1 (en) Transmission and reception of TCP/IP data over a wireless communication channel
CN101621472B (en) Message transmission method and router
KR100533669B1 (en) Apparatus for improving efficiency of data packet transmission in a mobile ad hoc network and method thereof
CN104811265A (en) Base-band frame encapsulation method and de-encapsulation method
KR101147346B1 (en) Header compression system and method for internet protocol service over tactical data link
CN111356177A (en) Data processing method, BBU (baseband unit) and RRU (remote radio unit)
Rawat et al. Designing a tunneling header compression (TuCP) for tunneling over IP
KR20140043237A (en) Apparatus and method for transmitting broadcasting signal

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120104

Termination date: 20200902

CF01 Termination of patent right due to non-payment of annual fee