CN100394717C - Base station TCP agency confirmation method based on ARQ information and its system - Google Patents

Base station TCP agency confirmation method based on ARQ information and its system Download PDF

Info

Publication number
CN100394717C
CN100394717C CNB200510019661XA CN200510019661A CN100394717C CN 100394717 C CN100394717 C CN 100394717C CN B200510019661X A CNB200510019661X A CN B200510019661XA CN 200510019661 A CN200510019661 A CN 200510019661A CN 100394717 C CN100394717 C CN 100394717C
Authority
CN
China
Prior art keywords
tcp
bag
base station
data
mobile radio
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.)
Expired - Fee Related
Application number
CNB200510019661XA
Other languages
Chinese (zh)
Other versions
CN1753354A (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 CNB200510019661XA priority Critical patent/CN100394717C/en
Publication of CN1753354A publication Critical patent/CN1753354A/en
Application granted granted Critical
Publication of CN100394717C publication Critical patent/CN100394717C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a base station TCP agency confirmation method based on ARQ information and a system thereof, wherein the method comprises an up data receiving and sending process procedure and a down data receiving and sending process procedure. The system comprises a base station and a mobile station which are connected by using a radio link, wherein the base station comprises a base station start-up control module, a sending analyzing module, a base station segmenting and recombining module, an agency confirmation module and a receiving analyzing module, and the mobile station comprises a mobile station start-up control module, a mobile station segmenting and recombining module and a filtering module. The present invention increases the travel speed of a TCP sending window, greatly reduces the probability that TCP overtimes due to the fact that a data link layer ARQ increases the transmission delay, and can greatly reduce the data load generated by an ACK message segment connected with TCP on a reversal radio link by filtering an up confirmation message segment of the mobile station. The present invention largely raises the utilization ratio of the reversal radio link, adapts to the service asymmetric characteristic in a radio IP network and retains up data bandwidth in order to support various real-time services.

Description

Base station TCP agency confirmation method and system thereof based on ARQ information
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 a kind of base station TCP agency confirmation method and system thereof based on ARQ (request retransmission automatically) information.
Background technology
ICP/IP protocol is extensive use of in Internet, has become the at first agreement of the network interconnection.But the current Transmission Control Protocol that uses designs as cable network, the frame error rate of wire message way is very low and time delay is very little, when the message segment that detects transmission when Transmission Control Protocol is lost, promptly think on cable network, taken place congested, Transmission Control Protocol enters slowly and starts, congestion window becomes the size that equals 1 maximum message segment section, thereby reduces the transmission rate of TCP.The frame error rate of wireless channel is higher and time delay is bigger in the wireless network, it is that mistake frame by wireless channel causes that message segment is lost major part, and also there is not mechanism to distinguish packet loss among the TCP is that caused by error code or congested causing, thereby congested enter slowly taken place started so Transmission Control Protocol detects just to take for when the message segment of transmission is lost, thereby reduced the utilance of wireless channel.Because the time delay of wireless channel is bigger, the congestion window of Transmission Control Protocol returns to the maximum window size need for a long time from the size of 1 maximum message segment section.In wireless network at a high speed, emulation shows that the throughput of Transmission Control Protocol has only 20% to 30%, therefore need improve the Transmission Control Protocol of wireless IP access network network, improves the throughput of Transmission Control Protocol in the wireless IP access network network.
The at present external solution that proposes mainly contains two sections TCP technology, SNOOP technology and avoids solution such as losing of Frame by the data link layer ARQ, there is the problem that produces the TCP semantic ambiguity in two sections TCP technology and realizes that difficulty is quite big, the base station needs to set up two sections TCP connections for much logic TCP being connected simultaneously, data are carried out buffer memory, to the CPU disposal ability and the memory requirement height very of base station; The SNOOP technology is owing to require the intermediate node base station that the grouping between the fixed host computer on mobile host and the far-end cable network is detected and operates, closeer at the IP operation of network layer stream, send window is less, under the Loss Rate condition with higher, the performance of SNOOP technology can worsen; By data link layer ARQ technology physical link unreliable, that have mistake is transformed into reliable data logical links, TCP connects can not enter startup slowly because of the lost data frames on the Radio Link, performance to TCP is greatly improved, and causes TCP overtime and enter slowly and to start but the data link layer ARQ can increase propagation delay time.
Summary of the invention
The object of the present invention is to provide a kind of base station TCP agency confirmation method and system thereof based on ARQ information, the present invention can improve the low situation of the throughput of Transmission Control Protocol in the Radio Access Network, and can improve the utilance of its reverse wireless link.
A kind of base station TCP agency confirmation method based on ARQ information provided by the invention comprises that downlink data is handled and upstream data is handled, wherein:
Downlink data is handled transmission and the reception that comprises downlink data, and its processing procedure is:
(A) downlink data sends:
(A1) base station judges whether the upper layer data bag is the TCP/IP bag, if enter step (A2), otherwise enter step (A5);
(A2) base station judges whether described TCP/IP bag was identified, if enter step (A3), otherwise enter step (A4);
(A3) base station abandons this TCP/IP bag, and this processing data packets is finished;
(A4) this TCP/IP packet number is given in the base station, extracts source IP address, purpose IP address, sends sequence number, acknowledged sequence number, source port number and destination slogan, and information is deposited in the frame recording node, is inserted into according to the order of sequence then in the frame recording node chained list;
(A5) base station judges whether this packet needs to cut apart or merge, and if desired, then cuts apart or merges, and then data are encapsulated and send, otherwise the base station directly encapsulates and sends data;
(B) reception of downlink data:
(B1) mobile radio station receives the data that send the base station, judges that these data are link layer PDU or link layer ACK information, if link layer ACK information then enters step (B2), otherwise enters step (B3);
(B2) mobile radio station moves send window according to link layer ACK information;
(B3) mobile radio station is put into receive window with the PDU that receives and the PDU of receive window is recombinated or separates merging;
(B4) complete data were to give the upper strata after mobile radio station will be recombinated;
Upstream data is handled transmission and the reception that comprises upstream data, and its processing procedure is:
(C) transmission of upstream data
(C1) mobile radio station receives packet from the upper strata, and judges whether this packet is the TCP/IP bag, if enter step (C2), otherwise enter step (C8);
(C2) mobile radio station judges whether the ACK flag bit of this TCP/IP bag is 1, if enter step (C3), otherwise enter step (C8);
(C3) mobile radio station is judged SYN in this TCP/IP bag, and whether RST and FIN field all are 0, if enter step (C4), otherwise enter step (C8);
(C4) mobile radio station is searched for existing filtration and is followed the tracks of list item, judges whether to filter for the TCP link establishment at this TCP/IP bag place to follow the tracks of list item, if enter step (C5), otherwise enter step (C6);
(C5) mobile radio station checks earlier whether this TCP/IP bag data length is zero, the non-vanishing step (C7) that enters of length; For data length is that zero bag judges whether and need filter, if desired, mobile radio station adds 1 to the filter counter that the TCP at this TCP/IP bag place connects in the corresponding filtration tracking list item, the time counter zero clearing of not having the input data, and abandoning this TCP/IP bag, this processing data packets finishes; If do not need just to enter step (C7);
(C6) mobile radio station is set up corresponding TCP for this TCP/IP bag and is filtered Track Table, enters step (C8);
(C7) mobile radio station is with filter counter and time counter zero clearing in the filtration tracking list item of the TCP link correspondence at this TCP/IP bag place;
(C8) mobile radio station judges whether this packet needs to cut apart or merge, and if desired, then cuts apart or merges, and enters step (C9) again, otherwise directly enters step (C9);
(C9) mobile radio station encapsulates and sends data, and this processing data packets finishes;
(D) reception of upstream data:
(D1) base station receives the data that mobile radio station sends, and judges whether these data are link layer ACK information, if enter step (D7), otherwise enter step (D2);
(D2) base station judges whether these data are the TCP/IP bag, if, enter step (D3), otherwise the upper strata is given with this packet in the base station, upstream data is finished dealing with;
(D3) base station is according to tcp port and IP address, in TCP connection tracking list item, inquire about, judge whether this TCP/IP bag has corresponding TCP connection tracking list item, if have, enter step (D4), otherwise the base station is set up TCP connection tracking list item with the IP address information for the TCP that is responsible for this TCP/IP bag transmission is connected according to its tcp port, enters step (D6);
(D4) whether sending sequence number greater than sending sequence number in the connection tracking list item of this TCP correspondence of correspondence of this TCP/IP bag judged in the base station, if, the base station is wrapped sending sequence number of corresponding TCP connection tracking list item to this TCP/IP and is replaced sending sequence number of TCP/IP bag for this reason, enter step (D5), otherwise directly enter step (D5);
(D5) base station judge this TCP/IP bag the affirmation sequence number whether greater than the affirmation sequence number in the connection tracking list item of this TCP correspondence of correspondence, if, the base station is replaced the affirmation sequence number of TCP/IP bag for this reason to the affirmation sequence number that this TCP/IP wraps corresponding TCP connection tracking list item, enters step (D6); Otherwise the base station resets to this TCP or directly enters step (D6);
(D6) base station is given the upper strata this TCP/IP bag, and upstream data is finished dealing with;
(D7) base station is according to the send window of link layer ACK information mobile base station;
(D8) base station judges that can the data shift out send window be reassembled as a complete TCP and send bag or separate and merge into several TCP/IP bags, if enter step (D9), otherwise this upstream data is finished dealing with;
(D9) the complete TCP/IP bag of base station after according to this reorganization, the frame number of perhaps separating the TCP/IP bag after the merging finds the frame recording node;
(D10) corresponding TCP connection tracking list item be found according to the content judgement of frame recording node in the base station can, if can, enter step (D11), otherwise, corresponding frame recording node discharged;
(D11) sending sequence number whether smaller or equal to the affirmation sequence number that writes down in the connection tracking table of this TCP/IP bag judged in the base station, whether be the order bag promptly, if TCP connection tracking table is upgraded according to the transmission and the acknowledged sequence number of this TCP/IP bag in the base station, enters step (D12); Otherwise, the base station is inserted the frame recording node of this TCP/IP bag in the out of order bag record node chained list of corresponding TCP connection tracking list item, all bags have all correctly received and could delete it from out of order bag record node chained list the inside before this out of order bag, and this time upstream data receives and disposes;
(D12) base station judges in the out of order bag record node chained list whether have bag may become the order bag according to the TCP connection tracking table that upgraded, if, the frame recording node of these bags is deleted from out of order bag record node, upgrade TCP connection tracking list item and generate ACK and the transmission that corresponding TCP connects, this time upstream data bag is finished dealing with; Otherwise send according to wrapping the ACK that generates the TCP/IP bag for the TCP transmission of order bag in (D11), this time upstream data is finished dealing with.
In the above-mentioned steps (A2), the base station adopts following method to judge: compare with the affirmation sequence number in the TCP connection tracking list item with the packet length sum according to sending sequence number of this bag and judge whether described TCP/IP bag was identified.
In the above-mentioned steps (C5), mobile radio station judges according to following step whether this TCP/IP bag needs to filter:
1. mobile radio station has judged whether after filtration the bag that the TCP at n this TCP/IP bag place connects, and 5≤n≤15 are if enter step (C7), otherwise enter step 2.;
2. mobile radio station has judged whether to the TCP link continuous filtration at this TCP/IP bag place kms, and 50≤k≤300 are if enter step (C7), otherwise enter step 3.;
3. mobile radio station adds 1 to the filter counter that the TCP at this TCP/IP bag place connects in the corresponding filtration tracking list item, the time counter zero clearing of not having the input data, and abandons this TCP/IP bag, and this processing data packets finishes.
Above-mentioned base station TCP agency confirmation system based on ARQ information comprises base station and the mobile radio station that adopts Radio Link to connect, and its link layer adopts automatic request retransmission mechanism; Wherein the base station comprises base station initiated control module, sends analysis module, the base station cuts apart recombination module, agency confirmation module and receiving and analyzing module; Mobile radio station comprises that mobile radio station start-up control module, mobile radio station cut apart recombination module and filtering module;
Base station initiated control module is used to finish the initialization and the replacement of user class, and starts the agency confirmation process that selected TCP connects;
Send analysis module and be used for downlink data frame is analyzed,, then carry out analysis and filter, directly give the base station as frame number and cut apart the recombination module transmission otherwise give one 0 value for this Frame if what encapsulate in this frame is the TCP/IP bag;
The base station is cut apart recombination module and will descending Frame be divided into a plurality of PDU and be cached in the data link layer send window and sends according to the maximum length that sends of PDU, and it is cut apart recombination module with mobile radio station and adopts the machine-processed data transmit-receive of handling data link layer that cooperates of automatic request retransmission;
Base station agency confirmation module is cut apart confirming to act on behalf of the ACK frame of indicating generation TCP connection and sending to the upper strata of recombination module transmission according to the base station when TCP connection tracking list item is running status; The Frame that base station agency confirmation module detects encapsulation RST or FIN message segment sends to mobile radio station, showing that this TCP connects resets or disconnects, base station agency confirmation module empties the list item to connecting in the connection tracking table, finishes the agency confirmation that this TCP is connected;
Base station receiving and analyzing module is used to analyze the uplink data frames by the base station, is responsible for the TCP connection tracking list item that base station agency confirmation module is managed is made amendment, and perhaps directly gives the upper strata with uplink data frames;
Mobile radio station start-up control module is responsible for controlling the unlatching of mobile radio station filtering module or closing;
Mobile radio station is cut apart recombination module and descending Frame is divided into a plurality of PDU is cached in the data link layer send window and sends, and it is cut apart with the base station and adopts the machine-processed data transmit-receive of handling data link layer that cooperates of automatic request retransmission between the recombination module; Mobile radio station is cut apart recombination module the mobile radio station filtering module is cut apart according to the PDU maximum length to the data of oneself, number then according to automatic request retransmission agreement and send, also link layer ACK that recombination module sends is cut apart in the base station simultaneously and analyze and carry out the ARQ protocol operation;
The mobile radio station filtering module is used for the TCP/IP bag of all encapsulation TCP/IP message segments that come from the IP layer is analyzed, and follows the tracks of list item and state and filters for the TCP/IP bag of the TCP link of operation having set up to filter.
The present invention has overcome the problem that the throughput of the Transmission Control Protocol that the Radio Link high bit error that exists in the prior art causes reduces, and particularly, the present invention has following technique effect:
(1) the present invention acts on behalf of mobile radio station by the base station based on ARQ information and sends the TCP acknowledgment message segment, saved and confirmed to reply the time that sends on Radio Link, the webserver that can reduce greatly on wired sends the tcp data message segment to the round-trip delay RTT that receives the confirmation message segment.One aspect of the present invention can improve the translational speed of TCP send window greatly, because increasing propagation delay time, the data link layer ARQ cause the overtime probability of TCP to reduce greatly on the other hand, thereby entering the number of times that starts slowly descends greatly, start when TCP enters slowly in addition, the congestion window of Transmission Control Protocol reduced greatly from the time that the size of 1 maximum message segment section returns to maximum window size and needs.
(2) base station is not whole buffer memorys to downlink data frame, but with source IP address, purpose IP address, send sequence number, the information such as numbering of acknowledged sequence number, source port number, destination slogan, TCP flag information and this Frame are deposited into buffer memory in the frame recording node, between frame recording node and Frame, set up one to one relation by the numbering of Frame, improved SNOOP, two sections TCP technology CPU disposal ability and memory requirement high problem very the base station.
(3) base station is based on ARQ information, only just can act on behalf of mobile radio station and send the TCP acknowledgment message segment after downlink data frame arrives mobile radio station really, avoided two sections TCP technology to be easy to generate the problem of TCP semantic ambiguity.Can reduce the data payload of the ACK message segment generation of the TCP connection on the reverse wireless link greatly by filtration to the up confirmation message section of mobile radio station.The present data service overwhelming majority is the TCP business, and the TCP message segment overwhelming majority of mobile radio station is the TCP acknowledgment message segment, by being filtered the number that mobile radio station can be sent Frame, mobile radio station confirmation message section is reduced to 20% to 40%, thereby greatly improve the utilance of reverse wireless link, adapt to the professional asymmetric property in the Wireless IP network, reserve the upstream data bandwidth to support various real time business.
Description of drawings
Fig. 1,2 is a downlink data handling process schematic diagram, and wherein Fig. 1 is the base station data transmission flow, and Fig. 2 is a mobile radio station Data Receiving flow process;
Fig. 3,4 is a upstream data handling process schematic diagram, wherein Fig. 3 be moving station number according to the transmission flow schematic diagram, Fig. 4 is that base station data receives schematic flow sheet;
Fig. 5 is the building-block of logic based on the base station TCP agency confirmation method of ARQ information;
Fig. 6 is the Agent Status transition diagram of base station;
Fig. 7 is the Agent Status transition diagram of mobile radio station.
Embodiment
The present invention is further detailed explanation below in conjunction with accompanying drawing and example.
The TCP/IP bag is analyzed in the base station, obtains judging after the sufficient information starting agency confirmation, is about to comprise send sequence number, acknowledged sequence number, source IP address, purpose IP address, source port, the information that current TCP such as destination interface connects is recorded in the TCP connection tracking table, and each connects corresponding list item.And, carry out agency confirmation afterwards, and mobile radio station begins filtration work after receiving indication information to mobile radio station transmission connection permission startup indication information.
The present invention is by the base station master control, and mobile radio station always begins filtration work after agency confirmation is carried out in the base station, realize easily synchronously, and because process is set up in the connection that does not need to follow the tracks of TCP, thereby can start at any time easily.
The present invention includes upstream data and downlink data and handle two parts, respectively each several part is described in further detail below.
One, downlink data is handled transmission and the reception that comprises downlink data, and its processing procedure is:
(A) transmission of downlink data, as shown in Figure 1, its process is:
(A1) base station judges whether the upper layer data bag is the TCP/IP bag, if enter step (A2), otherwise enter step (A5);
(A2) base station judges whether described TCP/IP bag was identified, if enter step (A3), otherwise enter step (A4);
The base station can adopt multiple mode to judge, wherein fairly simple mode is: link the affirmation sequence number of following the tracks of in list item with the packet length sum with TCP according to sending sequence number of this bag and compare and judge whether described TCP/IP bag was identified.
(A3) base station abandons this TCP/IP bag, and this processing data packets is finished;
(A4) this TCP/IP packet number is given in the base station, extracts source IP address, purpose IP address, sends sequence number, acknowledged sequence number, source port number and destination slogan, and these information are deposited in the frame recording node, is inserted into according to the order of sequence then in the frame recording node chained list.
(A5) base station judges whether this IP bag needs to cut apart or merge (as according to the PDU maximum length), if desired, then cuts apart or merges, and then data are encapsulated and send, otherwise the base station directly encapsulates and sends data.
(B) reception of downlink data, as shown in Figure 2, its process is:
(B1) mobile radio station receives the data that send the base station, judges that these data are link layer PDU or link layer ACK information, if link layer ACK information then enters step (B2), otherwise enters step (B3);
(B2) mobile radio station moves send window according to link layer ACK information;
(B3) mobile radio station is put into receive window with the PDU that receives and the PDU of receive window is recombinated or separates merging;
(B4) complete data were submitted to the upper strata after mobile radio station will be recombinated;
Two, upstream data is handled transmission and the reception that comprises upstream data, and its processing procedure is:
(C) transmission of upstream data, as shown in Figure 3, its process is:
(C1) mobile radio station receives packet from the upper strata, and judges whether this packet is the TCP/IP bag, if enter step (C2), otherwise enter step (C8);
(C2) mobile radio station judges whether the ACK flag bit of this TCP/IP bag is 1, if enter step (C3), otherwise enter step (C8);
(C3) mobile radio station is judged SYN in this TCP/IP bag, and whether RST and FIN field all are 0, if enter step (C4), otherwise enter step (C8);
(C4) mobile radio station is searched for existing filtration and is followed the tracks of list item, judges whether to filter for the TCP link establishment at this TCP/IP bag place to follow the tracks of list item, if enter step (C5), otherwise enter step (C6);
(C5) mobile radio station checks earlier whether this TCP/IP bag data length is zero, the non-vanishing step (C7) that enters of length; For data length is that zero bag judges whether and need filter, if desired, mobile radio station adds 1 to the filter counter that the TCP at this TCP/IP bag place connects in the corresponding filtration tracking list item, the time counter zero clearing of not having the input data, and abandoning this TCP/IP bag, this processing data packets finishes; If do not need just to enter step (C7).
Mobile radio station can adopt multiple mode to judge whether this TCP/IP bag needs to filter, and as judging according to filtering number, or judges according to filtration time, or adopts and filter the method that number and time combines and judge.Specify the third method below:
1. mobile radio station has judged whether after filtration the bag that the TCP at individual this TCP/IP bag place of n (span of n should be between 5 to 15, and wherein 8 to 12 is more satisfactory, gets 10 here) connects, if enter step (C7), otherwise enter step 2.;
2. mobile radio station has judged whether to the TCP link continuous filtration at this TCP/IP bag place k (span of k should be between 50 to 300, and wherein 80 to 120 is more satisfactory, gets 100 here) ms, if enter step (C7), otherwise enter step 3.;
3. mobile radio station adds 1 to the filter counter (Filter_counter) that the TCP at this TCP/IP bag place connects in the corresponding filtration tracking list item, time counter (time_without_input) zero clearing of not having the input data, and abandon this TCP/IP bag, this processing data packets finishes;
(C6) mobile radio station is set up corresponding TCP for this TCP/IP bag and is filtered Track Table, enters step (C8);
(C7) mobile radio station is with filter counter and time counter zero clearing in the filtration tracking list item of the TCP link correspondence at this TCP/IP bag place;
(C8) mobile radio station judges whether this IP bag needs to cut apart or merge, and if desired, then cuts apart or merges, and enters step (C9) again, otherwise directly enters step (C9);
(C9) mobile radio station encapsulates and sends data, and this processing data packets finishes;
In the forwarding step of above-mentioned upstream data, mobile radio station can judge earlier also whether this TCP/IP bag needs to cut apart or merge to judge whether this TCP/IP bag needs to filter again.
(D) reception of upstream data, as shown in Figure 4, its process is:
(D1) base station receives the data that mobile radio station sends, and judges whether these data are link layer ACK information, if enter step (D7), otherwise enter step (D2);
(D2) base station judges whether this packet is the TCP/IP bag, if, enter step (D3), otherwise the upper strata is given with this packet in the base station, upstream data is finished dealing with;
(D3) base station is according to tcp port and IP address, in TCP connection tracking list item, inquire about, judge whether this TCP/IP bag has corresponding TCP connection tracking list item, if have, enter step (D4), otherwise the base station is according to its tcp port, information such as IP address are set up TCP connection tracking list item for this TCP connects, and enter step (D6);
(D4) whether sending sequence number greater than sending sequence number in the connection tracking list item of this TCP correspondence of correspondence of this TCP/IP bag judged in the base station, if, the base station is wrapped sending sequence number of corresponding TCP connection tracking list item to this TCP/IP and is replaced sending sequence number of TCP/IP bag for this reason, enter step (D5), otherwise directly enter step (D5);
(D5) base station judge this TCP/IP bag the affirmation sequence number whether greater than the affirmation sequence number in the connection tracking list item of this TCP correspondence of correspondence, if, the base station is replaced the affirmation sequence number of TCP/IP bag for this reason to the affirmation sequence number that this TCP/IP wraps corresponding TCP connection tracking list item, enters step (D6); Otherwise the base station resets to this TCP as the case may be or directly enters step (D6);
If the base station finds that the affirmation sequence number of this TCP/IP bag is less than the affirmation sequence number in the connection tracking list item of this TCP correspondence of correspondence, and when the difference between them is worth A greater than certain, this TCP resetted, and (A generally reaches 256 and just should reset, what our system used is 2048), otherwise give the upper strata this TCP/IP bag, this upstream data is finished dealing with.
(D6) base station is given the upper strata this TCP/IP bag, and upstream data is finished dealing with;
(D7) base station is according to the send window of link layer ACK information mobile base station;
(D8) base station judges that can the data shift out send window be reassembled as a complete TCP and send bag or separate and merge into several TCP/IP bags, if enter step (D9), otherwise this upstream data is finished dealing with;
(D9) the complete TCP/IP bag of base station after according to this reorganization, the frame number of perhaps separating the TCP/IP bag after the merging finds the frame recording node;
(D10) corresponding TCP connection tracking list item be found according to the content judgement of frame recording node in the base station can, if can, enter step (D11), otherwise, corresponding frame recording node discharged;
Whether (D11) base station judges that this TCP sends all preceding bytes of bag and whether arrives, be the order bag promptly, if TCP connection tracking table is upgraded according to the transmission and the acknowledged sequence number of this TCP/IP bag in the base station, enters step (D12); Otherwise, the base station is inserted the frame recording node of this TCP/IP bag in the out of order bag record node chained list of corresponding TCP connection tracking list item, all bags have all correctly received and could delete it from out of order bag record node chained list the inside before this out of order bag, and this time upstream data receives and disposes;
(D12) base station judges in the out of order bag record node chained list whether have bag can become the order bag according to the TCP connection tracking table that upgraded, if, the frame recording node of these bags is deleted from out of order bag record node, upgrade TCP connection tracking list item and generate ACK and the transmission that corresponding TCP connects, this time upstream data bag is finished dealing with; Otherwise send according to wrapping the ACK that generates the TCP/IP bag for the TCP transmission of order bag in (D11), this time upstream data is finished dealing with.
Switch at mobile radio station, detect the non-vanishing TCP/IP bag of RST or FIN, do not have for a long time to stop the TCP agency confirmation under these three kinds of situations of up-downgoing data.
Based on the building-block of logic of the base station TCP agency confirmation system of ARQ information as shown in Figure 5, system comprises base station and two parts of mobile radio station, is Radio Link between base station and the mobile radio station, and its link layer adopts reliably request retransmission mechanism (ARQ) automatically.The affirmation information that the base station utilizes ARQ to provide, encapsulation TCP message segment in the frame of data link layer is carried out analyzing and processing act on behalf of mobile radio station transmission TCP acknowledgment message segment, filter the downlink data packet that had been identified, and mobile radio station is responsible for filtering these TCP acknowledgment message segments.The base station comprises base station initiated control module 1, sends analysis module 2, recombination module 3, agency confirmation module 4 and receiving and analyzing module 5 are cut apart in the base station.Mobile radio station comprises that mobile radio station start-up control module 6, mobile radio station cut apart recombination module 7 and mobile radio station filtering module 8.
Function to each module is described in further detail below.
Base station initiated control module 1 is used to finish the initialization and the replacement of user class, and starts the agency confirmation process that selected TCP connects.
When mobile radio station access base station and mobile radio station sent agency confirmation and allow information, the base station initialization was provided with and allows to use the TCP agency corresponding to the connection tracking table of this mobile radio station, and sets up corresponding TCP connection tracking list item according to the up TCP/IP bag that receives.The list item that each connects in the corresponding connection tracking table has write down the Agent Status, source IP address, purpose IP address, source port number, the destination slogan that connect, has sent sequence number, information such as acknowledged sequence number.
When mobile radio station PPP connects when breaking, reset to connection tracking table that should mobile radio station in the base station, discharges that all connect the resource that the agency takies corresponding to this mobile radio station, and forbid factorage.
The ownership situation of base station regular check mobile radio station, if mobile radio station switches to another base station, the agency confirmation of this mobile radio station is suspended in then original base station, belongs to other base station if mobile radio station has upgraded, and all the TCP agency confirmations to this mobile radio station are finished in then original base station.
Mobile radio station stops to filter up affirmation before switching, switches to visit responds new base station behind the base station again by the start-up course of agency confirmation TCP agency confirmation.
Fig. 6 be the base station corresponding to some TCP connect the Agent Status transition diagram, each TCP connects corresponding agency all three states in base station agency confirmation module 4, the free time, suspend operation.
Initial condition is idle, when receiving that an indication receive window is not 0 and after RST, FIN be 0 up TCP/IP bag, transfer halted state to,, and send the indication that this connection of startup TCP acts on behalf of for this mobile radio station according to this connection list item in the analysis initialization Track Table that this TCP/IP is wrapped.Start the structure such as the table 1 of agency's indication in concrete the enforcement.
Data item Length (bytes) Explanation
MnId 2 User's unique identification
msg_type 2 Signaling type
local_ip_addr 4 The local source address of TCP/IP bag
rem_ip_addr 4 The far-end address of TCP/IP bag
local_port 2 The local port of TCP/IP bag
rem_port 2 The remote port of TCP/IP bag
The structure of the base station initiated agency's indication of table 1
In halted state, T_BS_PAUSE does not receive also in the time that an indication receive window is not 0 up TCP/IP bag, transfers to idle condition.If receive, transfer to running status.4 meetings of the agency confirmation module of base station are worked when TCP connection tracking list item is running status.
In running status, do not receive any up-downgoing data in the time if continue T_BS_NO_DATA_TIMEOUT, transfer to the free time.If receiving the indication receive window is 0 up TCP/IP bag, transfer to halted state.Receive other up TCP/IP bags, generate up TCP according to generation TCP acknowledgment strategy in the base station receiving and analyzing module 5 and reply.
If T_MIN_PURE_ACK receive continuously in the time indication receive window that connects corresponding to certain TCP be not 0 and RST, FIN be that 0 TCP response message section is greater than 30, showing then that agency confirmation that mobile radio station does not respond the base station connects this TCP starts filtering policy, needs to send one to mobile radio station once more and starts the order that this connects the agency confirmation of TCP.
The base station sends analysis module 2 and is used for downlink data frame is analyzed, if what encapsulate in this frame is the TCP/IP bag, then carries out analysis and filter, directly gives the base station as frame number and cuts apart recombination module 3 transmissions otherwise give one 0 value for this Frame.
If encapsulation TCP/IP bag is by the base station agency confirmation in this frame, what then encapsulate in this frame is to belong to unnecessary retransmission tcp data message segment, can filter and need not send.In concrete the enforcement, read and encapsulate sending sequence number and TCP message segment data length of TCP message segment in this frame, if send sequence number with data length with less than with equal the connection tracking table in should be connected the affirmation sequence number of list item, then filter this downlink data frame and do not submit to and cut apart the recombination module transmission.
If encapsulation is not the tcp data message segment that retransmits in this frame, give a value of progressively increasing as frame number then for this Frame; the scope of frame number is 1 to 65535; recycle; the numbering of the Frame of adjacent two encapsulation TCP/IP bags is continuous, and the Frame that sends to each mobile radio station is given frame number respectively.Source IP address, the purpose IP address that analysis is obtained, send sequence number, the information such as frame number of acknowledged sequence number, source port number, destination slogan, TCP flag information and this packet are deposited in the frame recording node, be inserted into according to the order of sequence in the record node chained list.At last this Frame and the frame number of giving are submitted to together and cut apart the recombination module transmission.
The base station is cut apart recombination module 3 and is used for will descending Frame being divided into a plurality of PDU and being cached in the data link layer send window and sending according to the maximum length that sends of DU, and it is cut apart the recombination module 8 automatic request retransmission mechanism of employing (ARQ) with mobile radio station and cooperates the data transmit-receive of handling data link layer.
Adopt in concrete the enforcement frame number is recorded among the tail PDU, receive the data link layer that the mobile radio station data link layer sends when the base station and confirm that judging whether can mobile data link layer send window.If can mobile send window, then judge whether to have moved tail PDU, if moved and tail PDU in frame number non-0 then can conclude that mobile radio station has correctly received the Frame of an encapsulation TCP message segment, the base station is cut apart recombination module and is write down the current correctly frame number of reception of each mobile radio station.The frame number of recombination module regular check record is cut apart in the base station, if frame number changes, sends then for base station agency confirmation module and can confirm to act on behalf of Indication message.
Data item Length bytes Explanation
PktLen 4 The length of actual data packet
MnId 4 Mobile radio station 1 unique identification,
frame_id 2 The Frame package number of mobile radio station 1 record
RESERVED 2 Reserve
MnId 4 Mobile radio station 2 unique identifications,
frame_id 2 The Frame package number of mobile radio station 2 records
RESERVED 2 Reserve
..........
Table 2 can be confirmed agency's indication
Base station agency confirmation module 4 is cut apart the ACK frame and the transmission of confirming to act on behalf of indication generation TCP connection of recombination module 3 transmissions according to the base station when TCP connection tracking list item is running status.Base station agency confirmation module 4 can be confirmed to act on behalf of the maximum numbering that indication can be known the Frame that comprises the TCP acknowledgment message segment that has arrived this mobile radio station data link layer according to this, shows that the Frame less than the frame recording node correspondence that equals this maximum numbering has all correctly sent to mobile radio station in the frame recording chained list.These Frames are write down nodes from the record chained list, shift out successively, and search connection list item record in the connection tracking table that encapsulates TCP/IP bag correspondence in this Frame, judge encapsulation TCP/IP wraps whether order is wrapped in this Frame.If sending sequence number smaller or equal to the affirmation sequence number that writes down in the connection tracking table of TCP/IP bag, then this TCP/IP bag is the order bag, otherwise is out of order bag.
If this TCP/IP bag is the order bag, can be according to the record of this connection in the record correction connection tracking table of the frame recording node of the order TCP/IP bag that has sent.If this TCP/IP bag send sequence number and TCP message segment length with value greater than the affirmation sequence number that writes down in the connection tracking table, revising the affirmation sequence number that writes down in the connection tracking table is to be somebody's turn to do and value, if, revising sending sequence number of writing down in the connection tracking table greater than sending sequence number of writing down in the connection tracking table, the affirmation sequence number of this TCP/IP bag is the affirmation sequence number of this TCP/IP bag.
If the order bag can send agency confirmation behind the record of this connection in revising the connection tracking table.The source IP address of the TCP/IP bag of the ACK message segment of encapsulation TCP is mobile radio station IP address, destination address is the IP address of the network application server of this connection, the mobile radio station port that tcp source port number connects for this TCP, the network application server port that TCP destination slogan connects for this TCP, advertised window size equals the size that mobile radio station receives buffering area, sending sequence number equals to be identified the affirmation sequence number of TCP/IP bag, acknowledged sequence number equal to be identified sending sequence number of TCP/IP bag and send the size of data value and.
After handling the said sequence bag, check the out of order formation that connects in the list item, see whether be bundled at present to the order bag,, then should wrap from out of order formation and delete, and it is carried out the TCP agency confirmation if having.
If encapsulation TCP/IP bag is out of order bag in the frame, the frame recording node of this out of order bag should be inserted in the out of order formation of this connection list item and go, send the affirmation of order bag simultaneously to expectation so that the base station quick repeats lose be positioned at packet before this out of order bag.After packet before being positioned at this out of order bag sequence number is all successfully sent to mobile radio station, the frame recording node of this out of order bag can be shifted out from the out of order formation of this connection list item, send agency confirmation according to processing to the order bag.
If base station agency confirmation module 4 detects the Frame of encapsulation RST message segment and sends to mobile radio station, show that this TCP connects to reset that base station agency confirmation module empties the list item to connecting in the connection tracking table, finishes the agency confirmation that this TCP is connected.
If base station agency confirmation module 4 detects the Frame of encapsulation FIN message segment and sends to mobile radio station, show that this TCP connection disconnects, base station agency confirmation module can be acted on behalf of the affirmation to this FIN message segment, empty the list item to connecting in the connection tracking table after finishing the FIN process, finish the agency confirmation that this TCP is connected.
Base station receiving and analyzing module 5 is used to analyze the uplink data frames by the base station, is responsible for the TCP connection tracking list item that base station agency confirmation module 4 is managed is made amendment, and perhaps directly gives the upper strata with uplink data frames.
If this uplink data frames does not encapsulate the TCP message segment then directly this Frame is submitted to the upper strata, otherwise this is comprised the Frame analyzing and processing of TCP message segment, can revise the sequence number field of the TCP acknowledgment message segment that the agency generates, perhaps find the mistake extreme case under and recover.
If the affirmation sequence number field of the TCP message segment that should encapsulate is greater than the affirmation sequence number field that should connect list item in the connection tracking table of correspondence, the affirmation sequence number that then this TCP is connected the list item of TCP connection tracking table is revised as the value of the affirmation sequence number field of this tcp data message segment.If the field that sends sequence number of this tcp data message segment is connected the field that sends sequence number of the list item of TCP connection tracking table greater than this TCP, then this TCP is connected the value of the field that sends sequence number that is revised as this tcp data message segment of sending sequence number of the list item of TCP connection tracking table.The list item of this TCP connection tracking table send sequence number and acknowledged sequence number will be sending sequence number and acknowledged sequence number of base station agency confirmation next time.
If the affirmation sequence number field of the TCP message segment that should encapsulate is less than the affirmation sequence number field that should connect list item in the connection tracking table of correspondence, and difference is greater than certain numerical value, then have downlink data frame and lose cutting apart on the recombination module, should allow Transmission Control Protocol to use original restore funcitons to recover.When data-bag lost occurring, the Transmission Control Protocol retransmitting function can recover.But when packet loss occurs in when cutting apart recombination module, the base station sends analysis module and thinks that Frame correctly sends, and filters descending retransmitted packet, and this has just caused the irrecoverable of packet loss.Improved method is the affirmation sequence number of this up TCP message segment of record, and does not filter to send sequence number in the descending retransmission data message segment and equal the Frame of this acknowledged sequence number, has so just allowed the recovery of Transmission Control Protocol to mistake.
If the affirmation sequence number field of the TCP message segment that should encapsulate is less than the affirmation sequence number field that should connect list item in the connection tracking table of correspondence, and difference is greater than certain numerical value, and this situation continued in a period of time, show under this extreme case irrecoverable error to have occurred that the TCP that just can only reset connects.Generate the Frame of the encapsulation RST message segment mail to service side that TCP connects and customer respectively, send to service side and customer that TCP connects, the connection on the both sides that reset.
Mobile radio station start-up control module 6 is responsible for the unlatching of control mobile radio station filtering module 8 or is closed.
Mobile radio station start-up control module is controlled filtration according to the flow process that Fig. 6 describes, and each TCP connects corresponding agency all one of four states: the free time, prepare, and suspend operation.
Filter that the connection tracking list item is created after receiving first up TCP/IP bag and initial condition for idle, when receiving that an indication receive window is not that state transferred preparation to after 0 up TCP/IP wrapped.
In standby condition, the startup of mobile stations wait base station indication if crossed the indication that T_LOCAL_PREPARE time terminal is not also received base station initiated agency, forwards idle condition to.After receiving base station agency confirmation indication, forward halted state to.
In halted state, if do not receive in the time that at T_LOCAL_PAUSE the indication receive window is not 0 up TCP/IP bag, forwards idle condition to, otherwise transfers to running status.
In running status, do not receive the tcp data bag of any up-downgoing in the time if continue T_LOCAL_NO_DATA_TIMEOUT, transfer to idle condition.If receiving the indication receive window is 0 up TCP/IP bag, transfer to halted state.Receive pure up TCP response packet, whether mobile radio station filtering module 8 filters according to the filter algorithm decision.
Mobile radio station is cut apart recombination module 7 and descending Frame is divided into a plurality of PDU is cached in the data link layer send window and sends, and it is cut apart with the base station and adopts the machine-processed data transmit-receive of handling data link layer that cooperates of automatic request retransmission (ARQ) between the recombination module 3.
Mobile radio station is cut apart recombination module 7 mobile radio station filtering module 8 is cut apart according to the PDU maximum length to the data of oneself, numbers then according to the ARQ agreement to send.Simultaneously also link layer ACK that recombination module 3 sends being cut apart in the base station analyzes and carries out the ARQ protocol operation.
Mobile radio station filtering module 8 is used for the TCP/IP bag of all encapsulation TCP/IP message segments that come from the IP layer is analyzed, and follows the tracks of list item and state and filters according to following rule for the TCP/IP bag of the TCP link of operation having set up to filter.
It is not that 0 bag does not filter that mobile radio station filtering module 8 does not have linkage record or data length for those, directly passes through; It for data length 0 bag, judge whether to filter this TCP/IP bag by filter algorithm, if encapsulation TCP message segment is the confirmation message section, and RST, SYN, FIN are masked as 0, then this TCP/IP of policy filtering that determines jointly according to time and number wraps, and send the ACK message segment of TCP by the agency confirmation module of base station agency, and then do not filter for remaining TCP/IP bag, submit to mobile radio station and cut apart recombination module 7 and send.Above-mentioned filter algorithm specifies as follows:
Certain TCP of filter_count field record connects the Frame number of continuous filtration, adopts the time_without_pass field to be used to write down certain TCP and connects the time that continuous filtration comprises the TCP/IP bag of TCP acknowledgment information.Time_without_input represents not have continuously TCP/IP bag entry time, and being used to write down does not have the TCP/IP bag to enter the time that mobile radio station filtering module 8 is analyzed continuously.Cut apart recombination module 7 transmissions as long as there is the TCP/IP bag that comprises TCP acknowledgment information to submit to mobile radio station, just with filter_count field and time_without_pass field clear 0.As long as have the TCP/IP bag to enter mobile radio station filtering module 8, just with time_without_input field clear 0.
If the ACK position of the attribute field of TCP message segment stem is not 1, expression connects does not also set up, and filters the list item that does not have this connection in the Track Table, this TCP/IP bag is not carried out filter analysis, directly cuts apart recombination module 7 by mobile radio station and sends.
If the ACK position of the attribute field of TCP message segment stem is 1, expression connects sets up, and then searches the record whether this connection is arranged in filtering Track Table, if do not connect list item, then sets up new connection list item.If there is this list item to exist in the filtration Track Table, and the length of TCP message segment data division is not 0, then do not filter this TCP/IP bag, the state that connects according to the size modification of advertised window only: if this TCP/IP seals the advertised window of the TCP message segment of dress is 0, and the state of this TCP message segment corresponding list item in filtering Track Table is operation, then status modifier is time-out; If receive that the advertised window that TCP/IP seals the TCP message segment of dress is not 0, and the state of this TCP message segment corresponding list item in filtering Track Table then changes state into operation for suspending.
If there is this list item to exist in the filtration Track Table, and the length of TCP message segment data division is 0, the processing of the TCP message segment that filter algorithm at first needs to consider that advertised window changes.Advertised window is become 0 TCP message segment and advertised window by non-0 to be become non-0 TCP message segment by 0 and should not filter.Next considers that those can not change the TCP message segment of connection status, carry out following operation:
If RST, SYN, FIN sign are not 0 entirely, then this TCP/IP bag does not filter, and submits to mobile radio station and cuts apart recombination module 7 transmissions;
If ACK is 1, RST, SYN, FIN sign are 0 entirely, are in the bag that connects in setting up process and being connected terminal procedure except not filtering, and the strategy that other TCP/IP bag is determined jointly according to time and number filters, that is:
(1) if the value of the filter_count field of this list item more than or equal to 10, then:
(1.1) this TCP/IP bag is submitted to mobile radio station and cut apart recombination module 8 transmissions;
(1.2) with filter_count, time_without_pass, time_without_input field clear 0.
(2) if the value of the filter_count field of this list item less than 10, then:
(2.1) value of inquiry time_without_pass field is if this field more than or equal to 100ms, is then submitted to mobile radio station with this TCP/IP bag and cut apart recombination module 8 transmissions; And with filter_count, time_without_pass, time_without_input field clear 0;
(2.2) if this field less than 100ms, then clear 0 to the time_without_input field, the filter_count field increases by 1 unit, and this TCP/IP bag is filtered.
(3) value of time_without_input field is inquired about in timing, connects the resource that takies if this field, then discharges the agency greater than 500ms.

Claims (4)

1. the base station TCP agency confirmation method based on ARQ information comprises that downlink data is handled and upstream data is handled, wherein:
Downlink data is handled transmission and the reception that comprises downlink data, and its processing procedure is:
(A) downlink data sends:
(A1) base station judges whether the upper layer data bag is the TCP/IP bag, if enter step (A2), otherwise enter step (A5);
(A2) base station judges whether described TCP/IP bag was identified, if enter step (A3), otherwise enter step (A4);
(A3) base station abandons this TCP/IP bag, and this processing data packets is finished;
(A4) this TCP/IP packet number is given in the base station, extracts source IP address, purpose IP address, sends sequence number, acknowledged sequence number, source port number and destination slogan, and information is deposited in the frame recording node, is inserted into according to the order of sequence then in the frame recording node chained list;
(A5) base station judges whether this packet needs to cut apart or merge, and if desired, then cuts apart or merges, and then data are encapsulated and send, otherwise the base station directly encapsulates and sends data;
(B) reception of downlink data:
(B1) mobile radio station receives the data that send the base station, judges that these data are link layer PDU or link layer ACK information, if link layer ACK information then enters step (B2), otherwise enters step (B3);
(B2) mobile radio station moves send window according to link layer ACK information;
(B3) mobile radio station is put into receive window with the PDU that receives and the PDU of receive window is recombinated or separates merging;
(B4) complete data were submitted to the upper strata after mobile radio station will be recombinated;
Upstream data is handled transmission and the reception that comprises upstream data, and its processing procedure is:
(C) transmission of upstream data:
(C1) mobile radio station receives packet from the upper strata, and judges whether this packet is the TCP/IP bag, if enter step (C2), otherwise enter step (C8);
(C2) mobile radio station judges whether the ACK flag bit of this TCP/IP bag is 1, if enter step (C3), otherwise enter step (C8);
(C3) mobile radio station is judged SYN in this TCP/IP bag, and whether RST and FIN field all are 0, if enter step (C4), otherwise enter step (C8);
(C4) mobile radio station is searched for existing filtration and is followed the tracks of list item, judges whether to filter for the TCP link establishment at this TCP/IP bag place to follow the tracks of list item, if enter step (C5), otherwise enter step (C6);
(C5) mobile radio station checks earlier whether this TCP/IP bag data length is zero, the non-vanishing step (C7) that enters of length; For data length is that zero bag judges whether and need filter, if desired, mobile radio station adds 1 to the filter counter that the TCP at this TCP/IP bag place connects in the corresponding filtration tracking list item, the time counter zero clearing of not having the input data, and abandoning this TCP/IP bag, this processing data packets finishes; If do not need just to enter step (C7);
(C6) mobile radio station is set up corresponding TCP for this TCP/IP bag and is filtered Track Table, enters step (C8);
(C7) mobile radio station is with filter counter and time counter zero clearing in the filtration tracking list item of the TCP link correspondence at this TCP/IP bag place;
(C8) mobile radio station judges whether this packet needs to cut apart or merge, and if desired, then cuts apart or merges, and enters step (C9) again, otherwise directly enters step (C9);
(C9) mobile radio station encapsulates and sends data, and this processing data packets finishes;
(D) reception of upstream data:
(D1) base station receives the data that mobile radio station sends, and judges whether these data are link layer ACK information, if enter step (D7), otherwise enter step (D2);
(D2) base station judges whether these data are the TCP/IP bag, if, enter step (D3), otherwise the upper strata is given with this packet in the base station, upstream data is finished dealing with;
(D3) base station is according to tcp port and IP address, in TCP connection tracking list item, inquire about, judge whether this TCP/IP bag has corresponding TCP connection tracking list item, if have, enter step (D4), otherwise the base station is set up TCP connection tracking list item with the IP address information for the TCP that is responsible for this TCP/IP bag transmission is connected according to its tcp port, enters step (D6);
(D4) whether sending sequence number greater than sending sequence number in the connection tracking list item of this TCP correspondence of correspondence of this TCP/IP bag judged in the base station, if, the base station is wrapped sending sequence number of corresponding TCP connection tracking list item to this TCP/IP and is replaced sending sequence number of TCP/IP bag for this reason, enter step (D5), otherwise directly enter step (D5);
(D5) base station judge this TCP/IP bag the affirmation sequence number whether greater than the affirmation sequence number in the connection tracking list item of this TCP correspondence of correspondence, if, the base station is replaced the affirmation sequence number of TCP/IP bag for this reason to the affirmation sequence number that this TCP/IP wraps corresponding TCP connection tracking list item, enters step (D6); Otherwise the base station resets to this TCP or directly enters step (D6);
(D6) base station is given the upper strata this TCP/IP bag, and upstream data is finished dealing with;
(D7) base station is according to the send window of link layer ACK information mobile base station;
(D8) base station judges that can the data shift out send window be reassembled as a complete TCP and send bag or separate and merge into several TCP/IP bags, if enter step (D9), otherwise this upstream data is finished dealing with;
(D9) the complete TCP/IP bag of base station after according to this reorganization, the frame number of perhaps separating the TCP/IP bag after the merging finds the frame recording node;
(D10) corresponding TCP connection tracking list item be found according to the content judgement of frame recording node in the base station can, if can, enter step (D11), otherwise, corresponding frame recording node discharged;
(D11) sending sequence number whether smaller or equal to the affirmation sequence number that writes down in the connection tracking table of this TCP/IP bag judged in the base station, whether be the order bag promptly, if TCP connection tracking table is upgraded according to the transmission and the acknowledged sequence number of this TCP/IP bag in the base station, enters step (D12); Otherwise, the base station is inserted the frame recording node of this TCP/IP bag in the out of order bag record node chained list of corresponding TCP connection tracking list item, bags all before this out of order bag all correctly receive, and delete it from out of order bag record node chained list the inside again, and this time upstream data receives and disposes;
(D12) base station judges in the out of order bag record node whether have bag may become the order bag according to the TCP connection tracking table that upgraded, if, these bags are deleted from out of order bag record node chained list, upgrade TCP connection tracking list item and generate ACK and the transmission that corresponding TCP connects, this time upstream data bag is finished dealing with; Otherwise send according to wrapping the ACK that generates the TCP/IP bag for the TCP transmission of order bag in (D11), this time upstream data is finished dealing with.
2. method according to claim 1, it is characterized in that: in the step (A2), the base station adopts following method to judge: link the affirmation sequence number of following the tracks of in list item with the packet length sum with TCP according to sending sequence number of this bag and compare and judge whether described TCP/IP bag was identified.
3. method according to claim 1 and 2 is characterized in that: in the step (C5), mobile radio station judges according to following step whether this TCP/IP bag needs to filter:
1. mobile radio station has judged whether after filtration the bag that the TCP at n this TCP/IP bag place connects, and 5≤n≤15 are if enter step (C7), otherwise enter step 2.;
2. mobile radio station has judged whether to the TCP link continuous filtration at this TCP/IP bag place kms, and 50≤k≤300 are if enter step (C7), otherwise enter step 3.;
3. mobile radio station adds 1 to the filter counter that the TCP at this TCP/IP bag place connects in the corresponding filtration tracking list item, the time counter zero clearing of not having the input data, and abandons this TCP/IP bag, and this processing data packets finishes.
4. system that realizes the described method of claim 1 is characterized in that: system comprises base station and the mobile radio station that adopts Radio Link to connect, and its link layer adopts automatic request retransmission mechanism; Wherein the base station comprises base station initiated control module (1), sends analysis module (2), the base station cuts apart recombination module (3), agency confirmation module (4) and receiving and analyzing module (5); Mobile radio station comprises that mobile radio station start-up control module (6), mobile radio station cut apart recombination module (7) and filtering module (8);
Base station initiated control module (1) is used to finish the initialization and the replacement of user class, and starts the agency confirmation process that selected TCP connects;
Send analysis module (2) and be used for downlink data frame is analyzed,, then carry out analysis and filter, directly give the base station as frame number and cut apart recombination module (3) transmission otherwise give one 0 value for this Frame if what encapsulate in this frame is the TCP/IP bag;
The base station is cut apart recombination module (3) and will descending Frame be divided into a plurality of PDU and be cached in the data link layer send window and sends according to the maximum length that sends of PDU, and it cuts apart the machine-processed data transmit-receive of handling data link layer that cooperates of the automatic request retransmission of recombination module (8) employing with mobile radio station;
Base station agency confirmation module (4) is cut apart the ACK frame and the transmission of confirming to act on behalf of indication generation TCP connection of recombination module (3) transmission according to the base station when TCP connection tracking list item is running status; The Frame that base station agency confirmation module (4) detects encapsulation RST or FIN message segment sends to mobile radio station, showing that this TCP connects resets or disconnects, base station agency confirmation module (4) empties the list item to connecting in the connection tracking table, finishes the agency confirmation that this TCP is connected;
Base station receiving and analyzing module (5) is used to analyze the uplink data frames by the base station, is responsible for the TCP connection tracking list item that base station agency confirmation module (4) is managed is made amendment, and perhaps directly gives the upper strata with uplink data frames;
Mobile radio station start-up control module (6) is responsible for the unlatching of control mobile radio station filtering module (8) or is closed;
Mobile radio station is cut apart recombination module (7) and descending Frame is divided into a plurality of PDU is cached in the data link layer send window and sends, and it is cut apart with the base station and adopts the machine-processed data transmit-receive of handling data link layer that cooperates of automatic request retransmission between the recombination module (3); Mobile radio station is cut apart recombination module (7) mobile radio station filtering module (8) is cut apart according to the PDU maximum length to the data of oneself, number then according to automatic request retransmission mechanism agreement and send, also link layer ACK that recombination module (3) sends is cut apart in the base station simultaneously and analyze and carry out automatic request retransmission mechanism protocol operation;
Mobile radio station filtering module (8) is used for the TCP/IP bag of all encapsulation TCP/IP message segments that come from the IP layer is analyzed, and follows the tracks of list item and state and filters for the TCP/IP bag of the TCP link of operation having set up to filter.
CNB200510019661XA 2005-10-25 2005-10-25 Base station TCP agency confirmation method based on ARQ information and its system Expired - Fee Related CN100394717C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510019661XA CN100394717C (en) 2005-10-25 2005-10-25 Base station TCP agency confirmation method based on ARQ information and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510019661XA CN100394717C (en) 2005-10-25 2005-10-25 Base station TCP agency confirmation method based on ARQ information and its system

Publications (2)

Publication Number Publication Date
CN1753354A CN1753354A (en) 2006-03-29
CN100394717C true CN100394717C (en) 2008-06-11

Family

ID=36680050

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510019661XA Expired - Fee Related CN100394717C (en) 2005-10-25 2005-10-25 Base station TCP agency confirmation method based on ARQ information and its system

Country Status (1)

Country Link
CN (1) CN100394717C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464536C (en) * 2006-09-18 2009-02-25 华为技术有限公司 Method and device for recomposing fragmented data
CN102263625B (en) * 2006-12-25 2013-11-06 华为技术有限公司 Acknowledgement/negative acknowledgement information transmission method for communication system
CN101162971B (en) * 2007-10-30 2011-09-14 华为技术有限公司 Data transmitting method, equipment and system
CN101841545B (en) * 2010-05-14 2012-08-01 中国科学院计算技术研究所 TCP stream restructuring and/or packetizing method and device
CN102340828A (en) * 2010-07-15 2012-02-01 中兴通讯股份有限公司 Method for improving terminal processing performance through base station and base station thereof
CN102130910B (en) 2011-02-28 2015-04-29 华为技术有限公司 Method for inserting and unloading transmission control protocol (TCP) proxy and service gateway equipment
CN102368700B (en) * 2011-10-25 2014-10-22 曙光信息产业(北京)有限公司 Transmission method of massages in distributed system
CN110213167A (en) * 2018-02-28 2019-09-06 吴瑞 A kind for the treatment of method and apparatus of transmission control protocol in network congestion
CN111130712B (en) * 2019-12-30 2020-11-24 华中科技大学 Self-adaptive cross-carrier hybrid automatic repeat request processing method and application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1148689A1 (en) * 2000-04-18 2001-10-24 Motorola, Inc. Downloading web pages
US20020099584A1 (en) * 2001-01-24 2002-07-25 United States Air Force System management tool and method
CN1416659A (en) * 2001-01-05 2003-05-07 松下电器产业株式会社 Mobil communication system and radio communication method
US20050226241A1 (en) * 2004-04-05 2005-10-13 Nokia Corporation Method and apparatus to provide network data recovery optimization with header compression enabled in unreliable environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1148689A1 (en) * 2000-04-18 2001-10-24 Motorola, Inc. Downloading web pages
CN1416659A (en) * 2001-01-05 2003-05-07 松下电器产业株式会社 Mobil communication system and radio communication method
US20020099584A1 (en) * 2001-01-24 2002-07-25 United States Air Force System management tool and method
US20050226241A1 (en) * 2004-04-05 2005-10-13 Nokia Corporation Method and apparatus to provide network data recovery optimization with header compression enabled in unreliable environment

Also Published As

Publication number Publication date
CN1753354A (en) 2006-03-29

Similar Documents

Publication Publication Date Title
CN100394717C (en) Base station TCP agency confirmation method based on ARQ information and its system
US8259729B2 (en) Wavefront detection and disambiguation of acknowledgements
CN100385961C (en) Method and end station with improved user response time in a mobile network
US8462630B2 (en) Early generation of acknowledgements for flow control
US7630305B2 (en) TCP selective acknowledgements for communicating delivered and missed data packets
US7656799B2 (en) Flow control system architecture
CN1613233B (en) Method and system of retransmission
US8233392B2 (en) Transaction boundary detection for reduction in timeout penalties
Wang et al. Mobile-end transport protocol: an alternative to TCP/IP over wireless links
US7698453B2 (en) Early generation of acknowledgements for flow control
US20050265353A1 (en) Sub-segment based transport layer protocol for wireless medium
JPH06501360A (en) network traffic management
US20020054570A1 (en) Data communication system, data communication method, and recording medium with data communication program recorded thereon
CN100542130C (en) Be used for the transmitter device that control data sends
CN101179564A (en) Link layer automatic request retransmission based TCP packet header compression method and system thereof
CN102299899A (en) Method for accelerating TCP (Transmission Control Protocol) under severe channel
JP3032419B2 (en) Data transfer method
CN102055568A (en) Method and device for processing feedback messages
CN106332145A (en) Optimization method of connection performance of TCP in mobile Ad-hoc network
CN1270463A (en) Communication system in network management
Marasli et al. Partially reliable transport service
Chandra et al. TCP performance for future IP-based wireless networks
JP3106405B2 (en) Retransmission control method
Schüler et al. Performance improvements for TCP in mobile networks with high packet delay variations
Pietersnieuwstraat Development of a TCP protocol booster over a wireless link

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

Termination date: 20141025

EXPY Termination of patent right or utility model