WO2018176419A1 - 一种数据迁移方法和装置 - Google Patents

一种数据迁移方法和装置 Download PDF

Info

Publication number
WO2018176419A1
WO2018176419A1 PCT/CN2017/079120 CN2017079120W WO2018176419A1 WO 2018176419 A1 WO2018176419 A1 WO 2018176419A1 CN 2017079120 W CN2017079120 W CN 2017079120W WO 2018176419 A1 WO2018176419 A1 WO 2018176419A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
user equipment
target base
data packet
source base
Prior art date
Application number
PCT/CN2017/079120
Other languages
English (en)
French (fr)
Inventor
熊文
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP17903099.4A priority Critical patent/EP3585025B1/en
Priority to PCT/CN2017/079120 priority patent/WO2018176419A1/zh
Priority to CN201780087952.3A priority patent/CN110383787B/zh
Publication of WO2018176419A1 publication Critical patent/WO2018176419A1/zh
Priority to US16/585,540 priority patent/US11240712B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0033Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5681Pre-fetching or pre-delivering data based on network characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0064Transmission or use of information for re-establishing the radio link of control information between different access points
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off
    • H04W36/023Buffering or recovering information during reselection
    • H04W36/0235Buffering or recovering information during reselection by transmitting sequence numbers, e.g. SN status transfer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/326Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the transport layer [OSI layer 4]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/16Interfaces between hierarchically similar devices
    • H04W92/20Interfaces between hierarchically similar devices between access points

Definitions

  • the present application relates to the field of communications, and in particular, to a data migration method and apparatus.
  • the Transmission Control Protocol is a byte stream based transport layer communication protocol.
  • the server After establishing a TCP connection between the user equipment (User Equipment, UE) and the server (Server), the server sends a downlink TCP data packet to the UE through an evolved Node B (ENB).
  • ENB After receiving the downlink TCP packet, the UE replies with a TCP Acknowledgement (TCP ACK) to the server through the ENB.
  • ENB is only used as a transmission channel without any processing of the transport layer.
  • the TCP connection between the UE and the server is divided into a TCP connection between the server and the TCP proxy and a TCP connection between the UE and the TCP proxy.
  • the downlink TCP packet sent by the server to the UE is first cached by the ENB's TCP proxy. After correctly receiving the downlink TCP packet, the TCP proxy will reply the server with a TCP ACK and send the buffered downlink TCP packet to the UE. After correctly receiving the downlink TCP packet, the UE replies with a TCP ACK to the ENB.
  • the TCP connection between the server and the TCP proxy and the TCP connection between the UE and the TCP proxy are independent of each other and are not perceived by the UE.
  • the ENB adds a TCP proxy
  • the TCP connection is easily interrupted, which in turn causes service interruption.
  • the server sends the data packet (1, 2, 3, 4) to the TCP proxy of the source ENB.
  • the TCP agent of the source ENB correctly receives the data packet (1, 2, 3, 4) and confirms the data packet (1, 2, 3, 4) to the server, and then the server deletes the data packet (1, 2, 3, 4) ).
  • the source ENB sends a data packet (1, 2) to the UE.
  • the UE correctly receives the data packet (1, 2) and acknowledges the received data packet (1, 2) to the source ENB.
  • the packet (3, 4) of the TCP proxy cached at the source ENB is not migrated to the target ENB.
  • the server sends a data packet (5, 6) to the UE. 6. Since the UE does not receive the data packet (3, 4), the UE sends a continuous TCP ACK to the server, that is, when the UE receives the data packet (5) of the server, it sends a TCP ACK to the server, and notifies the data packet (2) The subsequent data packet has not been received. When the UE receives the data packet (6) of the server, it continues to send a TCP ACK to the server, notifying that the data packet after the server data packet (2) has not been received. Since the server side has lost the data packet after the packet (2), that is, the data packet (3, 4), the data packet cannot be retransmitted to the UE (3, 4), and the TCP connection between the server and the UE is interrupted, thereby causing service interruption.
  • the embodiment of the present application provides a data migration method and device, which can solve the problem of TCP connection interruption caused by packet loss.
  • the embodiment of the present application provides a data migration method, including: the source base station performs a TCP proxy for the user equipment; the source base station learns that the user equipment will switch to the target base station; and the source base station sends the context information to the target base station, where the context information includes the data packet.
  • the sequence number of the data packet is the maximum sequence number of the data packet confirmed by the user equipment or the minimum sequence number of the data packet unacknowledged by the user equipment; the source base station uses a Stream Control Transmission Protocol (SCTP) Moving the unacknowledged data packet of the user equipment to the target base station, so that the target base station receives the user equipment according to the serial number of the data packet. Recognized data packet.
  • SCTP Stream Control Transmission Protocol
  • the source base station may send context information to the target base station, so that the target base station receives the unacknowledged data packet of the user equipment according to the context information.
  • the server-side packet loss causes the TCP connection between the server and the user equipment to be interrupted.
  • the source base station can migrate the data packet to the target base station through the SCTP to avoid the data packet. Packet loss, which solves the problem of TCP connection interruption caused by packet loss.
  • the method further includes: the source base station sending a handover request to the target base station, where the handover request includes the first cell, the first cell is used to indicate that the source base station performs TCP proxy for the user equipment; and the source base station is from the target
  • the base station receives the handover request response message, and the handover request response message includes a second cell, where the second cell is used to indicate whether the target base station has the capability to allocate the TCP proxy resource to the user equipment.
  • the bit value of the second cell is 1, which indicates that the target base station has the capability to allocate TCP proxy resources to the user equipment.
  • the bit value of the second cell is 0, which may indicate that the target base station does not have the capability to allocate TCP proxy resources to the user equipment.
  • the context information further includes establishing context information of the TCP proxy, so that the target base station maintains the user equipment according to the context information of the TCP proxy. TCP proxy.
  • the target base station can maintain the TCP proxy for the user equipment according to the context information, and maintain the continuity of the TCP proxy before and after the handover, thereby improving the user experience.
  • the source base station sends the context information to the target base station, including: the source base station sends the state transition signaling to the target base station, and the state transition signaling includes the context information. That is, the source base station can transmit the context information to the target base station by transmitting state transition signaling to the target base station.
  • the source base station migrates the unacknowledged data packet of the user equipment to the target base station by using the flow control transmission protocol SCTP, including: the source base station encapsulates the unacknowledged data packet of the user equipment by using the X2 interface application protocol and the SCTP;
  • the target base station sends a handover data message, where the handover data message includes an unacknowledged data packet and a message type indication of the user equipment after the source base station is encapsulated by the X2 interface application protocol and the SCTP, and the message type indication is used to indicate that the source base station migrates the user equipment to the target base station. Confirmed packet.
  • the target base station may decapsulate the data by using the SCTP and the X2-AP interface protocol, so as to obtain the data packet that is not acknowledged by the user equipment sent by the source base station.
  • a data migration method including: receiving, by a target base station, context information from a source base station, where the context information includes a sequence number of the data packet, where the sequence number of the data packet is a maximum sequence number of the data packet confirmed by the user equipment. Or a minimum sequence number of the data packet that is not acknowledged by the user equipment; the target base station receives, from the source base station, the data packet that is not acknowledged by the user equipment migrated by the flow control transport protocol SCTP according to the sequence number of the data packet.
  • the target base station can receive the context information from the source base station, and can receive the data packet that is not confirmed by the user equipment from the source base station according to the context information.
  • the server side packet loss causes the TCP connection between the server and the user equipment to be interrupted.
  • the target base station can receive the data packet from the source base station base station through the SCTP, thereby avoiding The packet is lost, which solves the problem of TCP connection interruption caused by packet loss.
  • the method further includes: the target base station receiving the handover request from the source base station, where the handover request includes the first cell, the first cell is used to indicate that the source base station performs TCP proxy for the user equipment; and the target base station according to the target The capability of the base station determines whether the TCP proxy can be maintained for the user equipment; the target base station sends a handover request response message to the source base station, the handover request response message includes a second cell, and the second cell is used to indicate whether the target base station has The ability to allocate TCP proxy resources to user devices.
  • the bit value of the second cell is 1, which indicates that the target base station has the capability to allocate TCP proxy resources to the user equipment.
  • the bit value of the second cell is 0, which may indicate that the target base station does not have the capability to allocate TCP proxy resources to the user equipment.
  • the context information further includes establishing context information of the TCP proxy; and the target base station maintains the TCP for the user equipment according to the context information of the TCP proxy. proxy.
  • the target base station can maintain the TCP proxy for the user equipment according to the context information, and maintain the continuity of the TCP proxy before and after the handover between the base stations, thereby improving the user experience.
  • the target base station receives the context information from the source base station, including: the target base station receives the state transition signaling from the source base station, and the state transition signaling includes the context information. That is, the target base station can receive the context information by receiving state transition signaling from the source base station.
  • the target base station receives, from the source base station, the unacknowledged data packet of the user equipment migrated by the flow control transmission protocol SCTP according to the sequence number of the data packet, including: the target base station receives the handover data message from the source base station, and switches the data message. And including a data packet that is not acknowledged by the user equipment, and a message type indication, where the message type indication is used to indicate that the target base station receives the data packet that is not acknowledged by the user equipment from the source base station; and the target base station decapsulates the handover data message by using the X2 interface application protocol and the SCTP, A packet that is not acknowledged by the user equipment.
  • a source base station including: a processing unit, configured to: perform a TCP proxy for a user equipment; the processing unit is further configured to: learn that the user equipment is to be handed over to the target base station; and send, by the sending unit, to: send to the target base station Context information, the context information includes a serial number of the data packet, where the serial number of the data packet is the maximum serial number of the data packet confirmed by the user equipment or the minimum serial number of the data packet that is not confirmed by the user equipment; the sending unit is further configured to: The unacknowledged data packet of the user equipment is migrated to the target base station by using the SCTP, so that the target base station receives the data packet unacknowledged by the user equipment according to the sequence number of the data packet.
  • the sending unit is further configured to: send a handover request to the target base station, where the handover request includes a first cell, where the first cell is used to indicate that the source base station performs TCP proxy for the user equipment, and further includes a receiving unit, And the method is: receiving a handover request response message from the target base station, where the handover request response message includes a second cell, where the second cell is used to indicate whether the target base station has the capability to allocate the TCP proxy resource to the user equipment.
  • the context information further includes establishing context information of the TCP proxy, so that the target base station maintains the user equipment according to the context information of the TCP proxy. TCP proxy.
  • the sending unit is configured to: send state transition signaling to the target base station, where the state transition signaling includes context information.
  • the processing unit is further configured to: encapsulate the unacknowledged data packet of the user equipment by using the X2 interface application protocol and the SCTP; the sending unit is configured to: send the handover data message to the target base station, where the handover data message includes the source base station The X2 interface application protocol and the SCTP encapsulated user equipment unacknowledged data packet and the message type indication, the message type indication is used to indicate that the source base station migrates the unacknowledged data packet of the user equipment to the target base station.
  • a target base station comprising: a receiving unit, configured to: receive context information from a source base station, where the context information includes a sequence number of the data packet, where the sequence number of the data packet is a data packet acknowledged by the user equipment. The maximum sequence number or the minimum sequence number of the unacknowledged data packet of the user equipment; the processing unit is configured to: receive, by the receiving unit, the unacknowledged data of the user equipment migrated by the SCTP from the source base station according to the sequence number of the data packet package.
  • the receiving unit is further configured to: receive a handover request from the source base station, where the handover request includes a first cell, where the first cell is used to indicate that the source base station performs TCP proxy for the user equipment; and the processing unit is further configured to: Determining whether the TCP proxy can be maintained for the user equipment according to the capability of the target base station; further comprising: a sending unit, configured to send a handover request response message to the source base station, where the handover request response message includes a second cell, where the second cell is used to indicate the target Whether the base station has the ability to allocate TCP proxy resources to user equipment.
  • the context information further includes establishing context information of the TCP proxy; the processing unit is further configured to use the context information of the TCP proxy as the user.
  • the device maintains a TCP proxy.
  • the receiving unit is configured to: receive state transition signaling from the source base station, and the state transition signaling includes context information.
  • the receiving unit is configured to: receive a handover data message from the source base station, where the handover data message includes a data packet that is not acknowledged by the user equipment, and a message type indication, where the message type indication is used to indicate that the target base station receives the user from the source base station.
  • the device does not acknowledge the data packet;
  • the processing unit is configured to: decapsulate the switch data message by using the X2 interface application protocol and the SCTP, and obtain a data packet that is not confirmed by the user equipment.
  • a source base station including: a processor, configured to: perform a transmission control protocol TCP proxy for a user equipment; the processor is further configured to: learn that the user equipment is to be handed over to the target base station; and the transceiver is configured to: The target base station sends context information, where the context information includes a sequence number of the data packet, where the sequence number of the data packet is the maximum sequence number of the data packet confirmed by the user equipment or the minimum sequence number of the data packet that is not confirmed by the user equipment; the transceiver further And the method is: using the flow control transmission protocol SCTP to migrate the unacknowledged data packet of the user equipment to the target base station, so that the target base station receives the data packet that is not confirmed by the user equipment according to the sequence number of the data packet.
  • the transceiver is further configured to: send a handover request to the target base station, where the handover request includes a first cell, where the first cell is used to indicate that the source base station performs TCP proxy for the user equipment; and the handover is received from the target base station.
  • the request response message includes a second cell, and the second cell is used to indicate whether the target base station has the capability to allocate the TCP proxy resource to the user equipment.
  • the context information further includes establishing context information of the TCP proxy, so that the target base station maintains the user equipment according to the context information of the TCP proxy. TCP proxy.
  • the transceiver is configured to: send state transition signaling to the target base station, and the state transition signaling includes context information.
  • the processor is further configured to: encapsulate the unacknowledged data packet of the user equipment by using the X2 interface application protocol and the SCTP; the transceiver is configured to: send the handover data message to the target base station, where the handover data message includes the source base station by using the X2 The interface application protocol and the SCTP encapsulated data packet of the user equipment and the message type indication, the message type indication is used to indicate that the source base station migrates the data packet that is not acknowledged by the user equipment to the target base station.
  • a target base station including: a transceiver, configured to: receive context information from a source base station, where the context information includes a sequence number of the data packet, where the sequence number of the data packet is a data packet that is confirmed by the user equipment.
  • the maximum sequence number or the minimum sequence number of the unacknowledged data packet of the user equipment is configured to: receive, by the transceiver from the source base station, the unacknowledged data packet of the user equipment migrated by the flow control transmission protocol SCTP according to the sequence number of the data packet.
  • the transceiver is further configured to: receive a handover request from the source base station, where the handover request includes a first cell, where the first cell is used to indicate that the source base station performs TCP proxy for the user equipment; the processor is further configured to: Determining whether the TCP proxy can be maintained for the user equipment according to the capability of the target base station; the transceiver is further configured to: send a handover request response message to the source base station, where the handover request response message includes a second cell, where the second cell is used to indicate the target base station Is it capable of allocating TCP proxy resources to user devices?
  • the context information further includes establishing context information of the TCP proxy; the processor is further configured to use the context information of the TCP proxy as the user.
  • the device maintains a TCP proxy.
  • the transceiver is configured to: receive state transition signaling from a source base station, the state transition signaling including context information.
  • the transceiver is configured to: receive a handover data message from the source base station, where the handover data message includes a data packet that is not acknowledged by the user equipment, and a message type indication, where the message type indication is used to indicate that the target base station receives the user equipment from the source base station.
  • the unacknowledged data packet is used by the processor to decapsulate the switching data message through the X2 interface application protocol and the SCTP, and obtain a data packet that is not confirmed by the user equipment.
  • the embodiment of the present application provides a computer storage medium for storing computer software instructions used by the source base station, which includes a program designed to perform the above aspects.
  • the embodiment of the present application provides a computer storage medium for storing computer software instructions used by the target base station, which includes a program designed to perform the above aspects.
  • the source base station may send context information to the user equipment, the context information includes the data packet sequence number, and then migrate the user equipment to the target base station through the SCTP.
  • the unacknowledged data packet so that the target base station receives the unacknowledged data packet of the user equipment migrated by the source base station according to the data packet sequence number.
  • FIG. 1 is a schematic diagram of a state of a data packet before and after handover in a case where a source ENB performs a TCP proxy for a user equipment according to an embodiment of the present disclosure
  • FIG. 2 is a system architecture diagram of a source base station and a target base station according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a data migration method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a method for a source base station to migrate data through SCTP according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a TCP proxy on a target base station according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a data migration method according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a source base station according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an internal structure of a source base station according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a source base station according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a target base station according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an internal structure of a target base station according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a target base station according to an embodiment of the present application.
  • the embodiment of the present application can be applied to a scenario in which data migration between base stations is performed in a TCP proxy handover process.
  • the TCP proxy switching is a process in which the user equipment performs a base station handover when the source base station performs a TCP proxy for the user equipment.
  • the present application can be applied to a scenario in which TCP proxy cache data on a source base station is migrated to a target base station through an X2 handover procedure.
  • the TCP proxy can be used to cache data packets (such as TCP packets) between the user equipment and the service server to effectively improve the end-to-end transmission bandwidth of the system.
  • the embodiment of the present application can be applied to the scenario where the Serving GateWay (SGW) is changed in the X2 handover process, and the scenario in which the SGW does not change in the X2 handover process, which is not limited in this embodiment.
  • SGW Serving GateWay
  • the system architecture of the embodiment of the present application may include a source base station and a target base station, where the source base station and the target base station may be ENBs, and the interconnection interface between the source base station and the target base station may be an X2 interface.
  • the present application may also use other communication systems for the future, the base station may have other names, and the interface between the base stations may also be other interfaces.
  • the source base station may be configured to send context information to the target base station, and migrate the data packet that is not confirmed by the user equipment to the target base station.
  • the target base station may be configured to receive context information from the source base station and receive a data packet that is not acknowledged by the user equipment from the source base station.
  • the embodiment of the present application provides a data migration method, as shown in FIG. 3, including:
  • the source base station sends a handover request (Handover Request) to the target base station, where the handover request includes a first cell, where the first cell is used to indicate that the source base station performs a TCP proxy for the user equipment.
  • Handover Request a handover request
  • the target base station sends a handover request (Handover Request) to the target base station, where the handover request includes a first cell, where the first cell is used to indicate that the source base station performs a TCP proxy for the user equipment.
  • the source base station When the source base station performs TCP proxy for the user equipment, when the user equipment needs to perform inter-base station handover, the user equipment sends a measurement report to the source base station, so that the source base station learns that the user equipment will switch to the target base station.
  • the source base station may decide to perform TCP proxy handover according to the measurement report reported by the user equipment, and the source base station may send a handover request to the target base station through the X2 interface, and request the target base station to perform handover preparation.
  • the first cell in the handover request may be a Handover With Tcp Proxy cell, which is used to indicate that the source base station performs TCP proxy for the user equipment before the user equipment handover.
  • the source base station may buffer the data packet sent by the service server to the user equipment through the TCP proxy, or cache the data packet sent by the user equipment to the service server.
  • the downlink TCP packet sent by the service server to the user equipment may be cached by the TCP proxy of the source base station first, and the TCP proxy returns an acknowledgement message to the service server after correctly receiving the downlink TCP packet, and buffers the downlink TCP data.
  • the packet is sent to the user device.
  • the service server deletes the corresponding data packet.
  • the user equipment may reply the confirmation message to the source base station.
  • the TCP proxy switching cell may also be used to indicate whether the target base station feedback has the capability to perform TCP proxy for the user equipment.
  • the TCP proxy switching cell can also be used to indicate whether the target base station feedback can continue to provide the TCP proxy function for the user equipment, that is, to maintain the TCP proxy for the user equipment.
  • the TCP proxy switching cell may be used to indicate whether the source base station performs a TCP proxy for the user equipment. If the source base station can perform a TCP proxy for the user equipment, the TCP proxy switching cell may have a bit value of 1 . If the source base station cannot perform TCP proxy for the user equipment, the bit value of the TCP proxy handover cell may be 0, and thus the source base station does not need to perform TCP proxy handover with the target base station.
  • step 302 may be performed.
  • the target base station determines, according to the capability of the target base station, whether the TCP proxy resource can be allocated to the user equipment, and the capability of the target base station is used to indicate whether the target base station can allocate the TCP proxy resource for the current user equipment.
  • the capabilities of the target base station may include whether the target base station has a TCP proxy function and the processing capabilities of the target base station.
  • the target base station can allocate TCP proxy resources for N user equipments, and the current target base station only allocates TCP proxy resources for no more than N user equipments, the target base station is considered to have processing capability.
  • the target base station determines that the proxy resource can be allocated for the user equipment currently to be switched. If the target base station does not have the TCP proxy function, or the target base station can allocate the TCP proxy resources for the N user equipments, but the current target base station has allocated the proxy resources for the N user equipments, the target base station is considered to have no processing capability, then the target The base station can no longer allocate proxy resources for the user equipment to be switched.
  • steps 303-306 are performed. If the target base station does not have the capability to allocate TCP proxy resources to the current user equipment, steps 307-309 are performed.
  • the target base station sends a handover request acknowledgement message (Handover Request Acknowledge) to the source base station, where the handover request response message includes a second cell, where the second cell is used to indicate that the target base station has the capability to allocate the TCP proxy resource to the user equipment.
  • Handover Request Acknowledge a handover request acknowledgement message
  • the target base station may send a handover request response message to the source base station.
  • the second cell included in the handover request response message may be referred to as a Is Tcp Proxy After Handover.
  • the bit value of the second cell is 1, which indicates that the target base station has the capability to allocate TCP proxy resources to the user equipment.
  • the source base station sends state transition signaling to the target base station, where the state transition signaling includes context information, where the context information includes establishing context information of the TCP proxy and a sequence number of the data packet.
  • the source base station After receiving the handover request response message sent by the target base station, the source base station reads the second cell and determines that the target base station has the capability to allocate the TCP proxy resource to the user equipment, and the source base station can send the state transition signaling to the target base station.
  • the state transition signaling may be a SN Status Transfer signaling, and may be used to carry a Service Data Unit (SDU) of a Packet Data Convergence Protocol (PDCP) stack in a source base station.
  • SDU Service Data Unit
  • PDCP Packet Data Convergence Protocol
  • the serial number of the packet may be TCP Proxy Context Before Handover information.
  • the context information of the TCP proxy may include quad-set information or quintuple information of the TCP service flow between the terminal and the service server.
  • the quaternion information may include an IP, a source port, a destination IP, and a destination port.
  • the quintuple information may further include a transmission protocol in the base station of the quaternion information, and the transmission protocol may include the SCTP or the TCP, etc., which is not limited in this application.
  • 192.168.1.1 10000 SCTP 121.14.88.76 80 can form a quintuple message, meaning that the terminal with the IP address 192.168.1.1 passes the port 10000 and uses the SCTP protocol. It is connected to a service server with an IP address of 121.14.88.76 and a port of 80.
  • the packet sequence number may include a maximum sequence number of the data packet that the user equipment has confirmed to the source base station, or a minimum sequence number of the acknowledgment packet that the user equipment does not acknowledge to the source base station.
  • the service server may first send the data packet (1, 2, 3, 4) to the TCP proxy of the source base station, and the source. After the TCP proxy of the base station correctly receives the data packet (1, 2, 3, 4), it can confirm the data packet (1, 2, 3, 4) to the service server, and then the service server deletes the data packet (1, 2, 3, 4). . Then, the TCP proxy of the source base station sends a data packet (1, 2) to the user equipment, and after correctly receiving the data packet (1, 2), the user equipment can confirm the data packet (1, 2) to the source base station.
  • the data packets (1, 2, 3, 4) respectively include data packets (data segments) of multiple byte streams, and each data segment may correspond to one serial number. Assume that packet 1 includes 10 data segments, the sequence numbers are 1-10, and packet 2 includes 15 data segments, the sequence numbers are 11-25 respectively, and packet 3 includes 20 data segments, and the serial numbers are respectively 26-45, the maximum sequence number of the data packet acknowledged by the user equipment to the source base station at this time may be 25, and the minimum sequence number of the acknowledgment data packet that the user equipment does not confirm to the source base station may be 26.
  • the source base station migrates the unacknowledged data packet of the user equipment to the target base station by using the SCTP.
  • SCTP is a connection-oriented streaming protocol that provides stable and orderly data transmission services between two base stations (endpoints).
  • endpoints The migration of data packets through STCP ensures that data packets can be migrated from the source base station to the target base station without loss in the TCP proxy handover scenario.
  • the source base station may migrate the unacknowledged data packets of the user equipment to the target base station by sending a Handover Data message to the target base station.
  • the handover data message may include a data packet and a message type indication that are not acknowledged by the user equipment, and the message type indication may indicate that the handover data message is used by the source base station to migrate the data packet that is not acknowledged by the user equipment to the target base station.
  • the data packet unacknowledged by the user equipment may be a data packet (3, 4).
  • the process for the source base station to migrate the unacknowledged data packets of the user equipment to the target base station by using the SCTP may be:
  • the source base station encapsulates the unacknowledged data packet of the user equipment through the X2-AP interface protocol, and adds a message type indication to the data packet. For example, a combination of bytes not specified in the X2-AP interface protocol may be selected as a message type indication, indicating that the handover data message is used by the source base station to migrate the unacknowledged data packets of the user equipment to the target base station.
  • the source base station continues to encapsulate the data packet encapsulated by the X2-AP interface protocol through SCTP.
  • the source base station continues to encapsulate the data packet through the IP protocol, the data link layer protocol, and the physical layer protocol.
  • the source base station sends a handover data message including a message type indication and an unacknowledged data packet to the target base station through a control plane interface (ie, an X2-C interface) in the X2 interface.
  • a control plane interface ie, an X2-C interface
  • the source base station may further encapsulate the data packet to be sent by using other protocols.
  • the source base station may further encapsulate the data packet to be sent by using other protocols.
  • the target base station may decapsulate the data through the physical layer protocol, the data link layer protocol, the IP protocol, the SCTP, and the X2-AP interface protocol, so as to obtain the source.
  • a packet sent by the base station that is not acknowledged by the user equipment.
  • the target base station can also decapsulate the switch data message by using other protocols.
  • the target base station can also decapsulate the switch data message by using other protocols.
  • step 304 and step 305 can be performed simultaneously, that is, the source base station can simultaneously send context information and data packets that are not acknowledged by the user to the target base station.
  • the source base station may send state transition signaling to the target base station, where the state transition signaling includes context information and a data packet that is not acknowledged by the user.
  • the target base station maintains a TCP proxy for the user equipment according to the TCP proxy context information.
  • the TCP proxy of the target base station may include a packet parsing module, a TCP proxy management module, and a TCP proxy logical unit.
  • the TCP proxy logic unit may include multiple TCP proxy logical sub-units, and each TCP traffic flow may correspond to one of the TCP proxy logical units.
  • N# represents the Nth TCP proxy logical subunit.
  • the TCP proxy logic unit also includes software templates for generating TCP proxy logic sub-units, such as base classes and the like.
  • the data packet parsing module may be configured to obtain TCP proxy context information in the context information.
  • the TCP proxy management module may be configured to obtain a TCP proxy logical subunit corresponding to the TCP proxy context information according to the TCP proxy context information.
  • the TCP Proxy Logic subunit can be used to process packets corresponding to TCP traffic.
  • the TCP proxy packet parsing module of the target base station parses the TCP proxy context information in the context information to obtain the source IP, the source port, the destination IP, and the destination port. Then, the TCP proxy packet parsing module of the target base station inputs the obtained source IP, source port, destination IP, and destination port into the TCP proxy management module, and the TCP proxy management module initializes the software template according to the source IP, the source port, the destination IP, and the destination port. And generate a TCP proxy object, and then generate a corresponding TCP proxy logical sub-unit for the TCP proxy object.
  • the TCP proxy logic unit of the target base station includes N TCP proxy logical sub-units before the base station handover of the user equipment, and the target base station generates the TCP service flow for the user equipment and the service server when the user equipment maintains the TCP proxy function. +1) TCP proxy logical subunits.
  • the (N+1)th TCP proxy logical subunit in the TCP proxy logic unit of the target base station may send the data packet that the source base station migrates to the target base station to the user equipment to ensure the user equipment and service.
  • the server continues the TCP connection and can cache or forward the data packets of the TCP traffic of the user equipment and the service server.
  • the target base station sends a handover request response message to the source base station, where the handover request response message includes a second cell, where the second cell is used to indicate that the target base station does not have the capability to allocate the TCP proxy resource to the user equipment.
  • the bit value of the second cell is 0, which may indicate that the target base station does not have the capability to allocate TCP proxy resources to the user equipment.
  • the source base station sends the state transition signaling to the target base station, where the state transition signaling includes context information, where the context information includes a sequence number of the data packet.
  • the source base station determines that the target base station does not have the capability to allocate the TCP proxy resource to the user equipment, the source base station transmits the context information including only the sequence number of the data packet.
  • the source base station migrates the unacknowledged data packet of the user equipment to the target base station by using the SCTP.
  • step 305 For the specific process, reference may be made to step 305.
  • the source base station can negotiate with the target base station in the TCP proxy handover scenario.
  • the unacknowledged packets of the user equipment are migrated to the target base station, ensuring that the user's data packets are not lost.
  • the source base station migrates the unacknowledged data packet of the user equipment to the target base station by using the STCP, so that the data packet in the TCP proxy handover scenario can be migrated from the source base station to the target base station without loss, and the TCP proxy handover process can be solved.
  • the source base station may further send the context information of the TCP proxy to the target base station, so that the target base station may continue to allocate the TCP proxy resource to the user according to the context information of the TCP proxy, and maintain the continuity of the TCP proxy before and after the handover.
  • the target base station may continue to allocate the TCP proxy resource to the user according to the context information of the TCP proxy, and maintain the continuity of the TCP proxy before and after the handover.
  • the embodiment of the present application provides a data migration method, as shown in FIG. 6, including:
  • the source base station performs a TCP proxy for the user equipment.
  • the source base station may buffer the data packet sent by the service server to the user equipment through the TCP proxy on the source base station, or cache the user equipment to send to the service server. data pack.
  • the source base station learns that the user equipment will switch to the target base station.
  • the source base station receives the measurement report reported by the user equipment, and learns that the user equipment will switch to the target base station according to the measurement report, and the source base station can send a handover request to the target base station through the X2 interface, requesting the target base station. Prepare for switching.
  • the source base station sends state transition signaling to the target base station, where the state transition signaling includes context information.
  • the context information includes a sequence number of the data packet, and the sequence number of the data packet is a maximum sequence number of the data packet confirmed by the user equipment or a minimum sequence number of the data packet that is not confirmed by the user equipment.
  • the source base station migrates the unacknowledged data packet of the user equipment to the target base station by using the SCTP.
  • step 305 For the specific process, reference may be made to step 305.
  • the target base station receives, from the source base station, a data packet that is not acknowledged by the user equipment.
  • the target base station decapsulates the handover data message received from the source base station by using the X2 interface application protocol and the SCTP, and obtains a data packet that is not confirmed by the user equipment.
  • the target base station may send the data packet to the user equipment to ensure that the user equipment and the service server continue to perform the TCP connection.
  • the source base station can send the context information to the target base station after the user equipment is to be handed over to the target base station in the TCP proxy handover scenario, and then migrate the unacknowledged data packet of the user equipment to the SCTP that ensures the arrival of the data packet.
  • the target base station ensures that the user's data packet is not lost, and can solve the problem of the TCP connection interruption caused by packet loss during the handover process.
  • the solution provided by the embodiment of the present application is mainly introduced from the perspective of a source base station and a target base station.
  • the source base station and the target base station include hardware structures and/or software modules corresponding to each function in order to implement the above functions.
  • the present application can be implemented in a combination of hardware or hardware and computer software in conjunction with the algorithm steps described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
  • the embodiments of the present application may divide the function modules of the source base station and the target base station according to the foregoing method.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 7 is a schematic diagram showing a possible structure of the source base station 7 involved in the foregoing embodiment, where the source base station includes: a processing unit 701, a sending unit 702, and a receiving unit. 703.
  • the processing unit 701 may be configured to perform a transmission control protocol TCP proxy for the user equipment; and learn that the user equipment will switch to the target base station.
  • the sending unit 702 can be configured to send the context information to the target base station, where the context information includes a sequence number of the data packet, where the sequence number of the data packet is a maximum sequence number of the data packet acknowledged by the user equipment or a data packet that is not acknowledged by the user equipment.
  • the receiving unit 703 is configured to receive a handover request response message from the target base station, where the handover request response message includes a second cell, where the second cell is used to indicate whether the target base station has the capability to allocate the TCP proxy resource to the user equipment.
  • the processing unit 701 is configured to support the source base station to perform the process 304 in FIG. 3 or the processes 601 and 602 in FIG.
  • the sending unit 702 is configured to support the source base station to perform FIG. 3.
  • the receiving unit 703 is configured to support the source base station to perform the process 303 or 307 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • FIG. 7 shows a possible structural diagram of the source base station involved in the above embodiment.
  • the source base station may include a processing module 701, a communication module 702, and a storage module 703.
  • the processing module 701 is configured to control hardware devices and application software of each part of the source base station
  • the communications module 702 is configured to receive commands sent by other devices by using a wireless Fidelity (WiFi) communication manner, or
  • WiFi wireless Fidelity
  • the data of the source base station is sent to other devices
  • the storage module 703 is configured to perform storage of software programs of the source base station, storage of data, operation of software, and the like.
  • the processing module 701 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 702 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 703 can be a memory.
  • the processing module 701 may be configured to determine whether the target base station has the capability to allocate TCP proxy resources to the user equipment.
  • the communication module 702 may be configured to send context information to the target base station when the processing module 701 determines that the target base station has the capability to allocate the TCP proxy resource to the user equipment, where the context information includes establishing a TCP proxy. Context information and sequence number of the data packet; or when the processing module 701 determines that the target base station is not capable of allocating TCP proxy resources for the user equipment, transmitting context information to the target base station, the context information including the sequence number of the data packet; and migrating to the target base station The packet to be sent.
  • the storage module 703 can be used to store data packets to be sent in the embodiment of the present application.
  • the source base station can be implemented by the computer device (or system) of FIG.
  • FIG. 9 is a schematic diagram of a computer device according to an embodiment of the present application.
  • Computer device 900 includes at least one processor 901, a communication bus 902, a memory 903, and at least one communication interface 904.
  • the processor 901 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication bus 902 can include a path for communicating information between the components described above.
  • Communication interface 904 using any type of transceiver, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
  • RAN radio access network
  • WLAN wireless local area networks
  • the memory 903 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions.
  • the dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 903 is used to store application code for executing the solution of the present application, and is controlled by the processor 901 for execution.
  • the processor 901 is configured to execute application code stored in the memory 903 to implement the functions in the method of the present patent.
  • the processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
  • computer device 900 can include multiple processors, such as processor 901 and processor 907 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • computer device 900 may also include an output device 905 and an input device 906.
  • Output device 905 is in communication with processor 901 and can display information in a variety of ways.
  • the output device 905 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Wait.
  • the input device 906 communicates with the processor 901, which can be One way to accept user input.
  • input device 906 can be a mouse, keyboard, touch screen device or sensing device, and the like.
  • the computer device 900 described above can be a general purpose computer device or a special purpose computer device.
  • the computer device 900 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or have FIG. A device of similar structure.
  • PDA personal digital assistant
  • the embodiment of the present application does not limit the type of computer device 900.
  • the processor 901 of the source base station determines whether the target base station has the capability to allocate TCP proxy resources to the user equipment when determining that the user equipment has an inter-base station handover; If yes, the processor of the source base station sends the context information to the target base station through the communication interface 904, the context information includes establishing the context information of the TCP proxy and the sequence number of the data packet; the communication interface 904 of the source base station migrates the data packet to be sent to the target base station. So that the target base station receives the data packet to be sent according to the sequence number of the data packet, and maintains the TCP proxy for the user equipment according to the context information of the TCP proxy.
  • the source base station may send context information to the target base station, so that the target base station receives the data packet to be sent according to the context information, and The user equipment maintains the TCP proxy function.
  • the server side packet loss causes the TCP connection between the server and the user equipment to be interrupted.
  • the source base station may migrate the data packet to the target base station to avoid packet loss. Therefore, the problem of TCP connection interruption caused by packet loss is solved.
  • FIG. 10 is a schematic diagram showing a possible structure of the target base station 10 involved in the foregoing embodiment, where the target base station includes: a receiving unit 1001, a processing unit 1002, and a sending unit. 1003.
  • the receiving unit 1001 may be configured to receive context information from a source base station, where the context information includes a sequence number of the data packet, where the sequence number of the data packet is a maximum sequence number or user of the data packet that the user equipment has confirmed. The minimum serial number of the packet that the device did not acknowledge.
  • the processing unit 1002 is configured to receive, by the receiving unit, the data packet that is not confirmed by the user equipment migrated by the flow control transmission protocol SCTP, according to the sequence number of the data packet.
  • the sending unit 1003 may be configured to send a handover request response message to the source base station, where the handover request response message includes a second cell, where the second cell is used to indicate whether the target base station has the capability to allocate the TCP proxy resource to the user equipment.
  • the receiving unit 1001 is configured to support the target base station to perform the processes 301, 304, and 305 in FIG. 3, or to perform the processes 308 and 309 in FIG. 3, or in FIG. Processes 603 and 604; the processing unit 1002 is configured to support the target base station to perform the procedures 302 and 306 in FIG. 3, or the process 605 in FIG.
  • the transmitting unit 1003 is configured to support the target base station to perform the process 303 or 307 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • FIG. 11 shows a possible structural diagram of the target base station involved in the above embodiment.
  • the target base station may include a processing module 1101, a communication module 1102, and a storage module 1103.
  • the processing module 1101 is configured to control various parts of the target base station, hardware devices, application software, and the like;
  • the communication module 1102 is configured to receive other information by using a communication method such as WiFi.
  • the instruction sent by the device may also send the data of the target base station to other devices;
  • the storage module 1103 is configured to perform storage of the software program of the target base station, storage of data, operation of the software, and the like.
  • the processing module 1101 may be a processor or a controller, such as a CPU, a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1102 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 1103 can be a memory.
  • the processing module 1101 may be configured to determine whether the target base station has the capability to allocate TCP proxy resources to the user equipment.
  • the communication module 1102 may be configured to receive context information sent by the source base station when the processing module 1101 determines that the target base station has the capability to allocate the TCP proxy resource to the user equipment, where the context information includes establishing a context information of the TCP proxy and a sequence number of the data packet; or The processing module 1101 determines that the target base station does not have the capability to allocate the TCP proxy resource to the user equipment, and receives the context information sent by the source base station, the context information includes the sequence number of the data packet, and the data packet to be sent migrated by the receiving source base station.
  • the storage module 1103 can be used to store the data packet to be sent in the embodiment of the present application.
  • the target base station can be implemented by the computer device (or system) in FIG.
  • FIG. 12 is a schematic diagram of a computer device according to an embodiment of the present invention.
  • Computer device 1200 includes at least one processor 1201, a communication bus 1202, a memory 1203, and at least one communication interface 1204.
  • the processor 1201 can be a CPU, microprocessor, ASIC, or one or more integrated circuits for controlling the execution of the program of the present invention.
  • Communication bus 1202 can include a path for communicating information between the components described above.
  • Communication interface 1204 using devices such as any transceiver, for communicating with other devices or communication networks, such as Ethernet, RAN, WLAN, and the like.
  • the memory 1203 may be a ROM or other type of static storage device that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or EEPROM, CD-ROM or other optical disk storage, optical disk storage. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this.
  • the memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor.
  • the memory 1203 is used to store application code for executing the solution of the present invention, and is controlled by the processor 1201 for execution.
  • the processor 1201 is configured to execute application code stored in the memory 1203 to implement the functions in the method of the present patent.
  • the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
  • computer device 1200 can include multiple processors, such as processor 1201 and processor 1207 in FIG. Each of these processors can be a single
  • the core processor can also be a multi-core processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • the computer device 1200 may further include an output device 1205 and an input device 1206.
  • Output device 1205 is in communication with processor 1201 and can display information in a variety of ways.
  • the output device 1205 can be an LCD, an LED display device, a CRT display device, or a projector or the like.
  • Input device 1206 is in communication with processor 1201 and can accept user input in a variety of ways.
  • input device 1206 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
  • the computer device 1200 described above can be a general purpose computer device or a special purpose computer device.
  • computer device 1200 can be a desktop, a portable computer, a network server, a PDA, a mobile handset, a tablet, a wireless terminal device, a communication device, an embedded device, or a device having a similar structure as in FIG.
  • Embodiments of the invention do not limit the type of computer device 1200.
  • the processor 1201 of the target base station determines whether the target base station has the capability to allocate TCP proxy resources to the user equipment; if yes, the communication interface 1204 of the target base station receives context information sent by the source base station, and the context information includes establishing TCP.
  • the target base station may receive the context information sent by the source base station, and may receive the data packet to be sent by the source base station according to the context information, and maintain the data packet for the user equipment.
  • TCP proxy function Compared with the prior art, in the case of TCP proxy switching, the server side packet loss causes the TCP connection between the server and the user equipment to be interrupted. In this embodiment, the target base station can receive the data packet migrated by the source base station to avoid packet loss. In order to solve the problem of TCP connection interruption caused by packet loss. In the embodiment of the present application, the target base station may further maintain a TCP proxy for the user equipment according to the context information, thereby improving the user experience.
  • the steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions.
  • the software instructions may be comprised of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, removable hard disk, read-only optical disk, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a core network interface device.
  • the processor and the storage medium may also exist as discrete components in the core network interface device.
  • the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium 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 general purpose or special purpose computer.

Landscapes

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

Abstract

本申请实施例提供一种数据迁移方法和装置,涉及通信领域,能够解决数据包丢包引起的TCP连接中断的问题。其方法为:源基站为用户设备进行传输控制协议TCP代理;源基站获知用户设备将切换至目标基站;源基站向目标基站发送上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;源基站通过流控制传输协议SCTP向目标基站迁移用户设备未确认的数据包,以便目标基站根据数据包的序列号接收用户设备未确认的数据包。本申请实施例应用于X2切换过程中基站间进行数据迁移的场景。

Description

一种数据迁移方法和装置 技术领域
本申请涉及通信领域,尤其涉及一种数据迁移方法和装置。
背景技术
传输控制协议(Transmission Control Protocol,TCP)是一种基于字节流的传输层(Transport layer)通信协议。用户设备(User Equipment,UE)和服务器(Server)之间建立TCP连接后,服务器通过演进型基站(evolved Node B,ENB)向UE发送下行TCP数据包。UE收到下行TCP数据包后,通过ENB向服务器回复TCP确认(TCP Acknowledgement,TCP ACK)。其中,ENB仅作为传输通道而不做任何传输层的处理。当在ENB增加TCP代理(Proxy)时,UE和服务器之间的TCP连接被分成了服务器与TCP代理的TCP连接以及UE与TCP代理的TCP连接。服务器发往UE的下行TCP数据包先被ENB的TCP代理缓存,TCP代理在正确收到下行TCP数据包后会向服务器回复TCP ACK,并将缓存的下行TCP数据包发送给UE。UE在正确收到下行TCP数据包后,向ENB回复TCP ACK。服务器与TCP代理的TCP连接以及UE与TCP代理的TCP连接相互独立,并且不被UE感知。
但是在ENB增加TCP代理的情况下,当UE发生基站间切换的时候,容易引起TCP连接中断,进而导致业务中断。举例来说,如图1所示,切换前:1、服务器将数据包(1,2,3,4)发送到源ENB的TCP代理。2、源ENB的TCP代理正确接收数据包(1,2,3,4),并向服务器确认数据包(1,2,3,4),而后服务器删除数据包(1,2,3,4)。3、源ENB向UE发送数据包(1,2)。4、UE正确接收数据包(1,2),并向源ENB确认接收数据包(1,2)。发生切换时,缓存在源ENB的TCP代理的数据包(3,4)没有迁移到目标ENB。切换后:5、服务器向UE发送数据包(5,6)。6、由于UE未收到数据包(3,4),因此UE向服务器发送连续TCP ACK,即当UE收到服务器的数据包(5)时,向服务器发送TCP ACK,通知数据包(2)后的数据包还未收到。当UE收到服务器的数据包(6)时,继续向服务器发送TCP ACK,通知服务器数据包(2)后的数据包还未收到。由于服务器侧已丢掉数据包(2)后的数据包,即数据包(3,4),无法向UE重传数据包(3,4),服务器与UE的TCP连接中断,进而导致业务中断。
发明内容
本申请实施例提供一种数据迁移方法和装置,能够解决数据包丢包引起的TCP连接中断的问题。
一方面,本申请实施例提供一种数据迁移方法,包括:源基站为用户设备进行TCP代理;源基站获知用户设备将切换至目标基站;源基站向目标基站发送上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;源基站通过流控制传输协议(Stream Control Transmission Protocol,SCTP)向目标基站迁移用户设备未确认的数据包,以便目标基站根据数据包的序列号接收用户设备未确 认的数据包。这样一来,在源基站为用户设备进行TCP代理的情况下,若用户设备发生基站间切换,则源基站可以向目标基站发送上下文信息,以便目标基站根据上下文信息接收用户设备未确认的数据包。相比现有技术中,在TCP代理切换的情况下,服务器侧丢包导致服务器与用户设备的TCP连接中断,本申请实施例中,源基站可以通过SCTP向目标基站迁移数据包来避免数据包丢包,从而解决丢包引起的TCP连接中断的问题。
在一种可能的设计中,该方法还包括:源基站向目标基站发送切换请求,切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理;源基站从目标基站接收切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。举例来说,第二信元的比特值为1,可以指示目标基站有能力为用户设备分配TCP代理资源。第二信元的比特值为0,可以指示目标基站没有能力为用户设备分配TCP代理资源。
在一种可能的设计中,若第二信元指示目标基站有能力为用户设备分配TCP代理资源,上下文信息还包括建立TCP代理的上下文信息,以便目标基站根据TCP代理的上下文信息为用户设备保持TCP代理。这样一来,目标基站可以根据上下文信息为用户设备保持TCP代理,保持切换前后的TCP代理的连续性,从而提高了用户体验。
在一种可能的设计中,源基站向目标基站发送上下文信息,包括:源基站向目标基站发送状态迁移信令,状态迁移信令包括上下文信息。也就是说,源基站可以通过向目标基站发送状态迁移信令将上下文信息发送给目标基站。
在一种可能的设计中,源基站通过流控制传输协议SCTP向目标基站迁移用户设备未确认的数据包包括:源基站通过X2接口应用协议和SCTP封装用户设备未确认的数据包;源基站向目标基站发送切换数据消息,切换数据消息包括源基站通过X2接口应用协议和SCTP封装后的用户设备未确认的数据包以及消息类型指示,消息类型指示用于指示源基站向目标基站迁移用户设备未确认的数据包。当目标基站接收源基站发送的切换数据消息后,可以通过SCTP以及X2-AP接口协议对数据解封装,以便获取源基站发送的用户设备未确认的数据包。
另一方面,提供一种数据迁移方法,包括:目标基站从源基站接收上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;目标基站根据数据包的序列号从源基站接收通过流控制传输协议SCTP迁移的用户设备未确认的数据包。这样一来,目标基站可以从源基站接收上下文信息,并可以根据上下文信息从源基站接收用户设备未确认的数据包。相比现有技术中,在TCP代理切换的情况下,服务器侧丢包导致服务器与用户设备的TCP连接中断,本申请实施例中,目标基站可以通过SCTP从源基站基站接收数据包,避免了数据包丢包,从而解决丢包引起的TCP连接中断的问题。
在一种可能的设计中,该方法还包括:目标基站从源基站接收切换请求,切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理;目标基站根据目标基站的能力确定是否可以为用户设备保持TCP代理;目标基站向源基站发送切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有 能力为用户设备分配TCP代理资源。举例来说,第二信元的比特值为1,可以指示目标基站有能力为用户设备分配TCP代理资源。第二信元的比特值为0,可以指示目标基站没有能力为用户设备分配TCP代理资源。
在一种可能的设计中,若第二信元指示目标基站有能力为用户设备分配TCP代理资源,上下文信息还包括建立TCP代理的上下文信息;目标基站根据TCP代理的上下文信息为用户设备保持TCP代理。这样一来,目标基站可以根据上下文信息为用户设备保持TCP代理,保持基站间切换前后的TCP代理的连续性,从而提高了用户体验。
在一种可能的设计中,目标基站从源基站接收上下文信息,包括:目标基站从源基站接收状态迁移信令,状态迁移信令包括上下文信息。也就是说,目标基站可以通过从源基站接收状态迁移信令从而接收到上下文信息。
在一种可能的设计中,目标基站根据数据包的序列号从源基站接收通过流控制传输协议SCTP迁移的用户设备未确认的数据包包括:目标基站从源基站接收切换数据消息,切换数据消息包括用户设备未确认的数据包以及消息类型指示,消息类型指示用于指示目标基站从源基站接收用户设备未确认的数据包;目标基站通过X2接口应用协议和SCTP对切换数据消息解封装,得到用户设备未确认的数据包。
再一方面,提供一种源基站,包括:处理单元,用于:为用户设备进行TCP代理;处理单元还用于:获知用户设备将切换至目标基站;发送单元,用于:向目标基站发送上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;发送单元还用于:通过SCTP向目标基站迁移用户设备未确认的数据包,以便目标基站根据数据包的序列号接收用户设备未确认的数据包。
在一种可能的设计中,发送单元还用于:向目标基站发送切换请求,切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理;还包括接收单元,用于:从目标基站接收切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。
在一种可能的设计中,若第二信元指示目标基站有能力为用户设备分配TCP代理资源,上下文信息还包括建立TCP代理的上下文信息,以便目标基站根据TCP代理的上下文信息为用户设备保持TCP代理。
在一种可能的设计中,发送单元用于:向目标基站发送状态迁移信令,状态迁移信令包括上下文信息。
在一种可能的设计中,处理单元还用于:通过X2接口应用协议和SCTP封装用户设备未确认的数据包;发送单元用于:向目标基站发送切换数据消息,切换数据消息包括源基站通过X2接口应用协议和SCTP封装后的用户设备未确认的数据包以及消息类型指示,消息类型指示用于指示源基站向目标基站迁移用户设备未确认的数据包。
再一方面,提供一种目标基站,包括:接收单元,用于:从源基站接收上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;处理单元用于:根据数据包的序列号通过接收单元从源基站接收通过SCTP迁移的用户设备未确认的数据 包。
在一种可能的设计中,接收单元还用于:从源基站接收切换请求,切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理;处理单元还用于:根据目标基站的能力确定是否可以为用户设备保持TCP代理;还包括发送单元,用于向源基站发送切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。
在一种可能的设计中,若第二信元指示目标基站有能力为用户设备分配TCP代理资源,上下文信息还包括建立TCP代理的上下文信息;处理单元还用于根据TCP代理的上下文信息为用户设备保持TCP代理。
在一种可能的设计中,接收单元用于:从源基站接收状态迁移信令,状态迁移信令包括上下文信息。
在一种可能的设计中,接收单元用于:从源基站接收切换数据消息,切换数据消息包括用户设备未确认的数据包以及消息类型指示,消息类型指示用于指示目标基站从源基站接收用户设备未确认的数据包;处理单元用于:通过X2接口应用协议和SCTP对切换数据消息解封装,得到用户设备未确认的数据包。
再一方面,提供一种源基站,包括:处理器,用于:为用户设备进行传输控制协议TCP代理;处理器还用于:获知用户设备将切换至目标基站;收发器,用于:向目标基站发送上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;收发器还用于:通过流控制传输协议SCTP向目标基站迁移用户设备未确认的数据包,以便目标基站根据数据包的序列号接收用户设备未确认的数据包。
在一种可能的设计中,收发器还用于:向目标基站发送切换请求,切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理;从目标基站接收切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。
在一种可能的设计中,若第二信元指示目标基站有能力为用户设备分配TCP代理资源,上下文信息还包括建立TCP代理的上下文信息,以便目标基站根据TCP代理的上下文信息为用户设备保持TCP代理。
在一种可能的设计中,收发器用于:向目标基站发送状态迁移信令,状态迁移信令包括上下文信息。
在一种可能的设计中,处理器还用于:通过X2接口应用协议和SCTP封装用户设备未确认的数据包;收发器用于:向目标基站发送切换数据消息,切换数据消息包括源基站通过X2接口应用协议和SCTP封装后的用户设备未确认的数据包以及消息类型指示,消息类型指示用于指示源基站向目标基站迁移用户设备未确认的数据包。
再一方面,提供一种目标基站,包括:收发器,用于:从源基站接收上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;处理器用于:根据数据包的序列号通过收发器从源基站接收通过流控制传输协议SCTP迁移的用户设备未确认的数据包。
在一种可能的设计中,收发器还用于:从源基站接收切换请求,切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理;处理器还用于:根据目标基站的能力确定是否可以为用户设备保持TCP代理;收发器还用于:向源基站发送切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。
在一种可能的设计中,若第二信元指示目标基站有能力为用户设备分配TCP代理资源,上下文信息还包括建立TCP代理的上下文信息;处理器还用于根据TCP代理的上下文信息为用户设备保持TCP代理。
在一种可能的设计中,收发器用于:从源基站接收状态迁移信令,状态迁移信令包括上下文信息。
在一种可能的设计中,收发器用于:从源基站接收切换数据消息,切换数据消息包括用户设备未确认的数据包以及消息类型指示,消息类型指示用于指示目标基站从源基站接收用户设备未确认的数据包;处理器用于:通过X2接口应用协议和SCTP对切换数据消息解封装,得到用户设备未确认的数据包。
再一方面,本申请实施例提供了一种计算机存储介质,用于储存为上述源基站所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
再一方面,本申请实施例提供了一种计算机存储介质,用于储存为上述目标基站所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
这样一来,当源基站为用户设备进行TCP代理时,若用户设备发生基站间切换,源基站可以向用户设备发送上下文信息,上下文信息包括数据包序列号,而后通过SCTP向目标基站迁移用户设备未确认的数据包,以便目标基站根据数据包序列号接收源基站迁移的用户设备未确认的数据包。相比现有技术,由于数据包丢包导致TCP连接中断,本申请实施例可以避免在TCP代理切换时数据包丢包,从而解决了数据包丢包引起的TCP连接中断问题。
附图说明
图1为本申请实施例提供的一种源ENB为用户设备进行TCP代理的情况下切换前后数据包的状态示意图;
图2为本申请实施例提供的一种源基站和目标基站的系统架构图;
图3为本申请实施例提供的一种数据迁移方法示意图;
图4为本申请实施例提供的一种源基站通过SCTP迁移数据的方法示意图;
图5为本申请实施例提供的一种目标基站上的TCP代理的结构示意图;
图6为本申请实施例提供的一种数据迁移方法示意图;
图7为本申请实施例提供的一种源基站的结构示意图;
图8为本申请实施例提供的一种源基站的内部结构示意图;
图9为本申请实施例提供的一种源基站的结构示意图;
图10为本申请实施例提供的一种目标基站的结构示意图;
图11为本申请实施例提供的一种目标基站的内部结构示意图;
图12为本申请实施例提供的一种目标基站的结构示意图。
具体实施方式
本申请实施例可以应用于TCP代理切换过程中基站间进行数据迁移的场景。TCP代理切换即源基站为用户设备进行TCP代理时,用户设备进行基站切换的过程。例如,本申请可以应用于源基站上的TCP代理缓存数据通过X2切换过程迁移到目标基站的场景。TCP代理可以用于缓存用户设备与业务服务器的数据包(例如TCP数据包),以有效提升系统端到端的传输带宽。需要说明的是,本申请实施例既可以应用于X2切换过程中服务网关(Serving GateWay,SGW)改变的场景,也可以应用于X2切换过程SGW不改变的场景,本申请实施例不做限定。
本申请实施例的系统架构如图2所示,可以包括源基站和目标基站,源基站和目标基站可以为ENB,源基站和目标基站之间的互连接口可以是X2接口。此外,本申请还可使用面向未来的其他通信系统,基站可具备其他名称,基站间的接口也可为其他接口。其中,源基站可以用于向目标基站发送上下文信息,并向目标基站迁移用户设备未确认的数据包。目标基站可以用于从源基站接收上下文信息,并从源基站接收用户设备未确认的数据包。
本申请实施例提供一种数据迁移方法,如图3所示,包括:
301、源基站向目标基站发送切换请求(Handover Request),切换请求包括第一信元,第一信元用于指示源基站为用户设备进行TCP代理。
源基站在为用户设备进行TCP代理的情况下,当用户设备需要进行基站间切换时,用户设备向源基站发送测量报告,以便源基站获知用户设备将切换至目标基站。源基站可以根据用户设备上报的测量报告决定进行TCP代理切换,同时源基站可以通过X2接口向目标基站发送切换请求,请求目标基站进行切换准备。
切换请求中的第一信元可以为TCP代理切换(Handover With Tcp Proxy)信元,用于指示用户设备切换前,源基站为用户设备进行TCP代理。若源基站为用户设备进行TCP代理,当用户设备与业务服务器传输数据时,源基站可以通过TCP代理缓存业务服务器发送给用户设备的数据包,或缓存用户设备发送给业务服务器的数据包。具体地,业务服务器发送给用户设备的下行TCP数据包可以先被源基站的TCP代理缓存,TCP代理在正确收到下行TCP数据包后会向业务服务器回复确认消息,并将缓存的下行TCP数据包发送给用户设备。业务服务器接收到TCP代理发送的确认消息后删除相应数据包。用户设备在正确收到下行TCP数据包后,可以向源基站回复确认消息。
在一种可能的设计中,TCP代理切换信元还可以用于指示目标基站反馈是否有能力为用户设备进行TCP代理。换句话说,TCP代理切换信元还可以用于指示目标基站反馈是否可以继续为用户设备提供TCP代理功能,即为用户设备保持TCP代理。
在一种可能的设计中,TCP代理切换信元可以用于指示源基站是否为用户设备进行TCP代理,若源基站可以为用户设备进行TCP代理,则TCP代理切换信元的比特值可以为1。若源基站不可以为用户设备进行TCP代理,则TCP代理切换信元的比特值可以为0,此时也就不需要源基站与目标基站进行TCP代理切换。
目标基站接收到切换请求后,若读取到切换请求中包括第一信元,则可以执行步骤302。
302、目标基站根据目标基站的能力确定是否可以为用户设备分配TCP代理资源,目标基站的能力用于指示目标基站是否可以为当前用户设备分配TCP代理资源。
目标基站的能力可以包括目标基站是否具有TCP代理功能以及目标基站的处理能力。
举例来说,若目标基站能够为N个用户设备分配TCP代理资源,且当前目标基站仅为不超过N个用户设备分配了TCP代理资源时,则认为目标基站具有处理能力。当目标基站具有TCP代理功能且具有处理能力时,目标基站确定可以为当前待切换的用户设备分配代理资源。若目标基站不具有TCP代理功能,或者,目标基站能够为N个用户设备分配TCP代理资源,但当前目标基站已为N个用户设备分配了代理资源,则认为目标基站不具备处理能力,那么目标基站不能再为当前待切换的用户设备分配代理资源。
若目标基站有能力为当前用户设备分配TCP代理资源,则执行步骤303-306。若目标基站没有能力为当前用户设备分配TCP代理资源,则执行步骤307-309。
303、目标基站向源基站发送切换请求应答消息(Handover Request Acknowledge),切换请求应答消息包括第二信元,第二信元用于指示目标基站有能力为用户设备分配TCP代理资源。
即目标基站在确定可以为用户设备分配TCP代理资源并完成基站间切换的切换准备后,可以向源基站发送切换请求应答消息。其中,切换请求应答消息包括的第二信元可以称为切换后是否TCP代理信元(Is Tcp Proxy After Handover)。
举例来说,第二信元的比特值为1,可以指示目标基站有能力为用户设备分配TCP代理资源。
304、源基站向目标基站发送状态迁移信令,状态迁移信令包括上下文信息,上下文信息包括建立TCP代理的上下文信息以及数据包的序列号。
源基站接收到目标基站发送的切换请求应答消息后,读取第二信元并确定目标基站有能力为用户设备分配TCP代理资源,而后源基站可以向目标基站发送状态迁移信令。其中,状态迁移信令可以是序列号状态迁移(SN Status Transfer)信令,可以用于携带源基站中分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)栈的服务数据单元(service Data Unit,SDU)数据包的序列号。上下文信息可以是切换前TCP代理的上下文(TCP Proxy Context Before Handover)信息。
其中,TCP代理的上下文信息可以包括终端和业务服务器之间的TCP业务流的四元组信息或五元组信息。例如四元组信息可以包括IP、源端口、目的IP和目的端口。五元组信息可以在四元组信息的基站还包括传输协议,传输协议可以包括SCTP或TCP等,本申请不做限定。
举例来说,192.168.1.1 10000 SCTP 121.14.88.76 80就可以构成一个五元组信息,其意义是,IP地址为192.168.1.1的终端通过端口10000,并利用SCTP协 议,与IP地址为121.14.88.76且端口为80的业务服务器进行连接。
数据包序列号可以包括用户设备对源基站已确认的数据包的最大序列号,或用户设备对源基站未确认的确认数据包的最小序列号。
举例来说,假设用户设备在基站间切换前通过源基站的TCP代理与业务服务器进行数据传输,业务服务器可以先将数据包(1,2,3,4)发送给源基站的TCP代理,源基站的TCP代理正确接收数据包(1,2,3,4)后可以向业务服务器确认数据包(1,2,3,4),随后业务服务器删除数据包(1,2,3,4)。而后,源基站的TCP代理向用户设备发送数据包(1,2),用户设备正确接收数据包(1,2)后可以向源基站确认数据包(1,2)。其中,数据包(1,2,3,4)分别包括多个字节流的数据包(数据段),每个数据段可以对应一个序列号。假设数据包1中包括10个数据段,序列号分别为1-10,数据包2中包括15个数据段,序列号分别为11-25,数据包3中包括20个数据段,序列号分别为26-45,那么此时用户设备对源基站已确认的数据包的最大序列号可以为25,用户设备对源基站未确认的确认数据包的最小序列号可以为26。
305、源基站通过SCTP向目标基站迁移用户设备未确认的数据包。
其中,SCTP是一种面向连接的流传输协议,可以在两个基站(端点)之间提供稳定、有序的数据传输服务。通过STCP迁移数据包可以保证TCP代理切换场景下数据包可以无损失地从源基站迁移到目标基站。
在一种可能的设计中,源基站可以通过向目标基站发送切换数据(Handover Data)消息从而向目标基站迁移用户设备未确认的数据包。
其中,切换数据消息可以包括用户设备未确认的数据包和消息类型指示,消息类型指示可以指示切换数据消息用于源基站向目标基站迁移用户设备未确认的数据包。
根据步骤304中的举例,用户设备未确认的数据包可以为数据包(3,4)。
如图4所示,源基站通过SCTP向目标基站迁移用户设备未确认的数据包的流程可以为:
1、源基站通过X2-AP接口协议封装用户设备未确认的数据包,并为该数据包添加消息类型指示。例如,可以选取X2-AP接口协议中未规定的字节组合作为消息类型指示,指示切换数据消息用于源基站向目标基站迁移用户设备未确认的数据包。
2、源基站通过SCTP对已经通过X2-AP接口协议封装后的数据包继续封装。
3、源基站通过IP协议、数据链路层协议以及物理层协议对数据包继续封装。
4、源基站将包括消息类型指示和未确认数据包的切换数据消息通过X2接口中的控制平面接口(即X2-C接口)发送给目标基站。
当然,源基站还可以通过其他协议对待发送的数据包封装,具体可以参考现有技术,本申请不做赘述。
目标基站接收源基站发送的切换数据消息后,如图4所示,目标基站可以通过物理层协议、数据链路层协议、IP协议、SCTP以及X2-AP接口协议对数据解封装,以便获取源基站发送的用户设备未确认的数据包。
当然,目标基站还可以通过其他协议对切换数据消息解封装,具体可以参考现有技术,本申请不做赘述。
在一种可能的设计中,步骤304和步骤305可以同时进行,也就是说,源基站可以同时向目标基站发送上下文信息和用户未确认的数据包。具体地,源基站可以向目标基站发送状态迁移信令,该状态迁移信令包括上下文信息和用户未确认的数据包。
306、目标基站根据TCP代理上下文信息为用户设备保持TCP代理。
如图5所示,为一种目标基站上的TCP代理的结构示意图。目标基站的TCP代理可以包括数据包解析模块、TCP代理管理模块和TCP代理逻辑单元。其中,TCP代理逻辑单元可以包括多个TCP代理逻辑子单元,每一个TCP业务流可以对应TCP代理逻辑单元中的一个TCP代理逻辑子单元。图5中N#表示第N个TCP代理逻辑子单元。TCP代理逻辑单元还包括用于生成TCP代理逻辑子单元的软件模板,如基础类等。在本申请实施例中,数据包解析模块可以用于获取上下文信息中的TCP代理上下文信息。TCP代理管理模块可以用于根据TCP代理上下文信息获取该TCP代理上下文信息对应的TCP代理逻辑子单元。TCP代理逻辑子单元可以用于处理TCP业务流对应的数据包。
当目标基站为用户设备保持TCP代理功能时,目标基站的TCP代理数据包解析模块解析上下文信息中的TCP代理上下文信息,以获取源IP、源端口、目的IP和目的端口。而后目标基站的TCP代理数据包解析模块将获取到的源IP、源端口、目的IP和目的端口输入TCP代理管理模块,TCP代理管理模块根据源IP、源端口、目的IP和目的端口初始化软件模板并生成TCP代理的对象,而后为TCP代理对象生成对应的TCP代理逻辑子单元。假设目标基站的TCP代理逻辑单元在用户设备发生基站切换前包括N个TCP代理逻辑子单元,目标基站为用户设备保持TCP代理功能时,为用户设备和业务服务器的TCP业务流生成了第(N+1)个TCP代理逻辑子单元。当用户设备发生基站切换后,目标基站的TCP代理逻辑单元中第(N+1)个TCP代理逻辑子单元可以将源基站迁移到目标基站的数据包发送给用户设备,以保证用户设备和业务服务器继续进行TCP连接,并且可以缓存或转发用户设备与业务服务器的TCP业务流的数据包。
307、目标基站向源基站发送切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站没有能力为用户设备分配TCP代理资源。
举例来说,第二信元的比特值为0,可以指示目标基站没有能力为用户设备分配TCP代理资源。
308、源基站站向目标基站发送状态迁移信令,状态迁移信令包括上下文信息,上下文信息包括数据包的序列号。
也就是说,源基站在确定目标基站没有能力为用户设备分配TCP代理资源时,发送仅包括数据包的序列号的上下文信息。
309、源基站通过SCTP向目标基站迁移用户设备未确认的数据包。
具体过程可以参考步骤305。
这样一来,源基站在TCP代理切换场景下,通过与目标基站协商,可以将 用户设备未确认的数据包迁移到目标基站,保证了用户的数据包不丢失。本申请实施例中,源基站通过STCP向目标基站迁移用户设备未确认的数据包,这样可以保证TCP代理切换场景下数据包可以无损失地从源基站迁移到目标基站,能够解决TCP代理切换过程中数据包丢包可能引起的TCP连接中断的问题。而且本申请实施中,源基站还可以将TCP代理的上下文信息发送给目标基站,以便目标基站根据TCP代理的上下文信息可以继续为用户分配TCP代理资源,保持切换前后的TCP代理的连续性,可以为用户在整个业务周期内提供代理功能,从而提高用户体验。
本申请实施例提供一种数据迁移方法,如图6所示,包括:
601、源基站为用户设备进行TCP代理。
若源基站为用户设备进行TCP代理,当用户设备与业务服务器传输数据时,源基站可以通过源基站上的TCP代理缓存业务服务器发送给用户设备的数据包,或缓存用户设备发送给业务服务器的数据包。
602、源基站获知用户设备将切换至目标基站。
源基站在为用户设备进行TCP代理的情况下,接收用户设备上报的测量报告,根据测量报告获知用户设备将切换至目标基站,而后源基站可以通过X2接口向目标基站发送切换请求,请求目标基站进行切换准备。
603、源基站向目标基站发送状态迁移信令,状态迁移信令包括上下文信息。
其中,上下文信息包括数据包的序列号,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号。
604、源基站通过SCTP向目标基站迁移用户设备未确认的数据包。
具体过程可以参考步骤305。
605、目标基站从源基站接收用户设备未确认的数据包。
即目标基站通过X2接口应用协议和SCTP对从源基站接收到的切换数据消息解封装,得到用户设备未确认的数据包。
具体过程可以参考步骤305。目标基站接收到源基站迁移的数据包后,可以将该数据包发送给用户设备,以保证用户设备和业务服务器继续进行TCP连接。
这样一来,源基站在TCP代理切换场景下,当获知用户设备要切换至目标基站后,可以向目标基站发送上下文信息,而后通过保证数据包到达的SCTP将用户设备未确认的数据包迁移到目标基站,从而保证了用户的数据包不丢失,能够解决切换过程中数据包丢包引起的TCP连接中断的问题。
上述主要从源基站和目标基站的角度对本申请实施例提供的方案进行了介绍。可以理解的是,源基站和目标基站为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对源基站和目标基站进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图7示出了上述实施例中所涉及的源基站7的一种可能的结构示意图,源基站包括:处理单元701,发送单元702和接收单元703。在本申请实施例中,处理单元701可以用于为用户设备进行传输控制协议TCP代理;获知用户设备将切换至目标基站。发送单元702可以用于向目标基站发送上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号;通过流控制传输协议SCTP向目标基站迁移用户设备未确认的数据包,以便目标基站根据数据包的序列号接收用户设备未确认的数据包。接收单元703可以用于从目标基站接收切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。在图3和图6所示的方法实施例中,处理单元701用于支持源基站执行图3中的过程304或图6中的过程601和602;发送单元702用于支持源基站执行图3中的过程301、304、305,或执行图3中的过程308和309,或图6中的过程603和604;接收单元703用于支持源基站执行图3中的过程303或307。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在采用集成的单元的情况下,图7示出了上述实施例中所涉及的源基站的一种可能的结构示意图。在本发明中,源基站可以包括处理模块701、通信模块702和存储模块703。其中,处理模块701用于控制源基站的各部分硬件装置和应用程序软件等;通信模块702用于可使用无线保真(Wireless Fidelity,WiFi)等通讯方式接受其它设备发送的指令,也可以将源基站的数据发送给其它设备;存储模块703用于执行源基站的软件程序的存储、数据的存储和软件的运行等。其中,处理模块701可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块702可以是收发器、收发电路或通信接口等。存储模块703可以是存储器。
在本申请实施例中,处理模块701可以用于确定目标基站是否有能力为用户设备分配TCP代理资源。
通信模块702可以在处理模块701确定目标基站有能力为用户设备分配TCP代理资源时,用于向目标基站发送上下文信息,上下文信息包括建立TCP代理 的上下文信息以及数据包的序列号;或在处理模块701确定目标基站没有能力为用户设备分配TCP代理资源时,向目标基站发送上下文信息,上下文信息包括数据包的序列号;以及向目标基站迁移待发送的数据包。
存储模块703可以用于存储本申请实施例中待发送的数据包。
在一种可能的设计中,源基站可以通过图9中的计算机设备(或系统)来实现。
图9所示为本申请实施例提供的计算机设备示意图。计算机设备900包括至少一个处理器901,通信总线902,存储器903以及至少一个通信接口904。
处理器901可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信总线902可包括一通路,在上述组件之间传送信息。
通信接口904,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。
存储器903可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器903用于存储执行本申请方案的应用程序代码,并由处理器901来控制执行。处理器901用于执行存储器903中存储的应用程序代码,从而实现本专利方法中的功能。
在具体实现中,作为一种实施例,处理器901可以包括一个或多个CPU,例如图9中的CPU0和CPU1。
在具体实现中,作为一种实施例,计算机设备900可以包括多个处理器,例如图9中的处理器901和处理器907。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
在具体实现中,作为一种实施例,计算机设备900还可以包括输出设备905和输入设备906。输出设备905和处理器901通信,可以以多种方式来显示信息。例如,输出设备905可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备906和处理器901通信,可以以多 种方式接受用户的输入。例如,输入设备906可以是鼠标、键盘、触摸屏设备或传感设备等。
上述的计算机设备900可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备900可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备、嵌入式设备或有图9中类似结构的设备。本申请实施例不限定计算机设备900的类型。
下面结合图9对本申请实施例进行说明。简要地说,若源基站为用户设备进行传输控制协议TCP代理,则源基站的处理器901在确定用户设备发生基站间切换时,确定目标基站是否有能力为用户设备分配TCP代理资源;若确定是,则源基站的处理器通过通信接口904向目标基站发送上下文信息,上下文信息包括建立TCP代理的上下文信息以及数据包的序列号;源基站的通信接口904向目标基站迁移待发送的数据包,以便目标基站根据数据包的序列号接收待发送的数据包,并根据TCP代理的上下文信息为用户设备保持TCP代理。
这样一来,在源基站为用户设备进行TCP代理的情况下,如用户设备发生基站间切换,则源基站可以向目标基站发送上下文信息,以便目标基站根据上下文信息接收待发送的数据包并为用户设备保持TCP代理功能。相比现有技术中,在TCP代理切换的情况下,服务器侧丢包导致服务器与用户设备的TCP连接中断,本申请实施例可以通过源基站向目标基站迁移数据包来避免数据包丢包,从而解决丢包引起的TCP连接中断的问题。
在采用对应各个功能划分各个功能模块的情况下,图10示出了上述实施例中所涉及的目标基站10的一种可能的结构示意图,目标基站包括:接收单元1001,处理单元1002和发送单元1003。在本申请实施例中,接收单元1001可以用于从源基站接收上下文信息,上下文信息包括数据包的序列号,其中,数据包的序列号为用户设备已确认的数据包的最大序列号或用户设备未确认的数据包的最小序列号。处理单元1002可以用于根据数据包的序列号通过接收单元从源基站接收通过流控制传输协议SCTP迁移的用户设备未确认的数据包。发送单元1003可以用于向源基站发送切换请求应答消息,切换请求应答消息包括第二信元,第二信元用于指示目标基站是否有能力为用户设备分配TCP代理资源。在图3和图6所示的方法实施例中,接收单元1001用于支持目标基站执行图3中的过程301、304和305,或执行图3中的过程308和309,或图6中的过程603和604;处理单元1002用于支持目标基站执行图3中的过程302和306,或图6中的过程605;发送单元1003用于支持目标基站执行图3中的过程303或307。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
在采用集成的单元的情况下,图11示出了上述实施例中所涉及的目标基站的一种可能的结构示意图。在本发明中,目标基站可以包括处理模块1101、通信模块1102和存储模块1103。其中,处理模块1101用于控制目标基站的各部分硬件装置和应用程序软件等;通信模块1102用于可使用WiFi等通讯方式接受其它 设备发送的指令,也可以将目标基站的数据发送给其它设备;存储模块1103用于执行目标基站的软件程序的存储、数据的存储和软件的运行等。其中,处理模块1101可以是处理器或控制器,例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1102可以是收发器、收发电路或通信接口等。存储模块1103可以是存储器。
在本申请实施例中,处理模块1101可以用于确定目标基站是否有能力为用户设备分配TCP代理资源。
通信模块1102可以在处理模块1101确定目标基站有能力为用户设备分配TCP代理资源时,用于接收源基站发送的上下文信息,上下文信息包括建立TCP代理的上下文信息以及数据包的序列号;或在处理模块1101确定目标基站没有能力为用户设备分配TCP代理资源时,接收源基站发送的上下文信息,上下文信息包括数据包的序列号;以及接收源基站迁移的待发送的数据包。
存储模块1103可以用于存储本申请实施例中的待发送的数据包。
在一种可能的设计中,目标基站可以通过图12中的计算机设备(或系统)来实现。
图12所示为本发明实施例提供的计算机设备示意图。计算机设备1200包括至少一个处理器1201,通信总线1202,存储器1203以及至少一个通信接口1204。
处理器1201可以是一个CPU,微处理器,ASIC,或一个或多个用于控制本发明方案程序执行的集成电路。
通信总线1202可包括一通路,在上述组件之间传送信息。
通信接口1204,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,RAN,WLAN等。
存储器1203可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器1203用于存储执行本发明方案的应用程序代码,并由处理器1201来控制执行。处理器1201用于执行存储器1203中存储的应用程序代码,从而实现本专利方法中的功能。
在具体实现中,作为一种实施例,处理器1201可以包括一个或多个CPU,例如图12中的CPU0和CPU1。
在具体实现中,作为一种实施例,计算机设备1200可以包括多个处理器,例如图12中的处理器1201和处理器1207。这些处理器中的每一个可以是一个单 核处理器,也可以是一个多核处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
在具体实现中,作为一种实施例,计算机设备1200还可以包括输出设备1205和输入设备1206。输出设备1205和处理器1201通信,可以以多种方式来显示信息。例如,输出设备1205可以是LCD,LED显示设备,CRT显示设备,或投影仪等。输入设备1206和处理器1201通信,可以以多种方式接受用户的输入。例如,输入设备1206可以是鼠标、键盘、触摸屏设备或传感设备等。
上述的计算机设备1200可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备1200可以是台式机、便携式电脑、网络服务器、PDA、移动手机、平板电脑、无线终端设备、通信设备、嵌入式设备或有图12中类似结构的设备。本发明实施例不限定计算机设备1200的类型。
下面结合图12对本申请实施例进行说明。简要地说,首先,目标基站的处理器1201确定目标基站是否有能力为用户设备分配TCP代理资源;若确定是,则目标基站的通信接口1204接收源基站发送的上下文信息,上下文信息包括建立TCP代理的上下文信息以及数据包的序列号;目标基站的处理器1201根据数据包的序列号通过通信接口1204接收源基站迁移的待发送的数据包,并根据TCP代理的上下文信息为用户设备保持TCP代理。
这样一来,若目标基站确定目标基站有能力为用户设备分配TCP代理资源,则目标基站可以接收源基站发送的上下文信息,且可以根据上下文信息接收源基站待发送的数据包以及为用户设备保持TCP代理功能。相比现有技术中,在TCP代理切换的情况下,服务器侧丢包导致服务器与用户设备的TCP连接中断,本申请实施例可以通过目标基站接收源基站迁移的数据包来避免数据包丢包,从而解决丢包引起的TCP连接中断的问题。而且本申请实施例中,目标基站还可以根据上下文信息为用户设备保持TCP代理,从而提高了用户体验。
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、只读光盘或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于核心网接口设备中。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进 一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。

Claims (30)

  1. 一种数据迁移方法,其特征在于,包括:
    源基站为用户设备进行传输控制协议TCP代理;
    所述源基站获知所述用户设备将切换至目标基站;
    所述源基站向所述目标基站发送上下文信息,所述上下文信息包括数据包的序列号,其中,所述数据包的序列号为所述用户设备已确认的数据包的最大序列号或所述用户设备未确认的数据包的最小序列号;
    所述源基站通过流控制传输协议SCTP向所述目标基站迁移所述用户设备未确认的数据包,以便所述目标基站根据所述数据包的序列号接收所述用户设备未确认的数据包。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    所述源基站向所述目标基站发送切换请求,所述切换请求包括第一信元,所述第一信元用于指示所述源基站为所述用户设备进行TCP代理;
    所述源基站从所述目标基站接收切换请求应答消息,所述切换请求应答消息包括第二信元,所述第二信元用于指示所述目标基站是否有能力为所述用户设备分配TCP代理资源。
  3. 根据权利要求2所述的方法,其特征在于,
    若所述第二信元指示所述目标基站有能力为所述用户设备分配TCP代理资源,所述上下文信息还包括建立所述TCP代理的上下文信息,以便所述目标基站根据所述TCP代理的上下文信息为所述用户设备保持TCP代理。
  4. 根据权利要求2所述的方法,其特征在于,所述源基站向所述目标基站发送上下文信息,包括:
    所述源基站向所述目标基站发送状态迁移信令,所述状态迁移信令包括所述上下文信息。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述源基站通过流控制传输协议SCTP向所述目标基站迁移所述用户设备未确认的数据包包括:
    所述源基站通过X2接口应用协议和所述SCTP封装所述用户设备未确认的数据包;
    所述源基站向目标基站发送切换数据消息,所述切换数据消息包括所述源基站通过X2接口应用协议和所述SCTP封装后的所述用户设备未确认的数据包以及消息类型指示,所述消息类型指示用于指示所述源基站向所述目标基站迁移所述用户设备未确认的数据包。
  6. 一种数据迁移方法,其特征在于,包括:
    目标基站从源基站接收上下文信息,所述上下文信息包括数据包的序列号,其中,所述数据包的序列号为用户设备已确认的数据包的最大序列号或所述用户设备未确认的数据包的最小序列号;
    所述目标基站根据所述数据包的序列号从所述源基站接收通过流控制传输协议SCTP迁移的所述用户设备未确认的数据包。
  7. 根据权利要求6所述的方法,其特征在于,还包括:
    所述目标基站从所述源基站接收切换请求,所述切换请求包括第一信元,所述第一信元用于指示所述源基站为所述用户设备进行TCP代理;
    所述目标基站根据所述目标基站的能力确定是否可以为所述用户设备保持TCP代理;
    所述目标基站向所述源基站发送切换请求应答消息,所述切换请求应答消息包括第二信元,所述第二信元用于指示所述目标基站是否有能力为所述用户设备分配TCP代理资源。
  8. 根据权利要求7所述的方法,其特征在于,
    若所述第二信元指示所述目标基站有能力为所述用户设备分配TCP代理资源,所述上下文信息还包括建立所述TCP代理的上下文信息;
    所述目标基站根据所述TCP代理的上下文信息为所述用户设备保持TCP代理。
  9. 根据权利要求8所述的方法,其特征在于,所述目标基站从源基站接收上下文信息,包括:
    所述目标基站从所述源基站接收状态迁移信令,所述状态迁移信令包括所述上下文信息。
  10. 根据权利要求6至9任一项所述的方法,其特征在于,所述目标基站根据所述数据包的序列号从所述源基站接收通过流控制传输协议SCTP迁移的所述用户设备未确认的数据包包括:
    所述目标基站从所述源基站接收切换数据消息,所述切换数据消息包括所述用户设备未确认的数据包以及消息类型指示,所述消息类型指示用于指示所述目标基站从所述源基站接收所述用户设备未确认的数据包;
    所述目标基站通过X2接口应用协议和所述SCTP对所述切换数据消息解封装,得到所述用户设备未确认的数据包。
  11. 一种源基站,其特征在于,包括:
    处理单元,用于:为用户设备进行传输控制协议TCP代理;
    所述处理单元还用于:获知所述用户设备将切换至目标基站;
    发送单元,用于:向所述目标基站发送上下文信息,所述上下文信息包括数据包的序列号,其中,所述数据包的序列号为所述用户设备已确认的数据包的最大序列号或所述用户设备未确认的数据包的最小序列号;
    所述发送单元还用于:通过流控制传输协议SCTP向所述目标基站迁移所述用户设备未确认的数据包,以便所述目标基站根据所述数据包的序列号接收所述用户设备未确认的数据包。
  12. 根据权利要求11所述的源基站,其特征在于,所述发送单元还用于:
    向所述目标基站发送切换请求,所述切换请求包括第一信元,所述第一信元用于指示所述源基站为所述用户设备进行TCP代理;
    还包括接收单元,用于:从所述目标基站接收切换请求应答消息,所述切换请求应答消息包括第二信元,所述第二信元用于指示所述目标基站是否有能力为所述用户设备分配TCP代理资源。
  13. 根据权利要求12所述的源基站,其特征在于,
    若所述第二信元指示所述目标基站有能力为所述用户设备分配TCP代理资源,所述上下文信息还包括建立所述TCP代理的上下文信息,以便所述目标基站根据所述TCP代理的上下文信息为所述用户设备保持TCP代理。
  14. 根据权利要求12所述的源基站,其特征在于,所述发送单元用于:
    向所述目标基站发送状态迁移信令,所述状态迁移信令包括所述上下文信息。
  15. 根据权利要求11至14任一项所述的源基站,其特征在于,所述处理单元还用于:
    通过X2接口应用协议和所述SCTP封装所述用户设备未确认的数据包;
    所述发送单元用于:向目标基站发送切换数据消息,所述切换数据消息包括所述源基站通过X2接口应用协议和所述SCTP封装后的用户设备未确认的数据包以及消息类型指示,所述消息类型指示用于指示所述源基站向所述目标基站迁移所述用户设备未确认的数据包。
  16. 一种目标基站,其特征在于,包括:
    接收单元,用于:从源基站接收上下文信息,所述上下文信息包括数据包的序列号,其中,所述数据包的序列号为用户设备已确认的数据包的最大序列号或所述用户设备未确认的数据包的最小序列号;
    处理单元用于:根据所述数据包的序列号通过所述接收单元从所述源基站接收通过流控制传输协议SCTP迁移的所述用户设备未确认的数据包。
  17. 根据权利要求16所述的目标基站,其特征在于,所述接收单元还用于:
    从所述源基站接收切换请求,所述切换请求包括第一信元,所述第一信元用于指示所述源基站为所述用户设备进行TCP代理;
    所述处理单元还用于:根据所述目标基站的能力确定是否可以为所述用户设备保持TCP代理;
    还包括发送单元,用于向所述源基站发送切换请求应答消息,所述切换请求应答消息包括第二信元,所述第二信元用于指示所述目标基站是否有能力为所述用户设备分配TCP代理资源。
  18. 根据权利要求17所述的目标基站,其特征在于,
    若所述第二信元指示所述目标基站有能力为所述用户设备分配TCP代理资源,所述上下文信息还包括建立所述TCP代理的上下文信息;
    所述处理单元还用于:根据所述TCP代理的上下文信息为所述用户设备保持TCP代理。
  19. 根据权利要求18所述的目标基站,其特征在于,所述接收单元用于:
    从所述源基站接收状态迁移信令,所述状态迁移信令包括所述上下文信息。
  20. 根据权利要求16至19任一项所述的目标基站,其特征在于:
    所述接收单元用于:从所述源基站接收切换数据消息,所述切换数据消息包括所述用户设备未确认的数据包以及消息类型指示,所述消息类型指示用于指示所述目标基站从所述源基站接收所述用户设备未确认的数据包;
    所述处理单元用于:通过X2接口应用协议和所述SCTP对所述切换数据消息 解封装,得到所述用户设备未确认的数据包。
  21. 一种源基站,其特征在于,包括:
    处理器,用于:为用户设备进行传输控制协议TCP代理;
    所述处理器还用于:获知所述用户设备将切换至目标基站;
    收发器,用于:向所述目标基站发送上下文信息,所述上下文信息包括数据包的序列号,其中,所述数据包的序列号为所述用户设备已确认的数据包的最大序列号或所述用户设备未确认的数据包的最小序列号;
    所述收发器还用于:通过流控制传输协议SCTP向所述目标基站迁移所述用户设备未确认的数据包,以便所述目标基站根据所述数据包的序列号接收所述用户设备未确认的数据包。
  22. 根据权利要求21所述的源基站,其特征在于,所述收发器还用于:
    向所述目标基站发送切换请求,所述切换请求包括第一信元,所述第一信元用于指示所述源基站为所述用户设备进行TCP代理;
    从所述目标基站接收切换请求应答消息,所述切换请求应答消息包括第二信元,所述第二信元用于指示所述目标基站是否有能力为所述用户设备分配TCP代理资源。
  23. 根据权利要求22所述的源基站,其特征在于,
    若所述第二信元指示所述目标基站有能力为所述用户设备分配TCP代理资源,所述上下文信息还包括建立所述TCP代理的上下文信息,以便所述目标基站根据所述TCP代理的上下文信息为所述用户设备保持TCP代理。
  24. 根据权利要求22所述的源基站,其特征在于,所述收发器用于:
    向所述目标基站发送状态迁移信令,所述状态迁移信令包括所述上下文信息。
  25. 根据权利要求21至24任一项所述的源基站,其特征在于,所述处理器还用于:
    通过X2接口应用协议和所述SCTP封装所述用户设备未确认的数据包;
    所述收发器用于:向目标基站发送切换数据消息,所述切换数据消息包括所述源基站通过X2接口应用协议和所述SCTP封装后的用户设备未确认的数据包以及消息类型指示,所述消息类型指示用于指示所述源基站向所述目标基站迁移所述用户设备未确认的数据包。
  26. 一种目标基站,其特征在于,包括:
    收发器,用于:从源基站接收上下文信息,所述上下文信息包括数据包的序列号,其中,所述数据包的序列号为用户设备已确认的数据包的最大序列号或所述用户设备未确认的数据包的最小序列号;
    处理器用于:根据所述数据包的序列号通过所述收发器从所述源基站接收通过流控制传输协议SCTP迁移的所述用户设备未确认的数据包。
  27. 根据权利要求26所述的目标基站,其特征在于,所述收发器还用于:
    从所述源基站接收切换请求,所述切换请求包括第一信元,所述第一信元用于指示所述源基站为所述用户设备进行TCP代理;
    所述处理器还用于:根据所述目标基站的能力确定是否可以为所述用户设备保 持TCP代理;
    所述收发器还用于:向所述源基站发送切换请求应答消息,所述切换请求应答消息包括第二信元,所述第二信元用于指示所述目标基站是否有能力为所述用户设备分配TCP代理资源。
  28. 根据权利要求27所述的目标基站,其特征在于,
    若所述第二信元指示所述目标基站有能力为所述用户设备分配TCP代理资源,所述上下文信息还包括建立所述TCP代理的上下文信息;
    所述处理器还用于根据所述TCP代理的上下文信息为所述用户设备保持TCP代理。
  29. 根据权利要求28所述的目标基站,其特征在于,所述收发器用于:
    从所述源基站接收状态迁移信令,所述状态迁移信令包括所述上下文信息。
  30. 根据权利要求26至29任一项所述的目标基站,其特征在于:
    所述收发器用于:从所述源基站接收切换数据消息,所述切换数据消息包括所述用户设备未确认的数据包以及消息类型指示,所述消息类型指示用于指示所述目标基站从所述源基站接收所述用户设备未确认的数据包;
    所述处理器用于:通过X2接口应用协议和所述SCTP对所述切换数据消息解封装,得到所述用户设备未确认的数据包。
PCT/CN2017/079120 2017-03-31 2017-03-31 一种数据迁移方法和装置 WO2018176419A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP17903099.4A EP3585025B1 (en) 2017-03-31 2017-03-31 Data migration method and apparatus
PCT/CN2017/079120 WO2018176419A1 (zh) 2017-03-31 2017-03-31 一种数据迁移方法和装置
CN201780087952.3A CN110383787B (zh) 2017-03-31 2017-03-31 一种数据迁移方法和装置
US16/585,540 US11240712B2 (en) 2017-03-31 2019-09-27 Data migration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/079120 WO2018176419A1 (zh) 2017-03-31 2017-03-31 一种数据迁移方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/585,540 Continuation US11240712B2 (en) 2017-03-31 2019-09-27 Data migration method and apparatus

Publications (1)

Publication Number Publication Date
WO2018176419A1 true WO2018176419A1 (zh) 2018-10-04

Family

ID=63674067

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079120 WO2018176419A1 (zh) 2017-03-31 2017-03-31 一种数据迁移方法和装置

Country Status (4)

Country Link
US (1) US11240712B2 (zh)
EP (1) EP3585025B1 (zh)
CN (1) CN110383787B (zh)
WO (1) WO2018176419A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024041215A1 (zh) * 2022-08-25 2024-02-29 华为技术有限公司 通信方法、装置、系统及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240833B (zh) * 2019-12-31 2023-03-17 厦门网宿有限公司 一种资源迁移方法及装置
US20230232287A1 (en) * 2021-04-01 2023-07-20 Apple Inc. Integrated access and backhaul radio link handover

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070005787A1 (en) * 2005-06-29 2007-01-04 Ntt Docomo, Inc. Communication terminal device and communications method
CN101330451A (zh) * 2007-06-20 2008-12-24 华为技术有限公司 数据包的转发处理方法、节点与分组核心装置
CN101653027A (zh) * 2007-04-26 2010-02-17 富士通株式会社 基站、移动站、通信系统、发送方法及重排序方法
CN104285472A (zh) * 2014-04-24 2015-01-14 华为技术有限公司 Mptcp连接的移动性管理方法和装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5568567B2 (ja) * 2008-11-21 2014-08-06 テレフオンアクチーボラゲット エル エム エリクソン(パブル) ハンドオーバ、変換、及びルーティング機能を提供するように構成されたネットワークゲートウェイ
CN101489270B (zh) * 2009-01-22 2010-12-22 华为技术有限公司 X2接口切换的预处理方法、设备及系统
EP2663158B1 (en) * 2012-05-10 2017-08-16 Alcatel Lucent Transferring messages
CN102833802B (zh) * 2012-08-15 2015-09-23 电信科学技术研究院 一种数据转发方法及设备
KR101983034B1 (ko) * 2012-09-05 2019-09-03 삼성전자주식회사 인터넷을 통한 핸드오버 지원 방법 및 장치
CN103118403B (zh) * 2013-01-25 2015-07-08 北京久华信信息技术有限公司 一种无线通信系统中的终端设备跨基站无缝切换的方法
US20150296418A1 (en) * 2014-04-15 2015-10-15 Nokia Solutions And Networks Oy Methods and Apparatus for Handover Management of Transfer Control Protocol Proxy Communications
CN104077401B (zh) * 2014-07-04 2017-11-24 用友网络科技股份有限公司 用于数据库的数据迁移装置和数据迁移方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070005787A1 (en) * 2005-06-29 2007-01-04 Ntt Docomo, Inc. Communication terminal device and communications method
CN101653027A (zh) * 2007-04-26 2010-02-17 富士通株式会社 基站、移动站、通信系统、发送方法及重排序方法
CN101330451A (zh) * 2007-06-20 2008-12-24 华为技术有限公司 数据包的转发处理方法、节点与分组核心装置
CN104285472A (zh) * 2014-04-24 2015-01-14 华为技术有限公司 Mptcp连接的移动性管理方法和装置

Non-Patent Citations (1)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024041215A1 (zh) * 2022-08-25 2024-02-29 华为技术有限公司 通信方法、装置、系统及存储介质

Also Published As

Publication number Publication date
EP3585025B1 (en) 2021-08-18
CN110383787B (zh) 2021-09-14
EP3585025A4 (en) 2019-12-25
CN110383787A (zh) 2019-10-25
US20200029254A1 (en) 2020-01-23
US11240712B2 (en) 2022-02-01
EP3585025A1 (en) 2019-12-25

Similar Documents

Publication Publication Date Title
US10602400B2 (en) Enhancement of PDCP status report
JP7200338B2 (ja) 無線アクセスにおける無線ベアラの切替え
JP2020511898A (ja) データ送信方法、アクセスネットワーク装置、端末、及び通信システム
WO2018233508A1 (zh) 切换方法、装置和系统
KR102387163B1 (ko) 데이터 전달 방법, 장치, 및 시스템
JPWO2005081428A1 (ja) 移動通信システム及び移動通信方法
JP6976362B2 (ja) 通信方法および通信装置
US11240712B2 (en) Data migration method and apparatus
US20220286896A1 (en) Data transmission method and apparatus, first communication node, and second communication node
JP6470395B2 (ja) パス・スイッチとそれに関連するネットワーク要素とを協調させる方法
WO2020001257A1 (zh) 一种数据传输方法及装置
US20220078661A1 (en) Network nodes and methods supporting multiple connectivity
WO2020063867A1 (zh) 一种切换方法及基站
WO2018127220A1 (zh) 一种数据转发方法及装置
WO2019213922A1 (zh) 中继网络中节点间转发数据的方法和网络节点
WO2011113330A1 (zh) 一种业务通路切换方法及其装置
WO2016154831A1 (zh) 一种实现传输控制协议tcp传输的方法及装置
US11140594B2 (en) Methods and service nodes for transferring a service session for a wireless device
US20190028563A1 (en) Network apparatus
WO2021128100A1 (zh) 一种通信方法及装置
WO2020221202A1 (zh) 一种数据处理方法、通信装置和系统
US11166209B2 (en) Methods and service nodes for transferring a service session for a wireless device between service nodes associated to different base stations
WO2018202204A1 (zh) 一种基于反转服务流特性的通信方法及装置
WO2024027540A1 (zh) 一种通信方法及装置
WO2023246746A1 (zh) 一种通信方法及相关设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017903099

Country of ref document: EP

Effective date: 20190919