CN101714987A - P2P playing method and system - Google Patents

P2P playing method and system Download PDF

Info

Publication number
CN101714987A
CN101714987A CN200910221736A CN200910221736A CN101714987A CN 101714987 A CN101714987 A CN 101714987A CN 200910221736 A CN200910221736 A CN 200910221736A CN 200910221736 A CN200910221736 A CN 200910221736A CN 101714987 A CN101714987 A CN 101714987A
Authority
CN
China
Prior art keywords
server
tracker
channel information
client
distribution
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
CN200910221736A
Other languages
Chinese (zh)
Other versions
CN101714987B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN2009102217360A priority Critical patent/CN101714987B/en
Publication of CN101714987A publication Critical patent/CN101714987A/en
Application granted granted Critical
Publication of CN101714987B publication Critical patent/CN101714987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses P2P playing method and system. A control center server receives channel information input by a client terminal and allots Tracker servers for the client terminal in a plurality of Tracker servers according to a stored TS link list and the received channel information; the allotted Tracker servers obtain the channel information from the client terminal, allot super servers for the client terminal in a plurality of super servers according to a stored SP link list and the channel information, and return addresses of the allotted super servers to the client terminal; and the allotted super servers establish connection with the client terminal and transmit picture sources to the client terminal for playing. The invention manages the access of users by the control center server, the relatively vacant Tracker servers and the relatively vacant super servers, and solves the problem of bottleneck of the Tracker servers.

Description

P2P player method and system
Technical field
The present invention relates to the P2P network field, more specifically, relate to a kind of P2P player method and system.
Background technology
Traditional video-on-demand service is based on the Client/Server pattern, because the video data volume is big, require height for server bandwidth, therefore increasing along with client's quantity, the server bandwidth resource is very fast depleted, causes the autgmentability of system to be greatly limited.For this reason, IP multicasting technology and content distributing network (CDN) have occurred, but still there is following defective in the two: along with user's increase, the input of CDN constantly enlarges, server zone also constantly increases, and not only makes fund input strengthen but also the maintenance of equipment has also been enlarged markedly.Subsequently, because the investment of operator to backbone network saved in the use of P2P technology greatly, the investment of also having saved video display platform construction convection media server greatly simultaneously, and the smooth degree of user's program request has also obtained better guarantees.
It is many that P2P in the market shares software, and general P2P shares software and mainly contains BitTorrent (the abnormal download) and branch, eMule (electric donkey) and branch thereof.
As shown in Figure 1, be the structural representation of P2P Play System in the prior art.This P2P Play System comprise a Tracker server (Tracker Server, TS) 11, a plurality of superserver (Super Peer, SP) 12, a plurality of caching server (Cache Peer, CP) 13 and a plurality of NP (Normal Peer) client 14.
NP client 14 links to each other with corresponding caching server 13, is used for by url to Tracker server requests media data.
Tracker server 11 is maincenters of P2P Play System, links to each other with one or more superservers 12, presses the link information that channel information is sorted out in store all superservers 12, caching server 13 and NP client 14 on it.
Superserver 12 links to each other with one or more caching servers 13 that comprise the channel information of being asked, and is used to deposit video source, plays the video distribution server.
Caching server 13 links to each other with Tracker server 11, and for video flowing provides speed buffering, each caching server 13 obtains data source by the address information that Tracker server 11 provides from superserver 12 corresponding with it.After Tracker server 11 obtained the address information of other caching servers 13, this caching server 13 just was connected to carry out the exchange of data with caching server 13 nearest or that network condition is best at a caching server 13.It should be noted that caching server 13 can link to each other with one or more NP clients 14.
To those skilled in the art, this local video server can be to comprise independently parts of two of superserver and caching servers, also superserver and caching server can be integrated into independently parts.
The job step of this P2P Play System is specific as follows: NP client obtains channel url and also resolves, and registers and obtains to have the address of the address of the superserver of this channel information, the caching server adjacent with this NP client and playing other caching servers of this channel information and the address of NP client to the Tracker server; This NP client is selected other NP clients of some high-qualitys, and other caching servers of with other NP clients of selected some high-qualitys, adjacent caching server, playing this channel information link to each other; This NP client is to adjacent caching server request media data; Described superserver and other caching servers send media data to this adjacent caching server; Adjacent caching server sends media data to this NP client, and this NP client has just incorporated this P2P Play System fully like this.
But, in above-mentioned P2P Play System, become the bottleneck of system usually owing to the restriction of Tracker server handling ability, be not easy to a large amount of access users are managed.
Summary of the invention
The technical problem that the present invention will solve provides a kind of P2P player method, can manage a large amount of access users easily.
The invention provides a kind of P2P player method, comprising: control centre's server receives the channel information of client input; Control centre's server is client distribution T racker server according to the TS chained list of storage and the channel information that receives in a plurality of Tracker servers; The Tracker server that distributes obtains channel information from client; The Tracker server that distributes distributes superserver for client according to the SP chained list and the channel information of storage in a plurality of superservers, and the address of the superserver of distribution is returned to client; The superserver and the client of distributing connect, and send film source to play to client.
An embodiment according to the inventive method, this method also comprises: set up or disconnect when being connected when the Tracker server of client and distribution, client is sent to the TS information of the Tracker server of distribution with more newly assigned Tracker server with the network condition of channel information and client; The TS information of the Tracker server of the distribution of Tracker server after control centre's server reports renewal that distributes is to upgrade the TS chained list; The Tracker server that distributes is according to the channel concordance list of establishment of connection between the Tracker server of client and distribution or disconnection updated stored.
Another embodiment according to the inventive method, the TS chained list comprises the IP address of the cryptographic Hash of channel information, a plurality of Tracker servers and the TS information of a plurality of Tracker servers, and control centre's server comprises for the step of client distribution T racker server in a plurality of Tracker servers according to the TS chained list of storage and the channel information that receives: control centre's server is searched the Tracker server that has channel information according to TS chained list and the channel information that receives in a plurality of Tracker servers; In having the Tracker server of channel information, relatively have the load of the Tracker server of channel information according to the TS information of a plurality of Tracker servers in the TS chained list, select the little Tracker server of load as the Tracker server that distributes.
Another embodiment according to the inventive method, the SP chained list comprises the IP address of the cryptographic Hash of channel information, a plurality of superservers and the SP information of a plurality of superservers, and the Tracker server of distribution comprises for the step of client distribution superserver in a plurality of superservers according to the SP chained list and the channel information of storage: the Tracker server of distribution is searched the superserver that has channel information according to SP chained list and channel information in a plurality of superservers; In having the superserver of channel information, relatively have the load of the superserver of channel information according to the SP information of a plurality of superservers in the SP chained list, select the little superserver of load as the superserver that distributes.
According to an embodiment again of the inventive method, this method also comprises: a plurality of superservers report SP information termly to coupled Tracker server respectively.
According to an embodiment again of the inventive method, this method also comprises: the Tracker server of distribution receives the Resources list from client; The Tracker server that distributes issues the Resources list of other clients to client.
P2P player method provided by the invention, control centre's server and a plurality of Tracker server have been introduced, by control centre's server is to insert the user to select idle relatively Tracker server, select idle relatively superserver by idle relatively Tracker server again, manage by the access of control centre's server, the idle relatively Tracker server that is distributed and the superserver of relative free time, solved the Tracker server bottleneck problem that causes by user's expansion the user.
Another technical problem that the present invention will solve provides a kind of P2P Play System, can manage a large amount of access users easily.
The present invention also provides a kind of P2P Play System, this system comprises control centre's server, a plurality of Tracker server and a plurality of superserver, wherein, control centre's server comprises that TS selects module, and being used for according to the TS chained list of storage and the channel information of client transmission is client distribution T racker server at a plurality of Tracker servers; The Tracker server that distributes comprises that SP selects module, is used for the channel information that SP chained list and client according to storage send and distributes superserver at a plurality of superservers for client, and the address of the superserver of distribution is returned to client; The superserver that distributes comprises the film source memory module, and being used for provides film source to play to client after the superserver of client and distribution connects.
An embodiment of system according to the invention, the Tracker server that distributes also comprises the TS information updating module, be used for setting up or disconnecting when being connected, according to the TS information that receives from the channel information and the more newly assigned Tracker server of network condition of client at the Tracker server of client and distribution; Control centre's server also comprises TS chained list update module, is used for the TS information updating TS chained list of the Tracker server of the distribution that reports according to the TS information updating module; The Tracker server that distributes also comprises the concordance list update module, is used for the channel concordance list according to establishment of connection between the Tracker server of client and distribution or disconnection updated stored.
Another embodiment of system according to the invention, the TS chained list comprises the IP address of the cryptographic Hash of channel information, a plurality of Tracker servers and the TS information of a plurality of Tracker servers, TS selects module to comprise: TS searches the unit, is used for searching the Tracker server that has channel information at a plurality of Tracker servers according to TS chained list and the channel information that receives; The TS determining unit, be used for searching the Tracker server that has channel information that the unit finds at TS, relatively have the load of the Tracker server of channel information according to the TS information of a plurality of Tracker servers in the TS chained list, select the little Tracker server of load as the Tracker server that distributes.
The another embodiment of system according to the invention, the SP chained list comprises the IP address of the cryptographic Hash of channel information, a plurality of superservers and the SP information of a plurality of superservers, SP selects module to comprise: SP searches the unit, is used for searching the superserver that has channel information at a plurality of superservers according to SP chained list and the channel information that receives; The SP determining unit, be used for searching the superserver that has channel information that the unit finds at SP, relatively have the load of the superserver of channel information according to the SP information of a plurality of superservers in the SP chained list, select the little superserver of load as the superserver that distributes.
An embodiment again of system according to the invention, a plurality of superservers are used for reporting SP information termly to coupled Tracker server; The Tracker server that distributes comprises that also the Resources list issues module and the Resources list receiver module, and the Resources list receiver module is used to receive the Resources list that client reports, and the Resources list issues the Resources list that module is used for issuing to client other clients.
P2P Play System provided by the invention, control centre's server and a plurality of Tracker server have been introduced, by control centre's server is to insert the user to select idle relatively Tracker server, select idle relatively superserver by idle relatively Tracker server again, manage by the access of control centre's server, the idle relatively Tracker server that is distributed and the superserver of relative free time, solved the Tracker server bottleneck problem that causes by user's expansion the user.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part.In the accompanying drawings:
Fig. 1 is the structural representation of P2P Play System in the prior art.
Fig. 2 is the structural representation of an embodiment of system of the present invention.
Fig. 3 is the structural representation of another embodiment of system of the present invention.
Fig. 4 is the structural representation of the another embodiment of system of the present invention.
Fig. 5 is the structural representation of an embodiment again of system of the present invention.
Fig. 6 is the schematic flow sheet of an embodiment of the inventive method.
Fig. 7 is the schematic diagram of the TS chained list of Hash tree form of the present invention.
Fig. 8 is the schematic diagram of the SP chained list of Hash tree form of the present invention.
Fig. 9 is the schematic flow sheet of another embodiment of the inventive method.
Embodiment
With reference to the accompanying drawings the present invention is described more fully, exemplary embodiment of the present invention wherein is described.Exemplary embodiment of the present invention and explanation thereof are used to explain the present invention, but do not constitute improper qualification of the present invention.
It is pointed out that client, Tracker server and the superserver that the present invention relates to not only have the corresponding function among Fig. 1, can also realize following function of the present invention.Therefore, become hard to understand, below only the difference with prior art is described in order not make the present invention.
As shown in Figure 2, be the structural representation of an embodiment of system of the present invention.This embodiment comprises: control centre's server 21, a plurality of Tracker server 22 and a plurality of superserver 23, wherein, control centre's server 21 comprises that TS selects module 211, is used for being client distribution T racker server 22 according to the TS chained list of storage and the channel information of client transmission at a plurality of Tracker servers 22; The Tracker server 22 that distributes comprises that SP selects module 221, be used for the channel information that SP chained list and client according to storage send and distribute superserver 23 for client, and the address of the superserver 23 of distribution is returned to client at a plurality of superservers 23; The superserver 23 that distributes comprises film source memory module 231, and being used for provides film source to play to client after the superserver 23 of client and distribution connects.
For example, channel information can comprise the address of unit data block size (BlockSize), channel bit rate (BitRate), channel designation (ChannelName), 32 resource numbers (ResourceHash), acquiescence Tracker server, address, data packet length (DataLength) and the data (Data) etc. of acquiescence superserver, wherein, 32 resource numbers produce according to channel designation and filename, data are the positions through the key frame of encrypting, and the client that each new connection is come in all can begin from the immediate key frame position of present broadcast to play.
This embodiment is a client distribution T racker server by control centre's server, by the Tracker server that distributes is that client is distributed superserver, provide film source by the superserver that is distributed for client again, made things convenient for the management of system a large amount of access users.
As shown in Figure 3, be the structural representation of another embodiment of system of the present invention.Compare with the embodiment among Fig. 2, the Tracker server 31 of the distribution among this embodiment also comprises TS information updating module 311, be used for setting up or disconnecting when being connected, according to the TS information that receives from the channel information and the more newly assigned Tracker server of network condition of client at the Tracker server 31 of client and distribution; Control centre's server 32 also comprises TS chained list update module 321, is used for the TS information updating TS chained list of the Tracker server of the distribution that reports according to TS information updating module 311; The Tracker server 31 that distributes also comprises concordance list update module 312, is used for the channel concordance list according to establishment of connection between the Tracker server of client and distribution or disconnection updated stored.
This embodiment sets up or disconnects when being connected at the Tracker server of client and distribution, can upgrade the TS chained list in control centre's server in time, thereby make control centre's server can find the Tracker server of free time relatively in real time.
As shown in Figure 4, be the structural representation of the another embodiment of system of the present invention.Compare with the embodiment among Fig. 2, TS chained list among this embodiment comprises the IP address of the cryptographic Hash (this cryptographic Hash identifies channel information uniquely) of channel information, a plurality of Tracker servers and the TS information of a plurality of Tracker servers, TS selects module 41 to comprise: TS searches unit 411, is used for searching the Tracker server that has channel information at a plurality of Tracker servers according to TS chained list and the channel information that receives; TS determining unit 412, be used for searching the Tracker server that has channel information that unit 411 finds at TS, relatively have the load of the Tracker server of channel information according to the TS information of a plurality of Tracker servers in the TS chained list, select the little Tracker server of load as the Tracker server that distributes.
For example, TS information can be the running status and the link information of corresponding Tracker server.Each Tracker server all can real time record self in running running status and link information, and when the load of Tracker server changes, report its TS information to control centre's server.This TS information can comprise following field: running time (ElapsedTime), current login number (TotalLogin), message count (TotalMsg), active channel (ActiveChannel) number and online user (OnlineUser) number.It is pointed out that TS information is not limited thereto, this information can also comprise other fields as required.
Again for example, TS selects module 41 to determine idle relatively Tracker server by the OnlineUser value that compares each Tracker server, gives client such as determining to have the Tracker server that hangs down the OnlineUser value as idle relatively Tracker server-assignment.Alternatively, if the OnlineUser value is identical, can also further compare the ActiveChannel value, if the ActiveChannel value is also identical, can further compare the TotalMsg value again, by that analogy, thus can in a plurality of Tracker servers, determine relatively idle Tracker server.
This embodiment selects relatively idle Tracker server by the load of more a plurality of Tracker servers, is not easy to problem that a large number of users is managed thereby can solve single Tracker server effectively.
As shown in Figure 5, be the structural representation of an embodiment again of system of the present invention.Compare with the embodiment among Fig. 2, SP chained list among this embodiment comprises the IP address of the cryptographic Hash of channel information, a plurality of superservers and the SP information of a plurality of superservers, SP selects module 51 to comprise: SP searches unit 511, is used for searching the superserver that has channel information at a plurality of superservers according to SP chained list and the channel information that receives; SP determining unit 512, be used for searching the superserver that has channel information that unit 511 finds at SP, relatively have the load of the superserver of channel information according to the SP information of a plurality of superservers in the SP chained list, select the little superserver of load as the superserver that distributes.
For example, SP information can comprise altogether input (TotalIncoming), output (TotalOutgoing) altogether, average input (AverageIncoming), average output (AverageOutgoing), running time (ElapsedTime), present input data (CurrentIncomin), current dateout (CurrentOutgoing), active channel (ActiveChannel) number and online user (OnlineUser) number.It is pointed out that SP information is not limited thereto, this information can also comprise other fields as required.
Again for example, SP selects module 51 at first to search the superserver that has this channel information according to the channel information that will visit, determine idle relatively superserver by the OnlineUser value that compares these superservers then, distribute to client as idle relatively superserver such as determining to have the superserver that hangs down the OnlineUser value.Alternatively, if the OnlineUser value is identical, can also further compare the ActiveChannel value, if the ActiveChannel value is also identical, can further compare the CurrentOutgoing value again, by that analogy, thus can in a plurality of superservers, determine relatively idle superserver.
In this embodiment, select idle relatively superserver by the Tracker server that is distributed according to the load size of superserver, make client to obtain film source, thereby further guaranteed the program request fluency of client from idle relatively superserver.
In an embodiment again of system of the present invention, to compare with embodiment among Fig. 2, a plurality of superservers among this embodiment are used for reporting SP information termly to coupled Tracker server; The Tracker server that distributes comprises that also the Resources list issues module and the Resources list receiver module, and the Resources list receiver module is used to receive the Resources list that client reports, and the Resources list issues the Resources list that module is used for issuing to client other clients.
In this embodiment, because client reports the Resources list to the Tracker server that distributes, make the Tracker server can in time obtain the network condition of each client, and because the Tracker server also issues the Resources list of other clients to client, make this client can obtain more other clients of high-quality, thereby can connect to obtain more smooth IP Information On Demand with other clients again.
As shown in Figure 6, be the schematic flow sheet of an embodiment of the inventive method.This embodiment may further comprise the steps:
S602, control centre's server receives the channel information of client input, for example, channel information can comprise unit data block size (BlockSize), channel bit rate (BitRate), channel designation (ChannelName), 32 resource numbers (ResourceHash), the address of acquiescence Tracker server, the address of acquiescence superserver, data packet length (DataLength) and data (Data) etc., wherein, 32 resource numbers produce according to channel designation and filename, data (Data) are the positions through the key frame of encrypting, and the client that each new connection is come in all can begin from the immediate key frame position of present broadcast to play.For example, channel information can be:
BlockSize=16384
BitRate=40.000000
ChannelName=szf39
ResourceHash=fb7149b5118986a0f8b4b160f?ede452e32
TrackServer=122.224.203.47:90
SuperPeer=122.224.203.48:50001、
The DataLength=232 data packet length
Data=vids^@^@^P^@<80>^@^@a^@8<9b>qWMV3^@^@^P^@<80>^@^@a^@8<9b>q<80><9f>X^EV??^Q??[11;1H^A^@a^@UYZ^@^@
Alternatively, client can also be imported user profile, and this user profile can comprise user name (UserName), password (Passwd), client ip address and channel name (Channel) etc.For example, user profile can be:
UserName=sir
Passwd=123456
IP=218.75.79.92
Channel=szf39
It is pointed out that user profile and channel information are not limited thereto, can also comprise other fields, for example, channel information can also comprise CSUserID, represents it is that wheel is broadcast channel when this value is 0, represents it is direct broadcast band when this value is 1.
S604, control centre's server is client distribution T racker server according to the TS chained list of storage and the channel information that receives in a plurality of Tracker servers;
Wherein, safeguarding that in control centre data in server storehouse one is the TS chained list of the Hash tree form of index with the channel information, this TS chained list comprises the IP address of the cryptographic Hash (this cryptographic Hash identifies channel information uniquely) of channel information, a plurality of Tracker servers and the TS information of a plurality of Tracker servers.
As shown in Figure 7, it is the schematic diagram of the TS chained list of Hash tree form of the present invention, in this Hash tree, channel information is a root node, the Tracker server that has this channel information is a child node, and for example, channel information P1 and channel information P2 are root node, the Tracker server 1 and the Tracker server 2 that have channel information P1 are the child node of root node P1, and the Tracker server 3 and the Tracker server 2 that have a channel information P2 are the child node of root node P2.Shown in following table 1, in control centre data in server storehouse, this TS chained list can be stored following information:
Figure G2009102217360D00111
Table 1
In this TS chained list, Channelhash represents the channel cryptographic Hash of corresponding channel information.For example, the channel cryptographic Hash of channel information P1 is 7c907938ea8a470b20e97a2c465c05da, and the channel cryptographic Hash of channel information P2 is fffb75416dd299c5af6fc6aa9aa38e66.Key then represents the IP address of corresponding Tracker server, for example, the IP address of Tracker server 1 is 202.191.115.35, and the IP address of Tracker server 2 is 202.101.118.110, and the IP address of Tracker server 3 is 202.101.172.49.TS information can be the running status and the link information of corresponding Tracker server.Each Tracker server all can real time record self in running running status and link information, and when the load of Tracker server changes, report its TS information to control centre's server.For example, this TS information can comprise following field: running time (ElapsedTime), current login number (TotalLogin), message count (TotalMsg), active channel (ActiveChannel) number and online user (OnlineUser) number.It is pointed out that TS information is not limited thereto, this information can also comprise other fields as required.
Particularly, control centre's server can comprise for the step of client distribution T racker server in a plurality of Tracker servers according to the TS chained list of storage and the channel information that receives: control centre's server is searched the Tracker server that has channel information according to TS chained list and the channel information that receives in a plurality of Tracker servers; In having the Tracker server of channel information, relatively have the load of the Tracker server of channel information according to the TS information of a plurality of Tracker servers in the TS chained list, select the little Tracker server of load as the Tracker server that distributes, wherein, the load of Tracker server is meant the number clients that links to each other with this Tracker server.
For example, control centre's server can be determined idle relatively Tracker server by the OnlineUser value that compares each Tracker server, gives client such as determining to have the Tracker server that hangs down the OnlineUser value as idle relatively Tracker server-assignment.Alternatively, if the OnlineUser value is identical, the ActiveChannel value can also further be compared, if the ActiveChannel value is also identical, can further compare the TotalMsg value again, in a plurality of Tracker servers, determine idle relatively Tracker server by that analogy.
S606, the Tracker server of distribution obtains channel information from client.
S608, the Tracker server of distribution distributes superserver for client according to the SP chained list and the channel information of storage in a plurality of superservers, and the address of the superserver of distribution is returned to client;
Similar with the TS chained list in the control centre data in server storehouse, safeguarding also that in Tracker data in server storehouse one is the SP chained list of the Hash tree form of index with the channel information, this SP chained list comprises the IP address of the cryptographic Hash of channel information, a plurality of superservers and the SP information of a plurality of superservers.
As shown in Figure 8, be the schematic diagram of the SP chained list of Hash tree form of the present invention.In this Hash tree, channel information P1 and channel information P2 are root node, the superserver 1 and the superserver 2 that have channel information P1 are the child node of root node P1, and the superserver 3 and the superserver 4 that have channel information P2 are the child node of root node P2.Shown in following table 2, in Tracker data in server storehouse, this SP chained list can be stored following information:
Table 2
In this SP chained list, Channelhash represents the channel cryptographic Hash of corresponding channel information.For example, the channel cryptographic Hash of channel information P1 is 7c907938ea8a470b20e97a2c465c05da, and the channel cryptographic Hash of channel information P2 is fffb75416dd299c5af6fc6aa9aa38e66.Key then represents the IP address of corresponding superserver, for example, the IP address of superserver 1 is 60.191.115.30, the IP address of superserver 2 is 60.191.115.43, the IP address of superserver 3 is 60.191.115.34, and the IP address of superserver 4 is 60.191.115.40.SP information is the running status of corresponding superserver, and superserver is regularly reported the running status of oneself to the Tracker server.For example, this SP information can comprise altogether input (TotalIncoming), output (TotalOutgoing) altogether, average input (AverageIncoming), average output (AverageOutgoing), running time (ElapsedTime), present input data (CurrentIncomin), current dateout (CurrentOutgoing), active channel (ActiveChannel) number and online user (OnlineUser) number.It is pointed out that SP information is not limited thereto, this information can also comprise other fields as required.
Particularly, the Tracker server of distribution can comprise for the step of client distribution superserver in a plurality of superservers according to the SP chained list and the channel information of storage: the Tracker server of distribution is searched the superserver that has channel information according to SP chained list and channel information in a plurality of superservers; In having the superserver of channel information, relatively have the load of the superserver of channel information according to the SP information of a plurality of superservers in the SP chained list, select the little superserver of load as the superserver that distributes.
For example, the Tracker server is at first searched the superserver that has this channel information according to the channel information that will visit, determine idle relatively superserver by the OnlineUser value that compares these superservers then, distribute to client as idle relatively superserver such as determining to have the superserver that hangs down the OnlineUser value.Alternatively, if the OnlineUser value is identical, the ActiveChannel value can also further be compared, if the ActiveChannel value is also identical, can further compare the CurrentOutgoing value again, in a plurality of superservers, determine idle relatively superserver by that analogy.
S610, the superserver and the client of distribution connect, and send film source to play to client.
Flow process is basic identical among follow-up workflow and Fig. 1, and client is also obtained the address of the caching server adjacent with this client (" adjacent " is meant the adjacent to avoid across a network to fetch data of data chainning network), play other caching servers of this channel information and the address of client; This client is selected the client of some high-qualitys (" high-quality " is meant and frequently do not add and that withdraw from, networking environment excellence or channel data abundance) in playing other clients of this channel information, and links to each other with other caching servers of playing this channel information with selected client, adjacent caching server; This client is to adjacent caching server request media data; The superserver that distributes and other caching servers send media data to this adjacent caching server; Adjacent caching server sends media data to this client, and this client has just incorporated the P2P Play System fully like this.It is pointed out that the caching server shown in above-mentioned caching server and Fig. 1 has identical functions, just no longer be repeated in this description at this.
This embodiment is a client distribution T racker server by control centre's server, by the Tracker server that distributes is that client is distributed superserver, provide film source by the superserver that is distributed for client again, made things convenient for the management of system a large amount of access users.
As shown in Figure 9, be the schematic flow sheet of another embodiment of the inventive method.This embodiment may further comprise the steps:
S902, control centre's server receives the channel information of client input;
S904, control centre's server is client distribution T racker server according to the TS chained list of storage and the channel information that receives in a plurality of Tracker servers;
S906, the Tracker server of distribution obtains channel information from client, and show that variation has taken place in the load of the Tracker server of this distribution this moment;
S908, this moment, the Tracker server of client and distribution connected, client is sent to the TS information of the Tracker server of distribution with more newly assigned Tracker server with the network condition of channel information and client, wherein, network condition comprises operator, intranet and extranet, bandwidth, IP and packet loss etc.;
S910, the TS information of the Tracker server of the distribution of Tracker server after control centre's server reports renewal of distribution is to upgrade the TS chained list, and control centre's server can come distribution T racker server according to up-to-date TS chained list like this;
S912, the Tracker server that distributes is according to the channel concordance list of establishment of connection updated stored between the Tracker server of client and distribution, promptly, the information of this client is joined in the channel concordance list, can provide up-to-date renewal for client like this, can be when client, superserver and caching server need at any time to Tracker server requests channel concordance list, this channel concordance list is shown in following table 3:
Figure G2009102217360D00151
Table 3
Similar with the parameter in above-mentioned table 1 and the table 2, in this channel concordance list, Channelhash represents the channel cryptographic Hash of corresponding channel information, and Key then identifies the IP address of relative client;
S914, the Tracker server of distribution distributes superserver for client according to the SP chained list and the channel information of storage in a plurality of superservers, and the address of the superserver of distribution is returned to client;
S916, the superserver and the client of distribution connect, and send film source to play to client.
In addition, when the Tracker server disconnection of client and distribution was connected, client also was sent to the TS information of the Tracker server of distribution with more newly assigned Tracker server with the network condition of channel information and client; The TS information of the Tracker server of the distribution of Tracker server after control centre's server reports renewal that distributes is to upgrade the TS chained list; The channel concordance list of the disconnection updated stored that is connected between the Tracker server of the Tracker server that distributes according to client and distribution.
This embodiment sets up or disconnects when being connected at the Tracker server of client and distribution, can upgrade the TS chained list in control centre's server in time, thereby make control centre's server can find the Tracker server of free time relatively in real time.
In the another embodiment of the inventive method, a plurality of superservers report SP information termly to coupled Tracker server respectively.
Since the frequent adding of the unsteadiness of network and other clients with withdraw from, so alternatively, the Tracker server of distribution receives the Resources list from client, this Resources list can comprise film source, progress and time etc.; Meanwhile, the Tracker server of distribution also issues the Resources list of other clients to reconnect to this client.
Alternatively, client of the present invention can also be based on the BitTorrent agreement, such benefit is: can utilize the network system of BitTorrent maturation and download balancing, make stability, applicability and the network utilization of system that relatively more outstanding performance all can be arranged, for client provides better service and guarantee.
Description of the invention provides for example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are conspicuous for the ordinary skill in the art.Selecting and describing embodiment is for better explanation principle of the present invention and practical application, thereby and makes those of ordinary skill in the art can understand the various embodiment that have various modifications that the present invention's design is suitable for special-purpose.

Claims (11)

1. a P2P player method is characterized in that, described method comprises:
Control centre's server receives the channel information of client input;
Described control centre server is described client distribution T racker server according to the TS chained list of storage and the described channel information that receives in a plurality of Tracker servers;
The Tracker server of described distribution obtains described channel information from described client;
The Tracker server of described distribution be described client distribution superserver in a plurality of superservers according to the SP chained list and the described channel information of storage, and the address of the superserver of described distribution is returned to described client;
The superserver of described distribution and described client connect, and send film source to play to described client.
2. method according to claim 1 is characterized in that, described method also comprises:
When the Tracker server of described client and described distribution is set up or disconnected when being connected, the Tracker server that described client is sent to the network condition of described channel information and described client described distribution is with the TS information of the Tracker server that upgrades described distribution;
The TS information of the Tracker server of the described distribution of the Tracker server of described distribution after described control centre server reports renewal is to upgrade described TS chained list;
The Tracker server of described distribution is according to the channel concordance list of establishment of connection between the Tracker server of described client and described distribution or disconnection updated stored.
3. method according to claim 1, it is characterized in that, described TS chained list comprises the IP address of the cryptographic Hash of channel information, described a plurality of Tracker servers and the TS information of described a plurality of Tracker servers, and described control centre server comprises for the step of described client distribution T racker server in a plurality of Tracker servers according to the TS chained list of storage and the described channel information that receives:
Described control centre server is searched the Tracker server that has described channel information according to described TS chained list and the described channel information that receives in described a plurality of Tracker servers;
In having the Tracker server of described channel information, relatively have the load of the Tracker server of described channel information according to the TS information of a plurality of Tracker servers in the described TS chained list, select the Tracker server of the little Tracker server of load as described distribution.
4. method according to claim 1, it is characterized in that, described SP chained list comprises the IP address of the cryptographic Hash of channel information, described a plurality of superservers and the SP information of described a plurality of superservers, and the Tracker server of described distribution comprises for the step of described client distribution superserver in a plurality of superservers according to the SP chained list and the described channel information of storage:
The Tracker server of described distribution is searched the superserver that has described channel information according to described SP chained list and described channel information in described a plurality of superservers;
In having the superserver of described channel information, relatively have the load of the superserver of described channel information according to the SP information of a plurality of superservers in the described SP chained list, select the superserver of the little superserver of load as described distribution.
5. method according to claim 1 is characterized in that, described method also comprises:
Described a plurality of superserver reports SP information termly to coupled Tracker server respectively.
6. method according to claim 1 is characterized in that, described method also comprises:
The Tracker server of described distribution receives the Resources list from described client;
The Tracker server of described distribution issues the Resources list of other clients to described client.
7. a P2P Play System is characterized in that, described system comprises control centre's server, a plurality of Tracker server and a plurality of superserver, wherein,
Described control centre server comprises that TS selects module, and being used for according to the TS chained list of storage and the channel information of client transmission is described client distribution T racker server at described a plurality of Tracker servers;
The Tracker server of described distribution comprises that SP selects module, be used for the channel information that SP chained list and described client according to storage send and distribute superserver for described client, and the address of the superserver of described distribution is returned to described client at described a plurality of superservers;
The superserver of described distribution comprises the film source memory module, and being used for provides film source to play to described client after the superserver of described client and described distribution connects.
8. system according to claim 7 is characterized in that,
The Tracker server of described distribution also comprises the TS information updating module, be used for setting up or disconnecting when being connected the TS information of the Tracker server that upgrades described distribution according to channel information and the network condition that receive from described client at the Tracker server of described client and described distribution;
Described control centre server also comprises TS chained list update module, is used for the described TS chained list of TS information updating of the Tracker server of the described distribution that reports according to described TS information updating module;
The Tracker server of described distribution also comprises the concordance list update module, is used for the channel concordance list according to establishment of connection between the Tracker server of described client and described distribution or disconnection updated stored.
9. system according to claim 7 is characterized in that, described TS chained list comprises the IP address of the cryptographic Hash of channel information, described a plurality of Tracker servers and the TS information of described a plurality of Tracker servers, and described TS selects module to comprise:
TS searches the unit, is used for searching the Tracker server that has described channel information according to described TS chained list and the described channel information that receives at described a plurality of Tracker servers;
The TS determining unit, be used for searching the Tracker server that has described channel information that the unit finds at described TS, relatively have the load of the Tracker server of described channel information according to the TS information of a plurality of Tracker servers described in the described TS chained list, select the Tracker server of the little Tracker server of load as described distribution.
10. system according to claim 7 is characterized in that, described SP chained list comprises the IP address of the cryptographic Hash of channel information, described a plurality of superservers and the SP information of described a plurality of superservers, and described SP selects module to comprise:
SP searches the unit, is used for searching the superserver that has described channel information according to described SP chained list and the described channel information that receives at described a plurality of superservers;
The SP determining unit, be used for searching the superserver that has described channel information that the unit finds at described SP, relatively have the load of the superserver of described channel information according to the SP information of a plurality of superservers described in the described SP chained list, select the superserver of the little superserver of load as described distribution.
11. system according to claim 7 is characterized in that,
Described a plurality of superserver is used for reporting SP information termly to coupled Tracker server;
The Tracker server of described distribution comprises that also the Resources list issues module and the Resources list receiver module, described the Resources list receiver module is used to receive the Resources list that described client reports, and described the Resources list issues the Resources list that module is used for issuing to described client other clients.
CN2009102217360A 2009-11-16 2009-11-16 P2P playing method and system Active CN101714987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102217360A CN101714987B (en) 2009-11-16 2009-11-16 P2P playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102217360A CN101714987B (en) 2009-11-16 2009-11-16 P2P playing method and system

Publications (2)

Publication Number Publication Date
CN101714987A true CN101714987A (en) 2010-05-26
CN101714987B CN101714987B (en) 2012-07-18

Family

ID=42418263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102217360A Active CN101714987B (en) 2009-11-16 2009-11-16 P2P playing method and system

Country Status (1)

Country Link
CN (1) CN101714987B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143207A (en) * 2010-12-10 2011-08-03 华为技术有限公司 Content acquisition method and redirecting node
CN102231762A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 Peer-to-peer (p2p) server architecture capable of being unlimitedly and horizontally expanded
CN102231761A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 Peer-to-Peer (P2P) data interaction method
CN102291458A (en) * 2011-08-12 2011-12-21 乐视网信息技术(北京)股份有限公司 Method for peer-to-peer (p2p) server framework
CN102299905A (en) * 2010-06-23 2011-12-28 中国移动通信集团公司 P2P streaming media resource adjusting method, apparatus thereof and system thereof
CN102387129A (en) * 2011-04-07 2012-03-21 传聚互动(北京)科技有限公司 Streaming media on-demand system and method
CN103581276A (en) * 2012-08-09 2014-02-12 北京亿赞普网络技术有限公司 Cluster management device and system, service client side and corresponding method
CN103686208A (en) * 2013-12-11 2014-03-26 南宁眸博科技有限公司 Video cloud computing transmitting method
WO2017035795A1 (en) * 2015-09-01 2017-03-09 深圳好视网络科技有限公司 Method and device for transmitting streaming media data
CN110365771A (en) * 2019-07-16 2019-10-22 深圳市网心科技有限公司 A kind of data capture method, device, system and computer readable storage medium
CN115022657A (en) * 2022-05-30 2022-09-06 上海哔哩哔哩科技有限公司 Scheduling method and device of live broadcast server

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299905A (en) * 2010-06-23 2011-12-28 中国移动通信集团公司 P2P streaming media resource adjusting method, apparatus thereof and system thereof
WO2012075954A1 (en) * 2010-12-10 2012-06-14 华为技术有限公司 Content acquisition method and redirection node
CN102143207B (en) * 2010-12-10 2013-10-09 华为技术有限公司 Content acquisition method and redirecting node
CN102143207A (en) * 2010-12-10 2011-08-03 华为技术有限公司 Content acquisition method and redirecting node
CN102387129A (en) * 2011-04-07 2012-03-21 传聚互动(北京)科技有限公司 Streaming media on-demand system and method
CN102291458B (en) * 2011-08-12 2014-06-18 乐视网信息技术(北京)股份有限公司 Method for peer-to-peer (p2p) server framework
CN102231762A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 Peer-to-peer (p2p) server architecture capable of being unlimitedly and horizontally expanded
CN102231761A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 Peer-to-Peer (P2P) data interaction method
CN102291458A (en) * 2011-08-12 2011-12-21 乐视网信息技术(北京)股份有限公司 Method for peer-to-peer (p2p) server framework
CN102231762B (en) * 2011-08-12 2014-03-19 乐视网信息技术(北京)股份有限公司 Peer-to-peer (p2p) server architecture capable of being unlimitedly and horizontally expanded
CN103581276A (en) * 2012-08-09 2014-02-12 北京亿赞普网络技术有限公司 Cluster management device and system, service client side and corresponding method
CN103581276B (en) * 2012-08-09 2017-06-09 北京亿赞普网络技术有限公司 Cluster management device, system, service customer end and correlation method
CN103686208A (en) * 2013-12-11 2014-03-26 南宁眸博科技有限公司 Video cloud computing transmitting method
CN103686208B (en) * 2013-12-11 2017-04-12 南宁眸博科技有限公司 Video cloud computing transmitting method
WO2017035795A1 (en) * 2015-09-01 2017-03-09 深圳好视网络科技有限公司 Method and device for transmitting streaming media data
CN110365771A (en) * 2019-07-16 2019-10-22 深圳市网心科技有限公司 A kind of data capture method, device, system and computer readable storage medium
CN115022657A (en) * 2022-05-30 2022-09-06 上海哔哩哔哩科技有限公司 Scheduling method and device of live broadcast server
CN115022657B (en) * 2022-05-30 2023-12-26 上海哔哩哔哩科技有限公司 Scheduling method and device of live broadcast server

Also Published As

Publication number Publication date
CN101714987B (en) 2012-07-18

Similar Documents

Publication Publication Date Title
CN101714987B (en) P2P playing method and system
US11539768B2 (en) System and method of minimizing network bandwidth retrieved from an external network
US10091285B1 (en) Distributing information over a network
CN100571377C (en) A kind of system and method that utilizes the peer-to-peer network technology to realize video request program
CN100574248C (en) Stream media service system and its implementation based on controllable P 2 P technology
CN101641685B (en) Method for file transfer by a peer-to-peer file transfer model and a client-server transfer model
EP3439239B1 (en) Data transmission method and system based on peer-to-peer network
CN102137163B (en) A kind of method of multimedia file shared system and shared multimedia file thereof
WO2006120946A1 (en) Tree-type network system, node device, broadcast system, broadcast method, etc.
US8249638B2 (en) Device and method for participating in a peer-to-peer network
CN101394423B (en) Media positioning, searching method and system
WO2007039576A1 (en) A content distribution system and a user request redirection method thereof
WO2010127618A1 (en) System and method for implementing streaming media content service
US20110126256A1 (en) Method for live broadcasting in a distributed network and apparatus for the same
CN101355591A (en) P2P network and scheduling method thereof
CN103037015A (en) Active P2P data distribution method and node client-side
WO2008124405A1 (en) System and method for increasing the efficiency in the delivery of media within a network
JP4877107B2 (en) Terminal device and information processing program in information distribution system, and information processing method of terminal device
CN106209952A (en) Service node distribution method, device, CDN management server and system
US20230126704A1 (en) System and method of minimizing network bandwidth retrieved from an external network
CN103037017A (en) Passive P2P data distribution method and node client-side
KR20090076719A (en) System for sharing contents in peer-to-peer overlay environment and method thereof
Muñoz-Gea et al. Design and analysis of a peer-assisted VOD provisioning system for managed networks
US20080240138A1 (en) Tree type broadcast system, connection target determination method, connection management device, connection management process program, and the like
Kandavanam et al. PaCRA: A path-aware content replication approach to support QoS guaranteed video on demand service in metropolitan IPTV networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant