CN104333816A - Method and device for determining download mode in P2P network - Google Patents

Method and device for determining download mode in P2P network Download PDF

Info

Publication number
CN104333816A
CN104333816A CN201410704897.6A CN201410704897A CN104333816A CN 104333816 A CN104333816 A CN 104333816A CN 201410704897 A CN201410704897 A CN 201410704897A CN 104333816 A CN104333816 A CN 104333816A
Authority
CN
China
Prior art keywords
data block
objective network
network video
weight factor
downloaded
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.)
Granted
Application number
CN201410704897.6A
Other languages
Chinese (zh)
Other versions
CN104333816B (en
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410704897.6A priority Critical patent/CN104333816B/en
Publication of CN104333816A publication Critical patent/CN104333816A/en
Application granted granted Critical
Publication of CN104333816B publication Critical patent/CN104333816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/632Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method and a device for determining a download mode in a P2P network. The method for determining the download mode in the P2P network comprises the following steps: obtaining data information corresponding to a target data block; determining the number of available nodes according to the weighted values of the number of outer network user nodes, the number of local area network user nodes and the number of CDN nodes; determining the product of a preset number of datum nodes, the determined first weight factor and the determined second weight factor as a judgment threshold according to the caching time of a target network video and the code rate of the target network video, respectively; determining the download mode of the target data block as a P2P download mode under the circumstance that the number of available nodes is not smaller than the judgment threshold. According to the method for determining the download mode in the P2P network, the corresponding target data block is downloaded in the P2P download mode as much as possible, and therefore, the stress on a CDN network is reduced and the server resources and the network bandwidth are saved.

Description

The defining method of downloading mode and device in a kind of P2P network
Technical field
The present invention relates to Internet technical field, particularly the defining method of downloading mode and device in a kind of P2P network.
Background technology
Along with the fast development of Internet technology, the demand that user watches Internet video online increases gradually, if the customer volume that the same time period watches Internet video online constantly increases, the load pressure of Website server or CDN server will be caused constantly to increase, Website server or CDN server may be caused time serious normally to use, affect the fluency that Internet video is play.
For alleviating the pressure of CDN, some video website supports use P2P technology to provide the download service of Internet video for user.The core of P2P technology be user as the while of client downloads Internet video also as server for other users upload Internet video.In P2P network, each user is as a node, and nodes is more, and the uploader of corresponding Internet video is more, has the chance of user's access websites server of this Internet video demand of viewing or CDN server also less.That is, use P2P to download and reduce the pressure of CDN, can reach simultaneously nodes more multicast put the faster effect of Internet video.
But, due to the uncertainty of user node in P2P network, although the support of a lot of video website uses P2P technology to carry out the download of Internet video, but reality does not effectively utilize P2P Internet Transmission Internet video, still select CDN to download and meet the Internet video that P2P downloads condition, waste unnecessary server resource and the network bandwidth.
Summary of the invention
For solving the problem, the embodiment of the invention discloses defining method and the device of downloading mode in a kind of P2P network.Technical scheme is as follows:
A defining method for downloading mode in P2P network, comprising:
Obtain the data message that target data block is corresponding, described target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Described data message at least comprises: the buffer memory duration of described objective network video, with described first user not same local area network (LAN) external user nodes, with the code check of described first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and described objective network video;
According to the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number, determine that available section is counted;
Respectively according to the buffer memory duration of described objective network video and the code check of described objective network video, determine the first weight factor and second weight factor of the datum node number preset;
The product of described default datum node number, described first weight factor and described second weight factor is defined as judgment threshold;
When described available section count be not less than described judgment threshold, the downloading mode of described target data block is defined as P2P download.
In a kind of embodiment of the present invention, the defining method of described target data block, comprising:
For the objective network video of first user viewing, obtain the positional information of data block to be downloaded in described objective network video;
According to the positional information obtained, determine that described data block to be downloaded is target data block.
In a kind of embodiment of the present invention, the described positional information according to obtaining, determine that described data block to be downloaded is target data block, comprising:
If described data block to be downloaded is not the initial position being positioned at described objective network video, or described data block to be downloaded is not positioned at: according to the initial position after corresponding user instruction determined, described objective network video redirect progress, then described data block to be downloaded is defined as target data block.
In a kind of embodiment of the present invention, the described positional information according to obtaining, determine that described data block to be downloaded is target data block, comprising:
If described data block to be downloaded is not be positioned at the initial position of described objective network video and described data block to be downloaded is not positioned at: according to the initial position after user instruction determined, the described objective network video redirect progress of response, then described data block to be downloaded is defined as target data block.
In a kind of embodiment of the present invention, the described weighted value according to described external user nodes, described LAN subscriber nodes and described CDN node number, determine that available section is counted, comprising:
According to formula A=Cp*Wp+Cl*Wl+Cs*Ws, determine that available section is counted;
Wherein, A is that available section is counted, Cp is external user nodes, Cl is LAN subscriber nodes, Cs is CDN node number, and Wp is the weight factor of external user nodes Cp, and Wl is the weight factor of LAN subscriber nodes Cl, Ws is the weight factor of CDN node number Cs, Wp, Wl and Ws be not less than 1 integer.
In a kind of embodiment of the present invention, described respectively according to the buffer memory duration of described objective network video and the code check of described objective network video, determine the first weight factor and second weight factor of the datum node number preset, comprising:
According to the corresponding relation preset, numerical value corresponding for the buffer memory duration of described objective network video is defined as the first weight factor of the datum node number preset;
According to code check and the formula Pb=(1+ (Bt-Ba)/Ba*x) * 100% of described objective network video, determine the second weight factor of described default datum node number, wherein, Pb is the second weight factor of described default datum node number, Bt is the code check of described objective network video, Ba is the average bit rate of Internet video in video website, and x is the empirical value of multiplier coefficients.
A determining device for downloading mode in P2P network, comprising:
Data message obtains module, and for obtaining data message corresponding to target data block, described target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Described data message at least comprises: the buffer memory duration of described objective network video, with described first user not same local area network (LAN) external user nodes, with the code check of described first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and described objective network video;
Available section is counted determination module, for obtaining the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number that module obtains according to described data message, determines that available section is counted;
Weight factor determination module, for obtaining the buffer memory duration of described objective network video and the code check of described objective network video of module acquisition respectively according to described data message, determines the first weight factor and second weight factor of the datum node number preset;
Judgment threshold determination module, for being defined as judgment threshold by the product of described default datum node number, described first weight factor and described second weight factor;
P2P downloading mode determination module, the available section determined for determination module of counting in described available section is counted and is not less than judgment threshold that described judgment threshold determination module determines, is defined as P2P and downloads by the downloading mode of described target data block.
In a kind of embodiment of the present invention, described device also comprises:
Positional information obtains module, for the objective network video watched for first user, obtains the positional information of data block to be downloaded in described objective network video;
Target data block determination module, for obtaining the positional information that module obtains according to positional information, determines that described data block to be downloaded is target data block.
In a kind of embodiment of the present invention, described target data block determination module, specifically for:
It not the initial position being positioned at described objective network video in described data block to be downloaded, or described data block to be downloaded is not positioned at: when according to initial position after corresponding user instruction determined, described objective network video redirect progress, described data block to be downloaded is defined as target data block.
In a kind of embodiment of the present invention, described target data block determination module, specifically for:
Not be positioned at the initial position of described objective network video and described data block to be downloaded is not positioned in described data block to be downloaded: according to initial position after user instruction determined, the described objective network video redirect progress of response, described data block to be downloaded is defined as target data block.
In a kind of embodiment of the present invention, described available section count determination module specifically for:
According to formula A=Cp*Wp+Cl*Wl+Cs*Ws, determine that available section is counted;
Wherein, A is that available section is counted, Cp is external user nodes, Cl is LAN subscriber nodes, Cs is CDN node number, and Wp is the weight factor of external user nodes Cp, and Wl is the weight factor of LAN subscriber nodes Cl, Ws is the weight factor of CDN node number Cs, Wp, Wl and Ws be not less than 1 integer.
In a kind of embodiment of the present invention, described weight factor determination module, comprising:
First weight factor determination submodule, for according to the corresponding relation preset, is defined as the first weight factor of the datum node number preset by numerical value corresponding for the buffer memory duration of described objective network video;
Second weight factor determination submodule, for according to the code check of described objective network video and formula Pb=(1+ (Bt-Ba)/Ba*x) * 100%, determine the second weight factor of described default datum node number, wherein, Pb is the second weight factor of described default datum node number, Bt is the code check of described objective network video, and Ba is the average bit rate of Internet video in video website, and x is the empirical value of multiplier coefficients.
The technical scheme that the embodiment of the present invention provides, by the data message corresponding according to the target data block obtained, obtain available section count and judgment threshold, when available section count be not less than judgment threshold, determine the downloading mode of this target data block be P2P download.The technical scheme that the application embodiment of the present invention provides, considers many-sided influencing factor, uses P2P downloading mode to carry out the download of corresponding target data block as far as possible, decreases the pressure to CDN, save server resource and the network bandwidth.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Figure 1 shows that the implementing procedure figure of the defining method of downloading mode in P2P network in the embodiment of the present invention;
Figure 2 shows that the implementing procedure figure of target data block defining method in the embodiment of the present invention;
Figure 3 shows that the structural representation of the determining device of downloading mode in P2P network in the embodiment of the present invention.
Embodiment
First in a kind of P2P network provided the embodiment of the present invention, the defining method of downloading mode is described, and the method can comprise the following steps:
Obtain the data message that target data block is corresponding, described target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Described data message at least comprises: the buffer memory duration of described objective network video, with described first user not same local area network (LAN) external user nodes, with the code check of described first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and described objective network video;
According to the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number, determine that available section is counted;
Respectively according to the buffer memory duration of described objective network video and the code check of described objective network video, determine the first weight factor and second weight factor of the datum node number preset;
The product of described default datum node number, described first weight factor and described second weight factor is defined as judgment threshold;
When described available section count be not less than described judgment threshold, the downloading mode of described target data block is defined as P2P download.
So-called P2P (Peer to Peer) network, refer to the network using a kind of peer-to-peer (P2P technology), in P2P network, the status of each node is reciprocity, be server and client, each node, while other node of enjoyment provides service, is also providing service for other nodes.CDN (Conetent Delivery Network), refer to the network using content distribution techniques (CDN technology), its basic ideas avoid the Internet likely affects bottleneck and the link of message transmission rate and stability as far as possible, make content delivery sooner, more stable.At present, most of video website is all supported to use CDN technology and P2P technology to carry out the transmission of Internet video.
In actual applications, Internet video user can watched divides according to data block form, and the downloading mode of each data block can be that CDN downloads, and can also be that P2P downloads.P2P is downloaded, for the objective network video that first user is watched, other these objective network videos viewed or the user node watching this objective network video all can be used as server, be supplied to the download that first user node carries out the data block of corresponding objective network video, certainly, this first user node also can be used as server, is supplied to the corresponding downloaded resources of other user nodes watching this objective network video.
The technical scheme that the embodiment of the present invention provides, the data message corresponding according to the target data block obtained, obtain available section count and judgment threshold, when available section count be not less than judgment threshold, determine the downloading mode of this target data block be P2P download.The technical scheme that the application embodiment of the present invention provides, considers many-sided influencing factor, uses P2P downloading mode to carry out the download of corresponding target data block as far as possible, decreases the pressure to CDN, save server resource and the network bandwidth.
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Fig. 1, be the implementing procedure figure of the defining method of downloading mode in a kind of P2P network that the embodiment of the present invention provides, the method can comprise the following steps:
S110, obtains the data message that target data block is corresponding;
This target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Data message corresponding to target data block obtained at least comprises: the buffer memory duration of this objective network video, with this first user not same local area network (LAN) external user nodes, with the code check of this first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and this objective network video.
Be understandable that, the objective network video that first user is watched can be downloaded according to data block, and as previously mentioned, downloading mode can be that CDN downloads, and can also be that P2P downloads, the size of each data block can be 2*1024*1024 byte.In this objective network video, each data block divided is data block to be downloaded.In actual process, on the one hand, can using the data block of the data block all to be downloaded of this objective network video as downloading mode to be determined, i.e. target data block, carries out the determination of downloading mode to all data blocks to be downloaded; On the other hand, can consider that the position residing in objective network video of data block to be downloaded is to the influence degree of the viewing experience of user, thus determine whether the data block of this data block to be downloaded as downloading mode to be determined, be i.e. target data block.
Be directed to target data block, the data message that target data block is corresponding can be obtained.For ease of understanding, the content that the data message corresponding to target data block at least comprises is described further.
The buffer memory duration of objective network video: refer in first user node, the duration that the video content corresponding to data block of this objective network video buffer memory can be play, unit is second.In first user viewing objective network video process, in the good situation of network environment, the downloading rate of the data block of this objective network video is higher than its playback rate, has downloaded the data-block cache also do not play in first user node.
With first user not the external user nodes of same local area network (LAN) and with the LAN subscriber nodes of first user at same local area network (LAN): the user watching this objective network video and this objective network video viewed, can be used as user node and carry out uploading of the data block of this objective network video corresponding, be supplied to first user node downloaded resources.With first user node for reference, the user node of downloaded resources and first user node is provided whether to be in same local area network (LAN) according to these, divide into external user node and LAN subscriber node, respective quantity is external user nodes and LAN subscriber nodes.
CDN node number: the quantity of the operable CDN node of first user;
The code check of objective network video: to same objective network video, video website supports the video file of this objective network video of multiple code check, can be selected by user.Common as standard, high definition, the not corresponding a kind of code check of super sorting at present.
S120, according to the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number, determines that available section is counted;
By step S110, obtain external user nodes corresponding to target data block, LAN subscriber nodes and CDN node number.According to the weighted value of these nodes, can determine that available section is counted, namely can be supplied to the quantity that first user downloads the node of this target data block.
In a kind of embodiment of the present invention, according to formula A=Cp*Wp+Cl*Wl+Cs*Ws, can determine that available section is counted.Wherein, A is that available section is counted, Cp is external user nodes, Cl is LAN subscriber nodes, Cs is CDN node number, and Wp is the weight factor of external user nodes Cp, and Wl is the weight factor of LAN subscriber nodes Cl, Ws is the weight factor of CDN node number Cs, Wp, Wl and Ws be not less than 1 integer.
Be understandable that, if using with first user not at the external user node of same local area network (LAN) as ordinary node, in contrast, with first user the LAN subscriber node of same local area network (LAN) and CDN node higher for the transmission quality of data block, can use as multiple ordinary node.
Illustrate, the weight factor Wp of external user nodes Cp can be set to 1, is that is used as an ordinary node by each external user node; The weight factor Wl of LAN subscriber nodes Cl can be set to empirical value 8, is that is used as 8 ordinary nodes by each LAN subscriber node; The weight factor Ws of CDN node number Cs can be set to empirical value 6, that is each CDN node is used as 6 ordinary nodes.Certainly, in actual applications, the weight factor of each nodes can adjust according to actual conditions, thus draws optimal value, and the present invention does not limit this.
S130, respectively according to the buffer memory duration of described objective network video and the code check of described objective network video, determines the first weight factor and second weight factor of the datum node number preset;
According to historical experience and can preset reference nodes to the monitoring and statistics of data traffic, in order to as judging that can target data block carry out the basic threshold value of P2P download.In actual applications, on the one hand, along with the increase of playing progress rate and the difference of data block downloading rate to be downloaded, the buffer memory duration of objective network video changes thereupon; On the other hand, the code check of objective network video is determined according to the selection of user, and the impact of these two aspects factor on the datum node number preset is larger.The first weight factor of the datum node number preset can be determined according to the buffer memory duration of this objective network video, determine the second weight factor of the datum node number preset according to the code check of this objective network video.
In a kind of embodiment of the present invention, according to the corresponding relation preset, numerical value corresponding for the buffer memory duration of described objective network video can be defined as the first weight factor of the datum node number preset.
Concrete defining method can with reference to following default corresponding relation:
If when the buffer memory duration of objective network video is between 0 second to 10 seconds, then the first weight factor of the datum node number preset can be set to 100%;
If when the buffer memory duration of objective network video is between 10 seconds to 30 seconds, then the first weight factor of the datum node number preset can be set to 80%;
If the buffer memory duration of objective network video is greater than 30 seconds, then the first weight factor of the datum node number preset can be set to 60%.
Certainly, corresponding relation between the buffer memory duration of objective network video and the first weight factor of default datum node number can pre-set according to actual conditions, the principle that can follow is: when the buffer memory duration of objective network video is larger, suitably can reduce the first weight factor of the datum node number preset.
In a kind of embodiment of the present invention, can according to the code check of described objective network video and formula Pb=(1+ (Bt-Ba)/Ba*x) * 100%, determine the second weight factor of described default datum node number, wherein, Pb is the second weight factor of described default datum node number, Bt is the code check of described objective network video, and Ba is the average bit rate of Internet video in video website, and x is the empirical value of multiplier coefficients.
In actual applications, in video website, the empirical value of the empirical value of the average bit rate Ba of all-network video to be 600, x be multiplier coefficients, can be set to 0.4.Certainly, this empirical value can adjust according to actual conditions, and the principle that can follow is: when the code check Bt of objective network video is larger, suitably can increase the second weight factor of default datum node number.
S140, is defined as judgment threshold by the product of described default datum node number, described first weight factor and described second weight factor;
The first weight factor of datum node number preset determined according to step S130 and the second weight factor, judgment threshold can be determined, i.e. B=Nb*Ps*Pb, wherein, B represents determined judgment threshold, Nb is default datum node number, and Ps is first weight factor of default datum node number Nb, and Pb is second weight factor of default datum node number Nb.
S150, when described available section count be not less than described judgment threshold, the downloading mode of described target data block is defined as P2P download.
According to the execution result of step S120 to step S140, the downloading mode of this target data block can be judged by following judgment formula:
Cp*Wp+Cl*Wl+Cs*Ws>=Nb*Ps*Pb
When the result of this judgment formula is for being, represents that available section is counted and being not less than judgment threshold, can determine that the downloading mode of this target data block is that P2P downloads;
When the result of this judgment formula is no, represents that available section is counted and be less than judgment threshold, the downloading mode of this target data block is that CDN downloads.
The technical scheme that the embodiment of the present invention provides, the data message corresponding according to the target data block obtained, obtain available section count and judgment threshold, when available section count be not less than judgment threshold, determine the downloading mode of this target data block be P2P download.The technical scheme that the application embodiment of the present invention provides, considers many-sided influencing factor, uses P2P downloading mode to carry out the download of corresponding target data block as far as possible, decreases the pressure to CDN, save server resource and the network bandwidth.
Shown in Figure 2, in one embodiment of the invention, the defining method of target data block in step S110, can comprise the following steps:
S111, for the objective network video of first user viewing, obtains the positional information of data block to be downloaded in described objective network video;
Be understandable that, the position of data block to be downloaded in objective network video is different, and the speed of its downloading rate is different for the influence degree of the viewing experience of first user.First user, when watching objective network video, is always wished that buffer time is short, can be watched video content fast, and wishes in video display process, keeps certain fluency.The data block being in critical positions place in objective network video can be referred to as emergency data block, for the download of emergency data block, needs to use the better downloading mode of transmission performance, as CDN downloads.
In actual applications, the critical positions of objective network video can consider following two positions.
First position: the initial position of objective network video, one or more data block positions that namely objective network video is initial;
Second position: according to the initial position after corresponding user instruction determined, described objective network video redirect progress, the one or more data block positions namely after objective network video redirect progress.
The above-mentioned data block to be downloaded in objective network video two positions is important, in order to allow user have better viewing experience, for the download of these data blocks, good processing mode uses CDN to download, user's request can be responded fast, enter the video playback page.But for not being in the data block to be downloaded at these critical positions places, can consider to use P2P to download, whether determining to use P2P to download, also needing to do further judgement.Namely according to the positional information performing the acquisition of this step, can determine that this data block to be downloaded is target data block.
S112, judges whether data block to be downloaded is positioned at the initial position of described objective network video;
For the data block to be downloaded being positioned at objective network video initial position, the better CDN downloading mode of prioritizing selection transmission performance is downloaded.If judged result is yes, then performs step S115, determine that this data block to be downloaded is emergency data block, can think that it needs to carry out CDN download; If judged result is no, a kind of execution mode is: directly can perform step S114, this data block to be downloaded is defined as target data block, and judge whether further to use P2P downloading mode, another kind of execution mode is: can perform step S113 further, judge whether this data block to be downloaded is positioned at: according to the initial position after corresponding user instruction determined, described objective network video redirect progress.
S113, judges whether described data block to be downloaded is positioned at: according to the initial position after corresponding user instruction determined, described objective network video redirect progress;
For being positioned at: according to the data block to be downloaded of the initial position after corresponding user instruction determined, described objective network video redirect progress, the better CDN downloading mode of prioritizing selection transmission performance is downloaded.If judged result is yes, then performs step S115, determine that this data block to be downloaded is emergency data block, can think that it needs to carry out CDN download; If judged result is no, can step S114 be performed, this data block to be downloaded is defined as target data block.
S114, determines that described data block to be downloaded is target data block;
S115, determines that described data block to be downloaded is emergency data block.
By performing step S111 to step S115, treating downloading data block and confirming, confirming that it is target data block or emergency data block.For emergency data block, CDN downloading mode can be adopted to download, enable user watch video content in time, for user brings good viewing experience.For target data block, can judge whether that meeting P2P downloads condition further.。
It should be noted that, determining that in target data block process, step S112 and step S113 can judge, can also judge respectively simultaneously that is, have following three kinds of execution sequences can with reference to carrying out:
If described data block to be downloaded is not the initial position being positioned at described objective network video, then described data block to be downloaded is defined as target data block;
Or described data block to be downloaded is not positioned at: according to the initial position after corresponding user instruction determined, described objective network video redirect progress, then described data block to be downloaded is defined as target data block;
Or, if described data block to be downloaded is not be positioned at the initial position of described objective network video and described data block to be downloaded is not positioned at: according to the initial position after user instruction determined, the described objective network video redirect progress of response, then described data block to be downloaded is defined as target data block.
Corresponding to embodiment of the method above, the embodiment of the present invention additionally provides the determining device of downloading mode in a kind of P2P network, and as shown in Figure 3, this device can comprise:
Data message obtains module 210, and for obtaining data message corresponding to target data block, described target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Described data message at least comprises: the buffer memory duration of described objective network video, with described first user not same local area network (LAN) external user nodes, with the code check of described first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and described objective network video;
Available section is counted determination module 220, for obtaining the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number that module 210 obtains according to described data message, determines that available section is counted;
Weight factor determination module 230, for obtaining the buffer memory duration of described objective network video and the code check of described objective network video of module 210 acquisition respectively according to described data message, determine the first weight factor and second weight factor of the datum node number preset;
Judgment threshold determination module 240, for being defined as judgment threshold by the product of described default datum node number, described first weight factor and described second weight factor;
P2P downloading mode determination module 250, the available section determined for determination module 220 of counting in described available section is counted and is not less than judgment threshold that described judgment threshold determination module 240 determines, the downloading mode of described target data block is defined as P2P and downloads.
In a kind of embodiment of the present invention, described device can also comprise:
Positional information obtains module, for the objective network video watched for first user, obtains the positional information of data block to be downloaded in described objective network video;
Target data block determination module, for obtaining the positional information that module obtains according to positional information, determines that described data block to be downloaded is target data block.
In a kind of embodiment of the present invention, described target data block determination module, specifically for:
It not the initial position being positioned at described objective network video in described data block to be downloaded, or described data block to be downloaded is not positioned at: when according to initial position after corresponding user instruction determined, described objective network video redirect progress, described data block to be downloaded is defined as target data block.
In a kind of embodiment of the present invention, described target data block determination module, specifically for:
Not be positioned at the initial position of described objective network video and described data block to be downloaded is not positioned in described data block to be downloaded: according to initial position after user instruction determined, the described objective network video redirect progress of response, described data block to be downloaded is defined as target data block.
In a kind of embodiment of the present invention, described available section count determination module 220 specifically for:
According to formula A=Cp*Wp+Cl*Wl+Cs*Ws, determine that available section is counted;
Wherein, A is that available section is counted, Cp is external user nodes, Cl is LAN subscriber nodes, Cs is CDN node number, and Wp is the weight factor of external user nodes Cp, and Wl is the weight factor of LAN subscriber nodes Cl, Ws is the weight factor of CDN node number Cs, Wp, Wl and Ws be not less than 1 integer.
In a kind of embodiment of the present invention, described weight factor determination module 230, can comprise:
First weight factor determination submodule, for according to the corresponding relation preset, is defined as the first weight factor of the datum node number preset by numerical value corresponding for the buffer memory duration of described objective network video;
Second weight factor determination submodule, for according to the code check of described objective network video and formula Pb=(1+ (Bt-Ba)/Ba*x) * 100%, determine the second weight factor of described default datum node number, wherein, Pb is the second weight factor of described default datum node number, Bt is the code check of described objective network video, and Ba is the average bit rate of Internet video in video website, and x is the empirical value of multiplier coefficients.
The device that the embodiment of the present invention provides, according to data message corresponding to target data block obtained, obtains available section and counts and judgment threshold, when available section count be not less than judgment threshold, determine that the downloading mode of this target data block is that P2P downloads.The technical scheme that the application embodiment of the present invention provides, considers many-sided influencing factor, uses P2P downloading mode to carry out the download of corresponding target data block as far as possible, decreases the pressure to CDN, save server resource and the network bandwidth.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method execution mode is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (12)

1. the defining method of downloading mode in P2P network, is characterized in that, comprising:
Obtain the data message that target data block is corresponding, described target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Described data message at least comprises: the buffer memory duration of described objective network video, with described first user not same local area network (LAN) external user nodes, with the code check of described first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and described objective network video;
According to the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number, determine that available section is counted;
Respectively according to the buffer memory duration of described objective network video and the code check of described objective network video, determine the first weight factor and second weight factor of the datum node number preset;
The product of described default datum node number, described first weight factor and described second weight factor is defined as judgment threshold;
When described available section count be not less than described judgment threshold, the downloading mode of described target data block is defined as P2P download.
2. method according to claim 1, is characterized in that, the defining method of described target data block, comprising:
For the objective network video of first user viewing, obtain the positional information of data block to be downloaded in described objective network video;
According to the positional information obtained, determine that described data block to be downloaded is target data block.
3. method according to claim 2, is characterized in that, the described positional information according to obtaining, and determines that described data block to be downloaded is target data block, comprising:
If described data block to be downloaded is not the initial position being positioned at described objective network video, or described data block to be downloaded is not positioned at: according to the initial position after corresponding user instruction determined, described objective network video redirect progress, then described data block to be downloaded is defined as target data block.
4. method according to claim 2, is characterized in that, the described positional information according to obtaining, and determines that described data block to be downloaded is target data block, comprising:
If described data block to be downloaded is not be positioned at the initial position of described objective network video and described data block to be downloaded is not positioned at: according to the initial position after user instruction determined, the described objective network video redirect progress of response, then described data block to be downloaded is defined as target data block.
5. method according to claim 1, is characterized in that, the described weighted value according to described external user nodes, described LAN subscriber nodes and described CDN node number, determines that available section is counted, comprising:
According to formula A=Cp*Wp+Cl*Wl+Cs*Ws, determine that available section is counted;
Wherein, A is that available section is counted, Cp is external user nodes, Cl is LAN subscriber nodes, Cs is CDN node number, and Wp is the weight factor of external user nodes Cp, and Wl is the weight factor of LAN subscriber nodes Cl, Ws is the weight factor of CDN node number Cs, Wp, Wl and Ws be not less than 1 integer.
6. method according to claim 1, is characterized in that, described respectively according to the buffer memory duration of described objective network video and the code check of described objective network video, determines the first weight factor and second weight factor of the datum node number preset, comprising:
According to the corresponding relation preset, numerical value corresponding for the buffer memory duration of described objective network video is defined as the first weight factor of the datum node number preset;
According to code check and the formula Pb=(1+ (Bt-Ba)/Ba*x) * 100% of described objective network video, determine the second weight factor of described default datum node number, wherein, Pb is the second weight factor of described default datum node number, Bt is the code check of described objective network video, Ba is the average bit rate of Internet video in video website, and x is the empirical value of multiplier coefficients.
7. the determining device of downloading mode in P2P network, is characterized in that, comprising:
Data message obtains module, and for obtaining data message corresponding to target data block, described target data block is: in the objective network video of first user viewing, the data block of downloading mode to be determined; Described data message at least comprises: the buffer memory duration of described objective network video, with described first user not same local area network (LAN) external user nodes, with the code check of described first user at the LAN subscriber nodes of same local area network (LAN), CDN node number and described objective network video;
Available section is counted determination module, for obtaining the weighted value of described external user nodes, described LAN subscriber nodes and described CDN node number that module obtains according to described data message, determines that available section is counted;
Weight factor determination module, for obtaining the buffer memory duration of described objective network video and the code check of described objective network video of module acquisition respectively according to described data message, determines the first weight factor and second weight factor of the datum node number preset;
Judgment threshold determination module, for being defined as judgment threshold by the product of described default datum node number, described first weight factor and described second weight factor;
P2P downloading mode determination module, the available section determined for determination module of counting in described available section is counted and is not less than judgment threshold that described judgment threshold determination module determines, is defined as P2P and downloads by the downloading mode of described target data block.
8. device according to claim 7, is characterized in that, described device also comprises:
Positional information obtains module, for the objective network video watched for first user, obtains the positional information of data block to be downloaded in described objective network video;
Target data block determination module, for obtaining the positional information that module obtains according to positional information, determines that described data block to be downloaded is target data block.
9. device according to claim 8, is characterized in that, described target data block determination module, specifically for:
It not the initial position being positioned at described objective network video in described data block to be downloaded, or described data block to be downloaded is not positioned at: when according to initial position after corresponding user instruction determined, described objective network video redirect progress, described data block to be downloaded is defined as target data block.
10. device according to claim 8, is characterized in that, described target data block determination module, specifically for:
Not be positioned at the initial position of described objective network video and described data block to be downloaded is not positioned in described data block to be downloaded: according to initial position after user instruction determined, the described objective network video redirect progress of response, described data block to be downloaded is defined as target data block.
11. devices according to claim 7, is characterized in that, described available section count determination module specifically for:
According to formula A=Cp*Wp+Cl*Wl+Cs*Ws, determine that available section is counted;
Wherein, A is that available section is counted, Cp is external user nodes, Cl is LAN subscriber nodes, Cs is CDN node number, and Wp is the weight factor of external user nodes Cp, and Wl is the weight factor of LAN subscriber nodes Cl, Ws is the weight factor of CDN node number Cs, Wp, Wl and Ws be not less than 1 integer.
12. devices according to claim 7, is characterized in that, described weight factor determination module, comprising:
First weight factor determination submodule, for according to the corresponding relation preset, is defined as the first weight factor of the datum node number preset by numerical value corresponding for the buffer memory duration of described objective network video;
Second weight factor determination submodule, for according to the code check of described objective network video and formula Pb=(1+ (Bt-Ba)/Ba*x) * 100%, determine the second weight factor of described default datum node number, wherein, Pb is the second weight factor of described default datum node number, Bt is the code check of described objective network video, and Ba is the average bit rate of Internet video in video website, and x is the empirical value of multiplier coefficients.
CN201410704897.6A 2014-11-26 2014-11-26 The determination method and device of downloading mode in a kind of P2P networks Active CN104333816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410704897.6A CN104333816B (en) 2014-11-26 2014-11-26 The determination method and device of downloading mode in a kind of P2P networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410704897.6A CN104333816B (en) 2014-11-26 2014-11-26 The determination method and device of downloading mode in a kind of P2P networks

Publications (2)

Publication Number Publication Date
CN104333816A true CN104333816A (en) 2015-02-04
CN104333816B CN104333816B (en) 2017-10-27

Family

ID=52408451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410704897.6A Active CN104333816B (en) 2014-11-26 2014-11-26 The determination method and device of downloading mode in a kind of P2P networks

Country Status (1)

Country Link
CN (1) CN104333816B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635755A (en) * 2015-12-30 2016-06-01 合一网络技术(北京)有限公司 Direct-broadcast flow transmission method and apparatus
CN112866985A (en) * 2021-02-20 2021-05-28 百度在线网络技术(北京)有限公司 Flow control method, resource downloading method, device, equipment and storage medium
CN113365089A (en) * 2021-05-31 2021-09-07 浙江大华技术股份有限公司 Data transmission method and device, storage medium and electronic device
CN114124939A (en) * 2021-11-25 2022-03-01 北京奇艺世纪科技有限公司 Pre-cache file processing method and device and file pre-cache system
CN114666609A (en) * 2022-03-31 2022-06-24 北京奇艺世纪科技有限公司 Video data downloading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009076251A2 (en) * 2007-12-13 2009-06-18 General Electric Company Accelerating peer-to-peer content distribution
CN101631061A (en) * 2008-07-15 2010-01-20 中国移动通信集团公司 Method for informing resource node message and network entity device
CN102497387A (en) * 2011-11-11 2012-06-13 合一网络技术(北京)有限公司 Flash video distribution method based on P2P client terminal state analysis
CN102547395A (en) * 2011-12-31 2012-07-04 上海聚力传媒技术有限公司 Method and device for determining video data source of network player
CN102868741A (en) * 2012-09-07 2013-01-09 四川长虹电器股份有限公司 Method for improving peer-to-peer (P2P) data transmission efficiency
CN103905341A (en) * 2012-12-28 2014-07-02 中国移动通信集团公司 Resource scheduling method, resource scheduling device and resource scheduling system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009076251A2 (en) * 2007-12-13 2009-06-18 General Electric Company Accelerating peer-to-peer content distribution
CN101631061A (en) * 2008-07-15 2010-01-20 中国移动通信集团公司 Method for informing resource node message and network entity device
CN102497387A (en) * 2011-11-11 2012-06-13 合一网络技术(北京)有限公司 Flash video distribution method based on P2P client terminal state analysis
CN102547395A (en) * 2011-12-31 2012-07-04 上海聚力传媒技术有限公司 Method and device for determining video data source of network player
CN102868741A (en) * 2012-09-07 2013-01-09 四川长虹电器股份有限公司 Method for improving peer-to-peer (P2P) data transmission efficiency
CN103905341A (en) * 2012-12-28 2014-07-02 中国移动通信集团公司 Resource scheduling method, resource scheduling device and resource scheduling system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘晓辉,金志刚,卫津津,赵西满: "P2P网络多视点立体视频传输的数据块调度策略", 《计算机工程与应用》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635755A (en) * 2015-12-30 2016-06-01 合一网络技术(北京)有限公司 Direct-broadcast flow transmission method and apparatus
CN105635755B (en) * 2015-12-30 2018-11-13 合一网络技术(北京)有限公司 Live TV stream transmission method and device
CN112866985A (en) * 2021-02-20 2021-05-28 百度在线网络技术(北京)有限公司 Flow control method, resource downloading method, device, equipment and storage medium
CN113365089A (en) * 2021-05-31 2021-09-07 浙江大华技术股份有限公司 Data transmission method and device, storage medium and electronic device
CN114124939A (en) * 2021-11-25 2022-03-01 北京奇艺世纪科技有限公司 Pre-cache file processing method and device and file pre-cache system
CN114124939B (en) * 2021-11-25 2024-03-26 北京奇艺世纪科技有限公司 Method and device for processing pre-cached file and file pre-caching system
CN114666609A (en) * 2022-03-31 2022-06-24 北京奇艺世纪科技有限公司 Video data downloading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104333816B (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN106162233B (en) Code rate recommendation method and device
JP5298331B2 (en) Digital content distribution system and method
US10178043B1 (en) Dynamic bitrate range selection in the cloud for optimized video streaming
US9071655B2 (en) Managing access to digital content sources
US9660922B2 (en) Network assisted rate shifting for adaptive bit rate streaming
EP2649792B1 (en) Pre-buffering audio/video stream pairs
US20140165119A1 (en) Offline download method, multimedia file download method and system thereof
CN104333816A (en) Method and device for determining download mode in P2P network
US9058210B2 (en) Weighted request rate limiting for resources
CN105635755B (en) Live TV stream transmission method and device
CN108810052B (en) Live broadcast server selection method and device
US10440082B1 (en) Adjusting parameter settings for bitrate selection algorithms
CN105681828B (en) Node connection adjusting method and device
CN105578211A (en) Live broadcast acceleration network stagnation optimization method and system based on infinite service node
US20130145001A1 (en) Utility-based model for caching programs in a content delivery network
CN106888381A (en) A kind of data resource storage method and device
US20170364833A1 (en) Ranking video delivery problems
EP2963896B1 (en) Method for operating a cache arranged along a transmission path between client terminals and at least one server, and corresponding cache
EP3338409B1 (en) Method for dynamically managing a network service in a communication network
US9712580B2 (en) Pipelining for parallel network connections to transmit a digital content stream
Xie et al. Access types effect on Internet video services and its implications on CDN caching
CN108156257B (en) Information pushing method and device
JP2017514416A (en) Method for operating a cache arranged along a transmission path between a client terminal and at least one server, and corresponding cache
US8725868B2 (en) Interactive service management
Nguyen et al. An adaptive streaming method of 360 videos over HTTP/2 protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant