Data transmission method and device and terminal equipment
By obtaining network parameters between the terminal device and the multimedia server, flexibly adjusting the duration threshold and sending redundant data requests, the timeliness and flexibility of multimedia data acquisition of terminal devices is solved, and the efficiency of data transmission and resource utilization are improved.
Patent Information
- Application Number
- CN202310582232.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, terminal devices are prone to stuttering after the cached multimedia data playback is completed, and due to the inflexibility of setting the preset playback time, the timeliness and flexibility of the acquisition of multimedia data are poor.
By obtaining network parameters of multiple network connections between the terminal device and multiple multimedia servers, determining the duration threshold, and sending redundant data requests to the corresponding multimedia server when the remaining playback time is less than the threshold, obtaining unreceived multimedia data , flexibly adjust the duration threshold for obtaining multimedia data.
It improves the flexibility and timeliness of terminal devices to obtain multimedia data, avoids lag in multimedia data playback, and saves network resources.
Smart Images

Figure CN119011939A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of communication technology, and in particular, to a data transmission method, apparatus, and terminal device. Background Art
[0002] P2P content distribution network (PCDN) mainly uses idle resources of edge devices for streaming media transmission. Due to insufficient performance or resources of the above edge devices, network congestion or failure, etc., the terminal device cannot receive video data or audio data in time. After the cached video data is played, the video or audio will be stuck.
[0003] At present, the terminal device can set a preset playback time based on manual experience. When the remaining playback time of the multimedia data cached by the terminal device is less than the preset playback time, the terminal device can request to obtain new multimedia data to avoid multimedia playback jams. However, the preset playback time is fixed after setting, resulting in poor flexibility in obtaining multimedia data. Summary of the invention
[0004] The present disclosure provides a data transmission method, apparatus and terminal device, which are used to solve one or more technical problems in the prior art.
[0005] In a first aspect, the present disclosure provides a data transmission method, the method comprising:
[0006] Obtaining network parameters of multiple network connections between the terminal device and multiple multimedia servers;
[0007] Determining a duration threshold based on the network parameters of the plurality of network connections, the duration threshold being a minimum duration for which the multimedia data cached by the terminal device can be played;
[0008] Determining the remaining playing time of the multimedia data to be played that has been cached by the terminal device;
[0009] If the remaining playback time is less than the time threshold, a redundant data request for target multimedia data is sent to a corresponding multimedia server on one or more target network connections among the multiple network connections, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data not received by the terminal device, and the redundant data request includes an identifier of the target multimedia data.
[0010] In a second aspect, the present disclosure provides a data transmission device, the data transmission device comprising an acquisition module, a first determination module, a second determination module and a sending module, wherein:
[0011] The acquisition module is used to acquire network parameters of multiple network connections between the terminal device and multiple multimedia servers;
[0012] The first determination module is used to determine a duration threshold based on the network parameters of the multiple network connections, where the duration threshold is the minimum duration that the multimedia data cached by the terminal device can be played;
[0013] The second determination module is used to determine the remaining playback time of the multimedia data to be played that has been cached by the terminal device;
[0014] The sending module is used to send a redundant data request for target multimedia data to a corresponding multimedia server on one or more target network connections among the multiple network connections if the remaining playback time is less than the time threshold, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data not received by the terminal device, and the redundant data request includes an identifier of the target multimedia data.
[0015] In a third aspect, an embodiment of the present disclosure provides a terminal device including: a processor and a memory;
[0016] The memory stores computer-executable instructions;
[0017] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the first aspect as well as various data transmission methods that may be involved in the first aspect.
[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the data transmission method as described in the first aspect and various possible aspects of the first aspect are implemented.
[0019] The present disclosure provides a data transmission method, apparatus and terminal device, which obtain network parameters of multiple network connections between a terminal device and multiple multimedia servers, determine a duration threshold based on the network parameters of the multiple network connections, determine the remaining playback duration of the multimedia data to be played that has been cached by the terminal device, and if the remaining playback duration is less than the duration threshold, send a redundant data request for target multimedia data to the corresponding multimedia server on one or more network links among the multiple network connections, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data that the terminal device has not received, and the redundant data request includes an identifier of the target multimedia data. In the above method, since the terminal device can obtain the target multimedia data when the remaining playback duration is less than the duration threshold, and the terminal device can flexibly adjust the duration threshold related to the terminal device obtaining the multimedia data based on the network parameters of the multiple network connections, which can improve the flexibility of the terminal device in obtaining multimedia data. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0022] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram of determining target multimedia data provided by an embodiment of the present disclosure;
[0024] Figure 4 A schematic diagram of sending a redundant data request provided by an embodiment of the present disclosure;
[0025] Figure 5 A schematic diagram of a method for determining a target network connection provided by an embodiment of the present disclosure;
[0026] Figure 6 A schematic diagram of determining a target network connection provided by an embodiment of the present disclosure;
[0027] Figure 7 A schematic diagram of another method for determining a target network connection provided by an embodiment of the present disclosure;
[0028] Figure 8A schematic diagram of another method for determining a target network connection provided by an embodiment of the present disclosure;
[0029] Fig. 9 A process diagram of a data transmission method provided by an embodiment of the present disclosure;
[0030] Fig.10 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present disclosure; and
[0031] Fig.11 A schematic diagram of the structure of a terminal device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0033] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.
[0034] Terminal device: a device with wireless transceiver function. The terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal device in remote medical, a wireless terminal device in smart grid, a wireless terminal device in transportation safety, a wireless terminal device in smart city, a wireless terminal device in smart home, a wearable terminal device, etc. The terminal device involved in the embodiments of the present disclosure can also be called a terminal, a user equipment (UE), an access terminal device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote terminal device, a mobile device, a UE terminal device, a wireless communication device, a UE agent or a UE device, etc. Terminal devices can also be fixed or mobile.
[0035] Next, combine Figure 1 , the application scenarios of the embodiments of the present disclosure are described.
[0036] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure. Figure 1 , including a terminal device and a multimedia server. When the terminal device plays a video, the terminal device can receive video data sent by the multimedia server and play the video data. When the video data cached by the terminal device is insufficient, the terminal device can actively send a message to the multimedia server requesting to obtain video data. After receiving the message sent by the terminal device requesting to obtain video data, the multimedia server can send the video data to the terminal device.
[0037] It should be noted that Figure 1 The application scenarios of the embodiments of the present disclosure are merely illustrative and are not intended to limit the application scenarios of the embodiments of the present disclosure.
[0038] In the related technology, the terminal device can establish a network connection with edge devices such as home routing devices, operator base stations, and personal service clusters, and then transmit video data or audio data based on the idle resources of the above-mentioned edge devices. However, due to insufficient performance or resources of the edge device itself, as well as network congestion or failure, the terminal device cannot receive the video data or audio data in a timely manner, which causes the video or audio to freeze. At present, in order to avoid video or audio freezes, the terminal device can set a preset playback time based on manual experience. When the remaining playback time of the video data cached by the terminal device is less than the preset playback time, it means that the video data cached by the terminal device is insufficient, and the terminal device can request to obtain the video data to avoid video freezes.
[0039] However, the preset playback time is usually set based on manual experience, and the accuracy of the preset playback time set by manual experience is low. Moreover, the preset playback time is fixed after setting. The terminal device cannot request to obtain video data in a timely and flexible manner based on the fixed and inaccurate preset playback time. For example, if there are many idle network resources, but the remaining playback time of the video is still greater than the preset playback time, the terminal device will not request to obtain video data, resulting in a waste of idle network resources. If there are fewer idle network resources, the terminal device needs to obtain video data as soon as possible to avoid the cache being empty, but when the remaining playback time of the video is greater than the preset playback time, the terminal device will not actively obtain video data. The above method results in poor timeliness and flexibility in the terminal device's request to obtain multimedia data.
[0040] In order to solve the technical problems in the related art, the embodiment of the present disclosure provides a data transmission method, which obtains network parameters of multiple network connections between a terminal device and multiple multimedia servers, wherein the network parameters may include round-trip delay and packet loss rate of data transmission, determines the duration corresponding to each network connection based on the round-trip delay and packet loss rate of each network connection, obtains the minimum duration among the multiple durations corresponding to the multiple network connections, and determines the product between the minimum duration and the preset parameter as the duration threshold, determines the remaining playback duration of the multimedia data to be played that has been cached by the terminal device, and if the remaining playback duration is less than the duration threshold, sends a redundant data request for target multimedia data to the corresponding multimedia server on one or more target network connections among the multiple network connections, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data that the terminal device has not received. In this way, the terminal device can flexibly adjust the duration threshold related to the terminal device obtaining multimedia data based on the packet loss rate and round-trip delay of the multiple network connections, thereby improving the flexibility of the terminal device in obtaining multimedia data and saving network resources.
[0041] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0042] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present disclosure. Figure 2 , the method may include:
[0043] S201. Obtain network parameters of multiple network connections between a terminal device and multiple multimedia servers.
[0044] The execution subject of the embodiment of the present disclosure is a terminal device, or a data transmission device set in the terminal device. The data transmission device can be implemented by software, or by a combination of software and hardware, which is not limited by the embodiment of the present disclosure.
[0045] Among them, the terminal device can be interconnected with multiple multimedia servers based on multiple network connections. For example, the network connection refers to the network connection established between the terminal device and edge devices such as home routing devices, operator base stations and personal service clusters. The edge devices can use their own idle resources to provide multimedia data transmission services to the terminal devices. PCDN network, PCDN is based on peer-to-peer (P2P) technology.
[0046] Optionally, the network parameters may include a round-trip delay and a packet loss rate of data transmission of the network connection. The round-trip delay of data transmission may be the time between the data sender sending the data and the data receiver receiving the confirmation message (confirming that the data has been received). For example, the round-trip delay of data transmission may be the round-trip delay (RTT) of the network connection. If the RTT is 1 millisecond, it means that the round-trip delay of data transmission of the network connection is 1 millisecond.
[0047] The packet loss rate may be the ratio of lost data packets to sent data packets when the data sender transmits data based on a network connection. For example, if the packet loss rate of a network connection is 50%, it means that when the server uses the network connection to send video data to a terminal device, 50% of the video data will be lost. For example, if the packet loss rate of a network connection is 90%, it means that when the server uses the network connection to send a video data packet to a terminal device, the video data packet can be sent 10 times in succession so that the terminal device can successfully receive the video data packet.
[0048] Specifically, the terminal device can obtain the network parameters of multiple network connections of the terminal device based on the following feasible implementation methods: obtain the sum of the idle bandwidths of the multiple network connections, obtain the playback bit rate of the multimedia data to be played, and if the sum of the idle bandwidths is greater than or equal to the playback bit rate, then obtain the network parameters of the multiple network connections between the terminal device and multiple multimedia servers.
[0049] The sum of idle bandwidths may be the sum of idle network bandwidths in multiple network connections of the terminal device. For example, the terminal device is connected to network device 1 based on network connection A, and the terminal device is connected to network device 2 based on network connection B. If the current network connection A can still transmit 2M data per second, and the current network connection B can still transmit 1M data per second, the sum of idle bandwidths is 3M data per second.
[0050] The playback bit rate of the multimedia data to be played may be the amount of multimedia data required per second when the terminal device plays the multimedia data. For example, the playback bit rate of a video may be 2K, 4K, etc. The higher the playback bit rate of the video, the greater the amount of data required per second when the video is played, and the higher the definition of the video.
[0051] Optionally, if the sum of idle bandwidths is greater than or equal to the playback bit rate, the network parameters of multiple network connections between the terminal device and the multiple multimedia servers are obtained. For example, if the sum of idle bandwidths is greater than or equal to the playback bit rate, it means that the idle network bandwidth in the multiple network connections is sufficient to transmit video data. Therefore, the terminal device can obtain the network parameters of the multiple network connections and determine whether to request to obtain video data, thereby ensuring that the current bandwidth meets the demand for obtaining video data, avoiding occupying more network resources and causing network congestion.
[0052] Optionally, the terminal device can obtain the network parameters of each network connection in real time, or the terminal device can periodically obtain the network parameters of each network connection, which is not limited in the embodiments of the present disclosure. For example, the terminal device can determine the round-trip delay and packet loss rate of data transmission of the network connection through a message for testing network parameters. It should be noted that the terminal device can also determine the network parameters of the network connection based on any feasible implementation method, such as other devices can send the network parameters of the network connection to the terminal device, etc., which is not limited in the embodiments of the present disclosure.
[0053] S202: Determine a duration threshold based on network parameters of multiple network connections.
[0054] The duration threshold is the minimum duration that the multimedia data cached by the terminal device can be played. For example, when the remaining playback time of the video is less than the duration threshold, it means that the video data cached by the terminal device is insufficient, and the terminal device can request the multimedia server to obtain the video data. For example, if the duration threshold is 3 seconds, then when the playback time of the unplayed video data cached by the terminal device is less than 3 seconds, the terminal device can request the multimedia server to obtain the video data to avoid video freeze after the cached video data is played.
[0055] It should be noted that the duration threshold in the embodiment of the present disclosure is the duration determined by the terminal device based on the network parameters of multiple network connections. The duration threshold can change with the change of network parameters, and the duration threshold can be determined in real time or periodically. The embodiment of the present disclosure is not limited to this.
[0056] Specifically, the terminal device can determine the duration threshold based on the following feasible implementation methods: based on the round-trip delay and packet loss rate of each network connection, determine the duration corresponding to each network connection; based on the duration corresponding to each network connection, determine the duration threshold.
[0057] The duration corresponding to the network connection may indicate the ability of the network connection to perform effective data transmission. For example, if the duration corresponding to the network connection is short, it means that the network state of the network connection is good, the ability of the network connection to perform effective data transmission is strong, and the terminal device can receive more multimedia data based on the network connection within the preset duration. If the duration corresponding to the network connection is long, it means that the network state of the network connection is poor, the ability of the network connection to perform effective data transmission is weak, and the terminal device receives less multimedia data based on the network connection within the preset duration.
[0058] Optionally, the terminal device determines the corresponding duration of each network connection based on the round-trip delay and packet loss rate of each network connection, including: for any network connection, determining the difference between M and the packet loss rate of the network connection, and determining the corresponding duration of the network connection as the product of the inverse of the difference between M and the packet loss rate of the network connection and the round-trip delay of the network connection, where M is a number greater than 0.
[0059] Optionally, the duration corresponding to each network connection of the terminal device determines the duration threshold, which can be specifically: obtaining the minimum duration among multiple durations corresponding to multiple network connections, and multiplying the minimum duration by a preset parameter to determine the duration threshold, wherein the preset parameter is a number greater than 1 and less than 5. For example, the preset parameter can be 1.1, 1.3, 1.5 or 2, etc., which is not limited in the embodiments of the present disclosure.
[0060] Optionally, the terminal device may determine the duration threshold based on the following formula:
[0061] T = α × min (1 / (1-loss_rate j )×RTT j )
[0062] Where T is the duration threshold, α is the preset parameter, loss_rate is the packet loss rate, RTT is the round-trip delay, and j is the serial number of the network connection. Based on the formula 1 / (1-loss_rate j )×RTT j , the duration corresponding to the j-th network connection can be obtained. Based on the above formula, the duration threshold can be obtained.
[0063] In this way, since the duration threshold is determined based on the network connection with the smallest duration among multiple durations corresponding to multiple network connections, when the remaining playback time of the multimedia data is less than the duration threshold, the terminal device can obtain the multimedia data in a timely manner based on the network connection, thereby improving the timeliness of multimedia data acquisition, avoiding jamming of multimedia data playback, and improving the effect of multimedia data playback.
[0064] It should be noted that since the duration threshold can be changed based on changes in network parameters of multiple network connections, the terminal device can initialize a time detection device for the remaining playable time for the current multimedia data transmission task. The time detection device can detect the remaining playable time of the current streaming media task in real time, and then determine whether the remaining playable time is less than the duration threshold.
[0065] S203: Determine the remaining playing time of the multimedia data to be played that has been buffered by the terminal device.
[0066] The remaining playback time is the playback time associated with the multimedia data to be played that is cached by the terminal device. For example, the cache pool of the terminal device can cache multiple received multimedia data. If the playback time associated with the multimedia data that has not been played among the received multimedia data is 10 milliseconds, the terminal device can determine that the remaining playback time of the multimedia data is 10 milliseconds.
[0067] Optionally, the terminal device may determine the remaining playback time based on the cached multimedia data to be played. For example, if one video data packet is a 3-second video, and the number of video data packets to be played cached by the terminal device is 3, the terminal device may determine that the remaining playback time is 9 seconds.
[0068] S204: If the remaining playback time is less than the time threshold, a redundant data request for target multimedia data is sent to a corresponding multimedia server on one or more target network connections among the multiple network connections.
[0069] The multimedia server may be a sender of multimedia data. For example, the multimedia server (edge device shown in the embodiment of the present disclosure) may send video data, audio data, etc. to the terminal device, which is not limited in the embodiment of the present disclosure.
[0070] Optionally, a redundant data request refers to a data request repeatedly sent by a terminal device. For example, if the remaining playback time is less than the time threshold, it means that the amount of multimedia data obtained by the data request previously sent by the terminal device is insufficient (for example, the amount of multimedia data previously requested by the terminal device is small, or due to a high packet loss rate of the network connection, part of the multimedia data is lost, resulting in the terminal device not receiving enough multimedia data, or due to a long round-trip delay of the network connection, the terminal device does not receive the multimedia data in time, and the embodiments of the present disclosure are not limited to this), therefore, the terminal device can send a data request to the multimedia server again, and the data request can be a redundant data request.
[0071] The redundant data request may include an identifier of the target multimedia data. The target multimedia data may be one or more multimedia data with the smallest sequence number among the multimedia data not received by the terminal device. For example, if the terminal device has received video data, but the video data has not been played in the cache, the video data does not belong to the target multimedia data. If the video data cached by the terminal device can be played to the 3rd second of the video, the video data after the 3rd second of the video may be the multimedia data that has not been received.
[0072] It should be noted that the sequence number of the unreceived multimedia data can indicate the playback order of the multimedia data. For example, the multimedia data with the smallest sequence number is the earliest multimedia data to be played among the unreceived multimedia data, that is, the multimedia data with the smallest sequence number is the most urgent data packet that has not been received, and the priority for obtaining the multimedia data packet is the highest. For example, if the sequence numbers of three unreceived multimedia data are 1, 2, and 3, respectively, the playback order of the multimedia data with sequence number 1 is earlier than the multimedia data with sequence number 2, and the playback order of the multimedia data with sequence number 2 is earlier than the multimedia data with sequence number 3. If the terminal device can only request to obtain one unreceived multimedia data, the terminal device will give priority to obtaining the multimedia data with sequence number 1.
[0073] It should be noted that after receiving the multimedia data, the terminal device can record the identifier of each multimedia data, and then determine the multimedia data that has been received and the multimedia data that has not been received. For example, the video data requested to be played by the terminal device includes video data A, video data B, and video data C. Therefore, the unreceived data list in the terminal device includes the identifier of video data A, the identifier of video data B, and the identifier of video data C. If the terminal device receives video data A and video data B, the terminal device can store the identifier of video data A and the identifier of video data B in the received data list, and the unreceived data list in the terminal device includes the identifier of video data C.
[0074] Optionally, before sending the redundant data request, the terminal device may determine the identifier of the target multimedia data in the multimedia data not received by the terminal device, thereby generating a redundant data request and sending the redundant data request for the target multimedia data to the corresponding multimedia server.
[0075] Among them, the electronic device can send a redundant data request to the corresponding multimedia server based on the following feasible implementation method: obtain the data volume of each multimedia data packet transmitted by the multimedia server, determine the amount of data requested by the terminal device based on the duration threshold, the remaining playback duration, the playback bit rate of the multimedia data and the data volume of the data packet, determine the identification of the target multimedia data in the multimedia data not received by the terminal device based on the data volume, and send a redundant data request to the multimedia server.
[0076] The data volume may be the size of each multimedia data packet. For example, if a multimedia data packet sent by a multimedia server is 1 kb, the terminal device may determine that the data volume is 1 kb. It should be noted that the data volume may be a pre-set parameter, and the terminal device in the embodiment of the present disclosure may obtain the target data volume based on any feasible implementation method, which is not limited in the embodiment of the present disclosure.
[0077] The data quantity may be the quantity of multimedia data requested by the terminal device. For example, in actual application, the quantity of multimedia data requested by the terminal device at one time is limited, so the terminal device may determine the quantity of multimedia data to be requested before sending the redundant data request.
[0078] Optionally, the terminal device may determine the amount of data based on the following formula:
[0079] N=(TT reamin )×play_rate / pkt_size
[0080] Where N is the number of data, T is the duration threshold, and T reamin It can be the remaining playback time, play_rate can be the playback bit rate of multimedia data, and pkt_size can be the data size of the data packet.
[0081] Optionally, based on the data quantity, the identification of the target multimedia data is determined in the multimedia data not received by the terminal device. Specifically, it can be: based on the data quantity, the identification of the target multimedia data is determined in one or more multimedia data with the smallest sequence number in the multimedia data not received by the terminal device. For example, if the unreceived multimedia data includes 10 pieces, wherein the sequence numbers of the 10 multimedia data are 1, 2, ..., 10, respectively, and the data quantity is 3, then the terminal device can determine the multimedia data with sequence number 1, the multimedia data with sequence number 2, and the multimedia data with sequence number 3 as the target multimedia data, and determine the identification of the above multimedia data as the identification of the target multimedia data.
[0082] Next, combine Figure 3, a process of determining an identifier of target multimedia data is described.
[0083] Figure 3 A schematic diagram of determining target multimedia data provided by an embodiment of the present disclosure. Figure 3 , including a list of unreceived video data. The list of unreceived video data includes the third video data, the eighth video data, the ninth video data and the tenth video data. If the terminal device ( Figure 8 (not shown) determines that the data quantity is 3, then the terminal device can determine the 3rd video data, the 8th video data and the 9th video data as the target video data.
[0084] Optionally, after determining the identifier of the target multimedia data, the terminal device may send a redundant data request including the identifier of the target multimedia data to the multimedia server, so that the multimedia server sends the target multimedia data based on the redundant data request.
[0085] Next, combine Figure 4 , the process of sending redundant data request by the terminal device is explained.
[0086] Figure 4 A schematic diagram of sending a redundant data request provided by an embodiment of the present disclosure. Figure 4 , including a terminal device and a multimedia server. The terminal device may send a redundant data request to the server. The redundant data request may include an identifier of video data A, an identifier of video data B, and an identifier of video data C. After receiving the redundant data request, the multimedia server may send video data A, video data B, and video data C to the terminal device. In this way, when the remaining playback time is less than the duration threshold, the terminal device may actively request to obtain the video data to avoid video playback jams, and since the duration threshold is determined based on network parameters of multiple network connections, the duration threshold has a high degree of flexibility, and the flexibility of obtaining video data is high.
[0087] The disclosed embodiment provides a data transmission method, wherein a terminal device can obtain the round-trip delay and packet loss rate of multiple network connections, determine the duration corresponding to each network connection based on the round-trip delay and packet loss rate of each network connection, obtain the minimum duration among the durations corresponding to each network connection, and determine the product of the minimum duration and a preset parameter as a duration threshold, determine the remaining playback duration of the multimedia data to be played that has been cached by the terminal device, and if the remaining playback duration is less than the duration threshold, send a redundant data request for the target multimedia data to the corresponding multimedia server on one or more target network connections among the multiple network connections. In this way, since the terminal device can flexibly determine the duration threshold based on the network parameters of each network connection, and the duration threshold can determine the timing for the terminal device to obtain multimedia data, the terminal device can also flexibly obtain multimedia data, thereby improving the flexibility of multimedia data acquisition and saving network resources.
[0088] exist Figure 2 Based on the embodiment shown in the figure, in the above data transmission method, before the terminal device sends a redundant data request for target multimedia data to the corresponding multimedia server, it can also determine one or more target network connections for sending redundant data requests from multiple network links. Figure 5 , a method for determining a target network connection is described.
[0089] Figure 5 A schematic diagram of a method for determining a target network connection provided by an embodiment of the present disclosure. Figure 5 The method flow may include:
[0090] S501: Obtain the round-trip delay and / or packet loss rate of each network connection.
[0091] It should be noted that the terminal device can obtain the round-trip delay and packet loss rate of each network connection based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.
[0092] S502: Determine one or more target network connections from the multiple network connections based on the round trip delay and / or packet loss rate of each network connection from the multiple network connections.
[0093] The target network connection is used to send redundant data requests. Specifically, the terminal device determines one or more target network connections from multiple network connections based on the round-trip delay and / or packet loss rate of each network connection in the multiple network connections. There are three feasible implementation methods:
[0094] A possible implementation method:
[0095] Based on multiple round-trip delays of multiple network connections, the target network connection is determined. For example, the terminal device can determine the network connection with the smallest round-trip delay as one or more target network connections. For example, the terminal device can determine one or more network connections with the smallest round-trip delay as one or more target network connections. For example, if the round-trip delay of network connection A is 10 milliseconds, the round-trip delay of network connection B is 15 milliseconds, and the data transmission delay of network connection C is 20 milliseconds, the terminal device can determine network connection A as the target network connection.
[0096] In this feasible implementation, since the round-trip delay of the target network connection is minimal, the terminal device can quickly obtain multimedia data based on the target network connection, thereby improving the timeliness of multimedia data acquisition.
[0097] Next, combine Figure 6 , in this feasible implementation, the process of determining the target network connection is described.
[0098] Figure 6 A schematic diagram of determining a target network connection provided by an embodiment of the present disclosure. Figure 6 , including a terminal device, a multimedia server device A and a multimedia server B. Among them, there is a network connection between the terminal device and the multimedia server A, and there is another network connection between the terminal device and the multimedia server B. If the RTT (round trip time) of the network connection between the terminal device and the multimedia server A is 10 milliseconds, and the RTT of the network connection between the terminal device and the multimedia server B is 15 milliseconds, the terminal device can determine that the network connection between the terminal device and the multimedia server A is the target network connection.
[0099] Another possible implementation:
[0100] Based on multiple packet loss rates of multiple network connections, the target network connection is determined. For example, the terminal device may determine the network connection with the smallest packet loss rate as one or more target network connections. For example, the terminal device may determine one or more network connections with the smallest packet loss rate as one or more target network connections. For example, if the packet loss rate of network connection A is 10%, the packet loss rate of network connection B is 30%, and the packet loss rate of network connection C is 50%, then the terminal device may determine network connection A as the target network connection.
[0101] In this feasible implementation, since the packet loss rate of the target network connection is minimal, the terminal device can stably obtain multimedia data based on the target network connection, thereby improving the stability of multimedia data acquisition.
[0102] Next, combine Figure 7, in this feasible implementation, the process of determining the target network connection is described.
[0103] Figure 7 This is another schematic diagram of determining a target network connection provided by an embodiment of the present disclosure. Figure 7 , including a terminal device, a multimedia server A and a multimedia server B. Among them, there is a network connection between the terminal device and the multimedia server A, and there is another network connection between the terminal device and the multimedia server B. If the packet loss rate of the network connection between the terminal device and the multimedia server A is 20%, and the packet loss rate of the network connection between the terminal device and the multimedia server B is 10%, the terminal device can determine that the network connection between the terminal device and the multimedia server B is the target network connection.
[0104] Another possible implementation is:
[0105] Based on the round-trip delay and packet loss rate of each network connection, the duration corresponding to each network connection is determined, and one or more network connections corresponding to the smallest duration among multiple durations corresponding to multiple network connections are determined as one or more target network connections.
[0106] The duration of the network connection can be determined based on the following formula:
[0107] A=(1 / (1-loss_rate j )×RTT j )
[0108] Among them, A is the corresponding duration of the network connection; loss_rate is the packet loss rate, RTT is the round-trip delay, and j is the sequence number of the network connection.
[0109] For example, if the round-trip delay of network connection A is 10 milliseconds and the packet loss rate is 50%, the round-trip delay of network connection B is 10 milliseconds and the packet loss rate is 10%, and the round-trip delay of network connection C is 20 milliseconds and the packet loss rate is 20%, then since the corresponding duration of network connection A is 20, the corresponding duration of network connection B is approximately 11, and the corresponding duration of network connection C is 25, the terminal device can determine network connection B as the target network connection.
[0110] It should be noted that the product involved in the embodiments of the present disclosure may also be other operations, and the embodiments of the present disclosure are not limited to this.
[0111] In this feasible implementation, since the target network connection has a low round-trip delay and a low packet loss rate, the terminal device can quickly and stably obtain multimedia data based on the target network connection, thereby improving the timeliness and stability of multimedia data acquisition.
[0112] Next, combine Figure 8 , in this feasible implementation, the process of determining the target network connection is described.
[0113] Figure 8 This is another schematic diagram of determining a target network connection provided by an embodiment of the present disclosure. Figure 8 , including a terminal device, a multimedia server A and a multimedia server B. Among them, there is a network connection between the terminal device and the multimedia server A, and there is another network connection between the terminal device and the multimedia server B. If the packet loss rate of the network connection between the terminal device and the multimedia server A is 20%, the RTT is 15 milliseconds, and the packet loss rate of the network connection between the terminal device and the multimedia server B is 10%, and the RTT is 15 milliseconds, then the terminal device can determine that the network connection between the terminal device and the multimedia server B is the target network connection.
[0114] The disclosed embodiment provides a method for determining a target network connection, obtaining a round-trip delay and / or a packet loss rate of each network connection, and determining one or more target network connections from multiple network connections based on the round-trip delay and / or the packet loss rate of each network connection in the multiple network connections. In this way, the terminal device can send a redundant data request based on a network connection with a lower packet loss rate, a shorter round-trip delay, or a stronger effective data transmission capacity, thereby obtaining target multimedia data in a timely and accurate manner, thereby improving the reliability, accuracy, and stability of data transmission.
[0115] Based on any of the above embodiments, Fig. 9 , the process of the above data transmission method is explained.
[0116] Fig. 9 A process diagram of a data transmission method provided by an embodiment of the present disclosure. Fig. 9 , including multimedia server A, multimedia server B, and terminal device. Among them, there is a network connection between the terminal device and multimedia server A, the packet loss rate of the network connection is 20%, and the RTT is 20 milliseconds. There is another network connection between the terminal device and multimedia server B, the packet loss rate of the network connection is 30%, and the RTT is 20 milliseconds.
[0117] See also Fig. 9 , the preset parameter pre-set by the terminal device is 1.5. Therefore, the terminal device can determine that the duration threshold is 25 milliseconds. When the remaining playback duration of the multimedia data cached by the terminal device is less than 25 milliseconds, since the duration corresponding to the network connection between the terminal device and the multimedia server A is the smallest, the terminal device determines that the target network connection is the network connection between the terminal device and the multimedia server A.
[0118] See also Fig. 9 The unreceived video data list includes the identifier of video data A, the identifier of video data B, the identifier of video data C, and the identifier of video data D. Since the number of data determined by the terminal device is 3, the terminal device can determine video data A, video data B, and video data C as target video data.
[0119] See also Fig. 9 , the terminal device can send a redundant data request to the multimedia server A based on the target network connection, wherein the redundant data request can include the identifier of the video data A, the identifier of the video data B and the identifier of the video data C. Optionally, the terminal device can also receive the video data A, the video data B and the video data C sent by the multimedia server A based on the target network connection. In this way, when the network parameters change, the duration threshold will also change, thereby improving the accuracy and flexibility of the duration threshold. Moreover, since the duration threshold can determine the timing for the terminal device to obtain multimedia data, the terminal device can obtain multimedia data from the multimedia server based on a flexible and timely request, which can not only save network resources but also improve the timeliness and flexibility of obtaining multimedia data.
[0120] Fig.10 This is a structural diagram of a data transmission device provided by an embodiment of the present disclosure. Fig.10 , the data transmission device 100 includes an acquisition module 101, a first determination module 102, a second determination module 103 and a sending module 104, wherein:
[0121] The acquisition module 101 is used to acquire network parameters of multiple network connections between the terminal device and multiple multimedia servers;
[0122] The first determining module 102 is used to determine a duration threshold based on the network parameters of the plurality of network connections, where the duration threshold is the minimum duration for which the multimedia data cached by the terminal device can be played;
[0123] The second determination module 103 is used to determine the remaining playback time of the multimedia data to be played that has been cached by the terminal device;
[0124] The sending module 104 is used to send a redundant data request for target multimedia data to a corresponding multimedia server on one or more target network connections among the multiple network connections if the remaining playback time is less than the time threshold, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data not received by the terminal device, and the redundant data request includes an identifier of the target multimedia data.
[0125] According to one or more embodiments of the present disclosure, the first determining module 102 is specifically configured to:
[0126] Determine the duration corresponding to each network connection based on the round-trip delay and the packet loss rate of each network connection;
[0127] The duration threshold is determined based on the duration corresponding to each network connection.
[0128] According to one or more embodiments of the present disclosure, the first determining module 102 is specifically configured to:
[0129] For any network connection, determine the difference between M and the packet loss rate of the network connection, where M is a number greater than 0;
[0130] The product of the reciprocal of the difference between M and the packet loss rate of the network connection and the round-trip delay of the network connection is determined as the duration corresponding to the network connection.
[0131] According to one or more embodiments of the present disclosure, the first determining module 102 is specifically configured to:
[0132] Obtain the minimum duration among multiple durations corresponding to multiple network connections;
[0133] The product of the minimum duration and a preset parameter is determined as the duration threshold, and the preset parameter is a number greater than 1 and less than 5.
[0134] According to one or more embodiments of the present disclosure, the acquisition module 101 is specifically used for:
[0135] Obtaining the sum of idle bandwidths of the multiple network connections;
[0136] Obtaining the playback bit rate of the multimedia data to be played;
[0137] If the sum of the idle bandwidths is greater than or equal to the playback bit rate, network parameters of multiple network connections between the terminal device and the multiple multimedia servers are obtained.
[0138] According to one or more embodiments of the present disclosure, the data transmission device further includes a third determination module 105, and the third determination module 105 is used to:
[0139] The one or more target network connections are determined from the multiple network connections based on a round trip delay and / or a packet loss rate of each network connection from the multiple network connections.
[0140] According to one or more embodiments of the present disclosure, the third determination module 105 is specifically configured to:
[0141] Determine the network connection with the smallest round-trip delay as the one or more target network connections;
[0142] or,
[0143] Determine the network connection with the smallest packet loss rate as the one or more target network connections;
[0144] or,
[0145] Based on the round-trip delay and the packet loss rate of each network connection, the duration corresponding to each network connection is determined, and one or more network connections corresponding to the smallest duration among the multiple durations corresponding to the multiple network connections are determined as the one or more target network connections.
[0146] According to one or more embodiments of the present disclosure, the sending module 104 is specifically configured to:
[0147] Acquire the data volume of each multimedia data packet transmitted by the multimedia server;
[0148] Determining the amount of data requested by the terminal device based on the duration threshold, the remaining playback duration, the playback bit rate of the multimedia data, and the amount of data of the data packet;
[0149] Based on the data quantity, an identifier of the target multimedia data is determined in the multimedia data not received by the terminal device, and the redundant data request is sent to the multimedia server.
[0150] The data transmission device provided in the embodiment of the present disclosure may be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0151] Fig.11 This is a schematic diagram of the structure of a terminal device provided by an embodiment of the present disclosure. Fig.11 , which shows a schematic diagram of the structure of a terminal device 1100 suitable for implementing the embodiment of the present disclosure, and the terminal device 1100 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0152] like Fig.11 As shown, the terminal device 1100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 1108 to a random access memory (RAM) 1103. Various programs and data required for the operation of the terminal device 1100 are also stored in the RAM 1103. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0153] Typically, the following devices may be connected to the I / O interface 1105: input devices 1106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1108 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1109. The communication device 1109 may allow the terminal device 1100 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The terminal device 1100 is shown to have various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0154] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1109, or installed from a storage device 1108, or installed from a ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0155] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0156] The computer-readable medium may be included in the terminal device, or may exist independently without being installed in the terminal device.
[0157] The computer-readable medium carries one or more programs. When the one or more programs are executed by the terminal device, the terminal device executes the method shown in the above embodiment.
[0158] An embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the first aspect and various possible data transmission methods involved in the first aspect are implemented.
[0159] An embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, the computer program implements the first aspect and various data transmission methods that may be involved in the first aspect.
[0160] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0161] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0162] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0163] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0164] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0165] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0166] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0167] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0168] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as a terminal device, application, server or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from the user, the method of sending a prompt message to the user can be, for example, a pop-up window, in which the prompt message can be presented in text. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the terminal device. It can be understood that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation method of the present disclosure. Other methods that meet relevant laws and regulations can also be applied to the implementation method of the present disclosure.
[0169] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the relevant laws and regulations. The data may include information, parameters and messages, such as flow switching indication information.
[0170] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0171] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0172] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A data transmission method, characterized in that: include: Obtaining network parameters of multiple network connections between the terminal device and multiple multimedia servers; Determining a duration threshold based on the network parameters of the plurality of network connections, the duration threshold being a minimum duration for which the multimedia data cached by the terminal device can be played; Determining the remaining playing time of the multimedia data to be played that has been cached by the terminal device; If the remaining playback time is less than the time threshold, a redundant data request for target multimedia data is sent to a corresponding multimedia server on one or more target network connections among the multiple network connections, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data not received by the terminal device, and the redundant data request includes an identifier of the target multimedia data.
2. The method according to claim 1, characterized in that: The network parameters include round-trip delay and packet loss rate; and determining the duration threshold based on the network parameters of the multiple network connections includes: Determine the duration corresponding to each network connection based on the round-trip delay and the packet loss rate of each network connection; The duration threshold is determined based on the duration corresponding to each network connection.
3. The method according to claim 2, characterized in that The determining, based on the round-trip delay and the packet loss rate of each network connection, the duration corresponding to each network connection includes: For any network connection, determine the difference between M and the packet loss rate of the network connection, where M is a number greater than 0; The product of the reciprocal of the difference between M and the packet loss rate of the network connection and the round-trip delay of the network connection is determined as the duration corresponding to the network connection.
4. The method according to claim 3, characterized in that The determining the duration threshold based on the duration corresponding to each network connection includes: Obtain the minimum duration among multiple durations corresponding to multiple network connections; The product of the minimum duration and a preset parameter is determined as the duration threshold, and the preset parameter is a number greater than 1 and less than 5.
5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of network parameters of multiple network connections between the terminal device and the multiple multimedia servers includes: Obtaining the sum of idle bandwidths of the multiple network connections; Obtaining the playback bit rate of the multimedia data to be played; If the sum of the idle bandwidths is greater than or equal to the playback bit rate, network parameters of multiple network connections between the terminal device and the multiple multimedia servers are obtained.
6. The method according to any one of claims 1 to 4, characterized in that Before sending a redundant data request for target multimedia data to a corresponding multimedia server, the method further includes: The one or more target network connections are determined from the multiple network connections based on a round trip delay and / or a packet loss rate of each network connection from the multiple network connections.
7. The method according to claim 6, characterized in that The determining the one or more target network connections from the multiple network connections based on the round trip delay and / or packet loss rate of each network connection from the multiple network connections comprises: Determine the network connection with the smallest round-trip delay as the one or more target network connections; or, Determine the network connection with the smallest packet loss rate as the one or more target network connections; or, Based on the round-trip delay and the packet loss rate of each network connection, the duration corresponding to each network connection is determined, and one or more network connections corresponding to the smallest duration among the multiple durations corresponding to the multiple network connections are determined as the one or more target network connections.
8. The method according to any one of claims 1 to 4, characterized in that: The sending a redundant data request for target multimedia data to a corresponding multimedia server includes: Acquire the data volume of each multimedia data packet transmitted by the multimedia server; Determining the amount of data requested by the terminal device based on the duration threshold, the remaining playback duration, the playback bit rate of the multimedia data, and the amount of data of the data packet; Based on the data quantity, an identifier of the target multimedia data is determined in the multimedia data not received by the terminal device, and the redundant data request is sent to the multimedia server.
9. A data transmission device, characterized in that: It includes an acquisition module, a first determination module, a second determination module and a sending module, wherein: The acquisition module is used to acquire network parameters of multiple network connections between the terminal device and multiple multimedia servers; The first determination module is used to determine a duration threshold based on the network parameters of the multiple network connections, where the duration threshold is the minimum duration that the multimedia data cached by the terminal device can be played; The second determination module is used to determine the remaining playback time of the multimedia data to be played that has been cached by the terminal device; The sending module is used to send a redundant data request for target multimedia data to a corresponding multimedia server on one or more target network connections among the multiple network connections if the remaining playback time is less than the time threshold, wherein the target multimedia data is one or more multimedia data with the smallest sequence number among the multimedia data not received by the terminal device, and the redundant data request includes an identifier of the target multimedia data.
10. A terminal device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the data transmission method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the data transmission method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Video acceleration method, client and network element
CN104995923A
Data transmission method and device
CN110636554A
Data processing method and device, mobile terminal and computer readable storage medium
CN111741335A
Data transmission method and device, storage medium and electronic device
CN113365089A
Audio and video processing method and device and storage medium
CN114584833A
