WO2016095198A1 - 一种防止tcp连接中断的装置、系统及方法 - Google Patents

一种防止tcp连接中断的装置、系统及方法 Download PDF

Info

Publication number
WO2016095198A1
WO2016095198A1 PCT/CN2014/094340 CN2014094340W WO2016095198A1 WO 2016095198 A1 WO2016095198 A1 WO 2016095198A1 CN 2014094340 W CN2014094340 W CN 2014094340W WO 2016095198 A1 WO2016095198 A1 WO 2016095198A1
Authority
WO
WIPO (PCT)
Prior art keywords
proxy device
server
uplink data
buffered
source cell
Prior art date
Application number
PCT/CN2014/094340
Other languages
English (en)
French (fr)
Inventor
熊春山
韦安妮
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480032409.XA priority Critical patent/CN105934922B/zh
Priority to EP14908233.1A priority patent/EP3197120A4/en
Priority to PCT/CN2014/094340 priority patent/WO2016095198A1/zh
Publication of WO2016095198A1 publication Critical patent/WO2016095198A1/zh
Priority to US15/625,404 priority patent/US10425868B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off
    • H04W36/023Buffering or recovering information during reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off
    • H04W36/023Buffering or recovering information during reselection
    • H04W36/0235Buffering or recovering information during reselection by transmitting sequence numbers, e.g. SN status transfer
    • 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

Definitions

  • the present invention relates to the field of communications, and in particular, to an apparatus, system, and method for preventing interruption of a TCP connection.
  • Transmission Control Protocol/Internet Protocol is the foundation of the contemporary Internet and has been widely used.
  • IP technology users have adopted Long Term Evolution (referred to as Long Term Evolution).
  • IP-based mobile communication networks such as LTE) or Universal Mobile Telecommunications System (UMTS) and Worldwide Interoperability for Microwave Access (WiMax) are becoming more and more popular.
  • LTE Long Term Evolution
  • UMTS Universal Mobile Telecommunications System
  • WiMax Worldwide Interoperability for Microwave Access
  • 3GPP 3rd Generation Partnership Project
  • the client and the mobile communication network are connected by a wireless link, and the mobile communication network and the Internet server are generally connected through a wired network.
  • the network status of wireless communication fluctuates with time.
  • the data transmission rate and packet loss rate between the client and the mobile communication network change drastically with time.
  • the TCP/IP protocol itself provides a certain congestion control mechanism.
  • TCP/IP automatically adopts the corresponding congestion control scheme to adjust the transmission strategy.
  • the wireless network status changes more severely, and the transmission adjustment strategies such as the congestion control strategy adopted should be different in order to improve the transmission performance of the wireless interface and improve the network throughput.
  • the transmission rate of the TCP connection is largely determined by the speed at which the server receives the Acknowledge (ACK: ACK) packet.
  • the delay between the client and the server not only affects the transmission rate of the normal data packet, but also greatly affects the transmission rate of the acknowledgement packet. Therefore, it is necessary to introduce a network proxy technology to divide the TCP/IP connection between the client and the Internet server into two parts, and the network proxy device establishes a connection with the TCP of the client and the Internet server respectively to implement TCP between the client and the Internet server. connection.
  • the existing network proxy technology when the data transmission speed between the Internet server and the network proxy device is faster than the data transmission speed between the network proxy device and the client, or the network proxy setting The data transmission speed between the standby and the client is faster than the data transmission speed between the Internet server and the network proxy device, and some data is cached in the network proxy device within a certain period of time.
  • the client has mobility. When the client moves from the source cell to the target cell, it is too late to switch for some reason, which leads to reconnection through the target cell. After the disconnected network of the source cell and the target cell are reconnected on the client.
  • the data cached in the network proxy device enabled by the source cell is not sent to the client or the Internet server in time.
  • the client repeatedly requests to retransmit the data, and the server considers that the client has received the data and does not retransmit; or the server repeatedly requests retransmission of data, and the client considers the server This part of the data has been received, resulting in a broken TCP/IP connection between the client and the server, and the service is terminated. Thereby reducing the stability of the TCP connection.
  • the present invention provides an apparatus, system, and method for preventing interruption of a TCP connection for avoiding service interruption caused by user equipment handover.
  • a first aspect of the present invention provides an apparatus for preventing interruption of a TCP connection, comprising:
  • a processing module configured to determine that the user equipment UE needs a cell handover
  • the transceiver module is configured to send a first indication message to the server, where the first indication message is used to instruct the server to stop sending downlink data to the proxy device, and send the buffered downlink data to the UE.
  • the transceiver module is further configured to: when it is confirmed that the buffered downlink data is sent, instruct the server to continue to send the downlink data.
  • the transceiver module is specifically configured to:
  • the transceiver module is further configured to:
  • the cached uplink data is sent to the server.
  • the transceiver module is further configured to: when it is confirmed that the buffered uplink data is sent, instructing the UE to continue to send the The upstream data is described.
  • the transceiver module is further configured to:
  • the processing module is specifically configured to:
  • the processing module is further configured to:
  • the transceiver module After the transceiver module sends the buffered downlink data to the UE, or after the transceiver module sends the buffered uplink data to the server, if the UE and the source cell's wireless access device If the channel degradation between them is still within the threshold range, then the proxy service for the UE is stopped.
  • a second aspect of the present invention provides an apparatus for preventing interruption of a TCP connection, comprising:
  • a processing module configured to determine that the user equipment UE needs a cell handover
  • the transceiver module is configured to send a second indication message to the UE, where the second indication message is used to indicate that the UE stops sending uplink data to the proxy device, and sends the buffered uplink data to the server.
  • the transceiver module is specifically configured to: when it is confirmed that the buffered uplink data is sent, instruct the UE to continue to send the uplink data.
  • the transceiver module is specifically configured to:
  • the processing module is specifically configured to detect the wireless access device of the UE and the source cell.
  • the inter-channel degradation reaches a threshold range, and it is determined that the UE needs cell handover.
  • the processing module is further configured to:
  • the proxy device stops detecting Proxy service for the UE.
  • a third aspect of the present invention provides an apparatus for preventing interruption of a TCP connection, comprising:
  • a processing module configured to determine that the user equipment UE needs a cell handover
  • a transceiver module configured to: send the buffered downlink data to the UE; receive a first acknowledgement message sent by the UE, where the first acknowledgement message is used to indicate that the last data packet in the cached downlink data is The UE successfully receives the second acknowledgement message, and the second acknowledgement message is used to instruct the server to continue to send the downlink data to the proxy device.
  • the transceiver module is further configured to:
  • the processing module is specifically configured to detect the wireless access device of the UE and the source cell. If the channel fading reaches a threshold range, it is determined that the UE is about to perform cell cut change.
  • the processing module is further configured to:
  • the transceiver module After the transceiver module sends the buffered downlink data to the UE, or after the transceiver module sends the buffered uplink data to the server, if the UE and the source cell's wireless access device The channel degradation between the two is still within the threshold range, and the proxy device stops proxying the UE.
  • a fourth aspect of the present invention provides an apparatus for preventing interruption of a TCP connection, comprising:
  • a processing module configured to determine that the user equipment UE needs a cell handover
  • a transceiver module configured to: send the buffered uplink data to the server; receive a third acknowledgement message sent by the server, where the third acknowledgement message is used to indicate that the last data packet in the cached uplink data is The server successfully receives the fourth acknowledgment message, and the fourth acknowledgment message is used to indicate that the UE continues to send the uplink data to the transceiver module.
  • the processing module is specifically configured to detect a channel fading threshold range between the UE and a radio access device of a source cell, and determine the UE. The cell handover is about to take place.
  • the processing module is further configured to:
  • the transceiver module After the transceiver module sends the buffered uplink data to the server, if the channel degradation between the UE and the wireless access device of the source cell is still in the threshold range, stop performing for the UE. Agency service.
  • a fifth aspect of the present invention provides an apparatus for preventing interruption of a TCP connection, comprising:
  • a processing module configured to: after the user equipment UE reconnects with the target cell, acquire downlink data buffered by the proxy device of the source cell, where the receiver of the buffered downlink data is the UE;
  • a transceiver module configured to send the buffered downlink data to the UE.
  • the transceiver module is further configured to receive the buffered downlink data and the identifier of the UE that are sent by the proxy device of the source cell; or
  • the processing module is specifically configured to indicate that the transceiver module sends a proxy device to the source cell Sending a request message, where the request message includes an identifier of the UE;
  • the transceiver module is further configured to receive the cached downlink data sent by the proxy device of the source cell.
  • the transceiver module is configured to send the request to a proxy device of the source cell according to an identifier of a source cell. Message.
  • the transceiver module is configured to receive, according to an identifier of a source cell, the proxy device that is sent by the source cell The buffered downlink data and the identity of the UE.
  • the transceiver module is further configured to:
  • the UE After the UE is reconnected with the target cell, acquiring uplink data buffered by the proxy device of the source cell, where the receiver of the buffered uplink data is a server;
  • the transceiver module is further configured to acquire uplink data cached by a proxy device of the source cell, where the cache is uplinked.
  • the recipient of the data is the server.
  • the transceiver module is specifically configured to:
  • a sixth aspect of the present invention provides an apparatus for preventing interruption of a TCP connection, comprising:
  • a processing module configured to: after the user equipment UE is reconnected with the target cell, acquire uplink data buffered by the proxy device of the source cell, where the receiver of the buffered uplink data is a server;
  • transceiver module configured to send the cached uplink data to the server.
  • the transceiver module is further configured to receive the cached uplink data sent by the proxy device of the source cell and the target of the UE Knowledge; or,
  • the processing module is specifically configured to instruct the transceiver module to send a request message to a proxy device of the source cell, where the request message includes an identifier of the UE;
  • the transceiver module is further configured to receive the cached uplink data sent by the proxy device of the source cell.
  • the transceiver module is configured to send the request to a proxy device of the source cell according to an identifier of a source cell. Message.
  • the transceiver module is configured to receive, according to an identifier of a source cell, the proxy device that is sent by the source cell The cached uplink data and the identity of the UE.
  • a seventh aspect of the present invention provides a system for preventing interruption of a TCP connection, comprising: at least one of the first aspect of the present invention or any one of the possible implementations of the first aspect, preventing a TCP connection from being interrupted And at least one user equipment UE and at least one server.
  • An eighth aspect of the present invention provides a system for preventing interruption of a TCP connection, comprising: at least one of the second aspect of the present invention or any feasible implementation of the second aspect, preventing a TCP connection from being interrupted And at least one user equipment UE and at least one server.
  • a ninth aspect of the present invention provides a system for preventing interruption of a TCP connection, comprising: at least one of the third aspect of the present invention or any one of the possible implementations of the third aspect, preventing a TCP connection from being interrupted And at least one user equipment UE and at least one server.
  • a tenth aspect of the present invention provides a system for preventing interruption of a TCP connection, comprising: at least one of the fourth aspect of the present invention or any one of the possible implementations of the fourth aspect, preventing a TCP connection from being interrupted And at least one user equipment UE and at least one server.
  • An eleventh aspect of the present invention provides a system for preventing interruption of a TCP connection, comprising: at least one of the fifth aspect of the present invention or any one of the possible implementations of the fifth aspect, preventing the TCP connection Interrupted device and at least one user equipment UE and at least one service Device.
  • a twelfth aspect of the present invention provides a system for preventing interruption of a TCP connection, comprising: at least one of the sixth aspect of the present invention or any feasible implementation of the sixth aspect, preventing a TCP connection
  • a thirteenth aspect of the present invention provides a method for preventing interruption of a TCP connection, comprising:
  • the proxy device determines that the user equipment UE needs cell handover
  • the proxy device sends a first indication message to the server, where the first indication message is used to instruct the server to stop sending downlink data to the proxy device;
  • the proxy device sends the buffered downlink data to the UE.
  • the method further includes:
  • the proxy device instructs the server to continue to send the downlink data.
  • the proxy device instructs the server to continue to send the downlink data, including:
  • the proxy device Receiving, by the proxy device, the first acknowledgement message sent by the UE, where the first acknowledgement message is used to indicate that the last data packet in the buffered downlink data is successfully received by the UE;
  • the proxy device sends a second acknowledgement message to the server, where the second acknowledgement message is used to indicate that the server continues to send the downlink data to the proxy device.
  • the method further includes: the proxy device sending a second indication message to the UE, where the second indication message is used to indicate that the UE stops to the The proxy device sends uplink data;
  • the proxy device sends the buffered uplink data to the server.
  • the method further includes:
  • the proxy device instructs the UE to continue to send the uplink data.
  • the proxy device instructing the UE to continue to send the uplink data includes:
  • the proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement message is used to indicate that the UE continues to send the uplink data to the proxy device.
  • the proxy device determines that the user equipment UE needs the cell handover, and includes:
  • the method further includes:
  • the proxy device stops performing proxy service for the UE.
  • a fourteenth aspect of the present invention provides a method for preventing interruption of a TCP connection, comprising:
  • the proxy device determines that the user equipment UE needs cell handover
  • the proxy device sends a second indication message to the UE, where the second indication message is used to indicate that the UE stops sending uplink data to the proxy device.
  • the proxy device sends the buffered uplink data to the server.
  • the method further includes:
  • the proxy device instructs the UE to continue to send the uplink data.
  • the proxy device instructs the UE to continue to send the uplink data, including:
  • the proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement message is used to indicate that the UE continues to send the uplink data to the proxy device.
  • the proxy device determines that the user equipment UE needs the cell handover, including:
  • the method further includes:
  • the proxy device stops performing proxy service for the UE.
  • a fifteenth aspect of the present invention provides a method for preventing interruption of a TCP connection, comprising:
  • the proxy device determines that the user equipment UE needs cell handover
  • the proxy device sends the buffered downlink data to the UE;
  • the proxy device Receiving, by the proxy device, the first acknowledgement message sent by the UE, where the first acknowledgement message is used to indicate that the last data packet in the buffered downlink data is successfully received by the UE;
  • the proxy device sends a second acknowledgement message to the server, where the second acknowledgement message is used to instruct the server to continue to send the downlink data to the proxy device.
  • the method further includes:
  • the proxy device sends the buffered uplink data to the server
  • the proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement message is used to indicate that the UE continues to send the uplink data to the proxy device.
  • the proxy device determines that the user equipment UE needs the cell handover, and includes:
  • the proxy device detects a channel fading threshold range between the UE and a radio access device of the source cell, and determines that the UE is about to perform cell handover.
  • the method further includes:
  • the proxy device stops performing proxy service for the UE.
  • a sixteenth aspect of the present invention provides a method for preventing interruption of a TCP connection, comprising:
  • the proxy device determines that the user equipment UE needs cell handover
  • the proxy device sends the buffered uplink data to the server
  • the proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement message is used to indicate that the UE continues to send the uplink data to the transceiver module.
  • the proxy device determines that the user equipment UE needs a cell handover, and includes:
  • the proxy device detects a channel fading threshold range between the UE and a radio access device of the source cell, and determines that the UE is about to perform cell handover.
  • the method further includes:
  • the proxy device stops performing proxy service for the UE.
  • a seventeenth aspect of the present invention provides a method for preventing interruption of a TCP connection, comprising:
  • the downlink data buffered by the proxy device of the source cell is obtained, and the receiver of the buffered downlink data is the UE;
  • the acquiring downlink data cached by the proxy device of the source cell includes:
  • the sending, by the proxy device of the source cell, the request message includes:
  • the buffering downlink data sent by the proxy device that receives the source cell, and the identifier of the UE include:
  • the method further includes:
  • the UE After the UE is reconnected with the target cell, acquiring uplink data buffered by the proxy device of the source cell, where the receiver of the buffered uplink data is a server;
  • the method further includes:
  • the obtaining, by the proxy device, the uplink data cached by the source device includes:
  • An eighteenth aspect of the present invention provides a method for preventing interruption of a TCP connection, comprising:
  • the user equipment UE After the user equipment UE is reconnected with the target cell, acquiring uplink data buffered by the proxy device of the source cell, where the receiver of the buffered uplink data is a server;
  • the acquiring the uplink data cached by the proxy device of the source cell includes:
  • the sending, by the proxy device of the source cell, the request message includes:
  • the buffering uplink data sent by the proxy device that receives the source cell, and the identifier of the UE include:
  • the device, the system and the method for preventing the interruption of the TCP connection provided by the embodiment of the present invention, wherein the device determines that the user equipment UE needs the cell handover; the device sends a first indication message to the server, where the first indication message is used to indicate the server Stop sending downlink data to the proxy device; and send the buffered downlink data to the UE. Therefore, the UE is disconnected from the source cell, and after connecting with the new cell, the downlink data received by the partial TCP proxy is not received, or the partial cache data is lost, and the server retransmits, and the server has already performed the retransmission according to the TCP protocol. The problem that the confirmed TCP packet is not retransmitted and the TCP connection is interrupted and the service is interrupted.
  • FIG. 1 is a schematic diagram of a prior art TCP connection interruption
  • FIG. 2 is a schematic diagram of a state machine of an apparatus for preventing interruption of a TCP connection according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for preventing interruption of a TCP connection according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for preventing interruption of a TCP connection according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for preventing interruption of a TCP connection according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for preventing interruption of a TCP connection according to an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of interaction of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 11 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of interaction of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 15 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 16 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of interaction of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 18 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 19 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a prior art TCP connection interruption.
  • a client and a server transmit data through a network proxy (Network Proxy).
  • Network Proxy Network Proxy
  • the data transmission speed between the server and the network proxy is faster than the data transmission speed between the network proxy and the user equipment (User Equipment, UE for short), or when the data transmission speed between the network proxy and the user equipment UE is faster than the server and the network
  • the data transfer speed between agents is exceeded, some data is cached in the network proxy within a certain period of time.
  • the network proxy often caches some data sent by the server to the UE or caches some data sent by the UE to the server, and the network proxy has sent a response confirmation to the server instead of the UE.
  • Data packet 1 and data packet 2 are downlink data sent by the server to the UE.
  • the network proxy After receiving the data packet 1 and the data packet 2, the network proxy is cached in the network proxy and passed. TCP/IP connection 2 sends a response confirmation to the server.
  • the UE moves from one Radio Access Network (RAN) to another RAN, for example, the UE moves from RAN1 to RAN2 in FIG. 1, and for some reason, it is too late to perform handover, which causes heavy load to occur through RAN2. even.
  • the RAN1 is disconnected from the RAN2 and the RAN2 is reconnected.
  • the packet 2 buffered in the proxy device enabled in RAN1 is not sent to the UE in time.
  • the UE finds that the data packet 2 is lost, it requests the server to retransmit the data packet 2.
  • Packet 2 has been acknowledged by the proxy device of RAN1 to the server.
  • the UE On the server side, the UE has acknowledged receipt of packet 2 and then requires retransmission.
  • the server cannot retransmit packet 2. Because the UE has not received the data packet 2, it will repeatedly request retransmission.
  • the TCP/IP connection between the UE and the server is interrupted and the service is terminated.
  • the following embodiments of the present invention provide a method, apparatus, and system for preventing a TCP connection from being interrupted, which can be applied to an LTE network, and can also be applied to a Universal Mobile Telecommunications System (UMTS).
  • UMTS Universal Mobile Telecommunications System
  • Other communication networks such as Global System for Mobile Communication (GSM), Worldwide Interoperability for Microwave Access (WiMax), and the like.
  • the device for preventing the interruption of the TCP connection can be placed on the UMTS Terrestrial Radio Access Network (UTRAN), and the Evolved Universal Terrestrial Radio Access Network (E-UTRAN) ), Radio Network Controller (RNC), Serving GateWay (S-GW), Serving GPRS Support Node (SGSN), Packet Data Gateway (Packet Data) Network Gateway, referred to as P-GW, implements proxy functions.
  • UTRAN UMTS Terrestrial Radio Access Network
  • E-UTRAN Evolved Universal Terrestrial Radio Access Network
  • RNC Radio Network Controller
  • S-GW Serving GateWay
  • SGSN Serving GPRS Support Node
  • Packet Data Gateway Packet Data
  • P-GW Packet Data Network Gateway
  • FIG. 2 is a schematic diagram of a state machine of a device for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • a device for preventing a TCP connection interruption is used as a proxy device, and has three states: a “boot” state, and a “preset stop”. "Status, "Stop” status.
  • the proxy device normally provides proxy services for two TCP connections between the client and the server (the TCP connection between the UE and the proxy device and the TCP connection between the proxy device and the server); the proxy device caches and forwards the sender The transmitted data is acknowledged by the received data over the TCP connection.
  • Pre-stop The proxy device stops receiving data sent by the sender, and at the same time, continues to forward the data cached in the TCP proxy to the receiver.
  • “Stop” state The proxy device stops the proxy service and the data is transparently transmitted through the network proxy.
  • the proxy device When the proxy device is in the "on” state, the proxy device is used to provide proxy services for the server's TCP connection with the UE.
  • the proxy device In the case of detecting a switch from the "start” state to the "pre-stop” state switching policy that satisfies the setting (the present invention takes “threshold 1" as an example), the proxy device switches from the “start” state to the "pre-stop” state.
  • the proxy device determines that the UE is about to perform cell handover. At this time, the proxy device clears the data in the cache, and sends the buffered downlink data to the UE. Or, send the buffered uplink data to the server. After detecting the switching from the "pre-stop” state to the "starting" state switching policy that satisfies the setting (the invention takes "threshold 2" as an example), the proxy device switches from the "pre-stop” state to the "starting" state. .
  • the proxy device When the proxy device is in the "pre-stop” state, it is detected in the switching from the "pre-stop” state to the "stop” state switching policy that satisfies the setting (the present invention detects "threshold 4 and proxy device cache data is cleared” as an example. ), the proxy device switches from the "pre-stop” state to the "stop” state.
  • the proxy device When the proxy device is in the "stop” state, in detecting the switching from the "stop” state to the "start” state switching policy that satisfies the setting (the present invention takes “threshold 3 and/or other startup policies” as an example), Then the proxy device switches from the "stop” state to the "start” state.
  • the state transition triggering policy includes, but is not limited to, a rule set by the network operator to optimize network transmission, such as a TCP proxy when the TCP enters a slow start phase. Enter the "start” state, the other phase is the “stop” state; or the TCP proxy enters the "start” state when the transmission rate is within a certain threshold range, and the TCP proxy switches to the "stop” state outside the threshold range.
  • the traditional TCP proxy technology implementation method is that the client starts the network proxy when the TCP/IP connection is initially established. For example, the IP address used by the client is modified by the network proxy and sent to the server. There are two TCP/IP connections between the client and the server. Since the device in the wired communication network is fixed or basically fixed and rarely moves, the proxy technology has no problem in the wired communication network, but in the wireless communication network, due to the mobility of the device, when the network element performing the network proxy function is switched When the current TCP/IP connection is terminated, a new TCP/IP connection needs to be manually established, which greatly affects the user's service experience.
  • FIG. 3 is a schematic flowchart of a method for preventing interruption of a TCP connection according to an embodiment of the present invention, and FIG. 3 is referred to.
  • the proxy device as the network proxy when the proxy device as the network proxy is in the "stop” state, it can be switched from the “stop” state to the "boot” state. Specifically, the network proxy records the parameters in the TCP connection process: source IP address, destination IP address. , TCP serial number and TCP response serial number, and then start two pieces of TCP proxy function according to the record information (ie TCP/IP connection 1 and TCP/IP connection 2 in the figure).
  • the network proxy initiates two methods of TCP proxy function: the server maintains a TCP connection with the UE [that is, the server sends downlink data to the UE or receives uplink data from the UE, and keeps The IP address of the server, the TCP port number, and the server's TCP sequence number and TCP response number (Acknowledgment Number), refer to this TCP connection as TCP/IP connection 1, and maintain the TCP connection with the server on behalf of the UE.
  • the UE sends uplink data to the server or receives downlink data sent from the server to the UE, and maintains the IP address of the UE, the TCP port number, and the TCP number and TCP response number of the UE.
  • the TCP connection is referred to as TCP/IP connection 2. This operation is transparent to both the UE and the server.
  • the network agent When the network agent is in the "on” state, it can switch to the "stop” state, or it can switch to the "pre-stop” state.
  • the switch to the "stop” state the network proxy cache is cleared, the network proxy stops the proxy service, and the data is transparently transmitted through the network proxy.
  • the network proxy When the network proxy switches from the "start” state to the "pre-stop” state, the network proxy sends a stop data transmission indication to the sender of the data, for example, the receiving window is set to "0"; or the acknowledgment message (ACK) is not sent; At the same time, the network proxy continues to buffer the data to the receiver of the data.
  • a stop data transmission indication for example, the receiving window is set to "0"; or the acknowledgment message (ACK) is not sent;
  • the network proxy continues to buffer the data to the receiver of the data.
  • the network agent When the network agent is in the "pre-stop” state, it can switch to the "start” state or switch to the "stop” state.
  • the network proxy sends a recovery data transmission indication to the sender, for example, restores the reception window; or, the sender acknowledges the acknowledgement message of the receiver.
  • the network proxy cache When switching to the "stop" state, when the network proxy cache is emptied, the network proxy stops the proxy service and the data is transparently transmitted through the network proxy.
  • FIG. 4 is a schematic structural diagram of an apparatus for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the apparatus as a proxy device, can perform corresponding functions of the network proxy.
  • the apparatus includes: a processing module 100, a transceiver module. 101.
  • the processing module 100 is configured to determine that the user equipment UE needs a cell handover
  • the transceiver module 101 is configured to send a first indication message to the server, where the first indication message is used to instruct the server to stop sending downlink data to the proxy device, and send the buffered downlink data to the UE.
  • the processing module determines that the user equipment UE needs the cell handover; the transceiver module sends a first indication message to the server, where the first indication message is used to indicate that the server stops to the The proxy device sends downlink data; the buffered downlink data is sent to the UE.
  • the TCP is not received by some TCP proxy cache, or the partial cache data is lost, and the server initiates retransmission to the server, and the server does not retransmit the already acknowledged data packet according to the TCP protocol.
  • the connection is interrupted and the service is interrupted.
  • the transceiver module 101 is further configured to: when it is confirmed that the buffered downlink data is sent, instruct the server to continue to send the downlink data.
  • transceiver module 101 is specifically configured to:
  • the transceiver module 101 is further configured to:
  • the transceiver module 101 is further configured to: when it is confirmed that the buffered uplink data is sent, instruct the UE to continue to send the uplink data.
  • transceiver module 101 is further configured to:
  • the fourth acknowledgement message indicates that the server successfully receives the last data packet in the cached uplink data. After receiving the fourth acknowledgement message, the UE considers that the uplink data may continue to be sent to the transceiver module.
  • the processing module 100 is specifically configured to:
  • processing module 100 is further configured to:
  • the transceiver module 101 After the transceiver module 101 sends the buffered downlink data to the UE, or after the transceiver module 101 sends the buffered uplink data to the server, if the UE and the source cell are connected to each other, The channel degradation between the incoming devices is still within the threshold range, then stop The proxy service is performed for the UE.
  • the device can also perform the following functions:
  • the processing module 100 is configured to determine that the user equipment UE needs a cell handover
  • the transceiver module 101 is configured to send a second indication message to the UE, where the second indication message is used to indicate that the UE stops sending uplink data to the proxy device, and sends the buffered uplink data to the server.
  • the processing module determines that the user equipment UE needs the cell handover, and the transceiver module sends a second indication message to the UE, where the second indication message is used to indicate that the UE stops to
  • the proxy device sends uplink data; and sends the buffered uplink data to the server.
  • the transceiver module 101 is configured to: when it is confirmed that the buffered uplink data is sent, instruct the UE to continue to send the uplink data.
  • transceiver module 101 is specifically configured to:
  • the processing module 100 is specifically configured to detect a channel fading threshold range between the UE and a radio access device of the source cell, and determine that the UE needs cell handover.
  • the processing module 100 is further configured to:
  • the proxy device stops detecting Proxy service for the UE.
  • the apparatus can also be used to implement the following functions:
  • the processing module 100 is configured to determine that the user equipment UE needs a cell handover
  • the transceiver module 101 is configured to: send the buffered downlink data to the UE, and receive a first acknowledgement message sent by the UE, where the first acknowledgement message is used to indicate the last data packet in the cached downlink data. Successfully receiving by the UE; sending a second acknowledgement message to the server, where the second acknowledgement message is used to indicate that the server continues to send the downlink number to the proxy device according to.
  • the processing module determines that the user equipment UE needs the cell handover; the transceiver module sends the buffered downlink data to the UE; and receives the first acknowledgement message sent by the UE, The first acknowledgement message is used to indicate that the last data packet in the buffered downlink data is successfully received by the UE; and send a second acknowledgement message to the server, where the second acknowledgement message is used to indicate that the server continues to the
  • the proxy device sends the downlink data.
  • the UE is disconnected from the source cell, and after connecting with the new cell, the downlink data received by the partial TCP proxy is not received, or the partial cache data is lost, and the server retransmits, and the server has already performed the retransmission according to the TCP protocol.
  • transceiver module 101 is further configured to:
  • the processing module 100 is specifically configured to detect a channel fading threshold range between the UE and a radio access device of the source cell, and determine that the UE is about to perform cell handover.
  • processing module 100 is further configured to:
  • the transceiver module After the transceiver module sends the buffered downlink data to the UE, or after the transceiver module sends the buffered uplink data to the server, if the UE and the source cell's wireless access device The channel degradation between the two is still within the threshold range, and the proxy device stops proxying the UE.
  • the apparatus can also be used to implement the following functions:
  • the processing module 100 is configured to determine that the user equipment UE needs a cell handover
  • the transceiver module 101 is configured to: send the buffered uplink data to the server; receive a third acknowledgement message sent by the server, where the third acknowledgement message is used to indicate that the last data packet in the cached uplink data is The server successfully receives the fourth acknowledgment message, and the fourth acknowledgment message is used to indicate that the UE continues to send the uplink to the transceiver module. data.
  • the apparatus for preventing interruption of the TCP connection determines that the user equipment UE needs the cell handover by the processing module; the transceiver module sends the buffered uplink data to the server; and receives the third acknowledgement message sent by the server, the third The acknowledgement message is used to indicate that the last data packet in the cached uplink data is successfully received by the server, and send a fourth acknowledgement message to the UE, where the fourth acknowledgement message is used to indicate that the UE continues to the The transceiver module sends the uplink data.
  • the UE is disconnected from the source cell, and after the new cell is connected, the UE does not receive the uplink data buffered by the part of the TCP proxy, or the partial cache data is lost, and the UE retransmits, and the UE has already performed the retransmission according to the TCP protocol.
  • the processing module 100 is specifically configured to detect a channel fading threshold range between the UE and a radio access device of the source cell, and determine that the UE is about to perform cell handover.
  • processing module 100 is further configured to:
  • the transceiver module 101 After the transceiver module 101 sends the buffered uplink data to the server, if the channel degradation between the UE and the wireless access device of the source cell is still within the threshold range, stop the UE Perform agency services.
  • the apparatus can also be used to implement the following functions:
  • the processing module 100 is configured to: after the user equipment UE is reconnected with the target cell, acquire downlink data buffered by the proxy device of the source cell, where the receiver of the buffered downlink data is the UE;
  • the transceiver module 101 is configured to send the buffered downlink data to the UE.
  • the apparatus for preventing the interruption of the TCP connection provided by the embodiment of the present invention, after the user equipment UE is reconnected with the target cell by the processing module, acquires downlink data buffered by the proxy device of the source cell, where the receiver of the buffered downlink data is the The UE sends the buffered downlink data to the UE, so that the downlink data buffered by the proxy device is sent to the UE, ensuring that the TCP connection is not interrupted, and the stability of the communication is improved.
  • the retransmission request is initiated to the server because the previous downlink data is not received, and the TCP connection is disconnected due to the server not retransmitting the data that has received the ACK acknowledgement according to the TCP protocol.
  • the transceiver module 101 is further configured to receive the buffered downlink data and the identifier of the UE that are sent by the proxy device of the source cell.
  • the processing module 100 is specifically configured to instruct the transceiver module 101 to send a request message to a proxy device of the source cell, where the request message includes an identifier of the UE;
  • the transceiver module 101 is further configured to receive the cached downlink data sent by the proxy device of the source cell.
  • the transceiver module 101 is specifically configured to send the request message to a proxy device of the source cell according to an identifier of the source cell.
  • the transceiver module 101 is configured to receive the buffered downlink data and the identifier of the UE that are sent by the proxy device of the source cell according to the identifier of the source cell.
  • the transceiver module 101 acquires uplink data buffered by the proxy device of the source cell after the UE is reconnected with the target cell, and the receiver of the buffered uplink data is a server;
  • the transceiver module 101 is further configured to acquire uplink data buffered by a proxy device of the source cell, where the receiver of the buffered uplink data is the server.
  • transceiver module 101 is specifically configured to:
  • the apparatus can also be used to implement the following functions:
  • the processing module 100 is configured to: after the user equipment UE is reconnected with the target cell, acquire uplink data buffered by the proxy device of the source cell, where the receiver of the buffered uplink data is a server;
  • the transceiver module 101 is configured to send the cached uplink data to the server.
  • the device for preventing the interruption of the TCP connection provided by the embodiment of the present invention, after the user equipment UE is reconnected with the target cell, obtains the uplink data buffered by the proxy device of the source cell, and the receiver of the cached uplink data is the server;
  • the transceiver module sends the cached uplink data to the server, so that the uplink data buffered by the proxy device is sent to the server, and the It proves that the TCP connection does not interrupt, which improves the stability of communication.
  • the retransmission request is initiated to the UE because the previous uplink data is not received, and the TCP connection is interrupted due to the UE not retransmitting the data that has received the ACK acknowledgement according to the TCP protocol.
  • the transceiver module 101 is further configured to receive the cached uplink sent by the proxy device of the source cell. Data and identification of the UE.
  • the processing module 100 is specifically configured to: instruct the sending and receiving module to send a request message to a proxy device of the source cell, where the request message includes an identifier of the UE;
  • the transceiver module 101 is further configured to receive the buffered uplink data sent by the proxy device of the source cell.
  • the transceiver module 101 is specifically configured to send the request message to a proxy device of the source cell according to an identifier of the source cell.
  • the transceiver module 101 is configured to receive, according to the identifier of the source cell, the cached uplink data sent by the proxy device of the source cell, and the identifier of the UE.
  • FIG. 5 is a schematic structural diagram of an apparatus for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the apparatus as a proxy device, can perform corresponding functions of the network proxy.
  • the apparatus includes: a processor 200, a transceiver. 201.
  • the device for preventing TCP connection interruption described in FIG. 5 may have the functions of the device in the corresponding embodiment of FIG. 4. Specifically, the processor 200 may execute and process all functions of the module 100; the transceiver 201 may execute and transmit and receive all of the module 101. Features. Accordingly, the apparatus shown in FIG. 5 can achieve the technical effects of the respective embodiments corresponding to FIG.
  • FIG. 6 is a schematic flowchart of a method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • FIG. 6 is an apparatus for preventing interruption of a TCP connection, and the device for preventing interruption of a TCP connection is used as a proxy device. It can adopt the structure shown in FIG. 4 or FIG. 5 and perform the functions of the corresponding embodiment, and can implement a TCP proxy between the server and the UE.
  • the method includes the following steps:
  • Step 100 The proxy device determines that the user equipment UE needs cell handover.
  • Step 101 The proxy device sends a first indication message to the server, where the first indication message is used to indicate that the server stops sending downlink data to the proxy device.
  • Step 102 The proxy device sends the buffered downlink data to the UE.
  • the proxy device determines that the user equipment UE needs the cell handover, and the proxy device sends a first indication message to the server, where the first indication message is used to indicate that the server stops The proxy device sends downlink data, and then the proxy device sends the buffered downlink data to the UE. Therefore, the UE is disconnected from the source cell, and after connecting with the new cell, the downlink data received by the partial TCP proxy is not received, or the partial cache data is lost, and the server retransmits, and the server has already performed the retransmission according to the TCP protocol.
  • the problem that the confirmed TCP packet is not retransmitted and the TCP connection is interrupted and the service is interrupted.
  • the proxy device sends a first indication message to the server.
  • a feasible implementation manner is: the proxy device sends a first indication message to the server, where the first indication message indicates that the receiving window is 0.
  • the first indication message may be set to be 0 in the window field of the header field of the TCP determination message sent by the proxy device to the server, and the TCP message may be an uplink data packet or an ACK acknowledgement packet.
  • the server In the "pre-stop" state, that is, in the case where the receiving window of the proxy device in the present invention is 0, according to the TCP protocol, after the server receives the indication that the receiving window is 0, the server does not continue to transmit the downlink data.
  • FIG. 7 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention. Referring to FIG. 7, after step 102, the method further includes:
  • Step 103 If the proxy device confirms that the buffered downlink data is sent, the proxy device instructs the server to continue to send the downlink data.
  • the proxy device confirms that the buffered downlink data is cleared, if the UE performs cell handover, the required information is obtained, and therefore, after the handover is completed, the UE does not receive the cached data. happening.
  • step 103 a feasible implementation manner is:
  • Step 103a The proxy device receives a first acknowledgement message sent by the UE, where the first acknowledgement message is used to indicate that the last data packet in the buffered downlink data is formed by the UE.
  • the proxy device when the proxy device receives the first acknowledgment message sent by the UE, it indicates that the UE has successfully received all the buffered downlink data, that is, the downlink data buffered by the proxy device is cleared.
  • Step 103b The proxy device sends a second acknowledgement message to the server, where the second acknowledgement message is used to instruct the server to continue to send the downlink data to the proxy device.
  • the server can continue to send downlink data according to the receiving window in the window field of the TCP confirmation message header field.
  • the second acknowledgement message and the first acknowledgement message may be the same message. That is, the second confirmation message is that the proxy device forwards the first acknowledgement message sent by the UE to the server.
  • the UE sends an acknowledgement message (ACK) to the proxy device to notify the proxy device to successfully receive.
  • ACK acknowledgement message
  • the UE does not The acknowledgment message is forwarded to the server, but after receiving the acknowledgment message corresponding to the last data packet in the buffered downlink data packet, that is, after the first acknowledgment message, the proxy device sends a second acknowledgment message to the server to notify The server, the UE has successfully received the last data packet in the buffered downlink data, and the server may continue to send downlink data to the UE according to the receiving window in the window field of the TCP acknowledgement message header field.
  • FIG. 8 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the proxy device may adopt the structure shown in FIG. 4 or FIG. 5 and perform the functions of the corresponding embodiment. Referring to FIG. 8, the method is as follows. The method includes the following steps:
  • Step 200 The proxy device determines that the user equipment UE needs cell handover.
  • Step 201 The proxy device sends a second indication message to the UE, where the second indication message is used to indicate that the UE stops sending uplink data to the proxy device.
  • Step 202 The proxy device sends the buffered uplink data to the server.
  • step 200 is exactly the same as the above step 100. It can be seen that the step 201 and the step 202 of the solution can be performed simultaneously with the embodiment corresponding to FIG. 6 or FIG. 7 above, as long as the generation is performed.
  • the device caches the uplink data, and steps 201 and 202 can be performed.
  • the proxy device determines that the user equipment UE needs the cell handover, and the proxy device sends a second indication message to the UE, where the second indication message is used to indicate the UE Stop sending uplink data to the proxy device, and then the proxy device sends the buffered uplink data to the server. Thereby, the uplink data sent by the UE is prevented from being lost due to the handover of the UE.
  • the second indication message sent by the proxy device to the UE is implemented in the same manner as the first indication message, that is, the receiving window is 0, and details are not described herein again.
  • FIG. 9 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention. Referring to FIG. 9, after step 202, the method further includes:
  • Step 203 If it is confirmed that the proxy device confirms that the buffered uplink data is sent, the proxy device instructs the UE to continue to send the uplink data.
  • step 103 it is the same as the purpose of step 103 above, that is, when the buffered data is cleared, the UE is instructed to continue to send uplink data. Thereby, the interruption of the TCP connection during the UE handover process is avoided.
  • step 203 a feasible implementation manner of step 203 is:
  • Step 203 The proxy device receives a third acknowledgement message sent by the server, where the third acknowledgement message is used to indicate that the last data packet in the cached uplink data is successfully received by the server.
  • the proxy device when the proxy device receives the third acknowledgement message, it indicates that the server has sent the cached uplink data sent by the proxy device.
  • Step 203b The proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement message is used to indicate that the UE continues to send the uplink data to the proxy device.
  • the UE may continue to send downlink data according to the receiving window in the window field of the TCP acknowledgement message header field.
  • step 100 and step 200 above how to determine that the UE is about to perform cell handover, a feasible implementation manner is given below:
  • the specific expression range of the threshold range may be: receiving power and transmission speed. Rate and so on. That is, when the proxy device is in the "startup" state above, after determining that the UE is about to perform cell handover after the above determination, the "pre-stop" state is entered.
  • the proxy device may send the buffered downlink data to the UE and/or send the buffered uplink data to the server, based on different scenarios for sending cached data, After the cached data is cleaned up, the following processing is also performed.
  • the method further includes:
  • the proxy device stops performing proxy service for the UE.
  • the channel between the UE and the wireless access device of the source cell is still in the The threshold range stops the proxy service for the UE, that is, switches to the "stop" state.
  • FIG. 3 to FIG. 5 The method of FIG. 3 to FIG. 5 is described below by taking the proxy device buffering downlink data as an example.
  • FIG. 10 is a schematic diagram of interaction of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the UE performs data transmission with a server in a scenario where the RAN1 has a TCP network proxy.
  • the data packet between the client and the server is forwarded through the TCP network proxy, and the TCP network proxy status is "started".
  • the TCP network proxy After receiving the data packet sent by the server, the TCP network proxy sends an acknowledgement response to the server.
  • the TCP network proxy caches a portion of the data.
  • RAN1 detects that RAN1 detects a channel degradation between the UE and the eNB to a set threshold, ie, threshold 1, and switches the TCP proxy state from "start" to "pre-stop” state.
  • the triggering TCP network proxy sends an indication to the server that the receive window is zero.
  • the indication information can be carried in the determination response sent by the TCP network proxy to the server.
  • the "pre-stop" state that is, in the case where the TCP network proxy receiving window in the present invention is 0, according to the TCP protocol, after the server receives the indication that the receiving window is 0, the server does not continue to transmit the downlink data.
  • the TCP proxy sends the data in the buffer to the client, and when the RAN1 detects that the channel between the UE and the eNB is within the set threshold 4, the TCP proxy state is switched from “pre-stop”. Go to the "stop” state.
  • the triggering TCP network proxy sends an indication to the server: the recovery of the receiving window.
  • the indication information can be carried in the determination response of the TCP network proxy to the server forwarding client.
  • the TCP network proxy is in " When the state is stopped, the interaction between the client and the server is directly completed through the TCP connection 3 in the above figure. If the network reconnection occurs (that is, the UE does not complete the handover during the process of moving from RAN1 to RAN2, and the UE is disconnected from RAN1. On, reconnecting with RAN2) has no effect on TCP connection 3.
  • FIG. 11 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention. Referring to FIG. 11, the following steps are performed by using a proxy device to send buffered downlink data:
  • Step 1 Establish a TCP connection between the client and the server for data transmission.
  • Step 2 After the TCP connection is established, or start the TCP network proxy during data transmission. At this point, the TCP network proxy status is "Startup".
  • Step 3 The server sends downlink data to the client, and the data packet between the client and the server is forwarded through a TCP network proxy.
  • Step 4 The network proxy caches data when the data transmission rate between the TCP network proxy and the server is greater than the data transmission rate between the client and the TCP network proxy.
  • Step 5 After receiving the data packet sent by the server, the TCP network proxy sends an acknowledgement response to the server.
  • Step 6 The RAN1 detects that the RAN1 detects a channel degradation between the UE and the eNB to a set threshold, that is, a threshold of 1, and switches the TCP proxy state from "start" to "pre-stop” state.
  • a set threshold that is, a threshold of 1
  • Step 7 In the case that the "start" state is switched to the "pre-stop” state, the TCP network proxy is triggered to send an indication to the server that the receiving window is zero.
  • the indication information can be carried in the determination response sent by the TCP network proxy to the server.
  • Step 8 The TCP network proxy forwards the cached data to the client.
  • Step 9 After receiving the data packet sent by the TCP network proxy, the client sends an acknowledgement response to the TCP network proxy.
  • Step 10 In the "pre-stop” state, the TCP proxy sends the data in the cache to the client. And when the RAN1 detects that the channel between the UE and the eNB is within the set threshold 4, the RAN1 is switched from the "pre-stop” state to the "stop” state.
  • Step 11 In the case where the "pre-stop" switch to the "stop” state occurs, the TCP network proxy is triggered to send an indication to the server to restore the receiving window.
  • the indication information can be carried in the determination response of the TCP network proxy to the server forwarding client.
  • the UE may continue to send downlink data according to the receiving window in the window field of the TCP acknowledgement message header field.
  • Step 12 When the TCP network proxy is in the "stop" state, the interaction between the client and the server directly completes the data transmission through the TCP connection between them.
  • Step 13 A network reconnection occurs (ie, the UE does not complete the handover during the process of moving from RAN1 to RAN2, and the UE disconnects from RAN1 and reconnects with RAN2).
  • the client and the server continue to perform data transmission through the TCP connection between them, that is, the reconnection of the network does not affect the TCP data transmission.
  • the proxy device when the proxy device is in the “pre-stop” state, it needs to send a pause transmission indication to the server or the UE, in order to instruct the server or the UE to suspend the transmission of downlink data or uplink data. Onwards, the proxy device will send the buffered uplink data or the buffered downlink data. However, in this manner, a new indication needs to be added, which increases the overhead of the interaction. In order to avoid unnecessary overhead, the embodiment of the present invention provides another method for preventing TCP connection interruption, which is described below through specific embodiments.
  • FIG. 12 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the execution body is the device for preventing interruption of a TCP connection, and the device for preventing interruption of a TCP connection is used as a proxy device.
  • a TCP proxy between the server and the UE can be implemented. Referring to FIG. 12, the method includes the following steps:
  • Step 300 The proxy device determines that the user equipment UE needs a cell handover.
  • Step 301 The proxy device sends the buffered downlink data to the UE.
  • Step 302 The proxy device receives a first acknowledgment message sent by the UE, where the first acknowledgment message is used to indicate that the last data packet in the buffered downlink data is successfully received by the UE.
  • Step 303 The proxy device sends a second acknowledgement message to the server, where the second acknowledgement The information is used to instruct the server to continue to send the downlink data to the proxy device.
  • the proxy device when the proxy device receives the acknowledgement message corresponding to the last data packet in the buffered downlink data packet, that is, the first acknowledgement message above, the second acknowledgement message is sent to the server to notify the server, the UE The last packet in the buffered downstream data has been successfully received.
  • the proxy device determines that the user equipment UE needs the cell handover, and the proxy device sends the buffered downlink data to the UE, where the proxy device receives the An acknowledgement message is used to indicate that the last data packet in the buffered downlink data is successfully received by the UE.
  • the proxy device sends a second acknowledgement message to the server, where the second acknowledgement message is used to instruct the server to continue to send the downlink data to the proxy device.
  • the UE is disconnected from the source cell, and after connecting with the new cell, the downlink data received by the partial TCP proxy is not received, or the partial cache data is lost, and the server retransmits, and the server has already performed the retransmission according to the TCP protocol.
  • FIG. 13 is a schematic flowchart diagram of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the proxy device may adopt the structure shown in FIG. 4 or FIG. 5 and perform the functions of the corresponding embodiment. Referring to FIG. The method includes the following steps:
  • Step 400 The proxy device determines that the user equipment UE needs a cell handover.
  • Step 401 The proxy device sends the buffered uplink data to the server.
  • Step 402 The proxy device receives a third acknowledgement message sent by the server, where the third acknowledgement message is used to indicate that the last data packet in the cached uplink data is successfully received by the server.
  • Step 403 The proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement The message is used to indicate that the UE continues to send the uplink data to the proxy device.
  • the fourth acknowledgement message may be that the proxy device forwards the third acknowledgement message sent by the server to the UE.
  • the UE may continue to send uplink data according to the receiving window in the window field of the TCP acknowledgement message header field.
  • step 400 is exactly the same as step 300 above. It can be seen that step 401 to step 403 of the solution can be performed simultaneously with the embodiment corresponding to FIG. 12 above. Step 401 can be performed as long as the proxy device caches the uplink data. Go to step 403.
  • the proxy device determines that the user equipment UE needs the cell handover, the proxy device sends the buffered uplink data to the server, and the proxy device receives the third acknowledgement sent by the server. a message, the third acknowledgement message is used to indicate that the last data packet in the cached uplink data is successfully received by the server, and the proxy device sends a fourth acknowledgement message to the UE, where the fourth acknowledgement message is sent. And configured to indicate that the UE continues to send the uplink data to the proxy device.
  • the UE is disconnected from the source cell, and after the new cell is connected, the UE does not receive the uplink data buffered by the part of the TCP proxy, or the partial cache data is lost, and the UE retransmits, and the UE has already performed the retransmission according to the TCP protocol.
  • the proxy device detects a channel fading threshold range between the UE and a radio access device of the source cell, and determines that the UE is about to perform cell handover.
  • the method further includes:
  • the proxy device stops performing proxy service for the UE.
  • FIG. 8 and FIG. 9 The method of FIG. 8 and FIG. 9 is described below by taking the proxy device buffering the downlink data as an example.
  • FIG. 14 is a schematic diagram of interaction of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the difference from the corresponding embodiment of FIG. 6 to FIG. 9 is that FIG. 6 to FIG. 9
  • the TCP network proxy is triggered to send an indication to the server that the receiving window is zero.
  • the UE performs data transmission with the server in the presence of a TCP network proxy scenario in RAN1.
  • the data packet between the client and the server is forwarded through the TCP network proxy, and the TCP network proxy status is "started".
  • the TCP network proxy After receiving the data packet sent by the server, the TCP network proxy sends an acknowledgement response to the server.
  • the TCP network proxy caches a portion of the data.
  • RAN1 detects that RAN1 detects a channel degradation between the UE and the eNB to a set threshold, ie, threshold 1, and switches the TCP proxy state from "start" to "pre-stop” state.
  • this embodiment needs to change the setting of the TCP network proxy, and set the data received in the "pre-stop” state without sending an ACK confirmation.
  • the TCP network proxy can continue to receive and forward the server's packets to the client, but the TCP network proxy does not send a confirmation acknowledgement of the packet to the server.
  • the TCP proxy sends the buffered data to the client, and when the RAN1 detects that the channel between the UE and the eNB is still within the set threshold 4, the TCP proxy state is "pre-parked”. Switch to the "Stop” state.
  • the TCP network proxy is in the "stop” state, the interaction between the client and the server is directly completed through the TCP connection 3 in the above figure. If the network reconnection occurs (that is, the UE does not complete the handover during the process of moving from RAN1 to RAN2, However, if the UE is disconnected from RAN1 and reconnected with RAN2, it has no effect on TCP connection 3.
  • the UE performs data transmission with the server in the scenario that the RAN1 exists in the TCP network proxy scenario.
  • the uplink data packet between the UE and the server is forwarded through the TCP network proxy, and the TCP network proxy status is "start".
  • the TCP network proxy After receiving the uplink data packet sent by the UE to the server, the TCP network proxy sends an acknowledgement response to the UE.
  • the TCP network proxy caches a portion of the data.
  • RAN1 detects that RAN1 detects a channel degradation between the UE and the eNB to a set threshold, ie, threshold 4, and switches the TCP proxy state from "start" to "pre-stop” state.
  • the triggering TCP network proxy sends an indication to the UE that the receive window is zero.
  • the indication information may be carried in a determination response sent by the TCP network proxy to the UE.
  • the "pre-stop" state that is, the TCP network proxy receiving window in the present invention is 0.
  • the UE does not continue to send uplink data.
  • the TCP proxy In the "pre-stop” state, the TCP proxy sends the buffered data to the server, and when the RAN1 detects that the channel between the UE and the eNB is still within the set threshold 4, the TCP proxy state is switched from “pre-stop”. Go to the "stop” state. In the event that a "pre-stop" switch to a "stop” state occurs, the triggering TCP network proxy sends an indication to the UE to resume the receive window. The indication information can be carried in the determination response of the TCP network proxy to the server forwarding server.
  • FIG. 15 is a schematic flowchart of another method for preventing a TCP connection interruption according to an embodiment of the present invention.
  • the execution body of the method is an access device of a cell to which the UE belongs after the handover is completed, and the device may adopt the method shown in FIG. 4 or FIG. 5.
  • the structure shown and the functions of the corresponding embodiments are performed, and the device may or may not have a TCP proxy function.
  • the method includes the following steps:
  • Step 500 After the user equipment UE is reconnected with the target cell, obtain downlink data buffered by the proxy device of the source cell, where the receiver of the buffered downlink data is the UE;
  • the target cell is a cell to which the UE belongs after the handover is completed
  • the execution entity in this embodiment is an access device of the target cell.
  • Step 501 Send the buffered downlink data to the UE.
  • the method for preventing the interruption of the TCP connection provided by the embodiment of the present invention, after the user equipment UE reconnects with the target cell, obtains downlink data buffered by the proxy device of the source cell, and the receiver of the buffered downlink data is The UE obtains the downlink data buffered by the proxy device of the source cell, and the access device sends the buffered downlink data to the UE of the user equipment, so that the downlink data buffered by the proxy device is sent to the UE, and the TCP connection is ensured. No interruption occurs, improving the stability of communication.
  • the retransmission request is initiated to the server because the previous downlink data is not received, and the TCP connection is disconnected due to the server not retransmitting the data that has received the ACK acknowledgement according to the TCP protocol.
  • step 500 can be implemented in two feasible manners, that is, passive receiving and active obtaining, and the implementation manner is as follows:
  • Manner 1 Receive the buffered downlink data and the sent by the proxy device of the source cell The identity of the UE.
  • Manner 2 Send a request message to a proxy device of the source cell, where the request message includes an identifier of the UE;
  • the sending the request message to the proxy device of the source cell includes:
  • the buffered downlink data and the identifier of the UE that are sent by the proxy device that receives the source cell including:
  • FIG. 16 is a schematic flowchart of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the access device may adopt the structure shown in FIG. 4 or FIG. 5 and perform the functions of the corresponding embodiment. The method includes the following steps:
  • Step 600 After the user equipment UE is reconnected with the target cell, obtain uplink data buffered by the proxy device of the source cell, where the receiver of the buffered uplink data is a server;
  • Step 601 Send the buffered uplink data to the server.
  • the method for preventing the interruption of the TCP connection provided by the embodiment of the present invention, after the user equipment of the access device is reconnected with the target cell, obtains the uplink data buffered by the proxy device of the source cell, and the receiver of the cached uplink data is the server.
  • the access device sends the cached uplink data to the server, so that the uplink data buffered by the proxy device is sent to the server, ensuring that the TCP connection is not interrupted, and the stability of the communication is improved.
  • the retransmission request is initiated to the UE because the previous uplink data is not received, and the TCP connection is interrupted due to the UE not retransmitting the data that has received the ACK acknowledgement according to the TCP protocol.
  • the implementation of the step 500 may be further divided into two types. If the step 600 and the step 500 are performed simultaneously, the push message described above further includes the cached uplink data; or, the data described above. The response message also includes the cached uplink data.
  • Manner 1 Receive the buffered downlink data and the identifier of the UE that are sent by the proxy device of the source cell.
  • Manner 2 Send a request message to a proxy device of the source cell, where the request message includes an identifier of the UE;
  • the sending the data request message to the proxy device of the source cell includes:
  • the pushing message sent by the proxy device that receives the source cell includes:
  • FIG. 17 is a schematic diagram of interaction of another method for preventing interruption of a TCP connection according to an embodiment of the present invention.
  • the RAN1 identifier such as a cell ID and/or a base station ID
  • RAN2 requests RAN1 to reconnect the data previously buffered in RAN1.
  • whether or not the RAN2 has a TCP network proxy does not affect the implementation of the scheme.
  • FIG. 18 is a schematic flowchart of another method for preventing a TCP connection interruption according to an embodiment of the present invention. Referring to FIG. 18, the following steps are performed by using a proxy device to send buffered downlink data:
  • Step 1 Establish a TCP connection between the client and the server for data transmission.
  • the client may be the UE described above.
  • Step 2 After the TCP connection is established, or start the TCP network proxy during data transmission.
  • Step 3 The server sends downlink data to the client, and the data packet between the client and the server is forwarded through a TCP network proxy.
  • Step 4 When the data transmission rate between the TCP network proxy and the server is greater than the data transmission rate between the client and the TCP network proxy, the network proxy caches the data.
  • Step 5 After receiving the data packet sent by the server, the TCP network proxy sends the data packet to the server. Downstream data response.
  • Step 6 The network reconnection occurs (ie, the UE does not complete the handover during the process of moving from RAN1 to RAN2, and the UE disconnects from RAN1 and reconnects with RAN2).
  • Step 7 The UE sends the RAN1 identifier to the RAN2 (can be carried in the signaling that the UE reconnects with the RAN2).
  • Step 8 The RAN2 requests the RAN1 to cache data according to the RAN1 identifier.
  • Step 9 The RAN1 sends the buffer data to the RAN2.
  • Step 10 RAN2 forwards the cache data to the UE
  • Step 11 The data transmission between the client and the server continues through the TCP connection between them.
  • FIG. 19 is a schematic flowchart of another method for preventing a TCP connection interruption according to an embodiment of the present invention.
  • the corresponding embodiment is different from the embodiment corresponding to FIG. 18 in that the corresponding embodiment of FIG. 18 requests the RAN1 through the RAN2.
  • the data is cached, and the corresponding embodiment of FIG. 19 is to push cache data to RAN2 through RAN1.
  • the corresponding embodiment of FIG. 19 is specifically described as follows: When the RAN1 finds that the UE is disconnected from the RAN1, the RAN1 pushes the data buffered in the RAN1 before the network to the neighboring RAN around the RAN1. After receiving the buffered data sent by RAN1, RAN2 forwards the data to the UE. In this scenario, whether or not the RAN2 has a TCP network proxy does not affect the implementation of the scheme.
  • the proxy device sends the buffered downlink data as an example.
  • the process includes the following steps:
  • Step 1 Establish a TCP connection between the client and the server for data transmission.
  • Step 2 After the TCP connection is established, or start the TCP network proxy during data transmission.
  • Step 3 The server sends downlink data to the client, and the data packet between the client and the server is forwarded through a TCP network proxy.
  • Step 4 When the data transmission rate between the TCP network proxy and the server is greater than the data transmission rate between the client and the TCP network proxy, the network proxy caches the data.
  • Step 5 After receiving the data packet sent by the server, the TCP network proxy sends a downlink data response to the server.
  • Step 6 The network reconnection occurs (ie, the UE does not complete the handover during the process of moving from RAN1 to RAN2, and the UE disconnects from RAN1 and reconnects with RAN2).
  • Step 7 When the RAN1 finds that the UE is disconnected from the RAN1, the RAN1 pushes the data buffered in the RAN1 before the network to the neighboring RAN around the RAN1. RAN2 requests cache data from RAN1 according to the RAN2 identity.
  • Step 8. RAN2 forwards the cache data to the UE.
  • Step 9 The data transfer between the client and the server continues through the TCP connection between them.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

本发明提供一种防止TCP连接中断的装置、系统及方法,通过该装置确定用户设备UE需要小区切换;该装置向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;将缓存的下行数据发送给所述UE。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的下行数据,或者部分缓存数据的丢失而向服务器发起重传,而服务器根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。

Description

一种防止TCP连接中断的装置、系统及方法 技术领域
本发明涉及通信领域,尤其涉及一种防止TCP连接中断的装置、系统及方法。
背景技术
传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,简称:TCP/IP)是当代互联网的基础,已获得广泛应用,随着IP化技术的发展,用户通过长期演进(Long Term Evolution,简称:LTE)或者通用移动通信系统(Universal Mobile Telecommunications System,简称:UMTS)、全球微波互联接入(Worldwide Interoperability for Microwave Access,简称:WiMax)等IP化的移动通信网络访问互联网内容越来越普遍。其中,客户端与互联网服务器间建立TCP连接需要经过第三代合作伙伴计划(3rd Generation Partnership Project,简称:3GPP)网络。其中,客户端与移动通信网络间通过无线链路连接,移动通信网络与互联网服务器间一般通过有线网络连接。其中,无线通信的网络状况会随着时间出现波动,例如,客户端与移动通信网络间的数据传输速率及数据包丢失率随时间变化较为剧烈。基于这种情况,TCP/IP协议本身提供了一定的拥塞控制机制,当无线网络状况变差时,TCP/IP会自动采用相应的拥塞控制方案,调整传输策略。但相比于有线网络,无线网络状况变化更为剧烈,所采用的拥塞控制策略等传输调整策略理应有所不同,以便改善无线接口传输性能,提高网络吞吐率。并且因为TCP连接的传输速率很大程度上取决于服务器端收到确认(Acknowledge,简称:ACK)数据包的速度。而客户端与服务器端之间存在的时延,不仅影响了正常数据包的传输速率,也极大的影响了确认包的传输速率。由此,需要引入网络代理技术,将客户端与互联网服务器间的TCP/IP连接分为两部分,网络代理设备分别与客户端和互联网服务器的TCP建立连接,来实现客户端与互联网服务器的TCP连接。现有的网络代理技术,当互联网服务器与网络代理设备间的数据传输速度快过网络代理设备与客户端间的数据传输速度,或者,网络代理设 备与客户端间的数据传输速度快过互联网服务器与网络代理设备间的数据传输速度,则在一定的时间内,会有部分数据缓存在网络代理设备中。
但是,客户端具有移动性,当客户端从源小区移动进入目标小区时,由于某些原因来不及进行切换,导致需要通过目标小区发生重连。在客户端发生源小区的掉网与目标小区重连后。源小区启用的网络代理设备中缓存的数据没有及时发送到客户端或者互联网服务器。根据现有的TCP协议,客户端会反复要求重传这部分数据,而服务器则认为客户端已经收到了该部分数据,不会进行重传;或者服务器反复要求重传数据,而客户端认为服务器已经收到了该部分数据,从而导致客户端与服务器之间TCP/IP连接中断,业务终止。从而降低了TCP连接的稳定性。
发明内容
本发明提供一种防止TCP连接中断的装置、系统及方法,用于避免因用户设备切换而导致的业务中断。
本发明的第一个方面是提供一种防止TCP连接中断的装置,包括:
处理模块,用于确定用户设备UE需要小区切换;
收发模块,用于向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;将缓存的下行数据发送给所述UE。
结合第一个方面,在第一种可行的实现方式中,所述收发模块,还用于若确认所述缓存的下行数据发送完毕,则指示所述服务器继续发送所述下行数据。
结合第一个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述收发模块,具体用于:
接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
向所述服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述收发模块发送所述下行数据。
结合第一个方面,在第三种可行的实现方式中,所述收发模块,还用于:
向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE 停止向所述代理设备发送上行数据;
将缓存的上行数据发送给所述服务器。
结合第一个方面的第三种可行的实现方式,在第四种可行的实现方式中,所述收发模块,还用于若确认所述缓存的上行数据发送完毕,指示所述UE继续发送所述上行数据。
结合第一个方面的第四种可行的实现方式,在第五种可行的实现方式中,所述收发模块,还用于:
接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
结合第一个方面或第一个方面的任意一种可行的实现方式,在第六种可行的实现方式中,所述处理模块,具体用于:
检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
结合第一个方面的第七种可行的实现方式,在第六种可行的实现方式中,所述处理模块,还用于:
在所述收发模块将缓存的下行数据发送给所述UE之后,或者,在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则停止为所述UE进行代理服务。
本发明的第二个方面是提供一种防止TCP连接中断的装置,包括:
处理模块,用于确定用户设备UE需要小区切换;
收发模块,用于向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;将缓存的上行数据发送给服务器。
结合第二个方面,在第一种可行的实现方式中,所述收发模块,具体用于若确认所述缓存的上行数据发送完毕,则指示所述UE继续发送所述上行数据。
结合第二个方面的第一种可行的实现方式,在第二种可行的实现方式中, 所述收发模块,具体用于:
接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
结合第二个方面或第二个方面的任意一种可行的实现方式,在第三种可行的实现方式中,所述处理模块,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
结合第二个方面或第二个方面的任意一种可行的实现方式,在第四种可行的实现方式中,所述处理模块,还用于:
在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备检停止为所述UE进行代理服务。
本发明的第三个方面是提供一种防止TCP连接中断的装置,包括:
处理模块,用于确定用户设备UE需要小区切换;
收发模块,用于:将缓存的下行数据发送给所述UE;接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。
结合第三个方面,在第一种可行的实现方式中,所述收发模块,还用于:
将缓存的上行数据发送给所述服务器;
接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
结合第三个方面或第三个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述处理模块,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切 换。
结合第三个方面或第三个方面的任意一种可行的实现方式,在第三种可行的实现方式中,所述处理模块,还用于:
在所述收发模块将缓存的下行数据发送给所述UE之后,或者,在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
本发明的第四个方面是提供一种防止TCP连接中断的装置,包括:
处理模块,用于确定用户设备UE需要小区切换;
收发模块,用于:将缓存的上行数据发送给服务器;接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
结合第四个方面,在第一种可行的实现方式中,所述处理模块,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
结合第四个方面或第四个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述处理模块,还用于:
在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则停止为所述UE进行代理服务。
本发明的第五个方面是提供一种防止TCP连接中断的装置,包括:
处理模块,用于在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;
收发模块,用于将所述缓存的下行数据发送给所述UE。
结合第五个方面,在第一种可行的实现方式中,所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
所述处理模块,具体用于指示所述收发模块向所述源小区的代理设备 发送请求消息,所述请求消息包含所述UE的标识;
所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的下行数据。
结合第五个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述收发模块,具体用于根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
结合第五个方面的第一种可行的实现方式,在第三种可行的实现方式中,所述收发模块,具体用于根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
结合第五个方面或第五个方面的任意一种可行的实现方式,在第四种可行的实现方式中,所述收发模块,还用于:
在所述UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
将所述缓存的上行数据发送给所述服务器。
结合第五个方面的第四种可行的实现方式,在第五种可行的实现方式中,所述收发模块,还用于获取所述源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为所述服务器。
结合第五个方面的第五种可行的实现方式,在第六种可行的实现方式中,所述收发模块,具体用于:
接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的下行数据。
本发明的第六个方面是提供一种防止TCP连接中断的装置,包括:
处理模块,用于在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
收发模块,用于将所述缓存的上行数据发送给所述服务器。
结合第六个方面,在第一种可行的实现方式中,所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标 识;或者,
所述处理模块,具体用于指示所述收发模块向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的上行数据。
结合第六个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述收发模块,具体用于根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
结合第六个方面的第一种可行的实现方式,在第三种可行的实现方式中,所述收发模块,具体用于根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
本发明的第七个方面是提供一种防止TCP连接中断的系统,包括:至少一个本发明的第一个方面或第一个方面的任意一种可行的实现方式所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
本发明的第八个方面是提供一种防止TCP连接中断的系统,包括:至少一个本发明的第二个方面或第二个方面的任意一种可行的实现方式所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
本发明的第九个方面是提供一种防止TCP连接中断的系统,包括:至少一个本发明的第三个方面或第三个方面的任意一种可行的实现方式所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
本发明的第十个方面是提供一种防止TCP连接中断的系统,包括:至少一个本发明的第四个方面或第四个方面的任意一种可行的实现方式所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
本发明的第十一个方面是提供一种防止TCP连接中断的系统,包括:至少一个本发明的第五个方面或第五个方面的任意一种可行的实现方式所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务 器。
本发明的第十二个方面是提供一种防止TCP连接中断的系统,包括:至少一个本发明的第六个方面或第六个方面的任意一种可行的实现方式所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
本发明的第十三个方面是提供一种防止TCP连接中断的方法,包括:
代理设备确定用户设备UE需要小区切换;
所述代理设备向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;
所述代理设备将缓存的下行数据发送给所述UE。
结合第十三个方面,在第一种可行的实现方式中,还包括:
若所述代理设备确认所述缓存的下行数据发送完毕,则所述代理设备指示所述服务器继续发送所述下行数据。
结合第十三个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述代理设备指示所述服务器继续发送所述下行数据,包括:
所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
所述代理设备向所述服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。
结合第十三个方面,在第三种可行的实现方式中,还包括:所述代理设备向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;
所述代理设备将缓存的上行数据发送给所述服务器。
结合第十三个方面的第三种可行的实现方式,在第四种可行的实现方式中,还包括:
若所述代理设备确认所述缓存的上行数据发送完毕,所述代理设备指示所述UE继续发送所述上行数据。
结合第十三个方面的第四种可行的实现方式,在第五种可行的实现方式中,所述代理设备指示所述UE继续发送所述上行数据,包括:
所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息 用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
结合第十三个方面或第十三个方面的任意一种可行的实现方式,在第六种可行的实现方式中,所述代理设备确定用户设备UE需要小区切换,包括:
所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
结合第十三个方面的第七种可行的实现方式,在第六种可行的实现方式中,在所述代理设备将缓存的下行数据发送给所述UE之后,或者,在所述代理设备将缓存的上行数据发送给所述服务器之后,还包括:
若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
本发明的第十四个方面是提供一种防止TCP连接中断的方法,包括:
代理设备确定用户设备UE需要小区切换;
所述代理设备向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;
所述代理设备将缓存的上行数据发送给服务器。
结合第十四个方面,在第一种可行的实现方式中,还包括:
若所述代理设备确认所述缓存的上行数据发送完毕,所述代理设备指示所述UE继续发送所述上行数据。
结合第十四个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述代理设备指示所述UE继续发送所述上行数据,包括:
所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
结合第十四个方面或第十四个方面的任意一种可行的实现方式,在第三种可行的实现方式中,所述代理设备确定用户设备UE需要小区切换,包括:
所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
结合第十四个方面或第十四个方面的任意一种可行的实现方式,在第四种可行的实现方式中,在所述代理设备将缓存的上行数据发送给服务器之后,还包括:
若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备检停止为所述UE进行代理服务。
本发明的第十五个方面是提供一种防止TCP连接中断的方法,包括:
代理设备确定用户设备UE需要小区切换;
所述代理设备将缓存的下行数据发送给所述UE;
所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
所述代理设备向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。
结合第十五个方面,在第一种可行的实现方式中,还包括:
所述代理设备将缓存的上行数据发送给所述服务器;
所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
结合第十五个方面或第十五个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述代理设备确定用户设备UE需要小区切换,包括:
所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
结合第十五个方面或第十五个方面的任意一种可行的实现方式,在第三种可行的实现方式中,在所述代理设备将缓存的下行数据发送给所述UE之后,或者所述代理设备将缓存的上行数据发送给所述服务器之后,还包括:
若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
本发明的第十六个方面是提供一种防止TCP连接中断的方法,包括:
代理设备确定用户设备UE需要小区切换;
所述代理设备将缓存的上行数据发送给服务器;
所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
结合第十六个方面,在第一种可行的实现方式中,所述代理设备确定用户设备UE需要小区切换,包括:
所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
结合第十六个方面或第十六个方面的第一种可行的实现方式,在第二种可行的实现方式中,在所述代理设备将缓存的数据发送给所述UE之后,还包括:
若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
本发明的第十七个方面是提供一种防止TCP连接中断的方法,包括:
在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;
将所述缓存的下行数据发送给所述UE。
结合第十七个方面,在第一种可行的实现方式中,所述获取源小区的代理设备缓存的下行数据,包括:
接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的下行数据。
结合第十七个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述向所述源小区的代理设备发送请求消息,包括:
根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
结合第十七个方面的第一种可行的实现方式,在第三种可行的实现方式中,所述接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识,包括:
根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
结合第十七个方面或第十七个方面的任意一种可行的实现方式,在第四种可行的实现方式中,还包括:
在所述UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
将所述缓存的上行数据发送给所述服务器。
结合第十七个方面的第四种可行的实现方式,在第五种可行的实现方式中,还包括:
获取所述源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为所述服务器。
结合第十七个方面的第五种可行的实现方式,在第六种可行的实现方式中,所述获取所述源小区的代理设备缓存的上行数据,包括:
接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的下行数据。
本发明的第十八个方面是提供一种防止TCP连接中断的方法,包括:
在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
将所述缓存的上行数据发送给所述服务器。
结合第十八个方面,在第一种可行的实现方式中,所述获取源小区的代理设备缓存的上行数据,包括:
接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识;或者,
向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的上行数据。
结合第十八个方面的第一种可行的实现方式,在第二种可行的实现方式中,所述向所述源小区的代理设备发送请求消息,包括:
根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
结合第十八个方面的第一种可行的实现方式,在第三种可行的实现方式中,所述接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识,包括:
根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
本发明实施例提供的防止TCP连接中断的装置、系统及方法,通过该装置确定用户设备UE需要小区切换;该装置向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;将缓存的下行数据发送给所述UE。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的下行数据,或者部分缓存数据的丢失而向服务器发起重传,而服务器根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为现有技术TCP连接中断示意图;
图2为本发明实施例提供的一种防止TCP连接中断的装置的状态机示意图;
图3为本发明实施例提供的一种防止TCP连接中断的方法流程示意图;
图4为本发明实施例提供的一种防止TCP连接中断的装置的结构示意图;
图5为本发明实施例提供的一种防止TCP连接中断的装置的结构示意图;
图6为本发明实施例提供的一种防止TCP连接中断的方法的流程示意图;
图7为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图8为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图9为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图10为本发明实施例提供的另一种防止TCP连接中断的方法的交互示意图;
图11为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图12为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图13为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图14为本发明实施例提供的另一种防止TCP连接中断的方法的交互示意图;
图15为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图16为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图17为本发明实施例提供的另一种防止TCP连接中断的方法的交互示意图;
图18为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图;
图19为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为现有技术TCP连接中断示意图,参照图1,在源网络中,客户端与服务器(Server)通过网络代理(Network Proxy)来传输数据。当服务器与网络代理间的数据传输速度快过网络代理与用户设备(User Equipment,简称:UE)间的数据传输速度,或者,当网络代理与用户设备UE间的数据传输速度快过服务器与网络代理间的数据传输速度时,则在一定的时间内,会有部分数据缓存在网络代理中。在通信过程中,网络代理中往往会缓存一部分服务器发送给UE的数据或者缓存一部分UE发送给服务器的数据,同时网络代理已经代替UE向服务器发送了应答确认。如图1所示,以下行数据为例,数据包1与数据包2均为服务器发送给UE的下行数据,网络代理收到数据包1与数据包2后,缓存在网络代理中,并通过TCP/IP连接2向服务器端发送应答确认。
在UE从一个无线接入网(Radio Access Network,简称:RAN)移动到另一个RAN时,例如,图1中UE从RAN1移动进入RAN2,由于某些原因来不及进行切换,导致需要通过RAN2发生重连。在UE发生RAN1的掉网与RAN2重连后。RAN1中启用的代理设备中缓存的数据包2没有及时发送到UE。UE发现数据包2丢包后,向服务器请求重传数据包2。而数据包2已经由RAN1的代理设备向服务器确认收到。在服务器端看来,UE已经确认收到数据包2,后又要求重传,此时按照TCP协议,服务器无法重传数据包2。而UE因为一直收不到数据包2,会反复要求重传,导 致UE与服务器之间TCP/IP连接中断,业务终止。
针对上述问题,本发明下述实施例提供一种防止TCP连接中断的方法、装置及系统,其可以应用于LTE网络,也可以应用于通用移动通信系统(Universal Mobile Telecommunications System,简称:UMTS)、全球移动通信系统(Global System for Mobile Communication,简称:GSM)、全球微波互联接入(Worldwide Interoperability for Microwave Access,简称:WiMax),等其它通信网络。并且防止TCP连接中断的装置能够放置在UMTS陆地无线接入网(UMTS Terrestrial Radio Access Network,简称:UTRAN),演进的通用陆基无线接入网(Evolved Universal Terrestrial Radio Access Network,简称:E-UTRAN),无线网络控制器(Radio Network Controller,简称:RNC),业务网关(Serving GateWay,简称:S-GW),业务GPRS支撑节点(Serving GPRS Support Node,简称:SGSN),分组数据网关(Packet Data Network Gateway,简称:P-GW)等实现代理功能。下面参照具体实施例对防止TCP连接中断的方法、装置及系统进行说明。
图2为本发明实施例提供的一种防止TCP连接中断的装置的状态机示意图,参照图2,防止TCP连接中断的装置作为代理设备,其具有三种状态:“启动”状态、“预备停”状态、“停止”状态。
“启动”状态:代理设备正常为客户端和服务器的两段TCP连接(UE与代理设备之间的TCP连接与代理设备与服务器之间的TCP连接)提供代理服务;代理设备缓存并转发发送端发送的数据,对收到的数据通过TCP连接进行确认应答。
“预备停”状态:代理设备停止接收发送端发送的数据,同时,继续向接收端转发在TCP代理中缓存的数据。
“停止”状态:代理设备停止代理服务,数据透传经过网络代理。
当代理设备处于“启动”状态时,代理设备用于为服务器与UE的TCP连接提供代理服务。在检测满足设置的从“启动”状态切换到“预备停”状态切换策略下(本发明以检测到“阈值1”为例),则代理设备从“启动”状态切换到“预备停”状态。
当代理设备处于“预备停”状态时,代理设备判断UE即将进行小区切换,此时代理设备将缓存中的数据清空,即将缓存的下行数据发送给UE; 或者,将缓存的上行数据发送给服务器。在检测在满足设置的从“预备停”状态切换到“启动”状态切换策略下(本发明以检测到“阈值2”为例),则代理设备从“预备停”状态切换到“启动”状态。
当代理设备处于“预备停”状态时,在检测在满足设置的从“预备停”状态切换到“停止”状态切换策略下(本发明以检测到“阈值4且代理设备缓存数据清空”为例),则代理设备从“预备停”状态切换到“停止”状态。
当代理设备处于“停止”状态时,在检测在满足设置的从“停止”状态切换到“启动”状态切换策略下(本发明以检测到“阈值3和/或其他启动策略”为例),则代理设备从“停止”状态切换到“启动”状态。
具体的,对于代理设备如何从“停止”状态切换至“启动”状态,状态转换触发策略包括但不限于网络运营商为了优化网络传输而设定的规则,如在TCP进入慢启动阶段则TCP代理进入“启动”状态,其他阶段为“停止”状态;或者在传输速率在一定阈值范围时TCP代理进入“启动”状态,阈值范围之外TCP代理切换为“停止”状态。
传统TCP代理技术实现方式为客户端在初始建立TCP/IP连接时即启动网络代理。例如,客户端使用的IP地址被网络代理修改后发送到服务器,这个过程中客户端与服务器间存在两个TCP/IP连接。由于有线通信网中设备是固定的,或者基本固定很少移动,这种代理技术在有线通信网中没有问题,但是无线通信网中由于设备的移动性,当执行网络代理功能的网元发生切换时当前的TCP/IP连接被终止,需要人为手动新建立TCP/IP连接,极大的影响了用户的业务体验。
而将上述三种状态引入代理设备后,其能有效的避免传统TCP代理技术的上述弊端,下面通过具体实施顺利进行说明。图3为本发明实施例提供的一种防止TCP连接中断的方法流程示意图,参照图3。
其中,当作为网络代理的代理设备处于“停止”状态时,其可以从“停止”状态切换至“启动”状态,具体的,网络代理记录TCP连接过程中的参数:源IP地址,目的IP地址,TCP序号及TCP应答序号,然后根据记录信息分别启动两段TCP代理功能(即图中TCP/IP连接1和TCP/IP连接2)。
网络代理启动两段TCP代理功能方法:代服务器保持与UE的TCP连接[即代服务器发送给UE下行数据或接收来自UE的上行数据,并保持 服务器的IP地址、TCP端口号及服务器的TCP序号(Sequence Number)及TCP应答序号(Acknowledgment Number)],称此TCP连接为TCP/IP连接1,以及代UE保持与服务器的TCP连接(即代UE向服务器发送上行数据或接收从服务器向UE发送的下行数据,并保持UE的IP地址、TCP端口号及UE的TCP序号及TCP应答序号),称此TCP连接为TCP/IP连接2。此操作过程对于UE及服务器都是透明操作。
当网络代理处于“启动”状态时,其可以向“停止”状态切换,也可以向“预备停”状态切换。其中向“停止”状态切换时,网络代理缓存清空,网络代理停止代理服务,数据透传经过网络代理。
当网络代理从“启动”状态向“预备停”状态进行切换时,网络代理向数据的发送端发送停止数据发送指示,例如接收窗口置“0”;或不发送确认消息(ACK);与此同时,网络代理继续向数据的接收端转发器缓存的数据。
当网络代理处于“预备停”状态时,其可以向“启动”状态切换,也可以向“停止”状态切换。其中,当向“启动”状态切换时,网络代理向发送端发送恢复数据发送指示,例如恢复接收窗口;或者,向发送端转发接收端的确认消息。
当向“停止”状态切换时,在网络代理缓存清空时,网络代理停止代理服务,数据透传经过网络代理。
图4为本发明实施例提供的一种防止TCP连接中断的装置的结构示意图,该装置作为代理设备,可以执行上述网络代理的相应功能,参照图4,该装置包括:处理模块100、收发模块101。
处理模块100,用于确定用户设备UE需要小区切换;
收发模块101,用于向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;将缓存的下行数据发送给所述UE。
本发明实施例提供的防止TCP连接中断的装置,通过处理模块确定用户设备UE需要小区切换;收发模块向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;将缓存的下行数据发送给所述UE。从而避免了UE在与源小区连接断开,与 新小区连接之后,由于没有收到部分TCP代理缓存的下行数据,或者部分缓存数据的丢失而向服务器发起重传,而服务器根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
可选的,所述收发模块101,还用于若确认所述缓存的下行数据发送完毕,则指示所述服务器继续发送所述下行数据。
进一步的,所述收发模块101,具体用于:
接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
向所述服务器发送第二确认消息,所述第二确认消息用于指示所述UE成功接收所述缓存的下行数据中的最后一个数据包。
可选的,所述收发模块101,还用于:
向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;将缓存的上行数据发送给所述服务器。
进一步的,所述收发模块101,还用于若确认所述缓存的上行数据发送完毕,指示所述UE继续发送所述上行数据。
进一步的,所述收发模块101,还用于:
接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
具体的,所述第四确认消息表示所述服务器成功接收所述缓存的上行数据中的最后一个数据包。当UE接到该第四确认消息后,即认为可以继续向所述收发模块发送所述上行数据。
优选的,所述处理模块100,具体用于:
检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
进一步的,所述处理模块100,还用于:
在所述收发模块101将缓存的下行数据发送给所述UE之后,或者,在所述收发模块101将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则停 止为所述UE进行代理服务。
继续参照图4,该装置还能实现如下功能:
处理模块100,用于确定用户设备UE需要小区切换;
收发模块101,用于向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;将缓存的上行数据发送给服务器。
本发明实施例提供的防止TCP连接中断的装置,通过处理模块确定用户设备UE需要小区切换;收发模块向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;将缓存的上行数据发送给服务器。从而避免UE发送的上行数据因为UE的切换而发生丢失。
优选的,所述收发模块101,具体用于若确认所述缓存的上行数据发送完毕,则指示所述UE继续发送所述上行数据。
进一步的,所述收发模块101,具体用于:
接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
优选的,所述处理模块100,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
优选的,所述处理模块100,还用于:
在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备检停止为所述UE进行代理服务。
继续参照图4,该装置还可以用于实现如下功能:
处理模块100,用于确定用户设备UE需要小区切换;
收发模块101,用于:将缓存的下行数据发送给所述UE;接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数 据。
本发明实施例提供的防止TCP连接中断的装置,通过处理模块确定用户设备UE需要小区切换;收发模块将缓存的下行数据发送给所述UE;接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的下行数据,或者部分缓存数据的丢失而向服务器发起重传,而服务器根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
进一步的,所述收发模块101,还用于:
将缓存的上行数据发送给所述服务器;
接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
进一步的,所述处理模块100,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
可选的,所述处理模块100,还用于:
在所述收发模块将缓存的下行数据发送给所述UE之后,或者,在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
继续参照图4,该装置还可以用于实现如下功能:
处理模块100,用于确定用户设备UE需要小区切换;
收发模块101,用于:将缓存的上行数据发送给服务器;接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行 数据。
本发明实施例提供的防止TCP连接中断的装置,通过处理模块确定用户设备UE需要小区切换;收发模块将缓存的上行数据发送给服务器;接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的上行数据,或者部分缓存数据的丢失而向UE发起重传,而UE根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
进一步的,所述处理模块100,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
进一步的,所述处理模块100,还用于:
在所述收发模块101将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则停止为所述UE进行代理服务。
继续参照图4,该装置还可以用于实现如下功能:
处理模块100,用于在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;
收发模块101,用于将所述缓存的下行数据发送给所述UE。
本发明实施例提供的防止TCP连接中断的装置,通过处理模块在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;收发模块再将所述缓存的下行数据发送给所述UE,从而实现了将代理设备缓存的下行数据发送给UE,保证了TCP连接不发生中断,提高了通信的稳定性。避免UE切换至目标小区后,由于没有收到之前的下行数据而向服务器发起重传请求,而服务器根据TCP协议对已经收到ACK确认的数据不进行重传而导致的TCP连接中断。
进一步的,对于如何获取源小区的代理设备缓存的下行数据,有两种 可行的方式,方式一:所述收发模块101,还用于接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;
方式二:所述处理模块100,具体用于指示所述收发模块101向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
所述收发模块101,还用于接收所述源小区的代理设备发送的所述缓存的下行数据。
进一步的,所述收发模块101,具体用于根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
可选的,所述收发模块101,具体用于根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
进一步的,所述收发模块101,在所述UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
将所述缓存的上行数据发送给所述服务器。
进一步的,所述收发模块101,还用于获取所述源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为所述服务器。
进一步的,所述收发模块101,具体用于:
接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的下行数据。
继续参照图4,该装置还可以用于实现如下功能:
处理模块100,用于在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
收发模块101,用于将所述缓存的上行数据发送给所述服务器。
本发明实施例提供的防止TCP连接中断的装置,通过处理模块在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;收发模块再将所述缓存的上行数据发送给服务器,从而实现了将代理设备缓存的上行数据发送给服务器,保 证了TCP连接不发生中断,提高了通信的稳定性。避免UE切换至目标小区后,由于没有收到之前的上行数据而向UE发起重传请求,而UE根据TCP协议对已经收到ACK确认的数据不进行重传而导致的TCP连接中断。
进一步的,对于如何获取源小区的代理设备缓存的上行数据,有两种可行的方式,方式一:所述收发模块101,还用于接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
方式二:所述处理模块100,具体用于指示所述收发模块向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
所述收发模块101,还用于接收所述源小区的代理设备发送的所述缓存的上行数据。
进一步的,所述收发模块101,具体用于根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
可选的,所述收发模块101,具体用于根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
图5为本发明实施例提供的一种防止TCP连接中断的装置的结构示意图,该装置作为代理设备,可以执行上述网络代理的相应功能,参照图5,该装置包括:处理器200、收发器201。
图5所述的防止TCP连接中断的装置可以具有图4对应实施例中装置的功能,具体的,处理器200可以执行并处理模块100的全部功能;收发器201可以执行并收发模块101的全部功能。相应地,图5所示的装置可以实现图4对应各个实施例的技术效果。
图6为本发明实施例提供的一种防止TCP连接中断的方法的流程示意图,图6,该执行主体为上文所述的防止TCP连接中断的装置,该防止TCP连接中断的装置作为代理设备,其可以采用图4或图5所示的结构,并执行对应实施例的功能,能够实现服务器与UE之间的TCP代理,参照图6,该方法包括如下步骤:
步骤100、代理设备确定用户设备UE需要小区切换;
步骤101、所述代理设备向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;
步骤102、所述代理设备将缓存的下行数据发送给所述UE。
需要说明的是,当服务器与代理设备间的数据传输速度快过代理设备与UE间的数据传输速度,则在一定的时间内,会有部分下行数据缓存在代理设备中。
本发明实施例提供的防止TCP连接中断的方法,通过代理设备确定用户设备UE需要小区切换,所述代理设备向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据,之后所述代理设备将缓存的下行数据发送给所述UE。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的下行数据,或者部分缓存数据的丢失而向服务器发起重传,而服务器根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
进一步的,对于步骤101,所述代理设备向服务器发送第一指示消息,一种可行的实现方式为:代理设备向服务器发送第一指示消息,该第一指示消息指示接收窗口为0。具体的,第一指示消息可以为代理设备向服务器发送的TCP确定消息的中头域的窗口(window)字段中设置携带接收窗口为0,此TCP消息可以为上行数据包或者是ACK确认包。
在“预备停”状态下,即本发明中的代理设备的接收窗口为0的情况下,按照TCP协议,在服务器收到接收窗口为0的指示后,服务器不会继续发送下行数据。
在图6的基础上,图7为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,参照图7,在步骤102之后,还包括:
步骤103、若所述代理设备确认所述缓存的下行数据发送完毕,则所述代理设备指示所述服务器继续发送所述下行数据。
具体的,当所述代理设备确认所述缓存的下行数据清空时,此时UE假如进行小区切换,则其所需的都已获得,因此再完成切换后不会出现UE接收不到缓存数据的情况。
进一步的,对于步骤103,一种可行的实现方式为:
步骤103a、所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成 功接收;
具体的,当代理设备接收所述UE发送的第一确认消息时,则说明,UE已经将缓存的下行数据全部接收成功,即代理设备缓存的下行数据清空。
步骤103b、所述代理设备向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。服务器根据TCP确认消息头域的窗口(window)字段中的接收窗口,可继续发送下行数据。第二确认消息和第一确认消息可以是同一个消息。即第二确认消息为代理设备向服务器转发UE发送的第一确认消息。
具体的,当代理设备将缓存的下行数据发送给UE后,UE会向代理设备发送确认消息(ACK),以告知代理设备成功接收,此时,对于本方案的代理设备,其并不将所有的确认消息转发给服务器,而是在接收到缓存的下行数据包中的最后一个数据包对应的确认消息,即上文第一确认消息后,则代理设备向服务器发送第二确认消息,以告知服务器,UE已成功接收缓存的下行数据中的最后一个数据包,服务器根据TCP确认消息头域的窗口(window)字段中的接收窗口,可继续向UE发送下行数据。
进一步地,当代理设备与UE间的数据传输速度快过服务器与代理设备间的数据传输速度,则在一定的时间内,会有部分上行数据缓存在代理设备中。通常代理设备会分别设置两个缓存,分别用于缓存上行数据和下行数据,对于清空缓存的下行数据(参见步骤100至步骤104)和清空缓存的上行数据,代理设备的处理过程可以是彼此独立的,也可以是同时进行的,下面通过具体实施例对清空缓存的上行数据的方案进行说明。图8为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,该代理设备可以采用图4或图5所示的结构,并执行对应实施例的功能,参照图8,该方法包括如下步骤:
步骤200、代理设备确定用户设备UE需要小区切换;
步骤201、所述代理设备向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;
步骤202、所述代理设备将缓存的上行数据发送给所述服务器。
需要说明的是,步骤200与上文步骤100完全一样,可见本方案的步骤201与步骤202可以与上文图6或图7对应的实施例同时执行,只要代 理设备缓存了上行数据,即可执行步骤201和步骤202。
本发明实施例提供的防止TCP连接中断的方法,通过代理设备确定用户设备UE需要小区切换,所述代理设备向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据,之后所述代理设备将缓存的上行数据发送给所述服务器。从而避免UE发送的上行数据因为UE的切换而发生丢失。
进一步的,对于步骤201,代理设备向UE发送的第二指示消息,具体实现方式与上文第一指示消息类似,即通过增加接收窗口为0实现,此处不再赘述。
在图8的基础上,图9为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,参照图9,在步骤202之后,还包括:
步骤203、若确认所述代理设备确认所述缓存的上行数据发送完毕,所述代理设备指示所述UE继续发送所述上行数据。
具体的,其与上文步骤103的目的一样,即在保证缓存的数据清空时,指示UE继续发送上行数据。从而避免了UE切换过程中TCP连接的中断。
进一步的,步骤203的一种可行的实现方式为:
步骤203a、所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
具体的,与上文步骤103a类似,当代理设备接收到第三确认消息后,即说明服务器已经将代理设备发送的缓存的上行数据。
步骤203b、所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。UE根据TCP确认消息头域的窗口(window)字段中的接收窗口,可继续发送下行数据。
优选的,对于上文步骤100与步骤200,如何判断UE即将进行小区切换,下面给出一种可行的实现方式:
所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
需要说明的是,阈值范围具体的表现形式可以为:接收功率、传输速 率等。即当代理设备处于上文“启动”状态时,当经过上述判断确定所述UE即将进行小区切换后,即切入“预备停”状态。
进一步的,在上文的基础上,由于代理设备可能将缓存的下行数据发送给所述UE和/或将缓存的上行数据发送给所述服务器,因此,基于不同的发送缓存数据的场景,在缓存的数据清理完毕之后,还有如下处理。
在所述代理设备将缓存的下行数据发送给所述UE之后,或者所述代理设备将缓存的上行数据发送给所述服务器之后,还包括:
若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
具体的,当代理设备处于“预备停”状态,并将缓存的上行数据,和/或缓存的下行数据清空后,所述UE与所述源小区的无线接入设备之间信道仍处于所述阈值范围,则停止为所述UE进行代理服务,即切换至“停止”状态。
下面以代理设备缓存下行数据为例,对上文图3至图5的方法进行说明。
图10为本发明实施例提供的另一种防止TCP连接中断的方法的交互示意图,参照图10,UE在RAN1存在TCP网络代理场景下,与服务器进行数据传输。客户端与服务器之间的数据包通过TCP网络代理转发,TCP网络代理状态为“启动”。TCP网络代理在收到服务器发送的数据包后,向服务器发送确认应答。在TCP网络代理与服务器之间数据传输速率大于客户端与TCP网络代理之间数据传输速率时,TCP网络代理会缓存一部分数据。RAN1检测到RAN1检测到UE与eNB之间信道衰退到设定的阈值,即阈值1,把TCP代理状态从“启动”切换到“预备停”状态。在发生“启动”状态切换到“预备停”状态的情况下,触发TCP网络代理向服务器发送指示:接收窗口为0。指示信息可以在TCP网络代理向服务器发送的确定应答中设置携带。在“预备停”状态下,即本发明中的TCP网络代理接收窗口为0的情况下,按照TCP协议,在服务器收到接收窗口为0的指示后,服务器不会继续发送下行数据。“预备停”状态下,TCP代理向客户端发送完缓存中的数据,并且RAN1检测到UE与eNB之间信道处于设定的阈值4范围内时,即把TCP代理状态从“预备停”切换到“停止”状态。在发生“预 备停”切换到“停止”状态的情况下,触发TCP网络代理向服务器发送指示:恢复接收窗口。指示信息可以在TCP网络代理向服务器转发客户端的确定应答中设置携带。在TCP网络代理处于“停止”状态时,客户端与服务器之间的交互直接通过上图TCP连接3完成,如发生掉网重连(即UE在从RAN1移动到RAN2过程中,没有完成切换,而UE与RAN1连接断开,与RAN2发生重连接),则对TCP连接3没有影响。
进一步的,图11为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,参照图11,以代理设备发送缓存的下行数据为例,该流程包括如下步骤:
步骤1、客户端与服务器之间建立TCP连接,进行数据传输。
其中,客户端可以为上文中所述UE,序号=X为UE向服务器发送的数据的TCP序号(即上行数据TCP序号);序号=Y-1为服务器向UE发送的数据的TCP序号(即下行数据TCP序号)。
步骤2、TCP连接建立之后,或者在数据传输过程中启动TCP网络代理。此时TCP网络代理状态为“启动”。
步骤3、服务器向客户端发送下行数据,客户端与服务器之间的数据包通过TCP网络代理转发。
步骤4、在TCP网络代理与服务器之间数据传输速率大于客户端与TCP网络代理之间数据传输速率时,网络代理缓存数据。
步骤5、TCP网络代理在收到服务器发送的数据包后,向服务器发送确认应答。
步骤6、RAN1检测到RAN1检测到UE与eNB之间信道衰退到设定的阈值,即阈值1,把TCP代理状态从“启动”切换到“预备停”状态。
步骤7、在发生“启动”状态切换到“预备停”状态的情况下,触发TCP网络代理向服务器发送指示:接收窗口为0。指示信息可以在TCP网络代理向服务器发送的确定应答中设置携带。
步骤8、TCP网络代理把缓存数据转发给客户端。
步骤9、客户端在收到TCP网络代理发送的数据包后,向TCP网络代理发送确认应答。
步骤10、“预备停”状态下,TCP代理向客户端发送完缓存中的数据, 并且RAN1检测到UE与eNB之间信道处于设定的阈值4范围内时,即把TCP代理状态从“预备停”切换到“停止”状态。
步骤11、在发生“预备停”切换到“停止”状态的情况下,触发TCP网络代理向服务器发送指示:恢复接收窗口。指示信息可以在TCP网络代理向服务器转发客户端的确定应答中设置携带。
具体的,UE根据TCP确认消息头域的窗口(window)字段中的接收窗口,可继续发送下行数据。
步骤12、在TCP网络代理处于“停止”状态时,客户端与服务器之间的交互直接通过它们之间TCP连接完成数据传输。
步骤13、发生掉网重连(即UE在从RAN1移动到RAN2过程中,没有完成切换,而UE与RAN1连接断开,与RAN2发生重连接)。
客户端与服务器之间的通过它们之间TCP连接继续进行数据传输,即此时掉网重连没有造成TCP数据传输的影响。
对于上文图6至图11对应的实施例,当代理设备处于“预备停”状态,其需要向服务器或UE发送暂停传输指示,以便指示服务器或UE暂停发送下行数据或上行数据,在此基础上,代理设备才会进行缓存的上行数据或缓存的下行数据的发送。但是,采用这种方式需要增加新的指示,这样增加了交互的开销,为了避免不必要的开销,本发明实施例提供另一种防止TCP连接中断的方法,下面通过具体的实施例进行说明。
图12为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,该执行主体为上文所述的防止TCP连接中断的装置,该防止TCP连接中断的装置作为代理设备,可以采用图4或图5所示的结构,并执行对应实施例的功能,能够实现服务器与UE之间的TCP代理,参照图12,该方法包括如下步骤:
步骤300、代理设备确定用户设备UE需要小区切换;
步骤301、所述代理设备将缓存的下行数据发送给所述UE;
步骤302、所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
步骤303、所述代理设备向服务器发送第二确认消息,所述第二确认消 息用于指示所述服务器继续向所述代理设备发送所述下行数据。
需要说明的是,当代理设备仅在接收到缓存的下行数据包中的最后一个数据包对应的确认消息,即上文第一确认消息后,向服务器发送第二确认消息,以告知服务器,UE已成功接收缓存的下行数据中的最后一个数据包。
本发明实施例提供的防止TCP连接中断的方法,通过代理设备确定用户设备UE需要小区切换,所述代理设备将缓存的下行数据发送给所述UE,所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收。所述代理设备向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的下行数据,或者部分缓存数据的丢失而向服务器发起重传,而服务器根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
进一步地,当代理设备与UE间的数据传输速度快过服务器与代理设备间的数据传输速度,则在一定的时间内,会有部分上行数据缓存在代理设备中。通常代理设备会分别设置两个缓存,分别用于缓存上行数据和下行数据,对于清空缓存的下行数据(参见步骤300至步骤304)和清空缓存的上行数据,代理设备的处理过程可以是彼此独立的,也可以是同时进行的,下面通过具体实施例对清空缓存的上行数据的方案进行说明。图13为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,该代理设备可以采用图4或图5所示的结构,并执行对应实施例的功能,参照图13,该方法包括如下步骤:
步骤400、代理设备确定用户设备UE需要小区切换;
步骤401、所述代理设备将缓存的上行数据发送给服务器;
步骤402、所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
步骤403、所述代理设备向所述UE发送第四确认消息,所述第四确认 消息用于指示所述UE继续向所述代理设备发送所述上行数据。该第四确认消息可以为代理设备向UE转发服务器发送的第三确认消息。
具体的,UE根据TCP确认消息头域的窗口(window)字段中的接收窗口,可继续发送上行数据。
需要说明的是,步骤400与上文步骤300完全一样,可见本方案的步骤401至步骤403可以与上文图12对应的实施例同时执行,只要代理设备缓存了上行数据,即可执行步骤401至步骤403。
本发明实施例提供的防止TCP连接中断的方法,通过代理设备确定用户设备UE需要小区切换,所述代理设备将缓存的上行数据发送给服务器,所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收,所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。从而避免了UE在与源小区连接断开,与新小区连接之后,由于没有收到部分TCP代理缓存的上行数据,或者部分缓存数据的丢失而向UE发起重传,而UE根据TCP协议对已经确认过的数据包不进行重传而导致的TCP连接中断,业务中断的问题。
优选的,对于上文步骤300与步骤400,如何判断UE即将进行小区切换,下面给出一种可行的实现方式:
所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
进一步地,在所述代理设备将缓存的下行数据发送给所述UE之后,或者所述代理设备将缓存的上行数据发送给所述服务器之后,还包括:
若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
对于阈值范围,上文已进行了说明,此处不再赘述。
下面以代理设备缓存下行数据为例,对上文图8、图9的方法进行说明。
图14为本发明实施例提供的另一种防止TCP连接中断的方法的交互示意图,参照图14,其与图6至图9对应实施例的区别在于,图6至图9 对应实施例中,在发生“启动”状态切换到“预备停”状态的情况下,触发TCP网络代理向服务器发送指示:接收窗口为0。而在参照图14,需要更改TCP网络代理的设置,设定在“预备停”状态下接收到的数据不发ACK确认。
参照图14,UE在RAN1存在TCP网络代理场景下,与服务器进行数据传输。客户端与服务器之间的数据包通过TCP网络代理转发,TCP网络代理状态为“启动”。TCP网络代理在收到服务器发送的数据包后,向服务器发送确认应答。在TCP网络代理与服务器之间数据传输速率大于客户端与TCP网络代理之间数据传输速率时,TCP网络代理会缓存一部分数据。RAN1检测到RAN1检测到UE与eNB之间信道衰退到设定的阈值,即阈值1,把TCP代理状态从“启动”切换到“预备停”状态。在“预备停”状态下,本实施例需要更改TCP网络代理的设置,设定在“预备停”状态下接收到的数据不发ACK确认。TCP网络代理可以继续接收,并向客户端转发服务器的数据包,但TCP网络代理不会向服务器发送数据包的确认应答。“预备停”状态下,TCP代理向客户端发送完缓存中的数据,并且RAN1检测到UE与eNB之间信道还处于设定的阈值4范围内时,即把TCP代理状态从“预备停”切换到“停止”状态。在TCP网络代理处于“停止”状态时,客户端与服务器之间的交互直接通过上图TCP连接3完成,如发生掉网重连(即UE在从RAN1移动到RAN2过程中,没有完成切换,而UE与RAN1连接断开,与RAN2发生重连接),则对TCP连接3没有影响。
对于上述实施例中,代理设备发送缓存的上行数据的场景,需要说明的是:UE在RAN1存在TCP网络代理场景下,与服务器进行数据传输。UE与服务器之间的上行数据包通过TCP网络代理转发,TCP网络代理状态为“启动”。TCP网络代理在收到UE给服务器发送的上行数据包后,向UE发送确认应答。在TCP网络代理与UE之间数据传输速率大于TCP网络代理与服务器之间数据传输速率时,TCP网络代理会缓存一部分数据。RAN1检测到RAN1检测到UE与eNB之间信道衰退到设定的阈值,即阈值4,把TCP代理状态从“启动”切换到“预备停”状态。在发生“启动”状态切换到“预备停”状态的情况下,触发TCP网络代理向UE发送指示:接收窗口为0。指示信息可以在TCP网络代理向UE发送的确定应答中设置携带。在“预备停”状态下,即本发明中的TCP网络代理接收窗口为0的情况 下,按照TCP协议,在UE收到接收窗口为0的指示后,UE不会继续发送上行数据。“预备停”状态下,TCP代理向服务器发送完缓存中的数据,并且RAN1检测到UE与eNB之间信道还处于设定的阈值4范围内时,即把TCP代理状态从“预备停”切换到“停止”状态。在发生“预备停”切换到“停止”状态的情况下,触发TCP网络代理向UE发送指示:恢复接收窗口。指示信息可以在TCP网络代理向服务器转发服务器的确定应答中设置携带。
进一步地,上述实施例,代理设备发送缓存的数据都是在UE发生小区切换之前进行了,本发明实施例下述实施例提供一种在UE发生小区切换之后,接入设备发送缓存的下行数据的方式。图15为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,该方法的执行主体为UE在切换完成之后所属小区的接入设备,该设备可以采用图4或图5所示的结构,并执行对应实施例的功能,该设备可以具有TCP代理功能,也可以没有。参照图15,该方法包括如下步骤:
步骤500、在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;
具体的,目标小区为UE在切换完成之后所属小区,本实施例执行主体为该目标小区的接入设备。
步骤501、将所述缓存的下行数据发送给所述UE。
本发明实施例提供的防止TCP连接中断的方法,通过接入设备在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE获取源小区的代理设备缓存的下行数据,接入设备再将所述缓存的下行数据发送给用户设备所述UE,从而实现了将代理设备缓存的下行数据发送给UE,保证了TCP连接不发生中断,提高了通信的稳定性。避免UE切换至目标小区后,由于没有收到之前的下行数据而向服务器发起重传请求,而服务器根据TCP协议对已经收到ACK确认的数据不进行重传而导致的TCP连接中断。
进一步的,步骤500可以通过两种可行的方式实现,即被动接收和主动获取,其实现方式如下:
方式一:接收所述源小区的代理设备发送的所述缓存的下行数据和所 述UE的标识。
方式二:向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的下行数据。
具体的,所述向所述源小区的代理设备发送请求消息,包括:
根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
所述接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识,包括:
根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
进一步地,接入设备还可以将源小区的代理设备缓存的上行数据发送给服务器,需要说明的是,对于接入设备将上行数据发送给服务器,和上述步骤500和步骤501可以同时进行,也可以独立进行。图16为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,该接入设备可以采用图4或图5所示的结构,并执行对应实施例的功能,该参照图16,该方法包括如下步骤:
步骤600、在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
步骤601、将所述缓存的上行数据发送给所述服务器。
本发明实施例提供的防止TCP连接中断的方法,通过接入设备用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器,接入设备再将所述缓存的上行数据发送给所述服务器,从而实现了将代理设备缓存的上行数据发送给服务器,保证了TCP连接不发生中断,提高了通信的稳定性。避免UE切换至目标小区后,由于没有收到之前的上行数据而向UE发起重传请求,而UE根据TCP协议对已经收到ACK确认的数据不进行重传而导致的TCP连接中断。
针对步骤600,参照步骤500的实现方式,也可以分为两种,若步骤600与步骤500同时进行,则上文所述推送消息还包含所述缓存的上行数据;或者,上文所述数据响应消息还包含所述缓存的上行数据。
若步骤600、步骤601独立进行,那么其可行的实现方式为:
方式一:接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
方式二:向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
接收所述源小区的代理设备发送的所述缓存的下行数据。
具体的,所述向所述源小区的代理设备发送数据请求消息,包括:
根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
所述接收所述源小区的代理设备发送的推送消息,包括:
根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
下面通过具体示例对图15与图16对应的实施例进行说明,需要说明的,下文无特殊说明,均已代理设备缓存的下行数据为例进行说明。
图17为本发明实施例提供的另一种防止TCP连接中断的方法的交互示意图,参照图17,UE在离开RAN1,与RAN2发生重连时,携带RAN1标识(如小区ID和/或基站ID(如eNB ID等))。RAN2向RAN1请求重连之前在RAN1缓存的数据。在收到RAN1发送的缓存数据后,转发给UE。此场景下,RAN2有无TCP网络代理不影响方案的实施。
进一步的,图18为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,参照图18,以代理设备发送缓存的下行数据为例,该流程包括如下步骤:
步骤1、客户端与服务器之间建立TCP连接,进行数据传输。
具体的,客户端可以为上文所述UE。
步骤2、TCP连接建立之后,或者在数据传输过程中启动TCP网络代理。
步骤3、服务器向客户端发送下行数据,客户端与服务器之间的数据包通过TCP网络代理转发。
步骤4、在TCP网络代理与服务器之间数据传输速率大于客户端与TCP网络代理之间数据传输速率时,网络代理会缓存数据。
步骤5、TCP网络代理在收到服务器发送的数据包后,向服务器发送 下行数据应答。
步骤6、发生掉网重连(即UE在从RAN1移动到RAN2过程中,没有完成切换,而UE与RAN1连接断开,与RAN2发生重连接)。
步骤7、UE向RAN2发送RAN1标识(可以在UE与RAN2重连的信令中携带)。
步骤8、RAN2根据RAN1标识,向RAN1请求缓存数据。
步骤9、RAN1向RAN2发送缓存数据。
步骤10、RAN2向UE转发缓存数据
步骤11、客户端与服务器之间的通过它们之间TCP连接继续进行数据传输。
图19为本发明实施例提供的另一种防止TCP连接中断的方法的流程示意图,其对应的实施例与图18对应的实施例的区别在于,图18对应的实施例是通过RAN2向RAN1请求缓存数据,而图19对应的实施例是通过RAN1向RAN2推送缓存数据。图19对应的实施例具体描述如下:RAN1在发现UE从RAN1发生掉网时,向RAN1周围相邻的RAN推送掉网之前在RAN1缓存的数据。RAN2收到RAN1发送的缓存数据后,转发给UE。此场景下,RAN2有无TCP网络代理不影响方案的实施。
参照图19,以代理设备发送缓存的下行数据为例,该流程包括如下步骤:
步骤1、客户端与服务器之间建立TCP连接,进行数据传输。
步骤2、TCP连接建立之后,或者在数据传输过程中启动TCP网络代理。
步骤3、服务器向客户端发送下行数据,客户端与服务器之间的数据包通过TCP网络代理转发。
步骤4、在TCP网络代理与服务器之间数据传输速率大于客户端与TCP网络代理之间数据传输速率时,网络代理会缓存数据。
步骤5、TCP网络代理在收到服务器发送的数据包后,向服务器发送下行数据应答。
步骤6、发生掉网重连(即UE在从RAN1移动到RAN2过程中,没有完成切换,而UE与RAN1连接断开,与RAN2发生重连接)。
步骤7、RAN1在发现UE从RAN1发生掉网时,向RAN1周围相邻的RAN推送掉网之前在RAN1缓存的数据。RAN2根据RAN2标识,向RAN1请求缓存数据。
步骤8、RAN2向UE转发缓存数据
步骤9、客户端与服务器之间的通过它们之间TCP连接继续进行数据传输。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (68)

  1. 一种防止TCP连接中断的装置,其特征在于,包括:
    处理模块,用于确定用户设备UE需要小区切换;
    收发模块,用于向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;将缓存的下行数据发送给所述UE。
  2. 根据权利要求1所述的装置,其特征在于,所述收发模块,还用于若确认所述缓存的下行数据发送完毕,则指示所述服务器继续发送所述下行数据。
  3. 根据权利要求2所述的装置,其特征在于,所述收发模块,具体用于:
    接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
    向所述服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述收发模块发送所述下行数据。
  4. 根据权利要求1所述的装置,其特征在于,所述收发模块,还用于:
    向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;
    将缓存的上行数据发送给所述服务器。
  5. 根据权利要求4所述的装置,其特征在于,所述收发模块,还用于若确认所述缓存的上行数据发送完毕,指示所述UE继续发送所述上行数据。
  6. 根据权利要求5所述的装置,其特征在于,所述收发模块,还用于:
    接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
    向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
  7. 根据权利要求1-6任意一项所述的装置,其特征在于,所述处理模块,具体用于:
    检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
  8. 根据权利要求7所述的装置,其特征在于,所述处理模块,还用于:
    在所述收发模块将缓存的下行数据发送给所述UE之后,或者,在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则停止为所述UE进行代理服务。
  9. 一种防止TCP连接中断的装置,其特征在于,包括:
    处理模块,用于确定用户设备UE需要小区切换;
    收发模块,用于向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;将缓存的上行数据发送给服务器。
  10. 根据权利要求9所述的装置,其特征在于,所述收发模块,具体用于若确认所述缓存的上行数据发送完毕,则指示所述UE继续发送所述上行数据。
  11. 根据权利要求10所述的装置,其特征在于,所述收发模块,具体用于:
    接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
    向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
  12. 根据权利要求9-11任意一项所述的装置,其特征在于,所述处理模块,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
  13. 根据权利要求9-12任意一项所述的装置,其特征在于,所述处理模块,还用于:
    在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备检停止为所述UE进行代理服务。
  14. 一种防止TCP连接中断的装置,其特征在于,包括:
    处理模块,用于确定用户设备UE需要小区切换;
    收发模块,用于:将缓存的下行数据发送给所述UE;接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。
  15. 根据权利要求14所述的装置,其特征在于,所述收发模块,还用于:
    将缓存的上行数据发送给所述服务器;
    接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
    向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
  16. 根据权利要求14或15所述的装置,其特征在于,所述处理模块,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
  17. 根据权利要求14-16任意一项所述的装置,其特征在于,所述处理模块,还用于:
    在所述收发模块将缓存的下行数据发送给所述UE之后,或者,在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
  18. 一种防止TCP连接中断的装置,其特征在于,包括:
    处理模块,用于确定用户设备UE需要小区切换;
    收发模块,用于:将缓存的上行数据发送给服务器;接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
  19. 根据权利要求18所述的装置,其特征在于,所述处理模块,具体用于检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围, 则确定所述UE即将进行小区切换。
  20. 根据权利要求18或19所述的装置,其特征在于,所述处理模块,还用于:
    在所述收发模块将缓存的上行数据发送给所述服务器之后,若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则停止为所述UE进行代理服务。
  21. 一种防止TCP连接中断的装置,其特征在于,包括:
    处理模块,用于在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;
    收发模块,用于将所述缓存的下行数据发送给所述UE。
  22. 根据权利要求21所述的装置,其特征在于,所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
    所述处理模块,具体用于指示所述收发模块向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
    所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的下行数据。
  23. 根据权利要求22所述的装置,其特征在于,所述收发模块,具体用于根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
  24. 根据权利要求22所述的装置,其特征在于,所述收发模块,具体用于根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
  25. 根据权利要求21-24任意一项所述的装置,其特征在于,所述收发模块,还用于:
    在所述UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
    将所述缓存的上行数据发送给所述服务器。
  26. 根据权利要求25所述的装置,其特征在于,所述收发模块,还用于获取所述源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为所述服务器。
  27. 根据权利要求26所述的装置,其特征在于,所述收发模块,具体用于:
    接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
    向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
    接收所述源小区的代理设备发送的所述缓存的下行数据。
  28. 一种防止TCP连接中断的装置,其特征在于,包括:
    处理模块,用于在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
    收发模块,用于将所述缓存的上行数据发送给所述服务器。
  29. 根据权利要求28所述的装置,其特征在于,所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识;或者,
    所述处理模块,具体用于指示所述收发模块向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
    所述收发模块,还用于接收所述源小区的代理设备发送的所述缓存的上行数据。
  30. 根据权利要求29所述的装置,其特征在于,所述收发模块,具体用于根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
  31. 根据权利要求29所述的装置,其特征在于,所述收发模块,具体用于根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
  32. 一种防止TCP连接中断的系统,其特征在于,包括:至少一个权利要求1-8任意一项所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
  33. 一种防止TCP连接中断的系统,其特征在于,包括:至少一个权利要求9-13任意一项所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
  34. 一种防止TCP连接中断的系统,其特征在于,包括:至少一个权 利要求14-17任意一项所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
  35. 一种防止TCP连接中断的系统,其特征在于,包括:至少一个权利要求18-20任意一项所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
  36. 一种防止TCP连接中断的系统,其特征在于,包括:至少一个权利要求21-27任意一项所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
  37. 一种防止TCP连接中断的系统,其特征在于,包括:至少一个权利要求28-31任意一项所述的种防止TCP连接中断的装置和至少一个用户设备UE和至少一个服务器。
  38. 一种防止TCP连接中断的方法,其特征在于,包括:
    代理设备确定用户设备UE需要小区切换;
    所述代理设备向服务器发送第一指示消息,所述第一指示消息用于指示所述服务器停止向所述代理设备发送下行数据;
    所述代理设备将缓存的下行数据发送给所述UE。
  39. 根据权利要求38所述的方法,其特征在于,还包括:
    若所述代理设备确认所述缓存的下行数据发送完毕,则所述代理设备指示所述服务器继续发送所述下行数据。
  40. 根据权利要求39所述的方法,其特征在于,所述代理设备指示所述服务器继续发送所述下行数据,包括:
    所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
    所述代理设备向所述服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。
  41. 根据权利要求38所述的方法,其特征在于,还包括:所述代理设备向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;
    所述代理设备将缓存的上行数据发送给所述服务器。
  42. 根据权利要求41所述的方法,其特征在于,还包括:
    若所述代理设备确认所述缓存的上行数据发送完毕,所述代理设备指示所述UE继续发送所述上行数据。
  43. 根据权利要求42所述的方法,其特征在于,所述代理设备指示所述UE继续发送所述上行数据,包括:
    所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
    所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
  44. 根据权利要求38-43任意一项所述的方法,其特征在于,所述代理设备确定用户设备UE需要小区切换,包括:
    所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
  45. 根据权利要求44所述的方法,其特征在于,在所述代理设备将缓存的下行数据发送给所述UE之后,或者,在所述代理设备将缓存的上行数据发送给所述服务器之后,还包括:
    若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
  46. 一种防止TCP连接中断的方法,其特征在于,包括:
    代理设备确定用户设备UE需要小区切换;
    所述代理设备向所述UE发送第二指示消息,所述第二指示消息用于指示所述UE停止向所述代理设备发送上行数据;
    所述代理设备将缓存的上行数据发送给服务器。
  47. 根据权利要求46所述的方法,其特征在于,还包括:
    若所述代理设备确认所述缓存的上行数据发送完毕,所述代理设备指示所述UE继续发送所述上行数据。
  48. 根据权利要求47所述的方法,其特征在于,所述代理设备指示所述UE继续发送所述上行数据,包括:
    所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接 收;
    所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
  49. 根据权利要求46-48任意一项所述的方法,其特征在于,所述代理设备确定用户设备UE需要小区切换,包括:
    所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE需要小区切换。
  50. 根据权利要求46-49任意一项所述的方法,其特征在于,在所述代理设备将缓存的上行数据发送给服务器之后,还包括:
    若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备检停止为所述UE进行代理服务。
  51. 一种防止TCP连接中断的方法,其特征在于,包括:
    代理设备确定用户设备UE需要小区切换;
    所述代理设备将缓存的下行数据发送给所述UE;
    所述代理设备接收所述UE发送的第一确认消息,所述第一确认消息用于指示所述缓存的下行数据中的最后一个数据包被所述UE成功接收;
    所述代理设备向服务器发送第二确认消息,所述第二确认消息用于指示所述服务器继续向所述代理设备发送所述下行数据。
  52. 根据权利要求51所述的方法,其特征在于,还包括:
    所述代理设备将缓存的上行数据发送给所述服务器;
    所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
    所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述代理设备发送所述上行数据。
  53. 根据权利要求51或52所述的方法,其特征在于,所述代理设备确定用户设备UE需要小区切换,包括:
    所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
  54. 根据权利要求51-53任意一项所述的方法,其特征在于,在所述代 理设备将缓存的下行数据发送给所述UE之后,或者所述代理设备将缓存的上行数据发送给所述服务器之后,还包括:
    若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
  55. 一种防止TCP连接中断的方法,其特征在于,包括:
    代理设备确定用户设备UE需要小区切换;
    所述代理设备将缓存的上行数据发送给服务器;
    所述代理设备接收所述服务器发送的第三确认消息,所述第三确认消息用于指示所述缓存的上行数据中的最后一个数据包被所述服务器成功接收;
    所述代理设备向所述UE发送第四确认消息,所述第四确认消息用于指示所述UE继续向所述收发模块发送所述上行数据。
  56. 根据权利要求55所述的方法,其特征在于,所述代理设备确定用户设备UE需要小区切换,包括:
    所述代理设备检测所述UE与源小区的无线接入设备之间的信道衰退到达阈值范围,则确定所述UE即将进行小区切换。
  57. 根据权利要求55或56所述的方法,其特征在于,在所述代理设备将缓存的数据发送给所述UE之后,还包括:
    若所述UE与所述源小区的无线接入设备之间的信道衰退仍处于所述阈值范围,则所述代理设备停止为所述UE进行代理服务。
  58. 一种防止TCP连接中断的方法,其特征在于,包括:
    在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的下行数据,所述缓存的下行数据的接收方为所述UE;
    将所述缓存的下行数据发送给所述UE。
  59. 根据权利要求58所述的方法,其特征在于,所述获取源小区的代理设备缓存的下行数据,包括:
    接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
    向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
    接收所述源小区的代理设备发送的所述缓存的下行数据。
  60. 根据权利要求59所述的方法,其特征在于,所述向所述源小区的代理设备发送请求消息,包括:
    根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
  61. 根据权利要求59所述的方法,其特征在于,所述接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识,包括:
    根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识。
  62. 根据权利要求58-61任意一项所述的方法,其特征在于,还包括:
    在所述UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
    将所述缓存的上行数据发送给所述服务器。
  63. 根据权利要求62所述的方法,其特征在于,还包括:
    获取所述源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为所述服务器。
  64. 根据权利要求63所述的方法,其特征在于,所述获取所述源小区的代理设备缓存的上行数据,包括:
    接收所述源小区的代理设备发送的所述缓存的下行数据和所述UE的标识;或者,
    向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
    接收所述源小区的代理设备发送的所述缓存的下行数据。
  65. 一种防止TCP连接中断的方法,其特征在于,包括:
    在用户设备UE与目标小区重连后,获取源小区的代理设备缓存的上行数据,所述缓存的上行数据的接收方为服务器;
    将所述缓存的上行数据发送给所述服务器。
  66. 根据权利要求65所述的方法,其特征在于,所述获取源小区的代理设备缓存的上行数据,包括:
    接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识;或者,
    向所述源小区的代理设备发送请求消息,所述请求消息包含所述UE的标识;
    接收所述源小区的代理设备发送的所述缓存的上行数据。
  67. 根据权利要求66所述的方法,其特征在于,所述向所述源小区的代理设备发送请求消息,包括:
    根据源小区的标识,向所述源小区的代理设备发送所述请求消息。
  68. 根据权利要求66所述的方法,其特征在于,所述接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识,包括:
    根据源小区的标识,接收所述源小区的代理设备发送的所述缓存的上行数据和所述UE的标识。
PCT/CN2014/094340 2014-12-19 2014-12-19 一种防止tcp连接中断的装置、系统及方法 WO2016095198A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201480032409.XA CN105934922B (zh) 2014-12-19 2014-12-19 一种防止tcp连接中断的装置、系统及方法
EP14908233.1A EP3197120A4 (en) 2014-12-19 2014-12-19 Apparatus, system and method for preventing tcp connection interruption
PCT/CN2014/094340 WO2016095198A1 (zh) 2014-12-19 2014-12-19 一种防止tcp连接中断的装置、系统及方法
US15/625,404 US10425868B2 (en) 2014-12-19 2017-06-16 Apparatus, system, and method for preventing TCP connection interruption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/094340 WO2016095198A1 (zh) 2014-12-19 2014-12-19 一种防止tcp连接中断的装置、系统及方法

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/625,404 Continuation US10425868B2 (en) 2014-12-19 2017-06-16 Apparatus, system, and method for preventing TCP connection interruption

Publications (1)

Publication Number Publication Date
WO2016095198A1 true WO2016095198A1 (zh) 2016-06-23

Family

ID=56125658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094340 WO2016095198A1 (zh) 2014-12-19 2014-12-19 一种防止tcp连接中断的装置、系统及方法

Country Status (4)

Country Link
US (1) US10425868B2 (zh)
EP (1) EP3197120A4 (zh)
CN (1) CN105934922B (zh)
WO (1) WO2016095198A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451345B (zh) * 2016-01-18 2020-07-14 中磊电子(苏州)有限公司 一种上行授权信息发送方法及基站
US10154431B2 (en) * 2016-09-27 2018-12-11 Verizon Patent And Licensing Inc. Congestion mitigation based on user device and base station condition information
CN108322942A (zh) * 2018-01-17 2018-07-24 宇龙计算机通信科技(深圳)有限公司 数据传输方法、装置、终端及计算机可读存储介质
CN111225422B (zh) * 2018-11-23 2021-05-07 大唐移动通信设备有限公司 一种代理数据的处理方法和装置
CN112839308B (zh) * 2019-11-25 2022-06-03 成都鼎桥通信技术有限公司 数据处理方法、装置及存储介质
CN112491871B (zh) * 2020-11-25 2023-07-28 北京宝兰德软件股份有限公司 一种tcp重组方法、装置、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026281A (zh) * 2010-12-21 2011-04-20 大唐移动通信设备有限公司 基于rnc实现tcp代理的方法及装置
CN102340508A (zh) * 2011-10-19 2012-02-01 大唐移动通信设备有限公司 一种数据的传输方法和设备
CN102891883A (zh) * 2007-12-27 2013-01-23 华为技术有限公司 无线传输控制协议处理方法和设备

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6519462B1 (en) * 2000-05-11 2003-02-11 Lucent Technologies Inc. Method and apparatus for multi-user resource management in wireless communication systems
CN101237681A (zh) * 2007-02-01 2008-08-06 华为技术有限公司 切换过程中的数据传输方法、长期演进系统及设备
EP2286615B1 (en) * 2008-05-15 2011-12-14 Telefonaktiebolaget LM Ericsson (publ) Data forwarding during handover in a self-backhauled cell
WO2011129555A2 (en) * 2010-04-11 2011-10-20 Lg Electronics Inc. Apparatus and method of performing measurements logging in wireless communication system
CN102611717A (zh) * 2011-01-19 2012-07-25 中国移动通信集团公司 一种业务数据发送方法、系统、客户端代理及服务器代理
CN103200622A (zh) * 2012-01-09 2013-07-10 株式会社Ntt都科摩 一种通信处理方法、装置及网关设备
KR101983034B1 (ko) * 2012-09-05 2019-09-03 삼성전자주식회사 인터넷을 통한 핸드오버 지원 방법 및 장치
EP2953310B1 (en) 2013-02-26 2018-09-05 Huawei Technologies Co., Ltd. Method, system, and proxy device for data transmission
US20150296418A1 (en) * 2014-04-15 2015-10-15 Nokia Solutions And Networks Oy Methods and Apparatus for Handover Management of Transfer Control Protocol Proxy Communications
US10263669B2 (en) * 2016-08-26 2019-04-16 Qualcomm Incorporated Tiered control of iterative MIMO receivers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891883A (zh) * 2007-12-27 2013-01-23 华为技术有限公司 无线传输控制协议处理方法和设备
CN102026281A (zh) * 2010-12-21 2011-04-20 大唐移动通信设备有限公司 基于rnc实现tcp代理的方法及装置
CN102340508A (zh) * 2011-10-19 2012-02-01 大唐移动通信设备有限公司 一种数据的传输方法和设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3197120A4 *

Also Published As

Publication number Publication date
CN105934922A (zh) 2016-09-07
US20170289872A1 (en) 2017-10-05
US10425868B2 (en) 2019-09-24
CN105934922B (zh) 2019-10-25
EP3197120A4 (en) 2017-11-01
EP3197120A1 (en) 2017-07-26

Similar Documents

Publication Publication Date Title
JP6924830B2 (ja) パケット送信方法および装置、チップ、ならびに端末
EP3397007B1 (en) Method and apparatus for minimizing interruption time of data transfer on handover in wireless communication network
US20180255485A1 (en) Method and system for base station change of packet switched communications in a mobile communications system
US10425868B2 (en) Apparatus, system, and method for preventing TCP connection interruption
EP1520434B1 (en) System for permitting control of the purging of a node b by the serving radio network controller
KR101387475B1 (ko) 복수의 네트워크 엔터티를 포함하는 이동 통신시스템에서의 데이터 처리 방법
US7773628B2 (en) Methods and apparatus for media independent messaging over the internet
WO2014131153A1 (zh) 数据传输方法、系统及代理设备
WO2010130135A1 (zh) 一种长期演进系统中跨基站切换方法及系统
WO2013170789A1 (zh) 一种数据转发的方法、设备及通讯系统
KR20100068249A (ko) 무선 전기통신 네트워크에서 소스로부터 타깃 진화형 node-b로 데이터 포워딩으로 핸드오버하는 방법 및 장치
KR102265454B1 (ko) 이동 통신 네트워크에서 통신 품질 개선 방법 및 장치
WO2014166053A1 (zh) 一种通讯方法和终端
KR101741003B1 (ko) 중복된 애크를 이용한 통신 방법
US20090046577A1 (en) Resuming an interrupted flow of data packets
WO2017107148A1 (zh) 一种数据传输方法及网络侧设备
US20030031161A1 (en) Uplink session extension
WO2016011624A1 (zh) 一种数据包发送、数据处理装置及方法
WO2010127493A1 (zh) 切换处理方法、基站及中继节点
WO2010048850A1 (zh) 数据包的发送、接收方法及装置、以及处理方法及系统
CA2683138A1 (en) Changes of forward-link and reverse-link serving access points
US20100118832A1 (en) Method for connection termination in mobile IP
CN113766580B (zh) 4g与5g网络互切换的实现方法、装置及存储介质
WO2015196419A1 (zh) 基于tcp代理的状态同步方法和设备
KR20200026565A (ko) Tcp 전송 최적화 방법 및 그 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14908233

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014908233

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE