WO2015196419A1 - State synchronization method and device based on tcp proxy - Google Patents

State synchronization method and device based on tcp proxy Download PDF

Info

Publication number
WO2015196419A1
WO2015196419A1 PCT/CN2014/080846 CN2014080846W WO2015196419A1 WO 2015196419 A1 WO2015196419 A1 WO 2015196419A1 CN 2014080846 W CN2014080846 W CN 2014080846W WO 2015196419 A1 WO2015196419 A1 WO 2015196419A1
Authority
WO
WIPO (PCT)
Prior art keywords
access network
radio access
network device
tcp
user equipment
Prior art date
Application number
PCT/CN2014/080846
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2014/080846 priority Critical patent/WO2015196419A1/en
Priority to CN201480037968.XA priority patent/CN105379222B/en
Publication of WO2015196419A1 publication Critical patent/WO2015196419A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Definitions

  • Embodiments of the present invention relate to the field of communications, and in particular, to a method and apparatus for state synchronization based on a TCP proxy.
  • TCP Transmission Control Protocol
  • OSI Open System Interconnection
  • a user equipment establishes a TCP with a server via a radio bearer provided by a radio network controller (RNC, radio network controler) Connection
  • RNC radio network controller
  • the processing of the TCP protocol is done by the user equipment and the server, and the RNC itself is not aware.
  • the TCP protocol is a transport protocol designed for a wired network
  • the premise is that the probability of packet loss due to non-congestion (such as transmission error) on the network is far less than 1%, and for the bearer on the wireless network, there is a rate fluctuation due to the air interface.
  • the interference such as interference, can not meet this assumption very well, plus the small bandwidth, large delay, mobility and other characteristics of the wireless network environment, so the TCP protocol is far less efficient than the fixed network in the wireless network environment.
  • a TCP proxy can be deployed in the RNC. For each TCP connection, after receiving the data packet of the data sender of the TCP connection, the TCP proxy quickly returns an ACK to the data sender, and simultaneously caches the data to the RNC. Local, so that data can be sent to the data receiver in a relatively large window.
  • the data sending end of the downlink direction is a server
  • the data receiving end is a user equipment.
  • the TCP proxy After receiving the data packet of the server, the TCP proxy quickly returns an ACK to the server, and simultaneously caches the data to the local area of the RNC, so that the relatively large window can be accessed. Send data to the user device.
  • the RNC since the RNC locally caches data, it can quickly perform retransmission and recovery to solve the end-to-end optimization problem.
  • the TCP proxy when the TCP proxy is deployed in the RNC, even if the data buffered by the RNC has not been sent to the data receiving end, the TCP proxy has already sent an ACK to the data transmitting end when the data is buffered, so that the TCP state variable of the data transmitting end has been refreshed. If either end of the RNC and the TCP connection needs to be disconnected when the cached data has not been sent to the data receiving end, the TCP state variables at both the data receiving end and the data transmitting end are inconsistent.
  • the RNC caches the data sent by the server to the user equipment through the TCP proxy, and has sent an ACK to the server for the downlink data, so that the TCP state variable of the server side has changed, when the user equipment moves from one RNC to another.
  • RNC or when moving to other standard mobile communication systems, such as the Global System for Mobile Communications (GSM), or long term evolut ion sys tern (LTE), or If the user equipment needs to be released in an abnormal situation, if the downlink data cached on the RNC side is not sent to the user equipment in time, the TCP state variables of the user equipment and the server end may be inconsistent.
  • GSM Global System for Mobile Communications
  • LTE long term evolut ion sys tern
  • the TCP connection between the user equipment and the server is based on the retransmission and timeout mechanism of the TCP protocol, which will cause the client to continuously wait and resend. , eventually leading to TCP chain scission, which affects user experience.
  • the embodiment of the present invention provides a TCP proxy-based state synchronization method and device, so that when a TCP proxy is deployed in an access network device of a mobile communication system, the user equipment is abnormally released or switched to another access network device. At the same time, it can keep in sync with the server's TCP connection status, so as to restore the TCP connection with the server as soon as possible.
  • a method for synchronizing a state based on a TCP proxy including:
  • the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, or the first radio access network device determines to switch the user equipment to the second radio access network.
  • the first radio access network device is configured to provide a TCP proxy for the first TCP connection established between the user equipment and the server, and cache the first TCP connection by using the TCP proxy. Downstream data, or buffering uplink data on the first TCP connection by using the TCP proxy; If the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, or the first radio access network device determines that the user is to be Switching the device to the second radio access network device, where the first radio access network device passes the
  • the TCP proxy sends at least one of the following: the user equipment, or the server, sends a TCP packet carrying the reset RST flag.
  • the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, including:
  • the first radio access network device Determining that the first radio access network device is about to release a signaling connection between the first radio access network device and the user equipment, and the first radio access network device determines to be cached by the TCP proxy
  • the downlink data of the first TCP connection is not sent to the user equipment; or the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released.
  • the first radio access network device determines that uplink data of the first TCP connection buffered by the TCP proxy is not sent to the server.
  • the first radio access network device determines to switch the user equipment to the second radio access network device, including:
  • the first radio access network device determines to switch the user equipment to a second radio access network device, and the first radio access network device determines the first TCP cached by the TCP proxy The downlink data of the connection is not sent to the user equipment; or
  • the first radio access network device determines to switch the user equipment to a second radio access network device, and the first radio access network device determines the first TCP cached by the TCP proxy The uplink data of the connection is not sent to the server.
  • the first radio access network device is configured by the TCP proxy to be at least one of the following:
  • the user equipment, or the server sends a TCP message carrying the reset RST flag, including:
  • the network device Transmitting, by the first radio access network device, a handover request to the core network to the first radio access
  • the network device receives a handover command from the core network, and sends any time between the air interface switch messages to the user equipment according to the handover command, where the first radio access network device separately uses the TCP proxy At least one side of the following: the user equipment, or the server, sends a TCP message carrying a reset RST flag.
  • the method further includes:
  • the first radio access network device stops starting a new TCP proxy for a newly established second TCP connection between the user equipment and the server.
  • the first radio access network device is a radio network controller RNC
  • the second radio access network device It is a radio network controller RNC, or a base station controller BSC, or an evolved base station eNodeB.
  • a TCP proxy-based state synchronization method including: a first radio access network device determining to add a user equipment by using an IUR interface between the first radio access network device and a second radio access network device a wireless link in the second radio access network device, where the first radio access network device provides a TCP proxy for the first TCP connection established between the user equipment and the server, and passes the The TCP proxy caches downlink data on the first TCP connection, or caches uplink data on the first TCP connection by using the TCP proxy;
  • the first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device a wireless link in the device, the first radio access network device sends a TCP 0 window message to the at least one side, the user equipment, or the server by using the TCP proxy to indicate that the sending is suspended. data pack.
  • the first radio access network device sends, by using the TCP proxy, a TCP window message to at least one of the following, the user equipment, or the server.
  • Instructed to suspend sending packets including: The first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device.
  • the wireless link in the device to the first radio access network device is completed by adding an IUR interface between the first radio access network device and the second radio access network device.
  • the first radio access network device passes the TCP proxy to at least one of the following, the user equipment, or the server,
  • the 0 window message of the sending TCP is used to indicate that the data packet is suspended.
  • the method further includes:
  • the first radio access network device determines that the first radio access network device will pass the
  • the downlink data on the first TCP connection cached by the TCP proxy is sent to the user equipment, and the first radio access network device sends a TCP packet of the recovery window to the server by using the TCP proxy, and Exiting the TCP proxy in a downlink direction of the first TCP connection; or
  • the first radio access network device determines that the first radio access network device sends the uplink data on the first TCP connection buffered by the TCP proxy to the server, the first radio The access network device sends a TCP message of the recovery window to the user equipment by using the TCP proxy, and exits the TCP proxy in an uplink direction of the first TCP connection.
  • the method further includes: if the first radio access network device determines that the user equipment has a radio link in the second radio access network device, The first radio access network device stops starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
  • the method further includes:
  • the third aspect provides an apparatus for performing state synchronization based on a TCP proxy, where: the determining unit is configured to determine that a signaling connection between the first radio access network device and the user equipment is about to be released, or determine that the The user equipment is switched to the second radio access network device;
  • a sending unit configured to send, according to the determining result of the determining unit, the TCP proxy carrying the reset RST flag to the at least one side: the user equipment, or the server, by using the TCP proxy;
  • the first radio access network device is configured to provide a TCP proxy for the first TCP connection established between the user equipment and the server, and cache the downlink data on the first TCP connection by using the TCP proxy. Or, the uplink data on the first TCP connection is cached by the TCP proxy.
  • the determining unit is specifically configured to: determine that a signaling connection between the first radio access network device and the user equipment is about to be released, and the first radio access The downlink data of the first TCP connection cached by the network device by the TCP proxy is not sent to the user equipment; or, determining that the signaling connection between the first radio access network device and the user equipment is about to be released And the uplink data of the first TCP connection cached by the first radio access network device by the TCP proxy is not sent to the server.
  • the determining unit is specifically configured to: determine to switch the user equipment to the second radio access network device, and the first radio access network device passes the The downlink data of the first TCP connection cached by the TCP proxy is not sent to the user equipment; or
  • the sending unit is specifically configured to: send, by the first radio access network device, a handover request to the core network, to receive, by the first radio access network device, a handover command from the core network, and according to And sending, by the TCP proxy, to the at least one side of the following: the user equipment, or the server, sending the identifier carrying the reset RST flag, where the switching command sends the air interface switching message to the user equipment. TCP packet.
  • the first radio access network device is a radio network controller RNC
  • the second radio access network device is The radio network controller RNC, or the base station controller BSC, or the evolved base station eNodeB.
  • the fifth possible implementation manner of the third aspect further includes:
  • a fourth aspect providing a radio access network device, including any of the possible implementations of the third aspect
  • the device for providing state synchronization based on a TCP proxy comprising: a determining unit, configured to determine, by using an IUR interface between the first radio access network device and the second radio access network device, the user equipment in the a wireless link in the wireless access network device;
  • a sending unit configured to send, according to the result determined by the determining unit, a TCP window message to the at least one side, the user equipment, or the server by using the TCP proxy, to indicate that the data packet is suspended;
  • the first radio access network device provides a TCP proxy for the first TCP connection established between the user equipment and the server, and buffers downlink data on the first TCP connection by using the TCP proxy, or Caching the uplink on the first TCP connection by using the TCP proxy Data.
  • the sending unit is specifically configured to:
  • the first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device.
  • the wireless link in the device to the first radio access network device is completed by adding an IUR interface between the first radio access network device and the second radio access network device
  • the TCP window sends a TCP window message to the at least one side, the user equipment, or the server, by using the TCP proxy. Indicates to suspend sending packets.
  • the method further includes:
  • An exit unit configured to determine, when the first radio access network device sends the downlink data on the first TCP connection cached by the TCP proxy to the user equipment, to the server by using the TCP proxy Sending a TCP message of the recovery window, and exiting the TCP proxy in a downlink direction of the first TCP connection;
  • the message exits the TCP proxy in the uplink direction of the first TCP connection.
  • the method further includes:
  • a processing unit configured to determine, when the user equipment has a wireless link in the second radio access network device, stop starting a new TCP for a newly established second TCP connection between the user equipment and the server proxy.
  • the method further includes: Activating unit, configured to determine that all the user equipments in the second radio access network device have been deleted by an IUR interface between the first radio access network device and the second radio access network device In the case of a wireless link, a new TCP proxy is initiated for a newly established second TCP connection between the user equipment and the server.
  • a radio access network device comprising a TCP proxy based state synchronization device of any of the possible implementations of the fifth aspect.
  • the method and the device of the embodiment of the present invention when the TCP proxy is deployed in the access network device of the mobile communication system, when the user equipment is abnormally released, or moves or switches to another access network device, the current TCP connection is terminated in time to avoid There is no TCP state variable between the user equipment and the server, so that after the user resumes the connection or moves to other access network devices, the TCP connection with the server can be restored as soon as possible.
  • FIG. 1 is a flow chart of a method for status synchronization based on a TCP proxy according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a method for synchronizing state based on a TCP proxy according to another embodiment of the present invention
  • FIG. 3 is a flowchart of handover in a UMTS system according to another embodiment of the present invention.
  • FIG. 4 is a flow chart of a method for status synchronization based on a TCP proxy according to another embodiment of the present invention.
  • FIG. 5 is a flow chart of switching based on an IUR interface in a UMTS system according to another embodiment of the present invention.
  • FIG. 6 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention.
  • FIG. 7 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention
  • FIG. 8 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention
  • FIG. 7 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention
  • FIG. 8 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention
  • FIG. 8 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention
  • FIG. 9 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention. detailed description
  • the method and device in the embodiment of the present invention may be implemented by using a radio access network device, where the radio access network device is not limited to any one of the following or more than one common implementation, such as a base station NodeB or a wireless network in a UMTS system.
  • the controller RNC, or a control node of other access network devices for example, a base station controller BSC in the GSM system, an evolved base station eNodeB in the LTE system, and the like.
  • the terminal, the user, and the user equipment have the same meaning.
  • FIG. 1 is a flow chart of a method for state synchronization based on a TCP proxy according to an embodiment of the present invention.
  • the method can be applied to a first radio access network device in which a TCP proxy is deployed. As shown, the method includes:
  • Step 101 The first radio access network device determines that a signaling connection between the first radio access network device and the user equipment is about to be released.
  • the first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server.
  • the first radio access network device may receive, by using a TCP proxy, downlink data sent by the server to the user equipment on the first TCP connection, and reply ACK to the server, and acquire the downlink data at the same time.
  • the cache is cached in the first radio access network device, and the buffered downlink data is sent to the user equipment according to a relatively large window.
  • the first radio access network device may also receive the uplink data sent by the user equipment to the server on the first TCP connection through the TCP proxy, and reply the ACK to the user equipment, and cache the obtained uplink data to the first radio access network device. Medium, and send the cached upstream data to the server according to a relatively large window. It should be noted that multiple TCP connections may be established between the user equipment and the server, and the first radio access network device provides a TCP proxy for each TCP connection, and the present invention is not limited thereto.
  • the first radio access network device may determine, by using various manners, that the signaling connection between the first radio access network device and the user equipment is about to be released, for example, when an abnormality occurs in the first radio access network device, the user equipment cannot be continued.
  • the first radio access network device switches the user equipment to the second radio access network device, it should be noted that the above is only an example, and the present invention is not limited thereto.
  • the first radio access network device cannot release the user through a normal signaling release procedure due to an abnormality.
  • the downlink data on the first TCP connection buffered by the TCP proxy is too late to be sent to the user equipment, or the uplink data on the first TCP connection buffered by the TCP proxy is too late to be sent to the server. So that the TCP state between the server and the user equipment is not synchronized.
  • the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, and further, the first radio access network device may further determine, by using the TCP proxy cache The downlink data of the first TCP connection is not sent to the user equipment; or the first radio access network device may further determine that the uplink data of the first TCP connection buffered by the TCP proxy is not The server has finished sending.
  • Step 102 According to the result determined in step 101, the first radio access network device sends a TCP packet carrying the reset RST flag to at least one side of the following by the TCP proxy: the user equipment, or the server.
  • the first radio access network device determines that the first radio access network device is about to be released.
  • the signaling connection between the user equipments, the first radio access network device can initiate a TCP RST process to the user equipment and the server respectively through the TCP proxy, that is, the TCP packets carrying the RST flag are respectively sent to the user equipment and the server.
  • the first radio access network device may also initiate a TCP RST process only to the user equipment, or only initiate a TCP RST procedure to the server.
  • the user equipment After the user equipment receives the TCP packet carrying the RST mark, the user equipment terminates the TCP connection with the server, which can save the intermediate invalid interaction process, when the user equipment re-enters the first wireless After the access network device or other radio access network device establishes a signaling connection, the TCP connection between the user equipment and the server can be quickly reconstructed, and the impact on the user experience is minimized.
  • the radio access network device caches the uplink or downlink data of the TCP connection between the user equipment and the server through the TCP proxy, and initiates the TCP RST process to the user equipment and the server when the user equipment connection needs to be released. , terminates the current TCP connection, avoids the inconsistency of the TCP state variables between the user equipment and the server, and can restore the TCP connection between the user equipment and the server as soon as possible.
  • FIG. 2 is a flow chart of a method for state synchronization based on TCP proxy according to another embodiment of the present invention.
  • the method can be applied to a first radio access network device in which a TCP proxy is deployed. As shown, the method can include:
  • Step 201 The first radio access network device determines to switch the user equipment to the second radio access network device.
  • the first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server.
  • the first radio access network device can receive the downlink data sent by the server to the user equipment on the first TCP connection by using the TCP proxy, and reply the ACK to the server, and cache the obtained downlink data to the first radio access network device. And sending the buffered downlink data to the user equipment according to a relatively large window.
  • the first radio access network device may also receive, by using a TCP proxy, uplink data sent by the user equipment to the server on the first TCP connection, and reply ACK to the user equipment, and obtain the ACK at the same time.
  • the uplink data is buffered into the first radio access network device, and the cached uplink data is sent to the server according to a relatively large window.
  • multiple TCP connections may be established between the user equipment and the server, and the first radio access network device provides a TCP proxy for each TCP connection, and the present invention is not limited thereto.
  • the first radio access network device and the second radio access network device may be access network devices in the same system, or may be access network devices in different system systems.
  • the first radio access network device is an RNC
  • the second radio access network device may be an RNC, or a BSC, or an eNodeB.
  • the first radio access network device and the second radio access network device are both RNCs, and the first radio access network device serves as a source radio network controller (SRNC) of the user equipment, and the second radio access network
  • the device is the target radio network controller (TRNC) of the user equipment.
  • the SRNC determines that the user equipment needs to be switched to the TRNC, and the SRNC sends a handover request to the core network (CN).
  • the Relocation Required message triggers the intra-system handover.
  • the SRNC receives the handover command Relocation Command message from the core network.
  • the SRNC sends an air interface switch message to the user equipment, so that the user equipment switches to the second wireless access network device.
  • the SRNC receives a release command from the core network.
  • the Iu Release Command message releases the signaling connection with the user equipment.
  • the SRNC receives the release command message from the core network
  • the downlink data on the first TCP connection cached by the first radio access network device through the TCP proxy may not be sent to the user equipment, or first The uplink data on the first TCP connection cached by the wireless access network device through the TCP proxy may not be sent to the server.
  • the release of the connection between the user equipment and the SRNC may also cause the TCP state between the user equipment and the server to be out of synchronization.
  • the first radio access network device determines to switch the user equipment to the second radio access network device, and further, the first radio access network device may further determine the first TCP cached by the TCP proxy The downlink data of the connection is not sent to the user equipment; or the first radio access network device may further determine that the uplink data of the first TCP connection buffered by the TCP proxy is not sent to the server.
  • Step 202 According to the result determined in step 201, the first radio access network device sends a TCP packet carrying the reset RST flag to at least one side of the following by the TCP proxy: the user equipment, or the server.
  • the first radio access network device determines to switch the user equipment to the second radio access network device, and the first radio access network device may initiate a TCP RST process to the user equipment and the server respectively through the TCP proxy, that is, respectively A TCP packet carrying the RST flag is sent to the user equipment and the server.
  • the first radio access network device may also initiate a TCP RST process only to the user equipment, or only initiate a TCP RST procedure to the server.
  • the user equipment After the user equipment receives the TCP packet carrying the RST mark, the user equipment terminates the TCP connection with the server, which can save the intermediate invalid interaction process, when the user equipment re-enters the first wireless After the access network device or other radio access network device establishes a signaling connection, the TCP connection between the user equipment and the server can be quickly reconstructed, and the impact on the user experience is minimized.
  • the first radio access network device may use the TCP proxy to at least one of the following at any time before releasing the user equipment connection.
  • Side The user equipment, or the server, sends a TCP packet carrying the reset RST flag.
  • the first radio access network device may send a handover request Relocation Required message to the first radio access to the core network at any time between 301 and 303, that is, after the SRNC determines to switch the user equipment to the TRNC.
  • the network access device receives the handover command Relocation Command from the core network, and sends the air interface switch message to the user equipment according to the handover command to the following at least one side through the TCP proxy: the user equipment, or the server, Send a TCP packet carrying the reset RST flag.
  • the first radio access network device and the second radio access network device are different system systems, for example, when the SRNC determines to switch the circuit domain connection of the user equipment to the BSC or the eNodeB, the first radio access may also be performed.
  • the network device sends a handover request Relocation Required to the core network, and the first radio access network device receives the handover command Relocation Command from the core network, and sends the air interface switch message to the user equipment according to the handover command.
  • the user equipment, or the server sends a TCP packet carrying the reset RST flag.
  • the SRNC may respectively reach the following at least one side through the TCP proxy at any time before and after transmitting the cell change indication Cell Change Order message: the user equipment, or the server, Send a TCP packet carrying the reset RST flag.
  • the method further includes: Step 203: The first radio access network device stops starting a new second TCP connection between the user equipment and the server. TCP proxy.
  • the second TCP connection can still be established between the user equipment and the server, whether the intra-system handover or the inter-system procedure, the radio access of the user equipment is not interrupted, and the first radio access network equipment is newly established.
  • the second TCP connection does not initiate a new TCP proxy, such that the state of the second TCP connection between the user equipment and the server is not affected by the TCP proxy in the first radio access network device.
  • the radio access network device caches the uplink or downlink data of the TCP connection between the user equipment and the server through the TCP proxy, and initiates the TCP RST process to the user equipment and the server when the user equipment connection needs to be released. , terminates the current TCP connection, avoids the inconsistency of the TCP state variables between the user equipment and the server, and can restore the TCP connection between the user equipment and the server as soon as possible.
  • FIG. 4 is a flowchart of a method for synchronizing state based on TCP proxy according to another embodiment of the present invention; Figure. The method may be applied to a first radio access network device in which a TCP proxy is deployed. In the embodiment of the present invention, an IUR interface exists between the first radio access network device and the second radio access network device. As shown in FIG. 4, the method includes:
  • Step 401 The first radio access network device determines to increase a radio link of the user equipment in the second radio access network device by using an IUR interface between the first radio access network device and the second radio access network device.
  • the first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server.
  • the first radio access network device can receive the downlink data sent by the server to the user equipment on the first TCP connection by using the TCP proxy, and reply the ACK to the server, and cache the obtained downlink data to the first radio access network device. And sending the buffered downlink data to the user equipment according to a relatively large window.
  • the first radio access network device may also receive the uplink data sent by the user equipment to the server on the first TCP connection through the TCP proxy, and reply the ACK to the user equipment, and cache the obtained uplink data to the first radio access network device.
  • the first radio access network device may determine, according to the measurement report of the user equipment, that the first radio access network device is connected to the second radio
  • the IUR interface between the network access devices increases the wireless link of the user equipment in the second radio access network device.
  • the first radio access network device adds the user equipment to the second radio access network device through the IUR interface between the first radio access network device and the second radio access network device.
  • the first radio access network device and the second radio access network device are both RNCs, and the first radio access network device serves as a source radio network controller (SRNC) of the user equipment, and the second radio access network The device is drifting for the user equipment.
  • SRNC source radio network controller
  • DRNC Line network controller
  • the SRNC determines to send a radio link setup request to the DRNC according to the measurement of the user equipment.
  • the Radio Link Setup Request message is used to increase the radio link of the user equipment in the DRNC.
  • the SRNC After receiving the radio link setup response message from the DRNC, the SRNC establishes a transport bearer with the DRNC.
  • the SRNC After receiving the radio link recovery indication Radio Link Restore Indication message from the DRNC, the SRNC completes uplink synchronization and downlink synchronization of the Frame Protocol (FP);
  • FP Frame Protocol
  • the SRNC sends an Active Set Update Active Set Update message to the user equipment, so that the user equipment increases the newly established wireless link in the DRNC.
  • the SRNC receives the Active Set Update Complete message from the active set update sent by the user equipment.
  • the SRNC can control the DRNC to which the user equipment is switched after deleting the radio link of the user equipment in the SRNC.
  • the uplink or downlink data cached by the TCP proxy may not be sent to the server or user equipment in time, but since the signaling connection is still maintained between the SRNC and the user equipment, the SRNC may control to send the cache to the user equipment or the server. The data is then triggered to trigger the user equipment to switch to the DRNC.
  • Step 402 According to the result determined in step 401, the first radio access network device passes through the built-in
  • the TCP proxy sends a TCP 0 window message to at least one of the following, the user equipment, or the server, to indicate that the data packet is suspended.
  • the first radio access network device determines to increase the radio link of the user equipment in the second radio access network device by using the IUR interface between the first radio access network device and the second radio access network device,
  • a wireless access network device can send a TCP 0 window message to the at least one side, the user equipment, or the server through the TCP proxy to indicate that the data packet is suspended.
  • the first radio access network device determines to increase the radio link of the user equipment in the second radio access network device by using the IUR interface between the first radio access network device and the second radio access network device, the first The radio access network device needs to notify the user equipment or the server to suspend the transmission of the data packet, so that the first radio access network device sends the buffered uplink data to the server as soon as possible, or the buffered downlink data is sent to the user equipment.
  • the first radio access network device may send a TCP 0 window message to at least one of the user equipment and the server.
  • the server after receiving the TCP window message sent by the TCP proxy of the first radio access network device, the server stops sending TCP packets, so that the first radio access network device can cache the downlink as soon as possible.
  • the data is sent to the user equipment, so that the first radio access network device can trigger the user equipment to switch to the second radio access network device as soon as possible, and keep the state of both ends of the user equipment and the server consistent.
  • the first radio access network device may determine, at the first radio access network device, that the user equipment is added by an IUR interface between the first radio access network device and the second radio access network device An IUR interface between the wireless link in the second radio access network device and the first radio access network device through the first radio access network device and the second radio access network device Adding a TCP window message to the at least one side, the user equipment, or the server through the TCP proxy at any time between the time when the user equipment is added to the wireless link in the second radio access network device Instructed to suspend sending packets. As shown in FIG. 5, a TCP window message can be sent to the following at least one side, the user equipment, or the server through the TCP proxy at any time between 501 and 505 to indicate that the data packet is suspended.
  • the method may further include step 403:
  • Step 403 If the first radio access network device determines that the downlink radio access network device sends the downlink data on the first TCP connection buffered by the TCP proxy to the user equipment, the first radio access network device Sending, by the TCP proxy, a TCP message of the recovery window to the server, and exiting the TCP proxy in the downlink direction of the first TCP connection, or if the first radio access network device determines that the first radio access network device will pass The first TCP connection of the TCP proxy cache After the uplink data is sent to the server, the first radio access network device sends a TCP packet of the recovery window to the user equipment through the TCP proxy, and exits the TCP proxy in the uplink direction of the first TCP connection.
  • the first radio access network device does not perform a TCP proxy operation on the TCP connection between the user equipment and the server, that is, exits the TCP proxy.
  • the server resumes transmitting data to the user equipment. Because the first radio access network device exits the TCP proxy, the server restores the data sent to the user equipment and directly sends the data to the user through the first TCP connection. The user equipment returns an ACK to the server.
  • the uplink direction after receiving the TCP packet of the recovery window, the user equipment resumes sending data to the server. Since the first radio access network device exits the TCP proxy, the user equipment recovers the data sent to the server.
  • the server replies with an ACK to the user equipment. Therefore, regardless of whether the user equipment subsequently switches to the second radio access network device, the data can be transmitted and received on the TCP connection between the user equipment and the server.
  • the method may further include step 404:
  • Step 404 If the first radio access network device determines that the user equipment has a radio link in the second radio access network device, the first radio access network device stops the newly established second TCP connection between the user equipment and the server. Start a new TCP proxy.
  • the radio bearer of the user equipment is not interrupted, and the second TCP connection can still be established between the user equipment and the server.
  • the first radio access network device The new TCP proxy is not started for the newly established second TCP connection, so that the state of the second TCP connection between the user equipment and the server is not affected by the TCP proxy in the first radio access network device.
  • the method may further include step 405:
  • Step 405 If the first radio access network device determines to pass the first radio access network device and the second The IUR interface between the radio access network devices has deleted all the radio links of the user equipment in the second radio access network device, and the first radio access network device newly establishes a second TCP connection between the user equipment and the server. Start a new TCP proxy.
  • the first radio access network device may determine to delete the user equipment by using an IUR interface between the first radio access network device and the second radio access network device.
  • the wireless link in the second radio access network device when the user equipment leaves the coverage area of the second radio access network device, the first radio access network device may determine to delete the user equipment according to the measurement report of the user equipment. Two radio links in the radio access network equipment.
  • the first radio access network device since the signaling connection is still maintained between the user equipment and the first radio access network device, the first radio access network device is not further triggered to switch the user equipment to the second radio access network device. At this time, the first radio access network device may start a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
  • the first radio access network device can actively control to trigger the user equipment to switch to the second radio access network, because the IUR interface exists between the first radio access network device and the second radio access network device.
  • the first radio access network device ensures that the data cached by the TCP proxy is sent in time and exits the TCP proxy.
  • the delay of triggering the handover can be reduced, and on the other hand, the continuity of the data received by the user equipment can be ensured, and the TCP connection between the user equipment and the server is also made.
  • the status is the same.
  • FIG. 6 is a structural diagram of an apparatus for status synchronization based on a TCP proxy according to another embodiment of the present invention.
  • the apparatus can be used in a first radio access network device that deploys a TCP proxy. As shown, the device includes:
  • the determining unit 601 is configured to determine that a signaling connection between the first radio access network device and the user equipment is to be released, or is used to determine to switch the user equipment to the second radio access network device.
  • the first radio access network device provides the user equipment as a source service node of the user equipment.
  • the radio bearer provides a TCP proxy for the first TCP connection that has been established between the user equipment and the server.
  • the processing of the TCP proxy has been described in the foregoing method embodiments, and details are not described herein again.
  • the first radio access network device and the second radio access network device may be access network devices in the same system, or may be access network devices in different system systems.
  • the first radio access network device is an RNC
  • the second radio access network device may be an RNC, or a BSC, or an eNodeB.
  • the sending unit 602 is configured to send, according to the determination result of the determining unit 601, the TCP packet carrying the reset RST flag to the at least one side of the following by the TCP proxy: the user equipment, or the server.
  • the sending unit 602 can initiate a TCP RST process to the user equipment and the server respectively through the built-in TCP proxy. That is, the TCP packet carrying the RST flag is sent to the user equipment and the server respectively.
  • the sending unit 602 may also initiate a TCP RST process only to the user equipment, or only initiate a TCP RST process to the server.
  • the user equipment After the user equipment receives the TCP packet carrying the RST mark, the user equipment terminates the TCP connection with the server, which can save the intermediate invalid interaction process, when the user equipment re-enters the first wireless After the access network device or other radio access network device establishes a signaling connection, the TCP connection between the user equipment and the server can be quickly reconstructed, and the impact on the user experience is minimized.
  • the sending unit 602 may respectively use the TCP proxy to the following at any time before releasing the user equipment connection.
  • One side The user equipment, or the server, sends a TCP packet carrying the reset RST flag.
  • the sending time of the TCP packet carrying the RST flag has been described in the foregoing method embodiment, and details are not described herein again.
  • the device may optionally further include:
  • the processing unit 603 is configured to stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
  • the components of the apparatus according to the foregoing embodiments of the present invention may be used to implement the functions of the steps of the method based on the state synchronization of the built-in TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here.
  • the radio access network device caches the uplink or downlink data of the TCP connection between the user equipment and the server through the TCP proxy, and initiates a TCP RST process to the user equipment and the server when the user equipment connection needs to be released. , terminates the current TCP connection, avoids the inconsistency of the TCP state variables between the user equipment and the server, and can restore the TCP connection between the user equipment and the server as soon as possible.
  • FIG. 7 is a structural diagram of an apparatus for state synchronization based on a built-in TCP proxy according to another embodiment of the present invention.
  • the apparatus can be used in a first radio access network device that deploys a TCP proxy.
  • an IUR interface exists between the first radio access network device and the second radio access network device.
  • the device includes:
  • the determining unit 701 is configured to determine, by using an IUR interface between the first radio access network device and the second radio access network device, the radio link of the user equipment in the second radio access network device.
  • the first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server.
  • the processing of the TCP proxy has been described in the foregoing method embodiments, and will not be described again here.
  • the determining unit 701 may determine, according to the measurement report of the user equipment, that the first radio access network device and the second radio access network device
  • the inter-IUR interface increases the wireless link of the user equipment in the second radio access network device.
  • the sending unit 702 is configured to send, according to the result determined by the determining unit 701, the TCP proxy that passes the TCP window message to the at least one side, the user equipment, or the server, to indicate Pause sending packets.
  • the sending unit 702 can send a TCP 0 window message to the following at least one side, the user equipment, or the server through the TCP proxy to indicate that the data packet is suspended.
  • the determining unit 701 determines to increase the wireless link of the user equipment in the second radio access network device by using the IUR interface between the first radio access network device and the second radio access network device, the first radio access network The device needs to notify the user equipment or the server to suspend the sending of the data packet, so that the first radio access network device sends the buffered uplink data to the server as soon as possible, or the buffered downlink data is sent to the user equipment.
  • the sending unit 702 can send a TCP 0 window message to at least one of the user equipment and the server through the TCP proxy.
  • the server after receiving the TCP window message sent by the TCP proxy of the first radio access network device, the server stops sending TCP packets, so that the first radio access network device can cache the downlink as soon as possible.
  • the data is sent to the user equipment, so that the first radio access network device can trigger the user equipment to switch to the second radio access network device as soon as possible, and keep the state of both ends of the user equipment and the server consistent.
  • the method may further include:
  • the exiting unit 703 is configured to: when the first radio access network device sends the downlink data on the first TCP connection buffered by the TCP proxy to the user equipment, send, by using the TCP proxy, a TCP report of the recovery window to the server. And exiting the TCP proxy in the downlink direction of the first TCP connection, or determining that the first radio access network device sends the uplink data on the first TCP connection buffered by the TCP proxy to the server, and the TCP proxy is used. Sending a TCP message of the recovery window to the user equipment, and exiting the TCP proxy in the uplink direction of the first TCP connection.
  • the method may further include:
  • the processing unit 704 is configured to: when determining that the user equipment has a wireless link in the second radio access network device, stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
  • the method may further include:
  • the initiating unit 705 is configured to: when determining, by using the IUR interface between the first radio access network device and the second radio access network device, all the radio links of the user equipment in the second radio access network device are deleted, for the user A newly established second TCP connection between the device and the server initiates a new TCP proxy.
  • the components of the apparatus according to the above-mentioned embodiments of the present invention may be used to implement the functions of the steps of the method for synchronizing state based on TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here.
  • the first radio access network device can actively control to trigger the user equipment to switch to the second radio access network, because the IUR interface exists between the first radio access network device and the second radio access network device.
  • the first radio access network device ensures that the data cached by the TCP proxy is sent in time and exits the TCP proxy.
  • the delay of triggering the handover can be reduced, and on the other hand, the continuity of the data received by the user equipment can be ensured, and the TCP connection between the user equipment and the server is also made. The status is the same.
  • FIG. 8 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention.
  • the apparatus can be used in a first radio access network device that deploys a TCP proxy.
  • the device includes: a memory 801, a processor 802, and a transceiver 803.
  • the processor 802 is coupled to the memory 801 and the transceiver 803, respectively.
  • the processor 802 calls a program stored in the memory 801 to determine that a signaling connection between the first radio access network device and the user equipment is about to be released, or is used to determine to switch the user equipment to the second.
  • the control transceiver 803 sends a TCP packet carrying the reset RST flag to at least one of the following: the user equipment, or the server, through the TCP proxy.
  • the first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The processing of the TCP proxy has been described in the foregoing method embodiments, and will not be described again here.
  • the first radio access network device and the second radio access network device may be the same system.
  • the access network device in the system may also be an access network device in different standard systems.
  • the first radio access network device is an RNC
  • the second radio access network device may be an RNC, a BSC, or an eNodeB.
  • the processor 802 can control the transceiver 803 to initiate a TCP RST process to the user equipment and the server respectively through the built-in TCP proxy, that is, to send the TCP packet carrying the RST flag to the user equipment and the server respectively.
  • the processor 802 can also control the transceiver 803 to only initiate a TCP RST process to the user equipment, or only initiate a TCP RST procedure to the server.
  • the processor 802 can control the transceiver 803 to the following at least one side through the TCP proxy at any time before releasing the user equipment connection: Or, the server sends a TCP packet carrying the reset RST flag.
  • the sending time of sending a TCP packet carrying the RST flag has been described in the foregoing method embodiment, and details are not described herein again.
  • the processor 802 is further configured to stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
  • FIG. 9 is a structural diagram of an apparatus for state synchronization based on a built-in TCP proxy according to another embodiment of the present invention.
  • the apparatus can be used in a first radio access network device that deploys a TCP proxy.
  • an IUR interface exists between the first radio access network device and the second radio access network device.
  • the device includes: a memory 901, a processor 902, and a transceiver 903.
  • the processor 902 is coupled to the memory 901 and the transceiver 903, respectively.
  • the processor 902 calls a program stored in the memory 901, and is configured to determine that the user equipment is added to the second radio access network device by using an IUR interface between the first radio access network device and the second radio access network device.
  • the control transceiver 903 passes the TCP proxy to at least one of the following: the user equipment, or the server, The 0 window message of the sending TCP is used to indicate that the data packet is suspended.
  • the first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server.
  • the processing of the TCP proxy has been described in the foregoing method embodiments, and will not be described again here.
  • the processor When the user equipment moves from the first radio access network device to the second radio access network device, the processor
  • the wireless link of the user equipment in the second radio access network device is increased by using an IUR interface between the first radio access network device and the second radio access network device.
  • the processor 902 is further configured to: when the first radio access network device sends the downlink data on the first TCP connection buffered by the TCP proxy to the user equipment, the control transceiver 903 sends the server to the server through the TCP proxy. Recovering the TCP packet of the window, and exiting the TCP proxy in the downlink direction of the first TCP connection, or determining that the first radio access network device sends the uplink data on the first TCP connection buffered by the TCP proxy to the server.
  • the control transceiver 903 sends a TCP message of the recovery window to the user equipment through the TCP proxy, and exits the TCP proxy in the uplink direction of the first TCP connection.
  • the processor 902 is further configured to: when the user equipment has a wireless link in the second radio access network device, stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
  • the processor 902 is further configured to determine that all the wireless links of the user equipment in the second radio access network device have been deleted by the IUR interface between the first radio access network device and the second radio access network device. On the road, a new TCP proxy is started for the newly established second TCP connection between the user equipment and the server.
  • the components of the apparatus according to the above-mentioned embodiments of the present invention may be used to implement the functions of the steps of the method for synchronizing state based on TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here.
  • the present invention can be implemented in hardware, firmware implementation, or a combination thereof.
  • the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • the desired program code and any other medium that can be accessed by the computer Also. Any connection may suitably be a computer readable medium.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a state synchronization method and device based on a TCP proxy. A state synchronization method based on a built-in TCP proxy, comprising: when a first wireless access network device determines that a signalling connection between the first wireless access network device and a user equipment is about to release, the first wireless access network device sends a TCP message carrying a reset RST flag via a TCP proxy respectively to at least one side of the following: the user equipment, or a server. So that, where the TCP proxy is built in the access network device of a mobile communication system, and when being abnormally released or switched to other access network devices, the user equipment can keep synchronization with a TCP connection state of the server, and can quickly restore a TCP connection with the server. Also disclosed is a state synchronization device based on a TCP proxy.

Description

基于 TCP代理的状态同步方法和设备  State synchronization method and device based on TCP proxy
技术领域 Technical field
本发明实施例涉及通信领域, 尤其涉及基于 TCP代理的状态同步的方法和 设备。  Embodiments of the present invention relate to the field of communications, and in particular, to a method and apparatus for state synchronization based on a TCP proxy.
背景技术 传输控制协议(TCP , t ransfer cont rol protoco l ) 工作在开放式***互 联 ( OSI , open sys tem interconnect ion ) 的传输层, 提供面向连接的可靠传 输服务。 TCP的工作主要是建立连接,然后从应用层程序中接收数据并进行传输。 在发送数据前 TCP 需要在发送方和接收方建立一个连接, 数据在发送出去后, 发送方会等待接收方给出一个确认性的应答, 否则发送方将认为此数据丟失, 并重新发送此数据。 BACKGROUND OF THE INVENTION Transmission Control Protocol (TCP, t ransfer cont rol protoco l ) works in the transport layer of Open System Interconnection (OSI) to provide a reliable connection-oriented transmission service. The main job of TCP is to establish a connection and then receive data from the application layer program and transmit it. Before sending data, TCP needs to establish a connection between the sender and the receiver. After the data is sent, the sender will wait for the receiver to give a confirmatory response. Otherwise, the sender will consider the data to be lost and resend the data. .
在移动通信***中, 例如通用移动通信*** ( UMTS , universa l mobi le te lecommunica t ions sys tem ) , 用户设备通过无线网络控制器 ( RNC , radio network contro l ler )提供的无线承载与服务器建立 TCP连接, TCP协议的处理 由用户设备和服务器完成, RNC本身不感知。 由于 TCP协议是为有线网络设计的 传输协议, 前提是假设网络上由于非拥塞(如传输误码)导致的丟包可能性远 远小于 1%, 而对于无线网络上承载, 由于空口存在速率波动、 干扰等因素, 不 能很好的满足该假设, 加上无线网络环境的小带宽, 大时延, 移动性等特点, 所以 TCP协议在无线网络环境上的工作效率远不如固定网络。  In a mobile communication system, such as a universal mobile communication system (UMTS, universa l mobi le tecomcommunica t ions sys ), a user equipment establishes a TCP with a server via a radio bearer provided by a radio network controller (RNC, radio network controler) Connection, the processing of the TCP protocol is done by the user equipment and the server, and the RNC itself is not aware. Since the TCP protocol is a transport protocol designed for a wired network, the premise is that the probability of packet loss due to non-congestion (such as transmission error) on the network is far less than 1%, and for the bearer on the wireless network, there is a rate fluctuation due to the air interface. The interference, such as interference, can not meet this assumption very well, plus the small bandwidth, large delay, mobility and other characteristics of the wireless network environment, so the TCP protocol is far less efficient than the fixed network in the wireless network environment.
为了提升 TCP的性能,可以在 RNC内部署 TCP代理,针对每个 TCP连接, TCP 代理在接收到该 TCP 连接的数据发送端的数据报文后,快速给数据发送端回复 ACK, 同时緩存数据到 RNC本地, 从而可以按照相对比较大的窗口给数据接收端 发送数据。 例如,下行方向数据发送端为服务器,数据接收端为用户设备, TCP代 理在收到服务器的数据报文后,快速给服务器回复 ACK , 同时緩存数据到 RNC本 地, 从而可以按照相对比较大的窗口给用户设备发送数据。 通过上述方式, 由 于 RNC 本地緩存了数据, 可以快速进行 >¾文重传和恢复, 解决端到端的优化问 题。 然而, 在 RNC内部署 TCP代理时, 即使 RNC緩存的数据还没有发送到数据 接收端, 但是 TCP代理在緩存数据时已经给数据发送端发送了 ACK, 使得数据发 送端的 TCP状态变量已经刷新。 如果 RNC和 TCP连接的任一端在緩存数据尚未 向数据接收端发送完毕时需要中断连接, 则会造成数据接收端和数据发送端两 端的 TCP状态变量不一致。 仍以下行方向为例, RNC通过 TCP代理緩存服务器发 送给用户设备的数据, 对于这些下行数据已向服务器发送了 ACK使得服务器端 的 TCP状态变量发生了改变, 当用户设备从一个 RNC移动到另一个 RNC, 或者移 动到其它制式移动通信***,例如,全球移动通信***(GSM, g loba l sys tem for mobi le communi ca t ion )或者长期演进*** ( LTE, long term evolut ion sys tern ) 时, 或者异常情况下需要释放用户设备时, 若 RNC侧的緩存的下行数据没有及 时发送给用户设备, 那么用户设备和服务器端的 TCP状态变量就会出现不一致 的情况。 在用户设备移动到其他 RNC或者其他制式***, 或者恢复信令连接时, 用户设备和服务器端之间的 TCP连接基于 TCP协议的重发和超时机制, 将导致 客户端不停地等待和重发, 最终导致 TCP断链, 从而影响用户感受。 发明内容 In order to improve the performance of the TCP, a TCP proxy can be deployed in the RNC. For each TCP connection, after receiving the data packet of the data sender of the TCP connection, the TCP proxy quickly returns an ACK to the data sender, and simultaneously caches the data to the RNC. Local, so that data can be sent to the data receiver in a relatively large window. For example, the data sending end of the downlink direction is a server, and the data receiving end is a user equipment. After receiving the data packet of the server, the TCP proxy quickly returns an ACK to the server, and simultaneously caches the data to the local area of the RNC, so that the relatively large window can be accessed. Send data to the user device. In the above manner, since the RNC locally caches data, it can quickly perform retransmission and recovery to solve the end-to-end optimization problem. However, when the TCP proxy is deployed in the RNC, even if the data buffered by the RNC has not been sent to the data receiving end, the TCP proxy has already sent an ACK to the data transmitting end when the data is buffered, so that the TCP state variable of the data transmitting end has been refreshed. If either end of the RNC and the TCP connection needs to be disconnected when the cached data has not been sent to the data receiving end, the TCP state variables at both the data receiving end and the data transmitting end are inconsistent. Still taking the following line direction as an example, the RNC caches the data sent by the server to the user equipment through the TCP proxy, and has sent an ACK to the server for the downlink data, so that the TCP state variable of the server side has changed, when the user equipment moves from one RNC to another. RNC, or when moving to other standard mobile communication systems, such as the Global System for Mobile Communications (GSM), or long term evolut ion sys tern (LTE), or If the user equipment needs to be released in an abnormal situation, if the downlink data cached on the RNC side is not sent to the user equipment in time, the TCP state variables of the user equipment and the server end may be inconsistent. When the user equipment moves to another RNC or other system, or restores the signaling connection, the TCP connection between the user equipment and the server is based on the retransmission and timeout mechanism of the TCP protocol, which will cause the client to continuously wait and resend. , eventually leading to TCP chain scission, which affects user experience. Summary of the invention
有鉴于此, 本发明实施例提供了基于 TCP代理的状态同步方法和设备, 以实 现在移动通信***的接入网设备中部署 TCP代理时,用户设备因为异常释放或者 切换到其他接入网设备时, 能保持和服务器的 TCP连接状态同步,从而尽快恢复 和服务器的 TCP连接。  In view of this, the embodiment of the present invention provides a TCP proxy-based state synchronization method and device, so that when a TCP proxy is deployed in an access network device of a mobile communication system, the user equipment is abnormally released or switched to another access network device. At the same time, it can keep in sync with the server's TCP connection status, so as to restore the TCP connection with the server as soon as possible.
第一方面, 提供了基于 TCP代理的状态同步方法, 包括:  In a first aspect, a method for synchronizing a state based on a TCP proxy is provided, including:
第一无线接入网设备确定即将释放所述第一无线接入网设备与用户设备 之间的信令连接, 或者, 第一无线接入网设备确定将用户设备切换到第二无 线接入网设备中, 其中, 所述第一无线接入网设备用于为所述用户设备与服 务器之间已建立的第一 TCP连接提供 TCP代理, 并通过所述 TCP代理緩存 所述第一 TCP连接上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的上行数据; 若所述第一无线接入网设备确定即将释放所述第一无线接入网设备与所 述用户设备之间的信令连接, 或者, 所述第一无线接入网设备确定将所述用 户设备切换到第二无线接入网设备中, 所述第一无线接入网设备通过所述The first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, or the first radio access network device determines to switch the user equipment to the second radio access network. In the device, the first radio access network device is configured to provide a TCP proxy for the first TCP connection established between the user equipment and the server, and cache the first TCP connection by using the TCP proxy. Downstream data, or buffering uplink data on the first TCP connection by using the TCP proxy; If the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, or the first radio access network device determines that the user is to be Switching the device to the second radio access network device, where the first radio access network device passes the
TCP代理分别向以下至少一侧: 所述用户设备, 或者, 所述服务器, 发送携 带有复位 RST标记的 TCP报文。 The TCP proxy sends at least one of the following: the user equipment, or the server, sends a TCP packet carrying the reset RST flag.
在第一方面的第一种可能的实现方式中, 第一无线接入网设备确定即将 释放所述第一无线接入网设备与用户设备之间的信令连接, 包括:  In a first possible implementation manner of the first aspect, the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, including:
所述第一无线接入网设备确定即将释放所述第一无线接入网设备与用户 设备之间的信令连接, 且, 所述第一无线接入网设备确定通过所述 TCP代理 緩存的所述第一 TCP连接的下行数据未向所述用户设备发送完毕; 或者, 所述第一无线接入网设备确定即将释放所述第一无线接入网设备与用户 设备之间的信令连接, 且, 所述第一无线接入网设备确定通过所述 TCP代理 緩存的所述第一 TCP连接的上行数据未向所述服务器发送完毕。  Determining that the first radio access network device is about to release a signaling connection between the first radio access network device and the user equipment, and the first radio access network device determines to be cached by the TCP proxy The downlink data of the first TCP connection is not sent to the user equipment; or the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released. And, the first radio access network device determines that uplink data of the first TCP connection buffered by the TCP proxy is not sent to the server.
在第一方面的第二种可能的实现方式中, 第一无线接入网设备确定将所 述用户设备切换到第二无线接入网设备中, 包括:  In a second possible implementation of the first aspect, the first radio access network device determines to switch the user equipment to the second radio access network device, including:
所述第一无线接入网设备确定将所述用户设备切换到第二无线接入网设 备中, 且, 所述第一无线接入网设备确定通过所述 TCP代理緩存的所述第一 TCP连接的下行数据未向所述用户设备发送完毕; 或者,  The first radio access network device determines to switch the user equipment to a second radio access network device, and the first radio access network device determines the first TCP cached by the TCP proxy The downlink data of the connection is not sent to the user equipment; or
所述第一无线接入网设备确定将所述用户设备切换到第二无线接入网设备 中, 且, 所述第一无线接入网设备确定通过所述 TCP代理緩存的所述第一 TCP连 接的上行数据未向所述服务器发送完毕。  The first radio access network device determines to switch the user equipment to a second radio access network device, and the first radio access network device determines the first TCP cached by the TCP proxy The uplink data of the connection is not sent to the server.
结合第一方面或者第一方面的第二种可能实现方式, 在第一方面的第三 种可能实现方式中,第一无线接入网设备通过所述 TCP代理分别向以下至少 一侧: 所述用户设备, 或者, 所述服务器, 发送携带有复位 RST标记的 TCP ^艮文, 包括:  With reference to the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the first radio access network device is configured by the TCP proxy to be at least one of the following: The user equipment, or the server, sends a TCP message carrying the reset RST flag, including:
在所述第一无线接入网设备向核心网发送切换请求至所述第一无线接入 网设备从所述核心网接收到切换命令, 并根据所述切换命令向所述用户设备 发送空口切换消息之间的任一时刻, 所述第一无线接入网设备通过所述 TCP 代理分别向以下至少一侧: 所述用户设备, 或者, 所述服务器, 发送携带有 复位 RST标记的 TCP 4艮文。 Transmitting, by the first radio access network device, a handover request to the core network to the first radio access The network device receives a handover command from the core network, and sends any time between the air interface switch messages to the user equipment according to the handover command, where the first radio access network device separately uses the TCP proxy At least one side of the following: the user equipment, or the server, sends a TCP message carrying a reset RST flag.
结合第一方面的上述任一可能实现方式, 在第一方面的第四种可能实现 方式中, 该方法还包括:  With reference to any of the foregoing possible implementations of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
所述第一无线接入网设备对于所述用户设备和所述服务器之间新建立的第 二 TCP连接停止启动新的 TCP代理。  The first radio access network device stops starting a new TCP proxy for a newly established second TCP connection between the user equipment and the server.
结合第一方面的上述任一可能实现方式, 在第一方面的第五种可能实现 方式中, 所述第一无线接入网设备为无线网络控制器 RNC, 所述第二无线接 入网设备为无线网络控制器 RNC, 或者, 基站控制器 BSC, 或者, 演进型基 站 eNodeB。  With reference to any of the foregoing possible implementations of the first aspect, in a fifth possible implementation manner of the first aspect, the first radio access network device is a radio network controller RNC, and the second radio access network device It is a radio network controller RNC, or a base station controller BSC, or an evolved base station eNodeB.
第二方面, 提供了基于 TCP代理的状态同步方法, 包括: 第一无线接入 网设备确定通过所述第一无线接入网设备与第二无线接入网设备之间的 IUR 接口增加用户设备在所述第二无线接入网设备中的无线链路, 其中, 所述第 一无线接入网设备为所述用户设备与服务器之间已建立的第一 TCP 连接提 供 TCP代理, 并通过所述 TCP代理緩存所述第一 TCP连接上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的上行数据;  In a second aspect, a TCP proxy-based state synchronization method is provided, including: a first radio access network device determining to add a user equipment by using an IUR interface between the first radio access network device and a second radio access network device a wireless link in the second radio access network device, where the first radio access network device provides a TCP proxy for the first TCP connection established between the user equipment and the server, and passes the The TCP proxy caches downlink data on the first TCP connection, or caches uplink data on the first TCP connection by using the TCP proxy;
若所述第一无线接入网设备确定通过所述第一无线接入网设备与所述第二 无线接入网设备之间的 IUR接口增加所述用户设备在所述第二无线接入网设备 中的无线链路, 所述第一无线接入网设备通过所述 TCP代理向以下至少一侧, 所 述用户设备, 或者, 所述服务器, 发送 TCP的 0窗口报文用于指示暂停发送数据 包。  If the first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device a wireless link in the device, the first radio access network device sends a TCP 0 window message to the at least one side, the user equipment, or the server by using the TCP proxy to indicate that the sending is suspended. data pack.
在第二方面的第一种可能实现方式中, 第一无线接入网设备通过所述 TCP代理向以下至少一侧, 所述用户设备, 或者, 所述服务器, 发送 TCP的 0窗口报文用于指示暂停发送数据包, 包括: 在所述第一无线接入网设备确定通过所述第一无线接入网设备与所述第 二无线接入网设备之间的 IUR接口增加所述用户设备在所述第二无线接入网 设备中的无线链路至所述第一无线接入网设备通过所述第一无线接入网设备 与所述第二无线接入网设备之间的 IUR接口完成增加所述用户设备在所述第 二无线接入网设备中的无线链路之间的任一时刻, 所述第一无线接入网设备 通过所述 TCP代理向以下至少一侧, 所述用户设备, 或者, 所述服务器, 发 送 TCP的 0窗口报文用于指示暂停发送数据包。 In a first possible implementation manner of the second aspect, the first radio access network device sends, by using the TCP proxy, a TCP window message to at least one of the following, the user equipment, or the server. Instructed to suspend sending packets, including: The first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device The wireless link in the device to the first radio access network device is completed by adding an IUR interface between the first radio access network device and the second radio access network device At any time between the wireless links in the second radio access network device, the first radio access network device passes the TCP proxy to at least one of the following, the user equipment, or the server, The 0 window message of the sending TCP is used to indicate that the data packet is suspended.
结合第二方面或者第二方面的第一种可能实现方式, 在第二方面的第二 种可能实现方式中, 还包括:  With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the method further includes:
若所述第一无线接入网设备确定所述第一无线接入网设备将通过所述 If the first radio access network device determines that the first radio access network device will pass the
TCP代理緩存的所述第一 TCP连接上的下行数据向所述用户设备发送完毕, 所述第一无线接入网设备通过所述 TCP代理向所述服务器发送恢复窗口的 TCP 报文, 并对所述第一 TCP连接的下行方向退出所述 TCP代理; 或者, The downlink data on the first TCP connection cached by the TCP proxy is sent to the user equipment, and the first radio access network device sends a TCP packet of the recovery window to the server by using the TCP proxy, and Exiting the TCP proxy in a downlink direction of the first TCP connection; or
若所述第一无线接入网设备确定所述第一无线接入网设备将通过所述 TCP代理緩存的所述第一 TCP连接上的上行数据向所述服务器发送完毕,所 述第一无线接入网设备通过所述 TCP代理向所述用户设备发送恢复窗口的 TCP 报文, 并对所述第一 TCP连接的上行方向退出所述 TCP代理。  If the first radio access network device determines that the first radio access network device sends the uplink data on the first TCP connection buffered by the TCP proxy to the server, the first radio The access network device sends a TCP message of the recovery window to the user equipment by using the TCP proxy, and exits the TCP proxy in an uplink direction of the first TCP connection.
结合第二方面上述任一种可能实现方式中, 方法还包括: 若所述第一无 线接入网设备确定所述用户设备在所述第二无线接入网设备中存在无线链 路, 所述第一无线接入网设备对于所述用户设备和所述服务器之间新建立的 第二 TCP连接停止启动新的 TCP代理。  With reference to the second aspect, the method further includes: if the first radio access network device determines that the user equipment has a radio link in the second radio access network device, The first radio access network device stops starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
结合第二方面上述任一种可能实现方式, 在第二方面的第三种可能实现 方式中, 还包括:  With reference to the foregoing two possible implementation manners of the second aspect, in a third possible implementation manner of the second aspect, the method further includes:
若所述第一无线接入网设备确定通过所述第一无线接入网设备与所述第 二无线接入网设备之间的 IUR接口已删除所述用户设备在所述第二无线接入 网设备中的所有无线链路, 所述第一无线接入网设备对于所述用户设备和所 述服务器之间新建立的第二 TCP连接启动新的 TCP代理。 第三方面, 提供了基于 TCP代理的状态同步的装置, 包括: 确定单元, 用于确定即将释放所述第一无线接入网设备与用户设备之间的信令连接, 或 者, 确定将所述用户设备切换到第二无线接入网设备中; If the first radio access network device determines that the user equipment is deleted by the IUR interface between the first radio access network device and the second radio access network device, the second radio access All wireless links in the network device, the first wireless access network device for the user equipment and the A new TCP proxy is initiated by a newly established second TCP connection between the servers. The third aspect provides an apparatus for performing state synchronization based on a TCP proxy, where: the determining unit is configured to determine that a signaling connection between the first radio access network device and the user equipment is about to be released, or determine that the The user equipment is switched to the second radio access network device;
发送单元, 用于根据所述确定单元的确定结果, 通过所述 TCP代理分别 向以下至少一侧: 所述用户设备, 或者, 服务器, 发送携带有复位 RST标记 的 TCP才艮文;  a sending unit, configured to send, according to the determining result of the determining unit, the TCP proxy carrying the reset RST flag to the at least one side: the user equipment, or the server, by using the TCP proxy;
其中, 所述第一无线接入网设备用于为所述用户设备与服务器之间已建 立的第一 TCP连接提供 TCP代理, 并通过所述 TCP代理緩存所述第一 TCP 连接上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的 上行数据。  The first radio access network device is configured to provide a TCP proxy for the first TCP connection established between the user equipment and the server, and cache the downlink data on the first TCP connection by using the TCP proxy. Or, the uplink data on the first TCP connection is cached by the TCP proxy.
在第三方面的第一种可能实现方式中, 确定单元具体用于: 确定即将释 放所述第一无线接入网设备与用户设备之间的信令连接, 且, 所述第一无线 接入网设备通过所述 TCP代理緩存的所述第一 TCP连接的下行数据未向所 述用户设备发送完毕; 或者, 确定即将释放所述第一无线接入网设备与用户 设备之间的信令连接, 且, 所述第一无线接入网设备通过所述 TCP代理緩存 的所述第一 TCP连接的上行数据未向所述服务器发送完毕。  In a first possible implementation manner of the third aspect, the determining unit is specifically configured to: determine that a signaling connection between the first radio access network device and the user equipment is about to be released, and the first radio access The downlink data of the first TCP connection cached by the network device by the TCP proxy is not sent to the user equipment; or, determining that the signaling connection between the first radio access network device and the user equipment is about to be released And the uplink data of the first TCP connection cached by the first radio access network device by the TCP proxy is not sent to the server.
在第三方面的第二种可能实现方式中, 确定单元具体用于: 确定将所述 用户设备切换到第二无线接入网设备中, 且, 所述第一无线接入网设备通过 所述 TCP代理緩存的所述第一 TCP连接的下行数据未向所述用户设备发送 完毕; 或者,  In a second possible implementation manner of the third aspect, the determining unit is specifically configured to: determine to switch the user equipment to the second radio access network device, and the first radio access network device passes the The downlink data of the first TCP connection cached by the TCP proxy is not sent to the user equipment; or
确定将所述用户设备切换到第二无线接入网设备中, 且, 所述第一无线 接入网设备通过所述 TCP代理緩存的所述第一 TCP连接的上行数据未向所 述服务器发送完毕。  Determining that the user equipment is switched to the second radio access network device, and the uplink data of the first TCP connection buffered by the first radio access network device by the TCP proxy is not sent to the server Finished.
结合第三方面或者第三方面的第二种可能实现方式, 在第三方面的第三 种可能实现方式中, 发送单元具体用于: 在所述第一无线接入网设备向核心 网发送切换请求至所述第一无线接入网设备从所述核心网接收到切换命令, 并根据所述切换命令向所述用户设备发送空口切换消息之间的任一时刻, 通 过所述 TCP代理分别向以下至少一侧: 所述用户设备, 或者, 所述服务器, 发送携带有复位 RST标记的 TCP报文。 In combination with the third aspect or the second possible implementation of the third aspect, the third aspect in the third aspect In a possible implementation, the sending unit is specifically configured to: send, by the first radio access network device, a handover request to the core network, to receive, by the first radio access network device, a handover command from the core network, and according to And sending, by the TCP proxy, to the at least one side of the following: the user equipment, or the server, sending the identifier carrying the reset RST flag, where the switching command sends the air interface switching message to the user equipment. TCP packet.
结合第三方面的上述任一种可能实现方式, 在第三方面的第四种可能实 现方式中, 第一无线接入网设备为无线网络控制器 RNC, 所述第二无线接入 网设备为无线网络控制器 RNC, 或者, 基站控制器 BSC, 或者, 演进型基站 eNodeB。  With reference to any of the foregoing possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the first radio access network device is a radio network controller RNC, and the second radio access network device is The radio network controller RNC, or the base station controller BSC, or the evolved base station eNodeB.
结合第三方面的上述任一种可能实现方式, 在第三方面的第五种可能实 现方式中还包括:  In combination with any of the foregoing possible implementation manners of the third aspect, the fifth possible implementation manner of the third aspect further includes:
处理单元, 用于对所述用户设备和所述服务器之间新建立的第二 TCP连 接停止启动新的 TCP代理。 第四方面,提供无线接入网设备, 包括第三方面任一种可能实现方式的基于 And a processing unit, configured to stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server. A fourth aspect, providing a radio access network device, including any of the possible implementations of the third aspect
TCP代理的状态同步装置。 第五方面, 提供基于 TCP代理的状态同步的装置, 包括: 确定单元, 用 于确定通过第一无线接入网设备与第二无线接入网设备之间的 IUR接口增加 用户设备在所述第二无线接入网设备中的无线链路; State synchronization device for TCP agents. The fifth aspect, the device for providing state synchronization based on a TCP proxy, comprising: a determining unit, configured to determine, by using an IUR interface between the first radio access network device and the second radio access network device, the user equipment in the a wireless link in the wireless access network device;
发送单元, 用于根据所述确定单元确定的结果, 通过所述 TCP代理向以 下至少一侧, 所述用户设备, 或者, 服务器, 发送 TCP的 0窗口报文用于指 示暂停发送数据包;  a sending unit, configured to send, according to the result determined by the determining unit, a TCP window message to the at least one side, the user equipment, or the server by using the TCP proxy, to indicate that the data packet is suspended;
其中, 所述第一无线接入网设备为所述用户设备与服务器之间已建立的 第一 TCP连接提供 TCP代理,并通过所述 TCP代理緩存所述第一 TCP连接 上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的上行 数据。 The first radio access network device provides a TCP proxy for the first TCP connection established between the user equipment and the server, and buffers downlink data on the first TCP connection by using the TCP proxy, or Caching the uplink on the first TCP connection by using the TCP proxy Data.
在第五方面的第一种可能实现方式中, 发送单元具体用于:  In a first possible implementation manner of the fifth aspect, the sending unit is specifically configured to:
在所述第一无线接入网设备确定通过所述第一无线接入网设备与所述第 二无线接入网设备之间的 IUR接口增加所述用户设备在所述第二无线接入网 设备中的无线链路至所述第一无线接入网设备通过所述第一无线接入网设备 与所述第二无线接入网设备之间的 IUR接口完成增加所述用户设备在所述第 二无线接入网设备中的无线链路之间的任一时刻,通过所述 TCP代理向以下 至少一侧, 所述用户设备, 或者, 所述服务器, 发送 TCP的 0窗口报文用于 指示暂停发送数据包。  The first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device The wireless link in the device to the first radio access network device is completed by adding an IUR interface between the first radio access network device and the second radio access network device At any time between the wireless links in the second radio access network device, the TCP window sends a TCP window message to the at least one side, the user equipment, or the server, by using the TCP proxy. Indicates to suspend sending packets.
结合第五方面或者第五方面的第一种可能实现方式,在第五方面的第二种可 能实现方式中, 还包括:  With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the method further includes:
退出单元, 用于确定所述第一无线接入网设备通过所述 TCP代理緩存的 所述第一 TCP连接上的下行数据向所述用户设备发送完毕时, 通过所述 TCP 代理向所述服务器发送恢复窗口的 TCP报文,并对所述第一 TCP连接的下行方 向退出所述 TCP代理; 或者,  An exit unit, configured to determine, when the first radio access network device sends the downlink data on the first TCP connection cached by the TCP proxy to the user equipment, to the server by using the TCP proxy Sending a TCP message of the recovery window, and exiting the TCP proxy in a downlink direction of the first TCP connection; or
确定所述第一无线接入网设备通过所述 TCP 代理緩存的所述第一 TCP 连接上的上行数据向所述服务器发送完毕时,通过所述 TCP代理向所述用户设 备发送恢复窗口的 TCP报文,并对所述第一 TCP连接的上行方向退出所述 TCP 代理。  Determining, by the TCP proxy, sending a TCP of the recovery window to the user equipment when the first radio access network device sends the uplink data on the first TCP connection cached by the TCP proxy to the server. The message exits the TCP proxy in the uplink direction of the first TCP connection.
结合第五方面上述任一种可能实现方式,在第五方面的第四种可能实现方式 中, 还包括:  In conjunction with any of the foregoing possible implementation manners of the fifth aspect, in a fourth possible implementation manner of the fifth aspect, the method further includes:
处理单元, 用于确定所述用户设备在所述第二无线接入网设备中存在无 线链路时,对于所述用户设备和所述服务器之间新建立的第二 TCP连接停止 启动新的 TCP代理。  a processing unit, configured to determine, when the user equipment has a wireless link in the second radio access network device, stop starting a new TCP for a newly established second TCP connection between the user equipment and the server proxy.
结合第五方面上述任一种可能实现方式,在第五方面的第三种可能实现方式 中, 还包括: 启动单元, 用于确定通过所述第一无线接入网设备与所述第二无线接入 网设备之间的 IUR接口已删除所述用户设备在所述第二无线接入网设备中的 所有无线链路时,对于所述用户设备和所述服务器之间新建立的第二 TCP连 接启动新的 TCP代理。 With reference to the foregoing five possible implementation manners of the fifth aspect, in a third possible implementation manner of the fifth aspect, the method further includes: Activating unit, configured to determine that all the user equipments in the second radio access network device have been deleted by an IUR interface between the first radio access network device and the second radio access network device In the case of a wireless link, a new TCP proxy is initiated for a newly established second TCP connection between the user equipment and the server.
第六方面, 提供无线接入网设备, 包括第五方面任一种可能实现方式的基 于 TCP代理的状态同步装置。  In a sixth aspect, a radio access network device is provided, comprising a TCP proxy based state synchronization device of any of the possible implementations of the fifth aspect.
本发明实施例的方法和装置, 在移动通信***的接入网设备中部署 TCP 代理时, 用户设备因为异常释放, 或者, 向其他接入网设备移动或者切换时, 及时终止当前 TCP连接, 避免用户设备和服务器之间的 TCP状态变量不一 种, 使得用户恢复连接或者移动到其他接入网设备后, 能尽快恢复和服务器 的 TCP连接。 附图说明  The method and the device of the embodiment of the present invention, when the TCP proxy is deployed in the access network device of the mobile communication system, when the user equipment is abnormally released, or moves or switches to another access network device, the current TCP connection is terminated in time to avoid There is no TCP state variable between the user equipment and the server, so that after the user resumes the connection or moves to other access network devices, the TCP connection with the server can be restored as soon as possible. DRAWINGS
图 1 为本发明一实施例提供的基于 TCP代理的状态同步的方法的流程 图;  1 is a flow chart of a method for status synchronization based on a TCP proxy according to an embodiment of the present invention;
图 2为本发明另一实施例提供的基于 TCP代理的状态同步的方法的流程 图;  2 is a flow chart of a method for synchronizing state based on a TCP proxy according to another embodiment of the present invention;
图 3为本发明另一实施例提供的 UMTS***内切换流程图;  FIG. 3 is a flowchart of handover in a UMTS system according to another embodiment of the present invention;
图 4为本发明另一实施例提供的基于 TCP代理的状态同步的方法的流程 图;  4 is a flow chart of a method for status synchronization based on a TCP proxy according to another embodiment of the present invention;
图 5为本发明另一实施例提供的 UMTS ***内基于 IUR接口切换流程 图;  FIG. 5 is a flow chart of switching based on an IUR interface in a UMTS system according to another embodiment of the present invention; FIG.
图 6为本发明另一实施例提供的基于 TCP代理的状态同步的装置的结构 图;  FIG. 6 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention; FIG.
图 7为本发明另一实施例提供的基于 TCP代理的状态同步的装置的结构 图; 图 8为本发明另一实施例提供的基于 TCP代理的状态同步的装置的结构 图; FIG. 7 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention; FIG. FIG. 8 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention; FIG.
图 9为本发明另一实施例提供的基于 TCP代理的状态同步的装置的结构 图。 具体实施方式  FIG. 9 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 可以理解的是, 所描述的实施例仅仅是本发明一部分实 施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员 在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护 的范围。  The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. It is understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例中方法、 设备可以通过无线接入网设备来实现, 无线接入 网设备包括不限于下述任一种或者多于一种共同实现, 如, UMTS***中的 基站 NodeB或者无线网络控制器 RNC, 或者其他接入网设备的控制节点, 例如, GSM***中的基站控制器 BSC, LTE***中的演进基站 eNodeB等。 在本发明实施例中, 对于无线接入网设备而言, 终端, 用户和用户设备具有 相同的含义。  The method and device in the embodiment of the present invention may be implemented by using a radio access network device, where the radio access network device is not limited to any one of the following or more than one common implementation, such as a base station NodeB or a wireless network in a UMTS system. The controller RNC, or a control node of other access network devices, for example, a base station controller BSC in the GSM system, an evolved base station eNodeB in the LTE system, and the like. In the embodiment of the present invention, for a radio access network device, the terminal, the user, and the user equipment have the same meaning.
图 1 为本发明一实施例提供的基于 TCP代理的状态同步的方法的流程 图。 该方法可以应用于部署 TCP代理的第一无线接入网设备中。 如图所示, 该方法包括:  FIG. 1 is a flow chart of a method for state synchronization based on a TCP proxy according to an embodiment of the present invention. The method can be applied to a first radio access network device in which a TCP proxy is deployed. As shown, the method includes:
步骤 101 : 第一无线接入网设备确定即将释放所述第一无线接入网设备 与用户设备之间的信令连接。  Step 101: The first radio access network device determines that a signaling connection between the first radio access network device and the user equipment is about to be released.
其中, 第一无线接入网设备作为用户设备的源服务节点为用户设备提供 无线承载, 为用户设备与服务器之间已经建立的第一 TCP连接提供 TCP代 理。 第一无线接入网设备可以通过 TCP代理接收第一 TCP连接上服务器向 用户设备发送的下行数据, 并向服务器回复 ACK, 同时将获取到的下行数据 緩存到第一无线接入网设备中, 并按照相对比较大的窗口给用户设备发送緩存 的下行数据。第一无线接入网设备也可以通过 TCP代理接收第一 TCP连接上 用户设备向服务器发送的上行数据, 并向用户设备回复 ACK, 同时将获取到 的上行数据緩存到第一无线接入网设备中,并按照相对比较大的窗口给服务器 发送緩存的上行数据。 需要说明的是, 用户设备和服务器之间可以建立多个 TCP 连接, 第一无线接入网设备为每个 TCP连接分别提供 TCP代理, 本发明并不限 于此。 The first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The first radio access network device may receive, by using a TCP proxy, downlink data sent by the server to the user equipment on the first TCP connection, and reply ACK to the server, and acquire the downlink data at the same time. The cache is cached in the first radio access network device, and the buffered downlink data is sent to the user equipment according to a relatively large window. The first radio access network device may also receive the uplink data sent by the user equipment to the server on the first TCP connection through the TCP proxy, and reply the ACK to the user equipment, and cache the obtained uplink data to the first radio access network device. Medium, and send the cached upstream data to the server according to a relatively large window. It should be noted that multiple TCP connections may be established between the user equipment and the server, and the first radio access network device provides a TCP proxy for each TCP connection, and the present invention is not limited thereto.
第一无线接入网设备可以通过多种方式确定即将释放第一无线接入网设 备与用户设备之间的信令连接, 例如, 当第一无线接入网设备中出现异常无 法继续与用户设备保持信令连接, 又例如, 第一无线接入网设备将用户设备 切换到第二无线接入网设备中时, 需要说明的是, 上述均只是举例, 本发明 不限于此。 以第一无线接入网设备中出现异常无法继续与用户设备保持信令 连接为例, 在这种情况下, 第一无线接入网设备由于出现异常往往无法通过 正常的信令释放流程释放用户设备, 导致释放用户设备时, 通过 TCP代理緩 存的第一 TCP连接上的下行数据还来不及向用户设备发送完毕, 或者, 通过 TCP代理緩存的第一 TCP连接上的上行数据还来不及向服务器发送完毕,从 而使得服务器和用户设备之间 TCP状态不同步。  The first radio access network device may determine, by using various manners, that the signaling connection between the first radio access network device and the user equipment is about to be released, for example, when an abnormality occurs in the first radio access network device, the user equipment cannot be continued. When the first radio access network device switches the user equipment to the second radio access network device, it should be noted that the above is only an example, and the present invention is not limited thereto. For example, in the case where an abnormality in the first radio access network device cannot continue to maintain a signaling connection with the user equipment, in this case, the first radio access network device cannot release the user through a normal signaling release procedure due to an abnormality. When the device is released, the downlink data on the first TCP connection buffered by the TCP proxy is too late to be sent to the user equipment, or the uplink data on the first TCP connection buffered by the TCP proxy is too late to be sent to the server. So that the TCP state between the server and the user equipment is not synchronized.
第一无线接入网设备确定即将释放第一无线接入网设备与用户设备之间 的信令连接的基础上, 进一步地, 第一无线接入网设备还可以确定通过所述 TCP代理緩存的所述第一 TCP连接的下行数据未向所述用户设备发送完毕; 或者, 第一无线接入网设备还可以确定通过所述 TCP 代理緩存的所述第一 TCP连接的上行数据未向所述服务器发送完毕。  The first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, and further, the first radio access network device may further determine, by using the TCP proxy cache The downlink data of the first TCP connection is not sent to the user equipment; or the first radio access network device may further determine that the uplink data of the first TCP connection buffered by the TCP proxy is not The server has finished sending.
步骤 102: 根据步骤 101确定的结果, 第一无线接入网设备通过 TCP代 理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有复位 RST标 己的 TCP才艮文。  Step 102: According to the result determined in step 101, the first radio access network device sends a TCP packet carrying the reset RST flag to at least one side of the following by the TCP proxy: the user equipment, or the server.
根据步骤 101第一无线接入网设备确定即将释放第一无线接入网设备与 用户设备之间的信令连接 ,第一无线接入网设备可以通过 TCP代理分别向用 户设备和服务器发起 TCP RST过程,也就是分别向用户设备和服务器发送携 带有 RST标记的 TCP报文。 当然, 第一无线接入网设备也可以仅向用户设 备发起 TCP RST过程, 或者仅向服务器发起 TCP RST过程。 According to step 101, the first radio access network device determines that the first radio access network device is about to be released. The signaling connection between the user equipments, the first radio access network device can initiate a TCP RST process to the user equipment and the server respectively through the TCP proxy, that is, the TCP packets carrying the RST flag are respectively sent to the user equipment and the server. Of course, the first radio access network device may also initiate a TCP RST process only to the user equipment, or only initiate a TCP RST procedure to the server.
以用户设备为例, 用户设备接收到携带有 RST标记的 TCP报文后, 用 户设备会终止和服务器之间的 TCP 连接, 这样可以省去中间无效的交互过 程, 当用户设备重新和第一无线接入网设备或其他无线接入网设备建立信令 连接后, 用户设备和服务器之间的 TCP连接能快速重建, 对用户感受的影响 减到最低。  Taking the user equipment as an example, after the user equipment receives the TCP packet carrying the RST mark, the user equipment terminates the TCP connection with the server, which can save the intermediate invalid interaction process, when the user equipment re-enters the first wireless After the access network device or other radio access network device establishes a signaling connection, the TCP connection between the user equipment and the server can be quickly reconstructed, and the impact on the user experience is minimized.
通过本发明上述实施例的方法, 无线接入网设备通过 TCP代理緩存用户 设备和服务器之间 TCP连接的上行或者下行数据, 当需要释放用户设备连接 时, 主动向用户设备和服务器发起 TCP RST过程, 终止了当前 TCP连接, 避免了用户设备和服务器之间的 TCP状态变量不一致,可以尽快恢复用户设 备和服务器之间的 TCP连接。  With the method of the foregoing embodiment of the present invention, the radio access network device caches the uplink or downlink data of the TCP connection between the user equipment and the server through the TCP proxy, and initiates the TCP RST process to the user equipment and the server when the user equipment connection needs to be released. , terminates the current TCP connection, avoids the inconsistency of the TCP state variables between the user equipment and the server, and can restore the TCP connection between the user equipment and the server as soon as possible.
图 2为本发明另一实施例提供的基于 TCP代理的状态同步的方法的流程 图。 该方法可以应用于部署 TCP代理的第一无线接入网设备中。 如图所示, 该方法可以包括:  2 is a flow chart of a method for state synchronization based on TCP proxy according to another embodiment of the present invention. The method can be applied to a first radio access network device in which a TCP proxy is deployed. As shown, the method can include:
步骤 201 : 第一无线接入网设备确定将用户设备切换到第二无线接入网 设备中。  Step 201: The first radio access network device determines to switch the user equipment to the second radio access network device.
其中, 第一无线接入网设备作为用户设备的源服务节点为用户设备提供 无线承载, 为用户设备与服务器之间已经建立的第一 TCP连接提供 TCP代 理。 第一无线接入网设备可以通过 TCP代理接收第一 TCP连接上服务器向 用户设备发送的下行数据, 并向服务器回复 ACK, 同时将获取到的下行数据 緩存到第一无线接入网设备中, 并按照相对比较大的窗口给用户设备发送緩存 的下行数据。第一无线接入网设备也可以通过 TCP代理接收第一 TCP连接上 用户设备向服务器发送的上行数据, 并向用户设备回复 ACK, 同时将获取到 的上行数据緩存到第一无线接入网设备中,并按照相对比较大的窗口给服务器 发送緩存的上行数据。 需要说明的是, 用户设备和服务器之间可以建立多个 TCP 连接, 第一无线接入网设备为每个 TCP连接分别提供 TCP代理, 本发明并不限 于此。 The first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The first radio access network device can receive the downlink data sent by the server to the user equipment on the first TCP connection by using the TCP proxy, and reply the ACK to the server, and cache the obtained downlink data to the first radio access network device. And sending the buffered downlink data to the user equipment according to a relatively large window. The first radio access network device may also receive, by using a TCP proxy, uplink data sent by the user equipment to the server on the first TCP connection, and reply ACK to the user equipment, and obtain the ACK at the same time. The uplink data is buffered into the first radio access network device, and the cached uplink data is sent to the server according to a relatively large window. It should be noted that multiple TCP connections may be established between the user equipment and the server, and the first radio access network device provides a TCP proxy for each TCP connection, and the present invention is not limited thereto.
其中, 第一无线接入网设备和第二无线接入网设备可以是同一制式*** 中的接入网设备, 也可以是不同制式***中的接入网设备。 例如, 第一无线 接入网设备为 RNC, 第二无线接入网设备可以为 RNC , 也可以为 BSC , 或 者 eNodeB。  The first radio access network device and the second radio access network device may be access network devices in the same system, or may be access network devices in different system systems. For example, the first radio access network device is an RNC, and the second radio access network device may be an RNC, or a BSC, or an eNodeB.
以 UMTS***为例, 参见图 3 , 为第一无线接入网设备将用户设备切换 到第二无线接入网设备中的流程图。 第一无线接入网设备和第二无线接入网 设备均为 RNC , 第一无线接入网设备作为用户设备的源无线网络控制器 ( source radio network controller, SRNC ) , 第二无线接入网设备为用户设备 的目标无线网络控制器 ( target radio network controller, TRNC ) 。  Taking the UMTS system as an example, referring to FIG. 3, a flow chart for the first radio access network device to switch the user equipment to the second radio access network device. The first radio access network device and the second radio access network device are both RNCs, and the first radio access network device serves as a source radio network controller (SRNC) of the user equipment, and the second radio access network The device is the target radio network controller (TRNC) of the user equipment.
301 : SRNC 确定需要将用户设备切换到 TRNC 中, SRNC 向核心网 ( corenetwork, CN )发送切换请求 Relocation Required消息触发***内切换; 302: SRNC从核心网接收到切换命令 Relocation Command消息;  301: The SRNC determines that the user equipment needs to be switched to the TRNC, and the SRNC sends a handover request to the core network (CN). The Relocation Required message triggers the intra-system handover. 302: The SRNC receives the handover command Relocation Command message from the core network.
303 : SRNC向用户设备发送空口切换消息, 使得用户设备切换到第二无 线接入网设备中;  303: The SRNC sends an air interface switch message to the user equipment, so that the user equipment switches to the second wireless access network device.
304: SRNC从核心网接收到释放命令 Iu Release Command消息释放与用 户设备之间的信令连接。 在上述过程中, 当 SRNC从核心网接收到释放命 令消息时, 第一无线接入网设备通过 TCP代理緩存的第一 TCP连接上的下 行数据可能还没有向用户设备发送完毕,或者,第一无线接入网设备通过 TCP 代理緩存的第一 TCP连接上的上行数据可能还没有向服务器发送完毕,释放 用户设备和 SRNC之间的连接也会导致用户设备和服务器之间 TCP状态不同 步。  304: The SRNC receives a release command from the core network. The Iu Release Command message releases the signaling connection with the user equipment. In the above process, when the SRNC receives the release command message from the core network, the downlink data on the first TCP connection cached by the first radio access network device through the TCP proxy may not be sent to the user equipment, or first The uplink data on the first TCP connection cached by the wireless access network device through the TCP proxy may not be sent to the server. The release of the connection between the user equipment and the SRNC may also cause the TCP state between the user equipment and the server to be out of synchronization.
需要说明的是, 上述均只是在举例, 本发明并不限于此。 第一无线接入网设备确定将用户设备切换到第二无线接入网设备中的基 础上, 进一步地, 第一无线接入网设备还可以确定通过所述 TCP代理緩存的 所述第一 TCP连接的下行数据未向所述用户设备发送完毕; 或者, 第一无线 接入网设备还可以确定通过所述 TCP代理緩存的所述第一 TCP连接的上行 数据未向所述服务器发送完毕。 It should be noted that the above is merely an example, and the present invention is not limited thereto. The first radio access network device determines to switch the user equipment to the second radio access network device, and further, the first radio access network device may further determine the first TCP cached by the TCP proxy The downlink data of the connection is not sent to the user equipment; or the first radio access network device may further determine that the uplink data of the first TCP connection buffered by the TCP proxy is not sent to the server.
步骤 202: 根据步骤 201确定的结果, 第一无线接入网设备通过 TCP代 理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有复位 RST标 己的 TCP才艮文。  Step 202: According to the result determined in step 201, the first radio access network device sends a TCP packet carrying the reset RST flag to at least one side of the following by the TCP proxy: the user equipment, or the server.
根据步骤 201第一无线接入网设备确定将用户设备切换到第二无线接入 网设备中,第一无线接入网设备可以通过 TCP代理分别向用户设备和服务器 发起 TCP RST过程, 也就是分别向用户设备和服务器发送携带有 RST标记 的 TCP报文。 当然, 第一无线接入网设备也可以仅向用户设备发起 TCP RST 过程, 或者仅向服务器发起 TCP RST过程。  According to step 201, the first radio access network device determines to switch the user equipment to the second radio access network device, and the first radio access network device may initiate a TCP RST process to the user equipment and the server respectively through the TCP proxy, that is, respectively A TCP packet carrying the RST flag is sent to the user equipment and the server. Of course, the first radio access network device may also initiate a TCP RST process only to the user equipment, or only initiate a TCP RST procedure to the server.
以用户设备为例, 用户设备接收到携带有 RST标记的 TCP报文后, 用 户设备会终止和服务器之间的 TCP 连接, 这样可以省去中间无效的交互过 程, 当用户设备重新和第一无线接入网设备或其他无线接入网设备建立信令 连接后, 用户设备和服务器之间的 TCP连接能快速重建, 对用户感受的影响 减到最低。  Taking the user equipment as an example, after the user equipment receives the TCP packet carrying the RST mark, the user equipment terminates the TCP connection with the server, which can save the intermediate invalid interaction process, when the user equipment re-enters the first wireless After the access network device or other radio access network device establishes a signaling connection, the TCP connection between the user equipment and the server can be quickly reconstructed, and the impact on the user experience is minimized.
当第一无线接入网设备确定将用户设备切换到第二无线接入网设备中 时,第一无线接入网设备可以在释放用户设备连接前的任一时刻通过 TCP代 理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有复位 RST标 记的 TCP报文。 以图 3为例, 可以在 301至 303之间的任一时刻, 即 SRNC 确定将用户设备切换到 TRNC后, 第一无线接入网设备向核心网发送切换请 求 Relocation Required消息至第一无线接入网设备从核心网接收到切换命令 Relocation Command, 并根据切换命令向用户设备发送空口切换消息之间的 任一时刻通过 TCP代理分别向以下至少一侧: 用户设备, 或者, 服务器, 发 送携带有复位 RST标记的 TCP报文。 又例如, 若第一无线接入网设备和第 二无线接入网设备为不同制式***, 例如, SRNC确定将用户设备的电路域 连接切换到 BSC或者 eNodeB时, 也可以在第一无线接入网设备向核心网发 送切换请求 Relocation Required至第一无线接入网设备从核心网接收到切换 命令 Relocation Command, 并根据切换命令向用户设备发送空口切换消息之 间的任一时刻通过 TCP代理分别向以下至少一侧: 用户设备,或者,服务器, 发送携带有复位 RST标记的 TCP报文。 又例如, SRNC确定将用户设备的分 组域连接切换到 BSC时, SRNC可以在发送小区变更指示 Cell Change Order 消息前后的任一时刻通过 TCP代理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有复位 RST标记的 TCP报文。 需要说明的是, 上述均为 举例说明, 本发明实施例不限于此。 When the first radio access network device determines to switch the user equipment to the second radio access network device, the first radio access network device may use the TCP proxy to at least one of the following at any time before releasing the user equipment connection. Side: The user equipment, or the server, sends a TCP packet carrying the reset RST flag. For example, in FIG. 3, the first radio access network device may send a handover request Relocation Required message to the first radio access to the core network at any time between 301 and 303, that is, after the SRNC determines to switch the user equipment to the TRNC. The network access device receives the handover command Relocation Command from the core network, and sends the air interface switch message to the user equipment according to the handover command to the following at least one side through the TCP proxy: the user equipment, or the server, Send a TCP packet carrying the reset RST flag. For another example, if the first radio access network device and the second radio access network device are different system systems, for example, when the SRNC determines to switch the circuit domain connection of the user equipment to the BSC or the eNodeB, the first radio access may also be performed. The network device sends a handover request Relocation Required to the core network, and the first radio access network device receives the handover command Relocation Command from the core network, and sends the air interface switch message to the user equipment according to the handover command. At least one of the following: The user equipment, or the server, sends a TCP packet carrying the reset RST flag. For another example, when the SRNC determines to switch the packet domain connection of the user equipment to the BSC, the SRNC may respectively reach the following at least one side through the TCP proxy at any time before and after transmitting the cell change indication Cell Change Order message: the user equipment, or the server, Send a TCP packet carrying the reset RST flag. It should be noted that the foregoing are all examples, and the embodiments of the present invention are not limited thereto.
在前述步骤基础上, 在本发明另一实施例中可选地, 还可以包括: 步骤 203 : 第一无线接入网设备对于用户设备和服务器之间新建立的第 二 TCP连接停止启动新的 TCP代理。  On the basis of the foregoing steps, in another embodiment of the present invention, optionally, the method further includes: Step 203: The first radio access network device stops starting a new second TCP connection between the user equipment and the server. TCP proxy.
无论是在***内切换还是***间过程中, 由于用户设备的无线承载并未 中断, 用户设备和服务器之间仍可以建立第二 TCP连接, 此时, 第一无线接 入网设备对于新建立的第二 TCP连接不启动新的 TCP代理, 使得用户设备 和服务器之间的第二 TCP连接的状态不受第一无线接入网设备中 TCP代理 的影响。  The second TCP connection can still be established between the user equipment and the server, whether the intra-system handover or the inter-system procedure, the radio access of the user equipment is not interrupted, and the first radio access network equipment is newly established. The second TCP connection does not initiate a new TCP proxy, such that the state of the second TCP connection between the user equipment and the server is not affected by the TCP proxy in the first radio access network device.
通过本发明上述实施例的方法, 无线接入网设备通过 TCP代理緩存用户 设备和服务器之间 TCP连接的上行或者下行数据,且需要释放用户设备连接 时, 主动向用户设备和服务器发起 TCP RST过程, 终止了当前 TCP连接, 避免了用户设备和服务器之间的 TCP状态变量不一致,可以尽快恢复用户设 备和服务器之间的 TCP连接。 图 4为本发明另一实施例提供的基于 TCP代理的状态同步的方法的流程 图。 该方法可以应用于部署 TCP代理的第一无线接入网设备中, 在本发明实 施例中, 第一无线接入网设备与第二无线接入网设备之间存在 IUR接口。 如 图 4所示, 该方法包括: With the method of the foregoing embodiment of the present invention, the radio access network device caches the uplink or downlink data of the TCP connection between the user equipment and the server through the TCP proxy, and initiates the TCP RST process to the user equipment and the server when the user equipment connection needs to be released. , terminates the current TCP connection, avoids the inconsistency of the TCP state variables between the user equipment and the server, and can restore the TCP connection between the user equipment and the server as soon as possible. FIG. 4 is a flowchart of a method for synchronizing state based on TCP proxy according to another embodiment of the present invention; Figure. The method may be applied to a first radio access network device in which a TCP proxy is deployed. In the embodiment of the present invention, an IUR interface exists between the first radio access network device and the second radio access network device. As shown in FIG. 4, the method includes:
步骤 401 : 第一无线接入网设备确定通过第一无线接入网设备与第二无 线接入网设备之间的 IUR接口增加用户设备在第二无线接入网设备中的无线 链路。  Step 401: The first radio access network device determines to increase a radio link of the user equipment in the second radio access network device by using an IUR interface between the first radio access network device and the second radio access network device.
其中, 第一无线接入网设备作为用户设备的源服务节点为用户设备提供 无线承载, 为用户设备与服务器之间已经建立的第一 TCP连接提供 TCP代 理。 第一无线接入网设备可以通过 TCP代理接收第一 TCP连接上服务器向 用户设备发送的下行数据, 并向服务器回复 ACK, 同时将获取到的下行数据 緩存到第一无线接入网设备中, 并按照相对比较大的窗口给用户设备发送緩存 的下行数据。第一无线接入网设备也可以通过 TCP代理接收第一 TCP连接上 用户设备向服务器发送的上行数据, 并向用户设备回复 ACK, 同时将获取到 的上行数据緩存到第一无线接入网设备中,并按照相对比较大的窗口给服务器 发送緩存的上行数据。 需要说明的是, 用户设备和服务器之间可以建立多个 TCP 连接, 第一无线接入网设备为每个 TCP连接分别提供 TCP代理, 本发明并不限 于此。  The first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The first radio access network device can receive the downlink data sent by the server to the user equipment on the first TCP connection by using the TCP proxy, and reply the ACK to the server, and cache the obtained downlink data to the first radio access network device. And sending the buffered downlink data to the user equipment according to a relatively large window. The first radio access network device may also receive the uplink data sent by the user equipment to the server on the first TCP connection through the TCP proxy, and reply the ACK to the user equipment, and cache the obtained uplink data to the first radio access network device. Medium, and send the cached upstream data to the server according to a relatively large window. It should be noted that multiple TCP connections may be established between the user equipment and the server, and the first radio access network device provides a TCP proxy for each TCP connection, and the present invention is not limited thereto.
当用户设备从第一无线接入网设备向第二无线接入网设备移动时, 第一无 线接入网设备根据用户设备的测量报告可以确定通过第一无线接入网设备与 第二无线接入网设备之间的 IUR接口增加用户设备在第二无线接入网设备中 的无线链路。  When the user equipment moves from the first radio access network device to the second radio access network device, the first radio access network device may determine, according to the measurement report of the user equipment, that the first radio access network device is connected to the second radio The IUR interface between the network access devices increases the wireless link of the user equipment in the second radio access network device.
以 UMTS***为例, 参见图 5 , 为第一无线接入网设备通过第一无线接 入网设备与第二无线接入网设备之间的 IUR接口增加用户设备在第二无线接 入网设备中的无线链路的流程图。 第一无线接入网设备和第二无线接入网设 备均为 RNC,第一无线接入网设备作为用户设备的源无线网络控制器( source radio network controller, SRNC ) , 第二无线接入网设备为用户设备的漂移无 线网络控制器 ( drift radio network controller, DRNC ) 。 Taking the UMTS system as an example, referring to FIG. 5, the first radio access network device adds the user equipment to the second radio access network device through the IUR interface between the first radio access network device and the second radio access network device. Flowchart of the wireless link in . The first radio access network device and the second radio access network device are both RNCs, and the first radio access network device serves as a source radio network controller (SRNC) of the user equipment, and the second radio access network The device is drifting for the user equipment. Line network controller (DRNC).
501 : 用户设备从 SRNC向 DRNC区域移动时, SRNC根据用户设备的 测量" ^艮告确定向 DRNC发送无线链路建立请求 Radio Link Setup Request消息 用于增加用户设备在 DRNC中的无线链路;  501: When the user equipment moves from the SRNC to the DRNC area, the SRNC determines to send a radio link setup request to the DRNC according to the measurement of the user equipment. The Radio Link Setup Request message is used to increase the radio link of the user equipment in the DRNC.
502: SRNC从 DRNC接收到无线链路建立响应 Radio Link Setup Response 消息后, 和 DRNC之间建立传输承载;  502: After receiving the radio link setup response message from the DRNC, the SRNC establishes a transport bearer with the DRNC.
503 : SRNC 在从 DRNC 收到无线链路恢复指示 Radio Link Restore Indication消息后, 完成帧协议 ( Frame Protocol, FP ) 的上行同步和下行同 步;  503: After receiving the radio link recovery indication Radio Link Restore Indication message from the DRNC, the SRNC completes uplink synchronization and downlink synchronization of the Frame Protocol (FP);
504: SRNC向用户设备发送活动集更新 Active Set Update消息使得用户 设备增加 DRNC中新建立的无线链路;  504: The SRNC sends an Active Set Update Active Set Update message to the user equipment, so that the user equipment increases the newly established wireless link in the DRNC.
505: SRNC 接收到用户设备发送的活动集更新完成 Active Set Update Complete消息。  505: The SRNC receives the Active Set Update Complete message from the active set update sent by the user equipment.
如果用户设备继续向 DRNC移动, SRNC在删除了用户设备在 SRNC中 的无线链路后, 可以控制用户设备切换到的 DRNC。  If the user equipment continues to move to the DRNC, the SRNC can control the DRNC to which the user equipment is switched after deleting the radio link of the user equipment in the SRNC.
在上述场景下, TCP代理緩存的上行或者下行数据有可能尚未及时发送 到服务器或者用户设备,但是由于 SRNC和用户设备之间仍然保持信令连接, SRNC可以控制在向用户设备或者服务器发送完緩存的数据后再触发用户设 备切换到 DRNC。  In the above scenario, the uplink or downlink data cached by the TCP proxy may not be sent to the server or user equipment in time, but since the signaling connection is still maintained between the SRNC and the user equipment, the SRNC may control to send the cache to the user equipment or the server. The data is then triggered to trigger the user equipment to switch to the DRNC.
步骤 402: 根据步骤 401确定的结果, 第一无线接入网设备通过内置的 Step 402: According to the result determined in step 401, the first radio access network device passes through the built-in
TCP代理向以下至少一侧, 用户设备, 或者, 服务器, 发送 TCP的 0窗口报 文用于指示暂停发送数据包。 The TCP proxy sends a TCP 0 window message to at least one of the following, the user equipment, or the server, to indicate that the data packet is suspended.
根据步骤 401第一无线接入网设备确定通过第一无线接入网设备与第二 无线接入网设备之间的 IUR接口增加用户设备在第二无线接入网设备中的无 线链路,第一无线接入网设备可以通过 TCP代理向以下至少一侧,用户设备, 或者, 服务器, 发送 TCP的 0窗口报文用于指示暂停发送数据包。 当第一无线接入网设备确定通过第一无线接入网设备与第二无线接入网 设备之间的 IUR接口增加用户设备在第二无线接入网设备中的无线链路时, 第一无线接入网设备需要通知用户设备或者服务器暂停发送数据包, 以使得 第一无线接入网设备尽快将緩存的上行数据发送至服务器, 或者, 緩存的下 行数据发送至用户设备。 第一无线接入网设备可以分别向用户设备和服务器 中至少一侧, 发送 TCP的 0窗口报文。 以服务器为例, 服务器收到第一无线 接入网设备的 TCP代理发送的 TCP的 0窗口报文后, 会停止继续发送 TCP 报文, 使得第一无线接入网设备能尽快将緩存的下行数据发送给用户设备, 从而第一无线接入网设备能尽快触发用户设备切换到第二无线接入网设备 中, 并且保持用户设备和服务器两端的状态一致。 According to step 401, the first radio access network device determines to increase the radio link of the user equipment in the second radio access network device by using the IUR interface between the first radio access network device and the second radio access network device, A wireless access network device can send a TCP 0 window message to the at least one side, the user equipment, or the server through the TCP proxy to indicate that the data packet is suspended. When the first radio access network device determines to increase the radio link of the user equipment in the second radio access network device by using the IUR interface between the first radio access network device and the second radio access network device, the first The radio access network device needs to notify the user equipment or the server to suspend the transmission of the data packet, so that the first radio access network device sends the buffered uplink data to the server as soon as possible, or the buffered downlink data is sent to the user equipment. The first radio access network device may send a TCP 0 window message to at least one of the user equipment and the server. Taking the server as an example, after receiving the TCP window message sent by the TCP proxy of the first radio access network device, the server stops sending TCP packets, so that the first radio access network device can cache the downlink as soon as possible. The data is sent to the user equipment, so that the first radio access network device can trigger the user equipment to switch to the second radio access network device as soon as possible, and keep the state of both ends of the user equipment and the server consistent.
第一无线接入网设备可以在在所述第一无线接入网设备确定通过所述第 一无线接入网设备与所述第二无线接入网设备之间的 IUR接口增加所述用户 设备在所述第二无线接入网设备中的无线链路至所述第一无线接入网设备通 过所述第一无线接入网设备与所述第二无线接入网设备之间的 IUR接口完成 增加所述用户设备在所述第二无线接入网设备中的无线链路之间任一时刻通 过 TCP代理向以下至少一侧, 用户设备, 或者, 服务器, 发送 TCP的 0窗 口报文用于指示暂停发送数据包。 以图 5为例, 可以在 501至 505之间任一 时刻通过 TCP代理向以下至少一侧, 用户设备, 或者, 服务器, 发送 TCP 的 0窗口报文用于指示暂停发送数据包。  The first radio access network device may determine, at the first radio access network device, that the user equipment is added by an IUR interface between the first radio access network device and the second radio access network device An IUR interface between the wireless link in the second radio access network device and the first radio access network device through the first radio access network device and the second radio access network device Adding a TCP window message to the at least one side, the user equipment, or the server through the TCP proxy at any time between the time when the user equipment is added to the wireless link in the second radio access network device Instructed to suspend sending packets. As shown in FIG. 5, a TCP window message can be sent to the following at least one side, the user equipment, or the server through the TCP proxy at any time between 501 and 505 to indicate that the data packet is suspended.
进一步地, 在步骤 401和步骤 402的基础上, 可选地, 该方法还可以包 括步骤 403 :  Further, based on step 401 and step 402, optionally, the method may further include step 403:
步骤 403 : 若第一无线接入网设备确定笫一无线接入网设备将通过所述 TCP代理緩存的所述第一 TCP连接上的下行数据向用户设备发送完毕,第一 无线接入网设备通过所述 TCP代理向所述服务器发送恢复窗口的 TCP报文, 并 对第一 TCP连接的下行方向退出 TCP代理, 或者, 若第一无线接入网设备 确定第一无线接入网设备将通过所述 TCP代理緩存的所述第一 TCP连接上 的上行数据向服务器发送完毕, 第一无线接入网设备通过所述 TCP代理向所 述用户设备发送恢复窗口的 TCP报文,并对第一 TCP连接的上行方向退出 TCP 代理。 Step 403: If the first radio access network device determines that the downlink radio access network device sends the downlink data on the first TCP connection buffered by the TCP proxy to the user equipment, the first radio access network device Sending, by the TCP proxy, a TCP message of the recovery window to the server, and exiting the TCP proxy in the downlink direction of the first TCP connection, or if the first radio access network device determines that the first radio access network device will pass The first TCP connection of the TCP proxy cache After the uplink data is sent to the server, the first radio access network device sends a TCP packet of the recovery window to the user equipment through the TCP proxy, and exits the TCP proxy in the uplink direction of the first TCP connection.
其中, 第一无线接入网设备对用户设备和服务器之间的 TCP连接不执行 TCP代理操作, 即为退出 TCP代理。 下行方向, 服务器接收到恢复窗口的 TCP报文后, 恢复向用户设备发送数据, 由于第一无线接入网设备退出 TCP 代理,服务器恢复发送给用户设备的数据直接通过第一 TCP连接发送到用户 设备, 用户设备向服务器回复 ACK; 上行方向, 用户设备接收到恢复窗口的 TCP报文后, 恢复向服务器发送数据, 由于第一无线接入网设备退出 TCP代 理, 用户设备恢复发送给服务器的数据直接通过第一 TCP 连接发送到服务 器, 服务器向用户设备回复 ACK。 从而无论用户设备后续是否因为切换到第 二无线接入网设备,用户设备和服务器之间的 TCP连接上收发数据都能保持 连续性。  The first radio access network device does not perform a TCP proxy operation on the TCP connection between the user equipment and the server, that is, exits the TCP proxy. In the downlink direction, after receiving the TCP packet of the recovery window, the server resumes transmitting data to the user equipment. Because the first radio access network device exits the TCP proxy, the server restores the data sent to the user equipment and directly sends the data to the user through the first TCP connection. The user equipment returns an ACK to the server. In the uplink direction, after receiving the TCP packet of the recovery window, the user equipment resumes sending data to the server. Since the first radio access network device exits the TCP proxy, the user equipment recovers the data sent to the server. It is sent directly to the server through the first TCP connection, and the server replies with an ACK to the user equipment. Therefore, regardless of whether the user equipment subsequently switches to the second radio access network device, the data can be transmitted and received on the TCP connection between the user equipment and the server.
在本发明的另一实施例中, 在步骤 401和步骤 402的基础上, 可选地, 该方法还可以包括步骤 404:  In another embodiment of the present invention, based on step 401 and step 402, optionally, the method may further include step 404:
步骤 404: 若第一无线接入网设备确定用户设备在第二无线接入网设备 中存在无线链路, 第一无线接入网设备对于用户设备和服务器之间新建立的 第二 TCP连接停止启动新的 TCP代理。  Step 404: If the first radio access network device determines that the user equipment has a radio link in the second radio access network device, the first radio access network device stops the newly established second TCP connection between the user equipment and the server. Start a new TCP proxy.
由于用户设备在第二无线接入网设备中存在无线链路, 用户设备的无线 承载并未中断, 用户设备和服务器之间仍可以建立第二 TCP连接, 此时, 第 一无线接入网设备对于新建立的第二 TCP连接不启动新的 TCP代理, 使得 用户设备和服务器之间的第二 TCP 连接的状态不受第一无线接入网设备中 TCP代理的影响。  Since the user equipment has a wireless link in the second radio access network device, the radio bearer of the user equipment is not interrupted, and the second TCP connection can still be established between the user equipment and the server. At this time, the first radio access network device The new TCP proxy is not started for the newly established second TCP connection, so that the state of the second TCP connection between the user equipment and the server is not affected by the TCP proxy in the first radio access network device.
在本发明的另一实施例中, 在步骤 401和步骤 402的基础上, 可选地, 该方法还可以包括步骤 405:  In another embodiment of the present invention, based on step 401 and step 402, optionally, the method may further include step 405:
步骤 405 : 若第一无线接入网设备确定通过第一无线接入网设备与第二 无线接入网设备之间的 IUR接口已删除用户设备在第二无线接入网设备中的 所有无线链路, 第一无线接入网设备对于用户设备和服务器之间新建立的第 二 TCP连接启动新的 TCP代理。 Step 405: If the first radio access network device determines to pass the first radio access network device and the second The IUR interface between the radio access network devices has deleted all the radio links of the user equipment in the second radio access network device, and the first radio access network device newly establishes a second TCP connection between the user equipment and the server. Start a new TCP proxy.
当用户设备向第一无线接入网设备的覆盖区域移动时, 第一无线接入网 设备可以确定通过第一无线接入网设备与第二无线接入网设备之间的 IUR接 口删除用户设备在第二无线接入网设备中的无线链路, 一旦用户设备离开第 二无线接入网设备的覆盖区域时, 第一无线接入网设备可以根据用户设备的 测量报告确定删除用户设备在第二无线接入网设备中的所有无线链路。  When the user equipment moves to the coverage area of the first radio access network device, the first radio access network device may determine to delete the user equipment by using an IUR interface between the first radio access network device and the second radio access network device. The wireless link in the second radio access network device, when the user equipment leaves the coverage area of the second radio access network device, the first radio access network device may determine to delete the user equipment according to the measurement report of the user equipment. Two radio links in the radio access network equipment.
在这种场景下, 由于用户设备和第一无线接入网设备之间仍然保持信令 连接, 也不会进一步触发第一无线接入网设备将用户设备切换到第二无线接 入网设备中, 此时, 第一无线接入网设备可以对用户设备和服务器之间新建 立的第二 TCP连接启动新的 TCP代理。  In this scenario, since the signaling connection is still maintained between the user equipment and the first radio access network device, the first radio access network device is not further triggered to switch the user equipment to the second radio access network device. At this time, the first radio access network device may start a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
本发明实施例的方法, 由于第一无线接入网设备和第二无线接入网设备 之间存在 IUR接口, 第一无线接入网设备可以主动控制触发用户设备切换到 第二无线接入网设备中。 第一无线接入网设备在触发用户设备切换到第二无 线接入网设备前, 保证将 TCP代理緩存的数据及时发送并退出 TCP代理。 使得一旦需要触发用户设备切换到第二无线接入网设备时, 可以减少触发切 换的时延, 另一方面也可以保证用户设备接收数据的连续性, 同时使得用户 设备和服务器之间的 TCP连接状态一致。 图 6为本发明另一实施例提供的基于 TCP代理的状态同步的装置的结构 图。 该装置可以用于部署 TCP代理的第一无线接入网设备中。 如图所示, 该 装置包括:  In the method of the embodiment of the present invention, the first radio access network device can actively control to trigger the user equipment to switch to the second radio access network, because the IUR interface exists between the first radio access network device and the second radio access network device. In the device. Before triggering the user equipment to switch to the second wireless access network device, the first radio access network device ensures that the data cached by the TCP proxy is sent in time and exits the TCP proxy. When the user equipment needs to be triggered to switch to the second radio access network device, the delay of triggering the handover can be reduced, and on the other hand, the continuity of the data received by the user equipment can be ensured, and the TCP connection between the user equipment and the server is also made. The status is the same. FIG. 6 is a structural diagram of an apparatus for status synchronization based on a TCP proxy according to another embodiment of the present invention. The apparatus can be used in a first radio access network device that deploys a TCP proxy. As shown, the device includes:
确定单元 601 , 用于确定即将释放所述第一无线接入网设备与用户设备 之间的信令连接, 或者, 用于确定将用户设备切换到第二无线接入网设备中。  The determining unit 601 is configured to determine that a signaling connection between the first radio access network device and the user equipment is to be released, or is used to determine to switch the user equipment to the second radio access network device.
其中, 第一无线接入网设备作为用户设备的源服务节点为用户设备提供 无线承载, 为用户设备与服务器之间已经建立的第一 TCP连接提供 TCP代 理。 TCP代理的处理在前述各方法实施例中已经进行了描述, 在此处不再赘 述。 The first radio access network device provides the user equipment as a source service node of the user equipment. The radio bearer provides a TCP proxy for the first TCP connection that has been established between the user equipment and the server. The processing of the TCP proxy has been described in the foregoing method embodiments, and details are not described herein again.
其中, 第一无线接入网设备和第二无线接入网设备可以是同一制式*** 中的接入网设备, 也可以是不同制式***中的接入网设备。 例如, 第一无线 接入网设备为 RNC, 第二无线接入网设备可以为 RNC , 也可以为 BSC , 或 者 eNodeB。  The first radio access network device and the second radio access network device may be access network devices in the same system, or may be access network devices in different system systems. For example, the first radio access network device is an RNC, and the second radio access network device may be an RNC, or a BSC, or an eNodeB.
发送单元 602 , 用于根据确定单元 601的确定结果, 通过 TCP代理分别 向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有复位 RST 标记的 TCP才艮文。  The sending unit 602 is configured to send, according to the determination result of the determining unit 601, the TCP packet carrying the reset RST flag to the at least one side of the following by the TCP proxy: the user equipment, or the server.
根据确定单元 601的确定结果, 由于第一无线接入网设备与用户设备之 间的信令连接即将被释放,发送单元 602可以通过内置的 TCP代理分别向用 户设备和服务器发起 TCP RST过程,也就是分别向用户设备和服务器发送携 带有 RST标记的 TCP报文。 当然, 发送单元 602也可以仅向用户设备发起 TCP RST过程, 或者仅向服务器发起 TCP RST过程。  According to the determination result of the determining unit 601, since the signaling connection between the first radio access network device and the user equipment is about to be released, the sending unit 602 can initiate a TCP RST process to the user equipment and the server respectively through the built-in TCP proxy. That is, the TCP packet carrying the RST flag is sent to the user equipment and the server respectively. Of course, the sending unit 602 may also initiate a TCP RST process only to the user equipment, or only initiate a TCP RST process to the server.
以用户设备为例, 用户设备接收到携带有 RST标记的 TCP报文后, 用 户设备会终止和服务器之间的 TCP 连接, 这样可以省去中间无效的交互过 程, 当用户设备重新和第一无线接入网设备或其他无线接入网设备建立信令 连接后, 用户设备和服务器之间的 TCP连接能快速重建, 对用户感受的影响 减到最低。  Taking the user equipment as an example, after the user equipment receives the TCP packet carrying the RST mark, the user equipment terminates the TCP connection with the server, which can save the intermediate invalid interaction process, when the user equipment re-enters the first wireless After the access network device or other radio access network device establishes a signaling connection, the TCP connection between the user equipment and the server can be quickly reconstructed, and the impact on the user experience is minimized.
在本发明的一个实施例中, 当确定单元 601确定将用户设备切换到第二 无线接入网设备中时, 发送单元 602可以在释放用户设备连接前的任一时刻 通过 TCP代理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有 复位 RST标记的 TCP报文。 在前述方法实施例中已经对发送携带有 RST标 记的 TCP报文的发送时刻进行了描述, 在此处不再赘述。  In an embodiment of the present invention, when the determining unit 601 determines to switch the user equipment to the second radio access network device, the sending unit 602 may respectively use the TCP proxy to the following at any time before releasing the user equipment connection. One side: The user equipment, or the server, sends a TCP packet carrying the reset RST flag. The sending time of the TCP packet carrying the RST flag has been described in the foregoing method embodiment, and details are not described herein again.
在本发明的另一实施例中, 该装置可选地, 还可以包括: 处理单元 603: 用于对用户设备和服务器之间新建立的第二 TCP连接停 止启动新的 TCP代理。 In another embodiment of the present invention, the device may optionally further include: The processing unit 603 is configured to stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
本发明上述实施例所述的装置的各组成部分可用于实现前述相关方法实 施例中基于内置 TCP代理的状态同步的方法的各步骤的功能, 由于在前述方 法实施例中, 已经对各步骤进行了详细说明, 在此不再赘述。  The components of the apparatus according to the foregoing embodiments of the present invention may be used to implement the functions of the steps of the method based on the state synchronization of the built-in TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here.
通过本发明上述实施例的装置, 无线接入网设备通过 TCP代理緩存用户 设备和服务器之间 TCP连接的上行或者下行数据,且需要释放用户设备连接 时, 主动向用户设备和服务器发起 TCP RST过程, 终止了当前 TCP连接, 避免了用户设备和服务器之间的 TCP状态变量不一致,可以尽快恢复用户设 备和服务器之间的 TCP连接。 图 7为本发明另一实施例提供的基于内置 TCP代理的状态同步的装置的 结构图。 该装置可以用于部署 TCP代理的第一无线接入网设备中。 在本发明 实施例中, 第一无线接入网设备与第二无线接入网设备之间存在 IUR接口。 如图所示, 该装置包括:  With the device of the foregoing embodiment of the present invention, the radio access network device caches the uplink or downlink data of the TCP connection between the user equipment and the server through the TCP proxy, and initiates a TCP RST process to the user equipment and the server when the user equipment connection needs to be released. , terminates the current TCP connection, avoids the inconsistency of the TCP state variables between the user equipment and the server, and can restore the TCP connection between the user equipment and the server as soon as possible. FIG. 7 is a structural diagram of an apparatus for state synchronization based on a built-in TCP proxy according to another embodiment of the present invention. The apparatus can be used in a first radio access network device that deploys a TCP proxy. In the embodiment of the present invention, an IUR interface exists between the first radio access network device and the second radio access network device. As shown, the device includes:
确定单元 701 , 用于确定通过第一无线接入网设备与第二无线接入网设 备之间的 IUR接口增加用户设备在第二无线接入网设备中的无线链路。  The determining unit 701 is configured to determine, by using an IUR interface between the first radio access network device and the second radio access network device, the radio link of the user equipment in the second radio access network device.
其中, 第一无线接入网设备作为用户设备的源服务节点为用户设备提供 无线承载, 为用户设备与服务器之间已经建立的第一 TCP连接提供 TCP代 理。 TCP代理的处理在前述方法实施例中已经进行了描述,在此处不再赘述。  The first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The processing of the TCP proxy has been described in the foregoing method embodiments, and will not be described again here.
当用户设备从第一无线接入网设备向第二无线接入网设备移动时, 确定单 元 701根据用户设备的测量 告可以确定通过第一无线接入网设备与第二无 线接入网设备之间的 IUR接口增加用户设备在第二无线接入网设备中的无线 链路。  When the user equipment moves from the first radio access network device to the second radio access network device, the determining unit 701 may determine, according to the measurement report of the user equipment, that the first radio access network device and the second radio access network device The inter-IUR interface increases the wireless link of the user equipment in the second radio access network device.
发送单元 702, 用于根据确定单元 701确定的结果, 通过的 TCP代理向 以下至少一侧, 用户设备, 或者, 服务器, 发送 TCP的 0窗口报文用于指示 暂停发送数据包。 The sending unit 702 is configured to send, according to the result determined by the determining unit 701, the TCP proxy that passes the TCP window message to the at least one side, the user equipment, or the server, to indicate Pause sending packets.
根据确定单元 701确定的结果,发送单元 702可以通过 TCP代理向以下 至少一侧, 用户设备, 或者, 服务器, 发送 TCP的 0窗口报文用于指示暂停 发送数据包。  According to the result determined by the determining unit 701, the sending unit 702 can send a TCP 0 window message to the following at least one side, the user equipment, or the server through the TCP proxy to indicate that the data packet is suspended.
当确定单元 701确定通过第一无线接入网设备与第二无线接入网设备之 间的 IUR接口增加用户设备在第二无线接入网设备中的无线链路时, 第一无 线接入网设备需要通知用户设备或者服务器暂停发送数据包, 以使得第一无 线接入网设备尽快将緩存的上行数据发送至服务器, 或者, 緩存的下行数据 发送至用户设备。发送单元 702可以通过 TCP代理分别向用户设备和服务器 中至少一侧, 发送 TCP的 0窗口报文。 以服务器为例, 服务器收到第一无线 接入网设备的 TCP代理发送的 TCP的 0窗口报文后, 会停止继续发送 TCP 报文, 使得第一无线接入网设备能尽快将緩存的下行数据发送给用户设备, 从而第一无线接入网设备能尽快触发用户设备切换到第二无线接入网设备 中, 并且保持用户设备和服务器两端的状态一致。  When the determining unit 701 determines to increase the wireless link of the user equipment in the second radio access network device by using the IUR interface between the first radio access network device and the second radio access network device, the first radio access network The device needs to notify the user equipment or the server to suspend the sending of the data packet, so that the first radio access network device sends the buffered uplink data to the server as soon as possible, or the buffered downlink data is sent to the user equipment. The sending unit 702 can send a TCP 0 window message to at least one of the user equipment and the server through the TCP proxy. Taking the server as an example, after receiving the TCP window message sent by the TCP proxy of the first radio access network device, the server stops sending TCP packets, so that the first radio access network device can cache the downlink as soon as possible. The data is sent to the user equipment, so that the first radio access network device can trigger the user equipment to switch to the second radio access network device as soon as possible, and keep the state of both ends of the user equipment and the server consistent.
可选地, 在本发明另一实施例中, 还可以包括:  Optionally, in another embodiment of the present invention, the method may further include:
退出单元 703 , 用于确定第一无线接入网设备将通过 TCP代理緩存的第 一 TCP连接上的下行数据向用户设备发送完毕时, 通过所述 TCP代理向所述 服务器发送恢复窗口的 TCP报文, 并对第一 TCP连接的下行方向退出 TCP代 理, 或者, 确定第一无线接入网设备将通过 TCP代理緩存的第一 TCP连接 上的上行数据向服务器发送完毕时,通过所述 TCP代理向所述用户设备发送恢 复窗口的 TCP报文, 并对第一 TCP连接的上行方向退出 TCP代理。  The exiting unit 703 is configured to: when the first radio access network device sends the downlink data on the first TCP connection buffered by the TCP proxy to the user equipment, send, by using the TCP proxy, a TCP report of the recovery window to the server. And exiting the TCP proxy in the downlink direction of the first TCP connection, or determining that the first radio access network device sends the uplink data on the first TCP connection buffered by the TCP proxy to the server, and the TCP proxy is used. Sending a TCP message of the recovery window to the user equipment, and exiting the TCP proxy in the uplink direction of the first TCP connection.
可选地, 在本发明另一实施例中, 还可以包括:  Optionally, in another embodiment of the present invention, the method may further include:
处理单元 704: 用于确定用户设备在第二无线接入网设备中存在无线链 路时,对于用户设备和服务器之间新建立的第二 TCP连接停止启动新的 TCP 代理。  The processing unit 704 is configured to: when determining that the user equipment has a wireless link in the second radio access network device, stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
可选地, 在本发明另一实施例中, 还可以包括: 启动单元 705: 用于确定通过第一无线接入网设备与第二无线接入网设 备之间的 IUR接口已删除用户设备在第二无线接入网设备中的所有无线链路 时, 对于用户设备和服务器之间新建立的第二 TCP连接启动新的 TCP代理。 Optionally, in another embodiment of the present invention, the method may further include: The initiating unit 705 is configured to: when determining, by using the IUR interface between the first radio access network device and the second radio access network device, all the radio links of the user equipment in the second radio access network device are deleted, for the user A newly established second TCP connection between the device and the server initiates a new TCP proxy.
本发明上述实施例所述的装置的各组成部分可用于实现前述相关方法实 施例中基于 TCP代理的状态同步的方法的各步骤的功能, 由于在前述方法实 施例中, 已经对各步骤进行了详细说明, 在此不再赘述。  The components of the apparatus according to the above-mentioned embodiments of the present invention may be used to implement the functions of the steps of the method for synchronizing state based on TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here.
本发明实施例的装置, 由于第一无线接入网设备和第二无线接入网设备 之间存在 IUR接口, 第一无线接入网设备可以主动控制触发用户设备切换到 第二无线接入网设备中。 第一无线接入网设备在触发用户设备切换到第二无 线接入网设备前, 保证将 TCP代理緩存的数据及时发送并退出 TCP代理。 使得一旦需要触发用户设备切换到第二无线接入网设备时, 可以减少触发切 换的时延, 另一方面也可以保证用户设备接收数据的连续性, 同时使得用户 设备和服务器之间的 TCP连接状态一致。 图 8为本发明另一实施例提供的基于 TCP代理的状态同步的装置的结构 图。 该装置可以用于部署 TCP代理的第一无线接入网设备中。 如图所示, 该 装置包括: 存储器 801 , 处理器 802和收发器 803 , 处理器 802分别和存储器 801、 收发器 803相连接。 其中, 处理器 802调用存储器 801中存储的程序, 以用于确定即将释放所述第一无线接入网设备与用户设备之间的信令连接, 或者,用于确定将用户设备切换到第二无线接入网设备中时,控制收发器 803 通过 TCP代理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有 复位 RST标记的 TCP报文。 其中, 第一无线接入网设备作为用户设备的源 服务节点为用户设备提供无线承载, 为用户设备与服务器之间已经建立的第 一 TCP连接提供 TCP代理。 TCP代理的处理在前述各方法实施例中已经进 行了描述, 在此处不再赘述。  In the device of the embodiment of the present invention, the first radio access network device can actively control to trigger the user equipment to switch to the second radio access network, because the IUR interface exists between the first radio access network device and the second radio access network device. In the device. Before triggering the user equipment to switch to the second wireless access network device, the first radio access network device ensures that the data cached by the TCP proxy is sent in time and exits the TCP proxy. When the user equipment needs to be triggered to switch to the second radio access network device, the delay of triggering the handover can be reduced, and on the other hand, the continuity of the data received by the user equipment can be ensured, and the TCP connection between the user equipment and the server is also made. The status is the same. FIG. 8 is a structural diagram of an apparatus for state synchronization based on a TCP proxy according to another embodiment of the present invention. The apparatus can be used in a first radio access network device that deploys a TCP proxy. As shown, the device includes: a memory 801, a processor 802, and a transceiver 803. The processor 802 is coupled to the memory 801 and the transceiver 803, respectively. The processor 802 calls a program stored in the memory 801 to determine that a signaling connection between the first radio access network device and the user equipment is about to be released, or is used to determine to switch the user equipment to the second. In the case of the radio access network device, the control transceiver 803 sends a TCP packet carrying the reset RST flag to at least one of the following: the user equipment, or the server, through the TCP proxy. The first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The processing of the TCP proxy has been described in the foregoing method embodiments, and will not be described again here.
其中, 第一无线接入网设备和第二无线接入网设备可以是同一制式*** 中的接入网设备, 也可以是不同制式***中的接入网设备。 例如, 第一无线 接入网设备为 RNC, 第二无线接入网设备可以为 RNC, 也可以为 BSC, 或 者 eNodeB。 The first radio access network device and the second radio access network device may be the same system. The access network device in the system may also be an access network device in different standard systems. For example, the first radio access network device is an RNC, and the second radio access network device may be an RNC, a BSC, or an eNodeB.
处理器 802可以控制收发器 803通过内置的 TCP代理分别向用户设备和 服务器发起 TCP RST过程,也就是分别向用户设备和服务器发送携带有 RST 标记的 TCP报文。 当然, 处理器 802也可以控制收发器 803仅向用户设备发 起 TCP RST过程, 或者仅向服务器发起 TCP RST过程。  The processor 802 can control the transceiver 803 to initiate a TCP RST process to the user equipment and the server respectively through the built-in TCP proxy, that is, to send the TCP packet carrying the RST flag to the user equipment and the server respectively. Of course, the processor 802 can also control the transceiver 803 to only initiate a TCP RST process to the user equipment, or only initiate a TCP RST procedure to the server.
若处理器 802确定将用户设备切换到第二无线接入网设备中时, 处理器 802可以在释放用户设备连接前的任一时刻控制收发器 803通过 TCP代理分 别向以下至少一侧: 用户设备, 或者, 服务器, 发送携带有复位 RST标记的 TCP报文。 在前述方法实施例中已经对发送携带有 RST标记的 TCP报文的 发送时刻进行了描述, 在此处不再赘述。  If the processor 802 determines to switch the user equipment to the second radio access network device, the processor 802 can control the transceiver 803 to the following at least one side through the TCP proxy at any time before releasing the user equipment connection: Or, the server sends a TCP packet carrying the reset RST flag. The sending time of sending a TCP packet carrying the RST flag has been described in the foregoing method embodiment, and details are not described herein again.
可选地, 处理器 802还可以用于对用户设备和服务器之间新建立的第二 TCP连接停止启动新的 TCP代理。  Optionally, the processor 802 is further configured to stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
本发明上述实施例所述的装置的各组成部分可用于实现前述相关方法实 施例中基于内置 TCP代理的状态同步的方法的各步骤的功能, 由于在前述方 法实施例中, 已经对各步骤进行了详细说明, 在此不再赘述。 图 9为本发明另一实施例提供的基于内置 TCP代理的状态同步的装置的 结构图。 该装置可以用于部署 TCP代理的第一无线接入网设备中。 在本发明 实施例中, 第一无线接入网设备与第二无线接入网设备之间存在 IUR接口。 如图所示, 该装置包括: 存储器 901 , 处理器 902和收发器 903 , 处理器 902 分别和存储器 901、 收发器 903相连接。 其中, 处理器 902调用存储器 901 中存储的程序, 以用于确定通过第一无线接入网设备与第二无线接入网设备 之间的 IUR接口增加用户设备在第二无线接入网设备中的无线链路时, 控制 收发器 903通过 TCP代理分别向以下至少一侧: 用户设备, 或者, 服务器, 发送 TCP的 0窗口报文用于指示暂停发送数据包。 其中, 第一无线接入网设 备作为用户设备的源服务节点为用户设备提供无线承载, 为用户设备与服务 器之间已经建立的第一 TCP连接提供 TCP代理。 TCP代理的处理在前述方 法实施例中已经进行了描述, 在此处不再赘述。 The components of the apparatus according to the foregoing embodiments of the present invention may be used to implement the functions of the steps of the method based on the state synchronization of the built-in TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here. FIG. 9 is a structural diagram of an apparatus for state synchronization based on a built-in TCP proxy according to another embodiment of the present invention. The apparatus can be used in a first radio access network device that deploys a TCP proxy. In the embodiment of the present invention, an IUR interface exists between the first radio access network device and the second radio access network device. As shown, the device includes: a memory 901, a processor 902, and a transceiver 903. The processor 902 is coupled to the memory 901 and the transceiver 903, respectively. The processor 902 calls a program stored in the memory 901, and is configured to determine that the user equipment is added to the second radio access network device by using an IUR interface between the first radio access network device and the second radio access network device. When the wireless link is used, the control transceiver 903 passes the TCP proxy to at least one of the following: the user equipment, or the server, The 0 window message of the sending TCP is used to indicate that the data packet is suspended. The first radio access network device serves as a source service node of the user equipment to provide a radio bearer for the user equipment, and provides a TCP proxy for the first TCP connection established between the user equipment and the server. The processing of the TCP proxy has been described in the foregoing method embodiments, and will not be described again here.
当用户设备从第一无线接入网设备向第二无线接入网设备移动时, 处理器 When the user equipment moves from the first radio access network device to the second radio access network device, the processor
902 根据用户设备的测量报告可以确定通过第一无线接入网设备与第二无线 接入网设备之间的 IUR接口增加用户设备在第二无线接入网设备中的无线链 路。 902: According to the measurement report of the user equipment, it may be determined that the wireless link of the user equipment in the second radio access network device is increased by using an IUR interface between the first radio access network device and the second radio access network device.
可选地, 处理器 902还可以用于确定第一无线接入网设备将通过 TCP代 理緩存的第一 TCP 连接上的下行数据向用户设备发送完毕时, 控制收发器 903通过 TCP代理向服务器发送恢复窗口的 TCP报文, 并对第一 TCP连接的下 行方向退出 TCP代理, 或者, 确定第一无线接入网设备将通过 TCP代理緩 存的第一 TCP连接上的上行数据向服务器发送完毕时,控制收发器 903通过 TCP代理向用户设备发送恢复窗口的 TCP报文, 并对第一 TCP连接的上行方向 退出 TCP代理。  Optionally, the processor 902 is further configured to: when the first radio access network device sends the downlink data on the first TCP connection buffered by the TCP proxy to the user equipment, the control transceiver 903 sends the server to the server through the TCP proxy. Recovering the TCP packet of the window, and exiting the TCP proxy in the downlink direction of the first TCP connection, or determining that the first radio access network device sends the uplink data on the first TCP connection buffered by the TCP proxy to the server. The control transceiver 903 sends a TCP message of the recovery window to the user equipment through the TCP proxy, and exits the TCP proxy in the uplink direction of the first TCP connection.
可选地, 处理器 902还可以用于确定用户设备在第二无线接入网设备中 存在无线链路时,对于用户设备和服务器之间新建立的第二 TCP连接停止启 动新的 TCP代理。  Optionally, the processor 902 is further configured to: when the user equipment has a wireless link in the second radio access network device, stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
可选地, 处理器 902还可以用于确定通过第一无线接入网设备与第二无 线接入网设备之间的 IUR接口已删除用户设备在第二无线接入网设备中的所 有无线链路时,对于用户设备和服务器之间新建立的第二 TCP连接启动新的 TCP代理。  Optionally, the processor 902 is further configured to determine that all the wireless links of the user equipment in the second radio access network device have been deleted by the IUR interface between the first radio access network device and the second radio access network device. On the road, a new TCP proxy is started for the newly established second TCP connection between the user equipment and the server.
本发明上述实施例所述的装置的各组成部分可用于实现前述相关方法实 施例中基于 TCP代理的状态同步的方法的各步骤的功能, 由于在前述方法实 施例中, 已经对各步骤进行了详细说明, 在此不再赘述。 通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件 实现时, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上 的一个或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和 通信介质, 其中通信介质包括便于从一个地方向另一个地方传送计算机程序 的任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但 不限于: 计算机可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其 他光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储 具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他 介质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是 使用同轴电缆、 光纤光缆、 双绞线、 数字用户线 (DSL ) 或者诸如红外线、 无线电和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么 同轴电缆、 光纤光缆、 双绞线、 DSL或者诸如红外线、 无线和微波之类的无 线技术包括在所属介质的定影中。 如本发明所使用的, 盘( Disk )和碟( disc ) 包括压缩光碟(CD ) 、 激光碟、 光碟、 数字通用光碟(DVD ) 、 软盘和蓝光 光碟, 其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面 的组合也应当包括在计算机可读介质的保护范围之内。 总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定 本发明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换、 改进等, 均应包含在本发明的保护范围之内。 The components of the apparatus according to the above-mentioned embodiments of the present invention may be used to implement the functions of the steps of the method for synchronizing state based on TCP proxy in the foregoing related method embodiments, since in the foregoing method embodiments, the steps have been performed. Detailed description will not be repeated here. Through the description of the above embodiments, it will be apparent to those skilled in the art that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a computer. By way of example and not limitation, computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure. The desired program code and any other medium that can be accessed by the computer. Also. Any connection may suitably be a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media. In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种基于传输控制协议 TCP代理的状态同步方法, 其特征在于, 所 述方法包括:  A state synchronization method based on a TCP protocol of a transmission control protocol, the method comprising:
第一无线接入网设备确定即将释放所述第一无线接入网设备与用户设 备之间的信令连接, 或者, 第一无线接入网设备确定将用户设备切换到第二 无线接入网设备中, 其中, 所述第一无线接入网设备用于为所述用户设备与 服务器之间已建立的第一 TCP连接提供 TCP代理,并通过所述 TCP代理緩 存所述第一 TCP连接上的下行数据, 或者, 通过所述 TCP代理緩存所述第 一 TCP连接上的上行数据;  The first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, or the first radio access network device determines to switch the user equipment to the second radio access network. In the device, the first radio access network device is configured to provide a TCP proxy for the first TCP connection established between the user equipment and the server, and cache the first TCP connection by using the TCP proxy. Downstream data, or buffering uplink data on the first TCP connection by using the TCP proxy;
若所述第一无线接入网设备确定即将释放所述第一无线接入网设备与 所述用户设备之间的信令连接, 或者, 所述第一无线接入网设备确定将所述 用户设备切换到第二无线接入网设备中,所述第一无线接入网设备通过所述 If the first radio access network device determines that the signaling connection between the first radio access network device and the user equipment is about to be released, or the first radio access network device determines that the user is to be The device switches to the second radio access network device, and the first radio access network device passes the
TCP代理分别向以下至少一侧: 所述用户设备, 或者, 所述服务器, 发送携 带有复位 RST标记的 TCP报文。 The TCP proxy sends at least one of the following: the user equipment, or the server, sends a TCP packet carrying the reset RST flag.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述第一无线接入网设 备确定即将释放所述第一无线接入网设备与用户设备之间的信令连接, 包 括: 2. The method according to claim 1, wherein the first radio access network device determines that a signaling connection between the first radio access network device and the user equipment is about to be released, and includes:
所述第一无线接入网设备确定即将释放所述第一无线接入网设备与用 户设备之间的信令连接, 且, 所述第一无线接入网设备确定通过所述 TCP 代理緩存的所述第一 TCP连接的下行数据未向所述用户设备发送完毕; 或 者,  Determining that the first radio access network device is about to release a signaling connection between the first radio access network device and the user equipment, and the first radio access network device determines to be cached by the TCP proxy The downlink data of the first TCP connection is not sent to the user equipment; or
所述第一无线接入网设备确定即将释放所述第一无线接入网设备与用 户设备之间的信令连接, 且, 所述第一无线接入网设备确定通过所述 TCP 代理緩存的所述第一 TCP连接的上行数据未向所述服务器发送完毕。  Determining that the first radio access network device is about to release a signaling connection between the first radio access network device and the user equipment, and the first radio access network device determines to be cached by the TCP proxy The uplink data of the first TCP connection is not sent to the server.
3、 根据权利要求 1 所述的方法, 其特征在于, 所述第一无线接入网设 备确定将所述用户设备切换到第二无线接入网设备中, 包括: The method according to claim 1, wherein the first radio access network is configured And determining to switch the user equipment to the second radio access network device, including:
所述第一无线接入网设备确定将所述用户设备切换到第二无线接入网 设备中, 且, 所述第一无线接入网设备确定通过所述 TCP代理緩存的所述 第一 TCP连接的下行数据未向所述用户设备发送完毕; 或者,  The first radio access network device determines to switch the user equipment to a second radio access network device, and the first radio access network device determines the first TCP cached by the TCP proxy The downlink data of the connection is not sent to the user equipment; or
所述第一无线接入网设备确定将所述用户设备切换到第二无线接入网 设备中, 且, 所述第一无线接入网设备确定通过所述 TCP代理緩存的所述 第一 TCP连接的上行数据未向所述服务器发送完毕。  The first radio access network device determines to switch the user equipment to a second radio access network device, and the first radio access network device determines the first TCP cached by the TCP proxy The uplink data of the connection is not sent to the server.
4、 根据权利要求 1或者 3所述的方法, 其特征在于, 所述第一无线接 入网设备通过所述 TCP代理分别向以下至少一侧: 所述用户设备, 或者, 所述服务器, 发送携带有复位 RST标记的 TCP报文, 包括:  The method according to claim 1 or 3, wherein the first radio access network device sends, by the TCP proxy, to at least one of the following: the user equipment, or the server, The TCP packet carrying the reset RST flag includes:
在所述第一无线接入网设备向核心网发送切换请求至所述第一无线接 入网设备从所述核心网接收到切换命令 ,并根据所述切换命令向所述用户设 备发送空口切换消息之间的任一时刻, 所述第一无线接入网设备通过所述 TCP代理分别向以下至少一侧: 所述用户设备, 或者, 所述服务器, 发送携 带有复位 RST标记的 TCP报文。  Transmitting, by the first radio access network device, a handover request to the core network, to the first radio access network device, receiving a handover command from the core network, and sending an air interface switch to the user equipment according to the handover command. At any time between the messages, the first radio access network device sends, by the TCP proxy, to at least one of the following: the user equipment, or the server, sends a TCP packet carrying a reset RST flag. .
5、 根据权利要求 1至 4任一项所述的方法, 其特征在于, 所述方法还 包括:  The method according to any one of claims 1 to 4, wherein the method further comprises:
所述第一无线接入网设备对于所述用户设备和所述服务器之间新建立 的第二 TCP连接停止启动新的 TCP代理。  The first radio access network device stops starting a new TCP proxy for a newly established second TCP connection between the user equipment and the server.
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述第一无 线接入网设备为无线网络控制器 RNC, 所述第二无线接入网设备为无线网 络控制器 RNC , 或者, 基站控制器 BSC, 或者, 演进型基站 eNodeB。  The method according to any one of claims 1 to 5, wherein the first radio access network device is a radio network controller RNC, and the second radio access network device is a radio network controller. RNC, or, base station controller BSC, or evolved base station eNodeB.
7、 一种基于传输控制协议 TCP代理的状态同步方法, 其特征在于, 所 述方法包括: 7. A state synchronization method based on a TCP protocol of a transmission control protocol, the method comprising:
第一无线接入网设备确定通过所述第一无线接入网设备与第二无线接 入网设备之间的 IUR接口增加用户设备在所述第二无线接入网设备中的无 线链路, 其中, 所述第一无线接入网设备为所述用户设备与服务器之间已建 立的第一 TCP连接提供 TCP代理,并通过所述 TCP代理緩存所述第一 TCP 连接上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的 上行数据; Determining, by the first radio access network device, the first radio access network device and the second radio access The IUR interface between the network access devices increases the wireless link of the user equipment in the second radio access network device, where the first radio access network device is an established between the user equipment and the server Providing a TCP proxy by a TCP connection, and buffering downlink data on the first TCP connection by using the TCP proxy, or buffering uplink data on the first TCP connection by using the TCP proxy;
若所述第一无线接入网设备确定通过所述第一无线接入网设备与所述 第二无线接入网设备之间的 IUR接口增加所述用户设备在所述第二无线接 入网设备中的无线链路, 所述第一无线接入网设备通过所述 TCP代理向以 下至少一侧, 所述用户设备, 或者, 所述服务器, 发送 TCP的 0窗口报文 用于指示暂停发送数据包。  If the first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device a wireless link in the device, the first radio access network device sends a TCP 0 window message to the at least one side, the user equipment, or the server by using the TCP proxy to indicate that the sending is suspended. data pack.
8、 根据权利要求 7所述的方法, 其特征在于, 所述第一无线接入网设 备通过所述 TCP代理向以下至少一侧, 所述用户设备, 或者, 所述服务器, 发送 TCP的 0窗口报文用于指示暂停发送数据包, 包括:  The method according to claim 7, wherein the first radio access network device sends a TCP 0 to the following at least one side, the user equipment, or the server by using the TCP proxy. The window message is used to indicate that the data packet is suspended, including:
在所述第一无线接入网设备确定通过所述第一无线接入网设备与所述 第二无线接入网设备之间的 IUR接口增加所述用户设备在所述第二无线接 入网设备中的无线链路至所述第一无线接入网设备通过所述第一无线接入 网设备与所述第二无线接入网设备之间的 IUR接口完成增加所述用户设备 在所述第二无线接入网设备中的无线链路之间的任一时刻,所述第一无线接 入网设备通过所述 TCP代理向以下至少一侧, 所述用户设备, 或者, 所述 服务器, 发送 TCP的 0窗口报文用于指示暂停发送数据包。  The first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device The wireless link in the device to the first radio access network device is completed by adding an IUR interface between the first radio access network device and the second radio access network device At any time between the wireless links in the second radio access network device, the first radio access network device passes the TCP proxy to at least one of the following, the user equipment, or the server, The 0 window message of the sending TCP is used to indicate that the data packet is suspended.
9、根据权利要求 7或者 8所述的方法,其特征在于, 所述方法还包括: 若所述第一无线接入网设备确定所述第一无线接入网设备将通过所述 TCP代理緩存的所述第一 TCP连接上的下行数据向所述用户设备发送完毕, 所述第一无线接入网设备通过所述 TCP代理向所述服务器发送恢复窗口的 TCP报文, 并对所述第一 TCP连接的下行方向退出所述 TCP代理; 或者, 若所述第一无线接入网设备确定所述第一无线接入网设备将通过所述The method according to claim 7 or 8, wherein the method further comprises: if the first radio access network device determines that the first radio access network device will pass the TCP proxy cache The downlink data on the first TCP connection is sent to the user equipment, and the first radio access network device sends a TCP message of the recovery window to the server by using the TCP proxy, and the Exiting the TCP proxy in the downstream direction of a TCP connection; or If the first radio access network device determines that the first radio access network device will pass the
TCP代理緩存的所述第一 TCP连接上的上行数据向所述服务器发送完毕, 所述第一无线接入网设备通过所述 TCP 代理向所述用户设备发送恢复窗口的 TCP报文, 并对所述第一 TCP连接的上行方向退出所述 TCP代理。 The uplink data on the first TCP connection cached by the TCP proxy is sent to the server, and the first radio access network device sends a TCP packet of the recovery window to the user equipment by using the TCP proxy, and The uplink direction of the first TCP connection exits the TCP proxy.
10、 根据权利要求 7至 9任一项所述的方法, 其特征在于, 所述方法还 包括:  The method according to any one of claims 7 to 9, wherein the method further comprises:
若所述第一无线接入网设备确定所述用户设备在所述第二无线接入网 设备中存在无线链路,所述第一无线接入网设备对于所述用户设备和所述服 务器之间新建立的第二 TCP连接停止启动新的 TCP代理。  If the first radio access network device determines that the user equipment has a radio link in the second radio access network device, the first radio access network device is for the user equipment and the server The newly established second TCP connection stops starting a new TCP proxy.
11、 根据权利要求 7至 10任一项所述的方法, 其特征在于, 所述方法 还包括:  The method according to any one of claims 7 to 10, wherein the method further comprises:
若所述第一无线接入网设备确定通过所述第一无线接入网设备与所述 第二无线接入网设备之间的 IUR接口已删除所述用户设备在所述第二无线 接入网设备中的所有无线链路,所述第一无线接入网设备对于所述用户设备 和所述服务器之间新建立的第二 TCP连接启动新的 TCP代理。  If the first radio access network device determines that the user equipment is deleted by the IUR interface between the first radio access network device and the second radio access network device, the second radio access All wireless links in the network device, the first wireless access network device initiating a new TCP proxy for a newly established second TCP connection between the user device and the server.
12、 一种基于传输控制协议 TCP代理的状态同步的装置, 包括: 确定单元, 用于确定即将释放第一无线接入网设备与用户设备之间的信 令连接, 或者, 确定将所述用户设备切换到第二无线接入网设备中; An apparatus for synchronizing status of a TCP proxy based on a transmission control protocol, comprising: a determining unit, configured to determine that a signaling connection between a first radio access network device and a user equipment is about to be released, or determine that the user is to be Switching the device to the second radio access network device;
发送单元, 用于根据所述确定单元的确定结果, 通过所述 TCP 代理分 别向以下至少一侧: 所述用户设备, 或者, 服务器, 发送携带有复位 RST 标己的 TCP才艮文;  a sending unit, configured to send, according to the determining result of the determining unit, the TCP proxy to the at least one side: the user equipment, or the server, to send a TCP packet carrying the reset RST identifier;
其中, 所述第一无线接入网设备用于为所述用户设备与服务器之间已建 立的第一 TCP连接提供 TCP代理,并通过所述 TCP代理緩存所述第一 TCP 连接上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的 上行数据。 The first radio access network device is configured to provide a TCP proxy for the first TCP connection established between the user equipment and the server, and cache the downlink data on the first TCP connection by using the TCP proxy. Or, the uplink data on the first TCP connection is cached by the TCP proxy.
13、 根据权利要求 12所述的装置, 其特征在于, 所述确定单元具体用 于:确定即将释放所述第一无线接入网设备与用户设备之间的信令连接,且, 所述第一无线接入网设备通过所述 TCP代理緩存的所述第一 TCP连接的下 行数据未向所述用户设备发送完毕; 或者, 确定即将释放所述第一无线接入 网设备与用户设备之间的信令连接, 且, 所述第一无线接入网设备通过所述 TCP代理緩存的所述第一 TCP连接的上行数据未向所述服务器发送完毕。 The device according to claim 12, wherein the determining unit is specifically configured to: determine that a signaling connection between the first radio access network device and the user equipment is about to be released, and the The downlink data of the first TCP connection cached by the wireless access network device by the TCP proxy is not sent to the user equipment; or, determining that the first radio access network device and the user equipment are about to be released The signaling connection, and the uplink data of the first TCP connection buffered by the first radio access network device by the TCP proxy is not sent to the server.
14、 根据权利要求 12所述的方法, 其特征在于, 所述确定单元具体用 于: 确定将所述用户设备切换到第二无线接入网设备中, 且, 所述第一无线 接入网设备通过所述 TCP代理緩存的所述第一 TCP连接的下行数据未向所 述用户设备发送完毕; 或者,  The method according to claim 12, wherein the determining unit is specifically configured to: determine to switch the user equipment to a second radio access network device, and the first radio access network The downlink data of the first TCP connection cached by the device through the TCP proxy is not sent to the user equipment; or
确定将所述用户设备切换到第二无线接入网设备中, 且, 所述第一无线 接入网设备通过所述 TCP代理緩存的所述第一 TCP连接的上行数据未向所 述服务器发送完毕。  Determining that the user equipment is switched to the second radio access network device, and the uplink data of the first TCP connection buffered by the first radio access network device by the TCP proxy is not sent to the server Finished.
15、 根据权利要求 12或者 14所述的装置, 其特征在于, 所述发送单元 具体用于:在所述第一无线接入网设备向核心网发送切换请求至所述第一无 线接入网设备从所述核心网接收到切换命令,并根据所述切换命令向所述用 户设备发送空口切换消息之间的任一时刻, 通过所述 TCP代理分别向以下 至少一侧: 所述用户设备, 或者, 所述服务器, 发送携带有复位 RST 标记 的 TCP才艮文。  The device according to claim 12 or 14, wherein the sending unit is specifically configured to: send, by the first radio access network device, a handover request to the core network to the first radio access network The device receives a handover command from the core network, and sends any time between the air interface switch messages to the user equipment according to the handover command, and the TCP proxy respectively goes to at least one of the following: the user equipment, Alternatively, the server sends a TCP packet carrying the reset RST flag.
16、 根据权利要求 12至 15任一项所述的装置, 其特征在于, 所述第一 无线接入网设备为无线网络控制器 RNC, 所述第二无线接入网设备为无线 网络控制器 RNC , 或者, 基站控制器 BSC, 或者, 演进型基站 eNodeB。  The device according to any one of claims 12 to 15, wherein the first radio access network device is a radio network controller RNC, and the second radio access network device is a radio network controller. RNC, or, base station controller BSC, or evolved base station eNodeB.
17、 根据权利要求 12至 16任一项所述的装置, 其特征在于, 所述装置 还包括:  The device according to any one of claims 12 to 16, wherein the device further comprises:
处理单元, 用于对所述用户设备和所述服务器之间新建立的第二 TCP 连接停止启动新的 TCP代理。 The processing unit is configured to stop starting a new TCP proxy for the newly established second TCP connection between the user equipment and the server.
18、 一种无线接入网设备, 其特征在于, 包括权利要求 10至 15任一项 所述的装置。 A radio access network device, comprising the apparatus of any one of claims 10 to 15.
19、 一种基于传输控制协议 TCP代理的状态同步的装置, 包括: 确定单元, 用于确定通过第一无线接入网设备与第二无线接入网设备之 间的 IUR接口增加用户设备在所述第二无线接入网设备中的无线链路; 发送单元, 用于根据所述确定单元确定的结果, 通过所述 TCP 代理向 以下至少一侧, 所述用户设备, 或者, 服务器, 发送 TCP的 0窗口报文用 于指示暂停发送数据包; A device for synchronizing state of a TCP proxy based on a transmission control protocol, comprising: a determining unit, configured to determine, by using an IUR interface between the first radio access network device and the second radio access network device, the user equipment a wireless link in the second radio access network device; a sending unit, configured to send, by using the TCP proxy, to the following at least one side, the user equipment, or the server, according to the result determined by the determining unit, 0 window message is used to indicate that the data packet is suspended;
其中, 所述第一无线接入网设备为所述用户设备与服务器之间已建立的 第一 TCP连接提供 TCP代理, 并通过所述 TCP代理緩存所述第一 TCP连 接上的下行数据, 或者, 通过所述 TCP代理緩存所述第一 TCP连接上的上 行数据。  The first radio access network device provides a TCP proxy for the first TCP connection established between the user equipment and the server, and caches downlink data on the first TCP connection by using the TCP proxy, or And buffering uplink data on the first TCP connection by using the TCP proxy.
20、 根据权利要求 19所述的装置, 其特征在于, 所述发送单元具体用 于:  The device according to claim 19, wherein the sending unit is specifically configured to:
在所述第一无线接入网设备确定通过所述第一无线接入网设备与所述 第二无线接入网设备之间的 IUR接口增加所述用户设备在所述第二无线接 入网设备中的无线链路至所述第一无线接入网设备通过所述第一无线接入 网设备与所述第二无线接入网设备之间的 IUR接口完成增加所述用户设备 在所述第二无线接入网设备中的无线链路之间的任一时刻, 通过所述 TCP 代理向以下至少一侧, 所述用户设备, 或者, 所述服务器, 发送 TCP 的 0 窗口报文用于指示暂停发送数据包。  The first radio access network device determines to increase the user equipment in the second radio access network by using an IUR interface between the first radio access network device and the second radio access network device The wireless link in the device to the first radio access network device is completed by adding an IUR interface between the first radio access network device and the second radio access network device At any time between the wireless links in the second radio access network device, the TCP proxy sends a TCP window message to the at least one side, the user equipment, or the server, by using the TCP proxy. Indicates to suspend sending packets.
21、 根据权利要求 19或者 20所述的装置, 其特征在于, 所述装置还包 括:  The device according to claim 19 or 20, wherein the device further comprises:
退出单元, 用于确定所述第一无线接入网设备通过所述 TCP 代理緩存 的所述第一 TCP 连接上的下行数据向所述用户设备发送完毕时, 通过所述 TCP代理向所述服务器发送恢复窗口的 TCP报文,并对所述第一 TCP连接的下 行方向退出所述 TCP代理; 或者, An exit unit, configured to determine, when the first radio access network device sends the downlink data on the first TCP connection cached by the TCP proxy to the user equipment, by using the Sending, by the TCP proxy, a TCP packet of the recovery window to the server, and exiting the TCP proxy in a downlink direction of the first TCP connection; or
确定所述第一无线接入网设备通过所述 TCP代理緩存的所述第一 TCP 连接上的上行数据向所述服务器发送完毕时, 通过所述 TCP代理向所述用户 设备发送恢复窗口的 TCP报文, 并对所述第一 TCP连接的上行方向退出所述 TCP代理。  Determining, by the TCP proxy, sending a TCP of a recovery window to the user equipment when the first radio access network device sends the uplink data on the first TCP connection cached by the TCP proxy to the server. The message exits the TCP proxy in the uplink direction of the first TCP connection.
22、 根据权利要求 19至 21任一项所述的装置, 其特征在于, 所述装置 还包括:  The device according to any one of claims 19 to 21, wherein the device further comprises:
处理单元, 用于确定所述用户设备在所述第二无线接入网设备中存在无 线链路时, 对于所述用户设备和所述服务器之间新建立的第二 TCP连接停 止启动新的 TCP代理。  a processing unit, configured to: when the user equipment has a wireless link in the second radio access network device, stop starting a new TCP for a newly established second TCP connection between the user equipment and the server proxy.
23、 根据权利要求 19至 22任一项所述的装置, 其特征在于, 所述装置 还包括:  The device according to any one of claims 19 to 22, wherein the device further comprises:
启动单元, 用于确定通过所述第一无线接入网设备与所述第二无线接入 网设备之间的 IUR接口已删除所述用户设备在所述第二无线接入网设备中 的所有无线链路时,对于所述用户设备和所述服务器之间新建立的第二 TCP 连接启动新的 TCP代理。  Activating unit, configured to determine that all the user equipments in the second radio access network device have been deleted by an IUR interface between the first radio access network device and the second radio access network device In the case of a wireless link, a new TCP proxy is initiated for a newly established second TCP connection between the user equipment and the server.
24、 一种无线接入网设备, 其特征在于, 包括权利要求 19至 23任一项 所述的装置。  A radio access network device, comprising the apparatus of any one of claims 19 to 23.
PCT/CN2014/080846 2014-06-26 2014-06-26 State synchronization method and device based on tcp proxy WO2015196419A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/080846 WO2015196419A1 (en) 2014-06-26 2014-06-26 State synchronization method and device based on tcp proxy
CN201480037968.XA CN105379222B (en) 2014-06-26 2014-06-26 State synchronization method and equipment based on TCP agent

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/080846 WO2015196419A1 (en) 2014-06-26 2014-06-26 State synchronization method and device based on tcp proxy

Publications (1)

Publication Number Publication Date
WO2015196419A1 true WO2015196419A1 (en) 2015-12-30

Family

ID=54936482

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080846 WO2015196419A1 (en) 2014-06-26 2014-06-26 State synchronization method and device based on tcp proxy

Country Status (2)

Country Link
CN (1) CN105379222B (en)
WO (1) WO2015196419A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447144A (en) * 2020-04-01 2020-07-24 中核武汉核电运行技术股份有限公司 Application routing method based on transparent proxy

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369875A (en) * 2008-09-12 2009-02-18 上海华为技术有限公司 Transmission method, apparatus and system for control protocol data package
CN102026281A (en) * 2010-12-21 2011-04-20 大唐移动通信设备有限公司 Method and device for realizing TCP (transmission control protocol) proxy based on RNC (radio network controller)
CN102195941A (en) * 2010-03-11 2011-09-21 鼎桥通信技术有限公司 Improved method and device for realizing transmission control protocol (TCP) proxy
CN102340508A (en) * 2011-10-19 2012-02-01 大唐移动通信设备有限公司 Data transmission method and equipment
CN102355462A (en) * 2011-10-09 2012-02-15 大唐移动通信设备有限公司 Method and device for realizing TCP (Transmission Control Protocol) transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369875A (en) * 2008-09-12 2009-02-18 上海华为技术有限公司 Transmission method, apparatus and system for control protocol data package
CN102195941A (en) * 2010-03-11 2011-09-21 鼎桥通信技术有限公司 Improved method and device for realizing transmission control protocol (TCP) proxy
CN102026281A (en) * 2010-12-21 2011-04-20 大唐移动通信设备有限公司 Method and device for realizing TCP (transmission control protocol) proxy based on RNC (radio network controller)
CN102355462A (en) * 2011-10-09 2012-02-15 大唐移动通信设备有限公司 Method and device for realizing TCP (Transmission Control Protocol) transmission
CN102340508A (en) * 2011-10-19 2012-02-01 大唐移动通信设备有限公司 Data transmission method and equipment

Also Published As

Publication number Publication date
CN105379222A (en) 2016-03-02
CN105379222B (en) 2018-12-07

Similar Documents

Publication Publication Date Title
EP2717538B1 (en) Communication method and system, access network device, and application server
KR101983617B1 (en) Method and apparatus for controlling user plane bearer establishment
CN111866851B (en) Method and apparatus for managing packet data connections based on localized regions in a wireless communication system
US20190166634A1 (en) Communication control method, and related network element
JP2019515604A (en) METHOD OF TERMINAL OF RADIO COMMUNICATION SYSTEM, METHOD OF BASE STATION OF RADIO COMMUNICATION SYSTEM, TERMINAL, AND BASE STATION
WO2013002916A1 (en) Continuous cache service in cellular networks
CN110383775B (en) Data transmission method and communication device
KR20090008403A (en) Handover procedures in a wireless communications system
WO2014127515A1 (en) Service providing system, method, mobile edge application server and support node
WO2014131153A1 (en) Method, system, and proxy device for data transmission
CN110636562A (en) Data processing method and equipment for wireless backhaul path
WO2011088787A1 (en) Method and device for handover in access point network
JP2017153164A5 (en)
AU2019272364A1 (en) Communication method and communications apparatus
US10425868B2 (en) Apparatus, system, and method for preventing TCP connection interruption
JP2014523188A5 (en)
CN104519534A (en) RLC transmission method and equipment
WO2016011624A1 (en) Data packet sending and data processing devices and methods
WO2018228180A1 (en) Communications method and device
WO2009132582A1 (en) Method and device for deleting bearer
JP2023542686A (en) RRC re-establishment
EP3379780B1 (en) Methods and apparatuses for transmitting control message in software defined network-based mobile communication system
CN113841442A (en) Optionally sending a completion message in conditional handover
WO2015196419A1 (en) State synchronization method and device based on tcp proxy
WO2015123945A1 (en) Method for establishing optimal path, mme and gateway, and computer storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895894

Country of ref document: EP

Kind code of ref document: A1