Search

CN-121985156-A - Data transmission method, video transmission device and electronic equipment

CN121985156ACN 121985156 ACN121985156 ACN 121985156ACN-121985156-A

Abstract

The application discloses a data transmission method which is applied to a transmitting end and comprises the steps of responding to each data packet corresponding to a unit to be transmitted of data to be transmitted, transmitting the data packet through a data stream, recording the position occupied by the unit to be transmitted in the data stream and the position occupied by each data packet in the data stream, determining unit-level transmission state information corresponding to the transmitted unit according to the data packet-level transmission state information corresponding to the associated data packet, wherein the associated data packet is the data packet of which the position occupied by the data packet belongs to the position occupied by the unit corresponding to the transmitted unit, updating the data transmission mode based on the unit-level transmission state information, and transmitting new data to be transmitted through the updated data transmission mode. The application also provides a video transmission method, a video transmission device and electronic equipment. The scheme provided by the application can adjust the data transmission strategy according to the overall transmission condition of the data unit so as to more accurately control congestion and improve the real-time performance and stability of data transmission.

Inventors

  • PENG FENG
  • YANG BIRONG
  • ZHANG JIUHAI
  • LIU YANMEI
  • TAN QINGYUE
  • PENG YUTANG
  • GUO HONGYU

Assignees

  • 浙江天猫技术有限公司

Dates

Publication Date
20260505
Application Date
20251208

Claims (13)

  1. 1. A data transmission method, applied to a transmitting end, the method comprising: responding to each data packet corresponding to a unit to be transmitted of data to be transmitted, and sending the data packet through a data stream, and recording the position occupied by the unit to be transmitted in the data stream and the position occupied by the data packet in the data stream, wherein the data to be transmitted comprises at least one unit to be transmitted; In the data transmission process, determining unit-level transmission state information corresponding to a transmitted unit according to data packet-level transmission state information corresponding to each associated data packet of the transmitted unit, wherein the position occupied by the associated data packet is a data packet in the position occupied by the unit corresponding to the transmitted unit; and updating the data transmission mode based on the unit-level transmission state information so as to transmit new data to be transmitted through the updated data transmission mode.
  2. 2. The data transmission method according to claim 1, wherein the location occupied by the unit includes a data stream in which the unit to be transmitted is located, a start position and an end position of the unit to be transmitted in the data stream in which the unit to be transmitted is located, and the location occupied by the data packet includes the data stream in which the data packet is located, and the start position of the data packet in the data stream in which the data packet is located.
  3. 3. The data transmission method according to claim 1, wherein the data to be transmitted is a video to be transmitted, and the unit to be transmitted is a video frame of the video to be transmitted; Or the data to be transmitted is audio to be transmitted, and the unit to be transmitted is an audio segment of the audio to be transmitted; or the data to be transmitted is a file to be transmitted, and the unit to be transmitted is a file block of the file to be transmitted.
  4. 4. The method according to claim 1, wherein the determining the unit-level transmission status information corresponding to the transmitted unit according to the packet-level transmission status information of each associated packet of the transmitted unit includes: Acquiring a preset first transmission parameter for congestion control, wherein the first transmission parameter is a parameter of a transmission unit dimension; And determining unit-level transmission state information corresponding to the transmitted unit and related to the first transmission parameter according to the transmission state information related to the first transmission parameter of each associated data packet of the transmitted unit.
  5. 5. The method of claim 4, wherein the first transmission parameter includes at least one of a time at which the transmission unit is transmitted, a time at which all data packets of the transmission unit are received by the receiving end, a time at which a first data packet of the transmission unit is transmitted into the network, a time at which all data packets of the transmission unit are transmitted into the network, and a message whether the transmitting end cancels transmitting the transmission unit.
  6. 6. The data transmission method according to any one of claims 1 to 5, wherein updating the data transmission scheme based on the unit-level transmission status information includes: Determining current network transmission state information according to the unit-level transmission state information; and updating a data transmission mode according to the network transmission state information.
  7. 7. The data transmission method according to claim 6, wherein the determining current network transmission status information according to the unit-level transmission status information includes: determining data packet level transmission state information corresponding to each sent data packet; And determining network transmission state information according to the unit-level transmission state information and the data packet-level transmission state information corresponding to the sent data packet.
  8. 8. The method of claim 7, wherein determining packet-level transmission status information corresponding to each of the transmitted packets comprises: Acquiring a preset second transmission parameter for congestion control, wherein the second transmission parameter is a parameter of a data packet dimension; And determining data packet level transmission state information corresponding to the second transmission parameters of each sent data packet.
  9. 9. The method according to any one of claims 1 to 5, wherein the data transmission mode includes at least one of a coding mode of a unit to be transmitted, a coding rate of the unit to be transmitted, a transmission rate of data, a transmission interval of data, and a retransmission policy of data.
  10. 10. A method of video transmission, the method comprising: responding to each data packet corresponding to a video frame to be transmitted of the video to be transmitted, and sending the data packet through a data stream, and recording the position occupied by a unit of the video frame to be transmitted in the data stream and the position occupied by a data packet of each data packet in the data stream; In the data transmission process, determining frame-level transmission state information corresponding to a transmitted video frame according to data packet-level transmission state information corresponding to each associated data packet of the transmitted video frame, wherein the position occupied by the associated data packet is a data packet in the position range occupied by a unit corresponding to the transmitted video frame; and updating the data transmission mode based on the frame-level transmission state information so as to transmit a new video frame to be transmitted through the updated data transmission mode.
  11. 11. A data transmission apparatus, applied to a transmitting end, comprising: The marking unit is used for responding to each data packet corresponding to the unit to be transmitted of the data to be transmitted and sending the data packet through the data stream, recording the position occupied by the unit to be transmitted in the data stream and the position occupied by the data packet in the data stream, wherein the data to be transmitted comprises at least one unit to be transmitted; The state determining unit is used for determining unit-level transmission state information corresponding to the transmitted unit according to the data packet-level transmission state information corresponding to each associated data packet of the transmitted unit in the data transmission process, wherein the position occupied by the associated data packet is a data packet in the position occupied by the unit corresponding to the transmitted unit; And the congestion control unit is used for updating the data transmission mode based on the unit-level transmission state information so as to transmit new data to be transmitted in the updated data transmission mode.
  12. 12. An electronic device comprising a processor, a memory and computer program instructions stored on the memory and executable on the processor, the processor implementing the method of any of the preceding claims 1-10 when executing the computer program instructions.
  13. 13. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein computer executable instructions for implementing the method according to any of the preceding claims 1-10 when being executed by a processor.

Description

Data transmission method, video transmission device and electronic equipment Technical Field The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a video transmission device, an electronic device, and a computer readable storage medium. Background In the process of data transmission, congestion control is an important link for ensuring efficient and stable operation of a network. Congestion control refers to estimating network bandwidth according to transmission information (such as packet loss rate, time delay, etc.) of transmitted data, and dynamically adjusting transmission modes such as transmission rate of subsequent data based on the estimated bandwidth so as to reduce network congestion. Conventional congestion control mostly adjusts transmission strategies by the transmission status of individual data packets. However, since data is transmitted, a complete data unit (e.g., a video frame) is often encoded and divided into a plurality of smaller data packets for transmission, so as to improve transmission efficiency. The congestion control method according to the transmission state of each data packet in the related art may not accurately reflect the overall transmission condition of one complete data unit, and the transmission strategy is adjusted according to the transmission state of each data packet, so that erroneous judgment may be generated on the transmission state of each data unit, thereby affecting the congestion control effect, and the real-time performance and stability of data transmission are difficult to be effectively ensured by the determined transmission strategy. Disclosure of Invention The application provides a data transmission method, a device, electronic equipment and a computer readable storage medium, which can adjust a data transmission strategy according to the overall transmission condition of a data unit so as to more accurately control congestion and improve the real-time performance and stability of data transmission. The specific scheme is as follows: in a first aspect, the present application provides a data transmission method, applied to a transmitting end, where the method includes: responding to each data packet corresponding to a unit to be transmitted of data to be transmitted, and sending the data packet through a data stream, and recording the position occupied by the unit to be transmitted in the data stream and the position occupied by the data packet in the data stream, wherein the data to be transmitted comprises at least one unit to be transmitted; In the data transmission process, determining unit-level transmission state information corresponding to a transmitted unit according to data packet-level transmission state information corresponding to each associated data packet of the transmitted unit, wherein the position occupied by the associated data packet is a data packet in the position occupied by the unit corresponding to the transmitted unit; and updating the data transmission mode based on the unit-level transmission state information so as to transmit new data to be transmitted through the updated data transmission mode. In a second aspect, the present application provides a video transmission method, the method comprising: responding to each data packet corresponding to a video frame to be transmitted of the video to be transmitted, and sending the data packet through a data stream, and recording the position occupied by a unit of the video frame to be transmitted in the data stream and the position occupied by a data packet of each data packet in the data stream; In the data transmission process, determining frame-level transmission state information corresponding to a transmitted video frame according to data packet-level transmission state information corresponding to each associated data packet of the transmitted video frame, wherein the position occupied by the associated data packet is a data packet in the position range occupied by a unit corresponding to the transmitted video frame; and updating the data transmission mode based on the frame-level transmission state information so as to transmit a new video frame to be transmitted through the updated data transmission mode. In a third aspect, the present application provides a data transmission device, applied to a transmitting end, where the device includes: The marking unit is used for responding to each data packet corresponding to the unit to be transmitted of the data to be transmitted and sending the data packet through the data stream, recording the position occupied by the unit to be transmitted in the data stream and the position occupied by the data packet in the data stream, wherein the data to be transmitted comprises at least one unit to be transmitted; The state determining unit is used for determining unit-level transmission state information corresponding to the transmitted unit according to the