WO2020108540A1 - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- WO2020108540A1 WO2020108540A1 PCT/CN2019/121324 CN2019121324W WO2020108540A1 WO 2020108540 A1 WO2020108540 A1 WO 2020108540A1 CN 2019121324 W CN2019121324 W CN 2019121324W WO 2020108540 A1 WO2020108540 A1 WO 2020108540A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- access network
- network device
- terminal device
- voice
- voice packet
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 114
- 230000005540 biological transmission Effects 0.000 title claims abstract description 66
- 238000004891 communication Methods 0.000 claims abstract description 30
- 239000000872 buffer Substances 0.000 claims description 105
- 238000005259 measurement Methods 0.000 claims description 6
- 230000001934 delay Effects 0.000 claims description 3
- 238000013461 design Methods 0.000 description 24
- 230000008569 process Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 20
- 238000012545 processing Methods 0.000 description 20
- 230000006870 function Effects 0.000 description 13
- 230000003111 delayed effect Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 8
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
Definitions
- This application relates to the field of communication technology, and in particular, to a data transmission method and device.
- a jitter buffer (Jitter buffer) is set in the UE to eliminate jitter.
- the second UE sets a Jitter buffer to eliminate jitter
- packet loss may occur, resulting in an average subjective opinion score (mean opinion Score, MOS) points fell.
- MOS mean opinion Score
- the first base station to which the first UE belongs has no buffered voice packets before it can continue to be sent, and gNB2 generally does not
- the buffered voice packets can continue to be sent, causing the second UE to receive no data for a period of time, which has a serious impact on the MOS points, and the first UE accumulates multiple voice packets during the handover process. After the first UE completes the cell handover, the accumulated multiple voice packets are sent to the second UE in one scheduling.
- the Jitter Buffer size of a general UE is set to 2 to 3 voice packets, and voice packets exceeding this limit will be discarded.
- the second UE when the second UE is in downlink weak coverage or cell handover, downlink data is interrupted, and voice packets are buffered in the PDCP buffer of the base station to which the second UE belongs, resulting in interruption of the second UE communication. Moreover, once the air interface of the second UE is restored, the voice packet buffered by the base station will be delivered to the second UE at a time. When the number of accumulated voice packets exceeds the size of Jitter Buffer, packet loss will result.
- the present application provides a data transmission method and device to solve the problems of communication interruption and packet loss caused by a long cell switching time of a terminal device.
- the present application provides a data transmission method.
- the method is applied in a voice call scenario.
- the method can be applied to a first access network device, or a chip of a first access network device, or a first access
- the method applied to the first access network device includes: the first access network device receives a voice packet from a first terminal device, and the first access network device is the first terminal device Access network equipment for access.
- the first access network device caches the voice packet in a preset buffer area, and sequentially sends the voice packets buffered in the preset buffer area to the second through the second access network device according to the chronological order of reception Terminal device, the second access network device is an access network device accessed by the second terminal device.
- the first access network device may cache the voice packet sent by the first terminal device in a preset buffer area, and then send it to the second access network device in sequence.
- the first access network device may send the voice packet buffered in the preset buffer area to the second access network device, so that the second terminal device During the handover of the first terminal device, a voice packet may also be received, thereby reducing the interruption of the voice of the second terminal device.
- the first access network device when the network connection between the first terminal device and the first access network device is restored, the first access network device first buffers the voice packet accumulated in the first terminal device during the interruption period in the preset buffer area , And then send it to the second access network device in sequence.
- the first access network device sends all the voice packets accumulated by the first terminal device during the interruption to the second terminal device in one transmission process,
- the embodiment of the present application can avoid the phenomenon of packet loss caused by too many voice packets received by the second terminal device to a certain extent.
- the voice packet sent by the first terminal device to the second terminal device is first buffered in the first In the preset buffer area of an access network device, the first access network device sequentially sends to the second access network device, as compared with the prior art, the first access network device directly sends all to the second access Network device.
- the first access network device may actively buffer the voice packets sent by the first terminal device, thereby reducing the number of The number of voice packets accumulated by the second access network device during the interruption, to a certain extent, can avoid the phenomenon of packet loss caused by the second terminal device due to too many voice packets received at one time.
- the voice packet may include a first voice packet and a second voice packet
- the first access network device receiving the voice packet from the first terminal device includes: the first access network The device sequentially receives the first voice packet and the second voice packet from the first terminal device. Then, the first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, including: the first access network The device sequentially sends the first voice packet and the second voice packet to the second terminal device through the second access network device.
- the first access network sequentially sends the first voice packet and the second voice packet to the second terminal device according to the chronological order of reception, so that the continuity of the voice call can be maintained, thereby improving the call quality.
- the first access network device may send the second voice packet to the second terminal device through the second access network device.
- the first access network device sends a second voice packet when the time that the second voice packet is buffered in the preset buffer area exceeds a preset threshold, so that the second voice packet is stored in the preset buffer
- the buffering time in the area will not be too long, so that the situation that the second terminal device cannot receive the second voice packet for a long time can be avoided, and the call quality can be improved.
- the first access network device may start a first timer corresponding to the second voice packet when receiving the second voice packet, and the first timer is used to record the second voice The time during which the packet is cached in the preset cache area.
- the first access network device may determine that the time during which the second voice packet is buffered in the preset buffer area exceeds a preset threshold.
- the first access network device uses a first timer to record the time that the second voice packet is buffered in the preset buffer area, and can monitor the time that the second voice packet is buffered in the preset buffer area, thereby The situation that the second terminal device cannot receive the second voice packet for a long time can be avoided, and thus the call quality can be improved.
- the first access network device may send the second voice packet to the second terminal device through the second access network device.
- the first access network device sends a second voice packet when the number of voice packets buffered in the preset buffer area is greater than a preset value, which can avoid the overflow of voice packets in the preset buffer area.
- the first access network device may send the first voice packet to the second terminal device through the second access network device. Describe the second voice packet.
- the first access network device can reduce the jitter of the voice packet received by the second terminal device by controlling the interval between the first voice packet and the second voice packet, thereby improving the call quality.
- the first access network device may start a first timer after sending the first voice packet, and the duration of the first timer is equal to the first preset duration. Therefore, the access network device may send the second voice packet to the second terminal device when the first timer expires.
- the first preset duration may be equal to the first preset value. If the second voice packet is a silent frame, the first preset duration is equal to the second preset value. In the above design, since the voice frame carries the call data and the silent frame does not carry the call data, the different preset durations for the voice frame and the silent frame are helpful to improve the utilization rate of transmission resources.
- the method may further include: the first access network device sends the first voice packet The packet is sent after being delayed for a second preset duration, and the second preset duration meets the following formula:
- T is the second preset duration
- t1 is the maximum voice packet transmission delay accepted by the second terminal device
- t2 is the voice packet transmission from the first access network device to The average duration required by the second terminal device.
- the number of voice packets buffered in the preset buffer area of the first access network device can be increased. For example, after the voice packet is delayed by 100 ms, the first access network The device may cache the 5 voice packets received during the 100 ms in a preset buffer area, so that the preset buffer area of the first access network device adds at least 5 voice packets.
- the first access network device may have more voice packets that can be sent to the second terminal device, so the second terminal device is in the first During the interruption of the network connection between the terminal device and the first access network device, voice packets can also be continuously received, thereby reducing the voice terminal situation and improving the MOS score.
- the first access network device can buffer a larger number of voice packets, thereby ensuring to a certain extent that the next voice packet has been cached when a certain voice packet is sent, Furthermore, it can be ensured that the two voice packets can be sent according to the preset sending interval. Therefore, delaying the sending of the first voice packet can better control the interval of sending the voice packets, thereby reducing the voice packets received by the second terminal device Jitter, which in turn improves MOS points.
- the first access network device may not receive the next voice packet within 20 ms after sending a certain voice packet Therefore, the two voice packets cannot be sent according to the sending interval of 20ms, and the method of delaying the sending of the first voice packet by 100ms can make the preset buffer area of the first access network device send the first
- the next 5 voice packets can be cached for each voice packet. Since the first voice packet is delayed to be sent, the subsequent voice packets must be delayed by 100ms accordingly. Therefore, the first access network device can cache this voice packet when sending a certain voice packet Five voice packets behind the voice packet, so that after the voice packet is sent, the next voice packet can be sent at an interval of 20 ms.
- the present application provides a data transmission method, which is applied in a voice call scenario, and the method can be applied to a second access network device, or a chip of a second access network device, or a second access The chip set of the network device, or the functional module that executes the method in the chip of the second access network device, or other modules that can be used to implement the method, and so on.
- the method applied to the second access network device includes: the second access network device sequentially receives voice packets from the first terminal device through the first access network device, and the first access network The device is an access network device accessed by the first terminal device, and the second access network device is an access network device accessed by the second terminal device.
- the second access network device caches the voice packet.
- the second access network device sends a buffered voice packet to the second terminal device according to a preset time interval at a predetermined time interval in the received time sequence.
- the second access network sends multiple voice packets to the second terminal device at a time, resulting in the second terminal device
- the number of voice packets received exceeds the size of the Jitter buffer, resulting in packet loss.
- the second access network device may send the buffered voice packets to the second terminal device one by one, so that The problem of packet loss caused by too many voice packets received by the second terminal device at a time is avoided, and MOS points can be improved.
- the first preset duration may be equal to the first preset value. If the voice packet is a silent frame, the first preset duration may be equal to the second preset value. In the above design, since the voice frame carries the call data and the silent frame does not carry the call data, the different preset durations for the voice frame and the silent frame are helpful to improve the utilization rate of transmission resources.
- the present application provides a data transmission method.
- the method is applied in a voice call scenario.
- the method can be applied to a source access network device, or a chip of a source access network device, or a source access network device.
- the method applied to the source access network device includes: the source access network device determines that the terminal device is about to switch.
- the source access network device Before sending a handover command to the terminal device, the source access network device sends N voice packets to the terminal device in one scheduling, where N is an integer, and 0 ⁇ N ⁇ M, where M is The maximum number of voice packets buffered in the debounce buffer area of the terminal device.
- the source access network forwards all the buffered voice packets to the target access network device, and after the terminal device switches to the target access network device, the target access network device sends to the target access network device in a single schedule Terminal Equipment.
- the source access network device sends multiple voice packets to the terminal device before the handover, so that the terminal device can process the multiple voice packets during the handover, thereby reducing the voice call process to a certain extent
- the interruption time of the terminal device can even avoid the interruption of the voice call when the switching time of the terminal device is relatively short, so the quality of the call can be improved to a certain extent.
- the source access network device sends a part of the buffered voice packet to the terminal device before the handover, so that the terminal device can process the part of the voice packet during the handover, thereby reducing interruption during the voice call to a certain extent Time, when the switching time of the terminal device is relatively short, it can even avoid the interruption of the voice call, so the call quality can be improved to a certain extent.
- the source access network device sends a part of the buffered voice packets to the terminal device before the handover, so that the number of voice packets sent by the target access network device to the terminal device is reduced, thereby avoiding the second terminal device receiving in one scheduling Too many voice packets cause packet loss, which can improve call quality.
- the number of voice packets sent by the source access network device before the terminal device is switched is less than the maximum number of voice packets buffered in the debounce buffer area of the terminal device, which can avoid the situation that the terminal device receives too many voice packets at a time and causes packet loss .
- the source access network device sends the buffered voice packets to the terminal device before the handover, so that the terminal device can process the multiple voice packets during the handover, thereby reducing interruption during the voice call to a certain extent Time, when the switching time of the terminal device is relatively short, it can even avoid the interruption of the voice call, so the call quality can be improved to a certain extent.
- the source access network device may also forward other voice packets in the buffered voice packets except the first M voice packets to the target access network device.
- the source access network device may receive a measurement report sent by the terminal device, and determine that the terminal device is about to perform handover based on the measurement report.
- the source access network device may also determine that the terminal device is about to switch based on the load of the source access network device.
- the present application provides an apparatus, which may be an access network device or a chip.
- the device has the function of implementing any of the embodiments of the first aspect, the second aspect, or the third aspect.
- This function can be realized by hardware, and can also be realized by hardware executing corresponding software.
- the hardware or software includes one or more modules corresponding to the above functions.
- an apparatus including: a processor, a communication interface, and a memory.
- the communication interface is used to transfer messages and/or data between the device and other devices.
- the memory is used to store computer-executed instructions.
- the processor executes the computer-executed instructions stored in the memory to cause the device to perform data transmission as described in the first aspect or any one of the first aspects.
- the present application further provides a computer-readable storage medium, in which instructions are stored in the computer-readable storage medium, which when executed on a computer, causes the computer to execute the method described in the above aspects.
- the present application also provides a computer program product including instructions, which when executed on a computer, causes the computer to perform the method described in the above aspects.
- the data transmission methods described in the first to third aspects of the embodiments of the present application may be implemented as an independent solution, respectively, or the data transmission methods described in any two of the first to third aspects of the embodiments of the present application may be They can be implemented as a solution in combination, or the first to third aspects of the embodiments of the present application can be implemented as a solution in combination.
- FIG. 1 is a schematic structural diagram of a communication system provided by this application.
- FIG. 2 is a schematic diagram of a voice call process provided by this application.
- FIG. 3 is a schematic diagram of a voice call process when the network connection between UE A and gNB 1 is disconnected according to this application;
- FIG. 4 is a schematic diagram of a voice call process when a network connection between UE A and gNB 1 is restored provided by this application;
- FIG. 5 is a schematic diagram of a voice call process provided when the network connection between UE B and gNB 2 is disconnected according to this application;
- FIG. 6 is a schematic diagram of a voice call process when the network connection between UE B and gNB 2 is restored;
- FIG. 8A is a schematic diagram of a data transmission process corresponding to scenario 1 provided by this application.
- 8B is a schematic diagram of a data transmission process corresponding to scenario 2 provided by this application.
- 8C is a schematic diagram of a data transmission process corresponding to scenario three provided by this application.
- 8D is a schematic diagram of a data transmission process corresponding to scene four provided by this application.
- 8E is a schematic diagram of a data transmission process corresponding to scenario five provided by this application.
- 8F is another schematic diagram of another data transmission process corresponding to scenario five provided by this application.
- FIG. 9 is a schematic structural diagram of a communication device provided by this application.
- FIG. 10 is a schematic structural diagram of a communication device provided by this application.
- the data transmission method provided by the embodiments of the present application may be applied to a communication system.
- the architecture of the communication system may be as shown in FIG. 1 and includes a first terminal device, a first access network device, a second access network device, and a second terminal device, between the first terminal device and the first access network device Uplink data transmission and downlink data transmission can be performed, and uplink data transmission and downlink data transmission can be performed between the second terminal device and the second access network device.
- the communication system involved in the embodiments of the present application may be various types of communication systems, for example, it may be a long term evolution (LTE), or a fifth generation (5G) communication system, or a hybrid architecture of LTE and 5G. It can also be 5G new radio (NR) system, global mobile communication system (global system for mobile communication, GSM), mobile communication system (universal mobile telecommunications system, UMTS), code division multiple access (code division multiple access) access, CDMA) system, and new communication systems appearing in the future development of communication, etc.
- LTE long term evolution
- 5G fifth generation
- NR new radio
- the first access network device or the second access network device may be an ordinary base station (such as Node B or eNB), may be a new radio controller (new radio controller, NR controller), or may be a 5G system gNode B (gNB), which can be a centralized network element (Centralized Unit), a new wireless base station, a radio frequency remote module, a micro base station, a relay, or a distributed network element (A distributed unit may be a reception point (transmission reception point, TRP) or a transmission point (transmission point, TP) or any other wireless access device, but the embodiments of the present application are not limited thereto.
- gNB 5G system gNode B
- a distributed unit may be a reception point (transmission reception point, TRP) or a transmission point (transmission point, TP) or any other wireless access device, but the embodiments of the present application are not limited thereto.
- the first terminal device or the second terminal device also called user equipment (UE) is a device that provides voice and/or data connectivity to users, for example, a sensor with network access function, Hand-held devices and car-mounted devices with wireless connectivity.
- UE user equipment
- Common terminals include, for example, mobile phones, tablet computers, notebook computers, PDAs, mobile Internet devices (MID), and wearable devices, such as smart watches and smart bracelets.
- the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly explain the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. With the evolution of the architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
- a jitter buffer (Jitter buffer) of 40 ms to 60 ms is provided in the terminal device to eliminate jitter.
- the voice packets sent by the first terminal device to the core network will still show large jitter, especially when the switching time is greater than 60ms, which may cause the core network or the first Second, the terminal equipment loses packets, resulting in a drop in the subjective assessment method (mean opinion score, MOS) of voice.
- MOS mean opinion score
- the network connection between the second terminal device and the second access network device is interrupted, and the voice packets received by the second access network device are buffered in the second access In the PDCP buffer of the network device, when the network connection between the second terminal device and the second access network device is restored, the voice packets buffered by the second access network device are sent to the second terminal device in one scheduling. If the time when the network connection between the second terminal device and the second access network device is interrupted is greater than 60 ms, the second terminal device may cause packet loss, resulting in a decrease in the MOS score.
- the voice call process is as follows: As shown in FIG. 2, the first terminal device sends each voice packet to the first access network device at an interval of 20 ms Packet, and then the first access network device forwards it to the second access network device after receiving the voice packet, and the second access network device forwards it to the second terminal device. After receiving the voice packet, the second terminal device first buffers it in the Jitter buffer. The data buffered in the Jitter buffer is sent to the processor of the second terminal device for voice processing after a certain time interval.
- the network connection between the first terminal device and the first access network device is disconnected, and uplink data transmission is interrupted, so the first terminal device cannot send the second terminal device
- the device sends voice packets every 20 ms, and no voice packets in the first access network device can be sent to the second terminal device, resulting in no data reception during the switching of the first terminal device by the second terminal device, and the Jitter of the second terminal device Buffer is empty, which has a serious impact on MOS points.
- multiple voice packets are accumulated in the PDCP cache of the first terminal device.
- voice packets 4-7 are accumulated in the PDCP cache of the first terminal device.
- the voice packets 4 to 7 accumulated in the PDCP buffer are sent to the first access network device in one scheduling (if the first terminal device is switched to access the third access network device, Then, voice packets 4-7 are sent to the third access network device in one scheduling), and then the first access network device sends voice packets 4-7 to the second access network device in one scheduling, and the second The access network device forwards the voice packets 4-7 to the second terminal device.
- the Jitter Buffer size of the UE is set to 2 to 3 voice packets, and voice packets exceeding this limit will be discarded. Therefore, when the voice packet accumulated in the PDCP buffer of the first terminal device exceeds 3, the second terminal device The excess voice packet will be discarded, that is, the second terminal device will discard the voice packet 7, thereby affecting the MOS score.
- the second terminal device When the second terminal device performs handover, as shown in FIG. 5, the network connection between the second terminal device and the second access network device is disconnected, and downlink data transmission is interrupted, so the first terminal device sends the second terminal device
- the transmitted voice packet is buffered in the PDCP buffer of the second access network device, which results in no data reception during the handover process of the second terminal device, and the Jitter Buffer of the second terminal device is empty, which seriously affects the MOS score.
- the second access network device sends the buffered multiple voice packets in a single schedule, as shown in FIG. 6, the second access Voice packets 4-7 are accumulated in the PDCP cache of the network device.
- the second access network device After the network connection between the second terminal device and the second access network device is restored, the second access network device sends the voice packets 4-7 to the second terminal device in one scheduling.
- the Jitter Buffer size of the UE is set to 2 to 3 voice packets, and voice packets exceeding this limit will be discarded. Therefore, when there are more than 3 voice packets accumulated in the PDCP buffer of the second access network device, the second The terminal device will discard the excess voice packet, that is, the second terminal device will discard the voice packet 7, thereby affecting the MOS score.
- the embodiments of the present application provide a data transmission method and device to solve the problem of easy packet loss when the terminal device is switched.
- the method and the device are based on the same inventive concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repetition is not repeated here.
- FIG. 7 it is a flowchart of a first data transmission method provided by this application.
- This method can be applied to business scenarios with regular data packet transmission intervals, such as voice call scenarios.
- the following uses a voice call scenario as an example for description.
- the data transmission method includes:
- a first access network device receives a voice packet from a first terminal device, and the first access network device is an access network device accessed by the first terminal device.
- the first access network device may include multiple voice packets received from the first terminal device, for example, the first access network device may sequentially receive voice packet 1, voice packet 2, voice packet 3, etc. from the first terminal device Wait. Alternatively, the first access network device may also receive multiple voice packets such as voice packet 1, voice packet 2, and voice packet 3 from the first terminal device at a time.
- the first access network device caches the voice packet in a preset buffer area.
- the first access network device may sequentially buffer the voice packets to the preset buffer area according to the time sequence of receiving. Among them, voice packets can be buffered in a preset buffer area in the form of a queue. For example, the first access network device caches voice packet 1 at the head of the cache queue, caches voice packet 2 after voice packet 1, caches voice packet 3 after voice packet 2, and so on.
- the first access network device may delay the first voice packet for transmission after a second preset duration, that is, the first After receiving the first voice packet from the first terminal device, an access network device caches the first voice packet in a preset buffer area for a second preset duration.
- the second preset duration meets the following formula:
- T is the second preset duration
- t1 is the maximum voice packet transmission delay accepted by the second terminal device, for example, for end-to-end voice packets, the acceptable range of the human ear hearing
- the maximum voice packet transmission delay is 300ms
- the maximum voice packet transmission delay accepted by the terminal device may be 300ms.
- the t2 is the average duration required for the voice packet to be transmitted from the first access network device to the second terminal device. Exemplarily, t2 may be determined according to experience, or may be determined by statistical historical transmission duration, etc. .
- the number of voice packets buffered in the preset buffer area of the first access network device can be increased, for example, the first voice packet is sent after being delayed by 100 ms,
- the first access network device may buffer the 5 voice packets received during the 100 ms in a preset buffer area, so that the preset buffer area of the first access network device adds at least 5 voice packets.
- the first access network device may have more voice packets that can be sent to the second terminal device, so the second terminal device is in the first During the interruption of the network connection between the terminal device and the first access network device, voice packets can also be continuously received, thereby reducing the voice terminal situation and improving the MOS score.
- the first access network device can buffer a larger number of voice packets, thereby ensuring to a certain extent that the next voice packet has been cached when a certain voice packet is sent, Furthermore, it can be ensured that the two voice packets can be sent according to the preset sending interval. Therefore, delaying the sending of the first voice packet can better control the interval of sending the voice packets, thereby reducing the voice packets received by the second terminal device Jitter, which in turn improves MOS points.
- the first access network device may not receive the next voice packet within 20 ms after sending a certain voice packet Therefore, the two voice packets cannot be sent according to the sending interval of 20ms, and the method of delaying the sending of the first voice packet by 100ms can make the preset buffer area of the first access network device send the first
- the next 5 voice packets can be cached for each voice packet. Since the first voice packet is delayed to be sent, the subsequent voice packets must be delayed by 100ms accordingly. Therefore, the first access network device can cache this voice packet when sending a certain voice packet. Five voice packets behind the voice packet, so that after the voice packet is sent, the next voice packet can be sent at an interval of 20 ms.
- the first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, and the second access network device An access network device accessed by the second terminal device.
- sequential transmission can be understood as sending one voice packet by one voice packet, that is, sending one voice packet in one scheduling.
- the first access network device may cache the voice packet sent by the first terminal device in a preset buffer area, and then send it to the second access network device in sequence.
- the first access network device may send the voice packet buffered in the preset buffer area to the second access network device, so that the second terminal device During the handover of the first terminal device, a voice packet may also be received, thereby reducing the interruption of the voice of the second terminal device.
- the first access network device when the network connection between the first terminal device and the first access network device is restored, the first access network device first buffers the voice packet accumulated in the first terminal device during the interruption period in the preset buffer area , And then send them to the second access network device in sequence.
- the first access network device sends the voice packets accumulated by the first terminal device during the interruption to the second terminal device at a time. To a certain extent, the phenomenon of packet loss due to too many voice packets received by the second terminal device at one time is avoided.
- the voice packet sent by the first terminal device to the second terminal device is first buffered in the first In the preset buffer area of an access network device, the first access network device sequentially sends to the second access network device, compared with the prior art, the first access network device directly sends to the second access network Device, during the network connection between the second terminal device and the second access network device is interrupted in the embodiment of the present application, the first access network device may actively buffer the voice packets sent by the first terminal device, thereby reducing the second The number of voice packets accumulated by the access network device during the interruption, to a certain extent, can avoid the phenomenon of packet loss caused by the second terminal device due to too many voice packets received at one time.
- the voice packet received by the first access network device from the first terminal device may include a first voice packet and a second voice packet.
- the first access network device may sequentially receive the first voice packet and the second voice packet from the first terminal device. Therefore, when the first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, the first voice The packet and the second voice packet are sequentially sent to the second terminal device through the second access network device.
- the first access network device may send the second voice packet to the second terminal device through the second access network device.
- the first An access network device may send the second voice packet to the second terminal device through the second access network device.
- the first access network device may also send the second access network device to the second terminal at a first preset duration
- the device sends the second voice packet.
- the type of the second voice packet is different, and the value of the second preset duration of the interval is different.
- the first preset duration may be equal to the first preset value
- the second preset duration may be equal to the second preset value.
- the second access network device may send the handover command to the second terminal device before sending a handover command to the second terminal device.
- the second terminal device sends N voice packets, where N is an integer, and 0 ⁇ N ⁇ M, where M is the maximum number of voice packets buffered in the debounce buffer in the second terminal device.
- the second access network device may determine that the second terminal device will be handed over in any of the following ways:
- the second access network device receives the measurement report sent by the second terminal device, and determines that the terminal device is about to perform handover based on the measurement report.
- the second access network device determines that the second terminal device is about to switch based on the load of the second access network device.
- the second access network device may also determine that the second terminal device is about to switch by other means, such as actively triggering the second terminal device to switch, etc., which is not specifically limited here.
- the N may be equal to the M
- the N voice packets may be the second The first M voice packets in the access network device that have buffered voice packets in the order of receiving time. That is, if the number of buffered voice packets in the second access network device is greater than the M, the second access network device may send the second access network device to the second terminal device in one scheduling The first M voice packets of the buffered voice packets in the order of receiving time.
- the second access network device may also divide the buffered voice packets by the first M voice packets The other voice packets are forwarded to the third access network device.
- the third access network device is a target access network device when the second terminal device performs handover.
- the second access network device may send the Q voice packets that have been buffered in the second access network device to the terminal device in one scheduling.
- the first M voice packets in the voice packet then the second access network device may send the first M voice packets in the buffered voice packets in the second access network device to the terminal device in one scheduling.
- the second access network device sequentially receives voice packets from the first terminal device through the first access network device.
- the second access network device may include multiple voice packets received from the first terminal device.
- the second access network device may sequentially receive voice packets such as voice packet 1, voice packet 2, and voice packet 3 from the first access network device.
- the second access network device may also receive multiple voice packets such as voice packet 1, voice packet 2, and voice packet 3 from the first access network device at a time.
- the second access network device may buffer the voice packet.
- voice packets can be buffered in a preset buffer area in the form of a queue.
- the second access network device may send a buffered voice packet to the second terminal device at a third preset duration in intervals of reception time.
- the type of the voice packet is different, and the value of the third preset duration of the interval is different.
- the third preset duration may be equal to the third preset value
- the third preset duration may be equal to the fourth preset value.
- the third preset value may be equal to the first preset value, or may not be equal to the first preset value
- the fourth preset value may be equal to the second preset value, or may not be equal to the second preset value. limited.
- the second access network when the network connection between the second access network device and the second terminal device is restored, the second access network sends multiple voice packets to the second terminal device at a time, resulting in the second terminal device The number of voice packets received exceeds the size of the Jitter buffer, resulting in packet loss.
- the second access network device when the network connection between the second access network device and the second terminal device is restored, the second access network device may send the buffered voice packets to the second terminal device one by one, so that The problem of packet loss caused by too many voice packets received by the second terminal device at a time is avoided, and MOS points can be improved.
- the first terminal device accesses the first access network device
- the second terminal device accesses the second access network device.
- Scenario 1 The network connection between the first terminal device and the first access network device is normal, and the network connection between the second terminal device and the second access network device is normal.
- FIG. 8A For the data transmission process between the first terminal device and the second terminal device, refer to FIG. 8A.
- the first terminal device sequentially sends voice packet 1, voice packet 2, voice packet 3, voice packet 4 to the first access network device.
- the first access network device buffers the voice packet 1, the voice packet 2, the voice packet 3, the voice packet 4... received in sequence from the first terminal device in the buffer queue of the preset buffer area.
- the first access network device After receiving the voice packet 1, the first access network device delays the second preset duration and then buffers the voice packet 1, the voice packet 2, the voice packet 3, the voice packet 4 in the buffer queue according to the received time sequence... In turn, it is sent to the second terminal device through the second access network device.
- the second preset duration may be equal to t1-t2-t3 duration. It is assumed that the maximum transmission delay of the voice packet accepted by the second terminal device is 300 ms, that is, t1 is equal to 300 ms. The average time required for the voice packet to be transmitted from the first access network device to the second terminal device is 50 ms, that is, t2 is equal to 50 ms. Since voice packet 1 is the first voice packet received by the first access network device from the first terminal device, there is no buffered voice packet in the buffer queue, that is, t3 is equal to 300 ms. Therefore, the first access network device delays 250 ms after receiving voice packet 1.
- voice packet 2 the process of sending voice packet 2 after the first access network device sends voice packet 1 may be implemented in any of the following ways:
- the first access network device may send the voice packet 2 after sending the voice packet 1 after a first preset duration.
- the first access network device starts the first timer after sending the voice packet 1, and sends the voice packet 2 when the first timer expires, and the time duration of the first timer is equal to the first preset duration.
- the first preset duration may be equal to the time interval at which the first terminal device sends a voice packet. For example, if the first terminal device sends a voice packet every 20 ms, the time duration of the first timer may be equal to 20 ms.
- An access network device may start a first timer after sending a voice packet 1, and send a voice packet 2 when the first timer expires.
- Manner 2 After the voice packet 1 is sent by the first access network device, if the time that the voice packet 2 is buffered in the buffer queue is greater than or equal to a preset threshold, the first access network device sends the voice packet 2.
- the first access network device may start a second timer when it receives the voice packet 2, the second timer may be used to record the time that the voice packet 2 is buffered in the buffer queue, and the second The duration of the timer is equal to the preset threshold.
- the first access network device sends a voice packet 2 when the second timer expires.
- Manner 3 After the voice packet 1 is sent by the first access network device, if the number of voice packets buffered in the buffer queue is greater than or equal to a preset value, the first access network device may send voice packet 2.
- Scenario 2 The network connection between the first terminal device and the first access network device is interrupted.
- the first access network device sequentially passes the voice packets buffered in the buffer queue before the interruption through the second access according to the received time sequence The network device sends to the second terminal device.
- the preset buffer area of the first access network device buffers voice packets 4-7, then the first terminal device and the first access During the interruption of the network connection between the network devices, the first access network device sends the voice packet 4, voice packet 5, voice packet 6, and voice packet 7 to the second terminal device in sequence through the second access network device.
- the second terminal device may receive the voice buffered in the preset buffer area of the first access network device Package, which can reduce the interruption duration of the voice call to a certain extent.
- the network connection between the first terminal device and the first access network device is interrupted for a relatively short time, it can even avoid the interruption of the voice call, which can improve MOS points.
- Scenario 3 The network connection between the first terminal device and the first access network device is restored.
- the first terminal device sends multiple voice packets accumulated during the interruption to the first access network device in one uplink scheduling. For example, the first terminal device sends voice packets 8 to 11 accumulated during the interruption to the first access network device in one uplink scheduling.
- the first access network device buffers the multiple voice packets in a buffer queue, and sends them to the second terminal device through the second access network device in sequence. For example, the first access network device buffers the voice packets 8 to 11 received from the first terminal device in a buffer queue, and sends the voice packets 8 to 11 in sequence to the second through the second access network device Terminal equipment, wherein the first access network device sends the voice packet 9 after sending the voice packet 8, the process of sending the voice packet 10 after sending the voice packet 9, and the voice packet 11 after sending the voice packet 10
- the process refer to the process of sending the voice packet 2 after the first access network device sends the voice packet 1 in step A3, and details are not repeated here.
- the first access network device passes a plurality of voice packets received from the first terminal device through the second access
- the network device sends to the second terminal device at a time, so that the second terminal device receives a large number of voice packets in one scheduling, resulting in packet loss.
- the embodiment of the present application is between the first terminal device and the first access network device.
- the first access network device may send a plurality of voice packets accumulated by the first terminal device to the second access network device one by one, so that the second access network device may store the accumulated voice packets of the first terminal device Multiple voice packets are sent to the second terminal device one by one, so that the phenomenon of packet loss caused by too many voice packets received by the second terminal device in one scheduling can be avoided, thereby further improving the MOS score.
- Scenario 4 as shown in FIG. 8D, assume that the first terminal device sends voice packet 8 to voice packet 11 to the second terminal device, and the first access network device first receives voice packet 8 to voice packet from the first terminal device 11 Cache in the buffer queue, and then send voice packets 8 to 11 to the second access network device in sequence. Therefore, the second access network device sequentially sends voice packets 8 to 11 to the second terminal device.
- the network device enables the second access network device to send all the voice packets 8 to 11 to the second terminal device in one scheduling process, and the first access network device buffers the voice packets 8 to 11 in the queue Sequentially sent to the second access network device, so that the second access network device can sequentially send voice packets 8 to 11 to the second terminal device, thereby reducing the amount of data sent by the second access network in a scheduling process, and It can avoid the phenomenon of packet loss caused by too many voice packets received by the second terminal device in one scheduling, and can further improve the MOS score.
- the second terminal device determines that the second terminal device is about to switch to the third access network device. Wherein, the second terminal device buffers Q voice packets, and the maximum number of voice packets buffered in the debounce buffer area in the second terminal device is M. If Q>M, steps A7 and A8 are performed. If Q ⁇ M, step A9 is executed.
- the second access network device Before sending a handover command to the second terminal device, the second access network device sends the first M voice packets of the Q voice packets in the order of reception time to the second terminal device in one scheduling .
- the second access network device forwards other voice packets except the first M voice packets of the Q voice packets to the third access network device.
- the second access network device sends the second terminal device to the second terminal device in one scheduling before sending the handover command to the second terminal device Send voice packet 10 to voice packet 12, and forward voice packet 13 and voice packet 14 to the third access network device.
- the data transmission process between the first terminal device and the second terminal device refer to FIG. 8E.
- the second access network forwards all voice packets 10 to 14 to the third access network device.
- the second access network device passes the The terminal device sends the voice packet 9 to the voice packet 12, so that the second terminal device can process the voice packet 9 to the voice packet 12 during the handover, so that the interruption time during the voice call can be reduced to a certain extent.
- the switching time is relatively short, the interruption of the voice call can even be avoided, so the MOS points can be improved to a certain extent.
- the second access network device sends voice packets 9 to 12 to the second terminal device before switching, so that when the second terminal device switches to the third access network, the third access network device sends
- the terminal device sends two voice packets, that is, voice packet 13 and voice packet 14, so that the phenomenon of packet loss caused by too many voice packets received by the second terminal device in one scheduling can be avoided, and the MOS score can be improved.
- the second access network device Before sending a handover command to the second terminal device, the second access network device sends the Q voice packets to the second terminal device in one scheduling.
- the second access network device sends the second terminal device a schedule before sending a handover command to the second terminal device Send voice packet 10 ⁇ voice packet 12.
- the second access network forwards all the voice packets 10 to 14 to the third access network device, and the third access network device switches the second terminal device to the third access network device.
- the network access device sends to the second terminal device in one scheduling.
- the second access network device sends voice packets 9 to 12 to the second terminal device before the handover, so that the second terminal device can process the voice packets 9 to 12 during the handover,
- the interruption time during the voice call can be reduced to a certain extent.
- the switching time of the second terminal device is relatively short, the interruption of the voice call can even be avoided, so the MOS score can be improved to a certain extent.
- embodiments of the present application provide a communication device.
- the structure of the communication device may be as shown in FIG. 9 and includes a processing unit 901 and a transceiver unit 902.
- the apparatus may be specifically used to implement the method performed by the first access network device in the embodiments described in FIG. 7 to FIG. 8F.
- the device may be the first access network device itself, or may be the first A part of a chip or chipset or chip in an access network device used to perform related method functions.
- the transceiver unit 902 may be used to receive voice packets from a first terminal device, and the first access network device is an access network device accessed by the first terminal device.
- the processing unit 901 is configured to buffer the voice packet received by the transceiver unit 902 in a preset buffer area.
- the transceiver unit 902 is further configured to sequentially send the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, and the second access network device is An access network device accessed by the second terminal device.
- the processing unit and the transceiver unit may also be used to perform other steps corresponding to the first access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
- the apparatus may be specifically used to implement the method performed by the second access network device in the embodiments described in FIG. 7 to FIG. 8F.
- the device may be the second access network device itself, or may be A part of the chip or chipset or chip in the second access network device for performing the relevant method function.
- the transceiving unit 902 is configured to sequentially receive voice packets from the first terminal device through the first access network device, and the first access network device is an access network device accessed by the first terminal device.
- the second access network device is an access network device accessed by the second terminal device; the processing unit 901 is used to buffer the voice packet; and the transceiver unit 902 is also used to pre-determine each interval according to the chronological order of reception Set a duration to send the buffered voice packet to the second terminal device.
- the processing unit and the transceiver unit may also be used to perform other steps corresponding to the second access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
- the apparatus may be specifically used to implement the method performed by the second access network device in the embodiments described in FIG. 7 to FIG. 8F.
- the device may be the second access network device itself, or may be A part of the chip or chipset or chip in the second access network device for performing the relevant method function.
- the transceiving unit 902 is configured to sequentially receive voice packets from the first terminal device through the first access network device, and the first access network device is an access network device accessed by the first terminal device.
- the second access network device is an access network device accessed by the second terminal device; the processing unit 901 is used to buffer the voice packet; and the transceiver unit 902 is also used to pre-determine each interval according to the chronological order of reception Set a duration to send the buffered voice packet to the second terminal device.
- the processing unit and the transceiver unit may also be used to perform other steps corresponding to the second access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
- the apparatus may be specifically used to implement the method performed by the source access network device in the embodiments described in FIG. 7 to FIG. 8F. If the first terminal device performs handover, the source access network device is the first An access network device, if the second terminal device performs handover, the source access network device is the second access network device.
- the source access network device is the second access network device as an example.
- the source access network device may be the second access network device itself, or may be the second access network device.
- the processing unit 901 is used to determine that the terminal device is about to switch.
- the transceiver unit 902 is configured to send N voice packets to the terminal device in one scheduling before sending a switching command to the terminal device, where N is an integer, and 0 ⁇ N ⁇ M, where M is all The maximum number of voice packets buffered in the debounce buffer area of the terminal device.
- the processing unit and the transceiver unit may also be used to perform other steps corresponding to the second access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
- the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another way of dividing.
- the functional modules in the embodiments of the present application may be integrated into one In the device, it can also exist alone physically, or two or more modules can be integrated into one module.
- the above integrated modules may be implemented in the form of hardware or software function modules.
- the communication device may be as shown in FIG. 10, and the communication device may be the first access network device or a chip in the first access network device.
- the communication device may also be a chip in the second access network device or the second access network device.
- the communication device may also be a source access network device or a chip in the source access network device.
- the communication device may include a processor 1001, a communication interface 1002, and a memory 1003.
- the processing unit 901 may be the processor 1001.
- the sending unit 902 may be a communication interface 1002.
- the processor 1001 may be a central processing unit (CPU) or a digital processing module.
- the communication interface 1002 may be a transceiver, an interface circuit such as a transceiver circuit, or a transceiver chip.
- the communication device further includes a memory 1003 for storing the program executed by the processor 1002.
- the memory 1003 may be a non-volatile memory, such as a hard disk (HDD) or a solid-state drive (SSD), etc., or may be a volatile memory (volatile memory), such as random access memory -access memory, RAM).
- the memory 1003 is any other medium that can be used to carry or store a desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
- the processor 1001 is used to execute the program code stored in the memory 1003, and is specifically used to execute the actions of the above-mentioned processing unit 1601, which will not be repeated here.
- the specific connection medium between the communication interface 1001, the processor 1002, and the memory 1003 is not limited.
- the memory 1003, the processor 1002, and the communication interface 1001 are connected by a bus 1004.
- the bus is shown by a thick line in FIG. , Not to limit.
- the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
- the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
- computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions
- the device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
- the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
A data transmission method and device, which are applied to a voice call scenario, and which are used to solve the problems of communication interruptions and packet loss caused when a terminal device takes a relatively long time to switch cells. The method comprises: a first access network device receiving voice packets from a first terminal device, the first access network device being an access network device accessed by the first terminal device; the first access network device caching the voice packets in a preset cache area and successively sending the voice packets cached in the preset cache area to a second terminal device by means of a second access network device according to the time sequence in which the packets were received, wherein the second access network device is an access network device accessed by the second terminal device.
Description
本申请要求在2018年11月27日提交中国专利局、申请号为201811423569.3、申请名称为“一种数据传输方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application filed on November 27, 2018 in the Chinese Patent Office with the application number 201811423569.3 and the application name as "a data transmission method and device", the entire contents of which are incorporated by reference in this application .
本申请涉及通信技术领域,尤其涉及一种数据传输方法及装置。This application relates to the field of communication technology, and in particular, to a data transmission method and device.
目前在网络状态不好时,第一用户设备(user equipment,UE)发送给第二UE的语音包会出现大幅抖动。目前UE中设置了消抖缓冲区(Jitter buffer)来消除抖动。At present, when the network state is not good, the voice packet sent by the first user equipment (UE) to the second UE will greatly jitter. Currently, a jitter buffer (Jitter buffer) is set in the UE to eliminate jitter.
但是在第一UE处于上行弱覆盖、或者小区切换场景时,虽然第二UE设置了Jitter buffer来消除抖动,但是当切换时间大于60ms,可能造成丢包,导致平均主观意见分(mean opinion Score,MOS)分下降。例如,第一UE在进行小区切换前,覆盖正常时,以20ms的间隔向第二UE发送语音包。第一UE在小区切换过程中,上行数据被中断,不能每间隔20ms向第二UE发送语音包,第一UE所属的第一基站之前也没有缓存的语音包可继续发送,gNB2一般也不会有缓存的语音包可继续发送,导致第二UE在一段时间内无数据接收,这对MOS分影响严重,而第一UE在切换过程中积攒下多个语音包。当第一UE完成小区切换后,将积攒的多个语音包在一次调度中发送给第二UE。而一般UE的Jitter Buffer大小设置为2~3个语音包,超过这个限制的语音包则会被丢弃。However, when the first UE is in a weak uplink coverage or cell handover scenario, although the second UE sets a Jitter buffer to eliminate jitter, when the handover time is greater than 60ms, packet loss may occur, resulting in an average subjective opinion score (mean opinion Score, MOS) points fell. For example, before the cell switching is performed by the first UE, when the coverage is normal, a voice packet is sent to the second UE at an interval of 20 ms. During the cell switching process of the first UE, the uplink data is interrupted, and the voice packets cannot be sent to the second UE every 20ms. The first base station to which the first UE belongs has no buffered voice packets before it can continue to be sent, and gNB2 generally does not The buffered voice packets can continue to be sent, causing the second UE to receive no data for a period of time, which has a serious impact on the MOS points, and the first UE accumulates multiple voice packets during the handover process. After the first UE completes the cell handover, the accumulated multiple voice packets are sent to the second UE in one scheduling. The Jitter Buffer size of a general UE is set to 2 to 3 voice packets, and voice packets exceeding this limit will be discarded.
而第二UE在处于下行弱覆盖或者小区切换时,下行数据中断,语音包都缓存在第二UE所属基站的PDCP缓冲区,导致第二UE通信中断。并且,一旦第二UE空口恢复,基站缓存的语音包会一次下发给第二UE。当积攒的语音包数量超过Jitter Buffer的大小时会导致丢包。However, when the second UE is in downlink weak coverage or cell handover, downlink data is interrupted, and voice packets are buffered in the PDCP buffer of the base station to which the second UE belongs, resulting in interruption of the second UE communication. Moreover, once the air interface of the second UE is restored, the voice packet buffered by the base station will be delivered to the second UE at a time. When the number of accumulated voice packets exceeds the size of Jitter Buffer, packet loss will result.
发明内容Summary of the invention
本申请提供一种数据传输方法及装置,用以解决终端设备进行小区切换时间较长导致通信中断以及丢包的问题。The present application provides a data transmission method and device to solve the problems of communication interruption and packet loss caused by a long cell switching time of a terminal device.
第一方面,本申请提供了一种数据传输方法,该方法应用于语音通话场景中,该方法可以应用于第一接入网设备,或者第一接入网设备的芯片,或者第一接入网设备的芯片组,或者第一接入网设备的芯片中执行该方法的功能模块,或者其它可以用于实现该方法的模块等等。以该方法应用于第一接入网设备为例进行说明,该方法包括:第一接入网设备从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备。所述第一接入网设备将所述语音包缓存在预设缓存区,并按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备,所述第二接入网设备为所述第二终端设备接入的接入网设备。In the first aspect, the present application provides a data transmission method. The method is applied in a voice call scenario. The method can be applied to a first access network device, or a chip of a first access network device, or a first access The chipset of the network device, or the functional module that executes the method in the chip of the first access network device, or other modules that can be used to implement the method, and so on. Taking the method applied to the first access network device as an example for illustration, the method includes: the first access network device receives a voice packet from a first terminal device, and the first access network device is the first terminal device Access network equipment for access. The first access network device caches the voice packet in a preset buffer area, and sequentially sends the voice packets buffered in the preset buffer area to the second through the second access network device according to the chronological order of reception Terminal device, the second access network device is an access network device accessed by the second terminal device.
本申请实施例中,在数据传输过程中,第一接入网设备可以将第一终端设备发送的语 音包缓存在预设缓存区,然后再依次向第二接入网设备进行发送,因此在第一终端设备与第一接入网设备之间的网络连接中断时,第一接入网设备可以向第二接入网设备发送预设缓存区中缓存的语音包,使得第二终端设备在第一终端设备切换期间也可以接收到语音包,从而可以减轻第二终端设备的语音中断情况。并且,当第一终端设备与第一接入网设备之间的网络连接恢复时,第一接入网设备在接收到第一终端设备在中断期间积累的语音包后先缓存在预设缓存区,然后依次发送给第二接入网设备,相比于现有技术中第一接入网设备将第一终端设备在中断期间积累的语音包在一次发送过程中全部发送给第二终端设备,本申请实施例可以在一定程度上避免第二终端设备由于一次接收到的语音包太多导致丢包的现象。In the embodiment of the present application, during the data transmission process, the first access network device may cache the voice packet sent by the first terminal device in a preset buffer area, and then send it to the second access network device in sequence. When the network connection between the first terminal device and the first access network device is interrupted, the first access network device may send the voice packet buffered in the preset buffer area to the second access network device, so that the second terminal device During the handover of the first terminal device, a voice packet may also be received, thereby reducing the interruption of the voice of the second terminal device. In addition, when the network connection between the first terminal device and the first access network device is restored, the first access network device first buffers the voice packet accumulated in the first terminal device during the interruption period in the preset buffer area , And then send it to the second access network device in sequence. Compared with the prior art, the first access network device sends all the voice packets accumulated by the first terminal device during the interruption to the second terminal device in one transmission process, The embodiment of the present application can avoid the phenomenon of packet loss caused by too many voice packets received by the second terminal device to a certain extent.
此外,通过本申请实施例提供的数据传输方法,当第二终端设备与第二接入网设备之间的网络连接中断时,第一终端设备向第二终端设备发送的语音包先缓存在第一接入网设备的预设缓存区中,由第一接入网设备依次发送给第二接入网设备,相比于现有技术中第一接入网设备直接全部发送给第二接入网设备,本申请实施例中在第二终端设备与第二接入网设备之间的网络连接中断期间,第一接入网设备可以主动缓存第一终端设备发送的语音包,从而可以减少第二接入网设备在中断期间所积累语音包的数量,从而可以在一定程度上避免第二终端设备由于一次接收到的语音包太多导致丢包的现象。In addition, according to the data transmission method provided by the embodiment of the present application, when the network connection between the second terminal device and the second access network device is interrupted, the voice packet sent by the first terminal device to the second terminal device is first buffered in the first In the preset buffer area of an access network device, the first access network device sequentially sends to the second access network device, as compared with the prior art, the first access network device directly sends all to the second access Network device. In the embodiment of the present application, during the interruption of the network connection between the second terminal device and the second access network device, the first access network device may actively buffer the voice packets sent by the first terminal device, thereby reducing the number of The number of voice packets accumulated by the second access network device during the interruption, to a certain extent, can avoid the phenomenon of packet loss caused by the second terminal device due to too many voice packets received at one time.
在一种可能的设计中,所述语音包可以包括第一语音包和第二语音包,所述第一接入网设备从第一终端设备接收语音包,包括:所述第一接入网设备依次从第一终端设备接收第一语音包和第二语音包。则所述第一接入网设备按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备,包括:所述第一接入网设备将所述第一语音包和所述第二语音包依次通过所述第二接入网设备发送给所述第二终端设备。上述设计中,第一接入网按照接收的时间顺序将所述第一语音包和所述第二语音包依次发送给所述第二终端设备,从而可以保持语音通话的连贯性,从而改善通话质量。In a possible design, the voice packet may include a first voice packet and a second voice packet, and the first access network device receiving the voice packet from the first terminal device includes: the first access network The device sequentially receives the first voice packet and the second voice packet from the first terminal device. Then, the first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, including: the first access network The device sequentially sends the first voice packet and the second voice packet to the second terminal device through the second access network device. In the above design, the first access network sequentially sends the first voice packet and the second voice packet to the second terminal device according to the chronological order of reception, so that the continuity of the voice call can be maintained, thereby improving the call quality.
在一种可能的设计中,所述第一接入网设备发送所述第一语音包后,当所述第二语音包在所述预设缓存区内缓存的时间超过预设门限值,则所述第一接入网设备可以通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。上述设计中,第一接入网设备在所述第二语音包在所述预设缓存区内缓存的时间超过预设门限值时发送第二语音包,使得第二语音包在预设缓存区内缓存的时间不会太长,从而可以避免第二终端设备长时间接收不到第二语音包的情况,进而可以改善通话质量。In a possible design, after the first access network device sends the first voice packet, when the time that the second voice packet is buffered in the preset buffer area exceeds a preset threshold, Then, the first access network device may send the second voice packet to the second terminal device through the second access network device. In the above design, the first access network device sends a second voice packet when the time that the second voice packet is buffered in the preset buffer area exceeds a preset threshold, so that the second voice packet is stored in the preset buffer The buffering time in the area will not be too long, so that the situation that the second terminal device cannot receive the second voice packet for a long time can be avoided, and the call quality can be improved.
在一种可能的设计中,第一接入网设备在接收到第二语音包时可以启动所述第二语音包对应的第一定时器,所述第一定时器用于记录所述第二语音包在所述预设缓存区内缓存的时间。当所述第二定时器超时时,第一接入网设备可以确定所述第二语音包在所述预设缓存区内缓存的时间超过预设门限值。上述设计中,第一接入网设备采用第一定时器记录所述第二语音包在所述预设缓存区内缓存的时间,可以监控第二语音包在预设缓存区缓存的时间,从而可以避免第二终端设备长时间接收不到第二语音包的情况,进而可以改善通话质量。In a possible design, the first access network device may start a first timer corresponding to the second voice packet when receiving the second voice packet, and the first timer is used to record the second voice The time during which the packet is cached in the preset cache area. When the second timer expires, the first access network device may determine that the time during which the second voice packet is buffered in the preset buffer area exceeds a preset threshold. In the above design, the first access network device uses a first timer to record the time that the second voice packet is buffered in the preset buffer area, and can monitor the time that the second voice packet is buffered in the preset buffer area, thereby The situation that the second terminal device cannot receive the second voice packet for a long time can be avoided, and thus the call quality can be improved.
在一种可能的设计中,所述第一接入网设备发送所述第一语音包后,当所述预设缓存区内所缓存语音包的数量大于预设值,所述第一接入网设备可以通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。上述设计中,第一接入网设备在所述预设缓存区内所缓存语音包的数量大于预设值时发送第二语音包,可以避免预设缓存区内语音包溢 出的情况。In a possible design, after the first access network device sends the first voice packet, when the number of voice packets buffered in the preset buffer area is greater than a preset value, the first access The network device may send the second voice packet to the second terminal device through the second access network device. In the above design, the first access network device sends a second voice packet when the number of voice packets buffered in the preset buffer area is greater than a preset value, which can avoid the overflow of voice packets in the preset buffer area.
在一种可能的设计中,所述第一接入网设备发送所述第一语音包后,可以间隔第一预设时长通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。上述设计中,第一接入网设备通过控制第一语音包、第二语音包之间的间隔,可以降低第二终端设备接收语音包的抖动性,从而可以改善通话质量。In a possible design, after the first access network device sends the first voice packet, the first access network device may send the first voice packet to the second terminal device through the second access network device. Describe the second voice packet. In the above design, the first access network device can reduce the jitter of the voice packet received by the second terminal device by controlling the interval between the first voice packet and the second voice packet, thereby improving the call quality.
在一种可能的设计中,所述第一接入网设备在发送所述第一语音包后可以启动第一定时器,所述第一定时器的计时时长等于所述第一预设时长。因此,所述接入网设备可以在所述第一定时器超时时向所述第二终端设备发送所述第二语音包。In a possible design, the first access network device may start a first timer after sending the first voice packet, and the duration of the first timer is equal to the first preset duration. Therefore, the access network device may send the second voice packet to the second terminal device when the first timer expires.
在一种可能的设计中,若第二语音包为语音帧,则所述第一预设时长可以等于第一预设值。若所述第二语音包为静默帧,则所述第一预设时长等于第二预设值。上述设计中,由于语音帧中携带通话数据,静默帧中不携带通话数据,因此针对语音帧和静默帧分别间隔不同预设时长有助于提高传输资源的利用率。In a possible design, if the second voice packet is a voice frame, the first preset duration may be equal to the first preset value. If the second voice packet is a silent frame, the first preset duration is equal to the second preset value. In the above design, since the voice frame carries the call data and the silent frame does not carry the call data, the different preset durations for the voice frame and the silent frame are helpful to improve the utilization rate of transmission resources.
在一种可能的设计中,在第一接入网设备从第一终端设备接收第一个语音包之后,所述方法还可以包括:所述第一接入网设备将所述第一个语音包延迟第二预设时长后进行发送,所述第二预设时长满足如下公式:In a possible design, after the first access network device receives the first voice packet from the first terminal device, the method may further include: the first access network device sends the first voice packet The packet is sent after being delayed for a second preset duration, and the second preset duration meets the following formula:
0≤T≤t1-t2。0≤T≤t1-t2.
其中,所述T为所述第二预设时长,所述t1为所述第二终端设备接受的最大语音包传输时延;所述t2为语音包从所述第一接入网设备传输到所述第二终端设备所需要的平均时长。上述设计中,通过将语音包延迟后进行发送,可以增加第一接入网设备的预设缓存区内所缓存语音包的数量,例如,将语音包延迟100ms后进行发送,第一接入网设备可以将该100ms期间接收到的5个语音包缓存在预设缓存区,从而第一接入网设备的预设缓存区至少增加了5个语音包。从而在第一终端设备与第一接入网设备之间的网络连接中断时,第一接入网设备可以有比较多的语音包可以发送给第二终端设备,因此第二终端设备在第一终端设备与第一接入网设备之间的网络连接中断期间也可以连续的接收语音包,进而可以降低语音终端情况,提高MOS分。Wherein, T is the second preset duration, t1 is the maximum voice packet transmission delay accepted by the second terminal device; and t2 is the voice packet transmission from the first access network device to The average duration required by the second terminal device. In the above design, by delaying the transmission of the voice packet, the number of voice packets buffered in the preset buffer area of the first access network device can be increased. For example, after the voice packet is delayed by 100 ms, the first access network The device may cache the 5 voice packets received during the 100 ms in a preset buffer area, so that the preset buffer area of the first access network device adds at least 5 voice packets. Therefore, when the network connection between the first terminal device and the first access network device is interrupted, the first access network device may have more voice packets that can be sent to the second terminal device, so the second terminal device is in the first During the interruption of the network connection between the terminal device and the first access network device, voice packets can also be continuously received, thereby reducing the voice terminal situation and improving the MOS score.
此外,通过将第一个语音包延迟发送使得第一接入网设备可以缓存数量较多的语音包,从而可以在一定程度上保证在发送完某一个语音包时已经缓存了下一个语音包,进而可以保证两个语音包之间可以按照预设的发送间隔进行发送,因此,将第一个语音包延迟发送可以更好的控制发送语音包的间隔,从而可以降低第二终端设备接收语音包的抖动性,进而改善MOS分。例如,以发送间隔为20ms为例,若采用不将第一个语音包延迟发送的方式,第一接入网设备在发送完某个语音包之后,可能在20ms内没有接收到下一个语音包,因此导致两个语音包之间无法按照20ms的发送间隔进行发送,而采用将第一个语音包延迟100ms后发送的方式,可以使得第一接入网设备的预设缓存区在发送第一个语音包时可以缓存后面的5个语音包,由于第一个语音包延迟发送时后面的语音包都要相应的顺延100ms,因此第一接入网设备在发送某个语音包时可以缓存该语音包后面的5个语音包,从而在发送完该语音包之后可以间隔20ms发送下一个语音包。In addition, by delaying the transmission of the first voice packet, the first access network device can buffer a larger number of voice packets, thereby ensuring to a certain extent that the next voice packet has been cached when a certain voice packet is sent, Furthermore, it can be ensured that the two voice packets can be sent according to the preset sending interval. Therefore, delaying the sending of the first voice packet can better control the interval of sending the voice packets, thereby reducing the voice packets received by the second terminal device Jitter, which in turn improves MOS points. For example, taking the sending interval of 20 ms as an example, if the first voice packet is not delayed, the first access network device may not receive the next voice packet within 20 ms after sending a certain voice packet Therefore, the two voice packets cannot be sent according to the sending interval of 20ms, and the method of delaying the sending of the first voice packet by 100ms can make the preset buffer area of the first access network device send the first The next 5 voice packets can be cached for each voice packet. Since the first voice packet is delayed to be sent, the subsequent voice packets must be delayed by 100ms accordingly. Therefore, the first access network device can cache this voice packet when sending a certain voice packet Five voice packets behind the voice packet, so that after the voice packet is sent, the next voice packet can be sent at an interval of 20 ms.
第二方面,本申请提供了一种数据传输方法,该方法应用于语音通话场景中,该方法可以应用于第二接入网设备,或者第二接入网设备的芯片,或者第二接入网设备的芯片组,或者第二接入网设备的芯片中执行该方法的功能模块,或者其它可以用于实现该方法的模块等等。以该方法应用于第二接入网设备为例进行说明,该方法包括:第二接入网设备通 过第一接入网设备依次从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备,所述第二接入网设备为第二终端设备接入的接入网设备。所述第二接入网设备将所述语音包进行缓存。所述第二接入网设备按照接收的时间顺序每间隔预设时长向所述第二终端设备发送一个缓存的所述语音包。相比于现有技术中,当第二接入网设备与第二终端设备之间的网络连接恢复时,第二接入网一次发送给第二终端设备多个语音包,导致第二终端设备接收到的语音包数量超过Jitter buffer大小,从而导致丢包。本申请实施例中,当第二接入网设备与第二终端设备之间的网络连接恢复时,第二接入网设备可以将缓存的语音包一个一个的发送给第二终端设备,从而可以避免第二终端设备一次接收到的语音包数量太多导致丢包的问题,进而可以改善MOS分。In a second aspect, the present application provides a data transmission method, which is applied in a voice call scenario, and the method can be applied to a second access network device, or a chip of a second access network device, or a second access The chip set of the network device, or the functional module that executes the method in the chip of the second access network device, or other modules that can be used to implement the method, and so on. Taking the method applied to the second access network device as an example for illustration, the method includes: the second access network device sequentially receives voice packets from the first terminal device through the first access network device, and the first access network The device is an access network device accessed by the first terminal device, and the second access network device is an access network device accessed by the second terminal device. The second access network device caches the voice packet. The second access network device sends a buffered voice packet to the second terminal device according to a preset time interval at a predetermined time interval in the received time sequence. Compared with the prior art, when the network connection between the second access network device and the second terminal device is restored, the second access network sends multiple voice packets to the second terminal device at a time, resulting in the second terminal device The number of voice packets received exceeds the size of the Jitter buffer, resulting in packet loss. In the embodiment of the present application, when the network connection between the second access network device and the second terminal device is restored, the second access network device may send the buffered voice packets to the second terminal device one by one, so that The problem of packet loss caused by too many voice packets received by the second terminal device at a time is avoided, and MOS points can be improved.
在一种可能的设计中,若所述语音包为语音帧,则所述第一预设时长可以等于第一预设值。若所述语音包为静默帧,则所述第一预设时长可以等于第二预设值。上述设计中,由于语音帧中携带通话数据,静默帧中不携带通话数据,因此针对语音帧和静默帧分别间隔不同预设时长有助于提高传输资源的利用率。In a possible design, if the voice packet is a voice frame, the first preset duration may be equal to the first preset value. If the voice packet is a silent frame, the first preset duration may be equal to the second preset value. In the above design, since the voice frame carries the call data and the silent frame does not carry the call data, the different preset durations for the voice frame and the silent frame are helpful to improve the utilization rate of transmission resources.
第三方面,本申请提供了一种数据传输方法,该方法应用于语音通话场景中,该方法可以应用于源接入网设备,或者源接入网设备的芯片,或者源接入网设备的芯片组,或者源接入网设备的芯片中执行该方法的功能模块,或者其它可以用于实现该方法的模块等等。以该方法应用于源接入网设备为例进行说明,该方法包括:源接入网设备确定终端设备即将进行切换。在向所述终端设备发送切换命令之前,所述源接入网设备在一次调度中向所述终端设备发送N个语音包,所述N为整数,且0<N≤M,所述M为所述终端设备中消抖缓存区最大缓存语音包的个数。相比于现有技术中,源接入网将缓存的语音包全部转发给目标接入网设备,并在终端设备切换到目标接入网设备后由目标接入网设备在一次调度中发送给终端设备。本申请实施例中,源接入网设备通过在切换之前向终端设备发送多个语音包,使得终端设备可以在切换期间可以处理该多个语音包,从而可以在一定程度上减少语音通话过程中的中断时间,在终端设备切换时间比较短时,甚至可以避免语音通话中断,因此可以在一定程度上改善通话质量。In a third aspect, the present application provides a data transmission method. The method is applied in a voice call scenario. The method can be applied to a source access network device, or a chip of a source access network device, or a source access network device. A chipset, or a functional module that executes the method in a chip of a source access network device, or other modules that can be used to implement the method, and so on. Taking the method applied to the source access network device as an example for illustration, the method includes: the source access network device determines that the terminal device is about to switch. Before sending a handover command to the terminal device, the source access network device sends N voice packets to the terminal device in one scheduling, where N is an integer, and 0<N≤M, where M is The maximum number of voice packets buffered in the debounce buffer area of the terminal device. Compared with the prior art, the source access network forwards all the buffered voice packets to the target access network device, and after the terminal device switches to the target access network device, the target access network device sends to the target access network device in a single schedule Terminal Equipment. In the embodiment of the present application, the source access network device sends multiple voice packets to the terminal device before the handover, so that the terminal device can process the multiple voice packets during the handover, thereby reducing the voice call process to a certain extent The interruption time of the terminal device can even avoid the interruption of the voice call when the switching time of the terminal device is relatively short, so the quality of the call can be improved to a certain extent.
在一种可能的设计中,若所述源接入网设备中已缓存语音包的数量大于所述M,则所述N等于所述M,且所述N个语音包为所述源接入网设备中已缓存语音包按照接收时间顺序的前M个语音包。上述设计中,源接入网设备通过在切换之前向终端设备发送缓存的一部分语音包,使得终端设备可以在切换期间可以处理该部分语音包,从而可以在一定程度上减少语音通话过程中的中断时间,在终端设备切换时间比较短时,甚至可以避免语音通话中断,因此可以在一定程度上改善通话质量。并且,源接入网设备通过在切换之前向终端设备发送缓存的一部分语音包,使得目标接入网设备向终端设备发送的语音包数量减少,从而可以避免第二终端设备在一次调度中接收的语音包过多导致丢包的现象,进而可以提高通话质量。此外,源接入网设备在终端设备切换之前发送的语音包数量小于终端设备的消抖缓存区最大缓存语音包的个数,可以避免终端设备一次接收的语音包数量过多导致丢包的情况。In a possible design, if the number of voice packets buffered in the source access network device is greater than the M, the N is equal to the M, and the N voice packets are the source access The first M voice packets in the order of receiving voice packets have been buffered in the network device. In the above design, the source access network device sends a part of the buffered voice packet to the terminal device before the handover, so that the terminal device can process the part of the voice packet during the handover, thereby reducing interruption during the voice call to a certain extent Time, when the switching time of the terminal device is relatively short, it can even avoid the interruption of the voice call, so the call quality can be improved to a certain extent. Moreover, the source access network device sends a part of the buffered voice packets to the terminal device before the handover, so that the number of voice packets sent by the target access network device to the terminal device is reduced, thereby avoiding the second terminal device receiving in one scheduling Too many voice packets cause packet loss, which can improve call quality. In addition, the number of voice packets sent by the source access network device before the terminal device is switched is less than the maximum number of voice packets buffered in the debounce buffer area of the terminal device, which can avoid the situation that the terminal device receives too many voice packets at a time and causes packet loss .
在一种可能的设计中,若所述源接入网设备中已缓存语音包的数量不大于所述M,则所述N个语音包为所述源接入网设备中已缓存的语音包。上述设计中,源接入网设备通过在切换之前向终端设备发送缓存的语音包,使得终端设备可以在切换期间可以处理该多个语音包,从而可以在一定程度上减少语音通话过程中的中断时间,在终端设备切换时间比 较短时,甚至可以避免语音通话中断,因此可以在一定程度上改善通话质量。In a possible design, if the number of buffered voice packets in the source access network device is not greater than the M, the N voice packets are buffered voice packets in the source access network device . In the above design, the source access network device sends the buffered voice packets to the terminal device before the handover, so that the terminal device can process the multiple voice packets during the handover, thereby reducing interruption during the voice call to a certain extent Time, when the switching time of the terminal device is relatively short, it can even avoid the interruption of the voice call, so the call quality can be improved to a certain extent.
在一种可能的设计中,所述源接入网设备还可以将已缓存的语音包中除所述前M个语音包之外的其他语音包转发给目标接入网设备。In a possible design, the source access network device may also forward other voice packets in the buffered voice packets except the first M voice packets to the target access network device.
在一种可能的设计中,所述源接入网设备可以接收所述终端设备发送的测量报告,并基于所述测量报告确定所述终端设备即将进行切换。In a possible design, the source access network device may receive a measurement report sent by the terminal device, and determine that the terminal device is about to perform handover based on the measurement report.
在一种可能的设计中,所述源接入网设备还可以基于所述源接入网设备的负载确定所述终端设备即将进行切换。In a possible design, the source access network device may also determine that the terminal device is about to switch based on the load of the source access network device.
第四方面,本申请提供一种装置,该装置可以是接入网设备,还可以是芯片。该装置具有实现上述第一方面、或者第二方面、或者第三方面中任一实施例的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。According to a fourth aspect, the present application provides an apparatus, which may be an access network device or a chip. The device has the function of implementing any of the embodiments of the first aspect, the second aspect, or the third aspect. This function can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第五方面,提供了一种装置,包括:处理器、通信接口和存储器。通信接口用于该装置与其他装置之间传输消息和/或数据。该存储器用于存储计算机执行指令,当该装置运行时,该处理器执行该存储器存储的该计算机执行指令,以使该装置执行如上述第一方面或第一方面中任一所述的数据传输方法、或者上述第二方面或第二方面中任一所述的数据传输方法、或者上述第三方面或第三方面中任一所述的数据传输方法。In a fifth aspect, an apparatus is provided, including: a processor, a communication interface, and a memory. The communication interface is used to transfer messages and/or data between the device and other devices. The memory is used to store computer-executed instructions. When the device is running, the processor executes the computer-executed instructions stored in the memory to cause the device to perform data transmission as described in the first aspect or any one of the first aspects The method, or the data transmission method described in the second aspect or any of the second aspect, or the data transmission method described in the third aspect or the third aspect.
第六方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。According to a sixth aspect, the present application further provides a computer-readable storage medium, in which instructions are stored in the computer-readable storage medium, which when executed on a computer, causes the computer to execute the method described in the above aspects.
第七方面,本申请还提供一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a seventh aspect, the present application also provides a computer program product including instructions, which when executed on a computer, causes the computer to perform the method described in the above aspects.
本申请实施例的第一至三方面中所述的数据传输方法可以分别作为一个独立的方案实施,或者,本申请实施例的第一至三方面中任意两个方面所述的数据传输方法可以结合起来作为一个方案实施,或者,本申请实施例的第一至三方面可以结合起来作为一个方案实施。The data transmission methods described in the first to third aspects of the embodiments of the present application may be implemented as an independent solution, respectively, or the data transmission methods described in any two of the first to third aspects of the embodiments of the present application may be They can be implemented as a solution in combination, or the first to third aspects of the embodiments of the present application can be implemented as a solution in combination.
图1为本申请提供的一种通信系统的架构示意图;FIG. 1 is a schematic structural diagram of a communication system provided by this application;
图2为本申请提供的一种语音通话过程的示意图;2 is a schematic diagram of a voice call process provided by this application;
图3为本申请提供的一种UE A与gNB 1之间的网络连接断开时语音通话过程的示意图;FIG. 3 is a schematic diagram of a voice call process when the network connection between UE A and gNB 1 is disconnected according to this application;
图4为本申请提供的一种UE A与gNB 1之间的网络连接恢复时语音通话过程的示意图;FIG. 4 is a schematic diagram of a voice call process when a network connection between UE A and gNB 1 is restored provided by this application;
图5为本申请提供的一种UE B与gNB 2之间的网络连接断开时语音通话过程的示意图;FIG. 5 is a schematic diagram of a voice call process provided when the network connection between UE B and gNB 2 is disconnected according to this application;
图6为本申请提供的一种UE B与gNB 2之间的网络连接恢复时语音通话过程的示意图;FIG. 6 is a schematic diagram of a voice call process when the network connection between UE B and gNB 2 is restored;
图7为本申请提供的一种数据传输方法的流程示意图;7 is a schematic flowchart of a data transmission method provided by this application;
图8A为本申请提供的场景一对应的数据传输过程示意图;8A is a schematic diagram of a data transmission process corresponding to scenario 1 provided by this application;
图8B为本申请提供的场景二对应的数据传输过程示意图;8B is a schematic diagram of a data transmission process corresponding to scenario 2 provided by this application;
图8C为本申请提供的场景三对应的数据传输过程示意图;8C is a schematic diagram of a data transmission process corresponding to scenario three provided by this application;
图8D为本申请提供的场景四对应的数据传输过程示意图;8D is a schematic diagram of a data transmission process corresponding to scene four provided by this application;
图8E为本申请提供的场景五对应的一种数据传输过程示意图;8E is a schematic diagram of a data transmission process corresponding to scenario five provided by this application;
图8F为本申请提供的场景五对应的另一种数据传输过程示意图;8F is another schematic diagram of another data transmission process corresponding to scenario five provided by this application;
图9为本申请提供的一种通信装置的结构示意图;9 is a schematic structural diagram of a communication device provided by this application;
图10为本申请提供的一种通信装置的结构示意图。10 is a schematic structural diagram of a communication device provided by this application.
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be described in further detail below with reference to the accompanying drawings.
本申请实施例提供的数据传输方法可以应用于通信系统中。该通信系统的架构可以如图1所示,包括第一终端设备、第一接入网设备、第二接入网设备以及第二终端设备,第一终端设备和第一接入网设备之间可以进行上行数据传输以及下行数据传输,第二终端设备和第二接入网设备之间可以进行上行数据传输以及下行数据传输。The data transmission method provided by the embodiments of the present application may be applied to a communication system. The architecture of the communication system may be as shown in FIG. 1 and includes a first terminal device, a first access network device, a second access network device, and a second terminal device, between the first terminal device and the first access network device Uplink data transmission and downlink data transmission can be performed, and uplink data transmission and downlink data transmission can be performed between the second terminal device and the second access network device.
本申请实施例涉及的通信系统可以是各类通信系统,例如,可以是长期演进(long term evolution,LTE),也可以是第五代(5G)通信系统,还可以是LTE与5G混合架构、也可以是5G新无线(new radio,NR)系统、全球移动通信系统(global system for mobile communication,GSM),移动通信系统(universal mobile telecommunications system,UMTS),码分多址接入(code division multiple access,CDMA)系统,以及未来通信发展中出现的新的通信系统等。The communication system involved in the embodiments of the present application may be various types of communication systems, for example, it may be a long term evolution (LTE), or a fifth generation (5G) communication system, or a hybrid architecture of LTE and 5G. It can also be 5G new radio (NR) system, global mobile communication system (global system for mobile communication, GSM), mobile communication system (universal mobile telecommunications system, UMTS), code division multiple access (code division multiple access) access, CDMA) system, and new communication systems appearing in the future development of communication, etc.
其中,第一接入网设备或者第二接入网设备,可以是普通的基站(如Node B或eNB),可以是新无线控制器(new radio controller,NR controller),可以是5G系统中的gNode B(gNB),可以是集中式网元(Centralized Unit),可以是新无线基站,可以是射频拉远模块,可以是微基站,可以是中继(relay),可以是分布式网元(distributed unit),可以是接收点(transmission reception point,TRP)或传输点(transmission point,TP)或者任何其它无线接入设备,但本申请实施例不限于此。Among them, the first access network device or the second access network device may be an ordinary base station (such as Node B or eNB), may be a new radio controller (new radio controller, NR controller), or may be a 5G system gNode B (gNB), which can be a centralized network element (Centralized Unit), a new wireless base station, a radio frequency remote module, a micro base station, a relay, or a distributed network element ( A distributed unit may be a reception point (transmission reception point, TRP) or a transmission point (transmission point, TP) or any other wireless access device, but the embodiments of the present application are not limited thereto.
第一终端设备或者第二终端设备,又称之为用户设备(user equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有网络接入功能的传感器、具有无线连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环等。The first terminal device or the second terminal device, also called user equipment (UE), is a device that provides voice and/or data connectivity to users, for example, a sensor with network access function, Hand-held devices and car-mounted devices with wireless connectivity. Common terminals include, for example, mobile phones, tablet computers, notebook computers, PDAs, mobile Internet devices (MID), and wearable devices, such as smart watches and smart bracelets.
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly explain the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. With the evolution of the architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
目前,终端设备中设置了40ms~60ms的消抖缓冲区(Jitter buffer)来消除抖动。但是在上行弱覆盖、第一终端设备切换场景中,第一终端设备上行发送给核心网(corenetwork,CN)的语音包依然会出现大幅抖动,尤其当切换时间大于60ms,可能造成核心网或者第二终端设备丢包,导致语音的主观评定方法(mean opinion score,MOS)分下降。而在下行弱覆盖、第二终端设备切换场景中,第二终端设备与第二接入网设备之间的网络连接中断,第二接入网设备接收到语音包都缓存在该第二接入网设备的PDCP缓冲区内,当第二 终端设备与第二接入网设备之间的网络连接恢复时,第二接入网设备缓存的语音包在一次调度中发送给第二终端设备。如果第二终端设备与第二接入网设备之间的网络连接中断的时间大于60ms,可能造成第二终端设备丢包,导致MOS分下降。Currently, a jitter buffer (Jitter buffer) of 40 ms to 60 ms is provided in the terminal device to eliminate jitter. However, in the scenario of weak uplink coverage and the switching of the first terminal device, the voice packets sent by the first terminal device to the core network (core network, CN) will still show large jitter, especially when the switching time is greater than 60ms, which may cause the core network or the first Second, the terminal equipment loses packets, resulting in a drop in the subjective assessment method (mean opinion score, MOS) of voice. However, in the scenario of weak downlink coverage and switching of the second terminal device, the network connection between the second terminal device and the second access network device is interrupted, and the voice packets received by the second access network device are buffered in the second access In the PDCP buffer of the network device, when the network connection between the second terminal device and the second access network device is restored, the voice packets buffered by the second access network device are sent to the second terminal device in one scheduling. If the time when the network connection between the second terminal device and the second access network device is interrupted is greater than 60 ms, the second terminal device may cause packet loss, resulting in a decrease in the MOS score.
以第一终端设备和第二终端设备进行语音通话为例,语音通话过程为如下:如图2所示,第一终端设备将每个语音包以20ms的间隔向第一接入网设备发送语音包,然后第一接入网设备在接收到语音包后转发给第二接入网设备,由第二接入网设备转发给第二终端设备。第二终端设备在接收到语音包后先在Jitter buffer中进行缓存,Jitter buffer中缓存的数据每间隔一定时长后发到第二终端设备的处理器进行语音处理。Taking the first terminal device and the second terminal device as an example of a voice call, the voice call process is as follows: As shown in FIG. 2, the first terminal device sends each voice packet to the first access network device at an interval of 20 ms Packet, and then the first access network device forwards it to the second access network device after receiving the voice packet, and the second access network device forwards it to the second terminal device. After receiving the voice packet, the second terminal device first buffers it in the Jitter buffer. The data buffered in the Jitter buffer is sent to the processor of the second terminal device for voice processing after a certain time interval.
当第一终端设备进行切换时,如图3所示,第一终端设备与第一接入网设备之间的网络连接断开,上行数据传输被中断,因此第一终端设备不能向第二终端设备每间隔20ms发送语音包,第一接入网设备中没有语音包可以向第二终端设备进行发送,导致第二终端设备在第一终端设备切换过程中无数据接收,第二终端设备的Jitter Buffer为空,这对MOS分影响严重。并且,当第一终端设备切换过程中,第一终端设备的PDCP缓存中积攒下多个语音包,如图4所示,第一终端设备的PDCP缓存中积攒了语音包4~7。当第一终端设备切换完成后,将PDCP缓存中积攒的语音包4~7在一次调度中发送给第一接入网设备(若第一终端设备切换完成后接入第三接入网设备,则将语音包4~7在一次调度中发送给第三接入网设备),然后第一接入网设备在一次调度中将语音包4~7发送给第二接入网设备,由第二接入网设备将语音包4~7转发给第二终端设备。一般UE的Jitter Buffer大小设置为2~3个语音包,超过这个限制的语音包则会被丢弃,因此,当第一终端设备的PDCP缓存中积攒的语音包超过3个时,第二终端设备会将超出的语音包丢弃,即第二终端设备会将语音包7丢弃,从而影响MOS分。When the first terminal device performs handover, as shown in FIG. 3, the network connection between the first terminal device and the first access network device is disconnected, and uplink data transmission is interrupted, so the first terminal device cannot send the second terminal device The device sends voice packets every 20 ms, and no voice packets in the first access network device can be sent to the second terminal device, resulting in no data reception during the switching of the first terminal device by the second terminal device, and the Jitter of the second terminal device Buffer is empty, which has a serious impact on MOS points. In addition, during the handover of the first terminal device, multiple voice packets are accumulated in the PDCP cache of the first terminal device. As shown in FIG. 4, voice packets 4-7 are accumulated in the PDCP cache of the first terminal device. When the switching of the first terminal device is completed, the voice packets 4 to 7 accumulated in the PDCP buffer are sent to the first access network device in one scheduling (if the first terminal device is switched to access the third access network device, Then, voice packets 4-7 are sent to the third access network device in one scheduling), and then the first access network device sends voice packets 4-7 to the second access network device in one scheduling, and the second The access network device forwards the voice packets 4-7 to the second terminal device. Generally, the Jitter Buffer size of the UE is set to 2 to 3 voice packets, and voice packets exceeding this limit will be discarded. Therefore, when the voice packet accumulated in the PDCP buffer of the first terminal device exceeds 3, the second terminal device The excess voice packet will be discarded, that is, the second terminal device will discard the voice packet 7, thereby affecting the MOS score.
当第二终端设备进行切换时,如图5所示,第二终端设备与第二接入网设备之间的网络连接断开,下行数据传输被中断,因此第一终端设备向第二终端设备发送的语音包缓存在第二接入网设备的PDCP缓存中,导致第二终端设备在切换过程中无数据接收,第二终端设备的Jitter Buffer为空,这对MOS分影响严重。当第二终端设备与第二接入网设备之间的网络连接恢复时,第二接入网设备将缓存的多个语音包在一次调度中发送给,如图6所示,第二接入网设备的PDCP缓存中积攒了语音包4~7。当第二终端设备与第二接入网设备之间的网络连接恢复以后,第二接入网设备将语音包4~7在一次调度中发给第二终端设备。一般UE的Jitter Buffer大小设置为2~3个语音包,超过这个限制的语音包则会被丢弃,因此,当第二接入网设备的PDCP缓存中积攒的语音包超过3个时,第二终端设备会将超出的语音包丢弃,即第二终端设备会将语音包7丢弃,从而影响MOS分。When the second terminal device performs handover, as shown in FIG. 5, the network connection between the second terminal device and the second access network device is disconnected, and downlink data transmission is interrupted, so the first terminal device sends the second terminal device The transmitted voice packet is buffered in the PDCP buffer of the second access network device, which results in no data reception during the handover process of the second terminal device, and the Jitter Buffer of the second terminal device is empty, which seriously affects the MOS score. When the network connection between the second terminal device and the second access network device is restored, the second access network device sends the buffered multiple voice packets in a single schedule, as shown in FIG. 6, the second access Voice packets 4-7 are accumulated in the PDCP cache of the network device. After the network connection between the second terminal device and the second access network device is restored, the second access network device sends the voice packets 4-7 to the second terminal device in one scheduling. Generally, the Jitter Buffer size of the UE is set to 2 to 3 voice packets, and voice packets exceeding this limit will be discarded. Therefore, when there are more than 3 voice packets accumulated in the PDCP buffer of the second access network device, the second The terminal device will discard the excess voice packet, that is, the second terminal device will discard the voice packet 7, thereby affecting the MOS score.
基于此,本申请实施例提供一种数据传输方法及装置,用以解决在终端设备在切换时容易丢包的问题。其中,方法和装置是基于同一发明构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。Based on this, the embodiments of the present application provide a data transmission method and device to solve the problem of easy packet loss when the terminal device is switched. Among them, the method and the device are based on the same inventive concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repetition is not repeated here.
本发明实施例中下述提及的多个,是指两个或两个以上。The plural mentioned below in the embodiments of the present invention refer to two or more than two.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, the words "first" and "second" are only used to distinguish the description, and cannot be understood as indicating or implying relative importance, nor as an indication. Or suggest the order.
下面结合附图对本申请提供的数据传输方法进行具体说明。The data transmission method provided by the present application will be specifically described below with reference to the drawings.
参见图7,为本申请提供的第一种数据传输方法的流程图。该方法可以应用于数据包传输间隔规律的业务场景中,例如语音通话场景等。下面以语音通话场景为例进行说明, 该数据传输方法包括:Referring to FIG. 7, it is a flowchart of a first data transmission method provided by this application. This method can be applied to business scenarios with regular data packet transmission intervals, such as voice call scenarios. The following uses a voice call scenario as an example for description. The data transmission method includes:
S701,第一接入网设备从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备。S701. A first access network device receives a voice packet from a first terminal device, and the first access network device is an access network device accessed by the first terminal device.
这里,第一接入网设备从第一终端设备接收的语音包可以包括多个,例如,第一接入网设备可以从第一终端设备依次接收语音包1、语音包2、语音包3等等。或者,第一接入网设备也可以从第一终端设备一次接收了语音包1、语音包2、语音包3等多个语音包。Here, the first access network device may include multiple voice packets received from the first terminal device, for example, the first access network device may sequentially receive voice packet 1, voice packet 2, voice packet 3, etc. from the first terminal device Wait. Alternatively, the first access network device may also receive multiple voice packets such as voice packet 1, voice packet 2, and voice packet 3 from the first terminal device at a time.
S702,所述第一接入网设备将所述语音包缓存在预设缓存区。第一接入网设备可以按照接收到时间顺序将语音包依次缓存到预设缓存区。其中,语音包可以以队列的形式缓存在预设缓存区。例如,第一接入网设备将语音包1缓存在缓存队列头部,将语音包2缓存在语音包1后面,将语音包3缓存在语音包2后面,以此类推。S702. The first access network device caches the voice packet in a preset buffer area. The first access network device may sequentially buffer the voice packets to the preset buffer area according to the time sequence of receiving. Among them, voice packets can be buffered in a preset buffer area in the form of a queue. For example, the first access network device caches voice packet 1 at the head of the cache queue, caches voice packet 2 after voice packet 1, caches voice packet 3 after voice packet 2, and so on.
一种实现方式中,第一接入网设备从第一终端设备接收到第一个语音包之后,可以将所述第一个语音包延迟第二预设时长后进行发送,即,所述第一接入网设备从第一终端设备接收到第一个所述语音包之后,将所述第一个语音包在预设缓存区缓存第二预设时长。In an implementation manner, after receiving the first voice packet from the first terminal device, the first access network device may delay the first voice packet for transmission after a second preset duration, that is, the first After receiving the first voice packet from the first terminal device, an access network device caches the first voice packet in a preset buffer area for a second preset duration.
示例性的,所述第二预设时长满足如下公式:Exemplarily, the second preset duration meets the following formula:
0≤T≤t1-t2;0≤T≤t1-t2;
其中,所述T为所述第二预设时长,所述t1为所述第二终端设备接受的最大语音包传输时延,例如,针对端到端语音包,人耳听力范围内可接受的最大语音包传输时延为300ms,则终端设备接受的最大语音包传输时延可以为300ms。所述t2为语音包从所述第一接入网设备传输到所述第二终端设备所需要的平均时长,示例性的,t2可以根据经验确定,或者也可以通过统计历史传输时长确定等等。Wherein, T is the second preset duration, and t1 is the maximum voice packet transmission delay accepted by the second terminal device, for example, for end-to-end voice packets, the acceptable range of the human ear hearing The maximum voice packet transmission delay is 300ms, then the maximum voice packet transmission delay accepted by the terminal device may be 300ms. The t2 is the average duration required for the voice packet to be transmitted from the first access network device to the second terminal device. Exemplarily, t2 may be determined according to experience, or may be determined by statistical historical transmission duration, etc. .
上述方式,通过将第一个语音包延迟后进行发送,可以增加第一接入网设备的预设缓存区内所缓存语音包的数量,例如,将第一个语音包延迟100ms后进行发送,第一接入网设备可以将该100ms期间接收到的5个语音包缓存在预设缓存区,从而第一接入网设备的预设缓存区至少增加了5个语音包。从而在第一终端设备与第一接入网设备之间的网络连接中断时,第一接入网设备可以有比较多的语音包可以发送给第二终端设备,因此第二终端设备在第一终端设备与第一接入网设备之间的网络连接中断期间也可以连续的接收语音包,进而可以降低语音终端情况,提高MOS分。In the above manner, by delaying the first voice packet and sending it, the number of voice packets buffered in the preset buffer area of the first access network device can be increased, for example, the first voice packet is sent after being delayed by 100 ms, The first access network device may buffer the 5 voice packets received during the 100 ms in a preset buffer area, so that the preset buffer area of the first access network device adds at least 5 voice packets. Therefore, when the network connection between the first terminal device and the first access network device is interrupted, the first access network device may have more voice packets that can be sent to the second terminal device, so the second terminal device is in the first During the interruption of the network connection between the terminal device and the first access network device, voice packets can also be continuously received, thereby reducing the voice terminal situation and improving the MOS score.
此外,通过将第一个语音包延迟发送使得第一接入网设备可以缓存数量较多的语音包,从而可以在一定程度上保证在发送完某一个语音包时已经缓存了下一个语音包,进而可以保证两个语音包之间可以按照预设的发送间隔进行发送,因此,将第一个语音包延迟发送可以更好的控制发送语音包的间隔,从而可以降低第二终端设备接收语音包的抖动性,进而改善MOS分。例如,以发送间隔为20ms为例,若采用不将第一个语音包延迟发送的方式,第一接入网设备在发送完某个语音包之后,可能在20ms内没有接收到下一个语音包,因此导致两个语音包之间无法按照20ms的发送间隔进行发送,而采用将第一个语音包延迟100ms后发送的方式,可以使得第一接入网设备的预设缓存区在发送第一个语音包时可以缓存后面的5个语音包,由于第一个语音包延迟发送时后面的语音包都要相应的顺延100ms,因此第一接入网设备在发送某个语音包时可以缓存该语音包后面的5个语音包,从而在发送完该语音包之后可以间隔20ms发送下一个语音包。In addition, by delaying the transmission of the first voice packet, the first access network device can buffer a larger number of voice packets, thereby ensuring to a certain extent that the next voice packet has been cached when a certain voice packet is sent, Furthermore, it can be ensured that the two voice packets can be sent according to the preset sending interval. Therefore, delaying the sending of the first voice packet can better control the interval of sending the voice packets, thereby reducing the voice packets received by the second terminal device Jitter, which in turn improves MOS points. For example, taking the sending interval of 20 ms as an example, if the first voice packet is not delayed, the first access network device may not receive the next voice packet within 20 ms after sending a certain voice packet Therefore, the two voice packets cannot be sent according to the sending interval of 20ms, and the method of delaying the sending of the first voice packet by 100ms can make the preset buffer area of the first access network device send the first The next 5 voice packets can be cached for each voice packet. Since the first voice packet is delayed to be sent, the subsequent voice packets must be delayed by 100ms accordingly. Therefore, the first access network device can cache this voice packet when sending a certain voice packet. Five voice packets behind the voice packet, so that after the voice packet is sent, the next voice packet can be sent at an interval of 20 ms.
S703,所述第一接入网设备按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备,所述第二接入网设备为所述第二终端设备接 入的接入网设备。S703: The first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, and the second access network device An access network device accessed by the second terminal device.
本申请中,“依次发送”可以理解为一个语音包一个语音包的进行发送,即在一次调度中发送一个语音包。In this application, "sequential transmission" can be understood as sending one voice packet by one voice packet, that is, sending one voice packet in one scheduling.
本申请实施例中,在数据传输过程中,第一接入网设备可以将第一终端设备发送的语音包缓存在预设缓存区,然后再依次向第二接入网设备进行发送,因此在第一终端设备与第一接入网设备之间的网络连接中断时,第一接入网设备可以向第二接入网设备发送预设缓存区中缓存的语音包,使得第二终端设备在第一终端设备切换期间也可以接收到语音包,从而可以减轻第二终端设备的语音中断情况。并且,当第一终端设备与第一接入网设备之间的网络连接恢复时,第一接入网设备在接收到第一终端设备在中断期间积累的语音包后先缓存在预设缓存区,然后依次发送给第二接入网设备,相比于现有技术中第一接入网设备将第一终端设备在中断期间积累的语音包一次发送给第二终端设备,本申请实施例可以在一定程度上避免第二终端设备由于一次接收到的语音包太多导致丢包的现象。In the embodiment of the present application, during the data transmission process, the first access network device may cache the voice packet sent by the first terminal device in a preset buffer area, and then send it to the second access network device in sequence. When the network connection between the first terminal device and the first access network device is interrupted, the first access network device may send the voice packet buffered in the preset buffer area to the second access network device, so that the second terminal device During the handover of the first terminal device, a voice packet may also be received, thereby reducing the interruption of the voice of the second terminal device. In addition, when the network connection between the first terminal device and the first access network device is restored, the first access network device first buffers the voice packet accumulated in the first terminal device during the interruption period in the preset buffer area , And then send them to the second access network device in sequence. Compared with the prior art, the first access network device sends the voice packets accumulated by the first terminal device during the interruption to the second terminal device at a time. To a certain extent, the phenomenon of packet loss due to too many voice packets received by the second terminal device at one time is avoided.
此外,通过本申请实施例提供的数据传输方法,当第二终端设备与第二接入网设备之间的网络连接中断时,第一终端设备向第二终端设备发送的语音包先缓存在第一接入网设备的预设缓存区中,由第一接入网设备依次发送给第二接入网设备,相比于现有技术中第一接入网设备直接发送给第二接入网设备,本申请实施例中在第二终端设备与第二接入网设备之间的网络连接中断期间,第一接入网设备可以主动缓存第一终端设备发送的语音包,从而可以减少第二接入网设备在中断期间所积累语音包的数量,从而可以在一定程度上避免第二终端设备由于一次接收到的语音包太多导致丢包的现象。In addition, according to the data transmission method provided by the embodiment of the present application, when the network connection between the second terminal device and the second access network device is interrupted, the voice packet sent by the first terminal device to the second terminal device is first buffered in the first In the preset buffer area of an access network device, the first access network device sequentially sends to the second access network device, compared with the prior art, the first access network device directly sends to the second access network Device, during the network connection between the second terminal device and the second access network device is interrupted in the embodiment of the present application, the first access network device may actively buffer the voice packets sent by the first terminal device, thereby reducing the second The number of voice packets accumulated by the access network device during the interruption, to a certain extent, can avoid the phenomenon of packet loss caused by the second terminal device due to too many voice packets received at one time.
一种可能的实现方式中,第一接入网设备从第一终端设备接收的所述语音包可以包括第一语音包和第二语音包。所述第一接入网设备从第一终端设备接收语音包时,可以依次从第一终端设备接收第一语音包和第二语音包。因此,所述第一接入网设备按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备时,可以将所述第一语音包和所述第二语音包依次通过所述第二接入网设备发送给所述第二终端设备。In a possible implementation manner, the voice packet received by the first access network device from the first terminal device may include a first voice packet and a second voice packet. When receiving the voice packet from the first terminal device, the first access network device may sequentially receive the first voice packet and the second voice packet from the first terminal device. Therefore, when the first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, the first voice The packet and the second voice packet are sequentially sent to the second terminal device through the second access network device.
一种可能的实施方式中,所述第一接入网设备在发送所述第一语音包后,在所述第二语音包在所述预设缓存区内缓存的时间超过预设门限值时,则所述第一接入网设备可以通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。In a possible implementation manner, after the first access network device sends the first voice packet, the time that the second voice packet is buffered in the preset buffer area exceeds a preset threshold At this time, the first access network device may send the second voice packet to the second terminal device through the second access network device.
另一种可能的实施方式中,所述第一接入网设备在发送所述第一语音包后,在所述预设缓存区内所缓存语音包的数量大于预设值时,所述第一接入网设备可以通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。In another possible implementation manner, after the first access network device sends the first voice packet, when the number of voice packets buffered in the preset buffer area is greater than a preset value, the first An access network device may send the second voice packet to the second terminal device through the second access network device.
另一种可能的实施方式中,所述第一接入网设备在发送所述第一语音包后,还可以间隔第一预设时长通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。其中,第二语音包的类型不同,间隔的第二预设时长的值不同,示例性的,若第二语音包的类型为语音帧,第一预设时长可以等于第一预设值,若第二语音包的类型为静默帧,第二预设时长可以等于第二预设值。In another possible implementation manner, after sending the first voice packet, the first access network device may also send the second access network device to the second terminal at a first preset duration The device sends the second voice packet. The type of the second voice packet is different, and the value of the second preset duration of the interval is different. Exemplarily, if the type of the second voice packet is a voice frame, the first preset duration may be equal to the first preset value, if The type of the second voice packet is a silent frame, and the second preset duration may be equal to the second preset value.
一种实现方式中,当第二接入网设备确定第二终端设备即将进行切换时,第二接入网设备可以在向所述第二终端设备发送切换命令之前,在一次调度中向所述第二终端设备发送N个语音包,所述N为整数,且0<N≤M,所述M为所述第二终端设备中消抖缓存区最大缓存语音包的个数。In an implementation manner, when the second access network device determines that the second terminal device is about to perform handover, the second access network device may send the handover command to the second terminal device before sending a handover command to the second terminal device. The second terminal device sends N voice packets, where N is an integer, and 0<N≤M, where M is the maximum number of voice packets buffered in the debounce buffer in the second terminal device.
其中,第二接入网设备可以通过如下任一方式确定第二终端设备即将进行切换:Among them, the second access network device may determine that the second terminal device will be handed over in any of the following ways:
方式一,所述第二接入网设备接收所述第二终端设备发送的测量报告,并基于所述测量报告确定所述终端设备即将进行切换。Manner 1: The second access network device receives the measurement report sent by the second terminal device, and determines that the terminal device is about to perform handover based on the measurement report.
方式二,所述第二接入网设备基于所述第二接入网设备的负载确定所述第二终端设备即将进行切换。Manner 2: The second access network device determines that the second terminal device is about to switch based on the load of the second access network device.
当然,第二接入网设备也可以通过其他方式确定第二终端设备即将进行切换,如主动触发第二终端设备进行切换等等,这里不做具体限定。Of course, the second access network device may also determine that the second terminal device is about to switch by other means, such as actively triggering the second terminal device to switch, etc., which is not specifically limited here.
一种示例性说明,若所述第二接入网设备中已缓存语音包的数量大于所述M,则所述N可以等于所述M,且所述N个语音包可以为所述第二接入网设备中已缓存语音包按照接收时间顺序的前M个语音包。即若所述第二接入网设备中已缓存语音包的数量大于所述M,第二接入网设备可以在一次调度中向所述第二终端设备发送所述第二接入网设备中已缓存语音包按照接收时间顺序的前M个语音包。An exemplary description: if the number of buffered voice packets in the second access network device is greater than the M, the N may be equal to the M, and the N voice packets may be the second The first M voice packets in the access network device that have buffered voice packets in the order of receiving time. That is, if the number of buffered voice packets in the second access network device is greater than the M, the second access network device may send the second access network device to the second terminal device in one scheduling The first M voice packets of the buffered voice packets in the order of receiving time.
进一步的,若所述第二接入网设备中已缓存语音包的数量大于所述M,所述第二接入网设备还可以将已缓存的语音包中除所述前M个语音包之外的其他语音包转发给第三接入网设备。所述第三接入网设备为第二终端设备进行切换时的目标接入网设备。Further, if the number of buffered voice packets in the second access network device is greater than the M, the second access network device may also divide the buffered voice packets by the first M voice packets The other voice packets are forwarded to the third access network device. The third access network device is a target access network device when the second terminal device performs handover.
另一种示例性说明,若所述第二接入网设备中已缓存语音包的数量Q不大于所述M,则N=Q,即所述N个语音包可以为所述第二接入网设备中已缓存的Q个语音包,那么第二接入网设备可以在一次调度中向所述终端设备发送所述第二接入网设备中已缓存的Q个语音包。若所述第二接入网设备中已缓存语音包的数量Q大于所述M,则N=M,则所述N个语音包可以为所述第二接入网设备中已缓存的Q个语音包中的前M个语音包,那么第二接入网设备可以在一次调度中向所述终端设备发送所述第二接入网设备中已缓存语音包中的前M个语音包。Another exemplary description, if the number Q of buffered voice packets in the second access network device is not greater than the M, then N=Q, that is, the N voice packets may be the second access Q voice packets that have been buffered in the network device, then the second access network device may send the Q voice packets that have been buffered in the second access network device to the terminal device in one scheduling. If the number Q of buffered voice packets in the second access network device is greater than the M, then N=M, then the N voice packets may be Q buffered in the second access network device The first M voice packets in the voice packet, then the second access network device may send the first M voice packets in the buffered voice packets in the second access network device to the terminal device in one scheduling.
S704,第二接入网设备通过第一接入网设备依次从第一终端设备接收语音包。S704. The second access network device sequentially receives voice packets from the first terminal device through the first access network device.
这里,第二接入网设备从第一终端设备接收的语音包可以包括多个。例如,第二接入网设备可以从第一接入网设备依次接收语音包1、语音包2、语音包3等语音包。或者,第二接入网设备也可以从第一接入网设备一次接收了语音包1、语音包2、语音包3等多个语音包。Here, the second access network device may include multiple voice packets received from the first terminal device. For example, the second access network device may sequentially receive voice packets such as voice packet 1, voice packet 2, and voice packet 3 from the first access network device. Alternatively, the second access network device may also receive multiple voice packets such as voice packet 1, voice packet 2, and voice packet 3 from the first access network device at a time.
一种实现方式中,第二接入网设备在接收到第一接入网发送的语音包后可以将所述语音包进行缓存。其中,语音包可以以队列的形式缓存在预设缓存区。In an implementation manner, after receiving the voice packet sent by the first access network, the second access network device may buffer the voice packet. Among them, voice packets can be buffered in a preset buffer area in the form of a queue.
进一步的,所述第二接入网设备可以按照接收的时间顺序每间隔第三预设时长向所述第二终端设备发送一个缓存的所述语音包。其中,语音包的类型不同,间隔的第三预设时长的值不同,示例性的,若语音包的类型为语音帧,第三预设时长可以等于第三预设值,若语音包的类型为静默帧,第三预设时长可以等于第四预设值。第三预设值可以等于第一预设值,也可以不等于第一预设值,第四预设值可以等于第二预设值,也可以不等于第二预设值,这里不做具体限定。Further, the second access network device may send a buffered voice packet to the second terminal device at a third preset duration in intervals of reception time. Among them, the type of the voice packet is different, and the value of the third preset duration of the interval is different. Exemplarily, if the type of the voice packet is a voice frame, the third preset duration may be equal to the third preset value, if the type of the voice packet For the silent frame, the third preset duration may be equal to the fourth preset value. The third preset value may be equal to the first preset value, or may not be equal to the first preset value, and the fourth preset value may be equal to the second preset value, or may not be equal to the second preset value. limited.
相比于现有技术中,当第二接入网设备与第二终端设备之间的网络连接恢复时,第二接入网一次发送给第二终端设备多个语音包,导致第二终端设备接收到的语音包数量超过Jitter buffer大小,从而导致丢包。本申请实施例中,当第二接入网设备与第二终端设备之间的网络连接恢复时,第二接入网设备可以将缓存的语音包一个一个的发送给第二终端设备,从而可以避免第二终端设备一次接收到的语音包数量太多导致丢包的问题,进而可以 改善MOS分。Compared with the prior art, when the network connection between the second access network device and the second terminal device is restored, the second access network sends multiple voice packets to the second terminal device at a time, resulting in the second terminal device The number of voice packets received exceeds the size of the Jitter buffer, resulting in packet loss. In the embodiment of the present application, when the network connection between the second access network device and the second terminal device is restored, the second access network device may send the buffered voice packets to the second terminal device one by one, so that The problem of packet loss caused by too many voice packets received by the second terminal device at a time is avoided, and MOS points can be improved.
为了更好地理解本申请实施例,以下结合具体应用场景,对第一终端设备与第二终端设备之间的数据传输过程进行详细说明。其中,第一终端设备接入第一接入网设备,第二终端设备接入第二接入网设备。In order to better understand the embodiments of the present application, the following describes the data transmission process between the first terminal device and the second terminal device in detail with reference to specific application scenarios. The first terminal device accesses the first access network device, and the second terminal device accesses the second access network device.
场景一,第一终端设备与第一接入网设备之间的网络连接正常,第二终端设备与第二接入网设备之间的网络连接正常。第一终端设备与第二终端设备之间的数据传输过程可以参阅图8A所示。Scenario 1: The network connection between the first terminal device and the first access network device is normal, and the network connection between the second terminal device and the second access network device is normal. For the data transmission process between the first terminal device and the second terminal device, refer to FIG. 8A.
A1,第一终端设备依次向第一接入网设备发送语音包1、语音包2、语音包3、语音包4……。A1, the first terminal device sequentially sends voice packet 1, voice packet 2, voice packet 3, voice packet 4 to the first access network device.
A2,第一接入网设备将从第一终端设备接收的语音包1、语音包2、语音包3、语音包4……依次缓存在预设缓存区的缓存队列中。A2, the first access network device buffers the voice packet 1, the voice packet 2, the voice packet 3, the voice packet 4... received in sequence from the first terminal device in the buffer queue of the preset buffer area.
A3,在接收到语音包1之后,第一接入网设备延迟第二预设时长后按照接收的时间顺序将缓存队列中的语音包1、语音包2、语音包3、语音包4……依次通过第二接入网设备发送给第二终端设备。A3. After receiving the voice packet 1, the first access network device delays the second preset duration and then buffers the voice packet 1, the voice packet 2, the voice packet 3, the voice packet 4 in the buffer queue according to the received time sequence... In turn, it is sent to the second terminal device through the second access network device.
其中,第二预设时长可以等于t1-t2-t3时长。假设,第二终端设备接受的最大语音包传输时延为300ms,即t1等于300ms。语音包从第一接入网设备传输到第二终端设备所需要的平均时长50ms,即t2等于50ms。由于语音包1是第一接入网设备从第一终端设备接收到的第一个语音包,因此缓存队列中没有缓存的语音包,即t3等于300ms。因此,第一接入网设备在接收到语音包1之后延迟250ms。The second preset duration may be equal to t1-t2-t3 duration. It is assumed that the maximum transmission delay of the voice packet accepted by the second terminal device is 300 ms, that is, t1 is equal to 300 ms. The average time required for the voice packet to be transmitted from the first access network device to the second terminal device is 50 ms, that is, t2 is equal to 50 ms. Since voice packet 1 is the first voice packet received by the first access network device from the first terminal device, there is no buffered voice packet in the buffer queue, that is, t3 is equal to 300 ms. Therefore, the first access network device delays 250 ms after receiving voice packet 1.
以语音包2为例,第一接入网设备在发送语音包1之后发送语音包2的过程可以通过如下任一种方式实现:Taking voice packet 2 as an example, the process of sending voice packet 2 after the first access network device sends voice packet 1 may be implemented in any of the following ways:
方式一,第一接入网设备可以在发送完语音包1之后间隔第一预设时长后发送语音包2。Manner 1: The first access network device may send the voice packet 2 after sending the voice packet 1 after a first preset duration.
一种实施方式中,第一接入网设备在发送语音包1之后启动第一定时器,并在第一定时器超时时发送语音包2,该第一定时器的计时时长等于第一预设时长。In an embodiment, the first access network device starts the first timer after sending the voice packet 1, and sends the voice packet 2 when the first timer expires, and the time duration of the first timer is equal to the first preset duration.
示例性的,第一预设时长可以等于第一终端设备发送语音包的时间间隔,例如,第一终端设备每间隔20ms发送一个语音包,则第一定时器的计时时长可以等于20ms,则第一接入网设备可以在发送语音包1之后启动第一定时器,并在该第一定时器超时时发送语音包2。Exemplarily, the first preset duration may be equal to the time interval at which the first terminal device sends a voice packet. For example, if the first terminal device sends a voice packet every 20 ms, the time duration of the first timer may be equal to 20 ms. An access network device may start a first timer after sending a voice packet 1, and send a voice packet 2 when the first timer expires.
方式二,第一接入网设备可以在发送完语音包1之后,若语音包2在缓存队列中缓存的时间大于等于预设门限值,则第一接入网设备发送语音包2。Manner 2: After the voice packet 1 is sent by the first access network device, if the time that the voice packet 2 is buffered in the buffer queue is greater than or equal to a preset threshold, the first access network device sends the voice packet 2.
一种实施方式中,第一接入网设备可以在接收到语音包2时启动第二定时器,该第二定时器可以用于记录语音包2在缓存队列中缓存的时间,且该第二定时器的计时时长等于预设门限值。第一接入网设备在第二定时器超时时发送语音包2。In an embodiment, the first access network device may start a second timer when it receives the voice packet 2, the second timer may be used to record the time that the voice packet 2 is buffered in the buffer queue, and the second The duration of the timer is equal to the preset threshold. The first access network device sends a voice packet 2 when the second timer expires.
方式三,第一接入网设备可以在发送完语音包1之后,若缓存队列中缓存的语音包数量大于等于预设值,则第一接入网设备可以发送语音包2。Manner 3: After the voice packet 1 is sent by the first access network device, if the number of voice packets buffered in the buffer queue is greater than or equal to a preset value, the first access network device may send voice packet 2.
第一接入网设备发送语音包3过程、第一接入网设备发送语音包4过程、……,可以参阅第一接入网设备在发送完语音包1后发送语音包2过程,这里不再重复赘述。The process of sending the voice packet 3 by the first access network device, the process of sending the voice packet 4 by the first access network device,. Repeat again.
场景二,第一终端设备与第一接入网设备之间的网络连接中断。第一终端设备与第二终端设备之间的数据传输过程可以参阅图8B所示。Scenario 2: The network connection between the first terminal device and the first access network device is interrupted. For the data transmission process between the first terminal device and the second terminal device, refer to FIG. 8B.
A4,第一终端设备与第一接入网设备之间的网络连接中断期间,第一接入网设备按照的接收的时间顺序将中断之前缓存在缓存队列中的语音包依次通过第二接入网设备发送给第二终端设备。A4. During the interruption of the network connection between the first terminal device and the first access network device, the first access network device sequentially passes the voice packets buffered in the buffer queue before the interruption through the second access according to the received time sequence The network device sends to the second terminal device.
例如,第一终端设备与第一接入网设备之间的网络连接中断时,第一接入网设备的预设缓存区缓存了语音包4~7,则第一终端设备与第一接入网设备之间的网络连接中断期间,第一接入网设备依次通过第二接入网设备发送给第二终端设备发送语音包4、语音包5、语音包6、语音包7。For example, when the network connection between the first terminal device and the first access network device is interrupted, the preset buffer area of the first access network device buffers voice packets 4-7, then the first terminal device and the first access During the interruption of the network connection between the network devices, the first access network device sends the voice packet 4, voice packet 5, voice packet 6, and voice packet 7 to the second terminal device in sequence through the second access network device.
相比于现有技术中在第一终端设备与第一接入网设备之间的网络连接中断期间,第一接入网设备无语音包可以接收,导致第二终端设备无语音包可以接收,导致语音通话中断,本申请实施例在第一终端设备与第一接入网设备之间的网络连接中断期间,第二终端设备可以接收第一接入网设备的预设缓存区所缓存的语音包,从而可以在一定程度减少语音通话过程中的中断时长,在第一终端设备与第一接入网设备之间的网络连接中断的时间比较短时,甚至可以避免语音通话中断,从而可以提高MOS分。Compared with the prior art, when the network connection between the first terminal device and the first access network device is interrupted, the first access network device has no voice packets to receive, resulting in the second terminal device having no voice packets to receive, The voice call is interrupted. In the embodiment of the present application, during the interruption of the network connection between the first terminal device and the first access network device, the second terminal device may receive the voice buffered in the preset buffer area of the first access network device Package, which can reduce the interruption duration of the voice call to a certain extent. When the network connection between the first terminal device and the first access network device is interrupted for a relatively short time, it can even avoid the interruption of the voice call, which can improve MOS points.
场景三,第一终端设备与第一接入网设备之间的网络连接恢复。第一终端设备与第二终端设备之间的数据传输过程可以参阅图8C所示。Scenario 3: The network connection between the first terminal device and the first access network device is restored. For the data transmission process between the first terminal device and the second terminal device, refer to FIG. 8C.
A5,第一终端设备将在中断期间积累的多个语音包在一次上行调度中发送给第一接入网设备。例如,第一终端设备将在中断期间积累的语音包8~语音包11在一次上行调度中发送给第一接入网设备。A5. The first terminal device sends multiple voice packets accumulated during the interruption to the first access network device in one uplink scheduling. For example, the first terminal device sends voice packets 8 to 11 accumulated during the interruption to the first access network device in one uplink scheduling.
A6,第一接入网设备将该多个语音包缓存在缓存队列中,并依次通过第二接入网设备发送给第二终端设备。例如,第一接入网设备将从第一终端设备接收到语音包8~语音包11缓存在缓存队列中,并将语音包8~语音包11依次通过第二接入网设备发送给第二终端设备,其中,第一接入网设备在发送完语音包8后发送语音包9的过程、在发送完语音包9后发送语音包10的过程、在发送完语音包10后发送语音包11的过程,可以参阅步骤A3中第一接入网设备在发送完语音包1后发送语音包2过程,这里不再重复赘述。A6: The first access network device buffers the multiple voice packets in a buffer queue, and sends them to the second terminal device through the second access network device in sequence. For example, the first access network device buffers the voice packets 8 to 11 received from the first terminal device in a buffer queue, and sends the voice packets 8 to 11 in sequence to the second through the second access network device Terminal equipment, wherein the first access network device sends the voice packet 9 after sending the voice packet 8, the process of sending the voice packet 10 after sending the voice packet 9, and the voice packet 11 after sending the voice packet 10 For the process, refer to the process of sending the voice packet 2 after the first access network device sends the voice packet 1 in step A3, and details are not repeated here.
相比于现有技术中在第一终端设备与第一接入网设备之间的网络连接恢复后,第一接入网设备将从第一终端设备接收的多个语音包通过第二接入网设备一次发送给第二终端设备,使得第二终端设备在一次调度中接收的语音包数量较多,导致丢包,本申请实施例在第一终端设备与第一接入网设备之间的网络连接恢复后,第一接入网设备可以将第一终端设备积累的多个语音包一个一个的发送给第二接入网设备,使得第二接入网设备可以将第一终端设备积累的多个语音包一个一个的发送给第二终端设备,从而可以避免第二终端设备在一次调度中接收的语音包过多导致丢包的现象,进而可以提高MOS分。Compared with the prior art, after the network connection between the first terminal device and the first access network device is restored, the first access network device passes a plurality of voice packets received from the first terminal device through the second access The network device sends to the second terminal device at a time, so that the second terminal device receives a large number of voice packets in one scheduling, resulting in packet loss. The embodiment of the present application is between the first terminal device and the first access network device. After the network connection is restored, the first access network device may send a plurality of voice packets accumulated by the first terminal device to the second access network device one by one, so that the second access network device may store the accumulated voice packets of the first terminal device Multiple voice packets are sent to the second terminal device one by one, so that the phenomenon of packet loss caused by too many voice packets received by the second terminal device in one scheduling can be avoided, thereby further improving the MOS score.
场景四,参阅图8D所示,假设第一终端设备向第二终端设备发送了语音包8~语音包11,第一接入网设备先将从第一终端设备接收到语音包8~语音包11缓存在缓存队列中,然后将语音包8~语音包11依次发送给第二接入网设备。因此第二接入网设备依次向第二终端设备发送语音包8~11。 Scenario 4, as shown in FIG. 8D, assume that the first terminal device sends voice packet 8 to voice packet 11 to the second terminal device, and the first access network device first receives voice packet 8 to voice packet from the first terminal device 11 Cache in the buffer queue, and then send voice packets 8 to 11 to the second access network device in sequence. Therefore, the second access network device sequentially sends voice packets 8 to 11 to the second terminal device.
相比于第一接入网设备将从第一终端设备接收到语音包8~语音包11缓存在缓存队列后,在一次发送过程中将语音包8~语音包11全部发送给第二接入网设备,使得第二接入网设备在一次调度过程将语音包8~语音包11全部发送给第二终端设备的方式,第一接入网设备将缓存队列中的语音包8~语音包11依次发送给第二接入网设备,使得第二接入网设备可以依次向第二终端设备发送语音包8~11,从而可以减少第二接入网在一次调度过程 中发送的数据量,进而可以避免第二终端设备在一次调度中接收的语音包过多导致丢包的现象,进而可以提高MOS分。Compared with the first access network device, after receiving the voice packets 8 to 11 from the first terminal device and buffering them in the buffer queue, all the voice packets 8 to 11 are sent to the second access in one transmission process The network device enables the second access network device to send all the voice packets 8 to 11 to the second terminal device in one scheduling process, and the first access network device buffers the voice packets 8 to 11 in the queue Sequentially sent to the second access network device, so that the second access network device can sequentially send voice packets 8 to 11 to the second terminal device, thereby reducing the amount of data sent by the second access network in a scheduling process, and It can avoid the phenomenon of packet loss caused by too many voice packets received by the second terminal device in one scheduling, and can further improve the MOS score.
场景五,第二终端设备确定第二终端设备即将切换到第三接入网设备。其中,第二终端设备缓存了Q个语音包,所述第二终端设备中消抖缓存区最大缓存语音包的个数为M,若Q>M,则执行步骤A7和A8。若Q≤M,则执行步骤A9。Scenario five, the second terminal device determines that the second terminal device is about to switch to the third access network device. Wherein, the second terminal device buffers Q voice packets, and the maximum number of voice packets buffered in the debounce buffer area in the second terminal device is M. If Q>M, steps A7 and A8 are performed. If Q≤M, step A9 is executed.
A7,第二接入网设备在向所述第二终端设备发送切换命令之前,在一次调度中向所述第二终端设备发送所述Q个语音包中按照接收时间顺序的前M个语音包。A7. Before sending a handover command to the second terminal device, the second access network device sends the first M voice packets of the Q voice packets in the order of reception time to the second terminal device in one scheduling .
A8,第二接入网设备将所述Q个语音包中除所述前M个语音包之外的其他语音包转发给第三接入网设备。A8. The second access network device forwards other voice packets except the first M voice packets of the Q voice packets to the third access network device.
例如,M等于3,Q个语音包为语音包10至语音包14,则第二接入网设备在向所述第二终端设备发送切换命令之前,在一次调度中向所述第二终端设备发送语音包10~语音包12,并将语音包13和语音包14转发给第三接入网设备。第一终端设备与第二终端设备之间的数据传输过程可以参阅图8E所示。For example, if M is equal to 3 and Q voice packets are voice packet 10 to voice packet 14, the second access network device sends the second terminal device to the second terminal device in one scheduling before sending the handover command to the second terminal device Send voice packet 10 to voice packet 12, and forward voice packet 13 and voice packet 14 to the third access network device. For the data transmission process between the first terminal device and the second terminal device, refer to FIG. 8E.
相比于现有技术中,第二接入网将语音包10~语音包14全部转发给第三接入网设备,本申请实施例中,第二接入网设备通过在切换之前向第二终端设备发送语音包9~语音包12,使得第二终端设备可以在切换期间可以处理语音包9~语音包12,从而可以在一定程度上减少语音通话过程中的中断时间,在第二终端设备切换时间比较短时,甚至可以避免语音通话中断,因此可以在一定程度上改善MOS分。并且,第二接入网设备通过在切换之前向第二终端设备发送语音包9~语音包12,使得第二终端设备在切换到第三接入网时,第三接入网设备向第二终端设备发送2个语音包,即语音包13和语音包14,从而可以避免第二终端设备在一次调度中接收的语音包过多导致丢包的现象,进而可以提高MOS分。Compared with the prior art, the second access network forwards all voice packets 10 to 14 to the third access network device. In the embodiment of the present application, the second access network device passes the The terminal device sends the voice packet 9 to the voice packet 12, so that the second terminal device can process the voice packet 9 to the voice packet 12 during the handover, so that the interruption time during the voice call can be reduced to a certain extent. When the switching time is relatively short, the interruption of the voice call can even be avoided, so the MOS points can be improved to a certain extent. In addition, the second access network device sends voice packets 9 to 12 to the second terminal device before switching, so that when the second terminal device switches to the third access network, the third access network device sends The terminal device sends two voice packets, that is, voice packet 13 and voice packet 14, so that the phenomenon of packet loss caused by too many voice packets received by the second terminal device in one scheduling can be avoided, and the MOS score can be improved.
A9,第二接入网设备在向所述第二终端设备发送切换命令之前,在一次调度中向所述第二终端设备发送所述Q个语音包。A9. Before sending a handover command to the second terminal device, the second access network device sends the Q voice packets to the second terminal device in one scheduling.
例如,M等于3,Q个语音包为语音包10至语音包12,则第二接入网设备在向所述第二终端设备发送切换命令之前,在一次调度中向所述第二终端设备发送语音包10~语音包12。第一终端设备与第二终端设备之间的数据传输过程可以参阅图8F所示。For example, if M is equal to 3 and Q voice packets are voice packet 10 to voice packet 12, then the second access network device sends the second terminal device a schedule before sending a handover command to the second terminal device Send voice packet 10 ~ voice packet 12. For the data transmission process between the first terminal device and the second terminal device, refer to FIG. 8F.
相比于现有技术中,第二接入网将语音包10~语音包14全部转发给第三接入网设备,并在第二终端设备切换到第三接入网设备后由第三接入网设备在一次调度中发送给第二终端设备。本申请实施例中,第二接入网设备通过在切换之前向第二终端设备发送语音包9~语音包12,使得第二终端设备可以在切换期间可以处理语音包9~语音包12,从而可以在一定程度上减少语音通话过程中的中断时间,在第二终端设备切换时间比较短时,甚至可以避免语音通话中断,因此可以在一定程度上改善MOS分。Compared with the prior art, the second access network forwards all the voice packets 10 to 14 to the third access network device, and the third access network device switches the second terminal device to the third access network device. The network access device sends to the second terminal device in one scheduling. In the embodiment of the present application, the second access network device sends voice packets 9 to 12 to the second terminal device before the handover, so that the second terminal device can process the voice packets 9 to 12 during the handover, The interruption time during the voice call can be reduced to a certain extent. When the switching time of the second terminal device is relatively short, the interruption of the voice call can even be avoided, so the MOS score can be improved to a certain extent.
基于与方法实施例的同一发明构思,本申请实施例提供一种通信装置。该通信装置的结构可以如图9所示,包括处理单元901以及收发单元902。Based on the same inventive concept as the method embodiments, embodiments of the present application provide a communication device. The structure of the communication device may be as shown in FIG. 9 and includes a processing unit 901 and a transceiver unit 902.
一种实施方式中,该装置可以具体用于实现图7至图8F所述的实施例中第一接入网设备执行的方法,该设备可以是第一接入网设备本身,也可以是第一接入网设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。其中,所述收发单元902,可以用于从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备。处理单元901,用于将所述收发单元902接收的所述语音包缓存在预设缓存区。所述收发 单元902,还用于按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备,所述第二接入网设备为所述第二终端设备接入的接入网设备。In an embodiment, the apparatus may be specifically used to implement the method performed by the first access network device in the embodiments described in FIG. 7 to FIG. 8F. The device may be the first access network device itself, or may be the first A part of a chip or chipset or chip in an access network device used to perform related method functions. The transceiver unit 902 may be used to receive voice packets from a first terminal device, and the first access network device is an access network device accessed by the first terminal device. The processing unit 901 is configured to buffer the voice packet received by the transceiver unit 902 in a preset buffer area. The transceiver unit 902 is further configured to sequentially send the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, and the second access network device is An access network device accessed by the second terminal device.
处理单元以及收发单元还可以用于执行上述方法实施例中第一接入网设备相对应的其他步骤,具体可以参阅上述方法实施例,这里不再重复赘述。The processing unit and the transceiver unit may also be used to perform other steps corresponding to the first access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
另一种实施方式中,该装置可以具体用于实现图7至图8F所述的实施例中第二接入网设备执行的方法,该设备可以是第二接入网设备本身,也可以是第二接入网设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。其中,收发单元902,用于通过第一接入网设备依次从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备,所述第二接入网设备为第二终端设备接入的接入网设备;处理单元901,用于将所述语音包进行缓存;所述收发单元902,还用于按照接收的时间顺序每间隔预设时长向所述第二终端设备发送一个缓存的所述语音包。In another embodiment, the apparatus may be specifically used to implement the method performed by the second access network device in the embodiments described in FIG. 7 to FIG. 8F. The device may be the second access network device itself, or may be A part of the chip or chipset or chip in the second access network device for performing the relevant method function. Wherein, the transceiving unit 902 is configured to sequentially receive voice packets from the first terminal device through the first access network device, and the first access network device is an access network device accessed by the first terminal device. The second access network device is an access network device accessed by the second terminal device; the processing unit 901 is used to buffer the voice packet; and the transceiver unit 902 is also used to pre-determine each interval according to the chronological order of reception Set a duration to send the buffered voice packet to the second terminal device.
处理单元以及收发单元还可以用于执行上述方法实施例中第二接入网设备相对应的其他步骤,具体可以参阅上述方法实施例,这里不再重复赘述。The processing unit and the transceiver unit may also be used to perform other steps corresponding to the second access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
另一种实施方式中,该装置可以具体用于实现图7至图8F所述的实施例中第二接入网设备执行的方法,该设备可以是第二接入网设备本身,也可以是第二接入网设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。其中,收发单元902,用于通过第一接入网设备依次从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备,所述第二接入网设备为第二终端设备接入的接入网设备;处理单元901,用于将所述语音包进行缓存;所述收发单元902,还用于按照接收的时间顺序每间隔预设时长向所述第二终端设备发送一个缓存的所述语音包。In another embodiment, the apparatus may be specifically used to implement the method performed by the second access network device in the embodiments described in FIG. 7 to FIG. 8F. The device may be the second access network device itself, or may be A part of the chip or chipset or chip in the second access network device for performing the relevant method function. Wherein, the transceiving unit 902 is configured to sequentially receive voice packets from the first terminal device through the first access network device, and the first access network device is an access network device accessed by the first terminal device. The second access network device is an access network device accessed by the second terminal device; the processing unit 901 is used to buffer the voice packet; and the transceiver unit 902 is also used to pre-determine each interval according to the chronological order of reception Set a duration to send the buffered voice packet to the second terminal device.
处理单元以及收发单元还可以用于执行上述方法实施例中第二接入网设备相对应的其他步骤,具体可以参阅上述方法实施例,这里不再重复赘述。The processing unit and the transceiver unit may also be used to perform other steps corresponding to the second access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
另一种实施方式中,该装置可以具体用于实现图7至图8F所述的实施例中源接入网设备执行的方法,若第一终端设备进行切换,则源接入网设备为第一接入网设备,若第二终端设备进行切换,则源接入网设备为第二接入网设备。In another embodiment, the apparatus may be specifically used to implement the method performed by the source access network device in the embodiments described in FIG. 7 to FIG. 8F. If the first terminal device performs handover, the source access network device is the first An access network device, if the second terminal device performs handover, the source access network device is the second access network device.
以第二终端设备进行切换,则源接入网设备为第二接入网设备为例,源接入网设备可以是第二接入网设备本身,也可以是第二接入网设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。其中,处理单元901,用于确定终端设备即将进行切换。收发单元902,用于在向所述终端设备发送切换命令之前,在一次调度中向所述终端设备发送N个语音包,所述N为整数,且0<N≤M,所述M为所述终端设备中消抖缓存区最大缓存语音包的个数。Taking the second terminal device for handover, the source access network device is the second access network device as an example. The source access network device may be the second access network device itself, or may be the second access network device. A part of a chip or chipset or chip used to perform relevant method functions. The processing unit 901 is used to determine that the terminal device is about to switch. The transceiver unit 902 is configured to send N voice packets to the terminal device in one scheduling before sending a switching command to the terminal device, where N is an integer, and 0<N≤M, where M is all The maximum number of voice packets buffered in the debounce buffer area of the terminal device.
处理单元以及收发单元还可以用于执行上述方法实施例中第二接入网设备相对应的其他步骤,具体可以参阅上述方法实施例,这里不再重复赘述。The processing unit and the transceiver unit may also be used to perform other steps corresponding to the second access network device in the foregoing method embodiments. For details, refer to the foregoing method embodiments, and details are not repeated here.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another way of dividing. In addition, the functional modules in the embodiments of the present application may be integrated into one In the device, it can also exist alone physically, or two or more modules can be integrated into one module. The above integrated modules may be implemented in the form of hardware or software function modules.
其中,集成的模块既可以采用硬件的形式实现时,通信装置可以如图10所示,该通信装置可以是第一接入网设备或者第一接入网设备中的芯片。该通信装置也可以是第二接 入网设备或者第二接入网设备中的芯片。该通信装置也可以是源接入网设备或者源接入网设备中的芯片。该通信装置可以包括处理器1001,通信接口1002,存储器1003。其中,处理单元901可以为处理器1001。发送单元902可以为通信接口1002。When the integrated module can be implemented in hardware, the communication device may be as shown in FIG. 10, and the communication device may be the first access network device or a chip in the first access network device. The communication device may also be a chip in the second access network device or the second access network device. The communication device may also be a source access network device or a chip in the source access network device. The communication device may include a processor 1001, a communication interface 1002, and a memory 1003. The processing unit 901 may be the processor 1001. The sending unit 902 may be a communication interface 1002.
处理器1001,可以是一个中央处理模块(central processing unit,CPU),或者为数字处理模块等等。通信接口1002可以是收发器、也可以为接口电路如收发电路等、也可以为收发芯片等等。该通信装置还包括:存储器1003,用于存储处理器1002执行的程序。存储器1003可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器1003是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The processor 1001 may be a central processing unit (CPU) or a digital processing module. The communication interface 1002 may be a transceiver, an interface circuit such as a transceiver circuit, or a transceiver chip. The communication device further includes a memory 1003 for storing the program executed by the processor 1002. The memory 1003 may be a non-volatile memory, such as a hard disk (HDD) or a solid-state drive (SSD), etc., or may be a volatile memory (volatile memory), such as random access memory -access memory, RAM). The memory 1003 is any other medium that can be used to carry or store a desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
处理器1001用于执行存储器1003存储的程序代码,具体用于执行上述处理单元1601的动作,本申请在此不再赘述。The processor 1001 is used to execute the program code stored in the memory 1003, and is specifically used to execute the actions of the above-mentioned processing unit 1601, which will not be repeated here.
本申请实施例中不限定上述通信接口1001、处理器1002以及存储器1003之间的具体连接介质。本申请实施例在图10中以存储器1003、处理器1002以及通信接口1001之间通过总线1004连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。In the embodiments of the present application, the specific connection medium between the communication interface 1001, the processor 1002, and the memory 1003 is not limited. In the embodiment of the present application, in FIG. 10, the memory 1003, the processor 1002, and the communication interface 1001 are connected by a bus 1004. The bus is shown by a thick line in FIG. , Not to limit. The bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the application. It should be understood that each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device An apparatus for realizing the functions specified in one block or multiple blocks of one flow or multiple flows of a flowchart and/or one block or multiple blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device The instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. In this way, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (13)
- 一种数据传输方法,其特征在于,该方法应用于语音通话场景中,包括:A data transmission method, characterized in that the method is applied in a voice call scenario, including:第一接入网设备从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备;The first access network device receives a voice packet from a first terminal device, and the first access network device is an access network device accessed by the first terminal device;所述第一接入网设备将所述语音包缓存在预设缓存区;The first access network device caches the voice packet in a preset buffer area;所述第一接入网设备按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备,所述第二接入网设备为所述第二终端设备接入的接入网设备。The first access network device sequentially sends the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence, and the second access network device is The access network device accessed by the second terminal device.
- 如权利要求1所述的方法,其特征在于,所述语音包包括第一语音包和第二语音包,所述第一接入网设备从第一终端设备接收语音包,包括:The method of claim 1, wherein the voice packet includes a first voice packet and a second voice packet, and the first access network device receiving the voice packet from the first terminal device includes:所述第一接入网设备依次从第一终端设备接收第一语音包和第二语音包;The first access network device sequentially receives the first voice packet and the second voice packet from the first terminal device;所述第一接入网设备按照接收的时间顺序将所述预设缓存区中缓存的语音包依次通过第二接入网设备发送给第二终端设备,包括:The first access network device sequentially sending the voice packets buffered in the preset buffer area to the second terminal device through the second access network device according to the received time sequence includes:所述第一接入网设备将所述第一语音包和所述第二语音包依次通过所述第二接入网设备发送给所述第二终端设备。The first access network device sequentially sends the first voice packet and the second voice packet to the second terminal device through the second access network device.
- 如权利要求2所述的方法,其特征在于,所述第一接入网设备将所述第一语音包和所述第二语音包依次通过所述第二接入网设备发送给所述第二终端设备,包括:The method according to claim 2, wherein the first access network device sends the first voice packet and the second voice packet to the second access network device in sequence through the second access network device Two terminal equipment, including:所述第一接入网设备发送所述第一语音包后,当所述第二语音包在所述预设缓存区内缓存的时间超过预设门限值,则所述第一接入网设备通过所述第二接入网设备向所述第二终端设备发送所述第二语音包;或者After the first access network device sends the first voice packet, when the time that the second voice packet is buffered in the preset buffer area exceeds a preset threshold, the first access network The device sends the second voice packet to the second terminal device through the second access network device; or所述第一接入网设备发送所述第一语音包后,当所述预设缓存区内所缓存语音包的数量大于预设值,所述第一接入网设备通过所述第二接入网设备向所述第二终端设备发送所述第二语音包;或者After the first access network device sends the first voice packet, when the number of voice packets buffered in the preset buffer area is greater than a preset value, the first access network device passes the second The network access device sends the second voice packet to the second terminal device; or所述第一接入网设备发送所述第一语音包后,间隔第一预设时长通过所述第二接入网设备向所述第二终端设备发送所述第二语音包。After the first access network device sends the first voice packet, the second voice packet is sent to the second terminal device through the second access network device at a first preset duration.
- 如权利要求3所述的方法,其特征在于,若第二语音包为语音帧,则所述第一预设时长等于第一预设值;The method of claim 3, wherein if the second voice packet is a voice frame, the first preset duration is equal to the first preset value;若所述第二语音包为静默帧,则所述第一预设时长等于第二预设值。If the second voice packet is a silent frame, the first preset duration is equal to the second preset value.
- 如权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:所述第一接入网设备在从第一终端设备接收第一个语音包之后,将所述第一个语音包延迟第二预设时长后进行发送,所述第二预设时长满足如下公式:After receiving the first voice packet from the first terminal device, the first access network device delays sending the first voice packet by a second preset duration, and the second preset duration meets the following formula :0≤T≤t1-t2;0≤T≤t1-t2;其中,所述T为所述第二预设时长,所述t1为所述第二终端设备接受的最大语音包传输时延;所述t2为语音包从所述第一接入网设备传输到所述第二终端设备所需要的平均时长。Wherein, T is the second preset duration, t1 is the maximum voice packet transmission delay accepted by the second terminal device; and t2 is the voice packet transmission from the first access network device to The average duration required by the second terminal device.
- 一种数据传输方法,其特征在于,该方法应用于语音通话场景中,包括:A data transmission method, characterized in that the method is applied in a voice call scenario, including:第二接入网设备通过第一接入网设备依次从第一终端设备接收语音包,所述第一接入网设备为所述第一终端设备接入的接入网设备,所述第二接入网设备为第二终端设备接入的接入网设备;The second access network device sequentially receives voice packets from the first terminal device through the first access network device, the first access network device is an access network device accessed by the first terminal device, and the second The access network device is an access network device accessed by the second terminal device;所述第二接入网设备将所述语音包进行缓存;The second access network device caches the voice packet;所述第二接入网设备按照接收的时间顺序每间隔预设时长向所述第二终端设备发送一个缓存的所述语音包。The second access network device sends a buffered voice packet to the second terminal device according to a preset time interval at a predetermined time interval in the received time sequence.
- 如权利要求6所述的方法,其特征在于,若所述语音包为语音帧,则所述预设时长等于第一预设值;The method of claim 6, wherein if the voice packet is a voice frame, the preset duration is equal to a first preset value;若所述语音包为静默帧,则所述预设时长等于第二预设值。If the voice packet is a silent frame, the preset duration is equal to the second preset value.
- 一种数据传输方法,其特征在于,该方法应用于语音通话场景中,包括:A data transmission method, characterized in that the method is applied in a voice call scenario, including:源接入网设备确定终端设备即将进行切换;The source access network device determines that the terminal device is about to switch;在向所述终端设备发送切换命令之前,所述源接入网设备在一次调度中向所述终端设备发送N个语音包,所述N为整数,且0<N≤M,所述M为所述终端设备中消抖缓存区最大缓存语音包的个数。Before sending a handover command to the terminal device, the source access network device sends N voice packets to the terminal device in one scheduling, where N is an integer, and 0<N≤M, where M is The maximum number of voice packets buffered in the debounce buffer area of the terminal device.
- 如权利要求8所述的方法,其特征在于,若所述源接入网设备中已缓存语音包的数量大于所述M,则所述N等于所述M,且所述N个语音包为所述源接入网设备中已缓存语音包按照接收时间顺序的前M个语音包;或者The method according to claim 8, wherein if the number of buffered voice packets in the source access network device is greater than the M, the N is equal to the M, and the N voice packets are The first M voice packets in the source access network device that have buffered voice packets in the order of receiving time; or若所述源接入网设备中已缓存语音包的数量不大于所述M,则所述N个语音包为所述源接入网设备中已缓存的语音包。If the number of buffered voice packets in the source access network device is not greater than the M, the N voice packets are buffered voice packets in the source access network device.
- 如权利要求9所述的方法,其特征在于,若所述源接入网设备中所缓存语音包的数量大于所述M,所述方法还包括:The method according to claim 9, wherein if the number of voice packets buffered in the source access network device is greater than the M, the method further comprises:所述源接入网设备将已缓存的语音包中除所述前M个语音包之外的其他语音包转发给目标接入网设备。The source access network device forwards the voice packets other than the first M voice packets in the buffered voice packets to the target access network device.
- 如权利要求8至10任一项所述的方法,其特征在于,源接入网设备确定终端设备即将进行切换,包括:The method according to any one of claims 8 to 10, wherein the source access network device determining that the terminal device is about to perform handover includes:所述源接入网设备接收所述终端设备发送的测量报告;The source access network device receives the measurement report sent by the terminal device;基于所述测量报告确定所述终端设备即将进行切换;或者源接入网设备确定终端设备即将进行切换,包括:It is determined that the terminal device is about to be handed over based on the measurement report; or the source access network device determines that the terminal device is about to be handed over, including:所述源接入网设备基于所述源接入网设备的负载确定所述终端设备即将进行切换。The source access network device determines that the terminal device is about to switch based on the load of the source access network device.
- 一种通信装置,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器中存储有指令;A communication device, characterized in that it includes a processor, the processor is coupled to a memory, and instructions are stored in the memory;所述处理器执行所述指令时,使所述装置执行权利要求1至5任一项所述的方法;When the processor executes the instruction, the device is caused to perform the method according to any one of claims 1 to 5;或者,所述处理器执行所述指令时,使所述装置执行权利要求6或7所述的方法;Or, when the processor executes the instruction, the device is caused to execute the method of claim 6 or 7;或者,所述处理器执行所述指令时,使所述装置执行权利要求8至11任一项所述的方法。Or, when the processor executes the instruction, the device is caused to execute the method according to any one of claims 8 to 11.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储程序,所述程序在被一个或多个处理器读取并执行时可实现权利要求1至5任一项所述的方法;或者,所述程序在被一个或多个处理器读取并执行时可实现权利要求6或7所述的方法;或者,所述程序在被一个或多个处理器读取并执行时可实现权利要求8至11任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program, which can be implemented by any one of claims 1 to 5 when read and executed by one or more processors The method described; or, when the program is read and executed by one or more processors, the method of claim 6 or 7 can be implemented; or, the program is read and executed by one or more processors The method according to any one of claims 8 to 11 can be implemented during execution.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811423569.3A CN111225418B (en) | 2018-11-27 | 2018-11-27 | Data transmission method and device |
CN201811423569.3 | 2018-11-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020108540A1 true WO2020108540A1 (en) | 2020-06-04 |
Family
ID=70828820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/121324 WO2020108540A1 (en) | 2018-11-27 | 2019-11-27 | Data transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111225418B (en) |
WO (1) | WO2020108540A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150372B (en) * | 2021-03-31 | 2024-03-15 | 海能达通信股份有限公司 | Method for preventing voice loss in call, communication system and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003055140A1 (en) * | 2001-12-19 | 2003-07-03 | Motorola, Inc. | Method for tuning voice playback ratio to optimize call quality |
CN101426228A (en) * | 2008-11-28 | 2009-05-06 | 上海华为技术有限公司 | Voice packet sending method, apparatus and system |
CN102761468A (en) * | 2011-04-26 | 2012-10-31 | 中兴通讯股份有限公司 | Method and system for adaptive adjustment of voice jitter buffer |
CN102843339A (en) * | 2011-06-21 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for processing time delay |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7333476B2 (en) * | 2002-12-23 | 2008-02-19 | Broadcom Corporation | System and method for operating a packet voice far-end echo cancellation system |
CN100525297C (en) * | 2004-09-09 | 2009-08-05 | 华为技术有限公司 | Realization method of speech service |
CN100563394C (en) * | 2006-03-29 | 2009-11-25 | 华为技术有限公司 | A kind of gradual network system and this system's switching be transmission method reportedly |
CN101686178B (en) * | 2008-09-28 | 2012-11-21 | 华为技术有限公司 | Method and system for improving multi-media connection quality, media control and processing equipment |
CN102014431B (en) * | 2010-11-08 | 2013-09-11 | 华为技术有限公司 | Anti-jittering data transmission method, equipment and system |
CN105245496B (en) * | 2015-08-26 | 2019-03-12 | 广州市百果园网络科技有限公司 | A kind of method and apparatus of playing audio-fequency data |
-
2018
- 2018-11-27 CN CN201811423569.3A patent/CN111225418B/en active Active
-
2019
- 2019-11-27 WO PCT/CN2019/121324 patent/WO2020108540A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003055140A1 (en) * | 2001-12-19 | 2003-07-03 | Motorola, Inc. | Method for tuning voice playback ratio to optimize call quality |
CN101426228A (en) * | 2008-11-28 | 2009-05-06 | 上海华为技术有限公司 | Voice packet sending method, apparatus and system |
CN102761468A (en) * | 2011-04-26 | 2012-10-31 | 中兴通讯股份有限公司 | Method and system for adaptive adjustment of voice jitter buffer |
CN102843339A (en) * | 2011-06-21 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for processing time delay |
Also Published As
Publication number | Publication date |
---|---|
CN111225418A (en) | 2020-06-02 |
CN111225418B (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11546106B2 (en) | Method and device for determining beam failure detection reference signal resource | |
RU2722395C1 (en) | Radio interface delay adjustment mechanism | |
JP5148748B2 (en) | Heartbeat signal generation system and method | |
US8606290B2 (en) | Method and apparatus for performing a demotion in a cellular communications network | |
TW202021394A (en) | Channel monitoring method and apparatus, terminal device, and network device | |
US11553067B2 (en) | Method and device for transmitting data | |
RU2707910C1 (en) | Method and device for operation with paging expansion | |
JP2011030197A (en) | Method of scheduling request and communication device | |
US20090221281A1 (en) | Method and Apparatus for Performing Buffer Status Reporting | |
JP2016528758A (en) | Jitter buffer performance improvement by radio level feedback | |
WO2021195843A1 (en) | Method and apparatus for data transmission | |
US20210212128A1 (en) | Techniques for determining non-contention random access resource, network device, and terminal device | |
CN110913505A (en) | Downlink data caching method, network equipment and UPF entity | |
CN116521589A (en) | Data transmission method, device and storage medium | |
WO2020108540A1 (en) | Data transmission method and device | |
WO2020243931A1 (en) | Method and device for adjusting pdcch monitoring period | |
WO2024030494A1 (en) | Delay status report for extended reality (xr) wireless communications | |
CN113923731A (en) | RRM (radio resource management) measuring method and device, storage medium, UE (user Equipment) and base station | |
WO2022116077A1 (en) | Communication method and apparatus | |
EP4412260A1 (en) | Information feedback method and apparatus, and terminal and network device | |
WO2023131291A1 (en) | Random access method, terminal, apparatus and storage medium | |
US20230363042A1 (en) | Managed discontinuous reception | |
WO2024131433A1 (en) | Method and apparatus for synchronizing satellite-ground communication loads, and storage medium | |
WO2024094014A1 (en) | Bsr reporting methods and apparatuses, terminal and network side device | |
WO2024093847A1 (en) | Format determination method, user equipments (ues) and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19888602 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: 19888602 Country of ref document: EP Kind code of ref document: A1 |