WO2013117128A1 - Procédé de transmission et de réception de données, équipement utilisateur, station de base et passerelle - Google Patents

Procédé de transmission et de réception de données, équipement utilisateur, station de base et passerelle Download PDF

Info

Publication number
WO2013117128A1
WO2013117128A1 PCT/CN2013/070821 CN2013070821W WO2013117128A1 WO 2013117128 A1 WO2013117128 A1 WO 2013117128A1 CN 2013070821 W CN2013070821 W CN 2013070821W WO 2013117128 A1 WO2013117128 A1 WO 2013117128A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
pdcp
sent
base station
gateway
Prior art date
Application number
PCT/CN2013/070821
Other languages
English (en)
Chinese (zh)
Inventor
常俊仁
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013117128A1 publication Critical patent/WO2013117128A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/03Reselecting a link using a direct mode connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/03Reselecting a link using a direct mode connection
    • H04W36/033Reselecting a link using a direct mode connection in pre-organised networks

Definitions

  • the present invention relates to communication technologies, and in particular, to a data transmission and reception method, a user equipment, a base station, and a gateway. Background technique
  • communication networks such as cell networks and wireless local area networks (Wireless Local Area).
  • a cell network when a user equipment (UE) communicates with other UEs, it needs to perform centralized control through a base station, such as an evolved NodeB (eNB) in a Long Term Evolution (LTE) network. This communication mode is called communication in a cell mode.
  • eNB evolved NodeB
  • LTE Long Term Evolution
  • Communication between UEs The advantage of base station control is that the base station can centrally control the use of radio resources of the cell and perform good interference control. However, in some cases, for example, when two UEs are relatively close together, centralized control by the base station may result in waste of radio resources. For example, if the same amount of data is transmitted, two UEs with similar distances directly communicate, and half of the radio resources can be saved compared to the communication mode that the base station centrally controls.
  • the embodiments of the present invention provide a data sending and receiving method, a user equipment, a base station, and a gateway, which are used to complete handover between a cell mode and a D2D mode of a UE that communicates with each other.
  • An embodiment of the present invention provides a data sending method, including:
  • the first UE receives a handover instruction that is sent by the base station and is switched from the D2D mode to the cell mode; the first UE sends the first unsuccessfully sent data packet to the second UE and the subsequent data packet in the D2D mode. Sent to the base station.
  • An embodiment of the present invention provides a user equipment, including:
  • a first sending module configured to send a data packet to the second UE in a device direct D2D mode
  • the first receiving module is configured to receive, by the base station, a handover command that is switched from the D2D mode to the cell mode by the base station;
  • a second sending module configured to send, to the base station, the first data packet that is not successfully sent to the second UE in the D2D mode, and the subsequent data packet.
  • An embodiment of the present invention provides a data sending method, including:
  • the base station sends, to the first user equipment UE, a handover instruction that is switched from the device through the D2D mode to the cell mode, to instruct the first UE to switch from transmitting the data packet in the D2D mode to the second UE to the second through the base station.
  • the UE sends a data packet;
  • the PDCP data packet includes all PDCP data packets after the first unsuccessfully transmitted PDCP data packet of the second UE, or includes the first PDCP data packet that is not successfully sent to the second UE The PDCP data packet that was not successfully sent to the second UE afterwards;
  • the base station sends the PDCP data packet sent by the first UE to the gateway, and receives the Internet Protocol IP data packet sent by the gateway, and then allocates a PDCP sequence number to the IP data packet sent by the gateway to The IP data packet delivered by the gateway is re-encapsulated into a PDCP data packet.
  • the base station sends the re-encapsulated PDCP data packet to the second UE.
  • An embodiment of the present invention provides a base station, including:
  • a fourth sending module configured to send, to the first user equipment UE, a handover instruction that is switched from the device through the D2D mode to the cell mode, to instruct the first UE to switch from sending the data packet in the D2D mode to the second UE to Transmitting, by the base station, a data packet to the second UE;
  • a third receiving module configured to receive, by the first UE, a PDCP data packet that is not successfully sent by the first UE to the second UE and a subsequent PDCP data packet in the D2D mode, where the subsequent The PDCP data packet includes all PDCP data packets after the first PDCP data packet that is not successfully sent to the second UE, or includes the first PDCP data packet that is not successfully sent to the second UE.
  • a first encapsulating module configured to send a PDCP data packet sent by the first UE to a gateway, and receive an Internet Protocol IP data packet sent by the gateway, and then allocate a PDCP serial number to the IP data packet sent by the gateway. Re-encapsulating the IP data packet delivered by the gateway into a PDCP data packet;
  • a fifth sending module configured to send the re-encapsulated PDCP data packet to the second UE.
  • An embodiment of the present invention provides a data receiving method, including:
  • the gateway receives an Internet Protocol IP data packet sent by the first user equipment UE and sent by the base station to the second UE, and records an order of receiving the IP data packet, where the IP data packet is the first
  • the packet data convergence protocol PDCP data packet sent by the UE is decapsulated, and the IP data packet includes an identifier of the first UE and an identifier of the second UE.
  • the gateway processes the IP data packet, and delivers the processed IP data packet to the base station according to the recorded sequence.
  • An embodiment of the present invention provides a gateway, including:
  • An eighteenth receiving module configured to receive an Internet Protocol IP data packet sent by the first user equipment UE and sent by the base station to the second UE, and record an order of receiving the IP data packet; where the IP data packet is The base station decapsulates the packet data convergence protocol PDCP data packet sent by the first UE, where the IP data packet includes an identifier of the first UE and an identifier of the second UE;
  • the twenty-first sending module is configured to process the IP data packet, and send the processed IP data packet to the base station according to the recorded sequence.
  • Another aspect of the present invention provides a data sending method, including:
  • the base station sends, to the first UE, a handover instruction that is switched from the device through the D2D mode to the cell mode, to instruct the first UE to switch from sending the data packet to the second UE in the D2D mode to sending to the second UE by using the base station. data pack;
  • the base station directly forwards the data packet sent by the first UE to the second UE.
  • a base station including:
  • a tenth sending module configured to send, to the first UE, a handover instruction that is switched from the device through the D2D mode to the cell mode, to instruct the first UE to switch from sending the data packet in the D2D mode to the second UE to Transmitting, by the second UE, a data packet;
  • an eighth receiving module configured to receive, by the first UE, a data packet and a subsequent data packet that are not successfully sent by the first UE to the second UE in a D2D mode;
  • An eleventh sending module configured to forward the data packet sent by the first UE to the second
  • a still further aspect of the embodiments of the present invention provides a data sending method, including:
  • the first user equipment UE sends a packet data convergence protocol PDCP data packet to the base station;
  • the first UE sends the first PDCP data packet that is not successfully sent to the second UE in the cell mode and the subsequent PDCP data packet to the second UE in a D2D mode.
  • a further aspect of the embodiments of the present invention provides a user equipment, including:
  • a twelfth transmitting module configured to send a packet data convergence protocol PDCP data packet to the base station; and a ninth receiving module, configured to receive, by the base station, a handover instruction that is switched from the cell mode to the device through D2D mode;
  • a thirteenth sending module configured to send the first PDCP data packet that is not successfully sent to the second UE in the cell mode and the subsequent PDCP data packet to the second UE in a D2D mode.
  • Another aspect of the embodiments of the present invention further provides a data sending method, including:
  • the base station allocates a PDCP sequence number to the IP data packet sent by the gateway, so as to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet;
  • the base station sends, to the first UE, a handover instruction that is switched from the cell mode to the device through D2D mode, to indicate that the first UE is not successfully sent in the cell mode according to the handover instruction.
  • the PDCP data packet sent to the second UE and the subsequent PDCP data packet are sent to the second UE in a D2D mode.
  • a further aspect of the embodiments of the present invention provides a base station, including:
  • a thirteenth receiving module configured to receive a packet data convergence protocol PDCP data packet sent by the first user equipment UE, send the PDCP data packet sent by the first UE to the gateway, and receive the PDCP sent by the gateway according to the base station Internet Protocol IP data packet delivered by the data packet;
  • a second encapsulating module configured to allocate a PDCP sequence number to the IP data packet sent by the gateway, to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet;
  • a fourteenth sending module configured to send the re-encapsulated PDCP data packet to the second UE
  • a fifteenth sending module configured to send, to the first UE, a handover instruction that is switched from a cell mode to a device through D2D mode, to indicate that the first UE is not successful in the cell mode according to the handover instruction
  • the PDCP data packet sent to the second UE and the subsequent PDCP data packet are sent to the second UE in a D2D mode.
  • the first UE directly sends a data packet to the second UE, and when the base station sends the switching instruction from the D2D mode to the cell mode to the first UE, After the first UE starts transmitting data packets from the first unsuccessfully transmitted data packet to the second UE, the base station sends the data packet sent by the first UE to the gateway through the gateway, and then sends the data packet to the gateway.
  • the second UE thereby completing the handover of the first UE and the second UE from the D2D communication mode to the cell communication mode.
  • the first UE directly sends a PDCP data packet to the second UE, and after the base station sends a handover command from the D2D mode to the cell mode to the first UE, the first UE
  • the PDCP data packet is sent from the first UE to the second UE by using the first unsuccessfully transmitted PDCP data packet, and the base station directly forwards the PDCP data packet sent by the first UE to the second UE, thereby completing the first UE.
  • switching of the second UE from the D2D mode to the cell communication mode is
  • the first UE sends the PDCP data packet to the second UE by using the base station, and after the base station sends the handover command from the cell mode to the D2D mode to the first UE, The first UE starts to send the PDCP data packet to the second UE in the D2D mode from the first PDCP data packet that is not successfully transmitted to the second UE, thereby completing the switching between the first UE and the second UE from the cell mode to the D2D mode.
  • FIG. 1 is a flowchart of a data sending method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a data sending method according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a data receiving method according to an embodiment of the present invention.
  • FIG. 4A is a flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 4B is a schematic diagram of a PDCP data packet sent by a first UE to a second UE according to an embodiment of the present invention
  • FIG. 4C is a schematic diagram of a second UE receiving a PDCP data packet of a first UE according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of a data processing method according to another embodiment of the present invention.
  • FIG. 6 is a flowchart of a data processing method according to another embodiment of the present invention.
  • FIG. 7 is a flowchart of a data processing method according to another embodiment of the present invention.
  • FIG. 8 is a flowchart of a data processing method according to another embodiment of the present invention.
  • FIG. 9 is a flowchart of a data processing method according to another embodiment of the present invention.
  • FIG. 10 is a flowchart of a data processing method according to still another embodiment of the present invention.
  • FIG. 11 is a flowchart of a data sending method according to still another embodiment of the present invention.
  • FIG. 12 is a flowchart of a data sending method according to still another embodiment of the present invention.
  • FIG. 13 is a flowchart of a data sending method according to still another embodiment of the present invention.
  • FIG. 14 is a flowchart of a data sending method according to another embodiment of the present invention.
  • FIG. 15 is a flowchart of a data receiving method according to still another embodiment of the present invention.
  • 16 is a flowchart of a data processing method according to another embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of a UE according to an embodiment of the present invention.
  • FIG. 17B is a schematic structural diagram of a UE according to another embodiment of the present disclosure.
  • FIG. 18A is a schematic structural diagram of a base station according to an embodiment of the present invention
  • FIG. 18B is a schematic structural diagram of a base station according to another embodiment of the present disclosure
  • FIG. 19 is a schematic structural diagram of a UE according to another embodiment of the present invention.
  • FIG. 19B is a schematic structural diagram of a UE according to another embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of a UE according to another embodiment of the present invention.
  • FIG. 20B is a schematic structural diagram of a UE according to another embodiment of the present disclosure.
  • 21A is a schematic structural diagram of a base station according to another embodiment of the present invention.
  • 21B is a schematic structural diagram of a base station according to another embodiment of the present invention.
  • FIG. 22 is a schematic structural diagram of a UE according to another embodiment of the present invention.
  • FIG. 22B is a schematic structural diagram of a UE according to another embodiment of the present disclosure.
  • FIG. 23 is a schematic structural diagram of a base station according to another embodiment of the present invention.
  • FIG. 23B is a schematic structural diagram of a base station according to another embodiment of the present invention.
  • FIG. 24 is a schematic structural diagram of a UE according to another embodiment of the present invention.
  • FIG. 24B is a schematic structural diagram of a UE according to another embodiment of the present disclosure.
  • FIG. 25 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a data sending method according to an embodiment of the present invention. As shown in FIG. 1, the method of this embodiment includes:
  • Step 101 The first UE (user equipment) sends a data packet to the second UE in a device direct D2D mode.
  • This step 101 describes that the first UE and the second UE communicate in the D2D mode.
  • the Ud bearer is established between the first UE and the second UE.
  • the Ud bearer refers to a bearer established by the first UE and the second UE directly performing data transmission and reception.
  • the first UE After the Ud bearer is established, the first UE will use the Internet protocol in the communication service (Internet) The protocol packet is encapsulated into a corresponding data packet, and then the encapsulated data packet is directly sent to the second UE through the Ud link.
  • Internet Internet protocol
  • Step 102 The first UE receives a handover instruction sent by the base station to switch from the D2D mode to the cell mode.
  • the base station manages a communication process between the first UE and the second UE.
  • the base station sends a handover instruction to the first UE and/or the second UE.
  • the handover instruction is used to enable the first UE and the second UE to switch the communication mode used from the D2D mode to the cell mode.
  • a handover instruction is issued to the first UE and/or the second UE.
  • Step 103 The first UE sends the first data packet and the subsequent data packet that are not successfully sent to the second UE in the D2D mode to the base station.
  • the first data packet that is not successfully sent to the second UE is the data packet sent by the first UE that is not successfully received by the second UE, and is the first data packet that fails to be transmitted during the data transmission process.
  • the Uu bearer is a bearer established by the first UE or the second UE to perform data transmission and reception with the base station.
  • the process of establishing a Uu bearer with the base station by the first UE and the second UE respectively belongs to the prior art, and is not detailed herein.
  • the first UE starts sending, by the base station, the first UE to send the first data packet that is not successfully sent to the second UE and the subsequent data packet, starting from the first data packet that is not successfully sent to the second UE.
  • the first UE may directly send the data packet that has been encapsulated by the IP data packet to the base station, encapsulate the unpacked IP data packet, and then send the data packet to the base station. In the process, the first UE sends the data packet to the base station in order.
  • the base station After receiving the data packet sent by the first UE, the base station restores the data packet to an IP data packet, and then sends the data packet to the gateway, and the gateway processes the IP data packet, and then receives the processed IP data packet sent by the gateway, and then The IP data packet sent by the gateway is encapsulated into a corresponding data packet and sent to the second UE.
  • the base station may directly forward the data packet sent by the first UE to the second UE without reporting to the gateway.
  • the first and second UEs communicate using the D2D mode, when the first UE receives After the handover command sent by the base station, the first UE starts to send a data packet to the second UE through the base station from the first data packet that is not successfully sent to the second UE, and does not directly send the data packet to the second UE, and completes The switching from the D2D mode to the cell mode.
  • the data packet sent by the first UE to the second UE in the D2D mode specifically includes: the first UE sends a Packet Data Convergence Protocol (PDCP) data packet to the second UE in a D2D mode.
  • PDCP Packet Data Convergence Protocol
  • the first data packet that is not successfully sent to the second UE and the subsequent data packet include: a first PDCP data packet that is not successfully sent to the second UE and a subsequent PDCP data packet.
  • the first PDCP data packet that is not successfully sent to the second UE includes the PDCP data packet that is received by the second UE but has an error. Also included is a PDCP packet that the second UE does not receive. Both the first UE and the second UE can learn the PDCP data packet sent by the first UE that is not successfully sent to the second UE or the PDCP data packet sent by the first UE that is not successfully received by the second UE. Specifically, the second UE may feed back the receiving state of the PDCP data packet to the first UE when receiving the mode switching command.
  • the subsequent PDCP data packet may include all PDCP data packets after the first PDCP data packet that is not successfully sent to the second UE, that is, after the first PDCP data packet that is not successfully sent to the second UE.
  • the subsequent PDCP data packet includes a PDCP data packet that is not successfully sent to the second UE after the first PDCP data packet that is not successfully sent to the second UE, that is, the first one is not successfully sent to the second UE.
  • the PDCP data packet sent to the second UE after the PDCP data packet but not successfully transmitted to the second UE and the PDCP data packet that has not been sent to the second UE ie, the PDCP data from the first unsuccessfully transmitted to the second UE
  • the following is an example in which the first UE sends a PDCP data packet, and the base station receives the first UE.
  • the processing flow of the PDCP data packet after receiving the PDCP data packet sent by the first UE, the base station decapsulates the PDCP data packet to obtain the IP data packet, and then sends the decapsulated IP data packet to the gateway in order for the base station to provide The gateway performs traffic statistics, charging, and the like on the communication between the first UE and the second UE. Then, the base station receives the IP data packet sent by the gateway, and re-encapsulates the IP data packet delivered by the gateway into a PDCP data packet, and then sends the data packet to the second UE.
  • the base station After receiving the PDCP data packet, the base station decapsulates the PDCP data packet, and then sends the decapsulated IP data packet to the gateway, so in the embodiment of the present invention, the "base station will be the PDCP.
  • the data packet is sent to the gateway.
  • the base station sends the IP data packet decapsulated from the PDCP data packet to the gateway.
  • the PDCP sequence number of the PDCP data packet can ensure the sequential transmission of the PDCP data packet.
  • the 3 ⁇ 4L base station allocates a PDCP sequence number to the IP data packet sent by the gateway, so that the PDCP data packet can be sent to the second UE in order.
  • the first UE communicates with the second UE by using the D2D mode.
  • the first UE may send the PDCP data from the first unsuccessfully sent to the second UE.
  • the packet starts to send the PDCP data packet to the second UE through the base station, and does not directly send the PDCP data packet to the second UE, and completes the handover from the D2D mode to the cell mode.
  • FIG. 2 is a flowchart of a data sending method according to another embodiment of the present invention. As shown in FIG. 2, the method of this embodiment includes:
  • Step 201 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE, to instruct the first UE to switch from sending the data packet to the second UE in the D2D mode to sending the data packet to the second UE by using the base station.
  • the first UE Prior to this, the first UE directly transmits the PDCP data packet to the second UE in the D2D mode.
  • the base station detects a communication process between the first UE and the second UE.
  • the base station finds that the first UE and the second UE need to communicate through the base station, that is, when the cell mode needs to be used, the handover instruction is sent to the first UE and/or the second UE.
  • the handover instruction is used to enable the first UE and the second UE to switch the communication mode used from the D2D mode to the cell mode, even if the first UE switches from transmitting the PDCP packet directly to the second UE to pass the
  • the base station transmits a PDCP data packet to the second UE.
  • Step 202 The base station receives, by the first UE, a PDCP data packet that is first successfully sent by the first UE to the second UE and a subsequent PDCP data packet in the D2D mode.
  • the first UE starts to send the PDCP data packet to the second UE by using the base station from the first PDCP data packet that is not successfully sent to the second UE.
  • the PDCP data packet that is not successfully sent by the first UE to the second UE is the PDCP data packet sent by the first UE that is not successfully received by the second UE.
  • the PDCP data packet sent by the first UE that is not successfully received by the second UE includes the second UE receiving but the error occurs.
  • the erroneous PDCP data packet also includes the PDCP data packet that the second UE does not receive.
  • the first UE and the second UE may be aware of the PDCP data packet sent by the first UE that is not successfully sent to the second UE by the first UE or the PDCP data packet sent by the first UE that is not successfully received by the second UE.
  • the subsequent PDCP data packet includes all PDCP data packets after the first PDCP data packet that is not successfully sent to the second UE, or is not successfully sent after the first PDCP data packet that is not successfully sent to the second UE.
  • PDCP packet of the second UE includes all PDCP data packets after the first PDCP data packet that is not successfully sent to the second UE, or is not successfully sent after the first PDCP data packet that is not successfully sent to the second UE.
  • the first UE and the second UE respectively establish a Uu bearer with the base station. Then, the first UE sends a PDCP data packet to the base station through the Uu bearer between the first UE and the base station.
  • the establishment process of the Uu bearer belongs to the prior art and will not be described in detail herein.
  • Step 203 The base station sends the PDCP data packet sent by the first UE to the gateway, and receives the IP data packet sent by the gateway, and then allocates a PDCP sequence number to the IP data packet sent by the gateway to re-encapsulate the IP data packet delivered by the gateway. For PDCP packets.
  • the base station After receiving the PDCP data packet sent by the first UE, the base station decapsulates the PDCP data packet to obtain an IP data packet, and then sends the decapsulated IP data packet to the gateway for the gateway in the order that the first UE sends the PDCP data packet. Performing traffic statistics, charging, and the like on the communication between the first UE and the second UE.
  • the base station receives the IP data packet delivered by the gateway according to the received IP data packet sent by the base station.
  • the order in which the gateway sends IP data packets to the base station is independent of the order in which the base station sends IP data packets to the gateway device.
  • the IP packets sent by the gateway to the base station are the same as the IP packets sent by the base station to the gateway.
  • the base station encapsulates the IP data packet delivered by the gateway into a PDCP data packet.
  • the base station needs to allocate a PDCP serial number to the IP data packet.
  • Step 204 The base station sends the re-packaged PDCP data packet to the second UE.
  • the base station After the base station encapsulates the IP data packet sent by the gateway into a PDCP data packet, it will be repackaged into
  • the PDCP data packet is sent to the second UE.
  • the base station sends the PDCP data packet to the second UE by using the Uu bearer between the base station and the second UE.
  • the base station when the base station detects that the cell mode needs to be used for communication between the first UE and the second UE, the base station sends a handover instruction to the first UE, and the first UE switches from the D2D mode to the cell mode according to the handover instruction, that is, The base station sends PDCP data to the second UE, thereby completing the first UE and The communication mode of the second UE is switched from the D2D mode to the cell mode.
  • FIG. 3 is a flowchart of a data receiving method according to an embodiment of the present invention. As shown in FIG. 3, the method of this embodiment includes:
  • Step 301 The second UE receives the PDCP data packet directly sent by the first UE.
  • This step 301 describes that the first UE and the second UE communicate using the D2D mode. That is, a Ud bearer is established between the first UE and the second UE, and the first UE directly sends a PDCP data packet to the second UE through the Ud bearer between the first UE and the second UE. Correspondingly, the second UE receives the PDCP data packet directly sent by the first UE by using the Ud link between the second UE and the first UE.
  • the PDCP data packet is received according to the PDCP sequence number of the PDCP data packet. If, during the data receiving process, the second UE finds that there is a PDCP data packet or an RLC data packet that is not successfully received (for example, a PDCP data packet or a lost PDCP data packet or an RLC data packet), the second UE may A UE feeds back, or sends a packet loss retransmission request, and the first UE retransmits the PDCP data packet or the RLC data packet that the second UE fails to receive according to the feedback or the packet loss retransmission request of the second UE. Specifically, before the mode switching occurs (that is, during the normal D2D direct transmission process), the first UE retransmits the PDCP data packet or the RLC data packet to the second UE, which is not limited in the embodiment of the present invention.
  • Step 302 The second UE receives the PDCP data packet sent by the base station.
  • the PDCP data packet sent by the base station to the second UE is the first one of the first UE that is sent by the first UE is not successfully sent to the second UE after the base station sends the handover command that is switched from the D2D mode to the cell mode to the first UE.
  • the PDCP data packet and the subsequent PDCP data packet are sent to the gateway and the gateway repackages the IP data packet delivered according to the PDCP data packet sent by the base station.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE fails to be sent to the second UE's PDCP data packet, or includes the first UE that is not successfully sent to the second UE.
  • the PDCP data packet of the UE is not successfully transmitted to the PDCP data packet of the second UE.
  • the step 302 is mainly to describe a communication process after the communication mode between the first UE and the second UE is switched from the D2D mode to the cell mode from the perspective of the second UE.
  • the first UE In the cell mode, the first UE first sends the PDCP data packet to the base station, and after further processing by the base station and the gateway, the base station sends the signal to the second UE.
  • the communication mode between the first UE and the second UE is mainly controlled by the base station.
  • the base station finds that the cell mode needs to be used for communication between the first UE and the second UE, the base station sends the first UE and/or Or the second UE sends a handover instruction, and the first UE switches from transmitting the PDCP data packet directly to the second UE in the D2D mode according to the handover instruction to send the PDCP data packet to the second UE by using the base station.
  • the process of the first UE transmitting the PDCP data packet to the second UE by using the base station is: the first UE starts from the first PDCP data packet that is not successfully sent to the second UE, and the first UE is unsuccessful.
  • the PDCP data packet sent to the second UE is sent to the base station, and the base station decapsulates the PDCP data packet sent by the first UE to obtain an IP data packet, and then sends the IP data packet to the base station according to the first UE to send the PDCP data packet.
  • the sequence is sent to the gateway; the gateway performs traffic statistics, charging, and the like on the communication between the first UE and the second UE according to the IP data packet sent by the base station, and then delivers the IP data packet to the base station.
  • the order in which the gateway sends each IP data packet to the base station and the sequence in which the base station sends each IP data packet to the gateway are independent of each other.
  • the base station allocates a PDCP sequence number to the IP data packet sent by the gateway to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet, and finally sends the re-packaged PDCP data packet to the second UE.
  • the second UE first receives the PDCP data packet directly sent by the first UE, and when the communication mode between the first UE and the second UE is switched from the D2D mode to the cell mode, the second UE receives the first UE.
  • the second UE cooperates with the first UE to provide a condition for switching the communication mode between the first UE and the second UE by using the PDCP data packet sent by the base station to the second UE, so that the communication between the first UE and the second UE is performed.
  • the mode can be switched from D2D mode to cell mode.
  • the handover procedure of the communication mode between the first UE and the second UE is also a problem of resolving PDCP packet forwarding.
  • the first UE transmits the PDCP data packet to the base station according to a certain PDCP sequence number sequence, and the base station sends the PDCP data packet to the base station in sequence according to a certain PDCP sequence number.
  • the use of the Uu bearer with the second UE to transmit the PDCP data packets to the second UE in sequence according to a certain PDCP sequence number is independent of each other. Therefore, the sequence of the IP data packets sent by the base station to the gateway and the gateway are sent to the base station.
  • the order of IP packets is also independent.
  • the PDCP sequence number of the PDCP data packet sent by the first UE to the base station and the PDCP sequence number of the PDCP data packet sent by the base station to the second UE, and the two PDCP data packets with the same PDCP sequence number.
  • the included IP packets are not necessarily the same. In this way, when the PDCP sequence number of the PDCP data packet sent by the first UE received by the second UE is the same as the PDCP sequence number of the PDCP data packet sent by the received base station, packet loss may occur. Due to the needs of certain services, the packet loss rate of the data packet is very sensitive. Therefore, how to ensure that the data packet is not lost or the data packet is guaranteed during the communication mode switching process.
  • the following embodiments of the present invention provide a method for further ensuring that no packet loss or packet loss rate is minimized while the communication mode between the first UE and the second UE is switched from the D2D mode to the cell mode. .
  • FIG. 4A is a flowchart of a data processing method according to an embodiment of the present invention. As shown in FIG. 4A, the method in this embodiment includes:
  • Step 401 The first UE directly sends a PDCP data packet to the second UE.
  • This step 401 can be referred to the description of step 101.
  • Step 402 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE.
  • the first UE receives the handover instruction sent by the base station.
  • This step 402 can be seen in the description of step 201 and step 102.
  • Step 403 The second UE sends the PDCP data packet successfully received after the PDCP data packet sent by the first UE that is not successfully received by the first UE to the first UE, and will be the first one that is not successfully received.
  • the PDCP packet successfully received after the PDCP packet sent by the UE is deleted.
  • the first UE if the first UE successfully sends the PDCP data packet to the second UE, for example, the first UE receives the acknowledgement (Ack) information returned by the second UE, the first UE deletes the PDCP data packet from the cache, so that To improve the utilization of storage space.
  • the second UE In order to prevent the first UE from acquiring the PDCP data packet that has been successfully sent to the second UE after the first unsuccessfully transmitted to the second UE, the second UE will be successfully received in the first one in this embodiment.
  • the PDCP data packet successfully received after the PDCP data packet sent by the first UE is returned to the first UE, thus ensuring that the first UE can successfully acquire the first PDCP data packet that is not successfully sent to the second UE.
  • PDCP packet if the first UE successfully sends the PDCP data packet to the second UE, for example, the first UE receives the acknowledgement (Ack) information returned by the second UE, the first UE deletes the
  • the PDCP packet that is successfully received by the second UE after the PDCP packet sent by the first UE that is not successfully received by the first UE is deleted to avoid repeated reception of the data packet.
  • This embodiment illustrates, by way of illustration, a PDCP data packet that is first successfully sent by the first UE to the second UE, and a PDCP data packet sent by the first UE that is not successfully received by the second UE, and subsequent PDCP data.
  • the relationship between the packages As shown in FIG. 4B, the PDCP data packet is sent to the second UE in sequence for the first UE.
  • the PDCP data packet indicated by the dashed box refers to the first PDCP data packet that the first UE fails to send to the second UE, and the PDCP sequence number is 3.
  • the PDCP data packet sent by the first UE is received in order for the second UE.
  • the PDCP data packet indicated by the dashed box is the PDCP data packet sent by the first UE that is not successfully received by the second UE, and the serial number is 3, and the PDCP data packet shown by the solid line box above the dotted line frame.
  • the PDCP sequence numbers are 4, 5, and 6, respectively.
  • the PDCP sequence numbers of the PDCP packets shown in the solid line box below the dotted box are 1, 2, respectively.
  • the PDCP data packet with the PDCP sequence number of 4, 5, and 6 is the PDCP data packet of the first UE successfully received by the second UE after failing to successfully receive the PDCP data packet with the PDCP sequence number 3.
  • the second UE needs to return the received PDCP sequence number of the PDCP sequence number 4, 5, 6 to the first UE after the PDCP sequence number of the PDCP sequence number 3, and delete the PDCP sequence number as 4, 5, 6 PDCP packets.
  • the first UE needs to send a PDCP data packet from the PDCP sequence number 3 to the second UE starting from the PDCP sequence number of the PDCP sequence number 3, that is, the PDCP sequence number is 3, and then all the PDCP data packets are sent to the second UE through the base station.
  • Step 404 The first UE sends a PDCP sequence number of the first PDCP data packet that is not successfully sent to the second UE to the base station.
  • Step 405 The first UE starts to send the first PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, starting from the first PDCP data packet that is not successfully sent to the second UE.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE fails to be sent to the second UE's PDCP data packet.
  • Step 406 The base station receives the PDCP data packet sent by the first UE, and decapsulates the received PDCP data packet to obtain an IP data packet.
  • Step 407 The base station sends the IP data packet to the gateway in the order that the first UE sends the PDCP data packet to the base station.
  • Step 408 The gateway processes the IP data packet sent by the base station, and then sends the IP data packet to the base station.
  • Step 409 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE to re-encapsulate the IP data packet delivered by the gateway. For PDCP packets.
  • the first UE sends a PDCP with a PDCP sequence number of 3, 4, 5, 6 to the base station.
  • the data packet, and the IP sequence number of the IP data packet included in the PDCP data packet is 6, 7, 8, and 9, and the base station sequentially sends the IP data packets with the IP sequence numbers 6, 7, 8, and 9 to the gateway. .
  • step 408 it is assumed that the IP data packets sent by the gateway to the base station in sequence are IP data packets with IP sequence numbers 8, 9, 7, and 6.
  • the PDCP sequence number of the first PDCP packet that is not successfully sent by the first UE to the second UE is 3.
  • the base station sequentially assigns PDCP sequence numbers 3, 4, 5, and 6 to the IP data packets with IP sequence numbers 8, 9, 7, and 6.
  • the second UE receives the data packets in sequence according to the PDCP sequence number.
  • the PDCP sequence number will be received as 3, 4, 5, 6, and the IP sequence numbers are 8, 9, 7, and 6 packets in sequence.
  • the base station allocates a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE, and sends the IP address to the gateway.
  • the data packet is encapsulated into a PDCP data packet, and the PDCP sequence number of the re-packaged PDCP data packet may be consecutive with the PDCP sequence number of the PDCP data packet that the first UE has successfully transmitted to the second UE, instead of The PDCP sequence number of the PDCP data packet that the UE has successfully sent to the second UE conflicts, thereby laying a foundation for solving the problem that the second UE causes the PDCP data packet to be lost due to the PDCP sequence number collision discarding the PDCP data packet.
  • the IP data packet parsed by the base station from the PDCP data packet sent by the first UE, or the IP data packet sent by the gateway to the base station, is actually the IP that the first UE has not successfully sent to the second UE. data pack.
  • Step 410 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 411 The second UE receives the PDCP data packet sent by the base station according to the PDCP data packet sent by the first UE that has been successfully received.
  • the second UE continues to receive the PDCP data packet sent by the base station based on the PDCP data packet that has been successfully received by the first UE. For example, the second UE uses the same data buffer queue to store the PDCP data packet sent by the base station and the PDCP data packet sent by the first UE. Taking FIG. 4C as an example, the second UE sequentially places the received PDCP data packets with the PDCP sequence numbers 3, 4, 5, and 6 into the dotted line frame and the three solid line frames above it. Then, the second UE performs subsequent processing according to each PDCP data packet shown in FIG. 4C.
  • the second UE returns the correctly received PDCP data packet after the PDCP data packet sent by the first UE that is not correctly received, to the first UE, so that the first UE can be configured. Transmitting, by the first PDCP data packet that is not sent to the second UE, the PDCP data packet is sent by the base station to the second UE; the first UE sends the PDCP sequence number of the first PDCP data packet that is not successfully sent to the second UE.
  • the base station Sending, to the base station, the base station from the PDCP sequence number to allocate a PDCP sequence number to the IP data packet that the first UE has not sent to the second UE, so that the second UE can correctly receive the PDCP data packet sent by the base station, and the first UE and the first UE are completed.
  • the switching of the communication mode of the second UE from the D2D mode to the cell mode does not conflict with the PDCP data packet sent by the first UE that has been successfully received, ensuring that packet loss does not occur during the communication mode switching process or Reduced packet loss rate.
  • FIG. 5 is a flowchart of a data processing method according to another embodiment of the present invention. As shown in FIG. 5, the method of this embodiment includes:
  • Step 501 The first UE directly sends a PDCP data packet to the second UE.
  • This step 501 can be referred to the description of step 101.
  • Step 502 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE, where the first UE receives the handover instruction sent by the base station.
  • This step 502 can be referred to the description of step 201 and step 102.
  • Step 503 The second UE sends the PDCP data packet successfully received after the PDCP data packet sent by the first UE that is not successfully received by the first UE to the first UE, and will be the first one that is not successfully received.
  • the PDCP packet successfully received after the PDCP packet sent by the UE is deleted.
  • This step 503 can be referred to the description of step 403.
  • Step 504 The second UE sends the PDCP sequence number of the PDCP data packet sent by the first UE that is not successfully received to the base station.
  • the second UE sends the PDCP sequence number of the PDCP packet sent by the first UE that is not successfully received to the base station, so that the base station allocates the IP data packet sent by the gateway based on the PDCP sequence number.
  • PDCP serial number the PDCP serial number.
  • the PDCP sequence number sent by the first UE that is not successfully received by the second UE is the same as the PDCP data packet of the first UE that is not successfully sent to the second UE, and the PDCP sequence numbers of the two UEs are also the same.
  • step 503 and step 504 is not limited.
  • Step 505 The first UE sends, from the first PDCP data packet that is not successfully sent to the second UE, the first PDCP data packet that is not successfully sent to the second UE, and the subsequent PDCP data packet.
  • Base station The first UE sends, from the first PDCP data packet that is not successfully sent to the second UE, the first PDCP data packet that is not successfully sent to the second UE, and the subsequent PDCP data packet.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE fails to be sent to the second UE's PDCP data packet.
  • Step 506 The base station receives the PDCP data packet sent by the first UE, and decapsulates the received PDCP data packet to obtain an IP data packet.
  • Step 507 The base station sends the IP data packet to the gateway in the order that the first UE sends the PDCP data packet to the base station.
  • Step 508 The gateway processes the IP data packet sent by the base station, and then sends the IP data packet to the base station.
  • Step 509 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE to re-encapsulate the IP data packet delivered by the gateway. For PDCP packets.
  • Step 510 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 511 The second UE receives the PDCP data packet sent by the base station according to the PDCP data packet sent by the first UE that has been successfully received.
  • This embodiment is similar to the embodiment shown in FIG. 4A, and has the same technical effect, which completes the switching of the communication mode between the first UE and the second UE from the D2D mode to the cell mode, and does not cause the base station to send to the first
  • the PDCP data packet of the two UEs is in conflict with the PDCP data packet sent by the first UE that has been successfully received, ensuring that no packet loss occurs during the communication mode switching process or the packet loss rate is minimized.
  • FIG. 6 is a flowchart of a data processing method according to another embodiment of the present invention. As shown in FIG. 6, the method of this embodiment includes:
  • Step 601 The first UE directly sends a PDCP data packet to the second UE.
  • This step 601 can be referred to the description of step 101.
  • Step 602 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE.
  • the first UE receives the handover instruction sent by the base station.
  • This step 602 can be referred to the description of step 201 and step 102.
  • Step 603 The second UE sends the PDCP data packet successfully received after the PDCP data packet sent by the first UE that is not successfully received by the first UE to the first UE, and will be the first one that is not successfully received.
  • the PDCP packet successfully received after the PDCP packet sent by the UE is deleted. This step 603 can be referred to the description of step 403.
  • Step 604 The first UE performs a PDCP reset, that is, resets a PDCP sequence number of a PDCP data packet that is not successfully sent to the second UE and a subsequent PDCP data packet.
  • the first UE and the second UE and the base station pre-arrange that, when the mode switching is performed, the first UE starts from the first PDCP data packet that is not successfully sent to the second UE, and the first UE is the first one.
  • the PDCP sequence number of the PDCP data packet and the subsequent data packet that were not successfully sent to the second UE are reset, that is, the PDCP sequence number is reconfigured for these PDCP data packets from 0.
  • the second UE also performs a PDCP reset, that is, the second UE separately receives the PDCP data packet sent by the first UE through the base station as a new PDCP data packet, and therefore, does not receive the received The PDCP packet sent by the first UE conflicts.
  • the first UE resets the PDCP sequence number of the PDCP packet whose original PDCP sequence number is 3, 4, 5, 6 to 0, 1, 2, 3.
  • the second UE receives the PDCP data packet sent by the base station
  • the second UE separately receives and uses another storage space to store the received PDCP data packet, that is, the second UE uses other storage spaces than shown in FIG. 4C.
  • the second UE simultaneously performs traffic processing based on the PDCP data packet in the storage space shown in Fig. 4C and the PDCP data packet in the storage space other than that shown in Fig. 4C.
  • Step 605 The first UE starts to send the PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, starting from the first PDCP data packet that is not successfully sent to the second UE.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE fails to be sent to the second UE's PDCP data packet.
  • Step 606 The base station receives the PDCP data packet sent by the first UE, and decapsulates the received PDCP data packet to obtain an IP data packet.
  • Step 607 The base station sends the IP data packet to the gateway in the order that the first UE sends the PDCP data packet to the base station.
  • Step 608 The gateway processes the IP data packet sent by the base station, and then sends the IP data packet to the base station.
  • step 605-step 608 can be referred to the description of step 405-step 408.
  • Step 609 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number 0 to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • Step 610 The base station sends the re-encapsulated PDCP data packet to the second UE.
  • Step 611 The second UE uses the PDCP data packet sent by the base station as the new service data, and independently receives and stores the PDCP data packet sent by the base station.
  • the second UE since the first UE resets the PDCP sequence number of the PDCP data packet that needs to be sent later, the second UE separately receives and stores the PDCP data sent by the first UE through the base station as new service data. package.
  • the second UE is different from the PDCP data packet directly sent by the first UE and the PDCP data packet sent by the base station on the receiving and storing, when performing the service processing, the second UE simultaneously uses the two parts of the PDCP data.
  • the package is processed.
  • the first UE enables the second UE to transmit the PDCP data sent by the base station by resetting the first PDCP data packet that is not successfully sent to the second UE and the PDCP sequence number of the subsequent PDCP data packet.
  • the packet is independently received and stored as new service data, which completes the switching between the D2D mode and the cell mode of the communication mode with the first UE, and avoids the PDCP data packet sent by the first UE that has been successfully received. The conflict ensures that no packet loss or packet loss rate is minimized during the communication mode switching process.
  • FIG. 7 is a flowchart of a data processing method according to still another embodiment of the present invention. As shown in FIG. 7, the method of this embodiment includes:
  • Step 701 The first UE directly sends a PDCP data packet to the second UE.
  • This step 701 can be referred to the description of step 101.
  • Step 702 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE.
  • the first UE receives the handover instruction sent by the base station.
  • This step 702 can be referred to the description of step 201 and step 102.
  • Step 703 The first UE starts sending, by the first UE, the PDCP data packet that is not successfully sent to the second UE, and sends the first PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, and The first PDCP data packet not transmitted to the second UE is transmitted to the base station together with the PDCP sequence number of the PDCP data packet that has been subsequently transmitted to the second UE but not successfully transmitted to the second UE.
  • the subsequent PDCP data packet includes a PDCP data packet that is not successfully sent to the second UE after the first UE fails to send the PDCP data packet to the second UE.
  • the first UE starts from the first PDCP data packet that is not successfully sent to the second UE, and sends the first PDCP data packet that is not successfully sent to the second UE and subsequently sent to the second UE.
  • the PDCP data packet that was not successfully sent to the second UE and the PDCP data packet that has never been sent to the second UE are sent to the second UE.
  • the subsequent PDCP data packet described in this embodiment includes the PDCP data packet that the first UE fails to send to the second UE after the first one is successfully sent to the second UE but is not successfully sent to the second UE.
  • the PDCP data packet sent by the first UE to the second UE but not successfully sent to the second UE after the first unsuccessfully transmitted to the second UE is the first unsuccessful reception of the second UE.
  • the PDCP data packet and the PDCP data packet with the largest PDCP sequence number (or the highest count (COUNT) value) successfully received by the second UE are those PDCP data packets that are not successfully received by the second UE.
  • the first UE transmits the first PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, and sends the first PDCP that is not successfully sent to the second UE.
  • the sequence number and the superframe number are sent to the base station together, and the purpose is to enable the base station to transmit the first data packet of the PDCP that is not successfully sent to the second UE and the PDCP that has been sent to the second UE but has not been successfully sent to the second UE.
  • the PDCP sequence number or the sequence number and the superframe number of the data packet are encapsulated in the first UE, the first packet of the PDCP that was not successfully sent to the second UE, and subsequently sent to the second UE but not successfully sent to the second UE.
  • the IP data packet in the PDCP data packet is sent to the gateway, and receives the IP data packet sent by the gateway, including the PDCP serial number or the serial number and the super frame number, so as to facilitate the PDCP sequence carried according to the IP data packet.
  • the serial number or the serial number and the super frame number are assigned to the IP data packet delivered by the gateway.
  • the first UE sends the PDCP sequence number 3 to the base station while transmitting the PDCP sequence number of the PDCP data packet to the base station.
  • the PDCP data packets whose subsequent PDCP sequence numbers are 4, 5, 6, 7, 8, etc., since the first UE has successfully transmitted to the second UE or has never sent the PDCP data packet to the second UE, it is not required.
  • the first UE may be at the end.
  • the PDCP data packet sent by the first UE that is subsequently received by the base station is a data packet that the first UE has successfully sent to the second UE or a PDCP data packet that has never been sent to the second UE. As shown in FIG. 4B and FIG.
  • the first UE since only the PDCP data packet with the PDCP sequence number 3 is the PDCP data packet that the first UE sends to the second UE but is not successfully sent to the second UE, the first UE may The indication information is encapsulated in a PDCP packet whose PDCP sequence number is 3.
  • Step 704 The base station receives the PDCP data packet sent by the first UE, and receives the PDCP data packet sent by the first UE that is not successfully sent by the first UE to the second UE, and has been sent to the second UE but not yet.
  • the PDCP sequence number or sequence number and superframe number of the PDCP packet successfully transmitted to the second UE.
  • the base station not only receives the PDCP data packet that is not successfully sent by the first UE to the second UE, but also the PDCP data packet that has been sent to the second UE but is not successfully sent to the second UE.
  • These PDCP packets also receive the PDCP sequence number or sequence number and superframe number of these PDCP packets.
  • Step 705 The base station decapsulates the received PDCP data packet to obtain an IP data packet, and sends a PDCP data packet that is sent by the first UE to the first UE that is not successfully sent to the second UE, and subsequently sent to the second UE.
  • the PDCP sequence number of the PDCP data packet that is not successfully sent to the second UE is encapsulated in the IP data packet of the first UE that is not successfully sent to the PDCP data packet of the second UE, and has been subsequently sent to the second UE.
  • the IP data packet in the PDCP data packet that is not successfully sent to the second UE is sent to the gateway in the order in which the first UE sends the PDCP data packet to the base station.
  • the base station sends the PDCP data packet that is not successfully sent by the first UE to the second UE and is subsequently sent to the second UE but is not successfully sent to the second UE (ie, the second UE is unsuccessful)
  • the PDCP sequence number of the received PDCP packet is encapsulated in an IP packet decapsulated by these PDCP packets and then sent to the gateway.
  • the base station directly sends the decapsulated IP data packet to the gateway in the order that the first UE sends the PDCP data packet to the base station.
  • Step 706 The gateway processes the IP data packet sent by the base station, and then re-IP the IP data packet. Issued to the base station.
  • the IP packet is processed in the same manner as the IP packet carries the PDPC sequence number or the serial number and the superframe number, and is sent to the base station after the processing ends. If the IP data packet itself carries the PDCP sequence number or the serial number and the super frame number, the IP data packet sent by the gateway to the base station carries the PDCP serial number or the serial number and the super frame number, if the IP data packet itself does not carry the PDCP sequence. The number or serial number and superframe number, the IP data packet sent by the gateway to the base station does not carry the PDCP serial number.
  • Step 707 The base station allocates a PDCP sequence number to each IP data packet sent by the gateway according to the PDCP sequence number carried by the gateway, and carries the PDCP sequence number or the serial number and the super-frame number of the IP data packet.
  • the IP packets are repackaged into PDCP packets.
  • the base station allocates the IP data packet by the PDCP sequence number carried in the IP data packet carrying the PDCP sequence number, and continues to allocate the PDCP sequence to other IP data packets that do not carry the PDCP sequence number according to the sequence of the allocated PDCP sequence number. number.
  • Step 708 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 709 The second UE receives the PDCP data packet sent by the base station according to the PDCP data packet sent by the first UE that has been successfully received.
  • the first UE provides the PDCP sequence number of the PDCP data packet that is not successfully sent to the second UE and the PDCP data packet that has been sent to the second UE but is not successfully received by the second UE.
  • the base station is configured to enable the base station to encapsulate the PDCP sequence numbers in the corresponding IP data packets, and send the IP data packets sent by the gateway according to the PDCP sequence number carried by the IP data packet carrying the PDCP sequence number after the gateway sends the IP data packet.
  • the packet is allocated with the PDCP sequence number, so that the PDCP sequence number is allocated according to the data, and the PDCP sequence number of the PDCP data packet that the first UE has successfully sent to the second UE is avoided, thereby achieving the switching of the communication mode. It also ensures that no packet loss or packet loss rate is minimized during the communication mode switching process.
  • FIG. 8 is a flowchart of a data processing method according to another embodiment of the present invention. As shown in FIG. 8, the method of this embodiment includes:
  • Step 801 The first UE directly sends a PDCP data packet to the second UE.
  • This step 801 can be referred to the description of step 101.
  • Step 802 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE.
  • the first UE receives the handover instruction sent by the base station.
  • This step 802 can be referred to the description of step 201 and step 102.
  • Step 803 The second UE sends the PDCP data packet successfully received after the PDCP data packet sent by the first UE that is not successfully received by the first UE to the first UE, and the first UE that is not successfully received in the first UE The PDCP packet successfully received after the transmitted PDCP packet is deleted.
  • This step 803 can be referred to the description of step 403.
  • Step 804 The first UE starts to send the PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, starting from the first PDCP data packet that is not successfully sent to the second UE.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE fails to be sent to the second UE's PDCP data packet.
  • This step 804 can be referred to the description of step 405.
  • Step 805 The base station receives the PDCP data packet sent by the first UE, and records the PDCP sequence number of the first PDCP data packet sent by the first UE to the base station.
  • the first PDCP data packet sent by the first UE to the base station is also The first PDCP packet that the UE did not successfully send to the second UE.
  • the base station decapsulates the first PDCP data packet sent by the first UE to the base station, and obtains the PDCP sequence number of the first PDCP data packet, instead of sending the first UE or the second UE to the first UE or the second UE.
  • the base station helps to reduce the interaction process.
  • Step 806 The base station decapsulates the received PDCP data packet to obtain an IP data packet
  • the IP data packet is transmitted to the gateway in the order in which the first UE transmits the PDCP data packet to the base station.
  • Step 807 The gateway processes the IP data packet sent by the base station, and then sends the IP data packet to the base station.
  • Step 808 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE to re-encapsulate the IP data packet delivered by the gateway. For PDCP packets.
  • the PDCP sequence number of the first PDCP packet that is not successfully sent by the first UE to the second UE is the PDCP sequence number of the first PDCP data packet sent by the first UE to the base station.
  • Step 809 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 810 The second UE is configured according to the PDCP data packet sent by the first UE that has been successfully received. Receiving PDCP data packets sent by the base station.
  • This embodiment is similar to the embodiment shown in FIG. 4A. The difference is that the base station acquires the PDCP sequence number of the PDCP packet that is not successfully sent by the first UE to the second UE. The other steps are as shown in FIG. 4A. A description of the embodiments is shown.
  • the switching between the D2D mode and the cell mode of the communication mode between the first UE and the second UE is completed, and the PDCP data packet sent by the base station to the second UE and the first UE that has been successfully received are not obtained.
  • the transmitted PDCP packet transmission conflict ensures that packet loss does not occur during the communication mode switching process or the packet loss rate is minimized.
  • FIG. 9 is a flowchart of a data processing method according to still another embodiment of the present invention. As shown in FIG. 9, the method of this embodiment includes:
  • Step 901 The first UE directly sends a PDCP data packet to the second UE.
  • Step 902 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE.
  • the first UE receives the handover instruction sent by the base station.
  • Step 903 The first UE starts to send the PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, starting from the first PDCP data packet that is not successfully sent to the second UE.
  • the subsequent PDCP data packet includes PDCP data that has been sent to the second UE but not successfully sent to the second UE after the first UE fails to send the PDCP data packet to the second UE.
  • Step 904 The base station receives the PDCP data packet sent by the first UE, decapsulates the received PDCP data packet, and obtains the IP data packet, and records the PDCP sequence number of the PDCP data packet sent by the first UE and the PDCP sent by the first UE. The correspondence between the IP serial numbers of IP packets in the data packet.
  • the base station decapsulates the PDCP data packet to obtain an IP data packet, and simultaneously records the PDCP sequence number of the PDCP data packet and the IP address of the decapsulated IP data packet. Correspondence between the serial numbers, so that the PDCP serial number is assigned to the IP data packet sent by the gateway based on the corresponding relationship.
  • the first UE sends the PDCP sequence number to the base station as 3, 4, 5, 6, wherein the IP sequence number of the IP data packet is 6, 7, 8, and 9 as an example, the base station records the PDCP sequence number 3 and the IP address.
  • the base station records the PDCP sequence number 3 and the IP address.
  • Step 905 The base station sends the IP data packet to the gateway in the order that the first UE sends the PDCP data packet to the base station.
  • Step 906 The gateway processes the IP data packet sent by the base station, and then sends the IP data packet to the base station.
  • Step 907 The base station allocates a corresponding PDCP sequence number to the IP data packet sent by the gateway according to the recorded correspondence relationship, so as to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the base station finds the PDCP sequence number corresponding to the same IP sequence number in the recorded correspondence relationship according to the IP sequence number of the IP data packet sent by the gateway, and then allocates the found PDCP sequence number for the IP data packet, so that the base station and the A UE allocates the same PDCP sequence number for the same IP data packet.
  • the base station allocates PDCP sequence numbers 3, 4, 5, and 6 for IP packets with IP sequence numbers 6, 7, 8, and 9, respectively.
  • Step 908 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 909 The second UE receives the PDCP data packet sent by the base station according to the PDCP data packet sent by the first UE that has been successfully received.
  • the base station records the correspondence between the PDCP sequence number of the PDCP data packet sent by the first UE and the IP sequence number of the IP data packet in each PDCP data packet, and then based on the recorded correspondence relationship.
  • the IP data packet sent by the gateway allocates a PDCP sequence number, so that the PDCP sequence number assigned to each IP data packet sent by the gateway is consistent with the PDCP sequence number sent by the first UE, thereby avoiding that the first UE has been successfully sent to the previous UE.
  • the PDCP sequence number of the PDCP data packet of the second UE conflicts, and the switching between the D2D mode and the cell mode of the communication mode between the first UE and the second UE is completed, and the PDCP data sent by the base station to the second UE is not performed.
  • the packet conflicts with the PDCP data packet sent by the first UE that has been successfully received, ensuring that no packet loss occurs during the communication mode switching process or the packet loss rate is minimized.
  • FIG. 10 is a flowchart of a data processing method according to another embodiment of the present invention. As shown in FIG. 10, the method in this embodiment includes:
  • Step 1001 The first UE directly sends a PDCP data packet to the second UE.
  • Step 1002 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE.
  • the first UE receives the handover instruction sent by the base station.
  • Step 1003 The second UE sends the PDCP data packet successfully received after the PDCP data packet sent by the first UE that is not successfully received by the first UE to the first UE, and will be the first UE that is not successfully received.
  • the PDCP packet successfully received after the transmitted PDCP packet is deleted.
  • Step 1004 The first UE or the second UE sends a PDCP sequence number of the first PDCP packet that is not successfully sent to the second UE to the base station.
  • Step 1005 The first UE starts to send the first PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the base station, starting from the first PDCP data packet that is not successfully sent to the second UE.
  • Step 1006 The base station receives the PDCP data packet sent by the first UE, and decapsulates the received PDCP data packet to obtain an IP data packet.
  • Step 1007 The base station sends the IP data packet to the gateway according to the sequence in which the first UE sends the PDCP data packet to the base station.
  • Step 1008 The gateway processes the IP data packet sent by the base station, and then re-transmits the IP data packet to the base station according to the sequence of receiving the IP data packet sent by the base station.
  • the gateway receives the IP data packet sent by the base station and sent by the first UE to the second UE, and records the sequence of receiving the IP data packet.
  • the IP data packet is obtained by the base station decapsulating the PDCP data packet sent by the first UE, and the IP data packet includes the identifier of the first UE and the identifier of the second UE. Then, the gateway processes the received IP data packet, and delivers the processed IP data packet to the base station according to the recorded sequence.
  • the gateway may know the identifier of the first UE and the identifier of the second UE in advance.
  • the base station may send the identifier of the first UE and the identifier of the second UE to the gateway in advance, and the gateway receives the identifier of the first UE and the identifier of the second UE that are sent by the base station.
  • the gateway receives the IP data packet sent by the base station and sent by the first UE to the second UE, and records the sequence of receiving the IP data packet, including: the gateway is based on the identifier of the first UE and the identifier of the second UE that are known in advance.
  • the IP data packet sent by the base station identifies the IP data packet sent by the first UE to the second UE, and records the sequence of receiving the IP data packets sent by the first UE to the second UE.
  • the gateway delivers the processed IP data packets to the base station in the order in which the received IP data packets are received.
  • the order in which the base station transmits the IP data packets to the gateway and the order in which the gateway transmits the IP data packets to the base station are the same.
  • the identifiers of the first UE and the second UE may be IP addresses of the first UE and the second UE, but are not limited thereto.
  • Step 1009 The base station receives an IP data packet sent by the gateway in the order of receiving the IP data packet sent by the base station.
  • Step 1010 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE to re-encapsulate the IP data packet delivered by the gateway. For PDCP packets.
  • the order of the IP data packets sent by the gateway is the same as the IP data packet sent by the base station to the gateway, and the base station starts from the PDCP sequence number of the first PDCP packet that is not successfully sent by the first UE to the second UE.
  • the delivered IP data packet is assigned a PDCP sequence number, such that the re-encapsulated PDCP data packet is the same as the PDCP data packet sent by the first UE to the base station.
  • Step 1011 The base station sends the re-packaged PDCP data packet to the second UE.
  • the base station sends a PDCP data packet to the second UE in the order that the first UE sends the PDCP data packet to the second UE, and the PDCP data packet sent by the base station to the second UE is directly sent to the second UE.
  • the UE's PDCP data packets are the same.
  • Step 1012 The second UE receives the PDCP data packet sent by the base station according to the PDCP data packet sent by the first UE that has been successfully received.
  • the gateway by performing function expansion on the gateway, the gateway identifies the IP data packet between the first UE and the second UE, and records the receiving sequence of the IP data packet between the first UE and the second UE, and then according to the receiving sequence. And sending the IP data packet to the base station, so that the base station allocates the PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE, and the first The PDCP data packets reported by the UE are the same, so that the second UE can continue to receive the PDCP data packet just as the first UE directly sends the PDCP data packet, and the communication mode between the first UE and the second UE is also completed from the D2D mode.
  • the switching of the cell mode does not cause the PDCP data packet sent by the base station to the second UE to collide with the PDCP data packet sent by the first UE that has been successfully received, ensuring that packet loss does not occur during the communication mode switching process or Reduced packet loss rate.
  • FIG. 11 is a flowchart of a data sending method according to still another embodiment of the present invention. As shown in FIG. 11, the method in this embodiment includes:
  • Step 1101 The first UE directly sends a data packet to the second UE. This step 1101 describes that the first UE and the second UE communicate in the D2D mode.
  • the Ud bearer is established between the first UE and the second UE.
  • the Ud bearer refers to a bearer established by the first UE and the second UE directly performing data transmission and reception.
  • the first UE After the Ud bearer is established, the first UE encapsulates the IP data packet in the communication service to generate a data packet, and then directly sends the encapsulated data packet to the second UE.
  • Step 1102 The first UE receives a handover command sent by the base station to switch from the D2D mode to the cell mode.
  • the base station manages a communication process between the first UE and the second UE.
  • the base station sends a handover instruction to the first UE.
  • the handover instruction is used to switch the communication mode of the first UE and the second UE from the D2D mode to the cell mode.
  • a handover command is issued to the first UE.
  • Step 1103 The first UE sends, from the first data packet that is not successfully sent to the second UE, the first data packet that is not successfully sent to the second UE, and the subsequent data packet, to the base station, so that the base station directly The data packet sent by the first UE is forwarded to the second UE.
  • the first data packet that is not successfully sent to the second UE is the data packet sent by the first UE that is not successfully received by the second UE.
  • the data packet sent by the first UE that is not successfully received by the second UE includes a data packet that is received by the second UE but has an error, and includes a data packet that is not received by the second UE.
  • the first UE and the second UE may be aware of the first packet that is not successfully sent by the first UE to the second UE, or the data packet sent by the first UE that is not successfully received by the second UE. Specifically, the second UE may feed back the receiving status of the data packet to the first UE when receiving the mode switching command.
  • the Uu bearer is a bearer established by the first UE or the second UE to perform data transmission and reception with the base station.
  • the process of establishing a Uu bearer with the base station by the first UE and the second UE respectively belongs to the prior art, and is not detailed herein.
  • the first UE starts to send a data packet to the second UE by using the base station from the first data packet that is not successfully sent to the second UE. Then, the base station directly forwards the data packet sent by the first UE to the second UE.
  • the base station does not report the data packet to the gateway but directly forwards the packet to the second UE, that is, the base station of the embodiment has the gateway at the same time.
  • Some functions can perform statistics on communication traffic between the first UE and the second UE, and report functions such as a gateway.
  • the data packet in this embodiment may be a Radio Link Contro (RLC) service data unit (SDU) or a medium access control (Media). Access Control, MAC) SDU or MAC Protocol Data Unit (PDU), not just PDCP packets.
  • RLC Radio Link Contro
  • SDU Radio Link Contro
  • Media medium access control
  • MAC Radio Link Contro
  • PDU MAC Protocol Data Unit
  • the base station does not need to report the data packet sent by the first UE to the gateway, and does not need to decrypt the data packet sent by the first UE, but directly forwards the data packet to the second UE. Therefore, the data sent by the first UE to the base station is The packet may use a pre-agreed key between the first UE and the second UE, and may also be said to use a key on the Ud link between the first UE and the second UE. For example, when the first UE sends a data packet to the second UE by using the base station, the first UE may use the key pair pre-agreed with the second UE to use the first data packet that is not successfully sent to the second UE and the subsequent data packet. Encryption is performed, so that the first UE or the second UE does not need to negotiate a new key with the base station, which is beneficial to save signaling interaction.
  • FIG. 12 is a flowchart of a data sending method according to still another embodiment of the present invention. As shown in FIG. 12, the method in this embodiment includes:
  • Step 1201 The base station sends a handover instruction that is switched from the D2D mode to the cell mode to the first UE, to indicate that the first UE switches from transmitting data in the D2D mode to the second UE to send data to the second UE by using the base station.
  • the first UE Prior to this, the first UE directly transmits a data packet to the second UE in the D2D mode.
  • the base station detects a communication process between the first UE and the second UE.
  • the base station finds that the first UE and the second UE need to communicate through the base station, that is, when the cell mode needs to be used, the base station sends a handover command to the first UE.
  • the switching instruction is used to enable the first UE to switch from sending a data packet to the second UE in the D2D mode to sending the data packet to the second UE by using the base station.
  • Step 1202 The base station receives, by the first UE, a first data packet that is not successfully sent by the first UE to the second UE, and a subsequent data packet.
  • the first UE starts to send the data packet to the second UE by using the base station from the first data packet that is not successfully sent to the second UE.
  • the first packet that is not successfully sent by the first UE to the second UE is the data packet sent by the first UE that is not successfully received by the second UE.
  • the data packet sent by the first UE that is successfully received by the second UE includes a data packet that is received by the second UE but has an error, and includes a data packet that is not received by the second UE.
  • the first UE and the second UE may both know the first UE that is not successfully sent to the second UE or the first UE that is not successfully received by the second UE.
  • the first UE and the second UE respectively establish a Uu bearer with the base station. Then, the first UE sends a data packet to the base station through the Uu bearer between the first UE and the base station.
  • the establishment process of the Uu bearer belongs to the prior art and will not be described in detail herein.
  • Step 1203 The base station directly forwards the data packet sent by the first UE to the second UE.
  • the base station of this embodiment has the following extended functions: mapping the bearer of the first UE to the bearer of the second UE and intercepting the bearer associated with the first UE and the second UE, simply speaking, the first UE can be directly And a function of intercepting and directly forwarding the data packet between the first UE and the second UE, or performing traffic charging between the first UE and the second UE, or performing traffic between the first UE and the second UE Reported function.
  • the base station in this embodiment does not report the gateway but forwards it directly to the second UE. It is also because the base station does not need to report the data packet sent by the first UE to the gateway, so that the data packet of this embodiment may be an RLC SDU or a MAC SDU or a MAC PDU, and is not limited to the PDCP data packet. It is also because the base station does not need to report the data packet sent by the first UE to the gateway, and the base station does not need to decrypt the data packet sent by the first UE, so the data packet sent by the first UE can be used in advance with the second UE. The agreed key is encrypted to improve the security of the packet.
  • the base station may further restore the data packet sent by the first UE to an IP data packet, and collect traffic between the first UE and the second UE according to the restored IP data packet, so as to perform a flow rate.
  • the base station may report the calculated traffic to the gateway, and the gateway performs charging processing on the traffic.
  • the base station may further extend the charging processing function of the gateway, and the base station directly performs charging processing on the traffic between the first UE and the second UE.
  • the base station by performing function expansion on the base station, the base station has a function of performing traffic statistics, charging, and the like at the same time, so that the base station can forward the received data packet to the second UE without directly reporting the received data packet to the second UE.
  • Assigning a PDCP sequence number to the IP data packet which completes the switching of the communication mode between the first UE and the second UE from the D2D mode to the cell mode, and does not cause the base station to send
  • the PDCP data packet sent to the second UE is in conflict with the PDCP data packet sent by the first UE that has been successfully received, ensuring that no packet loss occurs during the communication mode switching process or the packet loss rate is minimized.
  • FIG. 1 to FIG. 12 described how to switch the communication mode between the first UE and the second UE from the D2D mode to the cell mode.
  • the following embodiment describes how to connect the first UE and the second UE.
  • the communication mode is switched from the cell mode to the D2D mode.
  • FIG. 13 is a flowchart of a data sending method according to still another embodiment of the present invention. As shown in FIG. 13, the method in this embodiment includes:
  • Step 1301 The first UE sends a PDCP data packet to the base station.
  • This step 1301 describes the process in which the first UE and the second UE communicate using the cell mode. Specifically, a Uu bearer is pre-established between the first UE and the base station, and the first UE sends the PDCP data packet to the base station by using a Uu link with the base station.
  • Step 1302 The first UE receives a handover command sent by the base station to switch from the cell mode to the D2D mode.
  • the base station manages a communication process between the first UE and the second UE.
  • a handover instruction is sent to the first UE and/or the second UE.
  • the handover instruction is used to enable the first UE to switch from transmitting the PDCP data packet to the second UE in the cell mode to sending the PDCP data packet to the second UE in the D2D mode.
  • the base station when the base station detects that the distance between the first UE and the second UE meets a certain condition, or when the signal strength between the first UE and the second UE meets certain conditions, the base station sends the signal to the first UE and/or the second UE. Switch instructions.
  • Step 1303 The first UE sends the first PDCP data packet that is not successfully sent to the second UE in the cell mode and the subsequent PDCP data packet to the second UE in the D2D mode.
  • the first UE After receiving the handover command sent by the base station, the first UE starts the first PDCP packet that is not successfully sent to the second UE in the cell mode, and sends the first PDCP packet that is not successfully sent to the second UE. Subsequent PDCP data packets are sent directly to the second UE in D2D mode.
  • the base station when the first UE and the second UE use the cell mode to perform communication, the base station sends a handover instruction to the first UE, and the first UE switches from transmitting the PDCP data packet to the second UE in the cell mode to the cell.
  • the mode is that the PDCP data packet is sent by the base station to the second UE, so that the communication mode of the first UE and the second UE is switched from the cell mode to the D2D mode.
  • FIG. 14 is a flowchart of a data sending method according to still another embodiment of the present invention. As shown in Figure 14, The method of this embodiment includes:
  • Step 1401 The base station receives the PDCP data packet sent by the first UE, and sends the PDCP data packet sent by the first UE to the gateway, and receives the IP data packet delivered by the gateway according to the PDCP data packet sent by the base station.
  • Step 1402 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway, so as to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • Step 1403 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 1404 The base station sends a handover instruction that is switched from the cell mode to the D2D mode to the first UE, to instruct the first UE to send the first PDCP packet that is not successfully sent to the second UE in the cell mode according to the handover instruction, and the subsequent The PDCP data packet is transmitted to the second UE in D2D mode.
  • the base station manages a communication process between the first UE and the second UE.
  • the base station detects the distance, the signal strength, and the like between the first UE and the second UE, to detect between the first UE and the second UE.
  • the base station sends a handover instruction to the first UE and/or the second UE.
  • the first UE After receiving the handover command, the first UE starts to send the PDCP data packet to the second UE in the D2D mode from the first PDCP data packet that is not successfully sent to the second UE in the cell mode.
  • the base station when the first UE and the second UE use the cell mode to perform communication, the base station sends a handover instruction to the first UE, and the first UE switches from transmitting the PDCP data packet to the second UE in the cell mode to the cell.
  • the mode is that the PDCP data packet is sent by the base station to the second UE, so that the communication mode of the first UE and the second UE is switched from the cell mode to the D2D mode.
  • FIG. 15 is a flowchart of a data receiving method according to still another embodiment of the present invention. As shown in FIG. 15, the method in this embodiment includes:
  • Step 1501 The second UE receives the PDCP data packet sent by the base station.
  • the PDCP data packet sent by the base station is that the base station receives the PDCP data packet sent by the first UE, and sends the PDCP data packet sent by the first UE to the gateway, and the gateway re-transmits the IP data packet sent by the base station according to the PDCP data packet sent by the base station.
  • the encapsulated PDCP data packet step 1502 the second UE receives the PDCP data packet directly sent by the first UE.
  • the PDCP data packet directly sent by the first UE to the second UE is sent from the first unsuccessfully sent to the second UE according to the handover instruction that is switched by the base station to the D2D mode.
  • the PDCP packet of the UE starts to be sent.
  • the base station when the first UE and the second UE use the cell mode to perform communication, the base station sends a handover instruction to the first UE, and the first UE switches from transmitting the PDCP data packet to the second UE in the cell mode to the cell.
  • the mode is that the PDCP data packet is sent by the base station to the second UE, so that the communication mode of the first UE and the second UE is switched from the cell mode to the D2D mode.
  • the base station in order to ensure that the second UE can not cause packet loss due to data collision after switching from the cell mode to the D2D mode, in the cell mode, the base station records the PDCP data packet sent by the first UE to the base station and the base station sends Correspondence between the PDCP data packet of the second UE and the sequence number of the IP data packet included in each PDCP data packet.
  • the following embodiment will further explain the handover procedure from cell mode to D2D mode.
  • the base station can directly use the PDCP sequence number used by the PDCP data packet sent by the first UE as the PDCP sequence number of the re-packaged PDCP data packet. That is, in the cell mode, when the base station receives the PDCP data packet sent by the first UE, the mapping between the PDCP sequence number of the PDCP data packet and the IP sequence number of the IP data packet in the PDCP data packet is recorded. relationship. Then, when the base station receives the IP data packet of the same IP sequence number from the gateway, when the PDCP sequence number is allocated for the IP data packet, it is not autonomously allocated, but according to the recorded first UE, which is used corresponding to the IP address.
  • the PDCP sequence number of the IP sequence number of the packet is re-encapsulated into a PDCP data packet by using the PDCP sequence number used by the first UE, and then sent to the second UE.
  • the PDCP sequence number of the PDCP data packet sent by the first UE recorded by the base station
  • the IP sequence number of the IP data packet in the PDCP data packet sent by the first UE and the re-packaged PDCP data packet are recorded by the base station.
  • the correspondence between the PDCP sequence number and the IP sequence number of the IP packet in the re-packaged PDCP packet is simply the PDCP sequence number of the PDCP packet and the IP sequence number of the IP packet in the PDCP packet. Correspondence between the two.
  • the base station when the handover from the cell mode to the D2D mode occurs, if the base station wants to transmit the corresponding untransmitted PDCP data packet to the first UE, so that the first UE continues to transmit to the second UE in the D2D mode.
  • the first UE uses the same PDCP sequence number.
  • the base station may also allocate a PDCP sequence number to the IP data packet sent by the gateway, that is, what kind of PDCP sequence number the base station uses to send the PDCP to the second UE.
  • the data packet is not limited by the PDCP sequence number used by the first UE. That is to say, when the base station sends a PDCP data packet to the second UE, the PDCP sequence number used is completely independent of the PDCP sequence number used by the first UE.
  • the PDCP sequence number of the PDCP data packet sent by the first UE recorded by the base station, the IP sequence number of the IP data packet in the PDCP data packet sent by the first UE, the PDCP sequence number of the re-packaged PDCP data packet, and the re
  • the IP sequence numbers of the IP data packets in the encapsulated PDCP data packet the PDCP sequence number used by the first UE corresponding to the same IP data packet and the PDCP used by the base station by the IP sequence number of the IP data packet
  • the serial numbers correspond.
  • the secondary cell is When the mode is switched to the D2D mode, when the first UE continues to use the D2D mode to send the PDCP data packet to the second UE, the first UE or the second UE needs to make some changes to the PDCP sequence number of the PDCP data packet, so as to facilitate the second UE. Successfully received PDCP packets.
  • the first UE may continue to use the D2D mode by using the PDCP sequence number used by the base station to send the PDCP data packet to the second UE when switching from the cell mode to the D2D mode.
  • the PDCP data packet is sent to the second UE.
  • the base station may, when returning to the first UE, tell the first UE which PDCP sequence number to use for the PDCP data packet, that is, the base station returns to the first UE.
  • the PDCP sequence numbers of the PDCP data packets are sent to the first UE, so that the first UE sends the PDCPs using the PDCP sequence number used by the base station. Packets and subsequent PDCP packets.
  • the first UE receives the PDCP data packet returned by the base station, receives the PDCP sequence number of the PDCP data packets sent by the base station, and updates the first one according to the PDCP sequence number of the PDCP data packet returned by the base station.
  • the base station may inform the first UE of the PDCP sequence number that the first PDCP packet that was not successfully sent to the second UE needs to use, so that the first UE can continue to use the PDCP sequence number used by the base station to continue in the D2D mode.
  • the second UE transmits a PDCP data packet.
  • the first UE starts with the PDCP sequence number of the first PDCP packet that is not successfully sent to the second UE, and allocates the PDCP sequence number for the first PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet. And then transmitting the first PDCP packet that was not successfully sent to the second UE and subsequent The PDCP data packet is transmitted to the second UE in D2D mode.
  • the second UE changes the PDCP sequence number
  • the first UE may use the first UE to send the PDCP data packet to the base station.
  • the PDCP serial number Because the discontinuously correctly received PDCP data packets in the buffer of the second UE are received according to the PDCP sequence number used by the previous base station, in order to facilitate the second UE to correctly receive the PDCP data packet sent by the first UE in the D2D mode.
  • the base station needs to tell the second UE to modify the PDCP sequence number of the PDCP data packet in the cache to modify the PDCP sequence number used by the first UE to send the PDCP data packets. For example, the base station may send the recorded correspondence to the second UE to notify the second UE to update the PDCP sequence number of the PDCP data packet sent by the base station that has been successfully received according to the correspondence sent by the base station.
  • FIG. 16 is a flowchart of a data processing method according to another embodiment of the present invention. As shown in FIG. 16, the method in this embodiment includes:
  • Step 1601 The first UE sends a PDCP data packet to the base station.
  • Step 1602 The base station receives the PDCP data packet sent by the first UE, and sends the PDCP data packet sent by the first UE to the gateway and receives the IP data packet delivered by the gateway according to the PDCP data packet sent by the base station.
  • Step 1603 The base station allocates a PDCP sequence number to the IP data packet sent by the gateway, and re-encapsulates the IP data packet delivered by the gateway into a PDCP data packet, and records the PDCP serial number of the PDCP data packet sent by the first UE, and the first The correspondence between the IP sequence number of the IP packet in the PDCP packet sent by the UE, the PDCP sequence number of the PDCP packet repackaged, and the IP sequence number of the IP packet in the re-packaged PDCP packet.
  • the base station obtains the PDCP data packet corresponding to the IP data packet with the IP sequence number according to the IP sequence number of the IP data packet sent by the gateway, and allocates the PDCP sequence number of the obtained PDCP data packet to the gateway.
  • the IP data packet is used to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the PDCP sequence number assigned by the base station to the IP data packet sent by the gateway is used as an example, that is, the PDCP sequence number allocated by the base station for the IP data packet sent by the gateway and the first UE.
  • the PDCP serial numbers used are independent of each other.
  • the base station may determine, according to the D2D capability information reported by the first UE and the second UE, whether the first UE and the second UE support the D2D mode at the same time. If the judgment result is yes, the base station performs the PDCP sequence number of the PDCP data packet sent by the first UE, the IP sequence number of the IP data packet in the PDCP data packet sent by the first UE, and the PDCP of the re-packaged PDCP data packet. The operation of the correspondence between the serial number and the IP sequence number of the IP packet in the re-encapsulated PDCP packet, in order to lay the foundation for switching to the D2D mode.
  • the base station does not need to perform the operation of recording the correspondence relationship, which is beneficial to saving the base station. Resources to ease the burden on the base station.
  • the mapping relationship recorded by the base station is used by the base station to allocate a PDCP sequence number to the IP data packet sent by the gateway.
  • Step 1604 The base station sends the re-packaged PDCP data packet to the second UE.
  • Step 1605 The base station sends a handover instruction that is switched from the cell mode to the D2D mode to the first UE, where the first UE receives the handover instruction.
  • Step 1606 The base station sends the first PDCP sequence number of the PDCP data packet that is not successfully sent to the second UE to the first UE.
  • the first PDCP data packet that the base station fails to send to the second UE is the first PDCP data packet that the first UE fails to send to the second UE.
  • the base station records the correspondence between the first UE corresponding to the same IP data packet and the PDCP sequence number used by the base station, so the base station can find the first unsuccessful transmission to the base station according to the recorded correspondence relationship.
  • the PDCP sequence number of the PDCP packet of the second UE is the first PDCP data packet that the first UE fails to send to the second UE.
  • the base station may also return a PDCP data packet to the first UE.
  • the first UE receives the PDCP data packet returned by the base station.
  • the PDCP data packet returned by the base station may be a PDCP data packet that the base station has not sent to the gateway. That is, the base station returns the PDCP data packet sent by the first UE that has not been sent to the gateway to the first UE.
  • the PDCP data packet returned by the base station may also be a PDCP data packet generated by the base station to restore all or part of the PDCP data packet that is re-encapsulated and not successfully transmitted to the second UE. That is to say, the base station can re-encapsulate all or part of the corresponding relationship according to the recorded correspondence and has not successfully sent
  • the PDCP data packet sent to the second UE is restored, mainly to restore the PDCP data packet sent by the first UE, and then return the restored PDCP data packet to the first UE.
  • the PDCP sequence number of the restored data packet is the same as the PDCP sequence number of the data packet when the first UE sends the data packet to the base station.
  • the base station needs to continue transmitting the all restored PDCP data packet or the remaining partially restored PDCP data packet. Give the second UE to ensure that no packet loss occurs.
  • the base station sends all the PDCP data packets that have not been sent and need to be sent to the second UE to the second UE, send a notification message to the first UE to notify that the first UE has not sent yet and needs to send to the second UE.
  • the PDCP data packet of the UE is sent to the second UE.
  • the first UE receives the notification message sent by the base station, and according to the notification message, the base station has sent the PDCP data packet that has not been sent yet and needs to be sent to the second UE to the second UE.
  • the PDCP data packet that has not been sent and needs to be sent to the second UE is used to determine various PDCP data packets that are sent by the base station to the second UE after the base station sends the handover command.
  • the base station may correspond to the record according to the record.
  • the relationship restores all or part of the PDCP data packet that is re-encapsulated and has not been sent to the PDCP packet of the second UE. If the base station needs to send all the restored PDCP data packets to the second UE, the PDCP data packets that have not been sent and need to be sent to the second UE are all restored PDCP data packets.
  • the PDCP data packet that has not been sent and needs to be sent to the second UE refers to Partially restored PDCP packets.
  • the base station determines that the PDCP data packet that has been received and not yet reported to the gateway and/or the PDCP data packet that has been re-encapsulated is sent to the second UE after the handover command is issued, it is not yet sent and needs to be sent to the second UE.
  • the PDCP data packet of the second UE may also be a PDCP data packet that the base station has received but has not yet reported to the gateway and/or a PDCP data packet that has been re-encapsulated.
  • the base station may send a notification message to the first UE after receiving the status report of the received PDCP data packet sent by the second UE.
  • the base station may also send a backhaul notification message to the first UE after transmitting the PDCP data packet that needs to be transmitted back to the first UE to the first UE.
  • the notification message may be dedicated signaling or a special end indication.
  • the first PDCP data packet that is not successfully sent to the second UE is determined by the second UE according to the PDCP sequence number of the PDCP data packet, that is, the PDCP data packet with the smallest PDCP sequence number that is not successfully received. For example, if the PDCP packet returned by the base station is the earliest PDCP packet, Then, the PDCP data packet returned by the base station is the first PDCP data packet that the base station or the first UE fails to send to the second UE.
  • the first UE does not successfully send the PDCP data packet to the second UE, and the first UE has not sent yet.
  • the top PDCP packet to the base station.
  • the PDCP data packet that the first UE or the first UE fails to send to the second UE may be the PDCP data packet sent by the first UE to the base station, but the base station has never sent the second UE, or may be the base station direction.
  • Step 1607 The PDCP sequence number of the first PDCP packet sent by the first UE from the base station that is not successfully sent to the second UE starts, and is the first PDCP data packet that is not successfully sent to the second UE, and the subsequent PDCP data.
  • the packet is assigned a PDCP sequence number and then sent directly to the second UE.
  • the first UE may send the first PDCP data packet that is not successfully sent to the second UE and the subsequent PDCP data packet to the second, starting from the first PDCP data packet that the base station fails to send to the second UE. UE.
  • the base station provides the first UE by using the PDCP sequence number of the PDCP data packet that is not successfully sent to the second UE, so that the first UE can use the same manner as the base station uses the PDCP serial number.
  • the PDCP sequence number sent to the second UE is allocated with the PDCP sequence number, which ensures the consistency of the PDCP sequence number of the PDCP data packet received by the second UE, and avoids packet loss caused by the PDCP sequence number conflict.
  • Step 1608 The second UE receives the PDCP data packet directly sent by the first UE.
  • the base station sends, to the second UE, a PDCP data packet that is re-encapsulated by all or part of the PDCP data packet that has not been sent to the second UE
  • the second UE receives the base station according to the recorded correspondence relationship to all or part of A PDCP packet generated by re-encapsulating a PDCP packet that has not been sent to the second UE for restoration.
  • the base station records the PDCP sequence number of the PDCP data packet sent by the first UE, and the IP data packet in the PDCP data packet sent by the first UE.
  • the correspondence between the IP sequence number, the PDCP sequence number of the PDCP packet re-packaged by the base station, and the IP sequence number of the IP packet in the PDCP packet re-packaged by the base station, when performing mode switching, according to the record correspondence provides the first UE with the PDCP sequence number used by the first PDCP data packet that is not successfully sent to the second UE, so that the first UE and the base station send the PDCP data packet to the second UE by using the same PDCP sequence number as the success. Perform mode switching and ensure that no packet loss or packet loss rate is achieved during the handover process.
  • the basis is such that the communication mode of the first UE and the second UE is switched from the cell mode to the D2D mode, and the packet loss rate is guaranteed.
  • FIG. 17 is a schematic structural diagram of a UE according to an embodiment of the present invention. As shown in FIG. 17A, the UE in this embodiment includes: a first sending module 171, a first receiving module 172, and a second sending module 173.
  • the first sending module 171 is connected to the second UE, and configured to send the data packet to the second UE in the D2D mode.
  • the first receiving module 172 is connected to the base station, and is configured to receive a handover instruction that is sent by the base station and is switched from the D2D mode to the cell mode.
  • the second sending module 173 is connected to the first receiving module 172 and the base station, and is configured to: according to the switching instruction received by the first receiving module 172, the first data packet that is not successfully sent to the second UE in the D2D mode, and the subsequent The data packet is sent to the base station to send the data packet to the second UE through the base station.
  • the subsequent data packet includes all the data packets after the first unsuccessfully sent by the UE to the second UE in the embodiment, or after the data packet of the first UE that is not successfully sent to the second UE in this embodiment. A packet that was not successfully sent to the second UE.
  • the function modules of the UE may be used to perform the process of the data sending method shown in FIG. 1.
  • the specific working principle is not described here. For details, refer to the description of the method embodiments.
  • the UE in this embodiment is equivalent to the first UE in the method shown in FIG. 1.
  • the UE in this embodiment communicates with the second UE by using the D2D mode.
  • the UE in this embodiment receives the handover command sent by the base station, it starts from the first data packet that is not successfully sent to the second UE.
  • the UE transmits the data packet, and does not directly send the data packet to the second UE, and completes the handover from the D2D mode to the cell mode.
  • FIG. 17B is a schematic structural diagram of a UE according to another embodiment of the present invention. The embodiment is implemented based on the embodiment shown in FIG. 17A.
  • the first sending module of this embodiment is specifically configured to send a PDCP data packet to the second UE in a D2D mode. Based on this, the data packet and the subsequent data packet that are not successfully sent by the UE to the second UE in this embodiment include: a first PDCP data packet that is not successfully sent to the second UE and a subsequent PDCP data packet.
  • the subsequent PDCP data packet includes all PDCP data packets after the first PDCP data packet that is not successfully sent to the second UE, or is not successfully sent after the first PDCP data packet that is not successfully sent to the second UE.
  • PDCP packet of the second UE includes all PDCP data packets after the first PDCP data packet that is not successfully sent to the second UE, or is not successfully sent after the first PDCP data packet that is not successfully sent to the second UE.
  • the UE in this embodiment further includes: a third sending module 174.
  • the third sending module 174 is connected to the base station, and is configured to send the first one to the second UE.
  • the PDCP sequence number of the PDCP packet is sent to the base station.
  • the base station can allocate the PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the PDCP data packet that is not successfully sent by the UE to the second UE in this embodiment to re-transmit the IP data packet delivered by the gateway. Encapsulated as a PDCP packet.
  • the UE in this embodiment further includes: a reset module 175.
  • the reset module 175 is connected to the second sending module 173, and configured to send, before the second sending module 173, the PDCP data packet and the subsequent PDCP data packet that are not successfully sent to the second UE in the D2D mode to the base station. And resetting the PDCP sequence number of the first PDCP packet that is not successfully sent to the second UE and the subsequent PDCP packet.
  • the base station can allocate a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number 0 to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the second sending module 173 is specifically configured to: send the first PDCP data packet that is not successfully sent to the second UE, and the PDCP data packet that has been sent to the second UE but is not successfully sent to the second UE, and the first The PDCP sequence number of the PDCP data packet that has not been sent to the second UE and the PDCP data packet that has been subsequently transmitted to the second UE but not successfully transmitted to the second UE is transmitted to the base station.
  • the base station may send, by the UE in this embodiment, the data packet of the PDCP that is not successfully sent by the UE to the second UE, and the PDCP data that has been sent to the second UE but not successfully sent to the second UE.
  • the PDCP sequence number of the packet encapsulates the data packet of the PDCP that is not successfully transmitted by the UE to the second UE in the first embodiment of the UE, and the IP packet in the PDCP data packet that has been sent to the second UE but has not been successfully sent to the second UE.
  • the data packet is sent to the gateway and receives an IP data packet sent by the gateway, including the PDCP serial number.
  • the UE in this embodiment further includes: a second receiving module 176.
  • the second receiving module 176 is connected to the second UE and the second sending module 173, and is configured to receive, after receiving, the PDUE data packet that is returned by the second UE and is not successfully sent by the UE to the second UE in the first embodiment.
  • Other PDCP data packets are provided to the second transmitting module 173.
  • the first sending module 171 in this embodiment may further send a PDCP SDU, an RLC SDU, a MAC SDU, or a MAC PDU to the second UE in a D2D mode.
  • the UE in the embodiment further includes: an encryption module 177, when the base station has a gateway function, and does not need to report the received data packet to the gateway, but directly forwards the data packet to the second UE.
  • the encryption module 177 is configured to send the first one to the second UE in the second sending module 173. Before the data packet and the subsequent data packet are sent to the second UE in the D2D mode, the first data packet that is not successfully sent to the second UE and the subsequent data packet are encrypted using a key pre-agreed with the second UE.
  • the UE of the present embodiment solves the problem that the second UE receives the PDCP data packet sent by the base station and the PDCP data packet directly sent by the UE in this embodiment, and the PDCP sequence number used by the PDCP data packet conflicts.
  • the problem of packet loss is ensured, and the second UE can successfully receive the PDCP data packet sent by the base station and the UE in this embodiment, and ensure that the data packet is not lost or the packet loss rate of the data packet is reduced to the end during the communication mode switching process. May be low.
  • FIG. 18 is a schematic structural diagram of a base station according to an embodiment of the present invention. As shown in FIG. 18A, the base station in this embodiment includes: a fourth sending module 181, a third receiving module 182, a first encapsulating module 183, and a fifth sending module 184.
  • the fourth sending module 181 is connected to the first UE, and is configured to send, to the first UE, a handover instruction that is switched from the D2D mode to the cell mode, to instruct the first UE to switch from sending the data packet to the second UE in the D2D mode to The data packet is transmitted to the second UE by the base station.
  • the third receiving module 182 is configured to receive, by the first UE, a PDCP data packet and a subsequent PDCP data packet that are sent by the first UE and are not successfully sent by the first UE to the second UE in the cell mode.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE fails to be sent to the second UE's PDCP data packet, or the PDCP data of the first UE that is not successfully sent to the second UE.
  • the first encapsulating module 183 is connected to the third receiving module 182, and configured to send the PDCP data packet sent by the first UE received by the third receiving module 182 to the gateway, and receive the IP data packet sent by the gateway, and then The transmitted IP data packet is assigned a PDCP sequence number to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the fifth sending module 184 is connected to the first encapsulating module 183 and the second UE, and the PDCP data packet used for repackaging the first encapsulating module 183 is sent to the second UE.
  • the function modules of the base station in this embodiment can be used to perform the process of the data sending method shown in FIG. 3, and the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the base station in this embodiment sends a handover command to the first UE when the first UE and the second UE need to use the cell mode to communicate, and the first UE switches from the D2D mode to the cell mode according to the handover instruction, that is, The base station sends PDCP data to the second UE, thereby completing the handover of the communication mode between the first UE and the second UE from the D2D mode to the cell mode.
  • FIG. 18B is a schematic structural diagram of a base station according to another embodiment of the present invention. This embodiment is based on a diagram
  • the embodiment shown in FIG. 18 is implemented.
  • the first encapsulating module 183 of the embodiment is specifically configured to receive an IP data packet sent by the gateway in the order of receiving PDCP data packets sent by the base station.
  • the first encapsulating module 183 of the embodiment is specifically configured to allocate a PDCP sequence number to the IP data packet sent by the gateway from the PDCP sequence number of the first UE that is not successfully sent to the second UE.
  • the IP packet delivered by the gateway is re-encapsulated into a PDCP packet.
  • the base station in this embodiment further includes: a fourth receiving module 185.
  • the fourth receiving module 185 is connected to the first UE or the second UE, and is configured to receive a PDCP sequence number of the PDCP data packet that is sent by the first UE to the first UE that is not successfully sent to the second UE, or is used for receiving The PDCP sequence number of the PDCP data packet sent by the second UE to the second UE that is not successfully sent by the second UE to the second UE.
  • the PDCP data packet sent by the first UE to the second UE that is not successfully sent to the second UE is the PDCP data packet sent by the first UE that is not successfully received by the second UE.
  • the base station in this embodiment further includes: a first recording module 186.
  • the first recording module 186 is connected to the third receiving module 182, and is configured to record a PDCP sequence number of the first PDCP data packet sent by the first UE to the base station, which is received by the third receiving module 182.
  • the first PDCP data packet sent by the first UE to the base station is the first PDCP data packet that the first UE does not successfully send to the second UE.
  • the fourth receiving module 185 or the first recording module 186 further supplies the acquired PDCP sequence number of the PDCP data packet of the first UE that is not successfully sent to the second UE to the first encapsulating module 183. .
  • the first encapsulating module 183 of the embodiment may further reset the PDCP sequence number of the PDCP data packet of the first UE that is not successfully sent to the second UE and the subsequent PDCP data packet by the first UE.
  • the IP data packet delivered by the gateway is allocated with a PDCP sequence number to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the base station in this embodiment further includes: a second recording module 187.
  • the second recording module 187 is connected to the third receiving module 182, and is configured to record the PDCP sequence number of the PDCP data packet sent by the first UE received by the third receiving module 182 and the IP data in the PDCP data packet sent by the first UE. The correspondence between the IP serial numbers of the packets.
  • the first encapsulating module 183 of the embodiment may further allocate a corresponding PDCP sequence number to the IP data packet sent by the gateway according to the corresponding relationship recorded by the second recording module 187, so as to deliver the IP delivered by the gateway.
  • the packet is repackaged into a PDCP packet.
  • the third receiving module 182 is further configured to receive, by the first UE, the first PDCP data packet that is not successfully sent to the second UE, and the PDCP data that has been sent to the second UE but is not successfully sent to the second UE.
  • the PDCP serial number of the packet corresponds to the first encapsulating module 183 sends the PDCP data packet sent by the first UE to the first UE that is not successfully sent to the second UE, and the PDCP that has been sent to the second UE but is not successfully sent to the second UE.
  • the PDCP sequence number of the data packet encapsulates the IP data in the PDCP data packet of the first UE that is not successfully transmitted to the second UE and the PDCP data packet that has been subsequently sent to the second UE but not successfully transmitted to the second UE.
  • the packet is sent to the gateway, and receives the IP data packet that is sent by the gateway, including the PDCP sequence number, and sends the PDCP data packet sent by the first UE from the first UE to the second UE, and sends the PDCP data packet to the gateway.
  • the IP data packet that does not include the PDCP serial number is sent, and then the PDCP serial number is assigned to each IP data packet sent by the gateway according to the PDCP serial number carried by the IP data packet carried by the gateway.
  • the delivered IP data packet is re-encapsulated into a PDCP data packet.
  • Each of the foregoing functional modules may be used to perform the corresponding processes in the data processing method shown in FIG. 4A, FIG. 5, FIG. 6, FIG. 7, FIG. 8, FIG. 9, or FIG. 10.
  • the specific working principle is not described again. For details, refer to the method embodiment. description of.
  • the base station in this embodiment solves the problem that the second UE receives the PDCP data packet sent by the base station and the PDCP data packet directly sent by the UE in this embodiment, and the PDCP sequence number used by the PDCP data packet conflicts.
  • the problem of packet loss is ensured, and the second UE can successfully receive the PDCP data packet sent by the base station and the UE in this embodiment, and ensure that the data packet is not lost or the packet loss rate of the data packet is reduced to the end during the communication mode switching process. May be low.
  • FIG. 19 is a schematic structural diagram of a UE according to another embodiment of the present invention. As shown in FIG. 19A, the UE in this embodiment includes: a fifth receiving module 191 and a sixth receiving module 192.
  • the fifth receiving module 191 is connected to the first UE, and is configured to receive a PDCP data packet directly sent by the first UE.
  • the sixth receiving module 192 is connected to the base station and configured to receive the PDCP data packet sent by the base station.
  • the PDCP data packet sent by the base station to the second UE is the first one of the first UE that is sent by the first UE is not successfully sent to the embodiment after the base station sends a handover command to the first UE to switch from the D2D mode to the cell mode.
  • the PDCP data packet of the UE and the subsequent PDCP data packet are sent to the gateway and the gateway repackages the IP data packet sent according to the PDCP data packet sent by the base station.
  • the subsequent PDCP data packet includes all PDCP data packets after the first UE is not successfully sent to the PDCP data packet of the UE in this embodiment, or includes the first UE that is not successfully sent to the first embodiment.
  • the PDCP data packet of the UE is not successfully transmitted to the PDCP data packet of the UE of this embodiment.
  • the function modules of the UE may be used to perform the process of the data receiving method shown in FIG. 3, and the specific working principle is not described here. For details, refer to the description of the method embodiments.
  • the UE in this embodiment is equivalent to the second UE in the method shown in FIG.
  • the UE in this embodiment first receives the PDCP data packet directly sent by the first UE, and when the communication mode between the first UE and the UE in the embodiment is switched from the D2D mode to the cell mode, the UE in this embodiment receives the first UE.
  • the UE of the present embodiment cooperates with the first UE to provide a condition for the handover of the communication mode used by the UE of the first UE and the UE of the present embodiment by using the PDCP data packet sent by the base station, so that the UE of the first UE and the UE of the embodiment
  • the communication mode can be switched from the D2D mode to the cell mode.
  • FIG. 19B is a schematic structural diagram of a UE according to another embodiment of the present invention. The embodiment may be implemented based on the embodiment shown in FIG. 19A. As shown in FIG. 19B, the UE in this embodiment further includes: a sixth sending module 193.
  • the sixth sending module 193 is connected to the base station, and is configured to send, to the base station, a PDCP sequence number of the first PDCP packet that is not successfully sent by the first UE to the UE, so that the base station is not successfully sent from the first UE to the first UE.
  • the DCP sequence number of the PDCP packet of the UE starts to allocate a PDCP sequence number to the IP data packet sent by the gateway to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the sixth receiving module 192 is specifically configured to receive and store the PDCP data packet sent by the base station according to the PDCP data packet sent by the first UE that has been successfully received.
  • the PDCP sequence number of the PDCP data packet sent by the base station is started from the PDCP sequence number of the PDCP data packet that is first successfully sent by the first UE to the second UE.
  • the sixth receiving module 192 is specifically configured to separately receive and store the PDCP data packet sent by the base station by using the PDCP data packet sent by the base station as new service data.
  • the PDCP sequence number of the PDCP data packet sent by the base station is not started from the PDCP sequence number of the PDCP data packet that is first successfully sent by the first UE to the second UE.
  • the UE in this embodiment further includes: a seventh sending module 194.
  • the seventh sending module 194 is connected to the first UE, and is configured to receive the first one in the first unsuccessful manner.
  • the PDCP data packet successfully received after the PDCP data packet sent by the UE is sent to the first UE, and the PDCP data packet successfully received after the first unsuccessfully receiving the PDCP data packet sent by the first UE is deleted.
  • Each of the foregoing functional modules may be used to perform the corresponding processes in the data processing method shown in FIG. 4A, FIG. 5, FIG. 6, FIG. 7, FIG. 8, FIG. 9, or FIG. 10.
  • the specific working principle is not described again. For details, refer to the method embodiment. description of.
  • the UE in this embodiment cooperates with the first UE and the base station provided by the embodiment of the present invention to solve the problem that the UE receives the PDCP data packet sent by the first UE through the base station and the PDCP directly sent by the first UE.
  • the problem of packet loss caused by the conflict of the PDCP sequence number used by the PDCP data packet ensures that the UE in this embodiment can successfully receive the PDCP data packet sent by the base station and the first UE, and guarantee data during the communication mode switching process. Packets are not lost or the packet loss rate is reduced to as low a level as possible.
  • FIG. 20 is a schematic structural diagram of a UE according to another embodiment of the present invention. As shown in FIG. 20, the UE in this embodiment includes: an eighth sending module 2001, a seventh receiving module 2002, and a ninth sending module 2003.
  • the eighth sending module 2001 is connected to the second UE, and is configured to directly send the data packet to the second UE.
  • the seventh receiving module 2002 is connected to the base station, and is configured to receive a handover instruction that is sent by the base station and is switched from the D2D mode to the cell mode.
  • the ninth sending module 2003 is connected to the seventh receiving module 2002 and the base station, and is configured to start from the first data packet that is not successfully sent to the second UE according to the switching instruction received by the seventh receiving module 2002, and the first one The data packet that is not successfully sent to the second UE and the subsequent data packet are sent to the base station, so that the base station directly forwards the data packet sent by the UE of the embodiment to the second UE.
  • the function modules of the UE may be used to perform the process of the data sending method shown in FIG. 11.
  • the specific working principle is not described here.
  • the UE in this embodiment is equivalent to the first UE in the method shown in FIG.
  • the UE in this embodiment cooperates with the base station, and after receiving the handover command sent by the base station, starts transmitting the PDCP to the second UE through the base station from the first PDCP data packet that is not successfully sent to the second UE.
  • the data packet instead of directly transmitting the PDCP data packet to the second UE, completes the handover from the D2D mode to the cell mode.
  • FIG. 20B is a schematic structural diagram of a UE according to another embodiment of the present invention. The embodiment is implemented based on the embodiment shown in FIG. 20A. As shown in FIG. 20B, the UE in this embodiment further includes: an encryption module 2004.
  • the encryption module 2004 is connected to the ninth sending module 2003, and is configured to send, by the ninth sending module 2003, the first unsuccessfully sent to the second UE from the first data packet that is not successfully sent to the second UE. Before the data packet of the UE and the subsequent data packet are sent to the base station, the first data packet that is not successfully sent to the second UE and the subsequent data packet are performed by using a key pre-agreed with the second UE. encryption.
  • the data packet in this embodiment may be a PDCP SDU, an RLC SDU, a MAC SDU, or
  • the UE in this embodiment cooperates with the base station, and the base station does not report the received data packet to the gateway. Therefore, the UE in this embodiment can directly encrypt the data packet by using the key agreed with the second UE through the encryption module.
  • the key negotiation between the base station and the base station is not required, and the signaling interaction process is reduced, which is beneficial to improving the efficiency of data transmission.
  • FIG. 21 is a schematic structural diagram of a base station according to another embodiment of the present invention. As shown in FIG. 21A, the base station in this embodiment includes: a tenth transmitting module 211, an eighth receiving module 212, and an eleventh transmitting module 213.
  • the tenth sending module 211 is connected to the first UE, and is configured to send, to the first UE, a handover instruction that is switched from the D2D mode to the cell mode, to indicate that the first UE switches from transmitting in the D2D mode to the second UE to pass the data.
  • the base station transmits data to the second UE.
  • the eighth receiving module 212 is configured to receive, by the first UE, a data packet and a subsequent data packet that are sent by the first UE and are not successfully sent by the first UE to the second UE in the D2D mode.
  • the eleventh sending module 213 is connected to the eighth receiving module 212 and the second UE, and is configured to directly forward the data packet sent by the first UE received by the eighth receiving module 212 to the second UE.
  • the function modules of the base station in this embodiment can be used to perform the process of the data sending method shown in FIG. 12, and the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the base station in this embodiment performs function expansion, and has a function of performing traffic statistics, charging, and the like at the same time, and can directly forward the received data packet to the second UE without reporting the received data packet to the second UE, and does not need to re-assign the PDCP sequence to the IP data packet.
  • Number which completes the communication mode between the first UE and the second UE.
  • the switching from the D2D mode to the cell mode does not cause the PDCP data packet sent by the base station to the second UE to collide with the PDCP data packet sent by the first UE that has been successfully received, ensuring that the communication mode switching process does not occur. Lose packets or minimize the packet loss rate.
  • FIG. 21B is a schematic structural diagram of a base station according to another embodiment of the present invention. The embodiment is implemented based on the embodiment shown in FIG. 21A. As shown in FIG. 21B, the base station in this embodiment further includes: a reduction statistics module 214.
  • the reduction statistic module 214 is connected to the eighth receiving module 212, and configured to restore the data packet sent by the first UE received by the eighth receiving module 212 to an IP data packet, and collect the first UE according to the restored IP data packet. Traffic between the second UEs to facilitate metering.
  • the base station in this embodiment further includes: a restore reporting module 215.
  • the restore reporting module 215 is connected to the eighth receiving module 212, configured to restore the data packet sent by the first UE received by the eighth receiving module 212 to an IP data packet, and collect the first UE according to the restored IP data packet. The traffic between the second UEs is reported to the gateway.
  • the base station in this embodiment implements the functions of the traffic statistics, accounting, and the like by the base station, and the base station directly forwards the data packet sent by the first UE to the second UE.
  • FIG. 22 is a schematic structural diagram of a UE according to another embodiment of the present invention. As shown in FIG. 22A, the UE in this embodiment includes: a twelfth transmitting module 221, a ninth receiving module 222, and a thirteenth transmitting module 223.
  • the twelfth sending module 221 is connected to the base station and configured to send the PDCP data packet to the base station.
  • the ninth receiving module 222 is connected to the base station, and is configured to receive, by the base station, a handover command that is switched from the cell mode to the D2D mode.
  • the thirteenth sending module 223 is connected to the ninth receiving module 222 and the second UE, and is configured to send, according to the handover instruction received by the ninth receiving module 222, the first PDCP that is not successfully sent to the second UE in the cell mode.
  • the data packet and subsequent PDCP data packets are transmitted to the second UE in D2D mode.
  • the function modules of the UE in this embodiment may be used to perform the process of the data sending method shown in FIG. 13, and the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the UE in this embodiment is equivalent to the first UE in the embodiment shown in FIG.
  • the base station sends a handover command to the UE in this embodiment.
  • the UE starts directly from the first PDCP packet that is not successfully sent to the second UE according to the handover instruction. And transmitting to the second UE, so that the communication mode of the UE and the second UE of the embodiment is switched from the cell mode to the D2D mode.
  • FIG. 22B is a schematic structural diagram of a UE according to another embodiment of the present invention. This embodiment can be based on a graph
  • the UE in this embodiment further includes: a tenth receiving module 224.
  • the tenth receiving module 224 is connected to the base station and the thirteenth transmitting module 223, and is configured to receive the PDCP data packet returned by the base station, and provide the data to the thirteenth transmitting module 223.
  • the PDCP data packet returned by the base station is a PDCP data packet that the base station has not sent to the gateway; or the PDCP data packet returned by the base station is a PDCP that is re-encapsulated by the base station according to the recorded correspondence relationship and has not been sent to the second UE.
  • the PDCP packet generated by the data packet is restored.
  • the UE in this embodiment further includes: an eleventh receiving module 225.
  • the eleventh receiving module 225 is configured to be connected to the base station, and configured to receive the notification message sent by the base station, and according to the notification message, the base station has sent the PDCP data packet that has not been sent yet and needs to be sent to the second UE to the second UE. Further, the eleventh receiving module 225 is further configured to receive, after the base station returns the PDCP data packet that needs to be returned to the first UE, to the first UE, and send back the delayed notification message.
  • the PDCP data packet that has not been sent and needs to be sent to the second UE is used by the base station to determine various PDCP data packets that need to be sent to the second UE after the handover command is sent, for example, may have been received but not yet reported to the gateway.
  • the PDCP data packet and/or the PDCP data packet re-encapsulated by the IP data packet sent by the gateway may also be all or part of the PDCP data packet that the base station restores according to the recorded correspondence relationship.
  • the UE in this embodiment further includes: a twelfth receiving module 226.
  • the twelfth receiving module 226 is connected to the base station and the thirteenth sending module 223, and is configured to receive, by the base station, a PDCP sequence number of the first PDCP packet that is not successfully sent by the first UE to the second UE, and receive the The PDCP sequence number of the PDCP packet of the first UE that is not successfully transmitted to the second UE is provided to the thirteenth transmitting module 223.
  • the tenth receiving module 224 of the embodiment is further configured to: when receiving the PDCP data packet returned by the base station, receive a PDCP sequence number of the PDCP data packet returned by the base station, and provide the received PDCP serial number to the thirteenth sending Module 223.
  • the thirteenth sending module 223 of the embodiment is specifically configured to: according to the PDCP sequence number of the PDCP data packet returned by the base station, update the first PDCP data packet that is not successfully sent to the second UE, and the subsequent PDCP data packet. The PDCP sequence number is then sent directly to the second UE by the updated PDCP data packet.
  • the foregoing functional modules may be used to perform the foregoing method for ensuring that the second UE successfully receives the PDCP data packet sent by the UE in the D2D mode in the embodiment shown in FIG. 13 to FIG. 15 , and the specific working principle is not described herein.
  • the UE in this embodiment enables the second UE to successfully receive the PDCP data packet sent by the UE in the D2D mode in the foregoing embodiment, and avoids the conflict between the PDCP sequence number of the PDCP data packet sent by the base station. Do not drop packets or minimize packet loss during mode switching.
  • FIG. 23 is a schematic structural diagram of a base station according to another embodiment of the present invention. As shown in FIG. 23A, the base station in this embodiment includes: a thirteenth receiving module 231, a second encapsulating module 232, a fourteenth transmitting module 234, and a fifteenth transmitting module 235.
  • the thirteenth receiving module 231 is connected to the first UE, and configured to receive the sending by the first UE.
  • the PDCP data packet is sent to the gateway by the PDCP data packet sent by the first UE, and receives the IP data packet delivered by the gateway according to the PDCP data packet sent by the base station.
  • the second encapsulating module 232 is connected to the thirteenth receiving module 231, and is configured to allocate a PDCP sequence number to the IP data packet sent by the gateway received by the thirteenth receiving module 231, so as to re-encapsulate the IP data packet delivered by the gateway. Into a PDCP packet.
  • the fourteenth sending module 234 is connected to the second encapsulating module 232 and the second UE, and the PDCP data packet used for repackaging the second encapsulating module 232 is sent to the second UE.
  • the fifteenth sending module 235 is connected to the first UE, and is configured to send, to the first UE, a handover instruction that is switched from the cell mode to the D2D mode, to indicate that the first UE is to be the first UE in the cell mode according to the handover instruction.
  • the PDCP data packet that was not successfully transmitted to the second UE and the subsequent PDCP data packet are transmitted to the second UE in the D2D mode.
  • the function modules of the base station in this embodiment can be used to perform the process of the data sending method shown in FIG. 14.
  • the specific working principle is not described here. For details, refer to the description of the method embodiments.
  • the base station in this embodiment sends a handover instruction to the first UE in a process in which the first UE and the second UE use the cell mode to perform communication, so that the first UE is not successfully sent to the second UE from the first UE.
  • the PDCP data packet starts to directly transmit the PDCP data packet to the second UE, so that the communication mode of the first UE and the second UE is switched from the cell mode to the D2D mode.
  • FIG. 23B is a schematic structural diagram of a base station according to another embodiment of the present invention.
  • the embodiment is implemented based on the embodiment shown in FIG. 23A.
  • the second encapsulating module 232 of the embodiment is specifically configured to obtain the IP serial number according to the IP serial number of the IP data packet delivered by the gateway.
  • the PDCP data packet corresponding to the IP data packet sent by the gateway is used to allocate the PDCP sequence number of the obtained PDCP data packet to the IP data packet delivered by the gateway, so as to re-encapsulate the IP data packet delivered by the gateway into a PDCP data packet.
  • the base station in this embodiment further includes: a determining module 236 and a third recording module 233.
  • the determining module 236 is connected to the third recording module 233, and is configured to determine, according to the D2D capability information reported by the first UE and the second UE, whether the first UE and the second UE support the D2D mode at the same time.
  • the third recording module 233 is connected to the thirteenth receiving module 231 and the second encapsulating module 232, and is configured to record, when the determining result of the determining module 236 is YES, the PDCP sequence number of the PDCP data packet sent by the first UE, and the first The correspondence between the IP sequence number of the IP packet in the PDCP packet sent by the UE, the PDCP sequence number of the PDCP packet repackaged, and the IP sequence number of the IP packet in the re-packaged PDCP packet. The correspondence is used by the second encapsulating module 232 to allocate a PDCP sequence number to the IP data packet sent by the gateway.
  • the base station in this embodiment further includes: a sixteenth sending module 237.
  • the sixteenth sending module 237 is connected to the first UE, and is configured to return, to the first UE, a PDCP data packet that is sent by the first UE and has not been sent to the gateway.
  • the base station in this embodiment further includes: a seventeenth sending module 238.
  • the 17th sending module 238 is connected to the third recording module 233 and the second UE, and is configured to restore all or part of the PDCP data packet that has been re-encapsulated and not yet sent to the second UE, and restore the restored PDCP data packet. Send to the second UE or return to the first UE.
  • the base station in this embodiment further includes: an eighteenth sending module 239.
  • the eighteenth sending module 239 is connected to the seventeenth sending module 238 and the first UE, and configured to send a notification message to the first UE to notify the first UE that the PDCP data packet that has not been sent yet needs to be sent to the second UE is sent.
  • the transmission to the second UE is completed.
  • the PDCP data packet that has not been sent and needs to be sent to the second UE is used by the base station to determine various PDCP data packets that need to be sent to the second UE after the handover command is sent, for example, may have been received but not yet reported to the gateway.
  • PDCP packets and The PDCP data packet re-encapsulated by the IP data packet delivered by the gateway may also be all or part of the PDCP data packet that the base station restores according to the recorded correspondence relationship.
  • the base station in this embodiment further includes: a nineteenth sending module 240.
  • the nineteenth sending module 240 is connected to the first UE, and is configured to notify the first UE of a PDCP sequence number of the PDCP data packet that is not successfully sent by the first UE to the second UE.
  • the sixteenth sending module 237 of the embodiment is further configured to: when returning the PDCP data packet to the first UE, send the PDCP sequence number of the returned PDCP data packet to the first UE.
  • the base station in this embodiment further includes: a twentieth sending module 241.
  • the twentieth sending module 241 is configured to be connected to the third recording module 233 and the second UE, and configured to send the corresponding relationship recorded by the third recording module 233 to the second UE, so that the second UE updates the base station that has been successfully received according to the corresponding relationship.
  • the PDCP sequence number of the transmitted PDCP packet is configured to be connected to the third recording module 233 and the second UE, and configured to send the corresponding relationship recorded by the third recording module 233 to the second UE, so that the second UE updates the base station that has been successfully received according to the corresponding relationship.
  • the base station in this embodiment records the PDCP sequence number of the PDCP data packet sent by the first UE and the IP data packet in the PDCP data packet sent by the first UE when the first UE and the second UE use the cell mode to perform communication.
  • the basis of no packet loss or packet loss rate is laid down, so that the communication mode of the first UE and the second UE is switched from the cell mode to the D2D mode, and the packet loss rate is guaranteed.
  • FIG. 24 is a schematic structural diagram of a UE according to another embodiment of the present invention. As shown in FIG. 24A, the UE of this embodiment includes: a fourteenth receiving module 251 and a fifteenth receiving module 252.
  • the fourteenth receiving module 251 is connected to the base station and configured to receive the PDCP data packet sent by the base station.
  • the PDCP data packet sent by the base station is that the base station receives the PDCP data packet sent by the first UE, sends the PDCP data packet sent by the first UE to the gateway, and re-transmits the IP data packet sent by the gateway according to the PDCP data packet sent by the base station.
  • the base station records the PDCP sequence number of the PDCP data packet sent by the first UE, the IP sequence number of the IP data packet in the PDCP data packet sent by the first UE, the PDCP sequence number of the re-packaged PDCP data packet, and re-encapsulation into Correspondence between serial numbers of IP packets in the PDCP packet.
  • the fifteenth receiving module 252 is connected to the first UE, and is configured to receive the PDCP directly sent by the first UE. data pack.
  • the PDCP data packet directly sent by the first UE to the UE of the embodiment is a PDCP data packet sent by the first UE to the UE of the embodiment that is not successfully sent according to the handover command that is switched from the cell mode to the D2D mode sent by the base station. Start sending.
  • the function modules of the UE can be used to perform the process of the data receiving method shown in FIG. 15.
  • the specific working principle is not described here. For details, refer to the description of the method embodiments.
  • the UE in this embodiment is equivalent to the second UE in the embodiment shown in FIG.
  • the UE in this embodiment cooperates with the first UE and the base station, and when the communication mode with the first UE is switched from the cell mode to the D2D mode, the PDCP packet sent by the first UE recorded by the base station in the cell mode is used.
  • the PDCP sequence number, the IP sequence number of the IP data packet in the PDCP data packet sent by the first UE, the PDCP sequence number of the PDCP data packet re-packaged by the base station, and the IP data packet in the PDCP data packet re-packaged by the base station The correspondence between the IP sequence numbers can successfully receive the PDCP data packets sent by the first UE in the D2D mode, and the communication mode between the UEs is switched from the cell mode to the D2D mode.
  • FIG. 24B is a schematic structural diagram of a UE according to another embodiment of the present invention. The embodiment is implemented based on the embodiment shown in FIG. 24A. As shown in FIG. 24B, the UE in this embodiment further includes: a sixteenth receiving module 253.
  • the sixteenth receiving module 253 is configured to be connected to the base station, and configured to receive, by the base station, a PDCP data packet that is generated by restoring the PDCP data packet that is re-packaged and not yet sent to the second UE according to the recorded correspondence relationship.
  • the UE in this embodiment further includes: a seventeenth receiving module 254.
  • the seventeenth receiving module 254 is connected to the base station, and is configured to receive a correspondence sent by the base station, and update a PDCP sequence number of the PDCP data packet sent by the base station that has been successfully received according to the correspondence.
  • the UE in this embodiment solves the problem of conflict between the PDCP data packet sent by the base station and the PDCP sequence number of the PDCP data packet sent by the first UE in the process of switching from the cell mode to the D2D mode by using the foregoing functional modules.
  • the problem of packet loss due to PDCP serial number conflict ensures that no packet loss or packet loss rate is minimized during the communication mode switching process.
  • FIG. 25 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
  • the gateway of this embodiment includes: an eighteenth receiving module 261 and a twenty-first sending module 262.
  • the eighteenth receiving module 261 is connected to the base station, and is configured to receive an IP data packet sent by the base station and sent by the first UE to the second UE, and record an order of receiving the IP data packet.
  • the IP data packet sent by the base station is obtained by decapsulating the PDCP data packet sent by the first UE by the base station, where the IP data packet includes the identifier of the first UE and the identifier of the second UE.
  • the twenty-first sending module 262 is connected to the eighteenth receiving module 261 and the base station, and is configured to process the IP data packet received by the eighteenth receiving module 261, and according to the sequence recorded by the eighteenth receiving module 261.
  • the processed IP data packet is delivered to the base station.
  • the base station may send the re-packaged PDCP data packet to the second UE according to the sequence in which the first UE sends the PDCP data packet.
  • the gateway of this embodiment further includes: a nineteenth receiving module 263.
  • the nineteenth receiving module 263 is connected to the base station and the eighteenth receiving module 261, and configured to receive the identifier of the first UE and the identifier of the second UE that are sent by the base station, and receive the identifier of the first UE and the second UE.
  • the identifier is provided to the eighteenth receiving module 261.
  • the eighteenth receiving module 261 is specifically configured to identify, according to the identifier of the first UE and the identifier of the second UE that is provided by the nineteenth receiving module 263, that the first UE sends the second UE to the second UE.
  • An IP packet and records an order of receiving IP data packets transmitted by the first UE to the second UE.
  • the function modules of the gateway in this embodiment can be used to perform the processing flow of the gateway in the data sending method shown in FIG. 12, and the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the gateway of the embodiment obtains the identifiers of the first UE and the second UE in advance, and identifies and records the receiving sequence of the IP data packets sent by the first UE to the second UE, and then delivers the processing to the base station according to the receiving sequence.
  • the IP data packet is such that the sequence in which the base station receives the PDCP data packet sent by the first UE is the same as the sequence in which the base station sends the PDCP data packet to the second UE, so that the base station is not successfully sent from the first UE to the second UE.
  • the PDCP sequence number of the PDCP sequence of the UE is the same as the PDCP sequence number that is sent by the first UE to the second UE, so that the first UE receives the first
  • the lowest packet loss rate laid the foundation.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

La présente invention concerne un procédé de réception et de transmission de données, un équipement utilisateur (UE), une station de base et une passerelle. Le procédé de transmission de données comprend les étapes suivantes consistant à : le premier UE envoie des paquets de données dans un mode de dispositif à dispositif (D2D) au second UE ; le premier UE reçoit une instruction de transfert envoyée par la station de base ; et le premier UE envoie à la station de base le premier paquet de données transmis au second UE sans succès et dans le mode D2D et des paquets de données suivants, afin que la station de base les retransmette au second UE. Grâce à la solution technique de la présente invention, le transfert entre un mode cellulaire et le mode D2D de l'UE communiquant l'un avec l'autre est ainsi réalisé.
PCT/CN2013/070821 2012-02-08 2013-01-22 Procédé de transmission et de réception de données, équipement utilisateur, station de base et passerelle WO2013117128A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210027524.0A CN103249095B (zh) 2012-02-08 2012-02-08 数据发送、接收方法、用户设备、基站及网关
CN201210027524.0 2012-02-08

Publications (1)

Publication Number Publication Date
WO2013117128A1 true WO2013117128A1 (fr) 2013-08-15

Family

ID=48928259

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070821 WO2013117128A1 (fr) 2012-02-08 2013-01-22 Procédé de transmission et de réception de données, équipement utilisateur, station de base et passerelle

Country Status (2)

Country Link
CN (1) CN103249095B (fr)
WO (1) WO2013117128A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170188410A1 (en) * 2014-07-08 2017-06-29 Nokia Solutions And Networks Oy Asymmetric communication
CN107534958A (zh) * 2015-05-11 2018-01-02 华为技术有限公司 信号传输方法、基站及用户设备
WO2018023511A1 (fr) * 2016-08-03 2018-02-08 Lenovo Innovations Limited (Hong Kong) Transmission de dispositif à dispositif

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9357580B2 (en) * 2013-02-07 2016-05-31 Industrial Technology Research Institute Method for switching communication connection mode, communication system, base station, transmitter and receiver
WO2014169438A1 (fr) * 2013-04-16 2014-10-23 富士通株式会社 Procédé, appareil et système de commutation de mode de communications
KR20160114585A (ko) * 2014-01-31 2016-10-05 엘지전자 주식회사 D2d 통신 시스템에서 아이디 충돌을 해결하는 방법 및 그 장치
CN104936226A (zh) * 2014-03-20 2015-09-23 中兴通讯股份有限公司 设备直通系统的数据传输方法及系统
CN105101309B (zh) * 2014-05-09 2019-01-11 宇龙计算机通信科技(深圳)有限公司 切换方法和切换装置
CN105101327B (zh) * 2014-05-09 2018-10-26 宇龙计算机通信科技(深圳)有限公司 切换方法和切换装置
CN105874755B (zh) * 2014-05-19 2020-01-10 华为技术有限公司 数据包转发处理方法及装置
EP3148251B1 (fr) * 2014-06-17 2018-11-07 Huawei Technologies Co. Ltd. Procédé et dispositif de transmission de données
CN105450358A (zh) * 2014-09-25 2016-03-30 中兴通讯股份有限公司 Mac pdu数量的指示方法及装置
WO2016076510A1 (fr) 2014-11-10 2016-05-19 Lg Electronics Inc. Procédé pour indiquer une indication de chiffrement pour un support radio de liaison latérale dans un système de communication d2d et dispositif associé
US9699154B2 (en) 2015-01-19 2017-07-04 Intel IP Corporation Systems, methods and devices for direct communication using a PC5 protocol
CN107431919A (zh) * 2015-04-07 2017-12-01 华为技术有限公司 用于多流汇聚的方法和装置
CN106162598B (zh) * 2015-04-10 2019-09-17 电信科学技术研究院 一种用户设备到网络中继场景下的通信方法及装置
CN107734704A (zh) * 2016-08-12 2018-02-23 展讯通信(上海)有限公司 用于v2x的资源配置和数据传输方法及装置、基站、终端
CN106357728B (zh) * 2016-08-25 2019-11-08 广州朗国电子科技有限公司 信息处理方法、系统及终端
CN110999441B (zh) * 2017-08-11 2022-09-23 华为技术有限公司 数据传输的方法及相关设备
CN108810177A (zh) * 2018-08-27 2018-11-13 优视科技新加坡有限公司 数据传输方法及其装置
CN110958086B (zh) * 2019-11-28 2021-09-03 北京邮电大学 一种数据传输方法、装置、电子设备以及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472318A (zh) * 2007-12-26 2009-07-01 索尼株式会社 无线通信系统、无线通信设备、无线通信方法和程序
US20100279672A1 (en) * 2009-04-29 2010-11-04 Nokia Corporation Apparatus and Method for Flexible Switching Between Device-to-Device Communication Mode and Cellular Communication Mode
WO2011109027A1 (fr) * 2010-03-05 2011-09-09 Nokia Corporation Transfert d'une communication directe poste à poste

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047967B (zh) * 2006-03-30 2010-12-01 华为技术有限公司 在切换过程中处理数据的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472318A (zh) * 2007-12-26 2009-07-01 索尼株式会社 无线通信系统、无线通信设备、无线通信方法和程序
US20100279672A1 (en) * 2009-04-29 2010-11-04 Nokia Corporation Apparatus and Method for Flexible Switching Between Device-to-Device Communication Mode and Cellular Communication Mode
WO2011109027A1 (fr) * 2010-03-05 2011-09-09 Nokia Corporation Transfert d'une communication directe poste à poste

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170188410A1 (en) * 2014-07-08 2017-06-29 Nokia Solutions And Networks Oy Asymmetric communication
CN107534958A (zh) * 2015-05-11 2018-01-02 华为技术有限公司 信号传输方法、基站及用户设备
EP3270649A4 (fr) * 2015-05-11 2018-04-25 Huawei Technologies Co. Ltd. Procédé de transmission de signal, station de base et équipement utilisateur
WO2018023511A1 (fr) * 2016-08-03 2018-02-08 Lenovo Innovations Limited (Hong Kong) Transmission de dispositif à dispositif
US10986609B2 (en) 2016-08-03 2021-04-20 Lenovo Innovations Limited (Hong Kong) Device-to-device transmission

Also Published As

Publication number Publication date
CN103249095B (zh) 2017-02-08
CN103249095A (zh) 2013-08-14

Similar Documents

Publication Publication Date Title
WO2013117128A1 (fr) Procédé de transmission et de réception de données, équipement utilisateur, station de base et passerelle
JP7267962B2 (ja) 複数のサイト間のデータ分割
US10512009B2 (en) Method for user equipment to switch base station, base station and user equipment
US11412356B2 (en) Charging system and method, and network device
JP2021521736A (ja) 構成方法、データ伝送方法、および装置
TWI762684B (zh) 切換方法、存取網設備和終端設備
WO2016138798A1 (fr) Procédé, appareil et système de transmission de données lors d'une procédure de transfert
US20190075487A1 (en) Communication control method
US20180368194A1 (en) Terminal device, network device, and data transmission method
EP3915213B1 (fr) Noeuds de réseau et procédés de support de connectivité multiple
WO2010121416A1 (fr) Procédé, noeud de relais et système pour traiter des données dans une liaison de relais
WO2010025658A1 (fr) Procédé, dispositif et système de routage d’un réseau de retransmission
WO2016050042A1 (fr) Procédé et dispositif de traitement de données synchrones
WO2014169830A1 (fr) Procédé, dispositif et appareil de changement de cellules
US20220256368A1 (en) Master node, secondary node, and methods therefor
US11973589B2 (en) Mode switching method, data flow splitting method, and apparatus
JP6158951B2 (ja) データ交換方法および装置
WO2018127220A1 (fr) Procédé et dispositif de transfert de données
WO2015062287A1 (fr) Procédé et système d'échange local de terminal
WO2015192317A1 (fr) Procédé et appareil de communication en réseau
WO2021026706A1 (fr) Procédé et appareil de gestion d'interface f1
WO2012103698A1 (fr) Procédé, nœud b évolué, nœud relais et système de communication pour commutation de mode de fonctionnement dans un réseau à relais
CN108307537B (zh) 一种报文交互方法及相关设备
KR102453168B1 (ko) 무선통신 시스템에서 과금 방법 및 장치
CN114071800A (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: 13747123

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13747123

Country of ref document: EP

Kind code of ref document: A1