WO2016184230A1 - Procédé et appareil de téléchargement vers l'aval de données de poste-à-poste - Google Patents

Procédé et appareil de téléchargement vers l'aval de données de poste-à-poste Download PDF

Info

Publication number
WO2016184230A1
WO2016184230A1 PCT/CN2016/076065 CN2016076065W WO2016184230A1 WO 2016184230 A1 WO2016184230 A1 WO 2016184230A1 CN 2016076065 W CN2016076065 W CN 2016076065W WO 2016184230 A1 WO2016184230 A1 WO 2016184230A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
initial
cdn
probability
download
Prior art date
Application number
PCT/CN2016/076065
Other languages
English (en)
Chinese (zh)
Inventor
李卓
魏帆
Original Assignee
乐视云计算有限公司
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 乐视云计算有限公司 filed Critical 乐视云计算有限公司
Publication of WO2016184230A1 publication Critical patent/WO2016184230A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/23805Controlling the feeding rate to the network, e.g. by controlling the video pump
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests

Definitions

  • the present invention relates to computer communication technologies, and in particular, to a method and apparatus for P2P data downloading.
  • the client player downloads video data from a CDN (Content Delivery Network) server via the http (HyperText Transfer Protocol) protocol for online playback.
  • CDN Content Delivery Network
  • http HyperText Transfer Protocol
  • the client player adopts a P2P (peer-to-peer) download function (ie, the client player). Sharing data with other client players, the client player can download video data that is not in the client player from other client players, and other client players can download other clients from the client player. Video data not available in the player).
  • the current P2P data downloading method is as follows: Referring to FIG.
  • the emergency zone and the P2P download zone are sequentially set in the positive direction of the playback point of the client player, wherein the video data of the emergency zone is to be played by the client player.
  • Video data, so the video data in the emergency area is mainly downloaded directly from the CDN server.
  • the video data in the P2P download area is mainly downloaded from other client players.
  • Each square in the emergency area and the P2P download area represents a data block.
  • the data block is the basic data unit for video playback, http download, P2P download and sharing.
  • the current P2P data download method is specifically as follows: when setting the P2P download area, each data block in the P2P download area is once selected with a probability of n%, and selected. Video data in the data block from the CDN server Load, this will make the difference between the video player data generated by each client player (that is, I have no video data others, others have video data I did not), so that in the live state, each client player Have the opportunity to share data.
  • the network bandwidth of each client player is different, and the rate of downloading video data from the CDN server is also different. If each client player has a fixed value of n%, the network bandwidth is small. The low-speed client player takes a long time to download the video data from the CDN server, which affects the P2P sharing data; and regardless of the total number of client players that are simultaneously broadcasted, each client player is selected. A fixed value of n% is likely to cause excessive video data to be downloaded from the CDN server, which hinders further improvement of the P2P download rate. For example, the selection probability is set to 20%, and when there are more client players watching the same live program. If it reaches 10,000, in theory, the selection probability of each client player only needs to be 0.01%. By P2P sharing data, each client player can obtain all the video data needed for the live program, if the probability is selected. Fixed at 20%, inevitably caused too much video data to be downloaded from the CDN server.
  • the present invention provides a P2P data downloading method and device, which can balance different network bandwidth network speed client players, can better perform P2P sharing data; and can realize P2P download rate. Further improvement.
  • the present invention discloses a method for P2P data downloading, the method comprising:
  • an initial CDN download probability indicates a probability that video data in the initially set data block in the P2P download area is selected to be downloaded from the CDN server;
  • the current network status parameter includes a current P2P upload rate and current P2P traffic. Ratio and current P2P upload volume; get current network status parameters, including:
  • the initial network condition parameter includes an initial P2P upload rate, an initial P2P traffic ratio, and a CDN prefetch data amount, and the CDN prefetch data amount is according to the current P2P download amount, the current CDN download amount, and the The initial CDN download probability is obtained; obtaining the initial CDN download probability and the initial network condition parameter includes: obtaining an initial CDN download probability returned by the play server, and initializing the initial P2P upload rate, the initial P2P traffic ratio, and the CDN download probability update ratio.
  • the current P2P upload rate is greater than the initial P2P upload rate, the current P2P traffic ratio is greater than or equal to the initial P2P traffic ratio, and the current P2P upload amount is greater than or equal to the CDN prefetched data amount,
  • the initial CDN download probability is increased according to the CDN download probability update ratio, and the current CDN download probability is obtained, and the current P2P upload rate is used as the initial P2P upload rate and the current P2P traffic ratio as the initial P2P traffic;
  • Recalculating the current P2P upload rate and the current P2P traffic if the current P2P upload rate is less than a preset ratio of the initial P2P upload rate, or the current P2P upload amount is less than the CDN prefetch data amount. And the current P2P upload amount, re-acquiring the initial CDN download probability, and initializing the initial network status parameter, and initializing the CDN download probability update ratio to a preset value;
  • the initial CDN download probability is reduced according to the CDN download probability update ratio, and the obtained The current CDN download probability is described, and the current P2P upload rate is used as the initial P2P upload rate and the current P2P traffic ratio is used as the initial P2P traffic.
  • the CDN download probability update ratio is preset, or in the current P2P When the upload rate is less than the initial P2P upload rate and greater than the preset ratio of the initial P2P upload rate, it is obtained according to a preset ratio reduction. Further, the initial CDN download probability is preset and is less than or equal to 50%.
  • the current P2P download quantity, the current P2P upload quantity, and the current CDN download quantity in the preset preset time interval include the following steps:
  • B3 determining whether the time of the second timer is greater than or equal to a second preset time interval, if greater than or equal to the second preset time interval, executing b5; otherwise, executing b4;
  • B4 clear the statistical time of the first timer, the first timer restarts the statistical time, and then executes b2;
  • B6 Calculate the current P2P download amount, the current P2P upload amount, and the current CDN download amount in the statistical time of the second timer.
  • the method further includes:
  • the current CDN download probability is used as an initial CDN download probability and the current network status parameter as an initial network status parameter.
  • the present invention also discloses an apparatus for downloading P2P data, the apparatus comprising:
  • An obtaining module configured to obtain an initial CDN download probability, an initial network status parameter, and a current network status parameter; wherein the initial CDN download probability indicates that video data in a data block in an initially set P2P download area is selected from a CDN server The probability of downloading;
  • a processing module configured to perform the current network status parameter and the initial network status parameter Comparing, according to the comparison result, updating the initial CDN download probability to obtain a current CDN download probability
  • a downloading module configured to select video data in the data block in the P2P download area to be downloaded from the CDN server according to the current CDN download probability.
  • the current network status parameter includes a current P2P upload rate, a current P2P traffic ratio, and a current P2P upload amount;
  • the obtaining module further includes: a statistics unit and a calculating unit;
  • the statistics unit is configured to count the current P2P download amount, the current P2P upload amount, and the current CDN download amount in the preset time interval;
  • the calculating unit is configured to calculate the current P2P upload rate and the current P2P traffic ratio according to the current P2P download amount, the current P2P upload amount, and the current CDN download amount.
  • the initial network condition parameter includes an initial P2P upload rate, an initial P2P traffic ratio, and a CDN prefetch data amount, and the CDN prefetch data amount is according to the current P2P download amount, the current CDN download amount, and the The initial CDN download probability is obtained; obtaining the initial CDN download probability and the initial network condition parameter includes: obtaining an initial CDN download probability returned by the play server, and initializing the initial P2P upload rate, the initial P2P traffic ratio, and the CDN download probability update ratio.
  • the processing module further includes: a probability adjustment unit,
  • the probability adjustment unit is configured to: if the current P2P upload rate is greater than the initial P2P upload rate, the current P2P traffic ratio is greater than or equal to the initial P2P traffic ratio, and the current P2P upload amount is greater than or equal to the CDN pre- Taking the amount of data, the initial CDN download probability is increased according to the CDN download probability update ratio, and the current CDN download probability is obtained, and the current P2P upload rate is used as the initial P2P upload rate. Describe the current P2P traffic ratio as the initial P2P traffic;
  • the probability adjustment unit is further configured to re-acquire the initial if the current P2P upload rate is less than a preset ratio of the initial P2P upload rate, or the current P2P upload amount is less than the CDN prefetch data amount.
  • the CDN downloads the probability, and initializes the initial network condition parameter, and initializes the CDN download probability update ratio to a preset value;
  • the probability adjustment unit is further configured to: if the current P2P upload rate is smaller than the initial P2P If the upload rate is greater than the preset ratio of the initial P2P upload rate, the initial CDN download probability is reduced according to the CDN download probability update ratio, and the current CDN download probability is obtained, and the current P2P is obtained.
  • the upload rate is used as the initial P2P upload rate and the current P2P traffic ratio as the initial P2P traffic.
  • the statistics unit is further configured to perform the following steps:
  • B3 determining whether the time of the second timer is greater than or equal to a second preset time interval, if greater than or equal to the second preset time interval, executing b5; otherwise, executing b4;
  • B4 clear the statistical time of the first timer, the first timer restarts the statistical time, and then executes b2;
  • B6 Calculate the current P2P download amount, the current P2P upload amount, and the current CDN download amount in the statistical time of the second timer.
  • the CDN download probability update ratio is preset, or is decreased according to a preset ratio when the current P2P upload rate is smaller than the initial P2P upload rate and greater than a preset ratio of the initial P2P upload rate. obtain.
  • the initial CDN download probability is preset and is less than or equal to 50%.
  • the acquiring module is configured to: after the downloading module selects video data in the data block in the P2P download area to be downloaded from the CDN server, use the current CDN download probability as an initial CDN download probability,
  • the current network status parameter is used as an initial network status parameter.
  • the method and device for downloading P2P data provided by the invention: setting the CDN download probability according to the network condition, so that the client player with high network bandwidth and high network speed has a greater chance to download more video data from the CDN server, and the network bandwidth is small.
  • the low-speed client player downloads very little video data from the CDN server, and can balance different network bandwidth speeds of the client player, which can better enter
  • the P2P shares data and the CDN download probability of different client players is dynamically changed according to the previous CDN download probability, and it is not easy to cause excessive video data to be downloaded from the CDN server, and the P2P download rate can be further improved.
  • FIG. 1 is a flow chart of an embodiment of a method for downloading P2P data according to the present invention
  • FIG. 2 is a flow chart of another embodiment of a method for downloading P2P data according to the present invention.
  • FIG. 3 is a flow chart of still another embodiment of a method for downloading P2P data according to the present invention.
  • FIG. 4 is a flow chart of still another embodiment of a method for downloading P2P data according to the present invention.
  • FIG. 5 is a flowchart of still another embodiment of a method for downloading P2P data according to the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of a device for downloading P2P data according to the present invention.
  • first device if a first device is coupled to a second device, the first device can be directly electrically coupled to the second device, or electrically coupled indirectly through other devices or coupling means. Connected to the second device.
  • FIG. 1 is a schematic diagram of a P2P data downloading method according to Embodiment 1 of the present invention; as shown in FIG. 1 , it may specifically include:
  • S101 Acquire initial CDN download probability, initial network status parameter, and current network status parameter; wherein, the initial CDN download probability indicates a probability that video data in the initially set data block in the P2P download area is selected to be downloaded from the CDN server.
  • the initial network condition parameter may include an initial P2P upload rate, an initial P2P traffic ratio, and a CDN prefetch data amount.
  • the current network status parameter may include a current P2P upload rate, a current P2P traffic ratio, and a current P2P upload amount.
  • S102 Compare the current network status parameter with the initial network status parameter, and update the initial CDN download probability according to the comparison result to obtain a current CDN download probability.
  • the initial CDN download probability can be improved. Obtaining the current CDN download probability, increasing the probability that the video data in the data block in the P2P download area is downloaded from the CDN server. If the current network condition is worse than the initial network condition, the initial CDN download probability can be reduced to obtain the current CDN download probability, and the probability is reduced. The probability that the video data in the data block in the P2P download area is downloaded from the CDN server, so that the network player with good network status can download more video data from the CDN server and share it to the client with poor network status. The player is used.
  • S103 Select video data in the data block in the P2P download area to be downloaded from the CDN server according to the current CDN download probability.
  • the current CDN download probability in this embodiment is performed on the initial CDN download probability.
  • the update obtained, that is, the CDN download probability in this embodiment is not fixed, but is changed in real time according to the current network condition.
  • the P2P data downloading method described in this embodiment sets the CDN download probability according to the network condition, so that the client player with high network bandwidth and high network speed has a greater chance to download more video data from the CDN server, and the network bandwidth is small.
  • the low-speed client player downloads very little video data from the CDN server can balance different network bandwidth network speed client players, can better P2P share data; and, different client player CDN
  • the download probability is dynamically changed according to the previous CDN download probability, and it is not easy to cause excessive video data to be downloaded from the CDN server, and the P2P download rate can be further improved.
  • the initial network condition parameter includes an initial P2P upload rate, an initial P2P traffic ratio, and a CDN prefetch data amount
  • the current network status parameter includes a current P2P upload rate, a current P2P traffic ratio, and a current P2P upload. See Figure 2, S101 obtains the initial CDN download probability, initial network status parameters, and current network status parameters, including:
  • S101a Acquire an initial CDN download probability returned by the playback server, and initialize an initial P2P upload rate, an initial P2P traffic ratio, and a CDN download probability update ratio.
  • the play server may set an initial CDN download probability.
  • the initial CDN download probability may be obtained from the play server, and the video in a data block in the P2P download area is first selected by using the initial CDN download probability. Whether the data is downloaded from the CDN server.
  • the value of the initial CDN downloading probability can be set according to the actual application status, for example, it can be set to 10%, 15%, etc., which is not specifically limited.
  • the P2P traffic ratio is: (P2P traffic/video traffic)%, wherein the P2P traffic represents the sum of the P2P download amount and the P2P upload amount in a certain period of time, and the video traffic indicates the CDN download amount and the P2P download amount in a certain period of time. Sum.
  • the P2P upload rate is (P2P upload amount/video traffic)%.
  • the initial P2P upload rate, the initial P2P traffic ratio, and the CDN download probability update ratio are initialized, and the initial P2P upload rate, the initial P2P traffic ratio, and the CDN download probability update ratio are set to initial values, an initial P2P upload rate, and an initial.
  • P2P traffic ratio and CDN download probability The initial value of the update ratio may be set according to the actual application status. In this embodiment, the initial value of the initial P2P upload rate and the initial P2P traffic ratio is set to 0, and the initial value of the CDN download probability update ratio is set to 5%.
  • S101b Statistics the current P2P download amount, the current P2P upload amount, and the current CDN download amount in the preset time interval.
  • the preset time interval may be set according to actual application conditions, such as setting to 90 seconds, 100 seconds, 270 seconds, and the like. Moreover, the preset time interval can be set not only as a fixed interval but also as a changeable one.
  • the statistics are started when the P2P engine successfully establishes a connection with the play server and determines that the p2p data interaction can be performed.
  • the current P2P download amount, the current P2P upload amount, and the current CDN download in the preset time interval are counted in this embodiment.
  • the method of quantity is as follows:
  • the first preset time interval and the second preset time interval are set, and the second preset time interval is greater than the first preset time interval.
  • the current P2P download amount, the current P2P upload amount, and the current CDN download amount are not necessarily calculated.
  • the second preset time interval is reached, the current P2P download amount and the current P2P upload must be calculated. Volume and current CDN downloads.
  • the first timer and the second timer are set to start timing at the same time.
  • the first preset time interval may be set according to an actual application condition, which is not limited thereto, and is set to 90 seconds in this embodiment.
  • the preset statistical end probability is used to determine whether to end the statistics of the first timer.
  • the preset statistical end probability may be set according to the actual application status, which is not limited, and is set to 50% in this embodiment.
  • B3 determining whether the time of the second timer is greater than or equal to the second preset time interval, if greater than Equal to the second preset time interval, then b5 is performed; otherwise, b4 is executed.
  • the second preset time interval is greater than the first preset time interval, and the second preset time interval may be set according to the actual application condition, which is not limited thereto, and is set to 270 seconds in this embodiment.
  • B4 The statistical time of the first timer is cleared, the first timer restarts the counting time, and then b2 is executed.
  • B6 Calculate the current P2P download amount, the current P2P upload amount, and the current CDN download amount in the statistical time of the second timer.
  • S101c Calculate the current P2P upload rate and the current P2P traffic ratio according to the current P2P download amount, the current P2P upload amount, and the current CDN download amount.
  • the P2P traffic ratio is: (P2P traffic/video traffic)%, wherein the P2P traffic represents the sum of the P2P download amount and the P2P upload amount in a certain period of time, and the video traffic indicates the CDN download amount and the P2P download amount in a certain period of time. Sum. Therefore, the current P2P download amount and the current P2P upload amount are summed to obtain the current P2P traffic, the current P2P download amount and the current CDN download amount are summed to obtain the current video traffic, and the current P2P traffic ratio is obtained through the current P2P traffic and the current video traffic.
  • the current P2P traffic is summed to obtain the current P2P traffic, and the current P2P traffic and the current CDN download are summed to obtain the current video traffic, and the current P2P traffic ratio is obtained according to the current P2P traffic and the current video traffic.
  • the P2P upload rate is (P2P upload amount/video traffic)%. Therefore, according to the current P2P upload amount and the current video traffic obtained above, the current P2P upload rate is obtained.
  • S101d Calculate the CDN prefetch data amount according to the current P2P download amount, the current CDN download amount, and the initial CDN download probability.
  • the CDN prefetch data amount indicates that the amount of data downloaded from the CDN is selected by the CDN download probability within a certain period of time, and the CDN prefetch data amount is: CDN download probability* video traffic.
  • the current P2P download amount and the current CDN download amount are summed to obtain the current video traffic, and the initial CDN prefetch data amount is: initial CDN download probability* current video traffic.
  • the P2P data downloading method described in this embodiment sets the CDN download probability according to the network condition.
  • the client player with high network bandwidth and high network speed has a greater chance of downloading more video data from the CDN server, and the network player with low network speed and low network speed downloads a small amount of video data from the CDN server, which can balance different
  • the network bandwidth network speed client player can better perform P2P sharing data; and the CDN download probability of different client players is dynamically changed according to the previous CDN download probability, which is not easy to be downloaded from the CDN server. More video data can further improve the P2P download rate.
  • the initial network status parameters include the initial P2P upload rate, the initial P2P traffic ratio, and the CDN prefetch data volume.
  • the current network status parameters include the current P2P upload rate, the current P2P traffic ratio, and the current P2P upload amount, the P2P upload rate, the P2P traffic ratio, and the P2P.
  • the amount of uploading and the amount of CDN prefetched data are conveniently obtained, and the present invention is facilitated.
  • S102 compares the current network status parameter with the initial network status parameter, and updates the initial CDN download probability according to the comparison result to obtain the current CDN download probability, including:
  • S102a Compare the current P2P upload rate, the current P2P traffic ratio, and the current P2P upload amount with the initial P2P upload rate, the initial P2P traffic ratio, and the CDN prefetch data amount, respectively, if the current P2P upload rate is greater than the initial P2P upload rate, current If the P2P traffic ratio is greater than or equal to the initial P2P traffic ratio and the current P2P upload amount is greater than or equal to the CDN prefetch data volume, execute S102b; if the current P2P upload rate is less than the preset ratio of the initial P2P upload rate, or the current P2P upload amount is less than the CDN prefetch For the amount of data, S101a is performed; if the current P2P upload rate is less than the initial P2P upload rate and greater than the preset ratio of the initial P2P upload rate, then S102c is performed.
  • the preset ratio of the initial P2P upload rate that is, a part of the initial P2P upload rate, if the preset ratio is 80%, the current P2P upload rate is less than 80% of the initial P2P upload rate.
  • the preset ratio is not limited to 80%, and can be set according to the actual application. This is not specifically limited.
  • the current P2P upload rate is less than the preset ratio of the initial P2P upload rate, or the current P2P upload amount is less than the CDN prefetch data amount, execute S101a, that is, re-acquire the initial CDN download probability, and initialize the initial network status parameter, and initialize
  • the CDN download probability update ratio is a preset value.
  • S102b The initial CDN download probability is increased according to the CDN download probability update ratio, and the current CDN download probability is obtained, and the current P2P upload rate is used as the initial P2P upload rate and the current P2P traffic ratio is used as the initial P2P traffic, and then S103 is performed.
  • S102c The initial CDN download probability is reduced according to the CDN download probability update ratio, and the current CDN download probability is obtained, and the current P2P upload rate is used as the initial P2P upload rate and the current P2P traffic ratio is used as the initial P2P traffic, and then S103 is performed. .
  • the CDN download probability update ratio is preset, or is obtained according to a preset ratio decrease when the current P2P upload rate is less than the initial P2P upload rate and greater than the preset ratio of the initial P2P upload rate.
  • the reduction according to the preset ratio may be set according to the actual application status, for example, it may be set to be reduced to 1/2, 1/3, etc., which is not specifically limited.
  • the CDN download probability update ratio is first reduced according to the preset ratio, and then the initial CDN download probability is reduced according to the CDN download probability update ratio.
  • the initial CDN download probability is first reduced according to the CDN download probability update ratio, and then the CDN download probability update ratio is further reduced according to the preset ratio.
  • the initial CDN download probability is preset and is 50% or less, and the maximum setting is 50% because theoretically, the implementation of p2p data download requires at least two nodes, and the 50% probability can be guaranteed in two. Nodes can download the data needed by the other party and share it with each other.
  • the range of the CDN download probability is set in advance, after the current CDN download probability is obtained by performing S102b, S102d, it is also required to determine whether the current CDN download probability is within the range of the CDN download probability, if not within the range of the CDN download probability, Then, the current CDN download probability needs to be limited to the range of the CDN download probability, and then the subsequent operations are performed.
  • the current CDN download probability may be the largest of the CDN download probabilities, such as the current CDN download probability is greater than The smallest CDN download probability can take the current CDN download probability as the smallest of the CDN download probabilities.
  • the range of the CDN downloading probability is not limited to the above-mentioned range of values, and may be set according to actual application conditions, which is not limited thereto.
  • the P2P data downloading method described in this embodiment sets the CDN download probability according to the network condition, so that the client player with high network bandwidth and high network speed has a greater chance to download more video data from the CDN server, and the network bandwidth is small.
  • the low-speed client player downloads very little video data from the CDN server can balance different network bandwidth network speed client players, can better P2P share data; and, different client player CDN
  • the download probability is dynamically changed according to the previous CDN download probability, and it is not easy to cause excessive video data to be downloaded from the CDN server, and the P2P download rate can be further improved.
  • the range of CDN download probabilities can be preset, and the CDN download probability can be controlled within a certain range to avoid downloading too much video data from the CDN server.
  • the S103 further includes:
  • S104 The current CDN download probability is used as the initial CDN download probability and the current network status parameter as the initial network status parameter, and then the step of acquiring the initial CDN download probability, the initial network status parameter, and the current network status parameter is performed by S101.
  • the operation is repeated repeatedly to adjust the CDN download probability at any time according to the network condition, so that the CDN download probability
  • the P2P data downloading method described in this embodiment sets the CDN download probability according to the network condition, so that the client player with high network bandwidth and high network speed has a greater chance to download more from the CDN server.
  • Video data, network bandwidth, low network speed, low-speed client player downloads very little video data from CDN server can balance different network bandwidth network speed client player, can better P2P share data; and, different
  • the CDN download probability of the client player is dynamically changed according to the previous CDN download probability, and it is not easy to cause excessive video data to be downloaded from the CDN server, and the P2P download rate can be further improved. Repeated operations, dynamically change the CDN download probability in real time, and make better use of the current network status of the client player.
  • the fifth embodiment of the present invention provides a device for downloading P2P data.
  • the method may specifically include:
  • the obtaining module 201 is configured to obtain an initial CDN download probability, an initial network status parameter, and a current network status parameter, where the initial CDN download probability indicates that the video data in the data block in the initially set P2P download area is selected from the CDN server. Probability of downloading;
  • the processing module 202 is configured to compare the current network status parameter with the initial network status parameter, and update the initial CDN download probability according to the comparison result to obtain a current CDN download probability;
  • the downloading module 203 is configured to select video data in the data block in the P2P download area to be downloaded from the CDN server according to the current CDN download probability.
  • the current network status parameter includes a current P2P upload rate, a current P2P traffic ratio, and a current P2P upload amount;
  • the obtaining module 201 further includes: a statistics unit and a calculating unit;
  • the statistics unit is configured to count the current P2P download amount, the current P2P upload amount, and the current CDN download amount in the preset time interval;
  • the calculating unit is configured to calculate a current P2P upload rate and a current P2P traffic ratio according to the current P2P download amount, the current P2P upload amount, and the current CDN download amount.
  • the initial network condition parameter includes an initial P2P upload rate, an initial P2P traffic ratio, and a CDN prefetch data amount, and the CDN prefetch data amount is calculated according to the current P2P download amount, the current CDN download amount, and the initial CDN download probability, and the processing module 202 Further comprising: a probability adjustment unit,
  • the current P2P upload rate is greater than the initial P2P upload rate, the current P2P If the traffic ratio is greater than or equal to the initial P2P traffic ratio and the current P2P upload amount is greater than or equal to the CDN prefetch data volume, the initial CDN download probability is increased according to the CDN download probability update ratio, and the current CDN download probability is obtained, and the current P2P upload rate is made.
  • the initial P2P upload rate and the current P2P traffic ratio are used as initial P2P traffic;
  • the probability adjustment unit is further configured to: if the current P2P upload rate is less than a preset ratio of the initial P2P upload rate, or the current P2P upload amount is less than the CDN prefetch data amount, re-acquire the initial CDN download probability, and initialize the initial network status parameter, and initialize
  • the CDN download probability update ratio is a preset value
  • the probability adjustment unit is further configured to: if the current P2P upload rate is less than the initial P2P upload rate and greater than the preset ratio of the initial P2P upload rate, reduce the initial CDN download probability according to the CDN download probability update ratio, and obtain the current CDN download probability. And the current P2P upload rate is used as the initial P2P upload rate and the current P2P traffic ratio as the initial P2P traffic.
  • the CDN download probability update ratio is preset, or is obtained according to a preset ratio decrease when the current P2P upload rate is less than the initial P2P upload rate and greater than the preset ratio of the initial P2P upload rate.
  • the initial CDN download probability is preset and is 50% or less.
  • the device for downloading P2P data sets the CDN download probability according to the network condition, so that the client player with high network bandwidth and high network speed has a greater chance of downloading more video data and network bandwidth from the CDN server.
  • the low-speed client player downloads very little video data from the CDN server, can balance different network bandwidth network speed client players, can better P2P share data; and, different client player CDN
  • the download probability is dynamically changed according to the previous CDN download probability, and it is not easy to cause excessive video data to be downloaded from the CDN server, and the P2P download rate can be further improved.
  • the initial network status parameters include the initial P2P upload rate, the initial P2P traffic ratio, and the CDN prefetch data volume.
  • the current network status parameters include the current P2P upload rate, the current P2P traffic ratio, and the current P2P upload amount, the P2P upload rate, the P2P traffic ratio, and the P2P.
  • the amount of uploading and the amount of CDN prefetched data are conveniently obtained, and the present invention is facilitated. Repeated operations, dynamically change the CDN download probability in real time, and make better use of the current network status of the client player.
  • the device corresponds to the foregoing method flow description, and the deficiencies refer to the description of the above method flow, and will not be further described.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

L'invention concerne un procédé et un appareil de téléchargement vers l'aval de données de poste-à-poste, appartenant au domaine technique des communications informatiques. Le procédé comprend les étapes consistant à : acquérir une probabilité de téléchargement vers l'aval CDN initiale, un paramètre d'état de réseau initial et un paramètre d'état de réseau actuel, la probabilité de téléchargement vers l'aval CDN initiale indiquant une probabilité initialement définie que des données vidéo dans un bloc de données d'une région de téléchargement vers l'aval P2P soient choisies pour être chargées vers l'aval depuis un serveur CDN; comparer le paramètre d'état de réseau actuel au paramètre d'état de réseau initial, et mettre à jour la probabilité de téléchargement vers l'aval CDN initiale pour obtenir une probabilité de téléchargement vers l'aval CDN actuelle d'après un résultat de comparaison; et choisir de charger vers l'aval les données vidéo dans le bloc de données de la région de téléchargement vers l'aval P2P à partir du serveur CDN d'après la probabilité de téléchargement vers l'aval CDN actuelle. L'appareil comprend un module d'acquisition, un module de détermination, et un module de téléchargement vers l'aval. L'invention permet un meilleur partage de données P2P, et améliore en outre un débit de téléchargement vers l'aval P2P.
PCT/CN2016/076065 2015-05-15 2016-03-10 Procédé et appareil de téléchargement vers l'aval de données de poste-à-poste WO2016184230A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510250676.0 2015-05-15
CN201510250676.0A CN105721889A (zh) 2015-05-15 2015-05-15 P2p数据下载的方法和装置

Publications (1)

Publication Number Publication Date
WO2016184230A1 true WO2016184230A1 (fr) 2016-11-24

Family

ID=56144724

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076065 WO2016184230A1 (fr) 2015-05-15 2016-03-10 Procédé et appareil de téléchargement vers l'aval de données de poste-à-poste

Country Status (2)

Country Link
CN (1) CN105721889A (fr)
WO (1) WO2016184230A1 (fr)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372100A (zh) * 2020-04-21 2020-07-03 白杨 一种基于分布式选举的端到端内容分发网络系统和分发方法
CN112469008A (zh) * 2020-11-27 2021-03-09 重庆电讯职业学院 基于d2d可靠性的内容分发方法及装置
CN114666609A (zh) * 2022-03-31 2022-06-24 北京奇艺世纪科技有限公司 视频数据下载方法、装置、电子设备及存储介质
CN116320507A (zh) * 2023-05-26 2023-06-23 湖南快乐阳光互动娱乐传媒有限公司 一种视频数据下载方法及装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979644B (zh) * 2017-11-30 2019-02-26 掌阅科技股份有限公司 防止高并发的信息包下载方法、电子设备、存储介质
CN109412959B (zh) * 2018-09-10 2022-08-16 广州小鹏汽车科技有限公司 一种车辆ota升级限流控制方法、系统和装置
CN114390349B (zh) * 2020-10-22 2024-05-17 北京神州数码云科信息技术有限公司 一种视频播放控制方法、装置、终端和存储介质
CN114827649B (zh) * 2022-04-22 2024-02-23 上海哔哩哔哩科技有限公司 构建直播对等网络的方法及装置、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882925A (zh) * 2011-08-05 2013-01-16 新游网络科技有限公司 文件下载网络的分散控制装置及其方法
US20140172979A1 (en) * 2012-12-19 2014-06-19 Peerialism AB Multiple Requests for Content Download in a Live Streaming P2P Network
CN104348647A (zh) * 2013-07-31 2015-02-11 腾讯科技(深圳)有限公司 多源带宽调度方法、装置及系统
CN104506929A (zh) * 2014-12-26 2015-04-08 电子科技大学 P2p系统混合数据调度方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841556B (zh) * 2010-02-23 2013-01-30 中国科学院计算技术研究所 Cdn-p2p网络中放置资源副本的方法及系统
CN101895577B (zh) * 2010-07-06 2013-02-13 中国科学院计算技术研究所 网络共享资源的分配方法
CN102333106B (zh) * 2010-07-13 2015-07-29 中国移动通信集团公司 一种p2p系统资源调度方法及其装置和系统
IN2014CN02507A (fr) * 2011-10-05 2015-06-19 Peerialism AB
CN103049452B (zh) * 2011-10-14 2017-12-26 百度在线网络技术(北京)有限公司 一种基于预估下载率进行应用排序的方法与设备
CN103179145B (zh) * 2011-12-20 2016-04-06 中国电信股份有限公司 基于云计算的数据传输方法、系统及隐式内容服务器
CN103997522B (zh) * 2014-05-16 2018-01-23 广州金山网络科技有限公司 一种内容分发网络流量控制方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882925A (zh) * 2011-08-05 2013-01-16 新游网络科技有限公司 文件下载网络的分散控制装置及其方法
US20140172979A1 (en) * 2012-12-19 2014-06-19 Peerialism AB Multiple Requests for Content Download in a Live Streaming P2P Network
CN104348647A (zh) * 2013-07-31 2015-02-11 腾讯科技(深圳)有限公司 多源带宽调度方法、装置及系统
CN104506929A (zh) * 2014-12-26 2015-04-08 电子科技大学 P2p系统混合数据调度方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372100A (zh) * 2020-04-21 2020-07-03 白杨 一种基于分布式选举的端到端内容分发网络系统和分发方法
CN112469008A (zh) * 2020-11-27 2021-03-09 重庆电讯职业学院 基于d2d可靠性的内容分发方法及装置
CN112469008B (zh) * 2020-11-27 2022-07-05 重庆电讯职业学院 基于d2d可靠性的内容分发方法及装置
CN114666609A (zh) * 2022-03-31 2022-06-24 北京奇艺世纪科技有限公司 视频数据下载方法、装置、电子设备及存储介质
CN116320507A (zh) * 2023-05-26 2023-06-23 湖南快乐阳光互动娱乐传媒有限公司 一种视频数据下载方法及装置
CN116320507B (zh) * 2023-05-26 2023-08-08 湖南快乐阳光互动娱乐传媒有限公司 一种视频数据下载方法及装置

Also Published As

Publication number Publication date
CN105721889A (zh) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2016184230A1 (fr) Procédé et appareil de téléchargement vers l'aval de données de poste-à-poste
US10455013B2 (en) Peer-to-peer upload scheduling
US10659832B1 (en) Dynamic bitrate selection for streaming media
US8930559B2 (en) Adaptive hypertext transfer protocol (“HTTP”) media streaming systems and methods
KR102472155B1 (ko) 피어 투 피어(Peer to peer, P2P) 네트워크에서 스트리밍 콘텐츠를 방송하는 방법
US10827183B2 (en) System and method for optimal variable bit rate packing
CN110198495B (zh) 一种视频下载和播放的方法、装置、设备和存储介质
US10440082B1 (en) Adjusting parameter settings for bitrate selection algorithms
US20120324122A1 (en) Method and apparatus for server-side adaptive streaming
US11005975B2 (en) Rapid optimization of media stream bitrate
WO2014143631A1 (fr) Solution pour empêcher un arrêt de la lecture pendant une transmission multimédia en continu adaptative
EP3207686B1 (fr) Taux de bits adaptatifs pendant une transmission de diffusion dans des réseaux de fourniture de contenu distribués
WO2008104221A1 (fr) Procédé et appareil destinés à être utilisés dans un jeu sur serveur pour joueurs multiples
US9871716B2 (en) Broadcast readiness testing in distributed content delivery networks
EP2963896B1 (fr) Procédé pour faire fonctionner une mémoire cache disposée le long d'un trajet de transmission entre des terminaux clients et au moins un serveur, mémoire cache correspondante
CN106105145B (zh) 用于操作沿客户端终端和至少一个服务器之间的传输路径布置的缓存器的方法、及相应的缓存器
US10972761B2 (en) Minimizing stall duration tail probability in over-the-top streaming systems
Li et al. Measurement-based study on the relation between users’ watching behavior and network sharing in P2P VoD systems
CN113676739B (zh) 一种视频播放方法、装置、设备及存储介质
US8495238B1 (en) Facilitating self-tuning traffic shaping without a central traffic manager
US11102535B1 (en) Adjusting parameter settings for bitrate selection algorithms
Ma et al. Q-learning for Waiting Time Control in CDN/V2V Live streaming
CN112640373A (zh) 改善的拥塞响应
EP3205067A1 (fr) Procédé de diffusion de contenus en streaming dans un réseau pair à pair
US10051025B2 (en) Method and apparatus for estimating packet loss

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: 16795717

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.03.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16795717

Country of ref document: EP

Kind code of ref document: A1