CN113055425B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN113055425B
CN113055425B CN201911383544.XA CN201911383544A CN113055425B CN 113055425 B CN113055425 B CN 113055425B CN 201911383544 A CN201911383544 A CN 201911383544A CN 113055425 B CN113055425 B CN 113055425B
Authority
CN
China
Prior art keywords
packet
terminal
data
ping
sequence number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911383544.XA
Other languages
Chinese (zh)
Other versions
CN113055425A (en
Inventor
丁卫驾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201911383544.XA priority Critical patent/CN113055425B/en
Publication of CN113055425A publication Critical patent/CN113055425A/en
Application granted granted Critical
Publication of CN113055425B publication Critical patent/CN113055425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection

Landscapes

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

Abstract

The embodiment of the invention provides a data transmission method and device. The method comprises the steps that after a terminal is switched from a source cell to a target cell, the SN of a target data packet which is to be confirmed whether the terminal successfully receives or not is obtained; sending PING packets to a terminal, wherein the SN of one PING packet is the same as that of one target data packet, and the data content of one PING packet comprises the SN of a target data packet corresponding to the PING packet; receiving a second PING packet returned by the terminal under the condition of receiving the first PING packet, wherein SN included in the data content of the first PING packet is the minimum SN in SN of the data packets which are not successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet; and sending the data packet with the SN greater than or equal to the target SN to the terminal, wherein the target SN is the SN included in the data content in the second PING packet. Therefore, the scheme of the invention solves the problem of service interruption caused by that the target cell does not receive the SN state message after the terminal is switched from the source cell to the target cell to a certain extent.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a data transmission method and apparatus.
Background
FTP (File Transfer Protocol) is a standard Protocol for File Transfer over a network, and uses a client/server mode. The FTP is considered as a tool software, for example, a user can conveniently upload an article to a website server through the FTP, and can conveniently download a website file from the server.
In addition, the FTP service has a high requirement for data transmission, and packet loss cannot be avoided. However, in the NR system, after the terminal is handed over from the source cell to the target cell under the condition of performing the FTP service, since the SN status message of the PDCP layer of the source cell is not sent to the PDCP layer of the target cell, the SN (sequence number) of the PDCP layer of the target cell is an initial value, and the SN numbers of the terminal and the target cell are inconsistent, the FTP service is dropped and is not recovered.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and a data transmission device, which aim to solve the problem that service interruption is caused because a target cell does not receive an SN (service number) state message after a terminal is switched from a source cell to the target cell to a certain extent.
In one aspect, an embodiment of the present invention provides a data transmission method, which is applied to a target cell, and the method includes:
after a terminal is switched from a source cell to a target cell, acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives the target data packet;
sending internet packet explorer PING packets to said terminal, wherein the data content of a PING packet includes a sequence number of said target data packet;
receiving a second PING packet returned by the terminal under the condition of receiving a first PING packet, wherein a sequence number included in the data content of the first PING packet is a next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and sending the data packet with the sequence number larger than or equal to a target sequence number to the terminal, wherein the target sequence number is the sequence number included in the data content in the second PING packet.
On the other hand, an embodiment of the present invention provides a data transmission method, which is applied to a terminal, and the method includes:
receiving Internet packet explorer PING packets sent by a target cell, wherein the data content of one PING packet comprises a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives or not;
under the condition that a first PING packet is received, returning a second PING packet to the target cell, wherein a sequence number included in the data content of the first PING packet is a next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and receiving a data packet sent by the target cell, wherein the sequence number of the data packet sent by the target cell is greater than or equal to the sequence number included in the data content in the second PING packet.
In another aspect, an embodiment of the present invention further provides a data transmission apparatus, which is applied to a target cell, where the apparatus includes:
the terminal comprises an acquisition module, a sending module and a receiving module, wherein the acquisition module is used for acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives or not after the terminal is switched from a source cell to a target cell;
a first sending module, configured to send an internet packet explorer PING packet to the terminal, where a data content of a PING packet includes a sequence number of the target data packet;
a first receiving module, configured to receive a second PING packet returned by the terminal when receiving a first PING packet, where a sequence number included in data content of the first PING packet is a next sequence number of a data packet that the terminal has successfully received, and data content of the second PING packet is the same as data content of the first PING packet;
and the second sending module is used for sending the data packet with the sequence number larger than or equal to a target sequence number to the terminal, wherein the target sequence number is the sequence number included in the data content in the second PING packet.
In another aspect, an embodiment of the present invention further provides a data transmission apparatus, which is applied to a terminal, where the apparatus includes:
a second receiving module, configured to receive PING packets sent by a target cell, where a data content of a PING packet includes a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives the PING packet;
a third sending module, configured to return a second PING packet to the target cell when a first PING packet is received, where a sequence number included in data content of the first PING packet is a next sequence number of a data packet that has been successfully received by the terminal, and data content of the second PING packet is the same as data content of the first PING packet;
and a third receiving module, configured to receive a data packet sent by the target cell, where a sequence number of the data packet sent by the target cell is greater than or equal to a sequence number included in the data content in the second PING packet.
In still another aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps in the data transmission method described above are implemented.
In still another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the data transmission method described above.
In the embodiment of the invention, after a terminal is switched from a source cell to a target cell, the sequence number of a target data packet which is to be confirmed whether the terminal successfully receives or not is acquired through the target cell, and the PING packets are sent to the terminal, wherein the data content of one PING packet comprises the sequence number of one target data packet, and when the terminal receives a first PING packet carrying the minimum sequence number in the sequence numbers of the data packets which are not received by the terminal, a second PING packet is returned to the target cell, wherein, as the data content of a PING request (namely the first PING packet) is consistent with that of a PING reply (namely the second PING packet), and the data content of the PING request comprises the minimum sequence number in the sequence numbers of the data packets which are not received by the terminal, after the target cell receives the PING reply sent by the terminal, the terminal can be clear from which sequence number the data packet in the target data is not successfully received by the terminal, therefore, the target data can be sent to the terminal from the serial number, complete transmission of the data is realized, service interruption is avoided, and the problem of service interruption caused by the fact that the target cell does not receive the SN state message after the terminal is switched from the source cell to the target cell is solved to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a data transmission method according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating steps of a data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 5 is a second block diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to A" means that B is associated with A from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
As shown in fig. 1, an embodiment of the present invention provides a data transmission method, which is applied to a target cell, and the method includes:
step 101: and after the terminal is switched from the source cell to the target cell, acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives.
After the terminal is switched from the source cell to the target cell, the communication connection between the terminal and the source cell is disconnected, and the communication connection between the terminal and the target cell is established, so that data transmission cannot be continued between the terminal and the source cell at this time, however, if data which needs to be sent to the terminal still exists at this time, the source cell will switch the unsent part of the data to the target cell, and the data is sent to the terminal by the target cell. However, there may be data that is not successfully received by the terminal due to the progress of cell handover in the data before the part of data that is not sent to the terminal, and therefore, in order to avoid service interruption caused by data loss, in the embodiment of the present invention, it is necessary to acquire which data packets are data packets that need to be further confirmed whether the terminal successfully receives, that is, to determine from which data packet the terminal unsuccessfully receives.
Optionally, the obtaining a sequence number of a target data packet to be confirmed whether the terminal successfully receives includes:
acquiring the minimum sequence number in the sequence numbers of the first data packets which are not sent to the terminal by the source cell after the terminal is switched from the source cell to the target cell;
acquiring a difference value between the minimum sequence number in the sequence numbers of the first data packet and the size of a window for transmitting the data packet;
and determining the sequence number of the target data packet from the minimum sequence number in the sequence numbers of the first data packet to the sequence number represented by the difference value.
When a cell sends a data packet to a terminal, the data packet is sent according to the size of a window for transmitting the data packet, that is, after the data packet in one window is sent, the data in the next window is sent, so that the length of one window is extended forward (i.e., in a direction of decreasing the SN) from the minimum SN in the SNs in the first data packet which is not sent to the terminal by the source cell, and the data packet included in the extended window is the target data packet to be confirmed whether the terminal successfully receives.
Optionally, after the terminal is switched from the source cell to the target cell, acquiring a sequence number of a target data packet to be confirmed whether the terminal successfully receives the target data packet includes:
when the terminal is switched from a source cell to a target cell, starting a preset timer;
and under the condition that the serial number state message sent by the source cell is not received when the timer is overtime, acquiring the serial number of a target data packet to be confirmed whether the terminal successfully receives.
Wherein, the sequence number status message is used to indicate the minimum sequence number in the sequence numbers of the data packets that the target cell needs to send to the terminal.
Therefore, in the embodiment of the present invention, after the terminal is switched from the source cell to the target cell, the target cell starts a timer, and if before the timer expires, the target cell receives the SN status message sent by the source cell, that is, the target cell already determines from which SN the terminal has started to unsuccessfully receive data, the target cell starts to send a data packet to the terminal from the SN indicated by the SN status message; if the target cell does not receive the SN status message sent by the source cell when the timer is overtime, the target cell needs to send data to the terminal according to the data transmission method of the embodiment of the present invention, and obtain the SN of the target data packet to be confirmed whether the terminal successfully receives, so that the subsequent steps 102 to 104 can be performed to determine from which SN data packet the terminal unsuccessfully receives, and start sending the data packet to the terminal from this SN data packet.
In addition, because the FTP service or the data transmission in the AM mode has a strict requirement on data transmission, a data packet cannot be dropped, otherwise, the service is interrupted, and the data transmission in other services or other modes can allow a certain packet loss rate without causing service interruption, if the terminal is switched from the source cell to the target cell in the service or mode that allows a certain packet loss rate and the target cell does not receive the SN status message sent by the source cell, the data transmission method of the embodiment of the present invention is not used, and the service interruption due to the fact that the target cell does not receive the SN status message sent by the source cell is also avoided. For the data transmission of the FTP service and the AM mode, under the condition that the terminal is switched from the source cell to the target cell and the target cell does not receive the SN status message sent by the source cell, the data transmission method of the embodiment of the present invention needs to be adopted to perform data transmission to ensure complete transmission of data, thereby avoiding service interruption.
Step 102: and sending an Internet packet explorer PING packet to the terminal.
The SN of one PING packet is the same as that of one target data packet, and the data content of one PING packet comprises the SN of the target data packet corresponding to the PING packet.
In the embodiment of the invention, the PING packet PING terminal is simulated by the target cell to see which data packet has a response, so that the terminal can be determined from which data packet of the SN the data packet is not successfully received.
Optionally, the sending the internet packet finder PING packet to the terminal includes:
and sending the PING packet to the terminal by adopting a dichotomy from the minimum sequence number in the sequence numbers of the target data packets.
For example, if the SN of the target data packet is from 4 to 20, the PING packet is sent to the terminal by using binary method, which may be as follows:
firstly, generating a PING packet with SN4, filling SN4 in the data content of the PING packet, sending the PING packet to a terminal, after the terminal receives the PING packet, analyzing the SN of the PING packet, and judging whether the PING packet needs to be received (namely judging whether the SN of the PING packet is the next SN of the received data packet), if not, the terminal does not respond;
secondly, within a certain time after the PING packet with SN4 is sent, if the target cell does not receive the response, a PING packet with SN8 is generated, SN8 is filled in the data content of the PING packet, the PING packet is sent to the terminal, after the terminal receives the PING packet, the SN of the PING packet is analyzed, whether the reception is needed or not is judged (namely, whether the SN of the PING packet is the next SN of the received data packet or not is judged), and if not, the terminal does not respond;
thirdly, within a certain time after the PING packet with the SN of 8 is sent, if the target cell does not receive a response, generating a PING packet with the SN of 6, filling the SN6 in the data content of the PING packet, sending the PING packet to the terminal, after receiving the PING packet, analyzing the SN of the PING packet by the terminal, and judging whether the PING packet needs to be received (i.e. judging whether the SN of the PING packet is the next SN of the data packet already received by the terminal), if so, replying the terminal to the target cell with a PING packet, wherein the data content of the PING packet replied to the target cell by the terminal includes SN 6;
and finally, the target cell receives the PING packet replied by the terminal, reads the data content of the PING packet, acquires the SN6, and sends the data packet to the terminal from the data packet with the SN of 6.
As can be seen from the above, if a PING packet is sent by a dichotomy, if a reply is not received after a certain time of sending the PING packet, it indicates that the SN of the target packet corresponding to the PING packet sent this time is not the next SN of the packet already received by the terminal, and the SN after the SN of the target packet corresponding to the PING packet sent this time is more unlikely to be the next SN of the packet already received by the terminal, and a SN before the SN of the target packet corresponding to the PING packet sent this time can be selected to send the next PING packet, so as to reduce the sending times of the PING packet, reduce the determination time for determining from which SN the data packet the terminal has not successfully received, and further speed up the data transmission time.
Optionally, the sending the internet packet finder PING packet to the terminal includes:
and the packet data convergence protocol PDCP layer of the target cell generates a PING packet and sends the PING packet to the terminal.
Therefore, in the embodiment of the present invention, a PING packet may be generated by the PDCP layer of the target cell and sent to the PDCP layer of the terminal, where a PDCP header (i.e., SN) of a PING packet generated by the PDCP layer of the target cell is the same as the SN of one piece of target data, and the data content of the PING packet is its own PDCP header.
Step 103: and receiving a second PING packet returned by the terminal under the condition of receiving the first PING packet.
And the data content of the second PING packet is the same as the data content of the first PING packet.
In the embodiment of the invention, after receiving the PING packet, the terminal analyzes the PING packet, judges whether the SN of the PING packet is the next SN of the received data packet, and returns a PING packet to the target cell if the SN of the PING packet is the next SN of the received data packet.
The data content of the PING request (namely the PING packet sent to the terminal by the target cell) is consistent with that of the PING reply (namely the PING packet sent to the target cell by the terminal), and the data content of the PING request comprises the next SN of the data packet already received by the terminal, so that after the PING reply sent by the terminal is received by the target cell, the target cell can determine which SN data packet in the target data is not successfully received by the terminal, and can send the target data to the terminal from the SN, complete transmission of the data is realized, service interruption is avoided, and the problem that the service interruption is caused by the fact that the target cell does not receive SN state information after the terminal is switched from the source cell to the target cell is solved.
Step 104: and sending the data packet with the sequence number larger than or equal to the target sequence number to the terminal.
The target SN is an SN included in the data content in the second PING packet. And the data content of the second PING packet is the same as that of the first PING packet, and the SN included in the data content of the first PING packet is the next SN of the data packet that the terminal has successfully received, so that after the target cell acquires the second PING packet returned by the terminal, the target cell can send the data packet to the terminal from the SN included in the data content of the second PING packet.
In summary, in the embodiments of the present invention, after a terminal is handed over from a source cell to a target cell, the target cell acquires, through the target cell, SNs of target data packets to be confirmed whether the terminal successfully receives the target data packets, and sends PING packets to the terminal, where a data content of one PING packet includes an SN of one target data packet, and when the terminal receives a first PING packet carrying a minimum SN of SNs of data packets that the terminal does not receive, a second PING packet is returned to the target cell, where, since data contents of a PING request (i.e., the first PING packet) and a PING reply (i.e., the second PING packet) are consistent, and a data content of the PING request includes the minimum SN of the data packets that the terminal does not receive, after the target cell receives a PING reply sent by the terminal, it can be determined from which SN data packet in the target data packet the terminal did not successfully receive, and thus the target cell can start from the SN, target data is sent to the terminal, complete transmission of the data is achieved, service interruption is avoided, and the problem that service interruption is caused because the target cell does not receive the SN state message after the terminal is switched from the source cell to the target cell is solved to a certain extent.
As shown in fig. 2, an embodiment of the present invention provides a data transmission method, which is applied to a terminal, and the method includes:
step 201: and receiving an Internet packet explorer PING packet sent by the target cell.
The data content of a PING packet includes a sequence number of a destination packet, which is a packet to be confirmed whether the terminal successfully receives the packet.
After the terminal is switched from the source cell to the target cell, the communication connection between the terminal and the source cell is disconnected, and the communication connection between the terminal and the target cell is established, so that data transmission cannot be continued between the terminal and the source cell at this time, however, if data which needs to be sent to the terminal still exists at this time, the source cell will switch the unsent part of the data to the target cell, and the data is sent to the terminal by the target cell. However, there may be data that is not successfully received by the terminal due to the progress of cell handover in the data before the part of data that is not sent to the terminal, and therefore, in order to avoid service interruption caused by data loss, in the embodiment of the present invention, it is necessary to acquire which data packets are data packets that need to be further confirmed whether the terminal successfully receives, that is, to determine from which data packet the terminal unsuccessfully receives.
And after the target cell acquires the SN of the target data packet which needs to be confirmed whether the terminal successfully receives, simulating a PING packet PING terminal to see which data packet has a response, thereby determining from which SN data packet the terminal unsuccessfully receives.
Optionally, the receiving an internet packet finder PING packet sent by the target cell includes:
and receiving a PING packet sent by the target cell by adopting a dichotomy according to the sequence number of the target data packet.
The method adopts the dichotomy to send the PING packets, can indicate that the SN of the target data packet corresponding to the PING packet sent this time is not the next SN of the data packet already received by the terminal under the condition that a reply is not received after the PING packet is sent for a certain time, and the SN after the SN of the target data packet corresponding to the PING packet sent this time is more unlikely to be the next SN of the data packet already received by the terminal, so that one SN before the SN of the target data packet corresponding to the PING packet sent this time can be selected to send the next PING packet, thereby reducing the sending times of the PING packets, reducing the determination time for determining which SN data packet the terminal unsuccessfully receives from, and further accelerating the data transmission time.
Optionally, the receiving an internet packet finder PING packet sent by the target cell includes:
and the PDCP layer of the terminal receives a PING packet generated by the PDCP layer of the target cell.
Therefore, in the embodiment of the present invention, a PING packet may be generated by the PDCP layer of the target cell and sent to the PDCP layer of the terminal, where a PDCP header (i.e., SN) of a PING packet generated by the PDCP layer of the target cell is the same as the SN of one piece of target data, and the data content of the PING packet is its own PDCP header.
Step 202: and returning a second PING packet to the target cell under the condition of receiving the first PING packet.
Wherein, the sequence number included in the data content of the first PING packet is the next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as the data content of the first PING packet.
In the embodiment of the invention, after receiving the PING packet, the terminal analyzes the PING packet, judges whether the SN of the PING packet is the next SN of the received data packet, and returns a PING packet to the target cell if the SN of the PING packet is the next SN of the received data packet.
The data content of the PING request (namely the PING packet sent to the terminal by the target cell) is consistent with that of the PING reply (namely the PING packet sent to the target cell by the terminal), and the data content of the PING request comprises the next SN of the data packet already received by the terminal, so that after the PING reply sent by the terminal is received by the target cell, the target cell can determine which SN data packet in the target data is not successfully received by the terminal, and can send the target data to the terminal from the SN, complete transmission of the data is realized, service interruption is avoided, and the problem that the service interruption is caused by the fact that the target cell does not receive SN state information after the terminal is switched from the source cell to the target cell is solved.
Step 203: and receiving a data packet sent by the target cell, wherein the sequence number of the data packet sent by the target cell is greater than or equal to the sequence number included in the data content in the second PING packet.
After receiving a second PING packet sent by the terminal, the target cell sends a data packet to the terminal from an SN included in data content in the second PING packet, so that complete transmission of data is realized, service interruption is avoided, and the problem of service interruption caused by the fact that the target cell does not receive an SN state message after the terminal is switched from the source cell to the target cell is solved.
In summary, in the embodiments of the present invention, after a terminal is handed over from a source cell to a target cell, the target cell acquires, through the target cell, SNs of target data packets to be confirmed whether the terminal successfully receives the target data packets, and sends PING packets to the terminal, where a data content of one PING packet includes an SN of one target data packet, and when the terminal receives a first PING packet carrying a minimum SN of SNs of data packets that the terminal does not receive, a second PING packet is returned to the target cell, where, since data contents of a PING request (i.e., the first PING packet) and a PING reply (i.e., the second PING packet) are consistent, and a data content of the PING request includes the minimum SN of the data packets that the terminal does not receive, after the target cell receives a PING reply sent by the terminal, it can be determined from which SN data packet in the target data packet the terminal did not successfully receive, and thus the target cell can start from the SN, target data is sent to the terminal, complete transmission of the data is achieved, service interruption is avoided, and the problem that service interruption is caused because the target cell does not receive the SN state message after the terminal is switched from the source cell to the target cell is solved to a certain extent.
In summary, the specific implementation manner of the data transmission method according to the embodiment of the present invention can be as shown in fig. 3, and is specifically described as follows:
firstly: the target cell judges whether the target cell is in the AM mode or not, if so, a timer is started, and if not, the target cell exits; before the timer is overtime, if the target cell receives the SN state message sent by the source cell, the timer is stopped.
When the timer is overtime, if the target cell does not receive the SN state message sent by the source cell, acquiring the SN of a target data packet which is successfully received by the terminal to be confirmed, and sending an Internet packet explorer PING packet to the terminal, wherein the SN of one PING packet is the same as the SN of one target data packet, the data content of one PING packet comprises the SN of one target data packet corresponding to the PING packet, after the terminal receives the PING packet, the terminal judges whether the SN of the PING packet is the next SN of the data packet which the terminal has received, and if so, the terminal returns PING to the target cell.
That is, when the timer times out, if the target cell does not receive the SN status message sent by the source cell, the target cell simulates a downlink PING packet dichotomy to send to the terminal to obtain from which SN data packet the terminal did not receive, so as to update the SN status as a numerical value in the data content of the terminal response data packet, and further send data to the terminal according to the updated SN status.
The data transmission method provided by the embodiment of the present invention is described above, and a data transmission apparatus provided by the embodiment of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 4, an embodiment of the present invention further provides a data transmission apparatus, which is applied to a target cell, where the data transmission apparatus 40 includes:
an obtaining module 401, configured to obtain a sequence number of a target data packet to be determined whether a terminal successfully receives the sequence number after the terminal is switched from a source cell to a target cell;
a first sending module 402, configured to send an internet packet explorer PING packet to the terminal, wherein a data content of a PING packet includes a sequence number of the target data packet;
a first receiving module 403, configured to receive a second PING packet returned by the terminal when receiving a first PING packet, where a sequence number included in data content of the first PING packet is a next sequence number of a data packet that the terminal has successfully received, and data content of the second PING packet is the same as data content of the first PING packet;
a second sending module 404, configured to send, to the terminal, a data packet with a sequence number greater than or equal to a target sequence number, where the target sequence number is a sequence number included in data content in the second PING packet.
Optionally, the obtaining module 401 includes:
a first obtaining unit, configured to obtain a minimum sequence number of sequence numbers of a first data packet that is not sent to the terminal by the source cell after the terminal is switched from the source cell to the target cell;
a second obtaining unit, configured to obtain a difference between a minimum sequence number in the sequence numbers of the first data packet and a size of a window used for transmitting the data packet;
a determining unit, configured to determine a sequence number represented by the difference from a minimum sequence number in the sequence numbers of the first data packet to the sequence number indicated by the difference, as the sequence number of the target data packet.
Optionally, the sending the internet packet finder PING packet to the terminal includes:
and sending the PING packet to the terminal by adopting a dichotomy from the minimum sequence number in the sequence numbers of the target data packets.
Optionally, the first sending module 402 includes:
and the first sending unit is used for controlling a packet data convergence protocol PDCP layer of the target cell to generate a PING packet and sending the PING packet to the terminal.
Optionally, the obtaining module 401 includes:
a timer starting unit, configured to start a preset timer when the terminal is handed over from a source cell to a target cell;
a third obtaining unit, configured to obtain, when the timer expires and a serial number status message sent by the source cell is not received, a serial number of a target data packet to be determined whether the terminal successfully receives the target data packet.
The data transmission device provided in the embodiment of the present invention can implement each process implemented by the base station side in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
Referring to fig. 5, an embodiment of the present invention further provides a data transmission apparatus, which is applied to a terminal, where the data transmission apparatus 50 includes:
a second receiving module 501, configured to receive PING packets sent by a target cell, where a data content of a PING packet includes a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives the PING packet;
a third sending module 502, configured to return a second PING packet to the target cell when a first PING packet is received, where a sequence number included in data content of the first PING packet is a next sequence number of a data packet that the terminal has successfully received, and data content of the second PING packet is the same as data content of the first PING packet;
a third receiving module 503, configured to receive the data packet sent by the target cell, where a sequence number of the data packet sent by the target cell is greater than or equal to a sequence number included in the data content in the second PING packet.
On the other hand, the embodiment of the present invention further provides an electronic device, which includes a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the steps in the data transmission method are implemented.
For example, fig. 6 shows a schematic physical structure diagram of an electronic device.
As shown in fig. 6, the electronic device may include: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to perform the following method:
after a terminal is switched from a source cell to a target cell, acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives the target data packet;
sending internet packet explorer PING packets to said terminal, wherein the data content of a PING packet includes a sequence number of said target data packet;
receiving a second PING packet returned by the terminal under the condition of receiving a first PING packet, wherein a sequence number included in the data content of the first PING packet is a next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and sending the data packet with the sequence number larger than or equal to a target sequence number to the terminal, wherein the target sequence number is the sequence number included in the data content in the second PING packet.
Alternatively, the first and second electrodes may be,
receiving Internet packet explorer PING packets sent by a target cell, wherein the data content of one PING packet comprises a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives or not;
under the condition that a first PING packet is received, returning a second PING packet to the target cell, wherein a sequence number included in the data content of the first PING packet is a next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and receiving a data packet sent by the target cell, wherein the sequence number of the data packet sent by the target cell is greater than or equal to the sequence number included in the data content in the second PING packet.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In still another aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to, when executed by a processor, perform the data transmission method provided in the foregoing embodiments, for example, including:
after a terminal is switched from a source cell to a target cell, acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives the target data packet;
sending internet packet explorer PING packets to said terminal, wherein the data content of a PING packet includes a sequence number of said target data packet;
receiving a second PING packet returned by the terminal under the condition of receiving a first PING packet, wherein a sequence number included in the data content of the first PING packet is a next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and sending the data packet with the sequence number larger than or equal to a target sequence number to the terminal, wherein the target sequence number is the sequence number included in the data content in the second PING packet.
Or
Receiving Internet packet explorer PING packets sent by a target cell, wherein the data content of one PING packet comprises a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives or not;
under the condition that a first PING packet is received, returning a second PING packet to the target cell, wherein a sequence number included in the data content of the first PING packet is a next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and receiving a data packet sent by the target cell, wherein the sequence number of the data packet sent by the target cell is greater than or equal to the sequence number included in the data content in the second PING packet.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data transmission method is applied to a target cell, and is characterized in that the data transmission method comprises the following steps:
after a terminal is switched from a source cell to a target cell, acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives the target data packet;
sending PING packets of an internet packet explorer to the terminal, wherein the sequence number of one PING packet is the same as that of one target data packet, and the data content of one PING packet comprises the sequence number of the target data packet corresponding to the PING packet;
receiving a second PING packet returned by the terminal under the condition of receiving the first PING packet, wherein the second PING packet is used for transmitting the first PING packet to the terminalTerminal reception Analyzing the first PING packet, and judging whether the sequence number of the first PING packet is the sequence number of the received data packet The next sequence number, if yes, returning to the target cellThe second PING packetThe sequence number included in the data content of the first PING packet is the next sequence number of the data packet which is successfully received by the terminal, and the data content of the second PING packet is the same as the data content of the first PING packet;
and sending the data packet with the sequence number larger than or equal to a target sequence number to the terminal, wherein the target sequence number is the sequence number included in the data content in the second PING packet.
2. The data transmission method according to claim 1, wherein the obtaining of the sequence number of the target packet to be confirmed whether the terminal successfully receives the target packet comprises:
acquiring the minimum sequence number in the sequence numbers of the first data packets which are not sent to the terminal by the source cell after the terminal is switched from the source cell to the target cell;
acquiring a difference value between the minimum sequence number in the sequence numbers of the first data packet and the size of a window for transmitting the data packet;
and determining the sequence number of the target data packet from the minimum sequence number in the sequence numbers of the first data packet to the sequence number represented by the difference value.
3. The data transmission method according to claim 1, wherein the sending of the internet packet explorer PING packet to the terminal comprises:
and sending the PING packet to the terminal by adopting a dichotomy from the minimum sequence number in the sequence numbers of the target data packets.
4. The data transmission method according to claim 1, wherein the sending of the internet packet explorer PING packet to the terminal comprises:
and the packet data convergence protocol PDCP layer of the target cell generates a PING packet and sends the PING packet to the terminal.
5. The data transmission method according to claim 1, wherein after the terminal is handed over from the source cell to the target cell, acquiring a sequence number of a target data packet to be confirmed whether the terminal successfully receives the target data packet, includes:
when the terminal is switched from a source cell to a target cell, starting a preset timer;
and under the condition that the serial number state message sent by the source cell is not received when the timer is overtime, acquiring the serial number of a target data packet to be confirmed whether the terminal successfully receives.
6. A data transmission method is applied to a terminal, and is characterized in that the data transmission method comprises the following steps:
receiving Internet packet explorer PING packets sent by a target cell, wherein the data content of one PING packet comprises a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives or not;
returning a second PING packet to the target cell upon receiving a first PING packet, wherein the first PING packet is transmitted to the target cell in a first cell-to-cell mannerTerminal reception Analyzing the first PING packet, and judging whether the sequence number of the first PING packet is the sequence number of the received data packet If so, returning the second PING packet to the target cell,the data content of the first PING packet comprises a sequence number which is the next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and receiving a data packet sent by the target cell, wherein the sequence number of the data packet sent by the target cell is greater than or equal to the sequence number included in the data content in the second PING packet.
7. A data transmission apparatus applied to a target cell, the data transmission apparatus comprising:
the terminal comprises an acquisition module, a sending module and a receiving module, wherein the acquisition module is used for acquiring a serial number of a target data packet to be confirmed whether the terminal successfully receives or not after the terminal is switched from a source cell to a target cell;
a first sending module, configured to send an internet packet explorer PING packet to the terminal, where a data content of a PING packet includes a sequence number of the target data packet;
a first receiving module, configured to receive a second PING packet returned by the terminal when receiving the first PING packet, where the first receiving module is configured to receive the second PING packet returned by the terminal when receiving the first PING packetThe terminal analyzes after receiving the first PING packet and judges whether the sequence number of the first PING packet is received If so, returning the second PING packet to the target cell,the data content of the first PING packet comprises a sequence number which is the next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and the second sending module is used for sending the data packet with the sequence number larger than or equal to a target sequence number to the terminal, wherein the target sequence number is the sequence number included in the data content in the second PING packet.
8. A data transmission apparatus applied to a terminal, the data transmission apparatus comprising:
a second receiving module, configured to receive PING packets sent by a target cell, where a data content of a PING packet includes a sequence number of a target data packet, and the target data packet is a data packet to be confirmed whether the terminal successfully receives the PING packet;
a third sending module, configured to return a second PING packet to the target cell when the first PING packet is received, where the second PING packet is sent to the target cellThe terminal analyzes after receiving the first PING packet and judges whether the sequence number of the first PING packet is received If so, returning the second PING packet to the target cell,the data content of the first PING packet comprises a sequence number which is the next sequence number of the data packet successfully received by the terminal, and the data content of the second PING packet is the same as that of the first PING packet;
and a third receiving module, configured to receive a data packet sent by the target cell, where a sequence number of the data packet sent by the target cell is greater than or equal to a sequence number included in the data content in the second PING packet.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when executed by the processor, implements the data transmission method of any one of claims 1 to 5 or the steps of the data transmission method of claim 6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to one of claims 1 to 5 or the steps of the data transmission method according to claim 6.
CN201911383544.XA 2019-12-27 2019-12-27 Data transmission method and device Active CN113055425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911383544.XA CN113055425B (en) 2019-12-27 2019-12-27 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911383544.XA CN113055425B (en) 2019-12-27 2019-12-27 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN113055425A CN113055425A (en) 2021-06-29
CN113055425B true CN113055425B (en) 2022-04-05

Family

ID=76507225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911383544.XA Active CN113055425B (en) 2019-12-27 2019-12-27 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN113055425B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968524A (en) * 2006-06-28 2007-05-23 华为技术有限公司 Method for shortening high-speed downlink packet access service time-delay in affirmance mode
CN101267440A (en) * 2008-05-07 2008-09-17 中兴通讯股份有限公司 No damage relocation method and system
CN101448278A (en) * 2007-11-26 2009-06-03 大唐移动通信设备有限公司 Protocol simulator and method for testing user equipment thereby
CN102461258A (en) * 2009-06-17 2012-05-16 交互数字专利控股公司 Method and apparatus for performing handover with relay node
CN103313325A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Switching method and device and data processing method and device
CN103888215A (en) * 2012-12-21 2014-06-25 华为技术有限公司 Data transmission method, apparatus and communication system
CN104041119A (en) * 2012-03-13 2014-09-10 株式会社Ntt都科摩 Wireless base station and mobile station
CN104521166A (en) * 2012-08-07 2015-04-15 华为技术有限公司 Method, device, and system for data transmission
CN104684031A (en) * 2015-02-12 2015-06-03 大唐移动通信设备有限公司 Method and device for coordinating base station and terminal serial numbers
CN107920036A (en) * 2016-10-09 2018-04-17 大唐移动通信设备有限公司 One kind reorders window regulation method and device
CN108632933A (en) * 2017-03-23 2018-10-09 展讯通信(上海)有限公司 Data transmission method, device and user equipment
CN109905206A (en) * 2017-12-07 2019-06-18 夏普株式会社 Wireless communications method and equipment
CN109977027A (en) * 2019-04-04 2019-07-05 广州市百果园信息技术有限公司 A kind of method, apparatus of performance test, system, equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968524A (en) * 2006-06-28 2007-05-23 华为技术有限公司 Method for shortening high-speed downlink packet access service time-delay in affirmance mode
CN101448278A (en) * 2007-11-26 2009-06-03 大唐移动通信设备有限公司 Protocol simulator and method for testing user equipment thereby
CN101267440A (en) * 2008-05-07 2008-09-17 中兴通讯股份有限公司 No damage relocation method and system
CN102461258A (en) * 2009-06-17 2012-05-16 交互数字专利控股公司 Method and apparatus for performing handover with relay node
CN103313325A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Switching method and device and data processing method and device
CN104041119A (en) * 2012-03-13 2014-09-10 株式会社Ntt都科摩 Wireless base station and mobile station
CN104521166A (en) * 2012-08-07 2015-04-15 华为技术有限公司 Method, device, and system for data transmission
CN103888215A (en) * 2012-12-21 2014-06-25 华为技术有限公司 Data transmission method, apparatus and communication system
CN104684031A (en) * 2015-02-12 2015-06-03 大唐移动通信设备有限公司 Method and device for coordinating base station and terminal serial numbers
CN107920036A (en) * 2016-10-09 2018-04-17 大唐移动通信设备有限公司 One kind reorders window regulation method and device
CN108632933A (en) * 2017-03-23 2018-10-09 展讯通信(上海)有限公司 Data transmission method, device and user equipment
CN109905206A (en) * 2017-12-07 2019-06-18 夏普株式会社 Wireless communications method and equipment
CN109977027A (en) * 2019-04-04 2019-07-05 广州市百果园信息技术有限公司 A kind of method, apparatus of performance test, system, equipment and storage medium

Also Published As

Publication number Publication date
CN113055425A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN111294752B (en) Method and device for determining candidate resources for V2X transmission, storage medium and user equipment
EP2991440B1 (en) Method and device for connecting to network
CA3006394C (en) Status detection method and wireless network node
CN111224999A (en) Transmission protocol switching method, device, equipment and storage medium
CN107567107B (en) Data transmission method and device
EP3099111A1 (en) Data processing method, device and system
CN110719616A (en) Network switching method and device, storage medium and electronic equipment
CN110140316B (en) Method for transmitting RLC layer status report control PDU and related equipment
CN112040520A (en) Network switching method, device, terminal equipment and computer storage medium
EP3477997B1 (en) Method for controlling data transmission, device, and storage medium
US11438942B2 (en) Method for establishing tunnel between local gateways, and gateway
CN113271687B (en) Data transmission method, service base station and anchor point base station
CN111757393B (en) Method and apparatus for random access
CN113055425B (en) Data transmission method and device
US10412778B2 (en) Data transmission method and apparatus for data service
CN107431965B (en) Method and device for realizing Transmission Control Protocol (TCP) transmission
CN109905901B (en) Network selection method and device and computer readable storage medium
CN114125023B (en) Method and device for determining data connection, storage medium and electronic device
CN115038115A (en) Data transmission method, device, electronic equipment, storage medium and product
US9094879B2 (en) Handover method of wireless communication system, and wireless base station and wireless terminal of the same system
CN111726819B (en) Method and device for establishing and updating base station link
CN109451596B (en) Data transmission method and related device
CN109845363B (en) Path conversion method and related equipment
CN107567059B (en) Method and device for processing switching request response message
CN109982394B (en) Signaling interaction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant