CN104754760B - A kind of Packet Service method for reconstructing and terminal - Google Patents

A kind of Packet Service method for reconstructing and terminal Download PDF

Info

Publication number
CN104754760B
CN104754760B CN201310738090.XA CN201310738090A CN104754760B CN 104754760 B CN104754760 B CN 104754760B CN 201310738090 A CN201310738090 A CN 201310738090A CN 104754760 B CN104754760 B CN 104754760B
Authority
CN
China
Prior art keywords
tcp
tcp connection
terminal
effective
rab
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310738090.XA
Other languages
Chinese (zh)
Other versions
CN104754760A (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.)
Keen (Chongqing) Microelectronics Technology Co., Ltd.
Original Assignee
Keen (chongqing) Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Keen (chongqing) Microelectronics Technology Co Ltd filed Critical Keen (chongqing) Microelectronics Technology Co Ltd
Priority to CN201310738090.XA priority Critical patent/CN104754760B/en
Publication of CN104754760A publication Critical patent/CN104754760A/en
Application granted granted Critical
Publication of CN104754760B publication Critical patent/CN104754760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Abstract

The embodiment of the invention discloses a kind of Packet Service method for reconstructing and terminals, for accelerating the rate of RAB reconstruction.The method comprise the steps that terminal record there is currently each TCP connection, after RAB is disconnected, terminal judge there is currently each TCP connection in the presence or absence of effective TCP connection, effective TCP connection if it exists, then terminal triggering RAB reconstruction process.So that terminal does not need the reconstruction for waiting retransmission timer to trigger RAB again after RAB is disconnected extremely, the rate of RAB reconstruction is accelerated, reduces transmission and restores the time needed.

Description

A kind of Packet Service method for reconstructing and terminal
Technical field
The present embodiments relate to data communication field more particularly to a kind of Packet Service method for reconstructing and terminals.
Background technique
In LTE/UMTS/GPRS wireless communication system, terminal can pass through EPS bearing activation process after normal boot-strap Or PDP bearing activation process carries to activate, and the grouping necessary IP address of field communication is obtained by the process, terminal exists After obtaining IP address, so that it may which accessing group data network carries out relevant Packet Service.After terminal obtains IP address, the IP Address always exists and effectively, initiates load bearing deactivation process except nonterminal and deletes the carrying.In terminal baseband side, it is grouped industry The transmission of business transmission data is carried out on radio access bearer (RAB, RadioAccess Bearer), and RAB is not always Existing, when RAB is not present, although terminal possesses effective IP address, but cannot normal transmitting and receiving packet data.
When terminal is when needing to send packet data or network has data to need to send packet data to terminal, meeting Start RAB reconstruction process, after RAB is rebuild successfully, data can normally be had sent.The Fast retransmission and recovery plan of TCP/IP Slightly (FRR, Fast Retransmit and Recovery) is a kind of congestion avoidance algorithm, it can the data lost of fast quick-recovery Packet: if delivery section receives three duplicate acknowledgments, the data segment that it can assume that confirmation part is pointed out is lost, and retransmits this immediately The data segment lost a bit.
Due to the particularity of wireless communication system, in some scenarios (for example wireless signal is poor that Radio Link is caused to lose Lose, terminal or the interim exception of network etc.), it will lead to RAB and discharged extremely, cause the packet loss of packet data.Under the scene, Data transmission for transmission control protocol (TCP, Transmission Control Protocol) type, since RAB is disconnected Afterwards, terminal can not receive any data, will not send any TCP acknowledgment packet, so after data-bag lost, TCP/IP Fast retransmission and recovery policy in agreement can not work, and RAB can not be rebuild in time, only come by the retransmission timer of TCP It triggers RAB to rebuild, influences the experience of user.
Summary of the invention
The embodiment of the invention provides a kind of Packet Service method for reconstructing and terminals, for accelerating RAB under abnormality The rate of reconstruction.
A kind of Packet Service method for reconstructing, comprising:
Terminal record there is currently each transmission control protocol TCP connection;
When radio access bearer RAB is disconnected, terminal judgement it is described there is currently each TCP connection in whether there is Effective TCP connection;
Effective TCP connection if it exists, then the terminal triggers RAB reconstruction process.
A kind of terminal, comprising:
Linkage record module, for record there is currently each transmission control protocol TCP connection;
Judgment module, for when radio access bearer RAB is disconnected, judging described the working as of the linkage record module record It whether there is effective TCP connection in preceding existing each TCP connection;
Module is rebuild, for determining to trigger RAB reconstruction process there are when effective TCP connection when the judgment module.
As can be seen from the above technical solutions, the embodiment of the present invention have the advantage that terminal record there is currently it is each TCP connection, when RAB disconnect after, terminal judge there is currently each TCP connection in whether there is effective TCP connection, if it exists Effective TCP connection, then terminal triggers RAB reconstruction process, in this way, when RAB is disconnected extremely, effective TCP connection if it exists, The reconstruction that terminal no longer needs to wait retransmission timer to trigger RAB, but the reconstruction process of triggering RAB can be actively gone, in this way It saves RAB under abnormality and rebuilds the time for needing to wait, accelerate the rate of RAB reconstruction, enable TCP data faster It transfers out, improves the Experience Degree of user.
Detailed description of the invention
Fig. 1 is one flow diagram of Packet Service method for reconstructing in the embodiment of the present invention;
Fig. 2 is another flow diagram of Packet Service method for reconstructing in the embodiment of the present invention;
Fig. 3 is another flow diagram of Packet Service method for reconstructing in the embodiment of the present invention;
Fig. 4 is one structural schematic diagram of terminal in the embodiment of the present invention;
Fig. 5 is another structural schematic diagram of terminal in the embodiment of the present invention;
Fig. 6 is another structural schematic diagram of terminal in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without making creative work Example, shall fall within the protection scope of the present invention.
Referring to Fig. 1, Packet Service method for reconstructing one embodiment includes: in the embodiment of the present invention
101, terminal record there is currently each TCP connection;
When terminal and network side need to carry out data transmission, TCP connection can be established with network side, in packet data transmission In the process, terminal record there is currently each TCP connection.
102, terminal judge there is currently each TCP connection in the presence or absence of effective TCP connection;
When RAB is disconnected, terminal judges in current existing each TCP connection with the presence or absence of effective TCP connection.
103, effective TCP connection if it exists, then terminal triggers RAB reconstruction process.
If terminal judges in current existing each TCP connection that terminal triggers RAB weight there are effective TCP connection Build process.
In the embodiment of the present invention, terminal record there is currently each TCP connection, when RAB disconnect after, terminal judgement currently deposit Each TCP connection in whether there is effective TCP connection, effective TCP connection if it exists, then terminal triggering RAB was rebuild Journey, in this way, effective TCP connection, terminal no longer need to wait retransmission timer to trigger if it exists when RAB is disconnected extremely The reconstruction of RAB, but the reconstruction process of triggering RAB can be actively gone, RAB under abnormality is saved in this way rebuilds what needs waited Time accelerates the rate of RAB reconstruction, TCP data is transferred out faster, improves the Experience Degree of user.
In above example, terminal judge there is currently each TCP connection in the presence or absence of effective TCP connection, in reality In the application of border, terminal can judge whether the TCP connection is effective according to the mode field in TCP data packet, when RAB is reconstructed into After function, terminal can also to there is currently each TCP connection in effective TCP connection and invalid TCP connection locate respectively Reason, is below specifically described the Packet Service method for reconstructing in the embodiment of the present invention, referring to Fig. 2, the embodiment of the present invention Middle another embodiment of Packet Service method for reconstructing includes:
201, terminal record there is currently each TCP connection;
When terminal and network side need to carry out data transmission, TCP connection can be established with network side, in packet data transmission In the process, terminal record there is currently each TCP connection.
Terminal record there is currently each TCP connection mode there are many kinds of, terminal can pass through record one TCP connection Source port and destination port record a TCP connection jointly, TCP can also be recorded by remaining mode and is connected It connects, is not construed as limiting herein.Terminal can also pass through the source port and destination in the packet header of TCP data packet in analysis TCP connection Mouthful, to judge whether TCP connection belonging to the TCP has been recorded.
It should be noted that terminal record there is currently each TCP connection when, can recorde there is currently all TCP Connection, can also randomly select according to a certain percentage there is currently each TCP connection, be not construed as limiting herein.
202, terminal parsing there is currently each TCP connection on mode field in TCP data packet;
Terminal record there is currently each TCP connection after, parse there is currently each TCP connection in TCP data packet Mode field obtains the parameter of mode field in TCP data packet in each TCP connection;
In the available mode field of terminal in TCP header field the parameter of the position FIN and the position SYNC parameter, the FIN Whether the parameter of position is invalid state for TCP connection belonging to TCP data packet where indicating it, the parameter of the position SYNC It whether is effective status for TCP connection belonging to TCP data packet where indicating it.
203, terminal is according to mode field, determine there is currently each TCP connection whether be in effective status, recorded As a result;
After terminal parses the mode field in each TCP connection in TCP data packet, according to the mode field, determine current Whether existing each TCP connection is in effective status, obtains record result;
Terminal can search the parameter of the parameter of the position FIN and the position SYNC in TCP header field in each mode field, if The parameter of the position FIN is 1 in TCP header field, then the TCP connection where recording TCP data packet belonging to the TCP header field is nothing Effect state, if the parameter of the position SYNC is 1 in TCP header field, where recording TCP data packet belonging to the TCP header field TCP connection is effective status.
It should be noted that step 202 and step 203 can execute after RAB disconnection, it can also be disconnected in RAB Preceding execution, is not construed as limiting herein.
204, terminal search record as a result, judge there is currently each TCP connection in whether there is TCP connection to be in effective shape State;
When RAB disconnect after, terminal search record as a result, determine there is currently each TCP connection whether there is TCP connection to be in Effective status.
In a practical situation, RAB disconnect the reason of can there are many kinds of, can be Radio Link Failure, be also possible to end The local exception at end, can also be that network discharges RAB, is not construed as limiting herein.
If thering is TCP connection to be in effective status in record result, 205 are thened follow the steps;
If there is no TCP connection to be in effective status in record result, 206 are thened follow the steps.
205, terminal is determined there are effective TCP connection, executes step 207;
If there is TCP connection to be in effective status in record result, terminal is determined there are effective TCP connection, executes step Rapid 207.
206, other treatment processes are executed;
If not having TCP connection to be in effective status in record result, terminal executes other treatment processes.
Whether terminal can detecte in terminal has the data of caching to need to send, if there is the data of caching to need to send, Terminal can directly trigger RAB reconstruction process, if the data not cached need to send, terminal can suspend reconstruction process, eventually End can also wait retransmission timer to rebuild to trigger RAB, be not construed as limiting herein without data cached detection.
207, terminal triggers RAB reconstruction process;
When terminal determines that terminal triggers RAB reconstruction process, request resume data transmission there are when effective TCP connection.
208, terminal retransmits the data packet cached in effective TCP connection;
After RAB is rebuild successfully, terminal retransmits the data packet cached in effective TCP connection, it is ensured that up direction Upper no data packet discarding, which includes TCP data packet and IP data packet.
It is understood that if after RAB rebuilds successfully, there is currently each TCP connection in do not have in effective TCP connection The data packet of caching, terminal can not also execute the step of retransmitting the data packet cached in effective TCP connection, not limit herein It is fixed.
209, terminal deletion there is currently each TCP connection in cache in invalid TCP connection and invalid TCP connection Data packet.
After RAB is rebuild successfully, terminal deletion there is currently each TCP connection in invalid TCP connection and invalid TCP The data packet cached in connection.
It should be noted that in practical applications, after RAB is rebuild successfully, if the storage resource and process resource of terminal are filled Foot, terminal can not also delete there is currently each TCP connection in cache in invalid TCP connection and invalid TCP connection Data packet is not construed as limiting herein.
In the embodiment of the present invention, terminal first parses the mode field of TCP data packet in TCP connection, according in mode field Parameter judge whether the TCP connection is in effective status, determine whether to be rebuild in RAB there are effective TCP connection Success after, terminal can also retransmit the data packet cached in effective TCP connection, can also delete there is currently each TCP company The data packet cached in invalid TCP connection and invalid TCP connection is connect, has on the one hand refined judged whether there is in this way The process of the TCP connection of effect, so that more accurate to the judgement with the presence or absence of effective TCP connection, processing speed is more accelerated Speed, on the other hand, delete there is currently each TCP connection in the data that cache in invalid TCP connection and invalid TCP connection Packet can also save the resource in terminal, reinforce terminal to avoid these invalid data are sent to the occupancy of existing transmission link Handle the ability of other tasks.
In practical applications, terminal can also save newest uplink TCP acknowledgment packet before RAB disconnection, disconnected in RAB After opening and being reconstructed into function, the TCP acknowledgment packet is retransmitted, the Packet Service method for reconstructing in the embodiment of the present invention is carried out below detailed Illustrate, referring to Fig. 3, another embodiment of Packet Service method for reconstructing includes: in the embodiment of the present invention
301, terminal record there is currently each TCP connection;
When terminal and network side need to carry out data transmission, TCP connection can be established with network side, in packet data transmission In the process, terminal record there is currently each TCP connection.
Terminal record there is currently each TCP connection mode there are many kinds of, terminal can pass through record one TCP connection Source port and destination port record a TCP connection jointly, TCP can also be recorded by remaining mode and is connected It connects, is not construed as limiting herein.Terminal can also pass through the source port and destination in the packet header of TCP data packet in analysis TCP connection Mouthful, to judge whether TCP connection belonging to the TCP has been recorded.
It should be noted that terminal record there is currently each TCP connection when, can recorde there is currently all TCP Connection, can also randomly select according to a certain percentage there is currently each TCP connection, be not construed as limiting herein.
302, terminal parsing there is currently each TCP connection on mode field in TCP data packet;
Terminal record there is currently each TCP connection after, parse there is currently each TCP connection in TCP data packet Mode field obtains the parameter of mode field in TCP data packet in each TCP connection;
In the available mode field of terminal in TCP header field the parameter of the position FIN and the position SYNC parameter, the FIN Whether the parameter of position is invalid state for TCP connection belonging to TCP data packet where indicating it, the parameter of the position SYNC It whether is effective status for TCP connection belonging to TCP data packet where indicating it.
303, terminal is according to mode field, determine there is currently each TCP connection whether be in effective status, recorded As a result;
After terminal parses the mode field in each TCP connection in TCP data packet, according to the mode field, determine current Whether existing each TCP connection is in effective status, obtains record result;
Terminal can search the parameter of the parameter of the position FIN and the position SYNC in TCP header field in each mode field, if The parameter of the position FIN is 1 in TCP header field, then the TCP connection where recording TCP data packet belonging to the TCP header field is nothing Effect state, if the parameter of the position SYNC is 1 in TCP header field, where recording TCP data packet belonging to the TCP header field TCP connection is effective status.
It should be noted that step 202 and step 203 can execute after RAB disconnection, it can also be disconnected in RAB Preceding execution, is not construed as limiting herein.
304, terminal saves newest uplink TCP acknowledgment packet;
Terminal obtain indicating there is currently each TCP connection whether be in the record result of effective status after, save newest Uplink TCP acknowledgment packet, the TCP acknowledgment be there is currently each TCP connection in newest uplink in each effective TCP connection TCP acknowledgment packet.
305, terminal search record as a result, judge there is currently each TCP connection in whether there is TCP connection to be in effective shape State;
When RAB disconnect after, terminal search record as a result, determine there is currently each TCP connection whether there is TCP connection to be in Effective status.
In a practical situation, RAB disconnect the reason of can there are many kinds of, can be Radio Link Failure, be also possible to end The local exception at end, can also be that network discharges RAB, is not construed as limiting herein.
If thering is TCP connection to be in effective status in record result, 306 are thened follow the steps;
If there is no TCP connection to be in effective status in record result, 307 are thened follow the steps.
306, terminal is determined there are effective TCP connection, executes step 308;
If there is TCP connection to be in effective status in record result, terminal is determined there are effective TCP connection, executes step Rapid 308.
307, other treatment processes are executed;
If not having TCP connection to be in effective status in record result, terminal executes other treatment processes.
Whether terminal can detecte in terminal has the data of caching to need to send, if there is the data of caching to need to send, Terminal can directly trigger RAB reconstruction process, if the data not cached need to send, terminal can suspend reconstruction process, eventually End can also wait retransmission timer to rebuild to trigger RAB, be not construed as limiting herein without data cached detection.
308, terminal triggers RAB reconstruction process;
When terminal determines that terminal triggers RAB reconstruction process, request resume data transmission there are when effective TCP connection.
309, terminal retransmits the data packet cached in effective TCP connection;
After RAB is rebuild successfully, terminal retransmits the data packet cached in effective TCP connection, which includes TCP number According to packet and IP data packet.
It is understood that if after RAB rebuilds successfully, there is currently each TCP connection in do not have in effective TCP connection The data packet of caching, terminal can not also execute the step of retransmitting the data packet cached in effective TCP connection, not limit herein It is fixed.
310, terminal deletion there is currently each TCP connection in cache in invalid TCP connection and invalid TCP connection Data packet.
After RAB is rebuild successfully, terminal deletion there is currently each TCP connection in invalid TCP connection and invalid TCP The data packet cached in connection.
It should be noted that in practical applications, after RAB is rebuild successfully, if the storage resource and process resource of terminal are filled Foot, terminal can not also delete there is currently each TCP connection in cache in invalid TCP connection and invalid TCP connection Data packet is not construed as limiting herein.
311, terminal profile uplink TCP control packet is surrounded by the permission of prioritised transmission compared to TCP data;
Terminal profile uplink TCP control packet is surrounded by the permission of prioritised transmission compared to TCP data, includes in TCP control packet Uplink TCP acknowledgment packet.
It should be noted that in practical applications, setting uplink TCP control packet is surrounded by prioritised transmission compared to TCP data Permission can according to need to carry out, and can also be not construed as limiting herein without setting.
It is understood that setting uplink TCP control packet can be with compared to the opportunity for the permission that TCP data is surrounded by prioritised transmission It arranges, can be carried out between any two steps according to actual needs, can also be not construed as limiting herein pre-set.
312, terminal retransmits newest uplink TCP acknowledgment packet.
After RAB is rebuild successfully, terminal can be retransmitted newest in the previously stored each effective TCP connection of RAB disconnection TCP acknowledgment packet.
Further, terminal can be by the TCP acknowledgment packet retransmission three times, and the transmitting terminal to trigger the TCP connection is vertical Start TCP Fast retransmission and recovery policy (FRR mechanism).
In the embodiment of the present invention, before RAB is disconnected, terminal saves newest uplink TCP acknowledgment packet, lays equal stress in RAB disconnection After building, the newest uplink TCP acknowledgment packet of terminal repeating transmission is synchronous with transmitting terminal progress data, can guarantee what data were sent in this way Integrality, and terminal can set the permission that uplink TCP control packet is surrounded by prioritised transmission compared to TCP data, such TCP acknowledgment Packet can preferentially be sent to network, will effectively avoid network that can not send because TCP acknowledgment packet is not timely received so new TCP packet the problem of, more further, terminal can be by the TCP acknowledgment packet retransmission three times, to trigger the hair of the TCP connection Sending end starts FRR mechanism immediately, can more quickly restore packet data transmission in this way and data restore business.
For ease of understanding, have below with a concrete application scene to Packet Service method for reconstructing in the embodiment of the present invention Body description:
If there are TCP connections (referred to as the first TCP connection) and an instant chat that one browses webpage on present terminal The TCP connection (referred to as the second TCP connection) of tool;
Terminal is by recording source port and mesh in first TCP connection and the second TCP connection in the packet header of TCP data packet Port record first TCP connection and the second TCP connection;
Terminal parses the mode field in the first TCP connection and the second TCP connection in TCP data packet;
The parameter that terminal obtains in the first TCP connection the position FIN in TCP header field in data packet is 1, and terminal determines first TCP connection is in invalid state, and terminal obtains in the second TCP connection that the parameter of the position SYNC is in TCP header field in data packet 1, terminal determines that the second TCP connection is in effective status, and terminal obtains record the first TCP connection of result and is in invalid state, the Two TCP connections are in effective status;
Terminal saves newest uplink TCP acknowledgment packet in the second TCP connection;
Work as Radio Link Failure, after RAB is disconnected extremely, terminal search record as a result, determine there is currently the first TCP company It connects and in the second TCP connection, there is the second TCP connection to be in effective status;
There is the second TCP connection to be in effective status since terminal determines in record result, terminal determines that there are effective TCP Connection;
Terminal triggers RAB reconstruction process, requests resume data transmission;
After RAB is rebuild successfully, terminal retransmits the data packet that caches in the second TCP connection, and delete the first TCP connection and The data packet cached in first TCP connection;
Terminal profile upload control packet is surrounded by the permission of prioritised transmission compared to TCP data;
Terminal retransmits RAB three times and disconnects newest TCP acknowledgment packet in previously stored second TCP connection, so that transmitting terminal Start FRR mechanism immediately.
The terminal in the embodiment of the present invention is described below, referring to Fig. 4, one of terminal in the embodiment of the present invention Embodiment includes:
Linkage record module 401, for record there is currently each TCP connection;
Judgment module 402, for when RAB is disconnected, judge that the linkage record module 401 records it is described there is currently Each TCP connection in whether there is effective TCP connection;
Module 403 is rebuild, for when the judgment module 402 judgement is there are when effective TCP connection, triggering RAB to be rebuild Process.
In the embodiment of the present invention, linkage record module 401 record there is currently each TCP connection, when RAB disconnect after, sentence Disconnected module 402 judge there is currently each TCP connection in whether there is effective TCP connection, effective TCP connection if it exists, It then rebuilds module 403 and triggers RAB reconstruction process, in this way, effective TCP connection if it exists, terminal is not when RAB is disconnected extremely The reconstruction for needing to wait retransmission timer to trigger RAB again, but the reconstruction process of triggering RAB can be actively gone, it saves in this way RAB rebuilds the time for needing to wait under abnormality, accelerates the rate of RAB reconstruction, TCP data is transmitted out faster It goes, improves the Experience Degree of user.
In above example, judgment module 402 judge there is currently each TCP connection in the presence or absence of effective TCP connect It connects, in practical applications, judgment module 402 can judge whether the TCP connection has according to the mode field in TCP data packet Effect, after RAB is rebuild successfully, terminal can also to there is currently each TCP connection in effectively TCP connection and invalid TCP Connection is respectively processed, and the terminal in the embodiment of the present invention is specifically described below, referring to Fig. 5, the present invention is implemented Another embodiment of terminal includes: in example
Linkage record module 501, for record there is currently each TCP connection;
Judgment module 502, for when RAB disconnect when, judge linkage record module 501 record there is currently each TCP It whether there is effective TCP connection in connection;
Module 503 is rebuild, for determining to trigger RAB reconstruction process there are when effective TCP connection when judgment module 502;
In the present embodiment, the terminal further include:
Parsing module 504, for parse linkage record module 501 record there is currently each TCP connection on TCP data Mode field in packet;
Effective logging modle 505, the mode field for being parsed according to parsing module 504, determine there is currently it is each Whether TCP connection is in effective status, obtains record result;
Removing module 506, for deleting linkage record module 501 and recording after reconstruction module 503 rebuilds RAB successfully There is currently each TCP connection in invalid TCP connection;
It should be noted that removing module 506 can choose whether to need according to the actual situation, can also not have in terminal There is removing module 506, is not construed as limiting herein.
Retransmission module 507, for retransmitting and being cached in effective TCP connection after reconstruction module 503 rebuilds RAB successfully Data packet, which includes TCP data packet and IP data packet;
The judgment module 502 specifically includes:
State judging unit 5021, for when RAB is disconnected, searching the determining record of effective logging modle 505 as a result, sentencing It is disconnected there is currently each TCP connection in whether there is TCP connection to be in effective status;
Effective determination unit 5022, for determining that having TCP connection to be in record result has when state judging unit 5021 When effect state, determine that there are effective TCP connections;
Invalidation unit 5023, for determining do not have TCP connection to be in record result when state judging unit 5021 When effective status, other treatment processes are carried out.
In the embodiment of the present invention, parsing module 504 first parses the mode field of TCP data packet in TCP connection, effectively records Module 505 judges whether the TCP connection is in effective status according to the parameter in mode field, thus state judging unit 5021 and effective determination unit 5022 determine whether there is effective TCP connection, rebuilding after module 503 rebuilds RAB successfully, Retransmission module 507 can also retransmit the data packet cached in effective TCP connection, removing module 506 can delete there is currently Each TCP connection in the data packet that caches in invalid TCP connection and invalid TCP connection, on the one hand refined judgement in this way With the presence or absence of the process of effective TCP connection, so that, processing more accurate to the judgement with the presence or absence of effective TCP connection Speed is quicker, on the other hand, delete there is currently each TCP connection in invalid TCP connection and invalid TCP connection The data packet of caching can also save the money in terminal to avoid these invalid data are sent to the occupancy of existing transmission link The ability of other tasks of terminal processes is reinforced in source.
In above example, terminal can also save newest uplink TCP acknowledgment packet before RAB disconnection, disconnected in RAB After opening and being reconstructed into function, the TCP acknowledgment packet is retransmitted, the terminal in the embodiment of the present invention is described in detail below, is please referred to Fig. 6, another embodiment of terminal includes: in the embodiment of the present invention
Linkage record module 601, for record there is currently each TCP connection;
Judgment module 602, for when RAB disconnect when, judge linkage record module 601 record there is currently each TCP It whether there is effective TCP connection in connection;
Module 603 is rebuild, for determining to trigger RAB reconstruction process there are when effective TCP connection when judgment module 602;
The terminal further include:
Parsing module 604, for parse linkage record module 601 record there is currently each TCP connection on TCP data Mode field in packet;
Effective logging modle 605, the mode field for being parsed according to parsing module 604, determine there is currently it is each Whether TCP connection is in effective status, obtains record result;
Removing module 606, for deleting linkage record module 601 and recording after reconstruction module 603 rebuilds RAB successfully There is currently each TCP connection in invalid TCP connection;
It should be noted that removing module 606 can choose whether to need according to the actual situation, can also not have in terminal There is removing module 604, is not construed as limiting herein.
Retransmission module 607, for retransmitting and being cached in effective TCP connection after reconstruction module 603 rebuilds RAB successfully Data packet, which includes TCP data packet and IP data packet;
The judgment module 602 specifically includes:
State judging unit 6021, for when RAB is disconnected, searching the determining record of effective logging modle 605 as a result, sentencing It is disconnected there is currently each TCP connection in whether there is TCP connection to be in effective status;
Effective determination unit 6022, for determining that having TCP connection to be in record result has when state judging unit 6021 When effect state, determine that there are effective TCP connections;
Invalidation unit 6023, for determining do not have TCP connection to be in record result when state judging unit 5021 When effective status, other treatment processes are carried out;
In the present embodiment, the terminal further include:
Preserving module 608, for saving newest uplink TCP acknowledgment packet, which is connection note Record that module 601 records there is currently each TCP connection in newest uplink TCP acknowledgment packet in each effective TCP connection;
Module 609 is retransmitted, for it is true to retransmit the newest uplink TCP that preserving module 608 saves after RAB is rebuild successfully Recognize packet;
Authority setting module 610 compares the permission that TCP data is surrounded by prioritised transmission for setting uplink TCP control packet, should It include the uplink TCP acknowledgment packet in uplink TCP control packet.
It is understood that authority setting module 610 can choose whether to need according to the actual situation, it can also in the terminal With no authority setting module 608, it is not construed as limiting herein.
In the embodiment of the present invention, before RAB is disconnected, preserving module 608 saves newest uplink TCP acknowledgment packet, disconnected in RAB After opening and rebuilding, retransmitting module 609, to retransmit newest uplink TCP acknowledgment packet and transmitting terminal progress data synchronous, in this way can be with Guarantee the integrality that data are sent, and authority setting module 610 can set uplink TCP control packet and be surrounded by compared to TCP data The permission of prioritised transmission, such TCP acknowledgment packet can preferentially be sent to network, effectively will avoid network because without timely in this way The problem of receiving TCP acknowledgment packet and can not sending new TCP packet, more further, retransmitting module 609 can be by the TCP acknowledgment Three times, the transmitting terminal to trigger the TCP connection starts FRR mechanism to packet retransmission immediately, can more quickly restore in this way point The transmission of group data and data restore business.
Above-described embodiment in order to facilitate understanding, the below friendship with above-mentioned terminal each unit in a concrete application scene Mutual process is illustrated:
If there are TCP connections (referred to as the first TCP connection) and an instant chat that one browses webpage on present terminal The TCP connection (referred to as the second TCP connection) of tool;
Linkage record module 601 is by recording in first TCP connection and the second TCP connection in the packet header of TCP data packet Source port and destination port record first TCP connection and the second TCP connection;
Parsing module 604 parses the mode field in the first TCP connection and the second TCP connection in TCP data packet;
Effective logging modle 605 obtains in the first TCP connection that the parameter of the position FIN is 1 in TCP header field in data packet, Effective logging modle 605 determines that the first TCP connection is in invalid state, and effective logging modle 605 obtains number in the second TCP connection According to the parameter of the position SYNC is 1 in TCP header field in packet, terminal determines that the second TCP connection is in effective status, effectively record mould Block 605 obtains record the first TCP connection of result and is in invalid state, and the second TCP connection is in effective status;
Preserving module 608 saves newest uplink TCP acknowledgment packet in the second TCP connection;
Work as Radio Link Failure, after RAB is disconnected extremely, state judging unit 6021 searches record as a result, judging current In existing first TCP connection and the second TCP connection, there is the second TCP connection to be in effective status;
Judging to record in result due to state judging unit 6021 has the second TCP connection to be in effective status, effectively really Order member 6022 determines that there are effective TCP connections;
It rebuilds module 603 and triggers RAB reconstruction process, request resume data transmission;
After RAB is rebuild successfully, retransmission module 607 retransmits the data packet cached in the second TCP connection, removing module 606 Delete the data packet cached in the first TCP connection and the first TCP connection;
Authority setting module 610 sets the permission that upload control packet is surrounded by prioritised transmission compared to TCP data;
It retransmits module 609 and retransmits newest TCP acknowledgment packet in previously stored second TCP connection of RAB disconnection three times, so that Transmitting terminal starts FRR mechanism immediately.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (12)

1. a kind of Packet Service method for reconstructing characterized by comprising
Terminal record there is currently each transmission control protocol TCP connection;
When radio access bearer RAB is disconnected, terminal judgement it is described there is currently each TCP connection in the presence or absence of effective TCP connection;
Effective TCP connection if it exists, then the terminal triggers RAB reconstruction process.
2. the method according to claim 1, wherein the method also includes:
After RAB is rebuild successfully, described in the terminal deletion there is currently each TCP connection in invalid TCP connection and described The data packet cached in invalid TCP connection.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
After RAB is rebuild successfully, the terminal retransmits the data packet cached in the effective TCP connection, the data packet packet Include TCP data packet and IP data packet.
4. the method according to claim 1, wherein
The method also includes:
Terminal parsing it is described there is currently each TCP connection on mode field in TCP data packet;
The terminal according to the mode field, determine it is described there is currently each TCP connection whether be in effective status, obtain Record result;
Terminal judgement it is described there is currently each TCP connection in the presence or absence of effective TCP connection include:
The terminal search the record as a result, judgement it is described there is currently each TCP connection in whether there is TCP connection to be in have Effect state;
If there is TCP connection to be in effective status in the record result, the terminal determines that there are effective TCP connections.
5. method according to claim 1 to 4, which is characterized in that
It is described when radio access bearer RAB is disconnected, terminal judgement it is described there is currently each TCP connection in whether there is Before the step of effective TCP connection further include:
The terminal saves newest uplink TCP acknowledgment packet, the newest uplink TCP acknowledgment packet be it is described there is currently it is each Newest uplink TCP acknowledgment packet in each effective TCP connection in TCP connection;
The method also includes:
After RAB is rebuild successfully, the terminal retransmits the newest uplink TCP acknowledgment packet.
6. according to the method described in claim 5, it is characterized in that, the terminal retransmits the newest uplink TCP acknowledgment packet Before further include:
The terminal profile uplink TCP control packet is surrounded by the permission of prioritised transmission, the uplink TCP control packet compared to TCP data In include the uplink TCP acknowledgment packet.
7. a kind of terminal characterized by comprising
Linkage record module, for record there is currently each transmission control protocol TCP connection;
Judgment module, for when radio access bearer RAB is disconnected, judging described currently the depositing of the linkage record module record Each TCP connection in whether there is effective TCP connection;
Module is rebuild, for determining to trigger RAB reconstruction process there are when effective TCP connection when the judgment module.
8. terminal according to claim 7, which is characterized in that the terminal further include:
Removing module, for after the reconstruction module rebuilds RAB successfully, deleting the current of the linkage record module record Invalid TCP connection in existing each TCP connection.
9. terminal according to claim 8, which is characterized in that the terminal further include:
Retransmission module, for being cached in the re-transmission effective TCP connection after reconstruction module rebuilds RAB successfully Data packet, the data packet include TCP data packet and IP data packet.
10. terminal according to claim 7, which is characterized in that
The terminal further include:
Parsing module, for parse linkage record module record there is currently each TCP connection in TCP data packet Mode field;
Effective logging modle, the mode field for being parsed according to the parsing module, determine it is described there is currently each TCP Whether connection is in effective status, obtains record result;
The judgment module specifically includes:
State judging unit, for when radio access bearer RAB is disconnected, searching the record knot that effective logging modle determines Fruit, judgement it is described there is currently each TCP connection in whether there is TCP connection to be in effective status;
Effective determination unit, for when the state judging unit determine record result in there is TCP connection to be in effective status when, Determine that there are effective TCP connections.
11. terminal according to any one of claims 7 to 10, which is characterized in that the terminal further include:
Preserving module, for saving newest uplink TCP acknowledgment packet, the newest uplink TCP acknowledgment packet is connection note Record module record there is currently each TCP connection in newest uplink TCP acknowledgment packet in each effective TCP connection;
Module is retransmitted, the newest uplink TCP acknowledgment packet saved for after RAB is rebuild successfully, retransmitting the preserving module.
12. terminal according to claim 11, which is characterized in that the terminal further include:
Authority setting module compares the permission that TCP data is surrounded by prioritised transmission, the uplink for setting uplink TCP control packet It include the uplink TCP acknowledgment packet in TCP control packet.
CN201310738090.XA 2013-12-27 2013-12-27 A kind of Packet Service method for reconstructing and terminal Active CN104754760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310738090.XA CN104754760B (en) 2013-12-27 2013-12-27 A kind of Packet Service method for reconstructing and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310738090.XA CN104754760B (en) 2013-12-27 2013-12-27 A kind of Packet Service method for reconstructing and terminal

Publications (2)

Publication Number Publication Date
CN104754760A CN104754760A (en) 2015-07-01
CN104754760B true CN104754760B (en) 2019-05-14

Family

ID=53593690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310738090.XA Active CN104754760B (en) 2013-12-27 2013-12-27 A kind of Packet Service method for reconstructing and terminal

Country Status (1)

Country Link
CN (1) CN104754760B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206812A (en) * 2016-12-19 2018-06-26 展讯通信(上海)有限公司 The method, device and mobile terminal of fast quick-recovery transmission control protocol connection
CN111479293B (en) * 2020-04-16 2023-07-25 展讯通信(上海)有限公司 Data processing method and device
CN115086397A (en) * 2022-06-10 2022-09-20 中国银行股份有限公司 TCP connection management method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1408658A3 (en) * 2002-08-13 2009-07-29 Innovative Sonic Limited Handling of an unrecoverable error on a dedicated channel of a radio link
CN1499760A (en) * 2002-11-05 2004-05-26 ��������ͨ�ż����о����޹�˾ Method for supporting services in multimedia broadcast and multicast by carrying connection through signaling in Lu interface
CN100435596C (en) * 2005-09-02 2008-11-19 大唐移动通信设备有限公司 Method for rapid recovery of user's set communication
CN1968198A (en) * 2006-06-16 2007-05-23 华为技术有限公司 Wireless access loaded packet data service QoS management method.
CN101931898B (en) * 2009-06-26 2014-03-05 华为技术有限公司 Method, device and system for transmitting user plane data
CN102223658B (en) * 2010-04-19 2016-06-29 中兴通讯股份有限公司 A kind of method processing Radio Link Failure and via node

Also Published As

Publication number Publication date
CN104754760A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN106330414B (en) Message transmission method and device
CN107864228B (en) Connection establishment method and system in content distribution network
JP2006005878A (en) Control method for communication system, communication control apparatus, and program
CN106576108B (en) Communication method, equipment and system in communication system
CN103546258B (en) Method and device for data transmission
CN105743614B (en) The transmission method and device of data
WO2020119347A1 (en) Message transmission method, apparatus, device and medium
CN110460412A (en) Method and RDMA network interface card for data transmission
CN104754760B (en) A kind of Packet Service method for reconstructing and terminal
CN110506404A (en) A kind of data receiving state method for reporting and device
JP6034948B2 (en) Method and apparatus for content distribution in a wireless access network
CN108234087A (en) Data transmission method and transmitting terminal
CN108289007A (en) Data pack transmission method and device
KR20130065619A (en) Method of transporting data from sending node to destination node
CN104468509A (en) Method and system for transmitting mobile phone network game data and mobile phone user side
CN103475657B (en) The treating method and apparatus of anti-SYN extensive aggression
US9451524B2 (en) Wireless networking with flexibly-ordered relayers
EP3672189B1 (en) Data transmission method, device and system
CN106603480A (en) Streaming media file transmission method and device
CN110121193B (en) Interlayer data transmission method, device, medium and equipment
US11140594B2 (en) Methods and service nodes for transferring a service session for a wireless device
JP4506430B2 (en) Application monitor device
CN109688085B (en) Transmission control protocol proxy method, storage medium and server
CN111314447B (en) Proxy server and method for processing access request thereof
CN105791239A (en) TCP intermediary processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170303

Address after: 401336 Chongqing Nan'an District Tea Garden Road, No. 8, software Incubation Park, building 1

Applicant after: Keen (Chongqing) Microelectronics Technology Co., Ltd.

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Fort Park No. 1

Applicant before: Chongqing City Communication & Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant