Data transmission method and device, electronic equipment and storage medium

By splitting media data and sending them collaboratively according to the bandwidth ratio, the problem of packet loss during data transmission in the new 5G communication platform is solved, improving transmission efficiency and user experience.

CN118612486APending Publication Date: 2024-09-06CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410868785.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the new 5G communication platform, a single transmission channel cannot carry a large number of media packets, resulting in frequent packet loss during data transmission, affecting video picture quality and user experience.

Method used

By splitting the media data into multiple data packets with the same byte size, and sending them collaboratively according to the bandwidth capacity ratio of the video transmission channel and DC channel, they are alternately allocated to the video transmission channel and DC channel for transmission, and the bandwidth is adjusted according to the transmission results. Proportional relationship to reduce packet loss.

Benefits of technology

It effectively reduces packet loss during transmission, improves transmission efficiency and network resource utilization, and enhances user communication experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612486A
    Figure CN118612486A
Patent Text Reader

Abstract

The invention relates to a data transmission method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring media data to be transmitted; splitting the to-be-transmitted media data to obtain a plurality of data packets, the byte sizes of the plurality of data packets being the same; and according to a first proportional relation between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, the plurality of data packets are cooperatively sent to the terminal through the video transmission channel and the DC channel, and a second proportional relation between the number of the data packets transmitted by the video transmission channel and the number of the data packets transmitted by the DC channel is consistent with the first proportional relation. According to the scheme provided by the invention, the phenomenon of packet loss in the transmission process can be reduced, the transmission efficiency is improved, the network resource utilization rate is optimized, and the communication experience of a user is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile communication technology, and in particular to a data transmission method, device, electronic device and storage medium. Background Art

[0002] With the growing demand for wireless communication services among users, more and more wireless communication technologies have entered the practical stage. For example, the new 5G communication service is an enhanced audio and video call service based on the 5G network. It supports providing users with functions such as video content playback, background replacement, and special effects sending during calls. It can provide users with richer communication methods and enhance their communication experience.

[0003] However, in the process of data transmission from the new 5G communication platform to the terminal, a single transmission channel is generally used for data transmission. However, due to the large number of media packets, a single transmission channel cannot carry the huge number of media packets that need to be transmitted simultaneously. Therefore, media packets are often lost, resulting in poor image quality of the video picture played after the terminal receives the media packet, which reduces the user's viewing experience. The main reason for this is that in the process of transmitting media packets through the transmission channel, due to the large number of media packets, the transmission channel cannot carry the huge number of media packets that need to be transmitted simultaneously, resulting in packet loss during the transmission process. Therefore, there is an urgent need for a data transmission method, device, electronic device and storage medium to reduce the packet loss phenomenon that occurs during the transmission process. Summary of the invention

[0004] In order to solve or partially solve the problems existing in the related art, the present application provides a data transmission method, device, electronic device and storage medium, which can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0005] In a first aspect, the present application provides a data transmission method, which is applied to a server, and includes: obtaining media data to be transmitted; splitting the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same; according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, the multiple data packets are sent to the terminal through the video transmission channel and the DC channel in a coordinated manner, and the second proportional relationship between the number of the data packets transmitted by the video transmission channel and the number of the data packets transmitted by the DC channel is consistent with the first proportional relationship.

[0006] In combination with the first aspect, in a possible implementation manner of the first aspect, each of the data packets includes a packet sequence number character segment, and the packet sequence number character segment is used to indicate a sequence number of the data packet in all data packets constituting the media data;

[0007] The method of sending the plurality of data packets to the terminal through the video transmission channel and the DC channel in coordination according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel comprises: allocating the plurality of data packets alternately to the video transmission channel and the DC channel for transmission in the order of the sequence numbers in the first proportional relationship, and recording the transmission results.

[0008] In combination with the first aspect, in a possible implementation method of the first aspect, after allocating the multiple data packets alternately to the video transmission channel and the DC channel for transmission in the order of the sequence numbering in the first proportional relationship and recording the transmission results, it also includes: adjusting the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel according to the transmission results, and returning to the step of sending the multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel.

[0009] In combination with the first aspect, in a possible implementation method of the first aspect, adjusting the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel according to the transmission result includes: sending a request message to the terminal according to the transmission result; receiving confirmation information sent by the terminal for the request information, the confirmation information being used to indicate whether to adjust the first proportional relationship based on the transmission result; if the confirmation information indicates to adjust the first proportional relationship based on the transmission result, adjusting the first proportional relationship according to the transmission result.

[0010] In combination with the first aspect, in a possible implementation method of the first aspect, adjusting the first proportional relationship according to the transmission result includes: obtaining the ratio between the number of data packets that failed to be sent by the video transmission channel and the number of data packets that failed to be sent by the DC channel according to the transmission result; if the ratio between the number of data packets that failed to be sent by the video transmission channel and the number of data packets that failed to be sent by the DC channel is greater than a preset threshold, adjusting the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel according to the transmission result.

[0011] In combination with the first aspect, in a possible implementation method of the first aspect, before the multiple data packets are sent to the terminal through the first transmission channel and the second transmission channel in a coordinated manner according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, it also includes: obtaining the channel quality of the first transmission channel and the channel quality of the second transmission channel; according to the channel quality of the first transmission channel and the channel quality of the second transmission channel, obtaining the first proportional relationship between the bandwidth capacity of the first transmission channel and the bandwidth capacity of the second transmission channel; the parameters of the channel quality include the numerical value of at least one of signal strength, signal-to-noise ratio, link delay and network bandwidth.

[0012] The second aspect of the present application provides a data transmission method, which is applied to a terminal, including receiving multiple media packets that are cooperatively sent through a video transmission channel and a DC channel according to a first proportional relationship, wherein the first proportional relationship is the proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel; assembling and decoding the multiple media packets to obtain decoded video data; and playing the multiple media packets based on the decoded video data.

[0013] In combination with the second aspect, in a possible implementation of the second aspect, assembling and decoding multiple media packets to obtain decoded video data includes: a data transmission device assembling and decoding multiple media packets in the order of the numbering of the multiple media packets to obtain decoded video data.

[0014] In combination with the second aspect, in a possible implementation method of the second aspect, after receiving multiple media packets sent collaboratively through the video transmission channel and the DC channel according to a first proportional relationship, it also includes: the data transmission device receives request information; determines whether it is necessary to adjust the first proportional relationship according to the request information; if it is confirmed that the first proportional relationship is adjusted according to the request information, sends a confirmation message.

[0015] The third aspect of the present application provides a data transmission device, which is applied to a server, including: an acquisition module, used to acquire media data to be transmitted; a processing module, used to split the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same; a transmission module, used to send the multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, and the second proportional relationship between the number of the data packets transmitted by the video transmission channel and the number of the data packets transmitted by the DC channel is consistent with the first proportional relationship.

[0016] In combination with the third aspect, in a possible implementation of the third aspect, the transmission module is also used to: in the order of the sequence numbers, alternately allocate the multiple data packets to the video transmission channel and the DC channel in the first proportional relationship for transmission, and record the transmission results.

[0017] In combination with the third aspect, in a possible implementation of the third aspect, the transmission module is also used to adjust the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel according to the transmission result, and return to the step of sending multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner based on the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel.

[0018] In combination with the third aspect, in a possible implementation method of the third aspect, the transmission module is also used to send a request message to the terminal based on the transmission result; receive confirmation information sent by the terminal for the request information, and the confirmation information is used to indicate whether to adjust the first proportional relationship based on the transmission result; if the confirmation information indicates to adjust the first proportional relationship based on the transmission result, then adjust the first proportional relationship according to the transmission result.

[0019] In combination with the third aspect, in a possible implementation of the third aspect, the transmission module is also used to obtain, based on the transmission result, a ratio between the number of data packets that fail to be sent by the video transmission channel and the number of data packets that fail to be sent by the DC channel; if the ratio between the number of data packets that fail to be sent by the video transmission channel and the number of data packets that fail to be sent by the DC channel is greater than a preset threshold, then adjusting the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel based on the transmission result.

[0020] In combination with the third aspect, in a possible implementation of the third aspect, the transmission module is also used to obtain the channel quality of the first transmission channel and the channel quality of the second transmission channel; based on the channel quality of the first transmission channel and the channel quality of the second transmission channel, a first proportional relationship between the bandwidth capacity of the first transmission channel and the bandwidth capacity of the second transmission channel is obtained; the parameters of the channel quality include a numerical value of at least one of signal strength, signal-to-noise ratio, link delay and network bandwidth.

[0021] The fourth aspect of the present application provides a data transmission device, which is applied to a terminal, including: a receiving module, which is used to receive multiple media packets that are cooperatively sent through a video transmission channel and a DC channel according to a first proportional relationship, wherein the first proportional relationship is the proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel; a decoding module, which is used to assemble and decode multiple media packets to obtain decoded video data; and a playing module, which is used to play the multiple media packets based on the decoded video data.

[0022] In combination with the fourth aspect, in a possible implementation of the fourth aspect, the decoding module is further used to assemble and decode the multiple media packets according to the numbering order of the multiple media packets to obtain decoded video data.

[0023] In combination with the fourth aspect, in a possible implementation method of the fourth aspect, the receiving module is also used to receive request information; determine whether it is necessary to adjust the first proportional relationship according to the request information; if it is confirmed that the first proportional relationship is adjusted according to the request information, send a confirmation message.

[0024] A fifth aspect of the present application provides an electronic device, including:

[0025] Processor; and

[0026] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0027] A sixth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method described above.

[0028] A seventh aspect of the present application provides a computer program product, comprising a computer program / instructions, which implement the method described above when executed by a processor.

[0029] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations.

[0030] The technical solution provided by this application may have the following beneficial effects:

[0031] The data transmission method of the present application includes obtaining media data to be transmitted; splitting the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same; according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, the multiple data packets are sent to the terminal through the video transmission channel and the DC channel in a coordinated manner, and the second proportional relationship between the number of data packets transmitted by the video transmission channel and the number of data packets transmitted by the DC channel is consistent with the first proportional relationship, which can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0032] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0034] Figure 1 It is a flowchart of a data transmission method shown in an embodiment of the present application;

[0035] Figure 2 is a flowchart of another data transmission method shown in an embodiment of the present application;

[0036] Figure 3 is a structural schematic diagram of a data transmission device shown in an embodiment of the present application;

[0037] Figure 4 is a schematic structural diagram of another data transmission device shown in an embodiment of the present application;

[0038] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0040] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0041] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0042] First, some of the terms and related technologies involved in this application are explained to facilitate understanding by those skilled in the art.

[0043] IMS network (IP Multimedia Subsystem) is a telecommunications network architecture based on IP technology. It uses IP networks to provide multimedia services such as voice, video, and messaging. IMS network is layered, open, and integrated, and supports multiple access technologies, including 2G, 3G, 4G, 5G, and Wi-Fi. It also includes low-latency, high-speed, and high-reliability IMS data channels, which can allow the transmission of additional media information during a call, such as text, pictures, files, locations, and other multimedia real-time data.

[0044] Media data usually refers to audio, video or other multimedia content stored and transmitted in digital format, generally including video data, audio data, image data, animation data, interactive content and other data, and uses specific encoding and packaging formats.

[0045] The video transmission channel is the transmission path of the video signal from the source to the receiver. It can be a transmission channel in the IMS data channel, which can transmit the video signal through analog or digital signals and has the characteristics of fast transmission speed.

[0046] DC Channel (Data Channel) In the IMS network, the DC channel allows the transmission of non-voice or non-video data during a call, such as text messages, pictures, files, etc. The DC channel can be bidirectional, supports real-time data exchange, and has the characteristics of high stability.

[0047] Bandwidth capacity usually refers to the ability to transmit data through a communication channel within a specific time. It is measured in bits per second (bps). The size of bandwidth capacity affects the speed and efficiency of data transmission.

[0048] I-frame (Intra-coded Frame) is an internally coded frame. I-frame is a key frame that contains complete image information. I-frame does not rely on other frames to decode and can be decoded independently. It is usually used as the starting point of a video sequence or the beginning of a key scene. I-frame can contain a large amount of data, so the compression efficiency of I-frame is low.

[0049] P-frames (Predictive-coded Frames) are predictive-coded frames. P-frames need to rely on previous I-frames or P-frames for decoding. They reduce the amount of data by predicting and comparing the difference between the current frame and the previous frame, and only encode the difference. P-frames usually contain less data, so the compression efficiency of P-frames is generally higher than that of I-frames.

[0050] B-frame (Bi-directional Predictive-coded Frame) is a bidirectional predictive coded frame, which depends on the previous and next I-frames or P-frames for decoding. It can use the information of the previous and next frames to predict the content of the current frame, thereby further reducing the amount of data. Compared with I-frames and P-frames, B-frames have the highest compression efficiency. At the same time, because B-frames need to access the information of the previous and next frames, B-frames require more computing resources when decoding.

[0051] In the related art, during the data transmission process from the 5G new communication platform to the terminal, media packet loss (i.e., "packet loss") often occurs, resulting in mosaics, flowery screens, and other poor image quality in the video screen played by the terminal after receiving the media packet. The specific reason is that the I frame (key frame) image in the current video media stream contains complete image information, but the size of a single data packet corresponding to the I frame image is usually large, so the I frame image is generally split into multiple data packets, and then the multiple data packets are sent to the terminal via the IMS network. Since the I frame image is split into a large number of data packets, the transmission process is often unstable due to poor channel quality, insufficient channel bandwidth, etc., and data packets are easily lost, resulting in incomplete I frame images received by the terminal, resulting in poor display effects. Secondly, when transmitting video media data, it is also necessary to split the video media data into multiple data packets, but due to the limitations of the bandwidth and quality of the video transmission channel, a single transmission channel transmits a large number of data packets, which will also cause the video stream received by the terminal to be incomplete, and packet loss will occur, resulting in a poor user experience.

[0052] In response to the above problems, an embodiment of the present application provides a data transmission method, which can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0053] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0054] Figure 1 It is a flowchart of the data transmission method shown in an embodiment of the present application.

[0055] See also Figure 1 , a data transmission method, including but not limited to the following steps:

[0056] S110: The server obtains media data to be transmitted.

[0057] Specifically, the server may obtain media data to be transmitted to the terminal. The media data may be downlink data to be transmitted to the terminal. The media data may be video data, audio data, image data, animation data, interactive content, and other data.

[0058] S120: The server splits the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same.

[0059] Specifically, the server can split and encode the media data to be transmitted, and add corresponding information to each segment of data after splitting, so as to form multiple data packets with the same format. For example, the video content can be split and encoded into key frame I frame, ordinary frame P frame and B frame and other data, and then the encoded key frame I frame, ordinary frame P frame and B frame are respectively encapsulated into multiple data packets according to preset rules. The byte size of each data packet is the same. Data packets with the same byte size are conducive to alternating transmission of data packets through the video transmission channel and the DC channel in a proportional relationship.

[0060] In another possible implementation, when the server splits the media data to be transmitted, the split data may include a UID (User Identification) character segment, a Number (packet number) character segment, a Total (total number of packets) character segment, a check code character segment and a data content character segment, etc. The identity character segment can be used to identify the unique identity information of the data packet, the packet number character segment can indicate the sequence number of the data packet in all the data packets constituting the media data, the total number of packets character segment can be used to indicate the number of data packets into which the data to be transmitted is split, the check code character segment is used to check whether the data packet is erroneous to determine whether the data packet is correct, and the data content character segment is used to indicate the media data contained in the data packet.

[0061] Specifically, the server can distribute the encapsulated data packets in the order of sequence numbers, and allocate multiple data packets alternately to the video transmission channel and the DC channel in a first ratio for transmission. For example, the first ratio can be 3:1. When the sequence numbers of the data packets that the server needs to send are 1, 2, 3, and 4, the server transmits the data packets with sequence numbers 1, 2, and 3 to the terminal through the video transmission channel, and simultaneously transmits the data packet with sequence number 4 to the terminal through the DC channel, and records the transmission results. It can be understood that the terminal also receives the data packets in the order of the data packet sequence numbers, and decodes the data packets in the order of the data packet sequence numbers. Further, the transmission results may include the number of data packets that failed to be sent and the number of data packets that failed to be sent and the number of data packets that were successfully sent through the video transmission channel, and the number of data packets that failed to be sent and the number of data packets that were successfully sent through the DC channel; it may also include feedback information from the terminal, and the feedback information may include the number of data packets that the terminal successfully received through the video transmission channel, and the number of data packets that were successfully received through the DC channel.

[0062] In another possible implementation, the server allocates multiple data packets alternately to the video transmission channel and the DC channel for transmission in a first proportional relationship, and after recording the transmission results, it is able to adjust the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel according to the transmission results, and return to the step of sending the multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel.

[0063] Specifically, the server can obtain the number of data packets that failed to be sent and the number of data packets that were successfully sent on the video transmission channel, as well as the number of data packets that failed to be sent and the number of data packets that were successfully sent on the DC channel, and adjust the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel. For example, the first proportional relationship can be adjusted from 4:1 to 3:1, thereby reducing the number of data packets instantaneously transmitted on the video transmission channel and increasing the number of successfully transmitted data packets.

[0064] S130: The server sends multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, and a second proportional relationship between the number of data packets transmitted by the video transmission channel and the number of data packets transmitted by the DC channel is consistent with the first proportional relationship.

[0065] Specifically, the server can send data packets to the terminal through the video transmission channel and the DC channel in coordination according to the first proportional relationship, and the second proportional relationship of the number of data packets sent is consistent with the first proportional relationship. For example, the first proportional relationship can be 3:1. When the server needs to send 4 data, it can send 3 data packets to the terminal through the video transmission channel and send 1 data packet to the terminal through the DC channel. The terminal receives data packets from the video transmission channel and the DC channel respectively according to the first proportional relationship, and the number of data packets received by the terminal is also consistent with the second proportional relationship. Through the coordinated transmission of the video transmission channel and the DC channel, the phenomenon of packet loss during transmission can be better reduced.

[0066] In another possible implementation, the server can send a request message to the terminal according to the transmission result, and the request message includes confirming to the terminal whether it is necessary to adjust the transmission ratio relationship between the video transmission channel and the DC channel according to the transmission result. After obtaining the request message, the terminal can send a confirmation message. After the server obtains the confirmation message, if the confirmation message indicates that the first ratio relationship can be adjusted according to the transmission result, the server adjusts the transmission ratio relationship between the video transmission channel and the DC channel according to the transmission result. The server continues to transmit data packets to the terminal through the video transmission channel and the DC channel according to the adjusted ratio relationship until all data packets are transmitted. It can be understood that if the confirmation message sent by the terminal is not to adjust the first ratio relationship, the server does not adjust the first ratio relationship, and continues to transmit the data packets to the terminal through the video transmission channel and the DC channel according to the first ratio relationship until all data packets are transmitted.

[0067] Furthermore, after adjusting the first proportional relationship according to the confirmation information, the server transmits the data packet to the terminal through the video transmission channel and the DC channel according to the adjusted first proportional relationship. At this time, the adjusted first proportional relationship is not necessarily the optimal proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel. The server can send a request message to the terminal again, requesting to adjust the proportional relationship between the video transmission channel and the DC channel to transmit the data packet again. After obtaining the confirmation information of the terminal, the server can adjust the adjusted first proportional relationship again according to the confirmation information, and transmit the data packet to the terminal through the video transmission channel and the DC channel according to the adjusted proportional relationship. It can be understood that the server can send request information to the terminal multiple times so as to obtain the optimal proportional relationship between the video transmission channel and the DC channel to transmit the data packet until the data packet is transmitted.

[0068] In another possible implementation, the server may obtain, based on the transmission results, the ratio between the number of data packets that failed to be sent through the video transmission channel and the number of data packets that failed to be sent through the DC channel; if the ratio between the number of data packets that failed to be sent through the video transmission channel and the number of data packets that failed to be sent through the DC channel is greater than a preset threshold, the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel is adjusted based on the transmission results.

[0069] Specifically, during the transmission process, packet loss may occur, resulting in the inability to transmit data packets to the terminal. Due to the characteristics of the video transmission channel and the DC channel themselves, the DC channel has a more stable characteristic. The number of data packets that fail to be sent by the video transmission channel may be more than the number of data packets that fail to be sent by the DC channel. When the ratio between the number of data packets that fail to be sent by the video transmission channel and the number of data packets that fail to be sent by the DC channel is greater than a preset threshold, the preset threshold can be set by the user, such as 20:3, etc., that is, the number of data packets that fail to be sent by the video transmission channel is 20, and the number of data packets that fail to be sent by the DC channel is 3. At this time, the proportional relationship between the number of data packets sent by the video transmission channel and the number of data packets sent by the DC channel should be adjusted.

[0070] In another possible implementation, the server may obtain the channel quality of the first transmission channel and the channel quality of the second transmission channel; obtain a first proportional relationship between the bandwidth capacity of the first transmission channel and the bandwidth capacity of the second transmission channel based on the channel quality of the first transmission channel and the channel quality of the second transmission channel; the parameters of the channel quality include a numerical value of at least one of signal strength, signal-to-noise ratio, link delay and network bandwidth.

[0071] Specifically, in actual application scenarios, the channel quality of the video transmission channel and the DC channel will be affected by many parameters. Therefore, in order to improve the transmission efficiency of data packets, it is necessary to set a first proportional relationship according to the channel quality of the video transmission channel and the DC channel. The channel quality is used to indicate the signal quality of the transmission channel. The higher the channel quality, the better the signal quality and the faster the data transmission. Conversely, the lower the channel quality, the worse the signal quality and the slower the data transmission. The parameters of the channel quality include but are not limited to the values ​​of at least one of the signal strength, signal-to-noise ratio, link delay and network bandwidth, and the method of obtaining these values ​​has been widely disclosed by the prior art, so this embodiment will not be repeated.

[0072] The data transmission method of this embodiment includes acquiring media data to be transmitted; splitting the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same; according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, the multiple data packets are sent to the terminal through the video transmission channel and the DC channel in a coordinated manner, and the second proportional relationship between the number of data packets transmitted by the video transmission channel and the number of data packets transmitted by the DC channel is consistent with the first proportional relationship, which can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0073] Figure 1 The method of the embodiment shown can be regarded as a method for the server to transmit a data packet. Based on this, the method for the terminal to receive the data packet is described below. Figure 2, which is a flow chart of a method for a terminal to receive a data packet from a server based on a video transmission channel and a DC according to an embodiment of the present invention.

[0074] See also Figure 2 , a data transmission method, including but not limited to the following steps:

[0075] S210, the terminal receives a plurality of media packets that are cooperatively sent through a video transmission channel and a DC channel according to a first proportional relationship, where the first proportional relationship is a proportional relationship between a bandwidth capacity of the video transmission channel and a bandwidth capacity of the DC channel.

[0076] Specifically, the terminal is able to receive multiple media packets that are cooperatively sent through the video transmission channel and the DC channel according to a first proportional relationship. The first proportional relationship is the proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel. For example, if the first proportional relationship is 3:1, the terminal receives 3:1 number of media packets from the video transmission channel and the DC channel respectively. For every 3 media packets received from the video transmission channel, 1 media packet can be received from the DC channel, and the media packets are sorted in the order of their numbering. After the data packets are sorted, the lost data packets can be known and fed back to the server. It can be understood that the media packets are data packets that encapsulate video data.

[0077] In another possible implementation, the terminal receives the request information; determines whether the first proportional relationship needs to be adjusted according to the request information; and sends a confirmation message if it is confirmed that the first proportional relationship needs to be adjusted according to the request information.

[0078] Specifically, the terminal can receive request information sent by the server, where the request information is a request from the server to adjust the first proportional relationship. The terminal can determine whether the first proportional relationship needs to be adjusted. The terminal can also receive input operations from the user to confirm whether the first proportional relationship needs to be adjusted; if it is confirmed that the first proportional relationship needs to be adjusted according to the request information, a confirmation message is sent to the server to instruct the server to adjust the first proportional relationship according to the confirmation information.

[0079] S220, the terminal assembles and decodes the multiple media packets to obtain decoded video data.

[0080] Specifically, the terminal can receive media packets from the video transmission channel and the DC channel, and decode the media packets to obtain decoded video data. It is understandable that when packet loss is found, the terminal can request the server to resend the lost media packets until the terminal obtains the lost media packets. The terminal can decode the lost media packets and obtain the decoded video data to ensure that the video data is complete.

[0081] In another possible implementation, the terminal assembles and decodes the multiple media packets according to the numbering sequence of the multiple media packets to obtain decoded video data.

[0082] Specifically, each media packet has its number. After the terminal receives the media packets transmitted through the video transmission channel and the DC channel in a first proportional relationship, it can assemble and decode them in the order of the media packet numbers. Each media packet has its number. For example, the first proportional relationship can be 3:1. Since the video transmission channel and the DC channel are cooperatively transmitted at the same time, when the terminal receives 4 media packets, the media packets received by the terminal from the video transmission channel can be numbered 1, 2, and 3 respectively, and the media packets received by the terminal from the DC channel can be numbered 4. Then, the terminal can group the media packets numbered 1, 2, 3, and 4 in the order of the numbers for assembly until all the received media packets are received. The packages are assembled according to their numbering order. After the obtained media packages are assembled, the assembled media packages are arranged in numbering order. Then the assembled media packages are decoded. For example, the assembled media packages include media packages numbered 1, 2, 3 and 4. The terminal decodes the media packages numbered 1, 2, 3, 4, and then decodes the next group of assembled media packages. The terminal can decode according to the sequential numbering of the media packages until all assembled media packages are decoded, and decoded video data arranged in numbering order is obtained. This allows the terminal to play the media packages in sequence through the decoded video data and display continuous video images on the terminal screen.

[0083] S230: The terminal plays a plurality of media packages based on the decoded video data.

[0084] Specifically, the terminal can play the video stream included in the media package according to the decoded video data, and display the video picture on the terminal.

[0085] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a data transmission device, an electronic device and corresponding embodiments.

[0086] Figure 3 It is a schematic diagram of the structure of a data transmission device 300 shown in an embodiment of the present application.

[0087] See also Figure 3 , a data transmission device 300, applied to a server, includes an acquisition module 310, a processing module 320, and a transmission module 330. Among them:

[0088] The acquisition module 310 is used to acquire media data to be transmitted.

[0089] Specifically, the acquisition module 310 can acquire the media data to be transmitted to the terminal, and the media data can be downlink data to be transmitted to the terminal, and the media data can be video data, audio data, image data, animation data, interactive content, etc. The processing module 320 is used to split the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same.

[0090] Specifically, the processing module 320 can split and encode the media data to be transmitted, and add corresponding information to each segment of data after splitting, so as to form multiple data packets with the same format. For example, the video content can be split and encoded into key frames I frames, ordinary frames P frames and B frames and other data, and then the encoded key frames I frames, ordinary frames P frames and B frames are respectively encapsulated into multiple data packets according to preset rules. The byte size of each data packet is the same. Data packets with the same byte size are conducive to alternatingly transmitting the data packets through the video transmission channel and the DC channel in a proportional relationship.

[0091] The transmission module 330 is used to send multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, and the second proportional relationship between the number of data packets transmitted by the video transmission channel and the number of data packets transmitted by the DC channel is consistent with the first proportional relationship.

[0092] Specifically, the transmission module 330 can send data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to the first proportional relationship, and the second proportional relationship of the number of data packets sent is consistent with the first proportional relationship. The terminal receives data packets from the video transmission channel and the DC channel respectively through the first proportional relationship, and the number of data packets received by the terminal is also consistent with the second proportional relationship. Through the coordinated transmission of the video transmission channel and the DC channel, the phenomenon of packet loss during transmission can be better reduced.

[0093] In another possible implementation, the transmission module 330 is also used to adjust the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel according to the transmission result, and return to the step of sending multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel.

[0094] In another possible implementation, the transmission module 330 is also used to send a request message to the terminal based on the transmission result; receive confirmation information sent by the terminal for the request information, the confirmation information is used to indicate whether to adjust the first proportional relationship based on the transmission result; if the confirmation information indicates to adjust the first proportional relationship based on the transmission result, then adjust the first proportional relationship according to the transmission result.

[0095] In another possible implementation, the transmission module 330 is also used to obtain, based on the transmission results, a ratio between the number of data packets that failed to be sent through the video transmission channel and the number of data packets that failed to be sent through the DC channel; if the ratio between the number of data packets that failed to be sent through the video transmission channel and the number of data packets that failed to be sent through the DC channel is greater than a preset threshold, then the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel is adjusted based on the transmission results.

[0096] In another possible implementation, the transmission module 330 is also used to obtain the channel quality of the first transmission channel and the channel quality of the second transmission channel; based on the channel quality of the first transmission channel and the channel quality of the second transmission channel, obtain a first proportional relationship between the bandwidth capacity of the first transmission channel and the bandwidth capacity of the second transmission channel; the parameters of the channel quality include a numerical value of at least one of signal strength, signal-to-noise ratio, link delay and network bandwidth.

[0097] It can be seen from this embodiment that the device provided in the embodiment of the present application can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0098] The above modules can transmit data to each other through communication paths. It should be understood that the modules included in the data transmission device 300 can be software units, hardware units, or partly software units and partly hardware units.

[0099] The data transmission device 300 of this embodiment includes an acquisition module 310, which is used to acquire media data to be transmitted; a processing module 320, which is used to split the media data to be transmitted to obtain multiple data packets, and the byte sizes of the multiple data packets are the same; a transmission module 330, which is used to send multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel. The second proportional relationship between the number of data packets transmitted by the video transmission channel and the number of data packets transmitted by the DC channel is consistent with the first proportional relationship, which can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0100] Figure 4 It is a schematic diagram of the structure of another data transmission device 400 shown in an embodiment of the present application.

[0101] See also Figure 4 , a data transmission device 400, applied to a terminal, includes a receiving module 410, a decoding module 420, and a playing module 430. Among them:

[0102] The receiving module 410 is used to receive multiple media packets sent in coordination through the video transmission channel and the DC channel according to a first proportional relationship, where the first proportional relationship is a proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel.

[0103] Specifically, the receiving module 410 can receive multiple media packets sent jointly through the video transmission channel and the DC channel, and sort them according to the numbering order of the media packets. After sorting the data packets, the lost data packets can be known and fed back to the server. It can be understood that the media packet is a data packet that encapsulates video data.

[0104] In another possible implementation, the receiving module 410 is further configured to receive request information; determine whether the first proportional relationship needs to be adjusted according to the request information; and send confirmation information if it is confirmed that the first proportional relationship needs to be adjusted according to the request information.

[0105] The decoding module 420 is used to assemble and decode multiple media packets to obtain decoded video data.

[0106] Specifically, the decoding module 420 can receive the media packets according to the first ratio, and decode the media packets according to the first ratio, and can obtain the decoded video data. It is understandable that when a packet loss is found, the terminal can request the server to resend the lost media packets until the terminal obtains the lost media packets. The terminal can decode the lost media packets and obtain the decoded video data to ensure that the video data is complete.

[0107] In another possible implementation, the decoding module 420 is further configured to assemble and decode the multiple media packets according to a first proportional relationship in the numbering sequence of the multiple media packets to obtain decoded video data.

[0108] The playing module 430 is used to play a plurality of media packages based on the decoded video data.

[0109] Specifically, the playback module 430 can play the video stream contained in the media package according to the decoded video data, and display the video screen on the terminal.

[0110] It can be seen from this embodiment that the device provided in the embodiment of the present application can reduce the phenomenon of packet loss during transmission, improve transmission efficiency, optimize network resource utilization, and enhance the user's communication experience.

[0111] The above modules can transmit data to each other through communication paths. It should be understood that the modules included in the data transmission device 400 can be software units, hardware units, or partly software units and partly hardware units.

[0112] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0113] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.

[0114] See also Figure 5 , the electronic device 500 includes a memory 510 and a processor 520 .

[0115] The processor 520 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0116] The memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 520 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, an optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 510 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0117] The memory 510 stores executable codes, and when the executable codes are processed by the processor 520 , the processor 520 can execute part or all of the methods described above.

[0118] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0119] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0120] Alternatively, the present application also provides a computer program product that can implement part or all of the steps of the method in the above embodiments, and the computer program product includes a computer program / instructions, which implement part or all of the steps of the method in the above embodiments when the computer program / instructions are executed by a processor.

[0121] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A data transmission method, characterized in that: Applicable to servers, including: Obtain media data to be transmitted; Splitting the media data to be transmitted to obtain multiple data packets, where the byte sizes of the multiple data packets are the same; According to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, a plurality of the data packets are cooperatively sent to the terminal through the video transmission channel and the DC channel, and a second proportional relationship between the number of the data packets transmitted by the video transmission channel and the number of the data packets transmitted by the DC channel is consistent with the first proportional relationship.

2. The method according to claim 1, characterized in that include: Each of the data packets includes a packet sequence number character segment, and the packet sequence number character segment is used to indicate the sequence number of the data packet in all data packets constituting the media data; The step of sending the plurality of data packets to the terminal through the video transmission channel and the DC channel in coordination according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel comprises: According to the order of the sequence numbers, the plurality of data packets are alternately allocated to the video transmission channel and the DC channel in the first proportional relationship for transmission, and the transmission results are recorded.

3. The method according to claim 2, characterized in that After allocating the plurality of data packets to the video transmission channel and the DC channel alternately in the first proportional relationship for transmission in the order of the sequence numbers and recording the transmission results, the method further includes: According to the transmission result, adjust the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, and return to the step of sending multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel.

4. The method according to claim 3, characterized in that The adjusting, according to the transmission result, a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel comprises: Sending request information to the terminal according to the transmission result; receiving confirmation information for the request information sent by the terminal, the confirmation information being used to indicate whether to adjust the first proportional relationship based on the transmission result; If the confirmation information indicates that the first proportional relationship is adjusted based on the transmission result, the first proportional relationship is adjusted according to the transmission result.

5. The method according to claim 4, characterized in that The adjusting the first proportional relationship according to the transmission result includes: According to the transmission result, obtaining a ratio between the number of data packets that fail to be sent on the video transmission channel and the number of data packets that fail to be sent on the DC channel; If the ratio between the number of data packets that fail to be sent by the video transmission channel and the number of data packets that fail to be sent by the DC channel is greater than a preset threshold, the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel is adjusted according to the transmission result.

6. The method according to any one of claims 1 to 5, characterized in that: Before the method sends the plurality of data packets to the terminal through the first transmission channel and the second transmission channel in a coordinated manner according to the first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, the method further includes: Acquire a channel quality of the first transmission channel and a channel quality of the second transmission channel; According to the channel quality of the first transmission channel and the channel quality of the second transmission channel, a first proportional relationship between the bandwidth capacity of the first transmission channel and the bandwidth capacity of the second transmission channel is obtained; the parameters of the channel quality include a numerical value of at least one of signal strength, signal-to-noise ratio, link delay and network bandwidth.

7. A data transmission method, characterized in that: Applied to terminals, including: receiving a plurality of media packets transmitted in coordination through a video transmission channel and a DC channel according to a first proportional relationship, wherein the first proportional relationship is a proportional relationship between a bandwidth capacity of the video transmission channel and a bandwidth capacity of the DC channel; Assemble and decode multiple media packets to obtain decoded video data; The plurality of media packets are played based on the decoded video data.

8. The method according to claim 7, characterized in that The step of assembling and decoding the plurality of media packets to obtain decoded video data includes: According to the numbering sequence of the multiple media packets, the multiple media packets are assembled and decoded to obtain decoded video data.

9. The method according to claim 8, characterized in that After receiving the plurality of media packets sent in coordination through the video transmission channel and the DC channel according to the first proportional relationship, the method further includes: Receive request information; Determining whether the first proportional relationship needs to be adjusted according to the request information; If it is confirmed that the first proportional relationship is adjusted according to the request information, a confirmation message is sent.

10. A data transmission device, characterized in that: Applicable to servers, including: An acquisition module, used to acquire media data to be transmitted; A processing module, used for splitting the media data to be transmitted to obtain multiple data packets, wherein the byte sizes of the multiple data packets are the same; A transmission module is used to send multiple data packets to the terminal through the video transmission channel and the DC channel in a coordinated manner according to a first proportional relationship between the bandwidth capacity of the video transmission channel and the bandwidth capacity of the DC channel, and a second proportional relationship between the number of the data packets transmitted by the video transmission channel and the number of the data packets transmitted by the DC channel is consistent with the first proportional relationship.

11. A data transmission device, characterized in that: Applied to terminals, including: A receiving module, configured to receive a plurality of media packets sent in coordination through a video transmission channel and a DC channel according to a first proportional relationship, wherein the first proportional relationship is a proportional relationship between a bandwidth capacity of the video transmission channel and a bandwidth capacity of the DC channel; A decoding module, used for assembling and decoding multiple media packets to obtain decoded video data; A playing module is used to play the multiple media packages based on the decoded video data.

12. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as claimed in any one of claims 1 to 9.

14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.