CN101179564A - Link layer automatic request retransmission based TCP packet header compression method and system thereof - Google Patents

Link layer automatic request retransmission based TCP packet header compression method and system thereof Download PDF

Info

Publication number
CN101179564A
CN101179564A CNA2007100529443A CN200710052944A CN101179564A CN 101179564 A CN101179564 A CN 101179564A CN A2007100529443 A CNA2007100529443 A CN A2007100529443A CN 200710052944 A CN200710052944 A CN 200710052944A CN 101179564 A CN101179564 A CN 101179564A
Authority
CN
China
Prior art keywords
packet header
tcp
header
connection tracking
message segment
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
CNA2007100529443A
Other languages
Chinese (zh)
Other versions
CN101179564B (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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN2007100529443A priority Critical patent/CN101179564B/en
Publication of CN101179564A publication Critical patent/CN101179564A/en
Application granted granted Critical
Publication of CN101179564B publication Critical patent/CN101179564B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a TCP packet head compression method and a system for automatically requesting the retransmission based on the link layer. With utilizing the completely reliable ARQ over the link layer between a base station and a mobile station, the compressions of different grades are applied to the IP packets of the TCP message segments and the recovery of the head is accomplished using the contents of the record of the list item without thus influencing the subsequent operations over the upper layer according to different conditions on the premise of assuring the coherence that the transmitter and the receiver are connected with a trace table. Compared with the traditional method, the method of the invention has higher head compression efficiency and enhances the network transmission efficiency. The method of the invention is particularly suitable for the wireless network because of the unreliability of the transmission in the wireless network and the widely-applied ARQ mechanism.

Description

TCP packet header compression method and system thereof based on the automatic request retransmission of link layer
Technical field
The invention belongs to the technical field of data transmission of ICP/IP protocol in the wireless data communication system, be specifically related to method and system thereof based on the TCP message segment IP packet header compression of the automatic request retransmission of link layer (ARQ) information.
Background technology
ICP/IP protocol is extensive use of in Internet, has become the first-selected agreement of the network interconnection.Because there is not band-limited problem in the current ICP/IP protocol of using as the cable network design in cable network, be even more important and save bandwidth resources for wireless network.Because the MAC layer has ARQ mechanism as ensureing in the radio communication, there are a lot of information to be connected and fixed in original TCP message segment IP packets headers for certain, maybe can calculate out by the information of carrying among existing information and the ARQ, if can be with these information bits with certain rule compression, recover out by corresponding rule at receiving terminal again, then the data that need transmit on eating dishes without rice or wine just than lacking before the compression, have just been saved bandwidth resources so naturally.
Simultaneously, present stage, existing many technology of improving TCP on the wireless network occurred, and as the base station TCP agency confirmation technology based on ARQ information, transmitted the down auxiliary of feedback mechanisms at these, TCP message segment IP packet header has had more compression stroke, can bring into play more effective effect.In addition, 802.16 standards according to IEEE issue for the MAC layer provides header suppression mechanism, provide PHSI sign, and the ARQ of MAC layer provides enough information when packet encapsulation is recombinated, and also provide bigger scope for the TCP/IP header suppression.
Summary of the invention
The object of the present invention is to provide a kind of TCP message segment IP packet header compression method based on the automatic request retransmission of link layer, this method has been saved limited bandwidth resources, has improved the efficiency of transmission of data; The present invention also provides the system that realizes this method.
TCP packet header compression method based on the automatic request retransmission of link layer provided by the invention, its step comprises:
(A1) judge whether TCP message segment IP grouping satisfies following header suppression condition simultaneously, if enter step (A4), otherwise the attribute field PHSL that is provided with in the packet header is T0, enters step (A2);
The header suppression condition:
1. TCP head flag bit URG, PSH, RST, SYN, FIN all are not 1;
2. the difference of the window size of storage is less than the threshold values n that sets in receiving TCP packet header window size and showing, and the span of n is: 256<n<65535;
3. the connection tracking table is in active state;
(A2) judge SYN, RST, FIN position whether promising 1,, create the connection tracking table, and place wait state if the SYN position is 1; If RST position or FIN position are 1, then the connection tracking table status is deleted the connection tracking table for stopping, and enters step (A9), otherwise enters step (A3);
(A3) judge whether to be first packet, if, and the connection tracking table is in wait state, is changed to active state, enters step (A9), otherwise directly enters step (A9);
(A4) judge whether to wrap and do not have Option Field,, otherwise reduce fixed field in the head, and attribute field PHSL is set is T1, enter (A9) if enter step (A5) for order;
(A5) set up data block and TCP message segment correspondence table, judge in the packet header whether the value of TTL is the same among the TTL and connection tracking table, and whether IP bag flag bit is complete zero, if, then putting attribute field PHSL is T2, compresses whole TCP/IP packet header, and increases the sequence number that a field record encapsulates the ARQ piece of this packet final stage in packet header, change step (A9) then over to, otherwise enter step (A6);
(A6) judge whether TTL is the same with ttl value in the connection tracking table in the packet header, if, putting attribute field PHSL is T3, all header fields outside compression flag bit and the Fragment Offset, and in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, change step (A9) then over to, otherwise enter step (A7);
(A7) judge whether IP bag flag bit is complete zero in the packet header, if, putting PHSL is T4, compression all header fields except that TTL, upgrade the record value of TTL in the connection tracking table, and in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, change step (A9) then over to, otherwise enter step (A8);
(A8) putting PHSL is T5, compression all header fields except that TTL, flag bit and Fragment Offset, upgrade the record value of TTL in the connection tracking table, and in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, enter step (A9);
(A9) bag that will receive is given lower floor and is ready for sending.
TCP packet header compressibility based on the automatic request retransmission of link layer provided by the invention is characterized in that: this system comprises that header suppression control module, header suppression module, head recover module, data transmission blocks, data reception module, connection tracking table, data block and TCP message segment correspondence table and IP ID Track Table;
The header suppression control module is used to judge that TCP connects both sides and whether has the ability of carrying out header suppression and recovery simultaneously, and judged result is sent to packet header compression module and packet header recover module, controlling packet header suppression module and packet header recover the operation of module;
The packet header compression module is used to receive the TCP message segment IP grouping that comes from the upper strata, instruction according to the header suppression control module, by searching connection tracking table and data block and TCP message segment correspondence table the head of TCP message segment IP grouping is compressed, and connection tracking table and data block and TCP message segment correspondence table are upgraded; TCP message segment IP grouping after the packet header compression module will compress sends to data transmission blocks;
It is medium to be sent that data transmission blocks is put into the link layer send window with the TCP message segment IP grouping of receiving;
Data reception module receives data from the link layer receive window, submit to packet header and recover module;
Head recovers module searches connection tracking table, data block and TCP message segment correspondence table and IP ID Track Table is recombinated to the data that receive, and recovers TCP message segment IP packet header, and submits to the upper strata; Head recovers module and also according to last information compressed in the TCP message segment IP packet header connection tracking table, data block and TCP message segment correspondence table and IP ID Track Table is upgraded.
Base station and mobile radio station utilize the fully reliable ARQ of link layer as guarantee among the present invention, guarantee the consistency of receiving-transmitting sides connection tracking table, finish recoverable header suppression on this basis.Base station or mobile radio station can consult whether to support header suppression according to condition separately, has the header suppression ability if judge, then use different header suppression rules according to different situations, in packet header an attribute field is set after finishing header suppression, this attribute field is used for the head recovery process of opposite end.If do not need to carry out header suppression in this attribute field with a symbol logo that is different from above selection.Receiving terminal can judge that whether bag has used header suppression, if used header suppression, can also judge any reduced rule of application according to the difference of attribute field, and head is recovered out according to the attribute field of transmitting terminal data.With present existing header compression technique---the TCP/IP header suppression on the low-speed serial link is compared, and the present invention has higher compression efficiency.This invention is transparent fully to the upper strata, owing to can guarantee that packet header recovers to come out from Given information, just need not make amendment to upper-layer protocol to reach the purpose of improving systematic function.Wireless environment all has the auxiliary of ARQ transmission feedback mechanism down usually, and this uses the condition that provides for the present invention in radio communication.
Description of drawings
Fig. 1 is a TCP message segment IP packet header compression applications environment;
Fig. 2 is packet header structure before and after the compression:
Fig. 2-1 is former IP packet header;
Fig. 2-2 is former TCP packet header;
Fig. 2-3 is the packet header after step (A5) has been compressed;
Fig. 2-4 is the packet header after step (A6) has been compressed;
Fig. 2-5 is the packet header after step (A7) has been compressed;
Fig. 2-6 is the packet header after step (A8) has been compressed;
Fig. 3 is a TCP message segment IP packet header compression process;
Fig. 4 is that TCP message segment IP packet header recovers flow process;
Fig. 5 is the building-block of logic of TCP message segment IP packet header compression;
Fig. 6 is a TCP message segment IP grouping connection tracking table status transition diagram.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing and example.
The inventive method is carried out recoverable maximum compression to TCP message segment IP packet header down the auxiliary of link layer ARQ information, and support to receive both sides to whether having the judgement of the negotiations process of header suppression ability, and to whether carrying out the judgement of header suppression.
Base station and mobile radio station at first will be held consultation to whether having the header suppression ability, after definite both sides support header suppression, could carry out the header suppression operation to the TCP message segment IP grouping that receives.In operating process, can increase by the 13 bit flag field TID that the head indication connects, 3 bit flag field PHSL with the indication compression level, in compression/recovery process, will create corresponding list item, comprise connection tracking table, data block and TCP message segment correspondence table, IP bag sign Track Table, the data item that each table is comprised is shown in table 1-3, and wherein the connection tracking table has wait, enlivens, resets and stop four kinds of states.
Table 1 connection tracking table
Length
Data item (Byte) explanation
The unique identification that TID 2 TCP connect
The IP address of sndIP 4 TCP message segment IP grouping originating party
RcvIP 4 TCP message segment IP grouping debit's IP address
The port address of sndPort 2 TCP message segment IP grouping originating party
RcvPort 2 TCP message segment IP grouping debit's port address
StateInfo 1 record header suppression present located state
The number of receiving/giving out a contract for a project after PktNum 1 ARQ resets
LifeTime 2 intercepts and connects the time that does not have data flow
TTL information in the sndTTL 1 bag to be sent packet header
The sequence number of the TCP/IP bag that sndExpSN 4 expectations send
Receive window size in the sndWinSize 2 bag to be sent packet header
RcvTTL 1 is received the TTL information in the bag packet header
The sequence number of the TCP message segment IP grouping that rcvExpSN 4 expectations receive
2 the last times of rcvWinSize are compressed package receive window size not
The receive window size of rcvWinSize_exp 2 the last predictions
The COS of rcvTOS 1 TCP message segment IP grouping
Table 2 data block and TCP message segment correspondence table
Data item length (Byte) explanation
The unique identification that TID 2 TCP connect
The Frame numbering of arqBlockID 2 ARQ encapsulation TCP/IP bag
LastSN 4 is by last TCP of ARQ encapsulation
The sequence number of message segment IP grouping
Table 3 IP bag sign Track Table
Data item length (Byte) explanation
The source IP address of sourceIP 4 TCP message segment IP grouping
The purpose IP address of destinationIP 4 TCP message segment IP grouping
IP ID 2 IP Packet Identifier
Fig. 1 is a TCP message segment IP packet header compression applications environment, The present invention be directed to use the Radio Link of ICP/IP protocol based on ARQ.
Before carrying out header suppression, the IP packet header is shown in Fig. 2-1, and TCP message segment head is shown in Fig. 2-2.If do not compress the complete information that just must transmit head, if compress,, can carry out in various degree compression to head according to the difference that connects information that grasp at two ends, head after the compression will be discussed in more detail below its compression process shown in Fig. 2-3,2-4,2-5,2-6.
As shown in Figure 3, TCP message segment IP packet header compression process is:
A kind of TCP packet header compression method based on the automatic request retransmission of link layer the steps include:
(A) according to following process TCP message segment IP packet header is compressed:
(A1) judge whether TCP message segment IP grouping satisfies following header suppression condition simultaneously, if enter step (A4), otherwise putting PHSL is 111, enters step (A2);
The header suppression condition:
1. TCP head flag bit URG, PSH, RST, SYN, FIN all are not 1;
2. the changing value of window size in the TCP packet header promptly receives in TCP packet header window size and the table threshold values n of the difference of the window size of storing (reading sndWinSize from table) less than setting, and the span of n is: 256<n<65535;
3. the connection tracking table is in active state.
(A2) judge SYN, RST, FIN position whether promising 1,, create the connection tracking table, and place wait state if the SYN position is 1.If RST position or FIN position are 1, then the connection tracking table status is deleted the connection tracking table for stopping, and enters step (A9), otherwise enters step (A3);
(A3) judge whether to be first packet, if, and the connection tracking table is in wait state, is changed to active state, enters step (A9), otherwise directly enters step (A9);
(A4) judge whether to wrap and do not have an Option Field for order, if enter step (A5), otherwise reduce in the head as the lower part: 4 version numbers, 8 COS, 16 bit identifiers, 8 host-host protocols, 32 potential source IP addresses, 32 purpose IP addresses, 16 IP bag stem checks and, 16 potential source port numbers, 16 destination slogans, 16 urgent pointer, 16 TCP bag stem checks and, and to put PHSL be 100, enters (A9);
(A5) set up data block and TCP message segment correspondence table, judge that TTL is the same with the value of TTL in the record sheet in the packet header, and IP bag flag bit is zero entirely, if put PHSL is 000, compress whole TCP/IP packet header, in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, shown in Fig. 2-3, enter step (A9), otherwise enter step (A6);
(A6) judge whether TTL is the same with ttl value in the record sheet in the packet header, if put PHSL is 001, compression all header fields except that 3 flag bits and 13 Fragment Offsets, in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, shown in Fig. 2-4, enter step (A9), otherwise enter step (A7);
(A7) judge whether IP bag flag bit is complete zero in the packet header, if put PHSL is 010, compression all header fields except that 8 TTL, upgrade the record value of TTL in the connection tracking table, in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, shown in Fig. 2-5, enter step (A9), otherwise enter step (A8);
(A8) putting PHSL is 011, compression removes 8 TTL, all header fields outside 3 flag bits and 13 Fragment Offsets, upgrade the record value of TTL in the connection tracking table, in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, shown in Fig. 2-6, enter step (A9);
(A9) bag that will receive is given lower floor and is ready for sending.
As shown in Figure 4, TCP message segment IP packet header recovery processing procedure is:
(B1) whether judgement symbol field PHSL is 111, if search whether corresponding IP ID Track Table is arranged, if have, with the IP ID of the replacement of the IP ID in table TCP message segment IP grouping, and the IP ID in will showing adds one, enter step (B2), otherwise enter step (B4);
(B2) if the SYN position is 1, set up connection tracking table as shown in table 1, IP ID Track Table as shown in table 3, putting the connection tracking table is wait state.If RST position or FIN position are 1, the connection tracking table enters halted state, deletion connection tracking table.If corresponding connection tracking list item exists, press the content update list item that packet header is filled field, enter step (B3);
(B3) judge whether to be first packet, if, and the connection tracking table is in wait state,, enters step (B9), otherwise directly enters step (B9) for active with regard to configuration state.
(B4) whether judgement symbol field PHSL is 100, if adopt following method to recover head:
Recover in IP packet header:
4 version numbers: 4;
8 COS: according to table look-up rcvTOS in 1 of TID;
16 bit identifiers: the IP ID in the IP that the tables look-up bag sign Track Table adds one, and this value is deposited in the table as updating value on the numerical value of IP ID.
8 host-host protocols: Transmission Control Protocol;
The check of 16 stems and: recomputate;
32 potential source IP addresses: according to table look-up sndIP in 1 of TID;
32 purpose IP addresses: according to table look-up rcvIP in 1 of TID.
Recover in TCP packet header:
16 potential source port numbers: according to table look-up sndPort in 1 of TID
16 destination slogans: according to table look-up rcvPort in 1 of TID;
16 bit trials and: recomputate;
16 urgent pointer: fill out complete zero.
According to the rcvExpSN in 32 sequence numbers in the TCP packet header and 16 the total length updating forms 1.
Enter step (B9), otherwise enter step (B5);
(B5) whether judgement symbol field PHSL is 000, if adopt following method to recover head:
Recover in IP packet header:
4 version numbers: 4;
8 COS: according to table look-up rcvTOS in 1 of TID;
16 bit identifiers: the IP ID in the IP that the tables look-up bag sign Track Table adds one, and this value is deposited in the table as updating value on the numerical value of IP ID.
8 host-host protocols: Transmission Control Protocol;
The check of 16 stems and: recomputate;
32 potential source IP addresses: according to table look-up sndIP in 1 of TID;
32 purpose IP addresses: according to table look-up rCVIP in 1 of TID.
4 header length: 5;
8 life spans: according to table look-up rcvTTL in 1 of TID;
16 total lengths: from ARQ build portion information, obtain;
3 bit flags: 000;
13 Fragment Offsets: fill out complete zero;
Recover in TCP packet header:
16 potential source port numbers: according to table look-up sndPort in 1 of TID;
16 destination slogans: according to table look-up rcvPort in 1 of TID;
16 bit trials and: recomputate;
16 urgent pointer: fill out complete zero.
According to the rcvExpSN in 32 sequence numbers in the TCP packet header and 16 the total length updating forms 1.
32 sequence numbers: according to table look-up rcvExpSN in 1 of TID, and according in the ARQ build portion information updating connection tracking table this;
32 acknowledged sequence numbers: recover 32 original ACK sequence numbers according to the bag confirmation cooperation table 2 that keeps.
4 header length: 5;
6 reservations: fill out complete zero;
URG, PSH, RST, SYN, FIN: fill out complete zero;
ACK:1;
16 window sizes: the last time does not compress the confirmation message advertised window size and last head recovery generation confirmation message section advertised window size is done smothing filtering: advertised window size R = n - s n &times; P + s n &times; Q ( 0 < s < n )
Wherein, P: the last time is not compressed the confirmation message advertised window size, Q: last head recovers to generate TCP acknowledgment message segment advertised window size.
Enter step (B9), otherwise enter step (B6);
(B6) whether judgement symbol field PHSL is 001, if adopt following method to recover head:
Recover in IP packet header:
4 version numbers: 4;
8 COS: according to table look-up rcvTOS in 1 of TID;
16 bit identifiers: the IP ID in the IP that the tables look-up bag sign Track Table adds one, and this value is deposited in the table as updating value on the numerical value of IP ID.
8 host-host protocols: Transmission Control Protocol;
The check of 16 stems and: recomputate;
32 potential source IP addresses: according to table look-up sndIP in 1 of TID;
32 purpose IP addresses: according to table look-up rcvIP in 1 of TID.
4 header length: 5;
8 life spans: according to table look-up rcvTTL in 1 of TID;
16 total lengths: from ARQ build portion information, obtain;
Recover in TCP packet header:
16 potential source port numbers: according to table look-up sndPort in 1 of TID;
16 destination slogans: according to table look-up rcvPort in 1 of TID;
16 bit trials and: recomputate;
16 urgent pointer: fill out complete zero.
According to the rcvExpSN in 32 sequence numbers in the TCP packet header and 16 the total length updating forms 1.
32 sequence numbers: according to table look-up rcvExpSN in 1 of TID, and according in the ARQ build portion information updating connection tracking table this;
32 acknowledged sequence numbers: recover 32 original ACK sequence numbers according to the bag confirmation cooperation table 2 that keeps.
4 header length: 5;
6 reservations: fill out complete zero;
URG, PSH, RST, SYN, FIN: fill out complete zero;
ACK:1;
16 window sizes: the last time does not compress the confirmation message advertised window size and last head recovery generation confirmation message section advertised window size is done smothing filtering: advertised window size R = n - s n &times; P + s n &times; Q ( 0 < s < n )
Wherein, P: the last time is not compressed the confirmation message advertised window size, Q: last head recovers to generate TCP acknowledgment message segment advertised window size.
Enter step (B9), otherwise enter step (B7);
(B7) whether judgement symbol field PHSL is 010, if adopt following method to recover head:
Recover in IP packet header:
4 version numbers: 4;
8 COS: according to table look-up rcvTOS in 1 of TID;
16 bit identifiers: the IP ID in the IP that the tables look-up bag sign Track Table adds one, and this value is deposited in the table as updating value on the numerical value of IP ID.
8 host-host protocols: Transmission Control Protocol;
The check of 16 stems and: recomputate;
32 potential source IP addresses: according to table look-up sndIP in 1 of TID;
32 purpose IP addresses: according to table look-up rcvIP in 1 of TID.
4 header length: 5;
16 total lengths: from ARQ build portion information, obtain;
3 bit flags: 000;
13 Fragment Offsets: fill out complete zero;
With the rcvTTL in the TTL information updating table 1 of packet header reservation;
Recover in TCP packet header:
16 potential source port numbers: according to table look-up sndPort in 1 of TID;
16 destination slogans: according to table look-up rcvPort in 1 of TID;
16 bit trials and: recomputate;
16 urgent pointer: fill out complete zero.
According to the rcvExpSN in 32 sequence numbers in the TCP packet header and 16 the total length updating forms 1.
32 sequence numbers: according to table look-up rcvExpSN in 1 of TID, and according in the ARQ build portion information updating connection tracking table this;
32 acknowledged sequence numbers: recover 32 original ACK sequence numbers according to the bag confirmation cooperation table 2 that keeps.
4 header length: 5;
6 reservations: fill out complete zero;
URG, PSH, RST, SYN, FIN: fill out complete zero;
ACK:1;
16 window sizes: the last time does not compress the confirmation message advertised window size and last head recovery generation confirmation message section advertised window size is done smothing filtering: advertised window size R = n - s n &times; P + s n &times; Q ( 0 < s < n )
Wherein, P: the last time is not compressed the confirmation message advertised window size, Q: last head recovers to generate TCP acknowledgment message segment advertised window size.
Enter step (B9), otherwise enter step (B8);
(B8) whether judgement symbol field PHSL is 011, if adopt following method to recover head:
Recover in IP packet header:
4 version numbers: 4;
8 COS: according to table look-up rcvTOS in 1 of TID;
16 bit identifiers: the IP ID in the IP that the tables look-up bag sign Track Table adds one, and this value is deposited in the table as updating value on the numerical value of IP ID.
8 host-host protocols: Transmission Control Protocol;
The check of 16 stems and: recomputate;
32 potential source IP addresses: according to table look-up sndIP in 1 of TID;
32 purpose IP addresses: according to table look-up rcvIP in 1 of TID.
4 header length: 5;
16 total lengths: from ARQ build portion information, obtain;
With the rcvTTL in the TTL information updating connection tracking table of packet header reservation;
Recover in TCP packet header:
16 potential source port numbers: according to table look-up sndPort in 1 of TID;
16 destination slogans: according to table look-up rcvPort in 1 of TID;
16 bit trials and: recomputate;
16 urgent pointer: fill out complete zero.
According to the rcvExpSN in 32 sequence numbers in the TCP packet header and 16 the total length updating forms 1.
32 sequence numbers: according to table look-up rcvExpSN in 1 of TID, and according in the ARQ build portion information updating connection tracking table this;
32 acknowledged sequence numbers: recover 32 original ACK sequence numbers according to the bag confirmation cooperation table 2 that keeps.
4 header length: 5;
6 reservations: fill out complete zero;
URG, PSH, RST, SYN, FIN: fill out complete zero;
ACK:1;
16 window sizes: the last time does not compress the confirmation message advertised window size and last head recovery generation confirmation message section advertised window size is done smothing filtering: advertised window size R = n - s n &times; P + s n &times; Q ( 0 < s < n )
Wherein, P: the last time is not compressed the confirmation message advertised window size, Q: last head recovers to generate TCP acknowledgment message segment advertised window size.
Enter step (B9), otherwise directly enter step (B9);
(B9) bag that will receive is given the upper strata processing.
As shown in Figure 5, link layer of the present invention adopts fully reliably request retransmission mechanism (ARQ) automatically.The information that the base station utilizes ARQ to provide, the header fields of compression or recovery TCP message segment IP grouping.System of the present invention comprises that header suppression control module 1, header suppression module 2, head recover module 3, data transmission blocks 4, data reception module 5, connection tracking table 6, data block and TCP message segment correspondence table 7 and IP ID Track Table 8.
Function to each module is described in further detail below.
The both sides that header suppression control module 1 is responsible for the TCP connection consult whether to have simultaneously the ability of carrying out header suppression and recovery, and the result that will consult is as the indication to packet header compression module 2 and packet header recovery module 3, the operation that controlling packet header suppression module 2, packet header recover module 3.
Packet header compression module 2 is responsible for the header suppression process of TCP message segment IP grouping, if header suppression control module 1 indication both sides have the packet header compressed capability, then this module is played effectiveness.
As shown in Figure 6, when reception/transmission SYN flag bit is the connection foundation bag of 1 bag, transfer to wait state by initial condition.Under wait state, just enter active state if receive the packet of first this connection; If reception/transmission SYN flag bit is 1 bag, still stay wait state; If reception/transmission RST or FIN flag bit are 1 bag, just enter halted state; Under active state, be 1 bag if receive RST or FIN flag bit, just enter halted state.If receiving that the link layer ARQ resets finishes indication, just enter reset mode.Under reset mode, follow the tracks of receiving/send out the packet number, and be recorded in the connection tracking table, numerical value is that k (k>0) just enters active state in list item.
When TCP message segment IP grouping is handled through packet header compression module 2, the bag that judgement be need not to compress, if the SYN position that connects is 1 bag, just connect Track Table 8 and enter wait state, as shown in table 1, be that this connects and distributes a TID, and note the IP address (sndIP) and the port numbers (sndPort) of originating party, debit's IP address (rcvIP) and port numbers (rcvPort), state information (StateInfo), and other list item that can fill.Activate this table when receiving/sending first packet.
Identifying each TCP with TID connects, one group of source IP address, purpose IP address, source port number, the unique definite TID of destination slogan, because it is two-way that TCP connects, consistent as the source that transmit leg obtains with the purpose of obtaining as the recipient, when the source that obtains as the recipient is consistent with the purpose of obtaining as transmit leg, just can think that a TCP connects, therefore in table with transmit leg IP address sndIP, transmit leg port numbers sndPort, with recipient IP address rcvIP, recipient's port numbers rcvPort represents that after this renewal and the deletion work to this table is that unit carries out with TID.The combination that is combined in a corresponding CID and PHSI in the WiMAX system of TID and PHSL.
To each bag that does not compress, as long as the header suppression module is in active state, just need be according to the sndTTL in the header packet information updating form, rcvTTL, rcvWinSize.RcvTOS information only needs to write down when beginning and once gets final product.LifeTime when LifeTime=360000, removes this table not having to add one every 100ms under the situation of data flow, if having data to arrive midway again then with this zero clearing.SndExpSN, every bag of rcvExpSN once upgrades.RcvWinSize_exp is the receive window size of the last prediction.When 2 pairs of TCP message segments of packet header compression module IP grouping is operated, just upgrade mutually deserved list item synchronously.If packet header compression module 2 or packet header recover module 3 and be in reset mode, an every receipts/bag just adds 1 to PktNum.
Packet header compression module 2 is handled the back in the compression of finishing packet header bag is cut apart or merged, and sets up data block and TCP message segment correspondence table 7 is as shown in table 2 in cutting apart merging process, notes the corresponding relation of ARQ piece sequence number and TCP sequence number.
When TCP message segment IP grouping is divided into a plurality of ARQ Block, last ARQ Block of this TCP message segment of the corresponding encapsulation of arqBlockID IP grouping, lastSN write down this TCP message segment IP divide into groups sequence number, when a plurality of TCP message segment IP grouping is integrated into same ARQ Block, lastSN to should ARQ Block the sequence number of last TCP message segment IP grouping of encapsulation, arqBlockID writes down the sequence number of this ARQ Block.
After being handled by packet header compression module 2, TCP message segment IP grouping gives data transmission blocks 4.
It is medium to be sent that the bag that data transmission blocks 4 will be received is put into the link layer send window.
Data reception module 5 receives and receive data from the link layer receive window, submits to packet header recovery module 3 and recombinates, and recover TCP message segment IP packet header.
To receive unpressed flag bit SYN be 1 bag if packet header recovers module 3, is about to connection tracking table 7 state by initially changing wait over to, enters state of activation when receiving and dispatching first packet again.Recover the concrete grammar of packet header and see step (B5), (B6), the rcvExpSN in the process of recovery in the updating form 1, rcvWinSize, rcvWinSize_exp, rcvTTL, StateInfo.For recovering the IP ID in the IP packet header, also need header suppression list item administration module 4 to safeguard IP ID Track Table 8 in addition, as shown in table 3:
Whenever receive an IP bag, as long as source IP address just adds 1 with the IP ID in the list item with purpose IP address is consistent with sourceIP and destinationIP.If not being TCP message segment IP grouping, this IP bag just do not replace the IP ID in this bag IP packet header with the IP ID value in the table.

Claims (3)

1. TCP packet header compression method based on the automatic request retransmission of link layer, its step comprises:
(A1) judge whether TCP message segment IP grouping satisfies following header suppression condition simultaneously, if enter step (A4), otherwise the attribute field PHSL that is provided with in the packet header is T0, enters step (A2);
The header suppression condition:
1. TCP head flag bit URG, PSH, RST, SYN, FIN all are not 1;
2. the difference of the window size of storage is less than the threshold values n that sets in receiving TCP packet header window size and showing, and the span of n is: 256<n<65535;
3. the connection tracking table is in active state;
(A2) judge SYN, RST, FIN position whether promising 1,, create the connection tracking table, and place wait state if the SYN position is 1; If RST position or FIN position are 1, then the connection tracking table status is deleted the connection tracking table for stopping, and enters step (A9), otherwise enters step (A3);
(A3) judge whether to be first packet, if, and the connection tracking table is in wait state, is changed to active state, enters step (A9), otherwise directly enters step (A9);
(A4) judge whether to wrap and do not have Option Field,, otherwise reduce fixed field in the head, and attribute field PHSL is set is T1, enter (A9) if enter step (A5) for order;
(A5) set up data block and TCP message segment correspondence table, judge in the packet header whether the value of TTL is the same among the TTL and connection tracking table, and whether IP bag flag bit is complete zero, if, then putting attribute field PHSL is T2, compresses whole TCP/IP packet header, and increases the sequence number that a field record encapsulates the ARQ piece of this packet final stage in packet header, change step (A9) then over to, otherwise enter step (A6);
(A6) judge whether TTL is the same with ttl value in the connection tracking table in the packet header, if, putting attribute field PHSL is T3, all header fields outside compression flag bit and the Fragment Offset, and in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, change step (A9) then over to, otherwise enter step (A7);
(A7) judge whether IP bag flag bit is complete zero in the packet header, if, putting PHSL is T4, compression all header fields except that TTL, upgrade the record value of TTL in the connection tracking table, and in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, change step (A9) then over to, otherwise enter step (A8);
(A8) putting PHSL is T5, compression all header fields except that TTL, flag bit and Fragment Offset, upgrade the record value of TTL in the connection tracking table, and in packet header, increase the sequence number that a field record encapsulates the ARQ piece of this packet final stage, enter step (A9);
(A9) bag that will receive is given lower floor and is ready for sending.
2. TCP packet header restoration methods based on the automatic request retransmission of link layer, its step comprises:
(B1) whether judgement symbol field PHSL is T0, if search in the IP ID Track Table whether corresponding list item is arranged, if have, with the IP ID of the replacement of the IP ID in table TCP message segment IP grouping, and the IP ID in will showing adds one, enter step (B2), otherwise enter step (B4);
(B2) if the SYN position is 1, set up IP ID Track Table, putting the connection tracking table is wait state; If RST position or FIN position are 1, the connection tracking table enters halted state, deletion connection tracking table; If corresponding connection tracking list item exists, press the content update list item that packet header is filled field, enter step (B3);
(B3) judge whether to be first packet, if, and the connection tracking table is in wait state,, enters step (B5), otherwise directly enters step (B5) for active with regard to configuration state;
(B4), adopt corresponding method that TCP head and IP head are recovered according to the difference of attribute field PHSL;
(B5) bag that will receive is given the upper strata processing.
3. TCP packet header compressibility based on the automatic request retransmission of link layer is characterized in that: this system comprises that header suppression control module (1), header suppression module (2), head recover module (3), data transmission blocks (4), data reception module (5), connection tracking table (6), data block and TCP message segment correspondence table (7) and IP ID Track Table (8);
Header suppression control module (1) is used to judge that TCP connects both sides and whether has the ability of carrying out header suppression and recovery simultaneously, and judged result is sent to packet header compression module (2) and packet header recover module (3), the operation of controlling packet header suppression module (2) and packet header recovery module (3);
Packet header compression module (2) is used to receive the TCP message segment IP grouping that comes from the upper strata, instruction according to header suppression control module (1), by searching connection tracking table (6) and data block and TCP message segment correspondence table (7) head of TCP message segment IP grouping is compressed, and connection tracking table (6) and data block and TCP message segment correspondence table (7) are upgraded; TCP message segment IP grouping after packet header compression module 2 will compress sends to data transmission blocks (4);
It is medium to be sent that data transmission blocks (4) is put into the link layer send window with the TCP message segment IP grouping of receiving;
Data reception module (5) receives data from the link layer receive window, submit to packet header and recover module (3);
Head recovery module (3) searches connection tracking table (6), data block and TCP message segment correspondence table (7) and IP ID Track Table (8) is recombinated to the data that receive, and recovers TCP message segment IP packet header, and submits to the upper strata; Head recovers module (3) and also according to last information compressed in the TCP message segment IP packet header connection tracking table (6), data block and TCP message segment correspondence table (7) and IP ID Track Table (8) is upgraded.
CN2007100529443A 2007-08-10 2007-08-10 Link layer automatic request retransmission based TCP packet header compression method and system thereof Expired - Fee Related CN101179564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100529443A CN101179564B (en) 2007-08-10 2007-08-10 Link layer automatic request retransmission based TCP packet header compression method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100529443A CN101179564B (en) 2007-08-10 2007-08-10 Link layer automatic request retransmission based TCP packet header compression method and system thereof

Publications (2)

Publication Number Publication Date
CN101179564A true CN101179564A (en) 2008-05-14
CN101179564B CN101179564B (en) 2010-12-01

Family

ID=39405649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100529443A Expired - Fee Related CN101179564B (en) 2007-08-10 2007-08-10 Link layer automatic request retransmission based TCP packet header compression method and system thereof

Country Status (1)

Country Link
CN (1) CN101179564B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010121410A1 (en) * 2009-04-20 2010-10-28 华为技术有限公司 Communication method and apparatus for header compression adopting arq mechanism
WO2011035616A1 (en) * 2009-09-23 2011-03-31 中兴通讯股份有限公司 Method, system and apparatus for data transmission
CN101582833B (en) * 2008-05-15 2011-10-05 成都市华为赛门铁克科技有限公司 Method and device for processing spoofed IP data packet
CN102761393A (en) * 2012-07-05 2012-10-31 中兴通讯股份有限公司 Method and device for processing data message
WO2013023458A1 (en) * 2011-08-12 2013-02-21 中兴通讯股份有限公司 Robust header compression processing method and robust header compression processor
CN103188146A (en) * 2011-12-31 2013-07-03 华为技术有限公司 Sending and receiving method and device of continuous data package
CN103944880A (en) * 2014-03-13 2014-07-23 湖南强军科技有限公司 ZigBee data transmission method
CN104636432A (en) * 2014-12-29 2015-05-20 大唐移动通信设备有限公司 Method and device for journal file compression and decompression
CN108924954A (en) * 2018-07-29 2018-11-30 珠海市万顺睿通科技有限公司 Water pollution monitoring method and system based on wireless network
CN109729047A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of message processing method and device
CN109729059A (en) * 2017-10-31 2019-05-07 杭州华为数字技术有限公司 Data processing method, device and computer
CN110048818A (en) * 2019-05-05 2019-07-23 华中科技大学 The TID of feedback information confirmation a kind of to(for) user and processing system and processing method
CN110247998A (en) * 2019-07-03 2019-09-17 北京宏图佳都通信设备有限公司 A kind of IPv4/IPv6 data transmission processing method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913531B (en) * 2006-08-25 2012-03-21 华为技术有限公司 Transmission method, compression method and device of TCP/IP packet

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582833B (en) * 2008-05-15 2011-10-05 成都市华为赛门铁克科技有限公司 Method and device for processing spoofed IP data packet
CN102292940B (en) * 2009-04-20 2014-04-02 华为技术有限公司 Communication method and apparatus for header compression adopting ARQ mechanism
WO2010121467A1 (en) * 2009-04-20 2010-10-28 华为技术有限公司 Communication method and equipment of the header compression
CN102292940A (en) * 2009-04-20 2011-12-21 华为技术有限公司 Communication method and apparatus for header compression adopting ARQ mechanism
WO2010121410A1 (en) * 2009-04-20 2010-10-28 华为技术有限公司 Communication method and apparatus for header compression adopting arq mechanism
US8848583B2 (en) 2009-04-20 2014-09-30 Huawei Technologies Co., Ltd. Communication method and apparatus for header compression
WO2011035616A1 (en) * 2009-09-23 2011-03-31 中兴通讯股份有限公司 Method, system and apparatus for data transmission
CN102291406B (en) * 2011-08-12 2017-02-15 中兴通讯股份有限公司 Robustness header compression method and robustness header compressor
WO2013023458A1 (en) * 2011-08-12 2013-02-21 中兴通讯股份有限公司 Robust header compression processing method and robust header compression processor
US9591106B2 (en) 2011-08-12 2017-03-07 Zte Corporation Robust header compression processing method and robust header compression processor
CN103188146B (en) * 2011-12-31 2017-04-26 华为技术有限公司 Sending and receiving method and device of continuous data package
CN103188146A (en) * 2011-12-31 2013-07-03 华为技术有限公司 Sending and receiving method and device of continuous data package
CN102761393A (en) * 2012-07-05 2012-10-31 中兴通讯股份有限公司 Method and device for processing data message
CN103944880A (en) * 2014-03-13 2014-07-23 湖南强军科技有限公司 ZigBee data transmission method
CN103944880B (en) * 2014-03-13 2017-11-14 湖南强军科技有限公司 A kind of method of ZigBee data transfers
CN104636432A (en) * 2014-12-29 2015-05-20 大唐移动通信设备有限公司 Method and device for journal file compression and decompression
CN109729047A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of message processing method and device
CN109729059B (en) * 2017-10-31 2020-08-14 华为技术有限公司 Data processing method and device and computer
CN109729059A (en) * 2017-10-31 2019-05-07 杭州华为数字技术有限公司 Data processing method, device and computer
US11509749B2 (en) 2017-10-31 2022-11-22 Huawei Technologies Co., Ltd. Data processing method and apparatus, and computer
CN108924954A (en) * 2018-07-29 2018-11-30 珠海市万顺睿通科技有限公司 Water pollution monitoring method and system based on wireless network
CN108924954B (en) * 2018-07-29 2023-11-14 江苏博克斯科技股份有限公司 Water pollution monitoring method and system based on wireless network
CN110048818A (en) * 2019-05-05 2019-07-23 华中科技大学 The TID of feedback information confirmation a kind of to(for) user and processing system and processing method
CN110247998A (en) * 2019-07-03 2019-09-17 北京宏图佳都通信设备有限公司 A kind of IPv4/IPv6 data transmission processing method and system

Also Published As

Publication number Publication date
CN101179564B (en) 2010-12-01

Similar Documents

Publication Publication Date Title
CN101179564B (en) Link layer automatic request retransmission based TCP packet header compression method and system thereof
CN101204068B (en) Dynamic robust header compression
JP6025880B2 (en) Data transmission method, apparatus and system
CN100525289C (en) System and methods for VOIP wireless terminals
CN100461770C (en) Data processing method for the packet service transfer link of the wireless communication system of the terminal
US8160106B2 (en) Method, device and system for transmitting Ethernet packets
CN101568144B (en) Header compression method applicable to wireless ad hoc network
CN1359581A (en) Technique for providing a secure link in a mobile communication system
WO1995010150A1 (en) Method and apparatus for connecting a node to a wireless network using a standard protocol
CA2440814A1 (en) Method and apparatus for providing multiple quality of service levels in a wireless packet data services connection
CN102045132A (en) Retransmission mechanism-based method and device for transmitting header compression data packet
CN104780119B (en) A kind of packet loss position and detection method based on SCPS TP
CN101848171A (en) Data transmission method based on GRE tunnel, device and system
CN104079488A (en) Ethernet two-layer head compression based transmission device and method
CN102413506B (en) Compression method and device
CN102739569A (en) Gateway used in satellite communication and method for enhancing TCP performance
Moons et al. Using SCHC for an optimized protocol stack in multimodal LPWAN solutions
CN103748916A (en) Method and device for transmitting/receiving data
CN100394717C (en) Base station TCP agency confirmation method based on ARQ information and its system
CN106576108A (en) Communication method and device, and system in communication system
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN104836642A (en) LTP (Licklider Transmission Protocol) optimized design method based on erase code
CN102318282A (en) Method and apparatus for compressed data packet transmission
CN109587733A (en) Low-consumption wireless communication transmission method
CN103379130A (en) Network access system and method based on application layer data

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101201

Termination date: 20140810

EXPY Termination of patent right or utility model