Search

CN-122027579-A - Data scheduling method, device, equipment and medium

CN122027579ACN 122027579 ACN122027579 ACN 122027579ACN-122027579-A

Abstract

The application relates to a data scheduling method, a device, equipment and a medium, wherein the method comprises the steps of obtaining a stream type of a data stream to be scheduled, wherein the stream type comprises a play stream type or a pre-loading stream type, determining a data transmission path corresponding to the data stream from at least two preset data transmission paths based on the stream type of the data stream, wherein the network quality of the data transmission path corresponding to the play stream type is not lower than that of the data transmission path corresponding to the pre-loading stream type, and sending a data packet in the data stream to a client corresponding to the data stream based on the data transmission path corresponding to the data stream. The application can effectively improve the problem that the data packet reaches the client in disorder and the problem of playing and blocking.

Inventors

  • QIAO CHUNYU
  • LI TONG
  • HU BOWEN
  • CAO JINGKUN
  • XU XIAOYI
  • WANG ZHEN

Assignees

  • 北京字跳网络技术有限公司
  • 中国人民大学

Dates

Publication Date
20260512
Application Date
20260210

Claims (11)

  1. 1. A data scheduling method, comprising: The method comprises the steps of obtaining a stream type of a data stream to be scheduled, wherein the stream type comprises a play stream type or a pre-loading stream type; Determining a data transmission path corresponding to the data stream from at least two preset data transmission paths based on the stream type of the data stream, wherein the network quality of the data transmission path corresponding to the play stream type is not lower than that of the data transmission path corresponding to the preloaded stream type; and transmitting the data packets in the data stream to the client corresponding to the data stream based on the data transmission path corresponding to the data stream.
  2. 2. The method of claim 1, wherein the determining, based on the flow type to which the data flow belongs, a data transmission path corresponding to the data flow from at least two preset data transmission paths includes: acquiring network quality corresponding to each of at least two preset data transmission paths, and determining scheduling priorities corresponding to each of the at least two data transmission paths based on the network quality; And determining the data transmission path corresponding to the data flow from the preset at least two data transmission paths based on the flow type of the data flow and the scheduling priority corresponding to each of the at least two data transmission paths.
  3. 3. The method of claim 2, wherein the determining, based on the flow type to which the data flow belongs and the scheduling priorities corresponding to the at least two data transmission paths, the data transmission path corresponding to the data flow from the preset at least two data transmission paths includes: Responding to the stream type of the data stream as a preloaded stream type, and taking a first transmission path in at least two preset data transmission paths as a data transmission path corresponding to the data stream, wherein the scheduling priority of the first transmission path is not the highest priority; And responding to the stream type of the data stream as a play stream type, acquiring client information corresponding to the data stream, and determining a data transmission path corresponding to the data stream from the at least two data transmission paths based on the client information and the scheduling priorities corresponding to the at least two data transmission paths, wherein the data transmission path corresponding to the data stream at least comprises a second transmission path, and the scheduling priority of the second transmission path is the highest priority.
  4. 4. The method of claim 3, wherein the determining, from the at least two data transmission paths, the data transmission path corresponding to the data stream based on the client information and the scheduling priority corresponding to each of the at least two data transmission paths, comprises: determining a first duty ratio of a first type of data packet and a second duty ratio of a second type of data packet in the data stream based on the client information, wherein the sum of the first duty ratio and the second duty ratio is one; And taking the second transmission path in the at least two data transmission paths as the data transmission path corresponding to the second class data packet.
  5. 5. The method of claim 4, wherein the client information includes a remaining play-out duration corresponding to a data packet currently cached by the client, and wherein determining, based on the client information, a first duty cycle of a first type of data packet and a second duty cycle of a second type of data packet in the data stream includes: acquiring a preset first time length threshold value and a preset second time length threshold value, wherein the first time length threshold value is smaller than the second time length threshold value; determining that a first duty ratio of a first type of data packet in the data stream is one and a second duty ratio of a second type of data packet is zero in response to the remaining play time length being less than the first time length threshold; determining that a first duty ratio of a first type of data packet in the data stream is zero and a second duty ratio of a second type of data packet is one in response to the remaining play time length being greater than or equal to the second time length threshold; And responding to the residual playing time length being greater than or equal to the first time length threshold value and the residual playing time length being less than the second time length threshold value, acquiring a preset corresponding relation between a first duty ratio of first type data and the residual playing time length in the data stream, and determining a second duty ratio of the first duty ratio and the second type data packet based on the corresponding relation, wherein the first duty ratio and the residual playing time length are in negative correlation.
  6. 6. The method of claim 5, wherein in the correspondence, the first duty cycle is inversely related to a first difference value, the first difference value being a difference value between the second duration threshold and the first duration threshold, and, The first duty ratio is positively correlated with a second difference value, and the second difference value is a difference value between the second duration threshold value and the residual playing duration.
  7. 7. The method of claim 5, wherein the client information includes a current video rate of the client, and wherein the maximum value of the first duty cycle in the correspondence is obtained by: acquiring a first bandwidth corresponding to a data transmission path except the second transmission path in the at least two data transmission paths and a second bandwidth corresponding to the second transmission path; obtaining the bandwidth demand of the data stream based on the current video code rate, and obtaining a third difference value between the second bandwidth and the bandwidth demand; A maximum value of the first duty cycle is determined based on the third difference and the first bandwidth.
  8. 8. A data scheduling apparatus comprising: The stream type acquisition module is used for acquiring the stream type of the data stream to be scheduled, wherein the stream type comprises a play stream type or a pre-loading stream type; A transmission path determining module, configured to determine a data transmission path corresponding to the data stream from at least two preset data transmission paths based on a stream type to which the data stream belongs, where a network quality of the data transmission path corresponding to the play stream type is not lower than a network quality of the data transmission path corresponding to the preloaded stream type; And the data packet sending module is used for sending the data packet in the data stream to the client corresponding to the data stream based on the data transmission path corresponding to the data stream.
  9. 9. An electronic device, the electronic device comprising: a storage device having a computer program stored thereon; Processing means for executing said computer program in said storage means to carry out the steps of the data scheduling method of any one of claims 1-7.
  10. 10. A computer readable storage medium storing a computer program which, when executed by a processor, implements the data scheduling method of any one of claims 1-7.
  11. 11. A computer program product comprising a computer program which, when executed by a processor, implements the data scheduling method of any one of claims 1-7.

Description

Data scheduling method, device, equipment and medium Technical Field The present application relates to the field of computer technologies, and in particular, to a data scheduling method, apparatus, device, and medium. Background In the video playing process, the video is generally divided into a plurality of segments for transmission, and because the bandwidth of a single path is limited and the quality is easily affected by fluctuation, the high concurrent transmission requirement is difficult to meet, so that the transmission of a plurality of data streams through a plurality of data transmission paths is supported at present, however, the inventor finds that the data scheduling mode adopted by the related technology is poor, such as the problem that the data packets in the data streams arrive at a client side in disorder and video playing is blocked and the like is generally easy to occur. Disclosure of Invention In order to solve the technical problems described above or at least partially solve the technical problems described above, the present application provides a data scheduling method, apparatus, device and medium. The application provides a data scheduling method, which comprises the steps of obtaining a stream type of a data stream to be scheduled, wherein the stream type comprises a play stream type or a pre-load stream type, determining a data transmission path corresponding to the data stream from at least two preset data transmission paths based on the stream type of the data stream, wherein the network quality of the data transmission path corresponding to the play stream type is not lower than that of the data transmission path corresponding to the pre-load stream type, and sending data packets in the data stream to a client corresponding to the data stream based on the data transmission path corresponding to the data stream. The application further provides a data scheduling device, which comprises a stream type acquisition module and a data packet sending module, wherein the stream type acquisition module is used for acquiring the stream type of a data stream to be scheduled, the stream type comprises a play stream type or a pre-loading stream type, the transmission path determination module is used for determining a data transmission path corresponding to the data stream from at least two preset data transmission paths based on the stream type of the data stream, the network quality of the data transmission path corresponding to the play stream type is not lower than the network quality of the data transmission path corresponding to the pre-loading stream type, and the data packet sending module is used for sending data packets in the data stream to a client corresponding to the data stream based on the data transmission path corresponding to the data stream. In a third aspect, the application also provides an electronic device, which comprises a storage device and a processing device, wherein the storage device is used for storing a computer program, and the processing device is used for executing the computer program in the storage device so as to realize the data scheduling method provided by the application. In a fourth aspect, the present application also provides a computer readable storage medium storing a computer program for executing the data scheduling method as provided by the present application. In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements a data scheduling method as provided by the application. According to the technical scheme, the data packets in different data streams are not uniformly scattered and then are transmitted in parallel through the plurality of data transmission paths, the types of the data streams are distinguished, the corresponding data transmission paths of the data streams are determined from at least two preset data transmission paths according to the play stream type and the pre-load stream type, and then the data packets of the data streams are transmitted only based on the data transmission paths corresponding to the data streams, so that the problem that the data packets arrive at a client in disorder is effectively solved. It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows. Drawings The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the application or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be brief