CN104754760A - Packet service reconstruction method and terminal - Google Patents

Packet service reconstruction method and terminal Download PDF

Info

Publication number
CN104754760A
CN104754760A CN201310738090.XA CN201310738090A CN104754760A CN 104754760 A CN104754760 A CN 104754760A CN 201310738090 A CN201310738090 A CN 201310738090A CN 104754760 A CN104754760 A CN 104754760A
Authority
CN
China
Prior art keywords
tcp
terminal
rab
effective
connects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310738090.XA
Other languages
Chinese (zh)
Other versions
CN104754760B (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
Chongqing Cyit Communication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Cyit Communication Technologies Co Ltd filed Critical Chongqing Cyit Communication Technologies 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a packet service reconstruction method and a terminal, and aims to increase the speed of RAB (Radio Access Bearer) reconstruction. The method in the embodiment of the invention comprises the following steps that: the terminal records each currently-existing TCP (Transmission Control Protocol) connection; after RAB is disconnected, the terminal judges whether or not any effective TCP connection exists in each currently-existing TCP connection; and if the effective TCP connection exists, the terminal triggers an RAB reconstruction process. Therefore, the terminal can trigger the reconstruction of the RAB without waiting for a retransmission timer after the RAB is disconnected abnormally; the speed of RAB reconstruction is increased; and time needed by transmission restoration is shortened.

Description

A kind of Packet Service method for reconstructing and terminal
Technical field
The embodiment of the present invention relates to data communication field, particularly relates to a kind of Packet Service method for reconstructing and terminal.
Background technology
In LTE/UMTS/GPRS wireless communication system, terminal is after normal boot-strap, carrying can be activated by EPS bearing activation process or PDP bearing activation process, and obtain the necessary IP address of packet domain communication by this process, terminal is behind acquisition IP address, just can accessing group data network, carry out the Packet Service of being correlated with.After terminal obtains IP address, this IP address exists always and effectively, initiates load bearing deactivation flow process delete this carrying except nonterminal.In terminal baseband side, the transmission of Packet Service transmission data carries out on RAB (RAB, Radio Access Bearer), RAB does not exist always, when RAB is non-existent time, although terminal has effective IP address, cannot normal transmitting and receiving packet data.
When terminal is when needs send grouped data or network has data to need to send grouped data to terminal, can start RAB process of reconstruction, when RAB rebuilds successfully, data just can normally have sent.The Fast retransmission of TCP/IP and recovery policy (FRR, Fast Retransmit and Recovery) be a kind of congestion avoidance algorithm, it can soon quick-recovery lose packet: if delivery section receives three duplicate acknowledgments, it can suppose to confirm that the data segment that part is pointed out lost, and retransmits these data segments lost immediately.
Due to the particularity of wireless communication system, in some scenarios (such as wireless signal is poor causes Radio Link Failure, terminal or the interim exception of network etc.), RAB can be caused extremely to be discharged, cause the packet loss of grouped data.Under this scene, for transmission control protocol (TCP, Transmission ControlProtocol) transfer of data of type, after RAB disconnects, terminal cannot receive any data, any TCP acknowledgment bag can not be sent, so once after data-bag lost, the Fast retransmission in ICP/IP protocol and recovery policy cannot onsets, and RAB cannot rebuild in time, only the retransmission timer of reliable TCP triggers RAB reconstruction, affects the experience of user.
Summary of the invention
Embodiments provide a kind of Packet Service method for reconstructing and terminal, for accelerating the speed that RAB rebuilds under abnormality.
A kind of Packet Service method for reconstructing, comprising:
Each transmission control protocol TCP of the current existence of terminal record connects;
When RAB RAB disconnects, whether there is effective TCP in each TCP connection of current existence described in described terminal judges and connect;
If there is effective TCP to connect, then described terminal triggers RAB process of reconstruction.
A kind of terminal, comprising:
Linkage record module, connects for each transmission control protocol TCP recording current existence;
Judge module, for when RAB RAB disconnects, judges that whether there is effective TCP during each TCP of the described current existence of described linkage record module record connects connects;
Rebuild module, during for it is determined that the presence of effective TCP connection when described judge module, trigger RAB process of reconstruction.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: each TCP of the current existence of terminal record connects, after RAB disconnects, whether there is effective TCP in each TCP connection of the current existence of terminal judges to connect, if there is effective TCP to connect, then terminal triggers RAB process of reconstruction, like this, when RAB disconnects extremely, if there is effective TCP to connect, terminal no longer needs to wait for that retransmission timer is to trigger the reconstruction of RAB, but initiatively can go the process of reconstruction triggering RAB, under which saving abnormality, RAB rebuilds the time needing to wait for, accelerate the speed that RAB rebuilds, tcp data can be transferred out faster, improve the Experience Degree of user.
Accompanying drawing explanation
Fig. 1 is Packet Service method for reconstructing schematic flow sheet in the embodiment of the present invention;
Fig. 2 is another schematic flow sheet of Packet Service method for reconstructing in the embodiment of the present invention;
Fig. 3 is another schematic flow sheet of Packet Service method for reconstructing in the embodiment of the present invention;
Fig. 4 is terminal structural representation in the embodiment of the present invention;
Fig. 5 is another structural representation of terminal in the embodiment of the present invention;
Fig. 6 is another structural representation of terminal in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, Packet Service method for reconstructing embodiment comprises:
101, each TCP of the current existence of terminal record connects;
When terminal and network side need to carry out transfer of data, can set up TCP be connected with network side, in packet data transmission process, each TCP of the current existence of terminal record connects.
102, whether each TCP of the current existence of terminal judges exists effective TCP in connecting and connects;
When RAB disconnects, whether there is effective TCP in each TCP connection of this current existence of terminal judges and connect.
Connect if 103 exist effective TCP, then terminal triggers RAB process of reconstruction.
If there is effective TCP during each TCP that terminal judges goes out this current existence connects to connect, then terminal triggering RAB process of reconstruction.
In the embodiment of the present invention, each TCP of the current existence of terminal record connects, after RAB disconnects, whether there is effective TCP in each TCP connection of the current existence of terminal judges to connect, if there is effective TCP to connect, then terminal triggers RAB process of reconstruction, like this, when RAB disconnects extremely, if there is effective TCP to connect, terminal no longer needs to wait for that retransmission timer is to trigger the reconstruction of RAB, but initiatively can go the process of reconstruction triggering RAB, under which saving abnormality, RAB rebuilds the time needing to wait for, accelerate the speed that RAB rebuilds, tcp data can be transferred out faster, improve the Experience Degree of user.
Above in embodiment, whether there is effective TCP in each TCP connection of the current existence of terminal judges to connect, in actual applications, terminal can judge according to the mode field in tcp data bag whether this TCP connects effective, when RAB rebuilds successfully, during terminal can also connect each TCP of current existence, effective TCP connects to be connected with invalid TCP and processes respectively, below the Packet Service method for reconstructing in the embodiment of the present invention is specifically described, refer to Fig. 2, in the embodiment of the present invention, another embodiment of Packet Service method for reconstructing comprises:
201, each TCP of the current existence of terminal record connects;
When terminal and network side need to carry out transfer of data, can set up TCP be connected with network side, in packet data transmission process, each TCP of the current existence of terminal record connects.
The mode that each TCP of the current existence of terminal record connects has a variety of, the source port that terminal can connect by recording a TCP jointly records a TCP with destination interface and is connected, also can record a TCP by remaining mode to connect, be not construed as limiting herein.Terminal by the source port in the packet header of tcp data bag in analysis TCP connection and destination interface, can also judge whether the TCP connection belonging to this TCP is recorded.
It should be noted that, when each TCP of the current existence of terminal record connects, all TCP that can record current existence connect, and also can connect according to each TCP of certain current existence of ratio random selecting, be not construed as limiting herein.
Mode field in each TCP connection of 202, the current existence of terminal parses in tcp data bag;
After each TCP of the current existence of terminal record connects, the mode field in each TCP connection of resolving current existence in tcp data bag, obtains the parameter of mode field in tcp data bag in each TCP connection;
Terminal can to obtain in mode field the parameter of FIN position and the parameter of SYNC position in TCP head field, the parameter of this FIN position is for representing whether the TCP connection belonging to its place tcp data bag is disarmed state, and the parameter of this SYNC position is for representing whether the TCP connection belonging to its place tcp data bag is effective status.
203, terminal is according to mode field, determines each TCP of current existence connects whether be in effective status, obtains recording result;
After terminal parses goes out the mode field in each TCP connection in tcp data bag, according to this mode field, determine each TCP of current existence connects whether be in effective status, obtain recording result;
Terminal can to search in each mode field the parameter of FIN position and the parameter of SYNC position in TCP head field, if the parameter of FIN position is 1 in TCP head field, the TCP then recording this tcp data bag place belonging to TCP head field connects for disarmed state, if the parameter of SYNC position is 1 in TCP head field, then the TCP recording this tcp data bag place belonging to TCP head field connects for effective status.
It should be noted that, step 202 and step 203 can perform after RAB disconnects, and also can perform before RAB disconnects, be not construed as limiting herein.
204, terminal searches record result, judges that whether having TCP to connect during each TCP of current existence connects is in effective status;
After RAB disconnects, terminal searches record result, determines whether each TCP connection of current existence has TCP to connect and be in effective status.
In a practical situation, the reason that RAB disconnects can have a variety of, can be Radio Link Failure, also can be that this locality of terminal is abnormal, can also be network release RAB, be not construed as limiting herein.
If have TCP to connect in record result be in effective status, then perform step 205;
If do not have TCP to connect in record result be in effective status, then perform step 206.
205, terminal determines that there is effective TCP connects, and performs step 207;
If have TCP to connect in record result be in effective status, then terminal determines that there is effective TCP connects, and performs step 207.
206, other processing procedures are performed;
If do not have TCP to connect in record result be in effective status, then terminal performs other processing procedures.
Terminal can whether sense terminals have the data of buffer memory to need to send, if there are the data of buffer memory to need to send, then terminal can directly trigger RAB process of reconstruction, if do not have buffer memory to go out data to need to send, terminal can suspend process of reconstruction, terminal also can not carry out data cached detection, waits for that retransmission timer triggers RAB and rebuilds, is not construed as limiting herein.
207, terminal triggers RAB process of reconstruction;
When terminal determines that there is effective TCP connects, terminal triggers RAB process of reconstruction, request resume data transmission.
208, terminal retransmits the packet of buffer memory in effective TCP connection;
When RAB rebuilds successfully, terminal retransmits the packet of buffer memory in effective TCP connection, can ensure that up direction does not have data packet discarding, and this packet comprises tcp data bag and IP packet.
Be understandable that, if RAB rebuilds successfully, in each TCP connection of current existence, effective TCP connection does not have the packet of buffer memory, terminal also can not perform the step of the packet retransmitting buffer memory in effective TCP connection, is not construed as limiting herein.
209, the TCP that each TCP of the current existence of terminal deletion is invalid in connecting connects the packet being connected buffer memory with invalid TCP.
When RAB rebuilds successfully, in each TCP connection of the current existence of terminal deletion, invalid TCP connects the packet being connected buffer memory with invalid TCP.
It should be noted that, in actual applications, RAB rebuilds successfully, if the storage resources of terminal and process resource abundance, terminal also can not be deleted invalid TCP in each TCP connection of current existence and be connected the packet being connected buffer memory with invalid TCP, is not construed as limiting herein.
In the embodiment of the present invention, terminal first resolves the mode field of tcp data bag in TCP connection, judge this TCP connects whether be in effective status according to the parameter in mode field, thus determine whether there is effective TCP and connect, rebuild successfully at RAB, terminal can also retransmit the packet of buffer memory in effective TCP connection, also can delete invalid TCP in each TCP connection of current existence and connect the packet being connected buffer memory with invalid TCP, such one side refinement judges whether to exist the process that effective TCP connects, it is more accurate to make whether there is the judgement that effective TCP connects, processing speed is quicker, on the other hand, delete invalid TCP in each TCP connection of current existence and connect the packet being connected buffer memory with invalid TCP, also can avoid sending these invalid data taking existing transmission link, save the resource in terminal, strengthen the ability of other tasks of terminal processes.
In actual applications, terminal can also before RAB disconnects, preserve up-to-date up TCP acknowledgment bag, after RAB disconnects and is reconstructed into merit, retransmit this TCP acknowledgment bag, be described in detail to the Packet Service method for reconstructing in the embodiment of the present invention below, refer to Fig. 3, in the embodiment of the present invention, another embodiment of Packet Service method for reconstructing comprises:
301, each TCP of the current existence of terminal record connects;
When terminal and network side need to carry out transfer of data, can set up TCP be connected with network side, in packet data transmission process, each TCP of the current existence of terminal record connects.
The mode that each TCP of the current existence of terminal record connects has a variety of, the source port that terminal can connect by recording a TCP jointly records a TCP with destination interface and is connected, also can record a TCP by remaining mode to connect, be not construed as limiting herein.Terminal by the source port in the packet header of tcp data bag in analysis TCP connection and destination interface, can also judge whether the TCP connection belonging to this TCP is recorded.
It should be noted that, when each TCP of the current existence of terminal record connects, all TCP that can record current existence connect, and also can connect according to each TCP of certain current existence of ratio random selecting, be not construed as limiting herein.
Mode field in each TCP connection of 302, the current existence of terminal parses in tcp data bag;
After each TCP of the current existence of terminal record connects, the mode field in each TCP connection of resolving current existence in tcp data bag, obtains the parameter of mode field in tcp data bag in each TCP connection;
Terminal can to obtain in mode field the parameter of FIN position and the parameter of SYNC position in TCP head field, the parameter of this FIN position is for representing whether the TCP connection belonging to its place tcp data bag is disarmed state, and the parameter of this SYNC position is for representing whether the TCP connection belonging to its place tcp data bag is effective status.
303, terminal is according to mode field, determines each TCP of current existence connects whether be in effective status, obtains recording result;
After terminal parses goes out the mode field in each TCP connection in tcp data bag, according to this mode field, determine each TCP of current existence connects whether be in effective status, obtain recording result;
Terminal can to search in each mode field the parameter of FIN position and the parameter of SYNC position in TCP head field, if the parameter of FIN position is 1 in TCP head field, the TCP then recording this tcp data bag place belonging to TCP head field connects for disarmed state, if the parameter of SYNC position is 1 in TCP head field, then the TCP recording this tcp data bag place belonging to TCP head field connects for effective status.
It should be noted that, step 202 and step 203 can perform after RAB disconnects, and also can perform before RAB disconnects, be not construed as limiting herein.
304, terminal preserves up-to-date up TCP acknowledgment bag;
Terminal preserves up-to-date up TCP acknowledgment bag after obtaining representing whether each TCP connection of current existence is in the record result of effective status, and this TCP acknowledgment is up TCP acknowledgment bag up-to-date in each effective TCP connection during each TCP of current existence connects.
305, terminal searches record result, judges that whether having TCP to connect during each TCP of current existence connects is in effective status;
After RAB disconnects, terminal searches record result, determines whether each TCP connection of current existence has TCP to connect and be in effective status.
In a practical situation, the reason that RAB disconnects can have a variety of, can be Radio Link Failure, also can be that this locality of terminal is abnormal, can also be network release RAB, be not construed as limiting herein.
If have TCP to connect in record result be in effective status, then perform step 306;
If do not have TCP to connect in record result be in effective status, then perform step 307.
306, terminal determines that there is effective TCP connects, and performs step 308;
If have TCP to connect in record result be in effective status, then terminal determines that there is effective TCP connects, and performs step 308.
307, other processing procedures are performed;
If do not have TCP to connect in record result be in effective status, then terminal performs other processing procedures.
Terminal can whether sense terminals have the data of buffer memory to need to send, if there are the data of buffer memory to need to send, then terminal can directly trigger RAB process of reconstruction, if do not have buffer memory to go out data to need to send, terminal can suspend process of reconstruction, terminal also can not carry out data cached detection, waits for that retransmission timer triggers RAB and rebuilds, is not construed as limiting herein.
308, terminal triggers RAB process of reconstruction;
When terminal determines that there is effective TCP connects, terminal triggers RAB process of reconstruction, request resume data transmission.
309, terminal retransmits the packet of buffer memory in effective TCP connection;
When RAB rebuilds successfully, terminal retransmits the packet of buffer memory in effective TCP connection, and this packet comprises tcp data bag and IP packet.
Be understandable that, if RAB rebuilds successfully, in each TCP connection of current existence, effective TCP connection does not have the packet of buffer memory, terminal also can not perform the step of the packet retransmitting buffer memory in effective TCP connection, is not construed as limiting herein.
310, the TCP that each TCP of the current existence of terminal deletion is invalid in connecting connects the packet being connected buffer memory with invalid TCP.
When RAB rebuilds successfully, in each TCP connection of the current existence of terminal deletion, invalid TCP connects the packet being connected buffer memory with invalid TCP.
It should be noted that, in actual applications, RAB rebuilds successfully, if the storage resources of terminal and process resource abundance, terminal also can not be deleted invalid TCP in each TCP connection of current existence and be connected the packet being connected buffer memory with invalid TCP, is not construed as limiting herein.
311, the up TCP of terminal profile controls bag and compares the authority that tcp data is surrounded by prioritised transmission;
The up TCP of terminal profile controls bag and compares the authority that tcp data is surrounded by prioritised transmission, and this TCP controls to comprise up TCP acknowledgment bag.
It should be noted that, in actual applications, set up TCP and control bag and compare the authority that tcp data is surrounded by prioritised transmission and can carry out as required, also can not set, be not construed as limiting herein.
Be understandable that, set up TCP and control bag and compare and can arrange according to actual needs the opportunity that tcp data is surrounded by the authority of prioritised transmission, can carry out between any two steps, also pre-set, can be not construed as limiting herein.
312, the up TCP acknowledgment bag that terminal re-sends is up-to-date.
When RAB rebuilds successfully, terminal can retransmit TCP acknowledgment bag up-to-date in each effective TCP connection of preservation before RAB disconnects.
Further, this TCP acknowledgment bag can be retransmitted three times by terminal, and the transmitting terminal connected in order to trigger this TCP starts TCP Fast retransmission and recovery policy (FRR mechanism) immediately.
In the embodiment of the present invention, before RAB disconnects, terminal preserves up-to-date up TCP acknowledgment bag, after RAB disconnects and rebuilds, the up TCP acknowledgment bag that terminal re-sends is up-to-date and transmitting terminal carry out data syn-chronization, the integrality that data send can be ensured like this, and terminal can set up TCP control bag and compare the authority that tcp data is surrounded by prioritised transmission, such TCP acknowledgment bag preferentially can be sent to network, the problem will effectively avoiding network cannot to send new TCP bag because of not receiving TCP acknowledgment bag in time like this, a nearlyer step, this TCP acknowledgment bag can be retransmitted three times by terminal, the transmitting terminal connected in order to trigger this TCP starts FRR mechanism immediately, packet data transmission and date restoring business can be recovered more fast like this.
For ease of understanding, with an embody rule scene, Packet Service method for reconstructing in the embodiment of the present invention is specifically described below:
If TCP present terminal existing a browsing page connects, (being called that a TCP connects) is connected with the TCP of an instant messenger (being called that the 2nd TCP connects);
Terminal connects and to be connected source port in the packet header of tcp data bag and destination interface by recording a TCP with the 2nd TCP and to record a TCP and be connected and be connected with the 2nd TCP;
Terminal parses the one TCP connection is connected the mode field in tcp data bag with the 2nd TCP;
It is 1 that terminal to obtain in a TCP connection in packet the parameter of FIN position in TCP head field, terminal is determined that a TCP connects and is in disarmed state, it is 1 that terminal to obtain in the 2nd TCP connection in packet the parameter of SYNC position in TCP head field, terminal is determined that the 2nd TCP connects and is in effective status, terminal obtains record result the one TCP connection and is in disarmed state, and the 2nd TCP connection is in effective status;
Terminal preserves up TCP acknowledgment bag up-to-date in the 2nd TCP connection;
Work as Radio Link Failure, after the abnormal disconnection of RAB, terminal searches record result, in determining that a TCP connection of current existence is connected with the 2nd TCP, has the 2nd TCP to connect and is in effective status;
Because terminal determines that having the 2nd TCP to connect in record result is in effective status, terminal determines that there is effective TCP connects;
Terminal triggers RAB process of reconstruction, request resume data transmission;
When RAB rebuilds successfully, terminal retransmits the packet of buffer memory in the 2nd TCP connection, and deletes a TCP connection is connected buffer memory packet with a TCP;
The authority that tcp data is surrounded by prioritised transmission compared by terminal profile upload control bag;
TCP acknowledgment bag up-to-date in the 2nd TCP connection of preserving before terminal re-sends three RAB disconnect, makes transmitting terminal start FRR mechanism immediately.
Be described the terminal in the embodiment of the present invention below, refer to Fig. 4, in the embodiment of the present invention, an embodiment of terminal comprises:
Linkage record module 401, connects for each TCP recording current existence;
Judge module 402, for when RAB disconnects, judges that whether there is effective TCP during each TCP of the described current existence that described linkage record module 401 records connects connects;
Rebuild module 403, during for it is determined that the presence of effective TCP connection when described judge module 402, trigger RAB process of reconstruction.
In the embodiment of the present invention, each TCP that linkage record module 401 records current existence connects, after RAB disconnects, judge module 402 judges that whether there is effective TCP during each TCP of current existence connects connects, if there is effective TCP to connect, then rebuild module 403 and trigger RAB process of reconstruction, like this, when RAB disconnects extremely, if there is effective TCP to connect, terminal no longer needs to wait for that retransmission timer is to trigger the reconstruction of RAB, but initiatively can go the process of reconstruction triggering RAB, under which saving abnormality, RAB rebuilds the time needing to wait for, accelerate the speed that RAB rebuilds, tcp data can be transferred out faster, improve the Experience Degree of user.
Above in embodiment, judge module 402 judges that whether there is effective TCP during each TCP of current existence connects connects, in actual applications, judge module 402 can judge according to the mode field in tcp data bag whether this TCP connects effective, when RAB rebuilds successfully, during terminal can also connect each TCP of current existence, effective TCP connects to be connected with invalid TCP and processes respectively, below the terminal in the embodiment of the present invention is specifically described, refer to Fig. 5, in the embodiment of the present invention, another embodiment of terminal comprises:
Linkage record module 501, connects for each TCP recording current existence;
Judge module 502, for when RAB disconnects, judges that whether there is effective TCP during each TCP of the current existence that linkage record module 501 records connects connects;
Rebuild module 503, during for it is determined that the presence of effective TCP connection when judge module 502, trigger RAB process of reconstruction;
In the present embodiment, this terminal also comprises:
Parsing module 504, for resolve the current existence that linkage record module 501 records each TCP connection on mode field in tcp data bag;
Effective logging modle 505, for the mode field parsed according to parsing module 504, determines each TCP of current existence connects whether be in effective status, obtains recording result;
Removing module 506, for being rebuild successfully by RAB when reconstruction module 503, deleting invalid TCP in each TCP connection of the current existence that linkage record module 501 records and connecting;
It should be noted that, removing module 506 can according to actual conditions select the need of, can there is no removing module 506 in terminal yet, be not construed as limiting herein.
Retransmission module 507, for being rebuild successfully by RAB when reconstruction module 503, retransmit the packet of buffer memory in effective TCP connection, this packet comprises tcp data bag and IP packet;
This judge module 502 specifically comprises:
Condition adjudgement unit 5021, for when RAB disconnects, searches the record result that effective logging modle 505 is determined, judges that whether having TCP to connect during each TCP of current existence connects is in effective status;
Effective determining unit 5022, during for judging that when condition adjudgement unit 5021 having TCP to connect in record result is in effective status, determines that there is effective TCP connects;
Invalidation unit 5023, during for judging that when condition adjudgement unit 5021 not having TCP to connect in record result is in effective status, carries out other processing procedures.
In the embodiment of the present invention, parsing module 504 first resolves the mode field of tcp data bag in TCP connection, according to the parameter in mode field, effective logging modle 505 judges this TCP connects whether be in effective status, thus condition adjudgement unit 5021 determines whether there is effective TCP with effective determining unit 5022 is connected, in reconstruction module 503, RAB is rebuild successfully, retransmission module 507 can also retransmit the packet of buffer memory in effective TCP connection, removing module 506 can be deleted invalid TCP in each TCP connection of current existence and connect the packet being connected buffer memory with invalid TCP, such one side refinement judges whether to exist the process that effective TCP connects, it is more accurate to make whether there is the judgement that effective TCP connects, processing speed is quicker, on the other hand, delete invalid TCP in each TCP connection of current existence and connect the packet being connected buffer memory with invalid TCP, also can avoid sending these invalid data taking existing transmission link, save the resource in terminal, strengthen the ability of other tasks of terminal processes.
Above in embodiment, terminal can also before RAB disconnects, preserve up-to-date up TCP acknowledgment bag, after RAB disconnects and is reconstructed into merit, retransmit this TCP acknowledgment bag, be described in detail to the terminal in the embodiment of the present invention below, refer to Fig. 6, in the embodiment of the present invention, another embodiment of terminal comprises:
Linkage record module 601, connects for each TCP recording current existence;
Judge module 602, for when RAB disconnects, judges that whether there is effective TCP during each TCP of the current existence that linkage record module 601 records connects connects;
Rebuild module 603, during for it is determined that the presence of effective TCP connection when judge module 602, trigger RAB process of reconstruction;
This terminal also comprises:
Parsing module 604, for resolve the current existence that linkage record module 601 records each TCP connection on mode field in tcp data bag;
Effective logging modle 605, for the mode field parsed according to parsing module 604, determines each TCP of current existence connects whether be in effective status, obtains recording result;
Removing module 606, for being rebuild successfully by RAB when reconstruction module 603, deleting invalid TCP in each TCP connection of the current existence that linkage record module 601 records and connecting;
It should be noted that, removing module 606 can according to actual conditions select the need of, can there is no removing module 604 in terminal yet, be not construed as limiting herein.
Retransmission module 607, for being rebuild successfully by RAB when reconstruction module 603, retransmit the packet of buffer memory in effective TCP connection, this packet comprises tcp data bag and IP packet;
This judge module 602 specifically comprises:
Condition adjudgement unit 6021, for when RAB disconnects, searches the record result that effective logging modle 605 is determined, judges that whether having TCP to connect during each TCP of current existence connects is in effective status;
Effective determining unit 6022, during for judging that when condition adjudgement unit 6021 having TCP to connect in record result is in effective status, determines that there is effective TCP connects;
Invalidation unit 6023, during for judging that when condition adjudgement unit 5021 not having TCP to connect in record result is in effective status, carries out other processing procedures;
In the present embodiment, this terminal also comprises:
Preserve module 608, for preserving up-to-date up TCP acknowledgment bag, this up-to-date up TCP acknowledgment bag is up TCP acknowledgment bag up-to-date in each effective TCP connection during each TCP of the current existence that linkage record module 601 records connects;
Retransmit module 609, for rebuilding successfully as RAB, retransmits the up-to-date up TCP acknowledgment bag preserved module 608 and preserve;
Authority setting module 610, compare for setting up TCP control bag the authority that tcp data is surrounded by prioritised transmission, this up TCP controls to comprise described up TCP acknowledgment bag.
Be understandable that, authority setting module 610 can according to actual conditions select the need of, can there is no authority setting module 608 in this terminal yet, be not construed as limiting herein.
In the embodiment of the present invention, before RAB disconnects, preserve module 608 and preserve up-to-date up TCP acknowledgment bag, after RAB disconnects and rebuilds, retransmit module 609 retransmits up-to-date up TCP acknowledgment bag and transmitting terminal carries out data syn-chronization, the integrality that data send can be ensured like this, and authority setting module 610 can set up TCP control bag and compare the authority that tcp data is surrounded by prioritised transmission, such TCP acknowledgment bag preferentially can be sent to network, the problem will effectively avoiding network cannot to send new TCP bag because of not receiving TCP acknowledgment bag in time like this, a nearlyer step, this TCP acknowledgment bag can be retransmitted three times by retransmit module 609, the transmitting terminal connected in order to trigger this TCP starts FRR mechanism immediately, packet data transmission and date restoring business can be recovered more fast like this.
For the ease of understanding above-described embodiment, be described with the reciprocal process of above-mentioned terminal unit in an embody rule scene below:
If TCP present terminal existing a browsing page connects, (being called that a TCP connects) is connected with the TCP of an instant messenger (being called that the 2nd TCP connects);
Linkage record module 601 connects and to be connected source port in the packet header of tcp data bag and destination interface by recording a TCP with the 2nd TCP and to record a TCP and be connected and be connected with the 2nd TCP;
Parsing module 604 is resolved a TCP and is connected the mode field be connected with the 2nd TCP in tcp data bag;
It is 1 that effective logging modle 605 to obtain in a TCP connection in packet the parameter of FIN position in TCP head field, effective logging modle 605 is determined that a TCP connects and is in disarmed state, it is 1 that effective logging modle 605 to obtain in the 2nd TCP connection in packet the parameter of SYNC position in TCP head field, terminal is determined that the 2nd TCP connects and is in effective status, effective logging modle 605 obtains record result the one TCP connection and is in disarmed state, and the 2nd TCP connection is in effective status;
Preserve module 608 and preserve up TCP acknowledgment bag up-to-date in the 2nd TCP connection;
Work as Radio Link Failure, after the abnormal disconnection of RAB, condition adjudgement unit 6021 searches record result, in judging that a TCP connection of current existence is connected with the 2nd TCP, has the 2nd TCP to connect and is in effective status;
Because condition adjudgement unit 6021 judges that having the 2nd TCP to connect in record result is in effective status, effective determining unit 6022 determines that there is effective TCP connects;
Rebuild module 603 and trigger RAB process of reconstruction, request resume data transmission;
When RAB rebuilds successfully, retransmission module 607 retransmits the packet of buffer memory in the 2nd TCP connection, and removing module 606 is deleted a TCP and connected the packet being connected buffer memory with a TCP;
Authority setting module 610 sets upload control bag and compares the authority that tcp data is surrounded by prioritised transmission;
Retransmit module 609 retransmits TCP acknowledgment bag up-to-date in the 2nd TCP connection of preservation before three RAB disconnect, and makes transmitting terminal start FRR mechanism immediately.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a Packet Service method for reconstructing, is characterized in that, comprising:
Each transmission control protocol TCP of the current existence of terminal record connects;
When RAB RAB disconnects, whether there is effective TCP in each TCP connection of current existence described in described terminal judges and connect;
If there is effective TCP to connect, then described terminal triggers RAB process of reconstruction.
2. method according to claim 1, is characterized in that, described method also comprises:
When RAB rebuilds successfully, in each TCP connection of current existence described in described terminal deletion, invalid TCP connects the packet being connected buffer memory with described invalid TCP.
3. method according to claim 2, is characterized in that, described method also comprises:
When RAB rebuilds successfully, described terminal retransmits the packet of buffer memory in described effective TCP connection, and described packet comprises tcp data bag and IP packet.
4. method according to claim 1, is characterized in that,
Described method also comprises:
Mode field in each TCP connection of current existence described in described terminal parses in tcp data bag;
Described terminal, according to described mode field, is determined each TCP of described current existence connects whether be in effective status, is obtained recording result;
Whether there is effective TCP connection in each TCP connection of current existence described in described terminal judges to comprise:
Described terminal searches described record result, judges that whether having TCP to connect during each TCP of described current existence connects is in effective status;
If have TCP to connect in described record result be in effective status, then described terminal determines that there is effective TCP connects.
5. method according to any one of claim 1 to 4, is characterized in that,
Described when RAB RAB disconnects, also comprise before whether there is the step of effective TCP connection in each TCP connection of current existence described in described terminal judges:
Described terminal preserves up-to-date up TCP acknowledgment bag, and described up-to-date up TCP acknowledgment bag is up TCP acknowledgment bag up-to-date in each effective TCP connection during each TCP of described current existence connects;
Described method also comprises:
When RAB rebuilds successfully, up TCP acknowledgment bag up-to-date described in described terminal re-sends.
6. method according to claim 5, is characterized in that, also comprises before up TCP acknowledgment bag up-to-date described in described terminal re-sends:
The up TCP of described terminal profile controls bag and compares the authority that tcp data is surrounded by prioritised transmission, and described up TCP controls to comprise described up TCP acknowledgment bag.
7. a terminal, is characterized in that, comprising:
Linkage record module, connects for each transmission control protocol TCP recording current existence;
Judge module, for when RAB RAB disconnects, judges that whether there is effective TCP during each TCP of the described current existence of described linkage record module record connects connects;
Rebuild module, during for it is determined that the presence of effective TCP connection when described judge module, trigger RAB process of reconstruction.
8. terminal according to claim 7, is characterized in that, described terminal also comprises:
Removing module, for being rebuild successfully by RAB when described reconstruction module, deleting invalid TCP in each TCP connection of the current existence of described linkage record module record and connecting.
9. terminal according to claim 8, is characterized in that, described terminal also comprises:
Retransmission module, for being rebuild successfully by RAB when described reconstruction module, retransmit the packet of buffer memory in described effective TCP connection, described packet comprises tcp data bag and IP packet.
10. terminal according to claim 7, is characterized in that,
Described terminal also comprises:
Parsing module, for resolve the current existence of described linkage record module record each TCP connection on mode field in tcp data bag;
Effective logging modle, for the mode field parsed according to described parsing module, determines each TCP of described current existence connects whether be in effective status, obtains recording result;
Described judge module specifically comprises:
Condition adjudgement unit, for when RAB RAB disconnects, searches the record result that described effective logging modle is determined, judges that whether having TCP to connect during each TCP of described current existence connects is in effective status;
Effective determining unit, during for judging that when described condition adjudgement unit having TCP to connect in record result is in effective status, determines that there is effective TCP connects.
11. terminals according to any one of claim 7 to 10, it is characterized in that, described terminal also comprises:
Preserve module, for preserving up-to-date up TCP acknowledgment bag, described up-to-date up TCP acknowledgment bag is up TCP acknowledgment bag up-to-date in each effective TCP connection during each TCP of the current existence of described linkage record module record connects;
Retransmit module, for rebuilding successfully as RAB, retransmits the up-to-date up TCP acknowledgment bag that described preservation module is preserved.
12. terminals according to claim 11, is characterized in that, described terminal also comprises:
Authority setting module, compare for setting up TCP control bag the authority that tcp data is surrounded by prioritised transmission, described up TCP controls to comprise described up TCP acknowledgment bag.
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 true CN104754760A (en) 2015-07-01
CN104754760B 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)

Cited By (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
CN111479293A (en) * 2020-04-16 2020-07-31 展讯通信(上海)有限公司 Data processing method and device
CN115086397A (en) * 2022-06-10 2022-09-20 中国银行股份有限公司 TCP connection management method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1408658A2 (en) * 2002-08-13 2004-04-14 ASUSTeK Computer Inc. Handling of an unrecoverable error on a dedicated channel of a radio link
WO2004043021A1 (en) * 2002-11-05 2004-05-21 Samsung Electronics Co., Ltd. Method for multimedia broadcast/multicast service signaling bearer connection on iu interface
CN1925674A (en) * 2005-09-02 2007-03-07 大唐移动通信设备有限公司 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.
CN101931898A (en) * 2009-06-26 2010-12-29 华为技术有限公司 Method, device and system for transmitting user plane data
CN102223658A (en) * 2010-04-19 2011-10-19 中兴通讯股份有限公司 Method and relay node for handling radio link failure

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1408658A2 (en) * 2002-08-13 2004-04-14 ASUSTeK Computer Inc. Handling of an unrecoverable error on a dedicated channel of a radio link
WO2004043021A1 (en) * 2002-11-05 2004-05-21 Samsung Electronics Co., Ltd. Method for multimedia broadcast/multicast service signaling bearer connection on iu interface
CN1925674A (en) * 2005-09-02 2007-03-07 大唐移动通信设备有限公司 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.
CN101931898A (en) * 2009-06-26 2010-12-29 华为技术有限公司 Method, device and system for transmitting user plane data
CN102223658A (en) * 2010-04-19 2011-10-19 中兴通讯股份有限公司 Method and relay node for handling radio link failure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周中立等: "TD-SCDMA系统终端中RAB重建过程的实现", 《重庆邮电学院学报(自然科学版)》 *

Cited By (4)

* 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
CN111479293A (en) * 2020-04-16 2020-07-31 展讯通信(上海)有限公司 Data processing method and device
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

Also Published As

Publication number Publication date
CN104754760B (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN102684827B (en) Data processing method and data processing equipment
CN102891883B (en) Wireless transmission control protocol processing method and equipment
CN104852867A (en) Data packet forwarding method, device and system
CN106576108B (en) Communication method, equipment and system in communication system
CN111385268B (en) Data packet header compression confirmation method and communication equipment
CN111371631B (en) Heartbeat mechanism detection method, terminal device and storage medium
WO2018130059A1 (en) Data packet transmission method and device
CN110708397B (en) Apparatus and method for data delivery in Delay Tolerant Networks (DTNs)
CN105338090A (en) WebSocket-based breakpoint continuous transmission method and device
CN104618961A (en) Single-channel TCP/ IP header compression method and system for intelligent power grid
CN107528747B (en) Method and device for diagnosing communication state of master station and slave station and computer readable storage medium
JP3620010B2 (en) Apparatus and program recording medium used in wireless communication system
CN104579746A (en) Method and device for controlling dual-link transmission
WO2018171369A1 (en) Method and device for transmitting data using protocol data unit
US20140337680A1 (en) Can communication apparatus and method thereof
CN110913026A (en) Message transmission method, device, electronic equipment and medium
CN104754760A (en) Packet service reconstruction method and terminal
CN111769915A (en) Data transmission method and related equipment
CN104780065A (en) Hot spare method and system for TCP (transmission control protocol)
US20180220337A1 (en) Controlling tcp data transmission
CN112969244B (en) Session recovery method and device
CN113949658B (en) Table entry processing method, system, device, electronic equipment and storage medium
CN111143899A (en) Method and device for storing data, storage medium and electronic device
CN101076012B (en) Date telecommunication system and method and interface controller of Internet microcomputer system
CN114401260B (en) Micro-service cluster file fragment uploading method, system, equipment and storage medium

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