[go: up one dir, main page]

WO2025180119A1 - Data transmission method and apparatus, and device and storage medium - Google Patents

Data transmission method and apparatus, and device and storage medium

Info

Publication number
WO2025180119A1
WO2025180119A1 PCT/CN2025/072275 CN2025072275W WO2025180119A1 WO 2025180119 A1 WO2025180119 A1 WO 2025180119A1 CN 2025072275 W CN2025072275 W CN 2025072275W WO 2025180119 A1 WO2025180119 A1 WO 2025180119A1
Authority
WO
WIPO (PCT)
Prior art keywords
redundant data
data
network path
target
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/072275
Other languages
French (fr)
Chinese (zh)
Inventor
俞贺镔
王海萍
郑高挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Publication of WO2025180119A1 publication Critical patent/WO2025180119A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/247Multipath using M:N active or standby paths

Definitions

  • the embodiments of the present disclosure relate to a data transmission method, apparatus, device, and storage medium.
  • real-time communication typically uses a single network path established between the sender and receiver to transmit media data.
  • data packet transmission is delayed or lost, it is necessary to use this network path to simultaneously transmit the media data and its redundant data to improve the success rate of data reception at the receiving end.
  • media data and redundant data are still subject to transmission delays or loss, resulting in the data being unable to be decoded in a timely manner at the receiving end, affecting the user experience.
  • the present disclosure provides a data transmission method, apparatus, device, and storage medium to achieve cross-path transmission of redundant data, thereby improving data transmission quality with lower traffic consumption and enhancing user experience.
  • an embodiment of the present disclosure provides a data transmission method, including:
  • the target media data is transmitted via the first network path, and the target redundant data is transmitted via the second network path.
  • an embodiment of the present disclosure further provides a data transmission device, including:
  • a cross-path transmission detection module configured to determine whether a redundant data cross-path transmission condition is currently satisfied based on current first network status information of the first network path and current second network status information of the second network path;
  • a redundant data determination module configured to determine target redundant data corresponding to target media data to be transmitted if a redundant data cross-path transmission condition is currently met
  • a data transmission module is configured to transmit the target media data through the first network path and transmit the target redundant data through the second network path.
  • an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
  • processors one or more processors
  • a storage device for storing one or more programs
  • the one or more processors implement the data transmission method as described in any one of the embodiments of the present disclosure.
  • an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute a data transmission method as described in any one of the embodiments of the present disclosure.
  • FIG1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure.
  • FIG2 is an exemplary diagram of a data transmission process involved in an embodiment of the present disclosure
  • FIG3 is a flow chart of another data transmission method provided by an embodiment of the present disclosure.
  • FIG4 is a schematic structural diagram of a data transmission device provided by an embodiment of the present disclosure.
  • FIG5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the term “including” and its variations are open-ended, i.e., “including but not limited to.”
  • the term “based on” means “based, at least in part, on.”
  • the term “one embodiment” means “at least one embodiment,” the term “another embodiment” means “at least one additional embodiment,” and the term “some embodiments” means “at least some embodiments.”
  • Other terms are defined in the following description.
  • Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure.
  • This embodiment of the present disclosure is applicable to the transmission of media data in real-time communication scenarios, where real-time communication scenarios may include business scenarios such as live broadcasts, remote conferences, or cloud gaming.
  • the method can be executed by a data transmission device, which can be implemented in software and/or hardware, and optionally by an electronic device, such as a mobile terminal, a PC, or a server.
  • the data transmission method specifically includes the following steps:
  • S110 Determine whether a redundant data cross-path transmission condition is currently met based on current first network status information of the first network path and current second network status information of the second network path.
  • the first network path may refer to a network transmission channel for transmitting media data.
  • the second network path may be a network transmission channel for assisting the first network path in transmitting redundant data when a problem occurs in the first network path.
  • Media data may refer to audio and video stream data that needs to be transmitted in real-time communication.
  • Redundant data may be data obtained by redundantly encoding the media data. For example, based on the forward error correction coding method (Forward Error Correction, FEC), the media data to be transmitted is redundantly encoded to obtain redundant data corresponding to the media data. Redundant data can be used as protection data for the media data, so that the receiving end can quickly recover the media data based on the redundant data.
  • FEC Forward Error Correction
  • the first network path can be used as the main path
  • the second network path can be used as the auxiliary path.
  • the first network path and the second network path are two completely different network paths.
  • the first network path is a wireless local area network path
  • the second network path is a cellular network path.
  • a wireless local area network path refers to a network path for wireless transmission via WiFi.
  • a cellular network path refers to a network path for wireless transmission via a mobile network.
  • the network speed of a wireless local area network path is high, the network access is relatively stable, and user access is generally free of charge, and the bandwidth provider pays for it. Therefore, the wireless local area network path can be used as the main path for the transmission of media data.
  • the cellular network path is provided by a communication operator and uses the user's own data network. Therefore, the user needs to pay a certain fee to use the cellular network, so the cellular network path can be used as an auxiliary path for auxiliary data transmission. In view of this, it is necessary to reduce the traffic consumption of the cellular network path while improving the quality of data transmission, thereby saving user usage costs and improving user experience.
  • the current first network status information of a first network path may refer to the network status information of the first network path during current data transmission.
  • the current first network status information can be used to characterize the network quality of the first network path during current data transmission.
  • the current first network status information may include, but is not limited to, the current first round-trip time (RTT) of the first network path.
  • RTT current first round-trip time
  • a higher current first round-trip time indicates that the current transmission delay of the first network path is greater and the network quality is poorer.
  • the current second network status information can be used to characterize the network quality of the second network path during current data transmission.
  • the current second network status information may include, but is not limited to, the current second round-trip time of the second network path.
  • the redundant data cross-path transmission condition may be a pre-set condition that must be met to allow the second network path to transmit redundant data.
  • the redundant data cross-path transmission condition may mean that the transmission quality of the second network path is higher than that of the first network path, so that the auxiliary transmission of the second network path can enhance the overall data transmission quality.
  • the current first network status information of the first network path and the current second network status information of the second network path can be obtained in real time or periodically, and the current first network status information and the current second network status information can be compared to determine whether the redundant data cross-path transmission condition is currently met.
  • step S110 may include: comparing a current first round-trip delay of the first network path with a current second round-trip delay of the second network path, and determining whether a redundant data cross-path transmission condition is currently met based on the comparison result.
  • the current second round-trip delay is less than or equal to the current first round-trip delay, it indicates that the transmission quality of the second network path is higher than the transmission quality of the first network path, and the second network path can play an enhancing role.
  • the current first round-trip delay of the first network path is added to the preset delay (for example, 50ms), and the addition result is the target round-trip delay corresponding to the first network path.
  • the target round-trip delay is compared with the current second round-trip delay of the second network path, and based on the comparison result, it is determined whether the redundant data cross-path transmission condition is currently met. For example, if the current second round-trip delay is less than or equal to the target round-trip delay, it indicates that the transmission quality of the second network path is higher than the transmission quality of the first network path or is close to the transmission quality of the first network path, and the second network path can play an enhancing role. At this time, it can be determined that the redundant data cross-path transmission condition is currently met.
  • the current second round-trip delay is greater than the target round-trip delay, it indicates that the transmission quality of the second network path is significantly lower than the transmission quality of the first network path, that is, the transmission quality of the first network path is significantly higher than the transmission quality of the second network path.
  • there is no need to perform cross-path transmission of redundant data that is, it is determined that the conditions for cross-path transmission of redundant data are not currently met.
  • the target media data may refer to the audio or video stream data to be transmitted, and the target redundant data may be used as protection data for the target media data so as to quickly restore the target media data at the receiving end.
  • the target media data to be transmitted can be redundantly encoded based on the current packet loss rate of the first network path to obtain target redundant data to be transmitted on the second network path.
  • the data volume of the target media data to be transmitted can be multiplied by the current packet loss rate of the first network path to obtain a target redundant data volume.
  • the target media data can be redundantly encoded to obtain target redundant data having the target redundant data volume.
  • the target redundant data volume is smaller than the target media data volume.
  • S130 Transmit target media data through the first network path, and transmit target redundant data through the second network path.
  • the target media data is transmitted through the first network path, and the target redundant data is transmitted through the second network path at the same time, thereby utilizing the two network paths to transmit media data and redundant data respectively, and dynamically unloading the redundant data on the first network path to the second network path for transmission, thereby improving the success rate of redundant data transmission, and thereby improving the success rate of data recovery at the receiving end.
  • the target redundant data corresponding to the target media data to be transmitted can be generated according to the original logic, and the target media data and the target redundant data can be transmitted simultaneously through the first network path without the participation of the second network path, thereby reducing the traffic consumption of the second network path.
  • two network paths are established between the sending end and the receiving end, namely the first network path and the second network path.
  • the network status of the first network path is good, no redundant data will be generated in the controller of the sending end, and the target media data to be transmitted will be sent to the first network path for transmission.
  • the controller in the sending end will generate a certain amount of target redundant data, and when it is determined that the redundant data cross-path transmission conditions are currently met, that is, when it is confirmed that the second network path can play a good data recovery role, the target redundant data will be sent to the second network path for transmission, thereby realizing cross-path transmission of redundant data.
  • the target redundant data can continue to be sent to the first network path for transmission, avoiding wasting the transmission traffic of the second network path.
  • the embodiment of the present disclosure can make full use of the robustness of the two network paths to cope with network jitter, and can also take into account traffic overhead, effectively balancing traffic consumption and data transmission quality, while saving traffic as much as possible and optimizing user experience.
  • the technical solution of the embodiment of the present disclosure determines whether a condition for cross-path transmission of redundant data is currently met based on the current first network status information of the first network path and the current second network status information of the second network path. If the condition for cross-path transmission of redundant data is currently met, target redundant data corresponding to the target media data to be transmitted is determined, the target media data is transmitted through the first network path, and the target redundant data is transmitted through the second network path, thereby dynamically offloading part of the traffic of the first network path to the second network path for transmission, realizing cross-path transmission of redundant data and improving the success rate of data reception. At the same time, a large amount of traffic on the second network path will not be consumed, thereby improving data transmission quality with lower traffic consumption and enhancing user experience.
  • the "transmitting the target redundant data through the second network path" in step S130 may include: if a target transmission code rate corresponding to the target redundant data is greater than the current network bandwidth of the second network path, determining a first transmission code rate for transmitting the redundant data through the first network path and a second transmission code rate for transmitting the redundant data through the second network path based on the target transmission code rate and the current network bandwidth; transmitting part of the redundant data in the target redundant data through the first network path at the first transmission code rate, and transmitting the remaining redundant data in the target redundant data through the second network path at the second transmission code rate.
  • the target transmission bit rate may refer to the amount of target redundant data transmitted per unit time.
  • the current network bandwidth may refer to the currently available bandwidth of the second network path.
  • the first transmission bit rate may refer to the bit rate at which the first network path transmits redundant data.
  • the second transmission bit rate may refer to the bit rate at which the second network path transmits redundant data. The sum of the first transmission bit rate and the second transmission bit rate equals the target transmission bit rate.
  • whether the second network path is capable of transmitting all redundant data can be determined by detecting whether the target transmission code rate corresponding to the target redundant data is greater than the current network bandwidth of the second network path. If the target transmission code rate corresponding to the target redundant data is greater than the current network bandwidth of the second network path, it indicates that the second network path is unable to transmit the corresponding target redundant data at the target transmission code rate. In this case, the target transmission code rates can be allocated based on the current network bandwidth to determine a first transmission code rate for transmitting redundant data on the first network path and a second transmission code rate for transmitting redundant data on the second network path.
  • the first network path In addition to transmitting the target media data, the first network path also transmits some redundant data at the first transmission code rate, and the second network path transmits the remaining redundant data at the second transmission code rate. Therefore, by using two network paths to simultaneously transmit redundant data when the transmission bandwidth of the second network path is insufficient, the success rate of redundant data transmission can be further improved, thereby ensuring the success rate of data recovery at the receiving end.
  • determining a first sending code rate for transmitting redundant data on a first network path and a second sending code rate for transmitting redundant data on a second network path based on a target sending code rate and a current network bandwidth may include: determining a difference between the target sending code rate and the current network bandwidth; determining the difference as the first sending code rate for transmitting redundant data on the first network path, and determining the current network bandwidth as the second sending code rate for transmitting redundant data on the second network path.
  • the current network bandwidth of the second network path is directly used as the second transmission bit rate for redundant data transmission on the second network path, allowing the second network path to transmit more redundant data at its maximum bandwidth capacity.
  • the difference between the target transmission bit rate and the current network bandwidth is used as the first transmission bit rate for redundant data transmission on the first network path, allowing the first network path to transmit the remaining redundant data at the first transmission bit rate, minimizing the data transmission pressure on the first network path and thereby optimizing data transmission efficiency and user experience.
  • FIG3 is a flow chart illustrating another data transmission method provided by an embodiment of the present disclosure.
  • This embodiment of the present disclosure optimizes the step of "determining target redundant data corresponding to the target media data currently to be transmitted" based on the aforementioned embodiments. Explanations of terms that are identical or corresponding to those in the aforementioned embodiments are omitted here.
  • the data transmission method specifically includes the following steps:
  • S310 Determine whether a redundant data cross-path transmission condition is currently met based on current first network status information of the first network path and current second network status information of the second network path.
  • the current playback jam information of the media data may refer to jam information that occurs when the receiving end is currently playing the media data.
  • the receiving end combines the media data and redundant data belonging to the same stream received from the first network path and the second network path for data recovery, and decodes and renders the recovered media data to enable playback of the media data.
  • the current playback jam information can be used to characterize the user's quality of experience. The greater the jamming of the currently playing media data, that is, the less smooth the media data playback, the worse the user experience quality. This embodiment can use any metric that can characterize the user experience quality to characterize the current playback jam information.
  • the current playback jam information of the media data may include: the current decoding interval between the decoding of two adjacent frames in the media data.
  • the current decoding interval may refer to the time difference between the most recently decoded frame and the decoding of the previous frame. The larger the current decoding interval, the greater the likelihood of playback jams.
  • the redundant data enhancement condition may be a pre-set condition that must be met to generate a larger amount of redundant data.
  • step S320 may include: if the redundant data cross-path transmission condition is currently met, detecting whether the current first round-trip delay of the first network path is greater than or equal to the preset delay, and whether the current decoding interval between the two adjacent frames currently decoded in the media data is greater than or equal to the preset time interval, and determining whether the redundancy enhancement condition is currently met based on the detection result.
  • the preset delay may be a preset minimum round-trip delay at which the first network path cannot transmit media data on time.
  • the preset time interval may be a preset minimum decoding interval corresponding to playback freezes that are unacceptable to the user.
  • the current first network status information is the current first round-trip delay and the current playback freeze information is the current decoding interval between the current two adjacent frames being decoded
  • it can be determined whether the redundancy enhancement condition is currently met by detecting whether the current first round-trip delay of the first network path is greater than or equal to the preset delay, and whether the current decoding interval between the current two adjacent frames being decoded in the media data is greater than or equal to the preset time interval.
  • determining whether the redundancy enhancement condition is currently met based on the detection result may include: if the current first round-trip delay of the first network path is greater than or equal to the preset delay, or the current decoding interval between the current two adjacent frames decoded in the media data is greater than or equal to the preset time interval, then determining that the redundancy enhancement condition is currently met; if the current first round-trip delay of the first network path is less than the preset delay, and the current decoding interval between the current two adjacent frames decoded in the media data is less than the preset time interval, then determining that the redundancy enhancement condition is not currently met.
  • the current first round-trip delay of the first network path is greater than or equal to the preset delay (for example, 500ms)
  • the preset delay for example, 500ms
  • the current decoding interval between the two adjacent frames in the media data is greater than or equal to the preset time interval (for example, 1000ms)
  • the preset time interval for example, 1000ms
  • the current decoding interval between two adjacent frames in the media data is obtained by parsing a feedback message sent by the receiving end.
  • the receiving end can calculate the time difference between the currently decoded frame and the previous frame decoded. This time difference is the current decoding interval between the two adjacent frames being decoded, thereby obtaining the current decoding interval in real time. Based on the current decoding interval, the receiving end can generate a feedback message containing the current decoding interval.
  • the message type of the feedback message can be, but is not limited to, the RTCP (RTP Control Protocol) network transmission protocol type.
  • the receiving end can actively send the generated feedback message to the sending end at regular intervals (for example, every 200ms), thereby achieving active transmission of the feedback message.
  • the receiving end can also generate and send a corresponding feedback message upon receiving a request message sent by the sending end, thereby achieving passive transmission of the feedback message.
  • the sending end parses the feedback message to obtain the current decoding interval in the feedback message, allowing the sending end to accurately understand the media data playback jamming situation at the receiving end.
  • the receiving end can send the feedback message to the sending end through the first network path, or send the feedback message to the sending end through the second network path. It can be fixedly selected based on business needs or dynamically selected based on network status.
  • S330 Determine target redundant data corresponding to the target media data to be transmitted based on whether a redundant data enhancement condition is currently satisfied.
  • target redundant data corresponding to the target media data can be generated using the original redundant method. If the redundant data enhancement conditions are currently met, the redundant data generated using the original redundant method can be enhanced to generate enhanced target redundant data. The amount of enhanced target redundant data is greater than that generated using the original redundant method. By generating more target redundant data, the image can be fully restored even in extremely weak network conditions.
  • step S330 may include: if the redundant data enhancement condition is currently met, determining target redundant data equal to the target media data currently to be transmitted; if the redundant data enhancement condition is currently not met, determining target redundant data corresponding to the target media data currently to be transmitted based on the current packet loss rate of the first network path.
  • target redundant data equal to the target media data currently to be transmitted is determined, so that the amount of the generated target redundant data is equal to the amount of the target media data. If the redundant data enhancement condition is currently not satisfied, the amount of the target media data currently to be transmitted may be multiplied by the current packet loss rate of the first network path to obtain a target redundant data amount. Based on the target redundant data amount, the target media data is redundantly encoded to obtain target redundant data having the target redundant data amount. In this case, the amount of the generated target redundant data is less than the amount of the target media data.
  • target redundant data equal to the target media data is determined and sent. Even if all the media data transmitted by the first network path is lost, as long as the target redundant data is successfully transmitted, the receiving end can still recover, decode, render and play the media data, thereby ensuring that the data can be recovered at the receiving end, and improving the data recovery efficiency and success rate when the first network path is in poor condition.
  • target redundant data equal to the target media data currently to be transmitted is determined, including: if the number of times the redundant data enhancement condition is met within the current time window is greater than or equal to a preset number, target redundant data equal to the target media data currently to be transmitted is determined within a preset time length, so as to continuously send the target redundant amount within the preset time length.
  • the current time window can be a sliding time window with a preset window length.
  • the preset window length can be 3 seconds.
  • redundant enhancement can be continuously turned on within a preset time length (for example, 2 seconds), that is, target redundant data equal to the target media data is always sent within the preset time length, thereby ensuring that the second network path is continuously used for redundant enhancement when the network status of the first network path is poor.
  • a preset time length for example, 2 seconds
  • the embodiments of the present disclosure enable redundant enhancement for a preset duration when the redundant data enhancement conditions are met a number of times greater than or equal to a preset number within the current time window. This avoids repeated playback jams and effectively improves the user experience.
  • target redundant data equal to the target media data to be transmitted can be directly determined and sent.
  • S340 Transmit target media data through the first network path, and transmit target redundant data through the second network path.
  • the technical solution of the embodiment of the present disclosure determines whether the redundant data enhancement condition is currently met based on at least one of the current first network status information of the first network path and the current playback jamming information of the media data. Based on whether the redundant data enhancement condition is currently met, more suitable target redundant data can be determined, thereby ensuring that the data can be recovered at the receiving end, and improving the data recovery efficiency and success rate when the first network path is in poor condition.
  • FIG4 is a schematic structural diagram of a data transmission device provided by an embodiment of the present disclosure. As shown in FIG4 , the device specifically includes: a cross-path transmission detection module 410 , a redundant data determination module 420 and a data transmission module 430 .
  • the cross-path transmission detection module 410 is used to determine whether the redundant data cross-path transmission condition is currently met based on the current first network status information of the first network path and the current second network status information of the second network path; the redundant data determination module 420 is used to determine the target redundant data corresponding to the target media data currently to be transmitted if the redundant data cross-path transmission condition is currently met; and the data transmission module 430 is used to transmit the target media data through the first network path and transmit the target redundant data through the second network path.
  • the technical solution provided by the embodiments of the present disclosure determines whether a condition for cross-path transmission of redundant data is currently met based on current first network status information of the first network path and current second network status information of the second network path. If the condition for cross-path transmission of redundant data is currently met, target redundant data corresponding to the target media data to be transmitted is determined, the target media data is transmitted through the first network path, and the target redundant data is transmitted through the second network path, thereby dynamically offloading part of the traffic of the first network path to the second network path for transmission, achieving cross-path transmission of redundant data and improving the success rate of data reception without consuming a large amount of traffic on the second network path. This improves data transmission quality with lower traffic consumption and enhances user experience.
  • the cross-path transmission detection module 410 is specifically used to compare the current first round-trip delay of the first network path with the current second round-trip delay of the second network path, and determine whether the redundant data cross-path transmission condition is currently met based on the comparison result.
  • the redundant data determination module 420 includes:
  • a redundant data enhancement detection unit configured to determine whether a redundant data enhancement condition is currently met based on at least one of current first network state information of the first network path and current playback freeze information of the media data;
  • the redundant data determining unit is configured to determine target redundant data corresponding to the target media data to be transmitted based on whether a redundant data enhancement condition is currently satisfied.
  • the redundant data enhancement detection unit is specifically used to:
  • the current decoding interval between two adjacent frames in the media data is obtained by parsing the feedback message sent by the receiving end.
  • the redundant data determination unit includes:
  • a first determining subunit is configured to determine target redundant data equal to the target media data to be currently transmitted if a redundant data enhancement condition is currently satisfied;
  • the second determining subunit is configured to determine target redundant data corresponding to the target media data to be transmitted based on the current packet loss rate of the first network path if the redundant data enhancement condition is not currently met.
  • the first determining subunit is specifically configured to:
  • target redundant data equal to the target media data to be transmitted is determined within the preset duration, so as to continuously send the target redundant amount within the preset duration.
  • the data transmission module 430 includes:
  • a transmission code rate determining unit configured to determine, if a target transmission code rate corresponding to the target redundant data is greater than a current network bandwidth of the second network path, a first transmission code rate for transmitting the redundant data through the first network path and a second transmission code rate for transmitting the redundant data through the second network path based on the target transmission code rate and the current network bandwidth;
  • the redundant data transmission unit is configured to transmit part of the target redundant data at a first transmission code rate through the first network path, and transmit the remaining redundant data in the target redundant data at the second transmission code rate through the second network path.
  • the sending code rate determination unit is specifically configured to:
  • the first network path is a wireless local area network path
  • the second network path is a cellular network path
  • the data transmission device provided in the embodiments of the present disclosure can execute the data transmission method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
  • FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
  • a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG5 ) 500 suitable for implementing an embodiment of the present disclosure is shown below.
  • the terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG5 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503.
  • ROM read-only memory
  • RAM random access memory
  • Various programs and data required for the operation of electronic device 500 are also stored in RAM 503.
  • Processing device 501, ROM 502, and RAM 503 are connected to each other via a bus 504.
  • An input/output (I/O) interface 505 is also connected to bus 504.
  • the following devices may be connected to the I/O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data.
  • FIG5 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart.
  • the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
  • the electronic device provided by the embodiment of the present disclosure and the data transmission method provided by the above embodiment belong to the same inventive concept.
  • An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon.
  • the program is executed by a processor, the data transmission method provided by the above embodiment is implemented.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • a computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above.
  • 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.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
  • the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network).
  • HTTP HyperText Transfer Protocol
  • Examples of communication networks include a local area network ("LAN”), a wide area network ("WAN”), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
  • the computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device is caused to: determine whether a condition for cross-path transmission of redundant data is currently met based on current first network status information of the first network path and current second network status information of the second network path; if the condition for cross-path transmission of redundant data is currently met, determine target redundant data corresponding to target media data currently to be transmitted; transmit the target media data via the first network path, and transmit the target redundant data via the second network path.
  • 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, but not limited to, 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 a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through 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., through the Internet using an Internet service provider).
  • LAN local area network
  • WAN wide area network
  • Internet service provider e.g., AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function.
  • the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two 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.
  • each box in the block diagram and/or flowchart, and the combination of the boxes in the block diagram and/or flowchart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in this disclosure may be implemented in software or hardware.
  • the name of a unit does not limit the unit itself.
  • the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses.”
  • exemplary types of hardware logic components include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
  • FPGAs field programmable gate arrays
  • ASICs application specific integrated circuits
  • ASSPs application specific standard products
  • SOCs systems on chip
  • CPLDs complex programmable logic devices
  • a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment.
  • a machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium can 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 can 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.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM portable compact disk read-only memory
  • CD-ROM compact disk read-only memory
  • magnetic storage device or any suitable combination of the foregoing.
  • Example 1 provides a data transmission method, including:
  • the target media data is transmitted via the first network path, and the target redundant data is transmitted via the second network path.
  • Example 2 provides a data transmission method, further comprising:
  • the determining whether a redundant data cross-path transmission condition is currently met based on the current first network state information of the first network path and the current second network state information of the second network path includes:
  • the current first round-trip delay of the first network path is compared with the current second round-trip delay of the second network path, and based on the comparison result, it is determined whether a redundant data cross-path transmission condition is currently met.
  • Example 3 provides a data transmission method, further comprising:
  • determining target redundant data corresponding to target media data currently to be transmitted includes:
  • target redundant data corresponding to the target media data to be transmitted is determined.
  • Example 4 provides a data transmission method, further comprising:
  • the determining whether the redundancy enhancement condition is currently met based on at least one of the current first network state information of the first network path and the current playback freeze information of the media data includes:
  • the current decoding interval between two adjacent frames in the media data is obtained by parsing the feedback message sent by the receiving end.
  • Example 5 provides a data transmission method, further comprising:
  • determining target redundant data corresponding to the target media data to be transmitted based on whether a redundant data enhancement condition is currently satisfied includes:
  • target redundant data corresponding to the target media data to be transmitted is determined based on the current packet loss rate of the first network path.
  • Example 6 provides a data transmission method, further comprising:
  • determining target redundant data equal to the target media data currently to be transmitted includes:
  • target redundant data equal to the target media data to be transmitted is determined within the preset duration, so as to continuously send the target redundant amount within the preset duration.
  • Example 7 provides a data transmission method, further comprising:
  • transmitting the target redundant data through the second network path includes:
  • a target sending code rate corresponding to the target redundant data is greater than a current network bandwidth of the second network path, determining a first sending code rate for transmitting the redundant data through the first network path and a second sending code rate for transmitting the redundant data through the second network path based on the target sending code rate and the current network bandwidth;
  • Part of the target redundant data is sent at a first sending code rate through the first network path, and the remaining redundant data in the target redundant data is sent at the second sending code rate through the second network path.
  • Example 8 provides a data transmission method, further comprising:
  • determining, based on the target sending code rate and the current network bandwidth, a first sending code rate for transmitting redundant data over the first network path and a second sending code rate for transmitting redundant data over the second network path includes:
  • the difference is determined as a first sending code rate for transmitting redundant data over the first network path, and the current network bandwidth is determined as a second sending code rate for transmitting redundant data over the second network path.
  • Example 9 provides a data transmission method, further comprising:
  • the first network path is a wireless local area network path
  • the second network path is a cellular network path.
  • Example 10 provides a data transmission device, including:
  • a cross-path transmission detection module configured to determine whether a redundant data cross-path transmission condition is currently satisfied based on current first network status information of the first network path and current second network status information of the second network path;
  • a redundant data determination module configured to determine target redundant data corresponding to target media data to be transmitted if a redundant data cross-path transmission condition is currently met
  • a data transmission module is configured to transmit the target media data through the first network path and transmit the target redundant data through the second network path.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided in the embodiments of the present disclosure are a data transmission method and apparatus, and a device and a storage medium. The data transmission method comprises: on the basis of the current first network state information of a first network path and the current second network state information of a second network path, determining whether a redundant-data cross-path transmission condition is currently met; if the redundant-data cross-path transmission condition is currently met, determining target redundant data corresponding to the current target media data to be transmitted; and transmitting the target media data by means of the first network path, and then transmitting the target redundant data by means of the second network path. By means of the technical solution in the embodiments of the present disclosure, the cross-path transmission of redundant data can be realized, such that the data transmission quality is improved with a low traffic consumption, thereby improving the user experience.

Description

数据传输方法、装置、设备和存储介质Data transmission method, device, equipment and storage medium

本申请要求于2024年2月28日递交的中国专利申请第202410224497.9号的优先权,在此全文引用上述中国专利申请公开的内容以作为本申请的一部分。This application claims priority to Chinese Patent Application No. 202410224497.9 filed on February 28, 2024, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application.

技术领域Technical Field

本公开实施例涉及一种数据传输方法、装置、设备和存储介质。The embodiments of the present disclosure relate to a data transmission method, apparatus, device, and storage medium.

背景技术Background Art

随着计算机技术的快速发展,往往需要对媒体数据进行实时传输,以实现实时通信。目前,在实时通信中通常是利用发送端与接收端之间建立的单个网络路径,对媒体数据进行传输,并且在出现数据包传输延迟或者丢失等情况时,需要利用该网络路径同时传输媒体数据和媒体数据的冗余数据,以便提高数据在接收端的接收成功率。然而,这种传输方式在单个网络路径出现问题时,媒体数据和冗余数据仍然会面临传输延迟或者丢失的情况,从而导致数据在接收端无法及时被解码,影响了用户体验。With the rapid development of computer technology, real-time transmission of media data is often required to achieve real-time communication. Currently, real-time communication typically uses a single network path established between the sender and receiver to transmit media data. When data packet transmission is delayed or lost, it is necessary to use this network path to simultaneously transmit the media data and its redundant data to improve the success rate of data reception at the receiving end. However, when problems arise with this single network path, media data and redundant data are still subject to transmission delays or loss, resulting in the data being unable to be decoded in a timely manner at the receiving end, affecting the user experience.

发明内容Summary of the Invention

本公开提供一种数据传输方法、装置、设备和存储介质,以实现冗余数据的跨路径传输,以较低的流量消耗提高数据传输质量,从而提升了用户体验。The present disclosure provides a data transmission method, apparatus, device, and storage medium to achieve cross-path transmission of redundant data, thereby improving data transmission quality with lower traffic consumption and enhancing user experience.

第一方面,本公开实施例提供了一种数据传输方法,包括:In a first aspect, an embodiment of the present disclosure provides a data transmission method, including:

基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;determining whether a redundant data cross-path transmission condition is currently met based on current first network state information of the first network path and current second network state information of the second network path;

若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;If the redundant data cross-path transmission condition is currently met, determining the target redundant data corresponding to the target media data to be transmitted;

通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。The target media data is transmitted via the first network path, and the target redundant data is transmitted via the second network path.

第二方面,本公开实施例还提供了一种数据传输装置,包括:In a second aspect, an embodiment of the present disclosure further provides a data transmission device, including:

跨路径传输检测模块,用于基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;a cross-path transmission detection module, configured to determine whether a redundant data cross-path transmission condition is currently satisfied based on current first network status information of the first network path and current second network status information of the second network path;

冗余数据确定模块,用于若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;a redundant data determination module, configured to determine target redundant data corresponding to target media data to be transmitted if a redundant data cross-path transmission condition is currently met;

数据传输模块,用于通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。A data transmission module is configured to transmit the target media data through the first network path and transmit the target redundant data through the second network path.

第三方面,本公开实施例还提供了一种电子设备,电子设备包括:In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,

当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如本公开实施例任一的数据传输方法。When one or more programs are executed by one or more processors, the one or more processors implement the data transmission method as described in any one of the embodiments of the present disclosure.

第四方面,本公开实施例还提供了一种包含计算机可执行指令的存储介质,计算机可执行指令在由计算机处理器执行时用于执行如本公开实施例任一的数据传输方法。In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute a data transmission method as described in any one of the embodiments of the present disclosure.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

图1是本公开实施例所提供的一种数据传输方法的流程示意图;FIG1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure;

图2是本公开实施例所涉及的一种数据传输过程的示例图;FIG2 is an exemplary diagram of a data transmission process involved in an embodiment of the present disclosure;

图3是本公开实施例所提供的另一种数据传输方法的流程示意图;FIG3 is a flow chart of another data transmission method provided by an embodiment of the present disclosure;

图4是本公开实施例所提供的一种数据传输装置的结构示意图;以及FIG4 is a schematic structural diagram of a data transmission device provided by an embodiment of the present disclosure; and

图5是本公开实施例所提供的一种电子设备的结构示意图。FIG5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" 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, they should be understood as "one or more".

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。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.

可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获取或使用)应当遵循相应法律法规及相关规定的要求。It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

图1为本公开实施例所提供的一种数据传输方法的流程示意图,本公开实施例适用于实时通信场景中传输媒体数据的情况,其中,实时通信场景可以包括直播、远程会议或者云游戏等业务场景。该方法可以由数据传输装置来执行,该装置可以通过软件和/或硬件的形式实现,可选的,通过电子设备来实现,该电子设备可以是移动终端、PC端或服务器等。Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present disclosure. This embodiment of the present disclosure is applicable to the transmission of media data in real-time communication scenarios, where real-time communication scenarios may include business scenarios such as live broadcasts, remote conferences, or cloud gaming. The method can be executed by a data transmission device, which can be implemented in software and/or hardware, and optionally by an electronic device, such as a mobile terminal, a PC, or a server.

如图1所示,数据传输方法具体包括以下步骤:As shown in FIG1 , the data transmission method specifically includes the following steps:

S110、基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件。S110 : Determine whether a redundant data cross-path transmission condition is currently met based on current first network status information of the first network path and current second network status information of the second network path.

其中,第一网络路径可以是指用于传输媒体数据的网络传输通道。第二网络路径可以是用于在第一网络路径出现问题时辅助第一网络路径传输冗余数据的网络传输通道。媒体数据可以是指实时通信中需要传输的音视频流数据。冗余数据可以是通过对媒体数据进行冗余编码获得的数据。例如,基于前向纠错编码方式(Forward Error Correction,FEC),对待传输的媒体数据进行冗余编码,获得媒体数据对应的冗余数据。冗余数据可以作为媒体数据的保护数据,以使接收端基于冗余数据可以快速地恢复出媒体数据。Among them, the first network path may refer to a network transmission channel for transmitting media data. The second network path may be a network transmission channel for assisting the first network path in transmitting redundant data when a problem occurs in the first network path. Media data may refer to audio and video stream data that needs to be transmitted in real-time communication. Redundant data may be data obtained by redundantly encoding the media data. For example, based on the forward error correction coding method (Forward Error Correction, FEC), the media data to be transmitted is redundantly encoded to obtain redundant data corresponding to the media data. Redundant data can be used as protection data for the media data, so that the receiving end can quickly recover the media data based on the redundant data.

本实施例中的第一网络路径可以作为主路径,第二网络路径作为辅路径。第一网络路径和第二网络路径是完全不相同的两条网络路径。例如,第一网络路径为无线局域网络路径,第二网络路径为蜂窝网络路径。无线局域网络路径是指通过WiFi方式进行无线传输的网络路径。蜂窝网络路径是指通过移动网络进行无线传输的网络路径。通常,无线局域网络路径的网速较高,网络接入较为稳定,并且用户接入一般不收取费用,由带宽提供者付费,从而可以将无线局域网络路径作为主路径进行媒体数据的传输。蜂窝网络路径是由通信运营商提供,使用的是用户自己的数据网络,从而用户使用蜂窝网络需要收取一定的费用,从而可以将蜂窝网络路径作为辅路径进行数据的辅助传输。针对于此,需要在提高数据传输质量的同时降低蜂窝网络路径的流量消耗,进而节省用户使用成本,提高用户体验。In this embodiment, the first network path can be used as the main path, and the second network path can be used as the auxiliary path. The first network path and the second network path are two completely different network paths. For example, the first network path is a wireless local area network path, and the second network path is a cellular network path. A wireless local area network path refers to a network path for wireless transmission via WiFi. A cellular network path refers to a network path for wireless transmission via a mobile network. Generally, the network speed of a wireless local area network path is high, the network access is relatively stable, and user access is generally free of charge, and the bandwidth provider pays for it. Therefore, the wireless local area network path can be used as the main path for the transmission of media data. The cellular network path is provided by a communication operator and uses the user's own data network. Therefore, the user needs to pay a certain fee to use the cellular network, so the cellular network path can be used as an auxiliary path for auxiliary data transmission. In view of this, it is necessary to reduce the traffic consumption of the cellular network path while improving the quality of data transmission, thereby saving user usage costs and improving user experience.

第一网络路径的当前第一网络状态信息可以是指第一网络路径当前传输数据时的网络状态信息。当前第一网络状态信息可以用于表征第一网络路径当前传输数据时的网络质量情况。例如,当前第一网络状态信息可以包括但不限于:第一网络路径的当前第一往返延时(Round-Trip Time,RTT)。当前第一往返延时越高,则表明第一网络路径的当前传输延时较大,网络质量较差。同理,当前第二网络状态信息可以用于表征第二网络路径当前传输数据时的网络质量情况。例如,当前第二网络状态信息可以包括但不限于:第二网络路径的当前第二往返延时。当前第二往返延时越高,则表明第二网络路径的当前传输延时较大,网络质量较差。冗余数据跨路径传输条件可以是预先设置的,允许第二网络路径传输冗余数据所需要满足的条件。例如,冗余数据跨路径传输条件可以是指第二网络路径的传输质量高于第一网络路径的传输质量,以使第二网络路径的辅助传输可以起到增强作用,从而提高整体数据的传输质量。The current first network status information of a first network path may refer to the network status information of the first network path during current data transmission. The current first network status information can be used to characterize the network quality of the first network path during current data transmission. For example, the current first network status information may include, but is not limited to, the current first round-trip time (RTT) of the first network path. A higher current first round-trip time indicates that the current transmission delay of the first network path is greater and the network quality is poorer. Similarly, the current second network status information can be used to characterize the network quality of the second network path during current data transmission. For example, the current second network status information may include, but is not limited to, the current second round-trip time of the second network path. A higher current second round-trip time indicates that the current transmission delay of the second network path is greater and the network quality is poorer. The redundant data cross-path transmission condition may be a pre-set condition that must be met to allow the second network path to transmit redundant data. For example, the redundant data cross-path transmission condition may mean that the transmission quality of the second network path is higher than that of the first network path, so that the auxiliary transmission of the second network path can enhance the overall data transmission quality.

具体地,可以实时或者周期性地获取第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,并将当前第一网络状态信息和当前第二网络状态信息进行比较,确定当前是否满足冗余数据跨路径传输条件。Specifically, the current first network status information of the first network path and the current second network status information of the second network path can be obtained in real time or periodically, and the current first network status information and the current second network status information can be compared to determine whether the redundant data cross-path transmission condition is currently met.

示例性地,步骤S110可以包括:将第一网络路径的当前第一往返延时与第二网络路径的当前第二往返延时进行比较,并基于比较结果确定当前是否满足冗余数据跨路径传输条件。Exemplarily, step S110 may include: comparing a current first round-trip delay of the first network path with a current second round-trip delay of the second network path, and determining whether a redundant data cross-path transmission condition is currently met based on the comparison result.

具体地,若当前第二往返延时小于或等于当前第一往返延时,则表明第二网络路径的传输质量高于第一网络路径的传输质量,第二网络路径能够起到增强作用,此时可以确定当前满足冗余数据跨路径传输条件,否则确定当前不满足冗余数据跨路径传输条件。或者,将第一网络路径的当前第一往返延时与预设时延(比如50ms)进行相加,获得的相加结果为第一网络路径对应的目标往返延时。将目标往返延时与第二网络路径的当前第二往返延时进行比较,并基于比较结果确定当前是否满足冗余数据跨路径传输条件。例如,若当前第二往返延时小于或等于目标往返延时,则表明第二网络路径的传输质量高于第一网络路径的传输质量或者与第一网络路径的传输质量相接近,第二网络路径能够起到增强作用,此时可以确定当前满足冗余数据跨路径传输条件。若当前第二往返延时大于目标往返延时,则表明第二网络路径的传输质量明显低于第二网络路径的传输质量,也就是第一网络路径的传输质量明显高于第二网络路径的传输质量,此时无需进行冗余数据的跨路径传输,即确定当前不满足冗余数据跨路径传输条件。Specifically, if the current second round-trip delay is less than or equal to the current first round-trip delay, it indicates that the transmission quality of the second network path is higher than the transmission quality of the first network path, and the second network path can play an enhancing role. At this time, it can be determined that the redundant data cross-path transmission condition is currently met, otherwise it is determined that the redundant data cross-path transmission condition is not currently met. Alternatively, the current first round-trip delay of the first network path is added to the preset delay (for example, 50ms), and the addition result is the target round-trip delay corresponding to the first network path. The target round-trip delay is compared with the current second round-trip delay of the second network path, and based on the comparison result, it is determined whether the redundant data cross-path transmission condition is currently met. For example, if the current second round-trip delay is less than or equal to the target round-trip delay, it indicates that the transmission quality of the second network path is higher than the transmission quality of the first network path or is close to the transmission quality of the first network path, and the second network path can play an enhancing role. At this time, it can be determined that the redundant data cross-path transmission condition is currently met. If the current second round-trip delay is greater than the target round-trip delay, it indicates that the transmission quality of the second network path is significantly lower than the transmission quality of the first network path, that is, the transmission quality of the first network path is significantly higher than the transmission quality of the second network path. At this time, there is no need to perform cross-path transmission of redundant data, that is, it is determined that the conditions for cross-path transmission of redundant data are not currently met.

S120、若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据。S120: If the redundant data cross-path transmission condition is currently met, determine the target redundant data corresponding to the target media data to be transmitted.

其中,目标媒体数据可以是指当前待传输的音视频流数据。目标冗余数据可以作为目标媒体数据的保护数据,用于在接收端可以快速恢复出目标媒体数据。The target media data may refer to the audio or video stream data to be transmitted, and the target redundant data may be used as protection data for the target media data so as to quickly restore the target media data at the receiving end.

具体地,在确定当前满足冗余数据跨路径传输条件时,可以基于第一网络路径的当前丢包率,对当前待传输的目标媒体数据进行冗余编码,获得第二网络路径待传输的目标冗余数据。例如,可以将当前待传输的目标媒体数据的数据量与第一网络路径的当前丢包率进行相乘,获得目标冗余数据量,并基于目标冗余数据量,对目标媒体数据进行冗余编码,获得具有目标冗余数据量的目标冗余数据。目标冗余数据的数据量小于目标媒体数据的数据量。通过基于第一网络路径的当前丢包率可以动态生成适量的目标冗余数据,从而在保证数据传输质量的同时进一步降低第二网络路径的流量消耗。Specifically, when it is determined that the conditions for redundant data cross-path transmission are currently met, the target media data to be transmitted can be redundantly encoded based on the current packet loss rate of the first network path to obtain target redundant data to be transmitted on the second network path. For example, the data volume of the target media data to be transmitted can be multiplied by the current packet loss rate of the first network path to obtain a target redundant data volume. Based on the target redundant data volume, the target media data can be redundantly encoded to obtain target redundant data having the target redundant data volume. The target redundant data volume is smaller than the target media data volume. By dynamically generating an appropriate amount of target redundant data based on the current packet loss rate of the first network path, an appropriate amount of target redundant data can be generated, thereby further reducing traffic consumption on the second network path while ensuring data transmission quality.

S130、通过第一网络路径传输目标媒体数据,并通过第二网络路径传输目标冗余数据。S130 : Transmit target media data through the first network path, and transmit target redundant data through the second network path.

具体地,在当前满足冗余数据跨路径传输条件后,将目标媒体数据通过第一网络路径传输,同时将目标冗余数据通过第二网络路径传输,从而利用两个网络路径分别传输媒体数据和冗余数据,动态地将第一网络路径上的冗余数据卸载到第二网络路径上进行传输,提高了冗余数据传输的成功率,进而提高了数据在接收端的恢复成功率。Specifically, after the conditions for redundant data cross-path transmission are currently met, the target media data is transmitted through the first network path, and the target redundant data is transmitted through the second network path at the same time, thereby utilizing the two network paths to transmit media data and redundant data respectively, and dynamically unloading the redundant data on the first network path to the second network path for transmission, thereby improving the success rate of redundant data transmission, and thereby improving the success rate of data recovery at the receiving end.

需要说明的是,在确定当前不满足冗余数据跨路径传输条件时,表明第一网络路径的网络质量较佳,此时可以按照原有逻辑生成当前待传输的目标媒体数据对应的目标冗余数据后,通过第一网络路径同时传输目标媒体数据和目标冗余数据,无需第二网络路径的参与,从而降低了第二网络路径的流量消耗。It should be noted that when it is determined that the conditions for cross-path transmission of redundant data are not currently met, it indicates that the network quality of the first network path is better. At this time, the target redundant data corresponding to the target media data to be transmitted can be generated according to the original logic, and the target media data and the target redundant data can be transmitted simultaneously through the first network path without the participation of the second network path, thereby reducing the traffic consumption of the second network path.

示例性地,参见图2,发送端与接收端之间建立了两个网络路径,分别为第一网络路径和第二网络路径。在第一网络路径网络状态良好时,发送端的控制器中不会生成冗余数据,当前待传输的目标媒体数据都会发往第一网络路径上进行传输。当第一网络路径进行传输时出现丢包、卡顿等现象时,发送端中的控制器会生成一定量的目标冗余数据,并在确定当前满足冗余数据跨路径传输条件时,也就是确认第二网络路径能够起到良好的数据恢复作用,此时才会将目标冗余数据发往第二网络路径上进行传输,从而实现了冗余数据的跨路径传输。若确定当前不满足冗余数据跨路径传输条件,则可以继续将目标冗余数据发往第一网络路径上进行传输,避免浪费第二网络路径的传输流量。相比于单个路径传输方式,本公开实施例能够充分利用两个网络路径应对网络抖动的鲁棒性,并且还可以兼顾流量开销,有效平衡了流量消耗和数据传输质量,在尽可能节省流量的同时优化用户体验。For example, referring to FIG2 , two network paths are established between the sending end and the receiving end, namely the first network path and the second network path. When the network status of the first network path is good, no redundant data will be generated in the controller of the sending end, and the target media data to be transmitted will be sent to the first network path for transmission. When packet loss, freezing, etc. occur during transmission on the first network path, the controller in the sending end will generate a certain amount of target redundant data, and when it is determined that the redundant data cross-path transmission conditions are currently met, that is, when it is confirmed that the second network path can play a good data recovery role, the target redundant data will be sent to the second network path for transmission, thereby realizing cross-path transmission of redundant data. If it is determined that the redundant data cross-path transmission conditions are not currently met, the target redundant data can continue to be sent to the first network path for transmission, avoiding wasting the transmission traffic of the second network path. Compared with the single path transmission method, the embodiment of the present disclosure can make full use of the robustness of the two network paths to cope with network jitter, and can also take into account traffic overhead, effectively balancing traffic consumption and data transmission quality, while saving traffic as much as possible and optimizing user experience.

本公开实施例的技术方案,通过基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件,若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据,通过第一网络路径传输目标媒体数据,并通过第二网络路径传输目标冗余数据,从而将第一网络路径的部分流量动态卸载到第二网络路径上进行传输,实现了冗余数据的跨路径传输,提高了数据接收的成功率,同时也不会消耗大量第二网络路径上的流量,进而以较低的流量消耗提高了数据传输质量,提升了用户体验。The technical solution of the embodiment of the present disclosure determines whether a condition for cross-path transmission of redundant data is currently met based on the current first network status information of the first network path and the current second network status information of the second network path. If the condition for cross-path transmission of redundant data is currently met, target redundant data corresponding to the target media data to be transmitted is determined, the target media data is transmitted through the first network path, and the target redundant data is transmitted through the second network path, thereby dynamically offloading part of the traffic of the first network path to the second network path for transmission, realizing cross-path transmission of redundant data and improving the success rate of data reception. At the same time, a large amount of traffic on the second network path will not be consumed, thereby improving data transmission quality with lower traffic consumption and enhancing user experience.

在上述技术方案的基础上,作为一种可选方式,步骤S130中的“通过第二网络路径传输目标冗余数据”可以包括:若目标冗余数据对应的目标发送码率大于第二网络路径的当前网络带宽,则基于目标发送码率和当前网络带宽确定第一网络路径传输冗余数据的第一发送码率和第二网络路径传输冗余数据的第二发送码率;通过第一网络路径以第一发送码率发送目标冗余数据中的部分冗余数据,并通过第二网络路径以第二发送码率发送目标冗余数据中的剩余冗余数据。Based on the above technical solution, as an optional method, the "transmitting the target redundant data through the second network path" in step S130 may include: if a target transmission code rate corresponding to the target redundant data is greater than the current network bandwidth of the second network path, determining a first transmission code rate for transmitting the redundant data through the first network path and a second transmission code rate for transmitting the redundant data through the second network path based on the target transmission code rate and the current network bandwidth; transmitting part of the redundant data in the target redundant data through the first network path at the first transmission code rate, and transmitting the remaining redundant data in the target redundant data through the second network path at the second transmission code rate.

其中,目标发送码率可以是指单位时间内传输的目标冗余数据的数据量。当前网络带宽可以是指第二网络路径当前时刻下的可用带宽。第一发送码率可以是指第一网络路径发送冗余数据的码率。第二发送码率可以是指第二网络路径发送冗余数据的码率。第一发送码率与第二发送码率之和等于目标发送码率。The target transmission bit rate may refer to the amount of target redundant data transmitted per unit time. The current network bandwidth may refer to the currently available bandwidth of the second network path. The first transmission bit rate may refer to the bit rate at which the first network path transmits redundant data. The second transmission bit rate may refer to the bit rate at which the second network path transmits redundant data. The sum of the first transmission bit rate and the second transmission bit rate equals the target transmission bit rate.

具体地,可以通过检测目标冗余数据对应的目标发送码率是否大于第二网络路径的当前网络带宽,确定第二网络路径是否有能力传输所有的冗余数据。若目标冗余数据对应的目标发送码率大于第二网络路径的当前网络带宽,则表明第二网络路径无法以目标发送码率发送相应的目标冗余数据,此时可以基于当前网络带宽,对目标发送码率进行分配,确定第一网络路径传输冗余数据的第一发送码率和第二网络路径传输冗余数据的第二发送码率。第一网络路径除了发送目标媒体数据之外,还以第一发送码率发送部分冗余数据,第二网络路径以第二发送码率发送剩余冗余数据,从而通过在第二网络路径传输带宽不足时,利用两个网络路径同时发送冗余数据,可以进一步提高冗余数据传输的成功率,进而保证数据在接收端的恢复成功率。Specifically, whether the second network path is capable of transmitting all redundant data can be determined by detecting whether the target transmission code rate corresponding to the target redundant data is greater than the current network bandwidth of the second network path. If the target transmission code rate corresponding to the target redundant data is greater than the current network bandwidth of the second network path, it indicates that the second network path is unable to transmit the corresponding target redundant data at the target transmission code rate. In this case, the target transmission code rates can be allocated based on the current network bandwidth to determine a first transmission code rate for transmitting redundant data on the first network path and a second transmission code rate for transmitting redundant data on the second network path. In addition to transmitting the target media data, the first network path also transmits some redundant data at the first transmission code rate, and the second network path transmits the remaining redundant data at the second transmission code rate. Therefore, by using two network paths to simultaneously transmit redundant data when the transmission bandwidth of the second network path is insufficient, the success rate of redundant data transmission can be further improved, thereby ensuring the success rate of data recovery at the receiving end.

示例性地,基于目标发送码率和当前网络带宽确定第一网络路径传输冗余数据的第一发送码率和第二网络路径传输冗余数据的第二发送码率,可以包括:确定目标发送码率与当前网络带宽之间的差值;将差值确定为第一网络路径传输冗余数据的第一发送码率,并将当前网络带宽确定为第二网络路径传输冗余数据的第二发送码率。Exemplarily, determining a first sending code rate for transmitting redundant data on a first network path and a second sending code rate for transmitting redundant data on a second network path based on a target sending code rate and a current network bandwidth may include: determining a difference between the target sending code rate and the current network bandwidth; determining the difference as the first sending code rate for transmitting redundant data on the first network path, and determining the current network bandwidth as the second sending code rate for transmitting redundant data on the second network path.

具体地,以第二网络路径的当前网络带宽直接作为第二网络路径传输冗余数据的第二发送码率,使得第二网络路径以最大带宽能力传输更多的冗余数据。将目标发送码率与当前网络带宽之间的差值作为第一网络路径传输冗余数据的第一发送码率,使得第一网络路径以第一发送码率传输剩余的冗余数据,尽可能地降低第一网络路径的数据传输压力,从而优化了数据传输效率和用户体验。Specifically, the current network bandwidth of the second network path is directly used as the second transmission bit rate for redundant data transmission on the second network path, allowing the second network path to transmit more redundant data at its maximum bandwidth capacity. The difference between the target transmission bit rate and the current network bandwidth is used as the first transmission bit rate for redundant data transmission on the first network path, allowing the first network path to transmit the remaining redundant data at the first transmission bit rate, minimizing the data transmission pressure on the first network path and thereby optimizing data transmission efficiency and user experience.

图3为本公开实施例所提供的另一种数据传输方法的流程示意图,本公开实施例在上述公开实施例的基础上,对步骤“确定当前待传输的目标媒体数据对应的目标冗余数据”进行了优化。其中与上述各公开实施例相同或相应的术语的解释在此不再赘述。FIG3 is a flow chart illustrating another data transmission method provided by an embodiment of the present disclosure. This embodiment of the present disclosure optimizes the step of "determining target redundant data corresponding to the target media data currently to be transmitted" based on the aforementioned embodiments. Explanations of terms that are identical or corresponding to those in the aforementioned embodiments are omitted here.

如图3所示,数据传输方法具体包括以下步骤:As shown in FIG3 , the data transmission method specifically includes the following steps:

S310、基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件。S310: Determine whether a redundant data cross-path transmission condition is currently met based on current first network status information of the first network path and current second network status information of the second network path.

S320、若当前满足冗余数据跨路径传输条件,则基于第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余数据增强条件。S320: If the redundant data cross-path transmission condition is currently met, determine whether the redundant data enhancement condition is currently met based on at least one of the current first network status information of the first network path and the current playback freeze information of the media data.

其中,媒体数据的当前播放卡顿信息可以是指接收端当前播放媒体数据时出现的卡顿信息。如图2所示,接收端将从第一网络路径和第二网络路径中接收到的属于相同流的媒体数据和冗余数据归并到一起进行数据恢复,并对恢复出的媒体数据进行解码和渲染,从而实现媒体数据的播放。当前播放卡顿信息可以用于表征用户的体验质量。当前播放的媒体数据越卡顿,即媒体数据播放越不流畅,此时用户体验质量越差。本实施例可以利用任意能够表征用户体验质量的指标来表征当前播放卡顿信息。例如,媒体数据的当前播放卡顿信息可以包括:媒体数据中当前相邻两帧被解码的当前解码间隔。当前解码间隔可以是指当前最近被解码的帧距离上一帧被解码的时间差。当前解码间隔越大,表明出现播放卡顿的可能性越大。冗余数据增强条件可以是预先设置的,用于生成更多的冗余数据量所需要满足的条件。The current playback jam information of the media data may refer to jam information that occurs when the receiving end is currently playing the media data. As shown in Figure 2, the receiving end combines the media data and redundant data belonging to the same stream received from the first network path and the second network path for data recovery, and decodes and renders the recovered media data to enable playback of the media data. The current playback jam information can be used to characterize the user's quality of experience. The greater the jamming of the currently playing media data, that is, the less smooth the media data playback, the worse the user experience quality. This embodiment can use any metric that can characterize the user experience quality to characterize the current playback jam information. For example, the current playback jam information of the media data may include: the current decoding interval between the decoding of two adjacent frames in the media data. The current decoding interval may refer to the time difference between the most recently decoded frame and the decoding of the previous frame. The larger the current decoding interval, the greater the likelihood of playback jams. The redundant data enhancement condition may be a pre-set condition that must be met to generate a larger amount of redundant data.

具体地,在确定当前满足冗余数据跨路径传输条件后,可以基于第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定第一网络路径的网络状态是否处于极端弱网的情况,从而确定是否需要对冗余数据进行增强处理,以便生成更多的冗余数据。Specifically, after determining that the conditions for cross-path transmission of redundant data are currently met, it is possible to determine whether the network status of the first network path is in an extremely weak network situation based on at least one of the current first network status information of the first network path and the current playback freeze information of the media data, thereby determining whether the redundant data needs to be enhanced in order to generate more redundant data.

示例性地,步骤S320可以包括:若当前满足冗余数据跨路径传输条件,则检测第一网络路径的当前第一往返延时是否大于或等于预设延时,以及媒体数据中当前相邻两帧被解码的当前解码间隔是否大于或等于预设时间间隔,并基于检测结果确定当前是否满足冗余增强条件。Exemplarily, step S320 may include: if the redundant data cross-path transmission condition is currently met, detecting whether the current first round-trip delay of the first network path is greater than or equal to the preset delay, and whether the current decoding interval between the two adjacent frames currently decoded in the media data is greater than or equal to the preset time interval, and determining whether the redundancy enhancement condition is currently met based on the detection result.

其中,预设延时可以是预先设置的,第一网络路径无法按时传输媒体数据的最小往返延时。预设时间间隔可以是预先设置的,用户无法接受的播放卡顿对应的最小解码间隔。The preset delay may be a preset minimum round-trip delay at which the first network path cannot transmit media data on time. The preset time interval may be a preset minimum decoding interval corresponding to playback freezes that are unacceptable to the user.

具体地,在当前第一网络状态信息为当前第一往返延时,当前播放卡顿信息为当前相邻两帧被解码的当前解码间隔时,可以通过检测第一网络路径的当前第一往返延时是否大于或等于预设延时,以及媒体数据中当前相邻两帧被解码的当前解码间隔是否大于或等于预设时间间隔的方式,确定当前是否满足冗余增强条件。Specifically, when the current first network status information is the current first round-trip delay and the current playback freeze information is the current decoding interval between the current two adjacent frames being decoded, it can be determined whether the redundancy enhancement condition is currently met by detecting whether the current first round-trip delay of the first network path is greater than or equal to the preset delay, and whether the current decoding interval between the current two adjacent frames being decoded in the media data is greater than or equal to the preset time interval.

示例性地,基于检测结果确定当前是否满足冗余增强条件,可以包括:若第一网络路径的当前第一往返延时大于或等于预设延时,或者媒体数据中当前相邻两帧被解码的当前解码间隔大于或等于预设时间间隔,则确定当前满足冗余增强条件;若第一网络路径的当前第一往返延时小于预设延时,且媒体数据中当前相邻两帧被解码的当前解码间隔小于预设时间间隔,则确定当前不满足冗余增强条件。Exemplarily, determining whether the redundancy enhancement condition is currently met based on the detection result may include: if the current first round-trip delay of the first network path is greater than or equal to the preset delay, or the current decoding interval between the current two adjacent frames decoded in the media data is greater than or equal to the preset time interval, then determining that the redundancy enhancement condition is currently met; if the current first round-trip delay of the first network path is less than the preset delay, and the current decoding interval between the current two adjacent frames decoded in the media data is less than the preset time interval, then determining that the redundancy enhancement condition is not currently met.

具体地,在第一网络路径的当前第一往返延时大于或等于预设延时(比如500ms)时,表明第一网络路径已经无法按时完成媒体数据的传输,此时可以确定当前满足冗余增强条件,否则确定当前不满足冗余增强条件。或者,在媒体数据中当前相邻两帧被解码的当前解码间隔大于或等于预设时间间隔(比如1000ms)时,表明接收端出现的播放卡顿用户无法接受,此时可以确定当前满足冗余增强条件,否则确定当前不满足冗余增强条件。通过利用当前第一往返延时和当前解码间隔可以更加准确地确定是否需要进行冗余数据的增强处理,进一步提高了数据恢复的成功率。Specifically, when the current first round-trip delay of the first network path is greater than or equal to the preset delay (for example, 500ms), it indicates that the first network path has been unable to complete the transmission of the media data on time. At this time, it can be determined that the redundancy enhancement condition is currently met, otherwise it is determined that the redundancy enhancement condition is not currently met. Alternatively, when the current decoding interval between the two adjacent frames in the media data is greater than or equal to the preset time interval (for example, 1000ms), it indicates that the playback freeze at the receiving end is unacceptable to the user. At this time, it can be determined that the redundancy enhancement condition is currently met, otherwise it is determined that the redundancy enhancement condition is not currently met. By utilizing the current first round-trip delay and the current decoding interval, it can be more accurately determined whether redundant data enhancement processing is required, further improving the success rate of data recovery.

示例性地,媒体数据中当前相邻两帧被解码的当前解码间隔是通过对接收端发送的反馈报文进行解析获得的。Exemplarily, the current decoding interval between two adjacent frames in the media data is obtained by parsing a feedback message sent by the receiving end.

具体地,接收端在对接收到的数据进行解码恢复过程中,可以统计当前被解码的帧距离上一帧被解码的时间差,该时间差即为当前相邻两帧被解码的当前解码间隔,从而可以实时获得当前解码间隔。接收端基于当前解码间隔可以生成包含有当前解码间隔的反馈报文。其中,反馈报文的报文类型可以是但不限于RTCP(RTP Control Protocol)网络传输协议类型。接收端可以每隔一段时间(比如每隔200ms)主动地将生成的反馈报文发送至发送端,从而实现反馈报文的主动传输。接收端也可以在接收到发送端发送的请求报文时再生成和发送相应的反馈报文,从而实现反馈报文的被动传输。发送端接收到反馈报文后,对反馈报文进行解析,从而可以获得反馈报文中的当前解码间隔,使得发送端可以准确获知接收端中的媒体数据播放卡顿情况。Specifically, during the decoding and recovery process of the received data, the receiving end can calculate the time difference between the currently decoded frame and the previous frame decoded. This time difference is the current decoding interval between the two adjacent frames being decoded, thereby obtaining the current decoding interval in real time. Based on the current decoding interval, the receiving end can generate a feedback message containing the current decoding interval. The message type of the feedback message can be, but is not limited to, the RTCP (RTP Control Protocol) network transmission protocol type. The receiving end can actively send the generated feedback message to the sending end at regular intervals (for example, every 200ms), thereby achieving active transmission of the feedback message. The receiving end can also generate and send a corresponding feedback message upon receiving a request message sent by the sending end, thereby achieving passive transmission of the feedback message. After receiving the feedback message, the sending end parses the feedback message to obtain the current decoding interval in the feedback message, allowing the sending end to accurately understand the media data playback jamming situation at the receiving end.

需要注意的是,接收端可以通过第一网络路径将反馈报文发送至发送端中,也可以通过第二网络路径将反馈报文发送至发送端中,其可以基于业务需求进行固定选择或者基于网络状态进行动态选择等。It should be noted that the receiving end can send the feedback message to the sending end through the first network path, or send the feedback message to the sending end through the second network path. It can be fixedly selected based on business needs or dynamically selected based on network status.

S330、基于当前是否满足冗余数据增强条件,确定当前待传输的目标媒体数据对应的目标冗余数据。S330: Determine target redundant data corresponding to the target media data to be transmitted based on whether a redundant data enhancement condition is currently satisfied.

具体地,若当前不满足冗余数据增强条件,则可以按照原有冗余方式生成目标媒体数据对应的目标冗余数据。若当前满足冗余数据增强条件,则可以对原有冗余方式生成的冗余数据进行增强处理,生成增强后的目标冗余数据,增强后的目标冗余数据的数据量大于原有冗余方式生成的冗余数据量。通过生成更多的目标冗余数据,可以保证在极端弱网情况下,画面依旧可以得到充分恢复。Specifically, if the redundant data enhancement conditions are not currently met, target redundant data corresponding to the target media data can be generated using the original redundant method. If the redundant data enhancement conditions are currently met, the redundant data generated using the original redundant method can be enhanced to generate enhanced target redundant data. The amount of enhanced target redundant data is greater than that generated using the original redundant method. By generating more target redundant data, the image can be fully restored even in extremely weak network conditions.

示例性地,步骤S330可以包括:若当前满足冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据;若当前不满足冗余数据增强条件,则基于第一网络路径的当前丢包率,确定当前待传输的目标媒体数据对应的目标冗余数据。Exemplarily, step S330 may include: if the redundant data enhancement condition is currently met, determining target redundant data equal to the target media data currently to be transmitted; if the redundant data enhancement condition is currently not met, determining target redundant data corresponding to the target media data currently to be transmitted based on the current packet loss rate of the first network path.

具体地,若当前满足冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据,从而生成的目标冗余数据的数据量等于目标媒体数据的数据量。若当前不满足冗余数据增强条件,则可以将当前待传输的目标媒体数据的数据量与第一网络路径的当前丢包率进行相乘,获得目标冗余数据量,并基于目标冗余数据量,对目标媒体数据进行冗余编码,获得具有目标冗余数据量的目标冗余数据,此时生成的目标冗余数据的数据量小于目标媒体数据的数据量。Specifically, if the redundant data enhancement condition is currently satisfied, target redundant data equal to the target media data currently to be transmitted is determined, so that the amount of the generated target redundant data is equal to the amount of the target media data. If the redundant data enhancement condition is currently not satisfied, the amount of the target media data currently to be transmitted may be multiplied by the current packet loss rate of the first network path to obtain a target redundant data amount. Based on the target redundant data amount, the target media data is redundantly encoded to obtain target redundant data having the target redundant data amount. In this case, the amount of the generated target redundant data is less than the amount of the target media data.

需要注意的是,在当前满足冗余数据增强条件时,确定并发送与目标媒体数据等量的目标冗余数据,可以在即使第一网络路径传输的媒体数据全部丢失的情况下,只要目标冗余数据被成功传输,接收端依旧可以将媒体数据进行恢复并解码和渲染播放,从而保证了数据在接收端能够完成恢复,提高了在第一网络路径状况不好时的数据恢复效率和成功率。It should be noted that when the redundant data enhancement conditions are currently met, target redundant data equal to the target media data is determined and sent. Even if all the media data transmitted by the first network path is lost, as long as the target redundant data is successfully transmitted, the receiving end can still recover, decode, render and play the media data, thereby ensuring that the data can be recovered at the receiving end, and improving the data recovery efficiency and success rate when the first network path is in poor condition.

作为一种可选方式,若当前满足冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据,包括:若当前时间窗口内满足冗余数据增强条件的次数大于或等于预设次数,则在预设时长内确定与当前待传输的目标媒体数据等量的目标冗余数据,以在预设时长内持续发送目标冗余数量。As an optional method, if the redundant data enhancement condition is currently met, target redundant data equal to the target media data currently to be transmitted is determined, including: if the number of times the redundant data enhancement condition is met within the current time window is greater than or equal to a preset number, target redundant data equal to the target media data currently to be transmitted is determined within a preset time length, so as to continuously send the target redundant amount within the preset time length.

其中,当前时间窗口可以是具有预设窗口时长的滑动时间窗口。例如,预设窗口时长可以为3秒。具体地,可以在当前时间窗口内每隔一段时间检测当前是否满足冗余数据增强条件,从而在当前时间窗口内可以进行多次是否满足冗余数据增强条件的检测。若当前时间窗口内检测到的满足冗余数据增强条件的次数大于或等于预设次数(比如3次),则表明第一网络路径的网络状态持续不佳,此时可以在预设时长(比如2秒)内持续开启冗余增强,也就是在预设时长内始终发送与目标媒体数据等量的目标冗余数据,从而保证在第一网络路径的网络状态不佳时持续使用第二网络路径进行冗余增强。Among them, the current time window can be a sliding time window with a preset window length. For example, the preset window length can be 3 seconds. Specifically, it is possible to detect whether the redundant data enhancement condition is currently met at intervals within the current time window, so that multiple detections of whether the redundant data enhancement condition is met can be performed within the current time window. If the number of times the redundant data enhancement condition is detected to be met within the current time window is greater than or equal to the preset number (for example, 3 times), it indicates that the network status of the first network path continues to be poor. At this time, redundant enhancement can be continuously turned on within a preset time length (for example, 2 seconds), that is, target redundant data equal to the target media data is always sent within the preset time length, thereby ensuring that the second network path is continuously used for redundant enhancement when the network status of the first network path is poor.

需要说明的是,在当前时刻满足冗余数据增强条件,并且传输目标媒体数据等量的目标冗余数据后,接收端的解码间隔变短,卡顿率减少,此时可能会导致下个时刻因不满足冗余数据增强条件而关闭冗余增强,从而仅传输原有冗余数据,但关闭冗余增强后又会再次导致出现卡顿,如此循环往复,从而也无法有效提升用户体验。针对于此,本公开实施例在当前时间窗口内满足冗余数据增强条件的次数大于或等于预设次数时,将冗余增强的开启持续预设时长,从而可以避免出现反复播放卡顿的情况,进而有效提升了用户体验。It should be noted that if the redundant data enhancement conditions are met at the current moment and the target redundant data equal to the target media data is transmitted, the decoding interval at the receiving end becomes shorter and the jamming rate decreases. This may cause redundant enhancement to be disabled at the next moment due to the redundant data enhancement conditions not being met, resulting in only the original redundant data being transmitted. However, disabling redundant enhancement will cause jamming again, and this cycle will repeat, thus failing to effectively improve the user experience. To address this, the embodiments of the present disclosure enable redundant enhancement for a preset duration when the redundant data enhancement conditions are met a number of times greater than or equal to a preset number within the current time window. This avoids repeated playback jams and effectively improves the user experience.

示例性地,若当前时间窗口内满足冗余数据增强条件的次数小于预设次数,则冗余增强无需持续预设时长,此时可以直接确定与当前待传输的目标媒体数据等量的目标冗余数据并进行发送。For example, if the number of times the redundant data enhancement condition is met within the current time window is less than a preset number, the redundant enhancement does not need to continue for a preset period of time. At this time, target redundant data equal to the target media data to be transmitted can be directly determined and sent.

S340、通过第一网络路径传输目标媒体数据,并通过第二网络路径传输目标冗余数据。S340: Transmit target media data through the first network path, and transmit target redundant data through the second network path.

本公开实施例的技术方案,通过基于第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余数据增强条件,并基于当前是否满足冗余数据增强条件,可以确定更加合适的目标冗余数据,从而保证了数据在接收端能够完成恢复,提高了在第一网络路径状况不好时的数据恢复效率和成功率。The technical solution of the embodiment of the present disclosure determines whether the redundant data enhancement condition is currently met based on at least one of the current first network status information of the first network path and the current playback jamming information of the media data. Based on whether the redundant data enhancement condition is currently met, more suitable target redundant data can be determined, thereby ensuring that the data can be recovered at the receiving end, and improving the data recovery efficiency and success rate when the first network path is in poor condition.

图4为本公开实施例所提供的一种数据传输装置的结构示意图,如图4所示,该装置具体包括:跨路径传输检测模块410、冗余数据确定模块420和数据传输模块430。FIG4 is a schematic structural diagram of a data transmission device provided by an embodiment of the present disclosure. As shown in FIG4 , the device specifically includes: a cross-path transmission detection module 410 , a redundant data determination module 420 and a data transmission module 430 .

其中,跨路径传输检测模块410,用于基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;冗余数据确定模块420,用于若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;数据传输模块430,用于通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。Among them, the cross-path transmission detection module 410 is used to determine whether the redundant data cross-path transmission condition is currently met based on the current first network status information of the first network path and the current second network status information of the second network path; the redundant data determination module 420 is used to determine the target redundant data corresponding to the target media data currently to be transmitted if the redundant data cross-path transmission condition is currently met; and the data transmission module 430 is used to transmit the target media data through the first network path and transmit the target redundant data through the second network path.

本公开实施例所提供的技术方案,通过基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件,若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据,通过第一网络路径传输目标媒体数据,并通过第二网络路径传输目标冗余数据,从而将第一网络路径的部分流量动态卸载到第二网络路径上进行传输,实现了冗余数据的跨路径传输,提高了数据接收的成功率,同时也不会消耗大量第二网络路径上的流量,进而以较低的流量消耗提高了数据传输质量,提升了用户体验。The technical solution provided by the embodiments of the present disclosure determines whether a condition for cross-path transmission of redundant data is currently met based on current first network status information of the first network path and current second network status information of the second network path. If the condition for cross-path transmission of redundant data is currently met, target redundant data corresponding to the target media data to be transmitted is determined, the target media data is transmitted through the first network path, and the target redundant data is transmitted through the second network path, thereby dynamically offloading part of the traffic of the first network path to the second network path for transmission, achieving cross-path transmission of redundant data and improving the success rate of data reception without consuming a large amount of traffic on the second network path. This improves data transmission quality with lower traffic consumption and enhances user experience.

在上述技术方案的基础上,跨路径传输检测模块410,具体用于:将第一网络路径的当前第一往返延时与第二网络路径的当前第二往返延时进行比较,并基于比较结果确定当前是否满足冗余数据跨路径传输条件。Based on the above technical solution, the cross-path transmission detection module 410 is specifically used to compare the current first round-trip delay of the first network path with the current second round-trip delay of the second network path, and determine whether the redundant data cross-path transmission condition is currently met based on the comparison result.

在上述各技术方案的基础上,冗余数据确定模块420,包括:Based on the above technical solutions, the redundant data determination module 420 includes:

冗余数据增强检测单元,用于基于第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余数据增强条件;a redundant data enhancement detection unit, configured to determine whether a redundant data enhancement condition is currently met based on at least one of current first network state information of the first network path and current playback freeze information of the media data;

冗余数据确定单元,用于基于当前是否满足冗余数据增强条件,确定当前待传输的目标媒体数据对应的目标冗余数据。The redundant data determining unit is configured to determine target redundant data corresponding to the target media data to be transmitted based on whether a redundant data enhancement condition is currently satisfied.

在上述各技术方案的基础上,冗余数据增强检测单元,具体用于:Based on the above technical solutions, the redundant data enhancement detection unit is specifically used to:

检测第一网络路径的当前第一往返延时是否大于或等于预设延时,以及媒体数据中当前相邻两帧被解码的当前解码间隔是否大于或等于预设时间间隔,并基于检测结果确定当前是否满足冗余增强条件;detecting whether a current first round-trip delay of the first network path is greater than or equal to a preset delay, and whether a current decoding interval between two adjacent frames of the media data is greater than or equal to a preset time interval, and determining whether a redundancy enhancement condition is currently satisfied based on the detection results;

其中,媒体数据中当前相邻两帧被解码的当前解码间隔是通过对接收端发送的反馈报文进行解析获得的。The current decoding interval between two adjacent frames in the media data is obtained by parsing the feedback message sent by the receiving end.

在上述各技术方案的基础上,冗余数据确定单元,包括:Based on the above technical solutions, the redundant data determination unit includes:

第一确定子单元,用于若当前满足冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据;A first determining subunit is configured to determine target redundant data equal to the target media data to be currently transmitted if a redundant data enhancement condition is currently satisfied;

第二确定子单元,用于若当前不满足冗余数据增强条件,则基于所述第一网络路径的当前丢包率,确定当前待传输的目标媒体数据对应的目标冗余数据。The second determining subunit is configured to determine target redundant data corresponding to the target media data to be transmitted based on the current packet loss rate of the first network path if the redundant data enhancement condition is not currently met.

在上述各技术方案的基础上,第一确定子单元,具体用于:On the basis of the above technical solutions, the first determining subunit is specifically configured to:

若当前时间窗口内满足冗余数据增强条件的次数大于或等于预设次数,则在预设时长内确定与当前待传输的目标媒体数据等量的目标冗余数据,以在预设时长内持续发送目标冗余数量。If the number of times the redundant data enhancement condition is met in the current time window is greater than or equal to the preset number, target redundant data equal to the target media data to be transmitted is determined within the preset duration, so as to continuously send the target redundant amount within the preset duration.

在上述各技术方案的基础上,数据传输模块430,包括:Based on the above technical solutions, the data transmission module 430 includes:

发送码率确定单元,用于若目标冗余数据对应的目标发送码率大于所述第二网络路径的当前网络带宽,则基于所述目标发送码率和所述当前网络带宽确定所述第一网络路径传输冗余数据的第一发送码率和所述第二网络路径传输冗余数据的第二发送码率;a transmission code rate determining unit, configured to determine, if a target transmission code rate corresponding to the target redundant data is greater than a current network bandwidth of the second network path, a first transmission code rate for transmitting the redundant data through the first network path and a second transmission code rate for transmitting the redundant data through the second network path based on the target transmission code rate and the current network bandwidth;

冗余数据传输单元,用于通过所述第一网络路径以第一发送码率发送目标冗余数据中的部分冗余数据,并通过所述第二网络路径以所述第二发送码率发送目标冗余数据中的剩余冗余数据。The redundant data transmission unit is configured to transmit part of the target redundant data at a first transmission code rate through the first network path, and transmit the remaining redundant data in the target redundant data at the second transmission code rate through the second network path.

在上述各技术方案的基础上,发送码率确定单元,具体用于:Based on the above technical solutions, the sending code rate determination unit is specifically configured to:

确定所述目标发送码率与所述当前网络带宽之间的差值;将所述差值确定为所述第一网络路径传输冗余数据的第一发送码率,并将所述当前网络带宽确定为所述第二网络路径传输冗余数据的第二发送码率。Determine a difference between the target sending code rate and the current network bandwidth; determine the difference as a first sending code rate for transmitting redundant data along the first network path, and determine the current network bandwidth as a second sending code rate for transmitting redundant data along the second network path.

在上述各技术方案的基础上,所述第一网络路径为无线局域网络路径,所述第二网络路径为蜂窝网络路径。Based on the above technical solutions, the first network path is a wireless local area network path, and the second network path is a cellular network path.

本公开实施例所提供的数据传输装置可执行本公开任意实施例所提供的数据传输方法,具备执行方法相应的功能模块和有益效果。The data transmission device provided in the embodiments of the present disclosure can execute the data transmission method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

值得注意的是,上述装置所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

图5为本公开实施例所提供的一种电子设备的结构示意图。下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如图5中的终端设备或服务器)500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG5 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG5 ) 500 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG5 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。编辑/输出(I/O)接口505也连接至总线504。As shown in FIG5 , electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of electronic device 500 are also stored in RAM 503. Processing device 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.

通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG5 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。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 non-transitory computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。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.

本公开实施例提供的电子设备与上述实施例提供的数据传输方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。The electronic device provided by the embodiment of the present disclosure and the data transmission method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的数据传输方法。An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the data transmission method provided by the above embodiment is implemented.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device is caused to: determine whether a condition for cross-path transmission of redundant data is currently met based on current first network status information of the first network path and current second network status information of the second network path; if the condition for cross-path transmission of redundant data is currently met, determine target redundant data corresponding to target media data currently to be transmitted; transmit the target media data via the first network path, and transmit the target redundant data via the second network path.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。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, but not limited to, 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 a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through 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., through the Internet using an Internet service provider).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and/or flowchart, and the combination of the boxes in the block diagram and/or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and 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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.

根据本公开的一个或多个实施例,示例一提供了一种数据传输方法,包括:According to one or more embodiments of the present disclosure, Example 1 provides a data transmission method, including:

基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;determining whether a redundant data cross-path transmission condition is currently met based on current first network state information of the first network path and current second network state information of the second network path;

若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;If the redundant data cross-path transmission condition is currently met, determining the target redundant data corresponding to the target media data to be transmitted;

通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。The target media data is transmitted via the first network path, and the target redundant data is transmitted via the second network path.

根据本公开的一个或多个实施例,示例二提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 2 provides a data transmission method, further comprising:

可选的,所述基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件,包括:Optionally, the determining whether a redundant data cross-path transmission condition is currently met based on the current first network state information of the first network path and the current second network state information of the second network path includes:

将第一网络路径的当前第一往返延时与第二网络路径的当前第二往返延时进行比较,并基于比较结果确定当前是否满足冗余数据跨路径传输条件。The current first round-trip delay of the first network path is compared with the current second round-trip delay of the second network path, and based on the comparison result, it is determined whether a redundant data cross-path transmission condition is currently met.

根据本公开的一个或多个实施例,示例三提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 3 provides a data transmission method, further comprising:

可选的,所述确定当前待传输的目标媒体数据对应的目标冗余数据,包括:Optionally, determining target redundant data corresponding to target media data currently to be transmitted includes:

基于第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余数据增强条件;Determining whether a redundant data enhancement condition is currently met based on at least one of current first network state information of the first network path and current playback freeze information of the media data;

基于当前是否满足冗余数据增强条件,确定当前待传输的目标媒体数据对应的目标冗余数据。Based on whether the redundant data enhancement condition is currently satisfied, target redundant data corresponding to the target media data to be transmitted is determined.

根据本公开的一个或多个实施例,示例四提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 4 provides a data transmission method, further comprising:

可选的,所述基于第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余增强条件,包括:Optionally, the determining whether the redundancy enhancement condition is currently met based on at least one of the current first network state information of the first network path and the current playback freeze information of the media data includes:

检测第一网络路径的当前第一往返延时是否大于或等于预设延时,以及媒体数据中当前相邻两帧被解码的当前解码间隔是否大于或等于预设时间间隔,并基于检测结果确定当前是否满足冗余增强条件;detecting whether a current first round-trip delay of the first network path is greater than or equal to a preset delay, and whether a current decoding interval between two adjacent frames of the media data is greater than or equal to a preset time interval, and determining whether a redundancy enhancement condition is currently satisfied based on the detection results;

其中,媒体数据中当前相邻两帧被解码的当前解码间隔是通过对接收端发送的反馈报文进行解析获得的。The current decoding interval between two adjacent frames in the media data is obtained by parsing the feedback message sent by the receiving end.

根据本公开的一个或多个实施例,示例五提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 5 provides a data transmission method, further comprising:

可选的,所述基于当前是否满足冗余数据增强条件,确定当前待传输的目标媒体数据对应的目标冗余数据,包括:Optionally, determining target redundant data corresponding to the target media data to be transmitted based on whether a redundant data enhancement condition is currently satisfied includes:

若当前满足冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据;If the redundant data enhancement condition is currently met, determining target redundant data equal to the target media data to be transmitted;

若当前不满足冗余数据增强条件,则基于所述第一网络路径的当前丢包率,确定当前待传输的目标媒体数据对应的目标冗余数据。If the redundant data enhancement condition is not currently met, target redundant data corresponding to the target media data to be transmitted is determined based on the current packet loss rate of the first network path.

根据本公开的一个或多个实施例,示例六提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 6 provides a data transmission method, further comprising:

可选的,所述若当前满足冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据,包括:Optionally, if the redundant data enhancement condition is currently met, determining target redundant data equal to the target media data currently to be transmitted includes:

若当前时间窗口内满足冗余数据增强条件的次数大于或等于预设次数,则在预设时长内确定与当前待传输的目标媒体数据等量的目标冗余数据,以在预设时长内持续发送目标冗余数量。If the number of times the redundant data enhancement condition is met in the current time window is greater than or equal to the preset number, target redundant data equal to the target media data to be transmitted is determined within the preset duration, so as to continuously send the target redundant amount within the preset duration.

根据本公开的一个或多个实施例,示例七提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 7 provides a data transmission method, further comprising:

可选的,所述通过所述第二网络路径传输所述目标冗余数据,包括:Optionally, transmitting the target redundant data through the second network path includes:

若目标冗余数据对应的目标发送码率大于所述第二网络路径的当前网络带宽,则基于所述目标发送码率和所述当前网络带宽确定所述第一网络路径传输冗余数据的第一发送码率和所述第二网络路径传输冗余数据的第二发送码率;If a target sending code rate corresponding to the target redundant data is greater than a current network bandwidth of the second network path, determining a first sending code rate for transmitting the redundant data through the first network path and a second sending code rate for transmitting the redundant data through the second network path based on the target sending code rate and the current network bandwidth;

通过所述第一网络路径以第一发送码率发送目标冗余数据中的部分冗余数据,并通过所述第二网络路径以所述第二发送码率发送目标冗余数据中的剩余冗余数据。Part of the target redundant data is sent at a first sending code rate through the first network path, and the remaining redundant data in the target redundant data is sent at the second sending code rate through the second network path.

根据本公开的一个或多个实施例,示例八提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 8 provides a data transmission method, further comprising:

可选的,所述基于所述目标发送码率和所述当前网络带宽确定所述第一网络路径传输冗余数据的第一发送码率和所述第二网络路径传输冗余数据的第二发送码率,包括:Optionally, determining, based on the target sending code rate and the current network bandwidth, a first sending code rate for transmitting redundant data over the first network path and a second sending code rate for transmitting redundant data over the second network path includes:

确定所述目标发送码率与所述当前网络带宽之间的差值;Determining a difference between the target sending bit rate and the current network bandwidth;

将所述差值确定为所述第一网络路径传输冗余数据的第一发送码率,并将所述当前网络带宽确定为所述第二网络路径传输冗余数据的第二发送码率。The difference is determined as a first sending code rate for transmitting redundant data over the first network path, and the current network bandwidth is determined as a second sending code rate for transmitting redundant data over the second network path.

根据本公开的一个或多个实施例,示例九提供了一种数据传输方法,还包括:According to one or more embodiments of the present disclosure, Example 9 provides a data transmission method, further comprising:

可选的,所述第一网络路径为无线局域网络路径,所述第二网络路径为蜂窝网络路径。Optionally, the first network path is a wireless local area network path, and the second network path is a cellular network path.

根据本公开的一个或多个实施例,示例十提供了一种数据传输装置,包括:According to one or more embodiments of the present disclosure, Example 10 provides a data transmission device, including:

跨路径传输检测模块,用于基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;a cross-path transmission detection module, configured to determine whether a redundant data cross-path transmission condition is currently satisfied based on current first network status information of the first network path and current second network status information of the second network path;

冗余数据确定模块,用于若当前满足冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;a redundant data determination module, configured to determine target redundant data corresponding to target media data to be transmitted if a redundant data cross-path transmission condition is currently met;

数据传输模块,用于通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。A data transmission module is configured to transmit the target media data through the first network path and transmit the target redundant data through the second network path.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. 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 the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。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 have been 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.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims (12)

一种数据传输方法,包括:A data transmission method, comprising: 基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;determining whether a redundant data cross-path transmission condition is currently met based on current first network state information of the first network path and current second network state information of the second network path; 若当前满足所述冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;If the redundant data cross-path transmission condition is currently met, determining target redundant data corresponding to the target media data to be transmitted; 通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。The target media data is transmitted via the first network path, and the target redundant data is transmitted via the second network path. 根据权利要求1所述的数据传输方法,其中,所述基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件,包括:The data transmission method according to claim 1, wherein the determining whether a redundant data cross-path transmission condition is currently met based on the current first network state information of the first network path and the current second network state information of the second network path comprises: 将第一网络路径的当前第一往返延时与第二网络路径的当前第二往返延时进行比较,并基于比较结果确定当前是否满足所述冗余数据跨路径传输条件。The current first round-trip delay of the first network path is compared with the current second round-trip delay of the second network path, and based on the comparison result, it is determined whether the redundant data cross-path transmission condition is currently met. 根据权利要求1或2所述的数据传输方法,其中,所述确定当前待传输的目标媒体数据对应的目标冗余数据,包括:The data transmission method according to claim 1 or 2, wherein determining the target redundant data corresponding to the target media data currently to be transmitted comprises: 基于所述第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余数据增强条件;determining whether a redundant data enhancement condition is currently met based on at least one of current first network state information of the first network path and current playback freeze information of the media data; 基于当前是否满足所述冗余数据增强条件,确定所述当前待传输的目标媒体数据对应的目标冗余数据。Based on whether the redundant data enhancement condition is currently satisfied, target redundant data corresponding to the target media data to be transmitted is determined. 根据权利要求3所述的数据传输方法,其中,所述基于所述第一网络路径的当前第一网络状态信息和媒体数据的当前播放卡顿信息中的至少一项,确定当前是否满足冗余增强条件,包括:The data transmission method according to claim 3, wherein the determining whether the redundancy enhancement condition is currently met based on at least one of the current first network status information of the first network path and the current playback freeze information of the media data comprises: 检测第一网络路径的当前第一往返延时是否大于或等于预设延时,以及媒体数据中当前相邻两帧被解码的当前解码间隔是否大于或等于预设时间间隔,并基于检测结果确定当前是否满足所述冗余增强条件;detecting whether a current first round-trip delay of the first network path is greater than or equal to a preset delay, and whether a current decoding interval between two adjacent frames of the media data is greater than or equal to a preset time interval, and determining whether the redundancy enhancement condition is currently satisfied based on the detection results; 其中,所述媒体数据中当前相邻两帧被解码的当前解码间隔是通过对接收端发送的反馈报文进行解析获得的。The current decoding interval between two adjacent frames in the media data is obtained by parsing a feedback message sent by the receiving end. 根据权利要求3或4所述的数据传输方法,其中,所述基于当前是否满足所述冗余数据增强条件,确定当前待传输的目标媒体数据对应的目标冗余数据,包括:The data transmission method according to claim 3 or 4, wherein determining the target redundant data corresponding to the target media data to be transmitted based on whether the redundant data enhancement condition is currently satisfied comprises: 若当前满足所述冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据;If the redundant data enhancement condition is currently met, determining target redundant data equal to the target media data to be transmitted; 若当前不满足所述冗余数据增强条件,则基于所述第一网络路径的当前丢包率,确定当前待传输的目标媒体数据对应的目标冗余数据。If the redundant data enhancement condition is not currently met, target redundant data corresponding to the target media data to be transmitted is determined based on the current packet loss rate of the first network path. 根据权利要求5所述的数据传输方法,其中,所述若当前满足所述冗余数据增强条件,则确定与当前待传输的目标媒体数据等量的目标冗余数据,包括:The data transmission method according to claim 5, wherein if the redundant data enhancement condition is currently satisfied, determining target redundant data equal to the target media data currently to be transmitted comprises: 若当前时间窗口内满足冗余数据增强条件的次数大于或等于预设次数,则在预设时长内确定所述与当前待传输的目标媒体数据等量的目标冗余数据,以在所述预设时长内持续发送目标冗余数量。If the number of times the redundant data enhancement condition is met within the current time window is greater than or equal to the preset number, the target redundant data equal to the target media data to be transmitted is determined within the preset duration, so as to continuously send the target redundant data within the preset duration. 根据权利要求1-6任一项所述的数据传输方法,其中,所述通过所述第二网络路径传输所述目标冗余数据,包括:The data transmission method according to any one of claims 1 to 6, wherein transmitting the target redundant data through the second network path comprises: 若目标冗余数据对应的目标发送码率大于所述第二网络路径的当前网络带宽,则基于所述目标发送码率和所述当前网络带宽确定所述第一网络路径传输冗余数据的第一发送码率和所述第二网络路径传输冗余数据的第二发送码率;If a target sending code rate corresponding to the target redundant data is greater than a current network bandwidth of the second network path, determining a first sending code rate for transmitting the redundant data through the first network path and a second sending code rate for transmitting the redundant data through the second network path based on the target sending code rate and the current network bandwidth; 通过所述第一网络路径以所述第一发送码率发送目标冗余数据中的部分冗余数据,并通过所述第二网络路径以所述第二发送码率发送目标冗余数据中的剩余冗余数据。Part of the target redundant data is sent at the first sending code rate through the first network path, and the remaining redundant data is sent at the second sending code rate through the second network path. 根据权利要求7所述的数据传输方法,其中,所述基于所述目标发送码率和所述当前网络带宽确定所述第一网络路径传输冗余数据的第一发送码率和所述第二网络路径传输冗余数据的第二发送码率,包括:The data transmission method according to claim 7, wherein determining, based on the target sending code rate and the current network bandwidth, a first sending code rate for transmitting redundant data on the first network path and a second sending code rate for transmitting redundant data on the second network path comprises: 确定所述目标发送码率与所述当前网络带宽之间的差值;Determining a difference between the target sending bit rate and the current network bandwidth; 将所述差值确定为所述第一网络路径传输冗余数据的第一发送码率,并将所述当前网络带宽确定为所述第二网络路径传输冗余数据的第二发送码率。The difference is determined as a first sending code rate for transmitting redundant data over the first network path, and the current network bandwidth is determined as a second sending code rate for transmitting redundant data over the second network path. 根据权利要求1-8任一项所述的数据传输方法,其中,所述第一网络路径为无线局域网络路径,所述第二网络路径为蜂窝网络路径。The data transmission method according to any one of claims 1 to 8, wherein the first network path is a wireless local area network path, and the second network path is a cellular network path. 一种数据传输装置,包括:A data transmission device, comprising: 跨路径传输检测模块,被配置为基于第一网络路径的当前第一网络状态信息和第二网络路径的当前第二网络状态信息,确定当前是否满足冗余数据跨路径传输条件;a cross-path transmission detection module configured to determine whether a redundant data cross-path transmission condition is currently met based on current first network state information of the first network path and current second network state information of the second network path; 冗余数据确定模块,被配置为若当前满足所述冗余数据跨路径传输条件,则确定当前待传输的目标媒体数据对应的目标冗余数据;a redundant data determination module configured to determine target redundant data corresponding to target media data to be transmitted if the redundant data cross-path transmission condition is currently met; 数据传输模块,被配置为通过所述第一网络路径传输所述目标媒体数据,并通过所述第二网络路径传输所述目标冗余数据。The data transmission module is configured to transmit the target media data through the first network path and transmit the target redundant data through the second network path. 一种电子设备,包括:An electronic device, comprising: 一个或多个处理器;one or more processors; 存储装置,被配置为存储一个或多个程序,其中,A storage device configured to store one or more programs, wherein 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-9中任一所述的数据传输方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method according to any one of claims 1 to 9. 一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-9中任一所述的数据传输方法。A storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform the data transmission method according to any one of claims 1 to 9.
PCT/CN2025/072275 2024-02-28 2025-01-14 Data transmission method and apparatus, and device and storage medium Pending WO2025180119A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410224497.9A CN118101553A (en) 2024-02-28 2024-02-28 Data transmission method, device, equipment and storage medium
CN202410224497.9 2024-02-28

Publications (1)

Publication Number Publication Date
WO2025180119A1 true WO2025180119A1 (en) 2025-09-04

Family

ID=91157350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/072275 Pending WO2025180119A1 (en) 2024-02-28 2025-01-14 Data transmission method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN118101553A (en)
WO (1) WO2025180119A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118101553A (en) * 2024-02-28 2024-05-28 北京字跳网络技术有限公司 Data transmission method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210359926A1 (en) * 2018-10-12 2021-11-18 Telefonaktiebolaget Lm Ericsson (Publ) Technique for monitoring a redundancy status of a connection
CN113823297A (en) * 2021-07-22 2021-12-21 腾讯科技(深圳)有限公司 Voice data processing method, device, equipment and storage medium
CN115087043A (en) * 2022-05-06 2022-09-20 阿里巴巴(中国)有限公司 Multi-path redundant transmission method, user equipment, network entity and storage medium
CN118101553A (en) * 2024-02-28 2024-05-28 北京字跳网络技术有限公司 Data transmission method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210359926A1 (en) * 2018-10-12 2021-11-18 Telefonaktiebolaget Lm Ericsson (Publ) Technique for monitoring a redundancy status of a connection
CN113823297A (en) * 2021-07-22 2021-12-21 腾讯科技(深圳)有限公司 Voice data processing method, device, equipment and storage medium
CN115087043A (en) * 2022-05-06 2022-09-20 阿里巴巴(中国)有限公司 Multi-path redundant transmission method, user equipment, network entity and storage medium
CN118101553A (en) * 2024-02-28 2024-05-28 北京字跳网络技术有限公司 Data transmission method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN118101553A (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US9237105B2 (en) Data communication with compensation for packet loss
CN113992967B (en) Screen projection data transmission method and device, electronic equipment and storage medium
CN111147606B (en) Data transmission method, device, terminal and storage medium
US12445224B2 (en) Data transmission method and apparatus, device, and medium
CN112583529B (en) A data processing method, device, equipment and storage medium
CN110830460B (en) Connection establishing method and device, electronic equipment and storage medium
CN113242446B (en) Video frame caching method, video frame forwarding method, communication server and program product
US20240292044A1 (en) Method, apparatus, electronic device and storage medium for audio and video synchronization monitoring
WO2025213924A1 (en) Video encoding method and apparatus, and device and storage medium
WO2025180119A1 (en) Data transmission method and apparatus, and device and storage medium
WO2024217205A1 (en) Video transmission method and apparatus, and device and storage medium
CN113037853A (en) Data processing method, device, equipment and storage medium
CN114039702B (en) Data transmission method, device, equipment and medium
CN110233856B (en) Message processing method and device and computer readable storage medium
WO2025208997A1 (en) Data stream switching method and apparatus, and storage medium and electronic device
WO2025194876A1 (en) Adaptive adjustment method and apparatus for congestion window, device and medium
WO2025208998A1 (en) Video playback method, apparatus and system, device and storage medium
WO2025213922A1 (en) Video processing method and apparatus, and storage medium and electronic device
CN118354122A (en) Multimedia data stream processing method, device, electronic device and storage medium
CN112153322B (en) Data distribution method, device, equipment and storage medium
CN115775290A (en) Animation frame rate processing method, device, equipment and storage medium
CN116980393A (en) Audio transmission method, device, equipment and storage medium
US20250184545A1 (en) Interactive live streaming method, apparatus, electronic device, and storage medium
CN111416802B (en) TCP-based data processing method and device, electronic equipment and readable medium
CN117857849A (en) Bandwidth allocation method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25760663

Country of ref document: EP

Kind code of ref document: A1