Image frame retransmission method and device

By parsing RTP packets on the video call network device and identifying lost image frames in advance, initiating a retransmission request to the forward device and caching image frames on the transmission path, the problem of long image frame retransmission delays in video calls is solved. , improving communication performance and error correction efficiency.

CN118740341APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310363408.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

During the video call, due to the unreliable transmission protocol of UDP and the instability of the wireless network, RTP data packets were lost, resulting in a large retransmission delay of image frames and delayed error correction.

Method used

By parsing RTP data packets on network devices, we can identify image frame loss in advance, initiate a retransmission request to the previous device, shorten the image frame retransmission path, reduce latency, and cache image frames on the transmission path to reduce retransmission latency. .

Benefits of technology

It effectively shortens the path and delay of image frame retransmission, improves communication performance, and ensures timely error correction of video call files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740341A_ABST
    Figure CN118740341A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image frame retransmission method and device. The method comprises the following steps: a first network device receives a first real-time transport protocol RTP data packet set from a first terminal device, wherein the first RTP data packet set is used for bearing a first image frame sent by the first terminal device to a second terminal device; the first network device sends a first retransmission request to the first terminal device according to the first RTP data packet set, the first retransmission request being used for requesting the first terminal device to retransmit the first image frame; and the first network equipment receives the second RTP data packet set from the first terminal equipment. Thus, the first network device in the middle of the transmission path of the first image frame initiates the retransmission request of the first image frame to the previous device, the retransmission path of the image frame is shortened, the retransmission time delay of the first image frame is reduced, and the communication performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an image frame retransmission method and device. Background Art

[0002] During the communication process, users need to transmit video call files during video calls, and image frames are the basic units that make up video call files. Image frames are usually carried in real-time transport protocol (RTP) data packets, and RTP data packets are transmitted based on user datagram protocol (UDP), and the transmission process uses wireless network communication technology (WIFI), third-generation mobile communication technology (3rd-Generation, 3G), fourth-generation mobile communication technology (4th-Generation, 4G), fifth-generation mobile communication technology (5th-Generation, 5G) and other wireless networks. In this process, since UDP is an unreliable transmission protocol and the wireless network is unstable, it is inevitable that some RTP data packets will be lost.

[0003] On this basis, the receiver of the video call file needs to determine whether the RTP data packet corresponding to the image frame has a packet loss problem. If there is a packet loss problem, it sends a request to the sender of the video call file to request to re-acquire the image frame. When the path between the receiver and sender of the video call file is long, the delay caused by this process is large, and the error correction of the video call file is not timely enough. Summary of the invention

[0004] The embodiments of the present application provide an image frame retransmission method and device for shortening the image frame retransmission path, reducing the image frame retransmission delay, and improving communication performance.

[0005] In a first aspect, an embodiment of the present application provides an image frame retransmission method, the method comprising: a first network device receives a first RTP data packet set from a first terminal device; the first RTP data packet set is used to carry a first image frame sent by the first terminal device to a second terminal device; the first network device sends a first retransmission request to the first terminal device based on the first RTP data packet set; the first retransmission request is used to request the first terminal device to retransmit the first image frame; the first network device receives a second RTP data packet set from the first terminal device; the second RTP data packet set is used to carry the first image frame.

[0006] By adopting this method, the first network device on the transmission path of the first image frame can initiate a retransmission request of the first image frame to the previous device, so that the retransmission can be initiated before the receiving terminal device, shortening the image frame retransmission path, reducing the delay of the first image frame retransmission, and improving communication performance.

[0007] In one possible design, the first network device can determine the first RTP data packet set in the following manner: the first network device parses the packet header of the first data packet to determine that the first data packet is used to carry the first image frame; the first network device determines that the time difference between the reception time of the second data packet and the reception time of the third data packet is less than or equal to a time threshold; wherein the first RTP data packet set includes the first data packet, the second data packet and the third data packet; the first data packet is any data packet in the first RTP data packet set; the third data packet is a non-first data packet in the first RTP data packet set; and the second data packet is a data packet received at a previous moment of the third data packet.

[0008] By adopting this design, the first network device can ensure that each data packet in the first RTP data packet set is a data packet corresponding to the first image frame, thereby improving the accuracy of the first RTP data packet set; at the same time, the first network device can ensure that the receiving time difference between any two data packets in the first RTP data packet set is less than or equal to the time threshold, thereby avoiding the situation where the first network device continues to wait for data packets after packet loss, thereby reducing the delay of the image frame retransmission operation.

[0009] In one possible design, the process of the first network device sending a first retransmission request to the first terminal device includes: the first network device determines the packet loss rate of the first image frame based on the RTP data packets included in the first RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the first network device sends the first retransmission request to the first terminal device.

[0010] With this design, the network device can parse the RTP data packets carrying the image frames before the second terminal device, which advances the timing of identifying image frame loss, thereby shortening the image frame retransmission path and improving communication performance.

[0011] In one possible design, the first network device may calculate the packet loss rate of the first image frame in the following manner: the first network device obtains the expected number of data packets in the first RTP data packet set; the first network device parses the first RTP data packet set to determine the actual number of data packets in the first RTP data packet set; the first network device determines the packet loss rate of the first RTP data packet set based on the expected number and the actual number.

[0012] With such a design, the first network device can determine the packet loss rate of the first RTP data packet set, thereby improving the accuracy of the retransmission request and improving the communication performance.

[0013] In one possible design, the first network device may also send a second RTP data packet set to the second terminal device or the second network device.

[0014] In one possible design, the first network device may also parse the second RTP data packet set and cache the first image frame carried in the second RTP data packet set.

[0015] With this design, network devices on the transmission path between two terminal devices can cache several image frames, so that the back-end devices on the transmission path can request retransmission of image frames, reducing the delay of image frame retransmission and improving communication performance.

[0016] In one possible design, the first network device can also receive a second retransmission request from a second terminal device or a second network device; the second retransmission request is used to request the first network device to retransmit the first image frame; the first network device sends a third RTP data packet set to the second terminal device or the second network device based on the locally cached first image frame; wherein the third RTP data packet set is used to carry the first image frame.

[0017] With this design, when the backend device (second network device or second terminal device) of the first network device initiates a retransmission request, the first network device can use the locally cached image frame to provide the backend device with the RTP data packet corresponding to the image frame, thereby improving communication performance.

[0018] In a possible design, the first image frame is any one of an I frame, a P frame, and a B frame.

[0019] In a possible design, the first image frame is an I frame; and the first retransmission request is a PLI request.

[0020] In a second aspect, an embodiment of the present application provides an image frame retransmission method, the method comprising: a second terminal device receives a second RTP data packet set from a first network device; the second RTP data packet set is used to carry a first image frame; the second terminal device sends a second retransmission request to the first network device based on the second RTP data packet set; the second retransmission request is used to request the first network device to retransmit the first image frame; the second terminal device receives a third RTP data packet set from the first network device, the third RTP data packet set is determined by the first network device based on the first image frame stored locally; the third RTP data packet set is used to carry the first image frame.

[0021] In one possible design, the process of the second terminal device sending the second retransmission request to the first network device includes: the second terminal device determines the packet loss rate of the first image frame based on the RTP data packets included in the second RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the second terminal device sends the second retransmission request to the first network device.

[0022] In one possible design, the second terminal device can calculate the packet loss rate of the first image frame in the following manner: the second terminal device obtains the expected number of data packets in the second RTP data packet set; the second terminal device parses the second RTP data packet set to determine the actual number of data packets in the second RTP data packet set; the second terminal device determines the packet loss rate of the second RTP data packet set based on the expected number and the actual number.

[0023] In one possible design, the second terminal device may also send a third retransmission request to the first terminal device based on the third RTP data packet set; the third retransmission request is used to request the first terminal device to retransmit the first image frame; the second terminal device receives a fourth RTP data packet set from the first terminal device, and the fourth RTP data packet set is used to carry the first image frame.

[0024] In a possible design, the first image frame is any one of an intra-frame coded frame I frame, a forward predictive coded frame P frame, and a bidirectional predictive interpolation coded frame B frame.

[0025] In one possible design, the first image frame is an I frame; and the second retransmission request is a picture loss indication PLI request.

[0026] In a third aspect, an embodiment of the present application provides an image frame retransmission method, the method comprising: a second network device receives a second RTP data packet set from a first network device; the second RTP data packet set is used to carry a first image frame; the second network device sends a second retransmission request to the first network device based on the second RTP data packet set; the second retransmission request is used to request the first network device to retransmit the first image frame; the second network device receives a third RTP data packet set from the first network device, the third RTP data packet set is determined by the first network device based on the first image frame stored locally; the third RTP data packet set is used to carry the first image frame.

[0027] In one possible design, the process of the second network device sending the second retransmission request to the first network device includes: the second network device determines the packet loss rate of the first image frame based on the RTP data packets included in the second RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the second network device sends the second retransmission request to the first network device.

[0028] In one possible design, the second network device may calculate the packet loss rate of the first image frame in the following manner: the second network device obtains the expected number of data packets in the second RTP data packet set; the second network device parses the second RTP data packet set to determine the actual number of data packets in the second RTP data packet set; the second network device determines the packet loss rate of the second RTP data packet set based on the expected number and the actual number.

[0029] In one possible design, the second network device may also send a fourth retransmission request to the first terminal device based on the third RTP data packet set; the fourth retransmission request is used to request the first terminal device to retransmit the first image frame; the second network device receives a fifth RTP data packet set from the first terminal device; the fifth RTP data packet set is used to carry the first image frame.

[0030] In one possible design, the second network device may also forward the third RTP data packet set to the second terminal device.

[0031] In one possible design, the second network device may also parse the third RTP data packet set and cache the first image frame carried in the third RTP data packet set.

[0032] In one possible design, the second network device can also receive a fifth retransmission request from the second terminal device; the fifth retransmission request is used to request the second network device to retransmit the first image frame; the second network device sends a sixth RTP data packet set to the second terminal device based on the locally cached first image frame; the sixth RTP data packet set is used to carry the first image frame.

[0033] In a possible design, the first image frame is any one of an I frame, a P frame, and a B frame.

[0034] In one possible design, the first image frame is an I frame; and the second retransmission request is a PLI request.

[0035] In a fourth aspect, an embodiment of the present application provides an image frame retransmission method, the method comprising: a second terminal device receives a third RTP data packet set from a second network device; the third RTP data packet set is used to carry a first image frame; the second terminal device sends a fifth retransmission request to the second network device based on the third RTP data packet set; the fifth retransmission request is used to request the second network device to retransmit the first image frame; the second terminal device receives a sixth RTP data packet set from the second network device; the sixth RTP data packet set is used to carry the first image frame.

[0036] In one possible design, the process of the second terminal device sending the fifth retransmission request to the second network device includes: the second terminal device determines the packet loss rate of the first image frame based on the RTP data packets included in the third RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the second terminal device sends the fifth retransmission request to the second network device.

[0037] In one possible design, the second terminal device may calculate the packet loss rate of the first image frame in the following manner: the second terminal device obtains the expected number of data packets in the third RTP data packet set; the second terminal device parses the third RTP data packet set to determine the actual number of data packets in the third RTP data packet set; the second terminal device determines the packet loss rate of the third RTP data packet set based on the expected number and the actual number.

[0038] In one possible design, the second terminal device can also send a sixth retransmission request to the first network device based on the sixth RTP data packet set, and the sixth retransmission request is used to request the first network device to retransmit the first image frame; the second terminal device receives the seventh RTP data packet set from the first network device; the seventh RTP data packet set is used to carry the first image frame.

[0039] In one possible design, the second terminal device may also send a seventh retransmission request to the first terminal device based on the sixth RTP data packet set, where the seventh retransmission request is used to request the first terminal device to retransmit the first image frame; the second terminal device receives the eighth RTP data packet set from the first terminal device; the eighth RTP data packet set is used to carry the first image frame.

[0040] In a possible design, the first image frame is any one of an intra-frame coded frame I frame, a forward predictive coded frame P frame, and a bidirectional predictive interpolation coded frame B frame.

[0041] In one possible design, the first image frame is an I frame; and the second retransmission request is a picture loss indication PLI request.

[0042] In a fifth aspect, an embodiment of the present application provides a communication device, comprising a module for executing each step in the first aspect above. Optionally, the device comprises a communication module and a processing module; wherein the communication module is used to receive and send data; and the processing module is used to execute the methods provided in the first to fourth aspects above based on the aforementioned communication module. Exemplarily, the communication device can be applied to the aforementioned first network device, the second network device, or the second terminal device.

[0043] In a sixth aspect, an embodiment of the present application provides a communication device, including a communication module, a memory, and a processor; wherein the communication module is used to receive and send data; the memory is used to store program instructions and data; the processor is used to read the program instructions and data in the memory, and implement the methods provided in the first to fourth aspects above. Exemplarily, the communication device can be the aforementioned first network device, the second network device, or the second terminal device.

[0044] In a seventh aspect, an embodiment of the present application provides a communication device, comprising at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to execute the methods provided in the first to fourth aspects of the present application. Exemplarily, the communication device may be the aforementioned first network device, the second network device, or the second terminal device.

[0045] In an eighth aspect, an embodiment of the present application further provides a computer program, which, when executed on a computer, enables the computer to execute the methods provided in the first to fourth aspects. Optionally, the computer may be the aforementioned first network device, second network device, or second terminal device; or the above communication device or communication device.

[0046] In a ninth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a computer, the computer executes the method provided in the first to fourth aspects above. Optionally, the computer can be the aforementioned first network device, second network device or second terminal device; or the above communication device or communication device.

[0047] In a tenth aspect, an embodiment of the present application further provides a chip, the chip is used to read a computer program stored in a memory, and execute the methods provided in the first to fourth aspects above. Optionally, the chip may include a processor and a memory, the processor is coupled to the memory, and is used to read the computer program stored in the memory to implement the method provided in the first aspect above.

[0048] In the eleventh aspect, the embodiment of the present application further provides a chip system, which includes a processor for supporting a computer device to implement the methods provided in the first to fourth aspects above. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0049] The technical effects that can be achieved in any of the second to eleventh aspects mentioned above can refer to the description of the technical effects that can be achieved by any possible design in the first aspect mentioned above, and the repetitions will not be discussed here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 An architecture diagram of a communication system provided in an embodiment of the present application;

[0051] Figure 2 A flowchart of an image frame retransmission method provided in an embodiment of the present application;

[0052] Figure 3 A flowchart of another image frame retransmission method provided in an embodiment of the present application;

[0053] Figure 4 A flowchart of another image frame retransmission method provided in an embodiment of the present application;

[0054] Figure 5 A flowchart of another image frame retransmission method provided in an embodiment of the present application;

[0055] Figure 6 An example diagram of an image frame retransmission method provided in an embodiment of the present application;

[0056] Figure 7 An example diagram of another image frame retransmission method provided in an embodiment of the present application;

[0057] Figure 8 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0058] Fig. 9 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and beneficial effects of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0060] Figure 1FIG. 1 shows a structural diagram of a communication system to which the method provided in the embodiment of the present application is applicable. Figure 1 As shown, the communication system includes two terminal devices, at least one network device and at least one wireless device. The terminal device in the communication system can access the communication system through the wireless device, thereby connecting the network device, thereby realizing communication interaction between the terminal device and the network device or another terminal device. The two terminal devices are respectively the sender of data and the receiver of data. For example, image frames in a video call file can be transmitted between terminal devices, and each image frame is carried in multiple RTP data packets. The network device is located on the transmission path of the first image frame between the two terminal devices, and the network device can forward data from the sender to the receiver. In the method shown in the present application, the network device can also parse the RTP data packet.

[0061] For example, the two terminal devices are user equipment (UE) A and UE B; the at least one network device may include an internet protocol (IP) multimedia subsystem (IMS) access gateway (AGW) A and IMS AGW B.

[0062] Further, take UE A as the sender of the image frame and UE B as the receiver of the image frame as an example. UE A can send the multiple RTP data packets to IMS AGW A through a wireless device, and the transmission delay between UE A and the wireless device is 35 milliseconds (ms), and the transmission delay between the wireless device and IMS AGW A is 3ms; IMS AGW A can forward the RTP data packet to IMS AGW B through the network, and the transmission delay between IMS AGW A and IMS AGW B is 5ms; IMS AGW B can forward the RTP data packet to UE B through a wireless device, and the transmission delay between IMS AGW B and the wireless device is 3ms, and the transmission delay between the wireless device and UE B is 35ms; therefore, UE A will generate a transmission delay of 81ms when transmitting the RTP data packet to UE B. It should be understood that when UE B is the sender of the image frame and UE A is the receiver of the image frame, the communication process is similar and will not be repeated here.

[0063] Obviously, when the transmission path between two terminal devices is long, the transmission delay of the RTP data packet is long. Once the problem of RTP data packet loss occurs, the two terminal devices can retransmit the image frame based on the audio-visual profile with feedback (AVPF) mechanism developed by the Internet Engineering Task Force (IETF). Still taking UE A as the sender of the image frame and UE B as the receiver of the image frame as an example. UE A initiating a retransmission request to UE B will generate a transmission delay of 81ms; UE A receiving the retransmitted RTP data packet from UE B will generate a transmission delay of 81ms; therefore, completing the retransmission of the entire RTP data packet will generate a transmission delay of 162ms. In this way, the retransmission process of the RTP data packet will generate a greater degree of delay (162ms), and the error correction of the video call file cannot be realized in time.

[0064] Based on this, an embodiment of the present application provides a method for retransmitting an image frame. The embodiment of the present application will be described in detail below in conjunction with the accompanying drawings.

[0065] Figure 2 A flowchart of an image frame retransmission method provided in an embodiment of the present application is provided. The method is applicable to Figure 1 The communication system shown can be used, for example, in scenarios where the communication path of operator network video calls or other media is long. It should be noted that in the present application, the first terminal device may be UE A in the aforementioned communication system, the second terminal device may be UE B in the aforementioned communication system, the first network device may be IMS AGW A in the aforementioned communication system, and the second network device may be IMS AGW B in the aforementioned communication system.

[0066] See below Figure 2 The method provided in the application example is described.

[0067] S201: A first terminal device sends a first RTP data packet set to a first network device; correspondingly, the first network device receives the first RTP data packet set from the first terminal device, wherein the first RTP data packet set is used to carry a first image frame sent by the first terminal device to a second terminal device.

[0068] Optionally, the first image frame is any one of an intra picture (I frame), a predictive frame (P frame) and a bi-directional interpolated prediction frame (B frame).

[0069] Among them, I frame, also known as key frame, is an independent frame that does not rely on the information of other frames, that is, I frame contains complete image information and can reconstruct the complete image through decoding, so I frame can be decoded independently, but the compression effect of I frame is relatively poor. The decoding of P frame needs to rely on the previous I frame or P frame. While storing image information, P frame also records the amount of change in the image, so its compression effect is better than I frame. The decoding of B frame needs to rely on the previous and following I frame or P frame. B frame can predict the image from multiple directions, so its compression effect is better than P frame, but it must be used with adjacent I frame or P frame.

[0070] Based on this, it can be known that I frames can be decoded independently, while P frames and B frames cannot be decoded independently. Accordingly, the compression rate of P frames and B frames is higher, but the CPU load will be relatively large during decoding. In the process of video data transmission, the loss of image frame data will cause the video to be unable to be displayed or to be blurred or stuck; I frames are used as reference frames for P frames and B frames. If the data packets carrying I frames are incomplete, it will inevitably cause the decoding failure of multiple image frames, and the complete video screen cannot be displayed. Therefore, in order to reduce the CPU load while ensuring the integrity of the image, the first image frame in this application can be limited to only I frames, that is, the image frame retransmission operation is performed only for I frames, and the image frame retransmission operation is not performed for P frames and B frames, thereby improving the performance of the communication system. It should be understood that the scheme described here is only used to explain a possible example and does not constitute a limitation of this application.

[0071] Optionally, the first network device may perform the following two operations on each received data packet, thereby determining all data packets included in the first RTP data packet set. The following assumptions are made for the two operations: the first RTP data packet set includes a first data packet, a second data packet, and a third data packet; the first data packet is any data packet in the first RTP data packet set; the third data packet is a non-first data packet in the first RTP data packet set; and the second data packet is a data packet received at a previous moment of the third data packet.

[0072] Operation one: The first network device parses the header of the first data packet to determine that the first data packet is used to carry the first image frame; for example, when the first image frame can be limited to only an I frame, the first network device can determine, based on the header of the data packet, that each data packet in the first RTP data packet set is a data packet corresponding to the I frame; in this way, the first network device can ensure that each data packet in the first RTP data packet set is a data packet corresponding to the first image frame, thereby improving the accuracy of the first RTP data packet set.

[0073] Operation 2: The first network device determines that the time difference between the reception time of the second data packet and the reception time of the third data packet is less than or equal to the time threshold; in this way, the first network device can ensure that the reception time difference between any two data packets in the first RTP data packet set is less than or equal to the time threshold, thereby avoiding the situation where the first network device continues to wait for data packets after packet loss, thereby reducing the delay of the image frame retransmission operation.

[0074] The following takes the first image frame as an I frame as an example to exemplify the action of the first network device in step S201. The first terminal device can send multiple RTP data packets to the first network device, and the multiple RTP data packets may include I frame data packets, P frame data packets and B frame data packets; accordingly, the first network device can receive the multiple RTP data packets from the first terminal device; the first network device determines the data packets that meet the above two operations based on the packet headers of the multiple RTP data packets and the receiving time of the multiple RTP data packets, that is, determines all RTP data packets in the first RTP data packet set, for example, the first RTP data packet includes 9 RTP data packets. It should be understood that each RTP data packet carries a timestamp, and each RTP data packet in the first RTP data packet set carries the same timestamp.

[0075] S202: The first network device sends a first retransmission request to the first terminal device according to the first RTP data packet set; accordingly, the first terminal device receives the first retransmission request from the first network device, wherein the first retransmission request is used to request the first terminal device to retransmit the first image frame.

[0076] Optionally, when the first image frame is an I frame, the first retransmission request is a picture loss indication (PLI) request.

[0077] In S202, the first network device may send a first retransmission request to the first terminal device after determining that a retransmission condition for the first image frame is met based on the first RTP data packet set.

[0078] In one possible design, the process of the first network device sending a first retransmission request to the first terminal device includes: the first network device determines the packet loss rate of the first image frame based on the RTP data packets included in the first RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the first network device sends the first retransmission request to the first terminal device.

[0079] Optionally, when the packet loss rate is greater than or equal to the packet loss threshold, the first network device may terminate the transmission of the current first RTP data packet set, that is, not forwarding the first RTP data packet set to the second network device or the second terminal device. In this way, unnecessary signaling transmission is avoided, thereby reducing the waste of resources generated by the second network device and the second terminal device in parsing the first RTP data packet set.

[0080] Optionally, the first network device may calculate the packet loss rate of the first image frame in the following manner: the first network device obtains the expected number of data packets in the first RTP data packet set; the first network device parses the first RTP data packet set to determine the actual number of data packets in the first RTP data packet set; the first network device determines the packet loss rate of the first RTP data packet set based on the expected number and the actual number.

[0081] For example, each RTP data packet carries an RTP sequence number; the first network device can determine the expected number of data packets in the first RTP data packet set based on the RTP sequence number carried by the first data packet in the first RTP data packet set and the RTP sequence number carried by the last data packet. It should be understood that, generally, the first data packet and the last data packet in the first RTP data packet set will not be lost.

[0082] With this design, network equipment can parse the RTP data packets carrying image frames before the receiver, and identify the loss of image frames in advance, thereby shortening the path for image frame retransmission and improving communication performance.

[0083] The following takes the first image frame as an I frame as an example to exemplify the action of step S202. Assuming that the expected number of data packets in the first RTP data packet set obtained by the first network device is 15, and the first network device determines that the first RTP data packet set includes 9 RTP data packets, the first network device can determine that the packet loss rate of the first RTP data packet set is 2 / 5; assuming that the packet loss threshold corresponding to the I frame is 1 / 3, that is, the packet loss rate is greater than the packet loss threshold, the first network device sends a PLI request to the first terminal device; accordingly, the first terminal device receives the PLI request from the first network device.

[0084] S203: The first terminal device sends a second RTP data packet set to the first network device according to the first retransmission request; correspondingly, the first network device receives the second RTP data packet set from the first terminal device, wherein the second RTP data packet set is used to carry the first image frame.

[0085] The following takes the case where the first image frame is an I frame as an example to exemplify the action of step S202. Assuming that the number of RTP data packets corresponding to the I frame is 15, the first terminal device can resend the 15 RTP data packets corresponding to the I frame to the first network device after receiving the PLI request from the first network device; accordingly, the first network device receives the 15 RTP data packets from the first terminal device, thereby determining the second RTP data packet set.

[0086] In a possible design, the first network device can also parse the second RTP data packet set and cache the first image frame carried in the second RTP data packet set. It should be understood that in order to reduce the CPU load while ensuring the integrity of the image, the first image frame in this application can be limited to only I frames, that is, only the cache operation is performed on the I frame, and the cache operation is not performed on the P frame and the B frame, thereby saving the storage resources of the first network device. For example, the first network device can cache the RTP data packets for carrying I frames received within a preset time period (for example, within 5 minutes) before the current moment; or, the first network device can cache a preset number (for example, 50) of RTP data packets for carrying I frames received before the current moment. It should be noted that the first network device can also cache the RTP data packets sent by the second terminal device to the first network device, that is, the first network device can cache the RTP data packets in either direction on the transmission path of the two terminal devices, and this application does not limit it.

[0087] With such a design, the network devices on the transmission path between the two terminal devices can cache a number of image frames, so that the back-end device on the transmission path can request to retransmit the image frames. Compared with the method in which the back-end device requests the sender's terminal device to retransmit the image frames, such a design can reduce the delay and improve the communication performance. It should be understood that in this example, the second network device and the second terminal device are the back-end devices of the first network device.

[0088] S204: The first network device sends a second RTP data packet set to the second terminal device or the second network device.

[0089] It should be understood that the second terminal device or the second network device can also achieve retransmission of image frames by a method similar to that of this example. The specific implementation method of this part of the solution will be introduced in detail later and will not be repeated here.

[0090] By adopting this method, the network equipment on the transmission path can pre-identify that there is a packet loss problem in the first image frame and initiate a retransmission request, thereby timely implementing error correction of the video call file, so that the terminal device on the receiving end can imperceptibly receive the RTP data packet set within the packet loss threshold, thereby reducing the computational pressure of the decoding operation of the terminal device on the receiving end. Since this method advances the timing of identifying image frame loss, it also shortens the path of image frame retransmission, reduces the delay of image frame retransmission, and improves communication performance.

[0091] In one possible design, the first network device can also receive a second retransmission request from a second terminal device or a second network device; the second retransmission request is used to request the first network device to retransmit the first image frame; the first network device sends a third RTP data packet set to the second terminal device or the second network device based on the locally cached first image frame; wherein the third RTP data packet set is used to carry the first image frame.

[0092] With such a design, when the second terminal device initiates a retransmission request, the first network device can use the locally cached image frame to provide the second terminal device with a set of RTP data packets corresponding to the image frame, thereby improving communication performance.

[0093] Figure 3 A flowchart of another image frame retransmission method provided in an embodiment of the present application, which method is still applicable to the following Figure 1 The communication system shown in the figure. The method may be an image frame retransmission method after the first network device executes the aforementioned step S204.

[0094] See below Figure 3 The method provided in the application example is described.

[0095] S301: The first network device sends a second RTP data packet set to the second terminal device; correspondingly, the second terminal device receives the second RTP data packet set from the first network device, wherein the second RTP data packet set is used to carry the first image frame.

[0096] It should be understood that the action of the second terminal device determining the second RTP data packet set in step S301 can be similar to the action of the first network device determining the first RTP data packet set in step S201, and will not be repeated here; for example, the second terminal device can perform the above two operations on each received data packet, thereby determining all data packets included in the second RTP data packet set.

[0097] S302: The second terminal device sends a second retransmission request to the first network device according to the second RTP data packet set; correspondingly, the first network device receives the second retransmission request from the second terminal device, wherein the second retransmission request is used to request the first network device to retransmit the first image frame.

[0098] Optionally, when the first image frame is an I frame, the second retransmission request is a PLI request.

[0099] In one possible design, the process of the second terminal device sending a second retransmission request to the first network device includes: the second terminal device determines the packet loss rate of the first image frame based on the RTP data packets included in the second RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the second terminal device sends a second retransmission request to the first network device.

[0100] Optionally, the second terminal device may calculate the packet loss rate of the first image frame in the following manner: the second terminal device obtains the expected number of data packets in the second RTP data packet set; the second terminal device parses the second RTP data packet set to determine the actual number of data packets in the second RTP data packet set; the second terminal device determines the packet loss rate of the second RTP data packet set based on the expected number and the actual number.

[0101] It should be understood that the action of the second terminal device determining to send a second retransmission request to the first network device in step S302 may be similar to the action of the first network device sending a first retransmission request to the first terminal device in step S202, which will not be repeated here.

[0102] S303: The first network device sends a third RTP data packet set to the second terminal device based on the locally cached first image frame; correspondingly, the second terminal device receives the third RTP data packet set from the first network device; wherein the third RTP data packet set is used to carry the first image frame.

[0103] It should be understood that the action of the second terminal device receiving the third RTP data packet set in step S303 may be similar to the action of the first network device receiving the second RTP data packet set in step S203, which will not be repeated here.

[0104] In a possible design, when the packet loss rate of the third RTP data packet set is not within the packet loss threshold, the second terminal device can also obtain the first image frame through the actions shown in steps S304 and S305.

[0105] S304: The second terminal device may also send a third retransmission request to the first terminal device according to the third RTP data packet set; the third retransmission request is used to request the first terminal device to retransmit the first image frame; correspondingly, the first terminal device receives the third retransmission request from the second terminal device.

[0106] S305: The first terminal device may send a fourth RTP data packet to the second terminal device according to the third retransmission request, where the fourth RTP data packet set is used to carry the first image frame; correspondingly, the second terminal device receives the fourth RTP data packet set from the first terminal device.

[0107] With this design, when the packet loss rate of the third RTP data packet set provided by the first network device is not within the packet loss threshold, the second terminal device can also obtain the first image frame through the first terminal device, thereby ensuring the integrity of the first image frame and improving communication performance.

[0108] Figure 4 A flowchart of another image frame retransmission method provided in an embodiment of the present application, which method is still applicable to the following Figure 1 The communication system shown in the figure. The method may be an image frame retransmission method after the first network device executes the aforementioned step S204.

[0109] See below Figure 4 The method provided in the application example is described.

[0110] S401: The first network device sends a second RTP data packet set to the second network device; correspondingly, the second network device receives the second RTP data packet set from the first network device; the second RTP data packet set is used to carry the first image frame.

[0111] It should be understood that the action of the second network device determining the second RTP data packet set in step S401 can be similar to the action of the first network device determining the first RTP data packet set in step S201, and will not be repeated here; for example, the second network device can perform the above two operations on each received data packet, thereby determining all data packets included in the second RTP data packet set.

[0112] S402: The second network device sends a second retransmission request to the first network device according to the second RTP data packet set; correspondingly, the first network device receives the second retransmission request from the second network device, wherein the second retransmission request is used to request the first network device to retransmit the first image frame.

[0113] Optionally, the first image frame is an I frame; and the second retransmission request is a PLI request.

[0114] In one possible design, the process of the second network device sending a second retransmission request to the first network device includes: the second network device determines the packet loss rate of the first image frame based on the RTP data packets included in the second RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the second network device sends a second retransmission request to the first network device.

[0115] Optionally, when the packet loss rate is greater than or equal to the packet loss threshold, the second network device can terminate the transmission of the current second RTP data packet set, that is, not forwarding the second RTP data packet set to the second terminal device. In this way, unnecessary signaling transmission is avoided, thereby reducing the waste of resources generated by the second terminal device in parsing the second RTP data packet set.

[0116] Optionally, the second network device may calculate the packet loss rate of the first image frame in the following manner: the second network device obtains the expected number of data packets in the second RTP data packet set; the second network device parses the second RTP data packet set to determine the actual number of data packets in the second RTP data packet set; the second network device determines the packet loss rate of the second RTP data packet set based on the expected number and the actual number.

[0117] It should be understood that the action of the second network device determining to send a second retransmission request to the first network device in step S402 may be similar to the action of the first network device sending a first retransmission request to the first terminal device in step S202, which will not be repeated here.

[0118] S403: The first network device determines a third RTP data packet set according to the first image frame stored locally; accordingly, the second network device receives the third RTP data packet set from the first network device, wherein the third RTP data packet set is used to carry the first image frame.

[0119] Optionally, the second network device may also parse a third RTP data packet set, and cache the first image frame carried in the third RTP data packet set.

[0120] It should be understood that the action of the second network device receiving the third RTP data packet set in step S403 may be similar to the action of the first network device receiving the second RTP data packet set in step S203, which will not be repeated here.

[0121] In one possible design, the second network device can also send a fourth retransmission request to the first terminal device based on the third RTP data packet set; the fourth retransmission request is used to request the first terminal device to retransmit the first image frame; the second network device receives a fifth RTP data packet set from the first terminal device; the fifth RTP data packet set is used to carry the first image frame.

[0122] With this design, when the packet loss rate of the third RTP data packet set provided by the first network device is not within the packet loss threshold, the second network device can also obtain the first image frame through the first terminal device, thereby ensuring the integrity of the first image frame and improving communication performance.

[0123] S404: The second network device forwards the third RTP data packet set to the second terminal device, or the second network device forwards the third RTP data packet set through at least one third network device.

[0124] In a possible design, the second terminal device can send a fifth retransmission request to the second network device based on the third RTP data packet set, and the fifth retransmission request is used to request the second network device to retransmit the first image frame; accordingly, the second network device can also receive the fifth retransmission request from the second terminal device; the second network device sends a sixth RTP data packet set to the second terminal device based on the locally cached first image frame, and the sixth RTP data packet set is used to carry the first image frame; accordingly, the second terminal device can receive the sixth RTP data packet set from the second network device. The specific implementation method of this part of the solution will be described in detail later and will not be repeated here.

[0125] With this design, when the backend device (second terminal device) of the second network device initiates a retransmission request, the second network device can use the locally cached image frame to provide the backend device with the RTP data packet corresponding to the image frame, thereby improving communication performance.

[0126] Figure 5 A flowchart of another image frame retransmission method provided in an embodiment of the present application, which method is still applicable to the following Figure 1 The communication system shown in the figure. The method may be an image frame retransmission method after the first network device executes the aforementioned step S404.

[0127] See below Figure 5 The method provided in the application example is described.

[0128] S501: The second network device sends a third RTP data packet set to the second terminal device; correspondingly, the second terminal device receives the third RTP data packet set from the second network device, wherein the third RTP data packet set is used to carry the first image frame.

[0129] It should be understood that the action of the second terminal device determining the third RTP data packet set in step S501 can be similar to the action of the first network device determining the first RTP data packet set in step S201, and will not be repeated here; for example, the second terminal device can perform the above two operations on each received data packet, thereby determining all data packets included in the third RTP data packet set.

[0130] S502: The second terminal device sends a fifth retransmission request to the second network device according to the third RTP data packet set; correspondingly, the second network device receives the fifth retransmission request from the second terminal device, wherein the fifth retransmission request is used to request the second network device to retransmit the first image frame.

[0131] Optionally, the first image frame is an I frame; and the fifth retransmission request is a PLI request.

[0132] In one possible design, the process of the second terminal device sending the fifth retransmission request to the second network device includes: the second terminal device determines the packet loss rate of the first image frame based on the RTP data packets included in the third RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, the second terminal device sends the fifth retransmission request to the second network device.

[0133] Optionally, the second terminal device may calculate the packet loss rate of the first image frame in the following manner: the second terminal device obtains the expected number of data packets in the third RTP data packet set; the second terminal device parses the third RTP data packet set to determine the actual number of data packets in the third RTP data packet set; the second terminal device determines the packet loss rate of the third RTP data packet set based on the expected number and the actual number.

[0134] It should be understood that the action of the second terminal device determining to send the fifth retransmission request to the second network device in step S502 may be similar to the action of the first network device sending the first retransmission request to the first terminal device in step S202, which will not be repeated here.

[0135] S503: The second network device sends a sixth RTP data packet set to the second terminal device based on the locally cached first image frame; accordingly, the second terminal device receives the sixth RTP data packet set from the second network device; wherein the sixth RTP data packet set is used to carry the first image frame.

[0136] It should be understood that the action of the second terminal device receiving the sixth RTP data packet set in step S503 may be similar to the action of the first network device receiving the second RTP data packet set in step S203, which will not be repeated here.

[0137] In one possible design, the second terminal device may also send a sixth retransmission request to the first network device based on the sixth RTP data packet set, where the sixth retransmission request is used to request the first network device to retransmit the first image frame; accordingly, the first network device receives the sixth retransmission request from the second terminal device; the first network device sends a seventh RTP data packet set to the second terminal device based on the sixth retransmission request, where the seventh RTP data packet set is used to carry the first image frame; accordingly, the second terminal device receives the seventh RTP data packet set from the first network device.

[0138] With this design, when the packet loss rate of the sixth RTP data packet set provided by the second network device is not within the packet loss threshold, the second terminal device can also obtain the first image frame through the first network device, thereby ensuring the integrity of the first image frame and improving communication performance.

[0139] In another possible design, the second terminal device may also send a seventh retransmission request to the first terminal device based on the sixth RTP data packet set, where the seventh retransmission request is used to request the first terminal device to retransmit the first image frame; accordingly, the first terminal device receives the seventh retransmission request from the second terminal device; the first terminal device sends an eighth RTP data packet set to the second terminal device based on the seventh retransmission request, where the eighth RTP data packet set is used to carry the first image frame; accordingly, the second terminal device receives the eighth RTP data packet set from the first terminal device.

[0140] With this design, when the packet loss rate of the sixth RTP data packet set provided by the second network device is not within the packet loss threshold, the second terminal device can also obtain the first image frame through the first terminal device, thereby ensuring the integrity of the first image frame and improving communication performance.

[0141] In combination with the aforementioned methods and designs, this application provides the following two possible examples.

[0142] See below Figure 6 Example 1 is explained, where the dotted line is used to indicate packet loss during transmission. The communication scenario of Example 1 may be: a video call is made between UE A and UE B. Assuming that UE A is the sender, the backend device accessed by UE A includes IMS AGW A. IMS AGW A can perform statistical analysis on RTP data packets, thereby quickly triggering I frame retransmission when I frame packet loss occurs.

[0143] The specific process of this communication includes:

[0144] 6-1. UE A and UE B are making a video call. The transmission path between UE A and UE B includes two network devices, namely, IMS AGW A and IMS AGW B. In this example, UE A is the sender of image frames (including I frames) and UE B is the receiver of image frames. IMS AGW A and IMS AGW B can act as intermediate devices to forward RTP data packets corresponding to the image frames.

[0145] like Figure 6 As shown, UE A sends several RTP data packets corresponding to I frames and several other RTP data packets (such as P frames) to IMS AGW A.

[0146] 6-2. As a backend device of UE A, IMS AGW A parses the unit encapsulation packet (referred to as NAL-unit header in this application) of the network abstraction layer (NAL) in the RTP data packet to determine whether the RTP data packet is an I frame data packet; IMS AGW A can also identify whether there is packet loss based on the sequence number and timestamp in the RTP data packet. For example, IMS AGW A determines the data packet set to which the data packet belongs based on the timestamp carried by the RTP data packet, and determines the number of expected data packets in the data packet set based on the sequence number carried by the RTP data packet. When IMS AGW A still does not receive the expected data packet within a preset delay time period, and the packet loss rate of a single I frame is greater than or equal to the packet loss threshold, IMS AGW A determines that there is packet loss; when there is packet loss, IMS AGW A can also construct a PLI request to request the sender to retransmit the I frame data packet.

[0147] Optionally, when IMS AGW A determines that there is no packet loss, it forwards the RTP data packet corresponding to the I frame to IMS AGW B or UE B; and vice versa.

[0148] like Figure 6 As shown, assuming that IMS AGW A confirms that there is packet loss in the RTP data packet corresponding to the I frame, IMS AGW A only forwards the RTP data packet corresponding to the P frame to IMS AGW B or UE B, and does not forward the RTP data packet corresponding to the I frame; IMS AGW A can also construct a PLI request when there is packet loss; IMS AGW A can also send the PLI request to UE A, thereby requesting UE A to retransmit the I frame data packet.

[0149] 6-3. After receiving the PLI request, UE A retransmits the RTP data packet corresponding to the I frame; accordingly, IMS AGW A and IMS AGW B can forward the RTP data packet.

[0150] In this way, UE B, which is a backend device, is unaware of the packet loss process occurring in steps 6-1 and 6-2, thereby saving the delay caused by UE B identifying packet loss and requesting retransmission.

[0151] See below Figure 7 Example 2 is explained, where the dotted line is used to indicate packet loss during transmission, and the actions in the dotted box are optional actions. The communication scenario of Example 2 may be: a video call between UE A and UE B, assuming that UE A is the sender, and the backend devices accessed by UE A include IMS AGW A and IMS AGW B. IMS AGW A and IMS AGW B can locally cache the I frames carried in the RTP data packets, so that when UE B detects packet loss and initiates a retransmission request, it can quickly respond to the retransmission request.

[0152] The specific process of this communication includes:

[0153] 7-1. UE A and UE B are making a video call. The transmission path between UE A and UE B includes two network devices, namely IMS AGW A and IMS AGW B. In this example, UE A is the sender of image frames (including I frames) and UE B is the receiver of image frames. IMS AGW A and IMS AGW B can act as intermediate devices to forward the RTP data packets corresponding to the image frames.

[0154] like Figure 7 As shown, UE A sends several RTP packets corresponding to I frames and several other RTP packets (such as P frames) to IMS AGW A. Optionally, IMS AGW A may forward several RTP packets corresponding to I frames and several other RTP packets (such as P frames) to IMS AGW B.

[0155] 7-2. IMS AGW A and IMS AGW B identify each received RTP data packet and locally cache the I frames carried in the latest X received RTP data packets.

[0156] like Figure 7 As shown, both IMS AGW A and IMS AGW B can locally cache the I frames carried in the latest received X RTP data packets.

[0157] 7-3. UE B decodes the RTP data packet corresponding to the I frame. When UE B identifies that the RTP data packet corresponding to the I frame has packet loss, the decoding fails, and UE B sends a PLI request to IMS AGW B (or IMS AGW A); conversely, when UE B identifies that the RTP data packet corresponding to the I frame has no packet loss, the decoding succeeds and the process ends.

[0158] like Figure 7 As shown, assuming that UE B confirms that the RTP data packet corresponding to the I frame is lost, UE B can send a PLI request to IMS AGW B.

[0159] 7-4. After receiving the PLI request from UE B, IMS AGW B queries the locally cached I frame; if the query is successful, IMS AGW B sends the RTP data packet corresponding to the locally cached I frame to UE B and ends this process; otherwise, if the query fails, IMS AGW B forwards the PLI request to IMS AGW A.

[0160] like Figure 7 As shown, IMS AGW B responds to the PLI request, retransmits the RTP data packet corresponding to the I frame to UE B according to the locally cached I frame, and ends this process. It should be understood that if IMS AGW B fails to query the locally cached I frame, IMS AGW B forwards the PLI request to IMS AGW A and executes the action of step 7-5.

[0161] 7-5. After receiving the PLI request from IMS AGW B (or UE B), IMS AGW A queries the locally cached I frame; if the query is successful, the RTP data packet corresponding to the locally cached I frame is sent to UE B, and the process ends; otherwise, if the query fails, IMS AGW B forwards the PLI request to UE A.

[0162] like Figure 7 As shown, IMS AGW A responds to the PLI request, retransmits the RTP data packet corresponding to the I frame to UE B according to the locally cached I frame, and ends this process. It should be understood that if IMS AGW A fails to query the locally cached I frame, IMS AGW A forwards the PLI request to UE A.

[0163] Based on the same technical concept, the present application also provides a communication device, which can be applied to Figure 1 The communication system shown is used to implement the image frame retransmission method provided in the above embodiment. Figure 8 As shown, the communication device 800 includes a communication module 801 and a processing module 802 .

[0164] The communication module 801 is used to receive and send data. Optionally, the communication module 801 may include a communication interface.

[0165] The processing module 802 is used to execute the steps performed by the first network device, the second network device or the second terminal device in the image frame retransmission method provided in the above embodiments based on the aforementioned communication module 801. The specific functions of the processing module 802 can refer to the relevant descriptions in the above embodiments and will not be repeated here.

[0166] In one embodiment, the communication module 801 is used to receive a first real-time transport protocol RTP data packet set from a first terminal device; the first RTP data packet set is used to carry a first image frame sent by the first terminal device to a second terminal device; the processing module 802 is used to send a first retransmission request to the first terminal device based on the first RTP data packet set; the first retransmission request is used to request the first terminal device to retransmit the first image frame; the communication module 801 is also used to: receive the second RTP data packet set from the first terminal device; the second RTP data packet set is used to carry the first image frame.

[0167] In one possible design, the communication module 801 is specifically used to: determine the packet loss rate of the first image frame based on the RTP data packets included in the first RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, send the first retransmission request to the first terminal device.

[0168] In one possible design, the communication module 801 is further used to: send the second RTP data packet set to a second terminal device or a second network device.

[0169] In one possible design, the processing module 802 is further used to: parse the second RTP data packet set, and cache the first image frame carried in the second RTP data packet set.

[0170] In one possible design, the communication module 801 is also used to: receive a second retransmission request from the second terminal device or the second network device; the second retransmission request is used to request retransmission of the first image frame; the processing module 802 is also used to: send a third RTP data packet set to the second terminal device or the second network device based on the locally cached first image frame; wherein the third RTP data packet set is used to carry the first image frame.

[0171] In a possible design, the first image frame is any one of an intra-frame coded frame I frame, a forward prediction coded frame P frame, and a bidirectional prediction interpolation coded frame B frame.

[0172] In one possible design, the first image frame is an I frame; and the first retransmission request is a picture loss indication PLI request.

[0173] In one embodiment, the communication module 801 is used to receive a second real-time transport protocol RTP data packet set from a first network device; the second RTP data packet set is used to carry a first image frame; the processing module 802 is used to send a second retransmission request to the first network device based on the second RTP data packet set; the second retransmission request is used to request the first network device to retransmit the first image frame; the communication module 801 is also used to: receive a third RTP data packet set from the first network device, the third RTP data packet set is determined by the first network device based on the first image frame stored locally; the third RTP data packet set is used to carry the first image frame.

[0174] In one possible design, the communication module 801 is specifically used to: determine the packet loss rate of the first image frame based on the RTP data packets included in the second RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, send the second retransmission request to the first network device.

[0175] In one possible design, the processing module 802 is also used to: send a third retransmission request to the first terminal device based on the third RTP data packet set; the third retransmission request is used to request the first terminal device to retransmit the first image frame; the communication module 801 is also used to: receive a fourth RTP data packet set from the first terminal device, and the fourth RTP data packet set is used to carry the first image frame.

[0176] In a possible design, the first image frame is any one of an intra-frame coded frame I frame, a forward prediction coded frame P frame, and a bidirectional prediction interpolation coded frame B frame.

[0177] In one possible design, the first image frame is an I frame; and the second retransmission request is a picture loss indication PLI request.

[0178] In one embodiment, the communication module 801 is used to receive a second real-time transport protocol RTP data packet set from a first network device; the second RTP data packet set is used to carry a first image frame; the processing module 802 is used to send a second retransmission request to the first network device based on the second RTP data packet set; the second retransmission request is used to request the first network device to retransmit the first image frame; the communication module 801 is also used to: receive a third RTP data packet set from the first network device, the third RTP data packet set is determined by the first network device based on the first image frame stored locally; the third RTP data packet set is used to carry the first image frame.

[0179] In one possible design, the communication module 801 is specifically used to: determine the packet loss rate of the first image frame based on the RTP data packets included in the second RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, send the second retransmission request to the first network device.

[0180] In one possible design, the processing module 802 is also used to: send a fourth retransmission request to the first terminal device based on the third RTP data packet set; the fourth retransmission request is used to request the first terminal device to retransmit the first image frame; the communication module 801 is also used to: receive a fifth RTP data packet set from the first terminal device; the fifth RTP data packet set is used to carry the first image frame.

[0181] In one possible design, the communication module 801 is further used to: forward the third RTP data packet set to the second terminal device.

[0182] In one possible design, the processing module 802 is further used to: parse the third RTP data packet set, and cache the first image frame carried in the third RTP data packet set.

[0183] In one possible design, the communication module 801 is also used to: receive a fifth retransmission request from the second terminal device; the fifth retransmission request is used to request retransmission of the first image frame; the processing module 802 is also used to: send a sixth RTP data packet set to the second terminal device based on the locally cached first image frame; the sixth RTP data packet set is used to carry the first image frame.

[0184] In a possible design, the first image frame is any one of an intra-frame coded frame I frame, a forward predictive coded frame P frame, and a bidirectional predictive interpolation coded frame B frame.

[0185] In one possible design, the first image frame is an I frame; and the second retransmission request is a picture loss indication PLI request.

[0186] In one embodiment, the communication module 801 is used to receive a third RTP data packet set from a second network device; the third RTP data packet set is used to carry the first image frame; the processing module 802 is used to send a fifth retransmission request to the second network device based on the third RTP data packet set; the fifth retransmission request is used to request the second network device to retransmit the first image frame; the communication module 801 is also used to: receive a sixth RTP data packet set from the second network device; the sixth RTP data packet set is used to carry the first image frame.

[0187] In one possible design, the communication module 801 is specifically used to: determine the packet loss rate of the first image frame based on the RTP data packets included in the third RTP data packet set; when the packet loss rate is greater than or equal to the packet loss threshold, send a fifth retransmission request to the second network device.

[0188] In one possible design, the processing module 802 is specifically used to: obtain the expected number of data packets in the third RTP data packet set; parse the third RTP data packet set to determine the actual number of data packets in the third RTP data packet set; and determine the packet loss rate of the third RTP data packet set based on the expected number and the actual number.

[0189] In one possible design, the processing module 802 is also used to: send a sixth retransmission request to the first network device based on the sixth RTP data packet set, and the sixth retransmission request is used to request the first network device to retransmit the first image frame; the communication module 801 is also used to: receive a seventh RTP data packet set from the first network device; the seventh RTP data packet set is used to carry the first image frame.

[0190] In one possible design, the processing module 802 is also used to: send a seventh retransmission request to the first terminal device based on the sixth RTP data packet set, and the seventh retransmission request is used to request the first terminal device to retransmit the first image frame; the communication module 801 is also used to: receive an eighth RTP data packet set from the first terminal device; the eighth RTP data packet set is used to carry the first image frame.

[0191] In a possible design, the first image frame is any one of an intra-frame coded frame I frame, a forward prediction coded frame P frame, and a bidirectional prediction interpolation coded frame B frame.

[0192] In one possible design, the first image frame is an I frame; and the second retransmission request is a picture loss indication PLI request.

[0193] It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0194] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0195] Based on the same technical concept, the embodiment of the present application also provides another communication device, the communication device 900 can implement the image frame retransmission method provided in the above embodiment, and has the function of the processor provided in the above embodiment. Fig. 9 As shown, the communication device 900 includes: a memory 902 and a processor 901. Optionally, the communication device 900 also includes a communication module 903. The communication module 903, the processor 901 and the memory 902 are interconnected. The communication module 903 is used to receive and send data; the memory 902 is used to store program instructions and data; the processor 901 is used to read the program instructions and data in the memory to implement the above-mentioned image frame retransmission method.

[0196] Exemplarily, the communication device 900 may be the first network device, the second network device or the second terminal device shown in the embodiment of the present application; when the communication device 900 is the first network device or the second network device, the communication module 903 is a communication interface; when the communication device 900 is the second terminal device, the communication module 903 is a transceiver.

[0197] Optionally, the communication module 903, the processor 901 and the memory 902 are interconnected via a bus 904. The bus 904 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0198] The communication module 903 is used to receive and send data to achieve communication with other devices other than the communication device.

[0199] The functions of the processor 901 can refer to the description in the above embodiments, which will not be repeated here. Among them, the processor 901 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP, etc. The processor 901 can further include a hardware chip. The above-mentioned hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. When the processor 901 implements the above-mentioned functions, it can be implemented by hardware, and of course, it can also be implemented by executing the corresponding software through hardware.

[0200] The memory 902 is used to store program instructions, etc. Specifically, the program instructions may include program codes, and the program codes include computer operation instructions. The memory 902 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The processor 901 executes the program instructions stored in the memory 902 to implement the above functions, thereby implementing the method provided in the above embodiment.

[0201] Based on the same technical concept, an embodiment of the present application further provides a computer program, which, when executed on a computer, enables the computer to execute the method provided in the above embodiment.

[0202] Based on the same technical concept, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the method provided in the above embodiment.

[0203] The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

[0204] Based on the above embodiments, the embodiments of the present application further provide a chip, the chip is used to read the computer program stored in the memory, and implement the method provided in the above embodiments. Optionally, the chip may include a processor and a memory, the processor is coupled to the memory, and is used to read the computer program stored in the memory, and implement the method provided in the above embodiments.

[0205] Based on the above embodiments, the embodiments of the present application provide a chip system, which includes a processor for supporting a computer device to implement the functions involved in the first network device, the second network device, or the second terminal device in the above embodiments. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0206] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0207] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0208] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0209] 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 executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0210] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for retransmitting an image frame, It is characterized in that The method comprises: The first network device receives a first real-time transport protocol RTP data packet set from the first terminal device; the first RTP data packet set is used to carry a first image frame sent by the first terminal device to the second terminal device; The first network device sends a first retransmission request to the first terminal device according to the first RTP data packet set; the first retransmission request is used to request the first terminal device to retransmit the first image frame; The first network device receives the second RTP data packet set from the first terminal device; the second RTP data packet set is used to carry the first image frame.

2. The method according to claim 1, It is characterized in that The first network device sends a first retransmission request to the first terminal device according to the first RTP data packet set, including: The first network device determines a packet loss rate of the first image frame according to the RTP data packets included in the first RTP data packet set; When the packet loss rate is greater than or equal to a packet loss threshold, the first network device sends the first retransmission request to the first terminal device.

3. The method according to claim 1 or 2, It is characterized in that The method further comprises: The first network device sends the second RTP data packet set to the second terminal device or the second network device.

4. The method according to claim 3, It is characterized in that The method further comprises: The first network device parses the second RTP data packet set and caches the first image frame carried in the second RTP data packet set.

5. The method according to claim 4, It is characterized in that The method further comprises: The first network device receives a second retransmission request from the second terminal device or the second network device; the second retransmission request is used to request the first network device to retransmit the first image frame; The first network device sends a third RTP data packet set to the second terminal device or the second network device based on the first image frame cached locally; wherein the third RTP data packet set is used to carry the first image frame.

6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: The first image frame is any one of an intra-frame coded frame I frame, a forward predictive coded frame P frame, and a bidirectional predictive interpolation coded frame B frame.

7. The method according to any one of claims 1 to 6, It is characterized in that The first image frame is an I frame; and the first retransmission request is a picture loss indication PLI request.

8. A method for retransmitting an image frame, It is characterized in that The method comprises: The second terminal device receives a second real-time transport protocol RTP data packet set from the first network device; the second RTP data packet set is used to carry the first image frame; The second terminal device sends a second retransmission request to the first network device according to the second RTP data packet set; the second retransmission request is used to request the first network device to retransmit the first image frame; The second terminal device receives a third RTP data packet set from the first network device, where the third RTP data packet set is determined by the first network device based on the first image frame stored locally; the third RTP data packet set is used to carry the first image frame.

9. The method according to claim 8, It is characterized in that The second terminal device sends a second retransmission request to the first network device according to the second RTP data packet set, including: The second terminal device determines the packet loss rate of the first image frame according to the RTP data packets included in the second RTP data packet set; When the packet loss rate is greater than or equal to a packet loss threshold, the second terminal device sends the second retransmission request to the first network device.

10. The method according to claim 8 or 9, It is characterized in that The method further comprises: The second terminal device sends a third retransmission request to the first terminal device according to the third RTP data packet set; the third retransmission request is used to request the first terminal device to retransmit the first image frame; The second terminal device receives a fourth RTP data packet set from the first terminal device, where the fourth RTP data packet set is used to carry the first image frame.

11. The method according to any one of claims 8 to 10, It is characterized in that The method further comprises: The first image frame is any one of an intra-frame coded frame I frame, a forward predictive coded frame P frame, and a bidirectional predictive interpolation coded frame B frame.

12. The method according to any one of claims 8 to 11, It is characterized in that The first image frame is an I frame; the second retransmission request is a picture loss indication PLI request.

13. A method for retransmitting an image frame, It is characterized in that The method comprises: The second network device receives a second real-time transport protocol RTP data packet set from the first network device; the second RTP data packet set is used to carry the first image frame; The second network device sends a second retransmission request to the first network device according to the second RTP data packet set; the second retransmission request is used to request the first network device to retransmit the first image frame; The second network device receives a third RTP data packet set from the first network device, where the third RTP data packet set is determined by the first network device based on the first image frame stored locally; the third RTP data packet set is used to carry the first image frame.

14. The method according to claim 13, It is characterized in that The second network device sends a second retransmission request to the first network device according to the second RTP data packet set, including: The second network device determines the packet loss rate of the first image frame according to the RTP data packets included in the second RTP data packet set; When the packet loss rate is greater than or equal to a packet loss threshold, the second network device sends the second retransmission request to the first network device.

15. The method according to claim 13 or 14, It is characterized in that The method further comprises: The second network device sends a fourth retransmission request to the first terminal device according to the third RTP data packet set; the fourth retransmission request is used to request the first terminal device to retransmit the first image frame; The second network device receives a fifth RTP data packet set from the first terminal device; the fifth RTP data packet set is used to carry the first image frame.

16. The method according to claim 13 or 14, It is characterized in that The method further comprises: The second network device forwards the third RTP data packet set to the second terminal device.

17. The method of claim 16, It is characterized in that The method further comprises: The second network device parses the third RTP data packet set and caches the first image frame carried in the third RTP data packet set.

18. The method of claim 17, It is characterized in that The method further comprises: The second network device receives a fifth retransmission request from the second terminal device; the fifth retransmission request is used to request the second network device to retransmit the first image frame; The second network device sends a sixth RTP data packet set to the second terminal device based on the first image frame cached locally; the sixth RTP data packet set is used to carry the first image frame.

19. The method according to any one of claims 13 to 18, It is characterized in that The method further comprises: The first image frame is any one of an intra-frame coded frame I frame, a forward predictive coded frame P frame, and a bidirectional predictive interpolation coded frame B frame.

20. The method according to any one of claims 13 to 19, It is characterized in that The first image frame is an I frame; the second retransmission request is a picture loss indication PLI request.

21. A communication device, It is characterized in that The device comprises: A communication module for receiving and sending data; A processing module, used to implement the method according to any one of claims 1 to 20 based on the communication module.

22. A communication device, It is characterized in that include: A communication module, a memory and a processor; wherein, The communication module is used to receive and send data; The memory is used to store program instructions and data; The processor is used to read the program instructions and data in the memory to implement the method described in any one of claims 1-20.

23. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 20.

24. A chip, It is characterized in that The chip includes a processor and a memory; the processor is coupled to the memory and is used to read the computer program stored in the memory and execute the method described in any one of claims 1-20.