CN100527695C - Method and system for constructing half-fixed P2P network - Google Patents

Method and system for constructing half-fixed P2P network Download PDF

Info

Publication number
CN100527695C
CN100527695C CNB2006100614969A CN200610061496A CN100527695C CN 100527695 C CN100527695 C CN 100527695C CN B2006100614969 A CNB2006100614969 A CN B2006100614969A CN 200610061496 A CN200610061496 A CN 200610061496A CN 100527695 C CN100527695 C CN 100527695C
Authority
CN
China
Prior art keywords
accelerator
client
server
user
normal
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.)
Active
Application number
CNB2006100614969A
Other languages
Chinese (zh)
Other versions
CN101079766A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2006100614969A priority Critical patent/CN100527695C/en
Publication of CN101079766A publication Critical patent/CN101079766A/en
Application granted granted Critical
Publication of CN100527695C publication Critical patent/CN100527695C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a constructing method and system of semi-fixed P2P network, which comprises the following steps: a. the common user end acquires the seed of download resource of P2P server; b. the common user end acquires the IP address of accelerator customer end priorly according to the seed, which downloads the resource from the accelerator user end. The invention makes the proximate accelerator customer end extract the needed data priorly, which reduces the network flow for the server effectively and also accelerates the data acquiring speed for user.

Description

Make up the method and the system thereof of half-fixed P 2 P network
Technical field
The present invention relates to computer network communication field, more particularly, relate to a kind of method and system thereof that makes up half-fixed P 2 P network.
Background technology
P2P (Peer-to-Peer, be called for short P2P) be a kind of distributed network, the participant of network shares a part of hardware resource (disposal ability, storage capacity, network concatenation ability, printer etc.) that they are had, these shared resources need provide service and content by network, can directly be visited by other peer node (Peer) and need not through intermediate entities.Participant in this network is resource (service and content) supplier (Server), is again that resource (service and content) obtains taker (Client).The P2P technology has been broken traditional Client/Server (C/S) pattern, and the status of each node in network all is reciprocity.Each node had both served as server, for other nodes provide service, also enjoyed the service that other nodes provide simultaneously.
The P2P live streaming media is a kind of network flow-medium broadcast mode that latest development is got up, it utilizes the principle of P2P to set up playing network, adopt " peer broadcast " (Peer casting) technology of P2P, be that each player uses reciprocity threaded file P2P shareware, realize to the user network distributing contents.Program file is broken down into a lot of little fragments, and each user's download is stored the butt joint exchange mutually again of some fragments, and each user obtains complete copy at last.
But because data object is to be distributed in randomly in each on-fixed individual node (or claiming on-fixed peer node, i.e. normal client end), because distance is irregular between the node ID, so the load of some node may be several times of system's average load.Therefore, caused the node load of whole P2P network unbalanced, i.e. the ability of load of node and node does not conform to.
Hence one can see that, and current P2P network all is that on-fixed individual node constitutes except server, and whole P2P network is close with the individual node relationships of on-fixed.Because the client in the current P2P network is not the client of extended immobilization substantially, thereby causes the P2P network fluctuation, has increased the burden of server and client, and cause each on-fixed individual node load unbalanced.
Summary of the invention
The technical problem to be solved in the present invention is that unbalanced at on-fixed individual node load in the above-mentioned P2P network of prior art, as to have increased server and client side defectives such as burden provide a kind of method and system thereof that makes up half-fixed P 2 P network.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method that makes up half-fixed P 2 P network, this method may further comprise the steps:
A. the accelerator server carries out authentication to the accelerator client of login accelerator server;
B. the normal client end obtains the seed that is stored in the downloaded resources in the P2P server;
C. the IP address that described normal client end preferentially obtains the accelerator client after being passed through by described accelerator server authentication according to described seed, and from described accelerator client downloads resource.
In method of the present invention, further comprise before the described step b: described accelerator client is according to described seed downloaded resources from the described P2P server.
In method of the present invention, described normal client end and described accelerator client are by logining described P2P server or by obtained the seed of downloaded resources by described P2P server broadcast.
In method of the present invention, described step c comprises: described accelerator client is downloaded a plurality of resources simultaneously from described P2P server and/or a plurality of described accelerator client and/or a plurality of described normal client end, and provides a plurality of described downloaded resources simultaneously to a plurality of described normal client ends.
In method of the present invention, need after the checking of described accelerator client by the accelerator server regularly to report service data to described accelerator server, step c further comprises: the IP address of the accelerator client after described normal client end preferentially obtains and passed through by described accelerator server authentication; The accelerator client downloads resource that preferential selection speed is fast in the above-mentioned IP address, distance is near.
In method of the present invention, described service data comprises flow and user's linking number of download/upload in the unit interval.
A kind of system that makes up half-fixed P 2 P network comprises a plurality of normal client ends, and this system also comprises P2P server, accelerator server and a plurality of accelerator client,
Described accelerator server is used to manage the normal operation of a plurality of described accelerator clients, and described accelerator client is carried out authentication, receives the service data that described accelerator client reports;
Described accelerator client has the function of described normal client end, and main being responsible for reports service data to described accelerator server, and provides a plurality of downloaded resources simultaneously to the user;
Described P2P server is used to preserve the information of user's download resource, comprises the seed of downloaded resources and the situation of current active user's download.
In system of the present invention, described accelerator client is kept at a plurality of described downloaded resources in its internal memory.
In system of the present invention, described service data comprises flow and user's linking number of download/upload in the unit interval.
The invention has the beneficial effects as follows that owing to adopt the accelerator client, the user can extract its needed data from the accelerator client first that closes on, and can reduce P2P server network flow effectively, also accelerated the speed that the user obtains data simultaneously.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is a system architecture diagram of the present invention;
Fig. 2 is an accelerator workflow diagram of the present invention;
Fig. 3 be normal client end of the present invention with the accelerator client between the flow chart of communicating by letter.
Embodiment
The present invention is on the basis of existing P2P platform, disposed the accelerator client in advance by adjacent locations at the normal client end, semifixed widely (" semifixed " is meant that the accelerator client is fixing the deployment thereby set up, but allow in the P2P network to have a plurality of accelerator clients for you to choose) the accelerator client bring in and stablize the P2P network, the user can extract its needed data from the accelerator client of closing on, the Internet resources that leave unused that close in the network domains have been made full use of, reduce the server network flow, accelerated the speed that the user obtains data simultaneously.
For making purpose of the present invention, technical scheme and advantage clearer, below by specific embodiment and referring to accompanying drawing, the present invention is described in detail.
Shown in Fig. 1 is the system architecture diagram that makes up half-fixed P 2 P network.As shown in the figure, comprise the P2P server, quicken server, a plurality of accelerator client (accelerator client 1 ... accelerator client n) and a plurality of normal client end (client 1 ... client n).
Wherein, the accelerator server is used to manage the normal operation of a plurality of accelerator clients, and the accelerator client is carried out authentication, receives the service data that the accelerator client reports; The accelerator client has the function of normal client end, and main being responsible for reports service data to the accelerator server, and provides a plurality of downloaded resources simultaneously to the user; The P2P server is used to preserve the information of user's download resource, comprises the seed of downloaded resources and the situation of current active user's download.
Below with reference to the accelerator workflow diagram shown in Fig. 2, and describe for example, may further comprise the steps in conjunction with Fig. 1:
Step S200: at first, the accelerator client signs in to the accelerator server.The accelerator client has been added accelerator authentication function on the basis of normal client end.
Because allow to exist a plurality of accelerator clients in the P2P network,, be convenient to the normal operation of a plurality of accelerator clients energy, so the accelerator client need sign in to the accelerator server for the ease of managing a plurality of accelerator clients.
Step S205: the accelerator server is verified the identity of accelerator client, to confirm whether the user has the right to use the accelerator client functionality.The purposes of quickening server mainly is to be used for managing the accelerator client, comprises the checking to the login of accelerator client.
Step S210: after the login authentication of accelerator client is passed through, and expression is logined successfully.
Step S215: after the accelerator client was logined successfully, user's (can be a plurality of users) just can select the resource (as the network direct broadcasting program) that oneself needs to quicken download by its normal client end from the accelerator client.
What the accelerator client was different with the normal client end is, the accelerator client is that predetermined fixed is disposed, and often needs onlinely for the user provides service, is equivalent to a fixing superclient end.When the accelerator client deployment on ordinary PC or server, this accelerator client can be moved by unattended operation automatically, under the situation of acquiescence, this accelerator client can select 3 P2P resources the most popular (as the QQLIVE program) to download automatically.The accelerator client itself has the function of common P2P node.Owing to be generally unattended operation, thereby can continually provide data on flows to other normal client ends that needs.
Wherein, the normal client end of this step S215 and the data interaction between the accelerator client as shown in Figure 3, this data exchange process may further comprise the steps:
Step S300: if user's (by its normal client end) needs downloaded resources (as the QQLIVE program), and (" seed " is the address to first source file when the user obtains the seed of current downloaded resources, refer to the complete file link on the P2P platform, other user can find automatically by this document and the client that this document downloads is provided and downloads), these seeds can be by the user by logining described P2P server or by being got access to by the P2P server broadcast.And according to these seeds, the user just can preferentially obtain the IP address of accelerator client, because long-term when online when the accelerator client in the P2P network, its IP is preferential.Like this, user's (by its normal client end) just can sign in to the accelerator client.
Certainly, accelerator client and normal client end all need to sign in to the P2P server earlier before, so that obtain downloaded resources (as QQLIVE the rendition list), user's (by its normal client end) just can obtain downloaded resources there from the accelerator client like this.But the accelerator client is a plurality of, a plurality of accelerator clients can be simultaneously from the P2P server downloaded resources; And an accelerator client also can be downloaded a plurality of resources for one or more users provide simultaneously.
Need to prove that in the existing P 2P mode, the user also can be from another normal client end there downloaded resources by its normal client end.So the normal client end also needs to sign in to the P2P server and downloaded resources from the P2P server.
Therefore, the user is when downloaded resources, generally directly do not download from P2P server and/or normal client end, but can be downloaded by preferential, the near accelerator client of having disposed of distance fast to those speed according to the seed of the current downloaded resources that obtains, and the while can also be downloaded a plurality of resources (as a plurality of QQLIVE programs) there.
Step S305, S310, S315: the user is according to obtaining the Resources list that current needs downloaded resources selects needs to download (the QQLIVE program of watching as needs).The user can download a plurality of resources simultaneously from an accelerator client.But an accelerator client also can be a plurality of users (being a plurality of normal client ends) service simultaneously.
Wherein, the data of all downloaded resources on the accelerator client all leave in its internal memory, have avoided like this causing hard disk corruptions because of the hard disc data of the frequent directly visit of user accelerator client.
Need to prove: because memory size is limited, so relatively be fit to the download (as the QQLIVE program) of the program data of network direct broadcasting aspect.And need big capacity downloaded files data for the user, because its data volume is big, then can only leave in the hard disk.
Normal client end and accelerator client are directly carried out in the reciprocal process, and accelerator is brought in respect to normal client and said so transparently, generally is not used in and play-overs program.
Therefore, for the accelerator client, the data of its output are many more, effect is just good more, the flow of P2P server and pressure have been alleviated relatively (because can not need P2P server there downloaded resources, but directly arrive accelerator client there downloaded resources), also accelerated the speed that the user obtains data simultaneously.
Step S220, S225: when the user continues quickening in the client in the downloaded resources process, the accelerator client needs regularly to report service data to the accelerator server, this service data comprises the flow of download/upload in the unit interval, user's linking number (promptly having how many users to download) or the like.Be convenient to the management of accelerator server to the accelerator client like this, over-burden to avoid a certain accelerator client, helps flow equalization.
The above only is preferred embodiment of the present invention, and in order to restriction the present invention, within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc.All should be included within protection scope of the present invention.

Claims (9)

1, a kind of method that makes up half-fixed P 2 P network is characterized in that, this method may further comprise the steps:
A. the accelerator server carries out authentication to the accelerator client of login accelerator server;
B. the normal client end obtains the seed that is stored in the downloaded resources in the P2P server;
C. the IP address that described normal client end preferentially obtains the accelerator client after being passed through by described accelerator server authentication according to described seed, and from described accelerator client downloads resource.
2, method according to claim 1 is characterized in that, further comprises before the described step b: described accelerator client is according to described seed downloaded resources from the described P2P server.
3, method according to claim 1 and 2 is characterized in that, described normal client end and described accelerator client are by logining described P2P server or by obtained the seed of downloaded resources by described P2P server broadcast.
4, method according to claim 1, it is characterized in that, described step c comprises: described accelerator client is downloaded a plurality of resources simultaneously from described P2P server and/or a plurality of described accelerator client and/or a plurality of described normal client end, and provides a plurality of described downloaded resources simultaneously to a plurality of described normal client ends.
5, method according to claim 1, it is characterized in that, need after the checking of described accelerator client by the accelerator server regularly to report service data to described accelerator server, step c further comprises: the IP address of the accelerator client after described normal client end preferentially obtains and passed through by described accelerator server authentication; The accelerator client downloads resource that preferential selection speed is fast in the above-mentioned IP address, distance is near.
6, method according to claim 5 is characterized in that, described service data comprises flow and user's linking number of download/upload in the unit interval.
7, a kind of system that makes up half-fixed P 2 P network comprises a plurality of normal client ends, it is characterized in that, this system also comprises P2P server, accelerator server and a plurality of accelerator client,
Described accelerator server is used to manage the normal operation of a plurality of described accelerator clients, and described accelerator client is carried out authentication, receives the service data that described accelerator client reports;
Described accelerator client has the function of described normal client end, and main being responsible for reports service data to described accelerator server, and provides a plurality of downloaded resources simultaneously to the user;
Described P2P server is used to preserve the information of user's download resource, comprises the seed of downloaded resources and the situation of current active user's download.
8, system according to claim 7 is characterized in that, described accelerator client is kept at a plurality of described downloaded resources in its internal memory.
9, system according to claim 7 is characterized in that, described service data comprises flow and user's linking number of download/upload in the unit interval.
CNB2006100614969A 2006-06-30 2006-06-30 Method and system for constructing half-fixed P2P network Active CN100527695C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100614969A CN100527695C (en) 2006-06-30 2006-06-30 Method and system for constructing half-fixed P2P network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100614969A CN100527695C (en) 2006-06-30 2006-06-30 Method and system for constructing half-fixed P2P network

Publications (2)

Publication Number Publication Date
CN101079766A CN101079766A (en) 2007-11-28
CN100527695C true CN100527695C (en) 2009-08-12

Family

ID=38907011

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100614969A Active CN100527695C (en) 2006-06-30 2006-06-30 Method and system for constructing half-fixed P2P network

Country Status (1)

Country Link
CN (1) CN100527695C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170371B (en) * 2007-11-30 2010-12-29 中兴通讯股份有限公司 A client data request optimization method and system in P2P order
CN101610289A (en) * 2009-07-21 2009-12-23 腾讯科技(深圳)有限公司 The methods, devices and systems of data download and node
CN101951396B (en) * 2010-09-03 2012-10-03 创想空间软件技术(北京)有限公司 System and method for realizing real-time communication of IP network by using P2P (Peer-to-Peer) jumping seeds
CN102055609B (en) * 2010-09-29 2013-04-03 捷鎏科技股份有限公司 Low delay network topology system and data transmission compensation method thereof
CN103685469B (en) * 2011-06-15 2017-06-23 北京奇虎科技有限公司 Document down loading method and system and client based on P2P
CN103164502A (en) * 2011-09-13 2013-06-19 吉菲斯股份有限公司 Management of online content in a network
US9219782B2 (en) * 2012-12-11 2015-12-22 Microsoft Technology Licensing, Llc Identifying seed computing devices using estimates in peer-to-peer networks
CN104168539A (en) * 2014-08-06 2014-11-26 无锡高联信息技术有限公司 Information interaction and push method based on LTE system
TWI686064B (en) * 2019-03-14 2020-02-21 就肆電競股份有限公司 Peer-to-peer network boost system

Also Published As

Publication number Publication date
CN101079766A (en) 2007-11-28

Similar Documents

Publication Publication Date Title
CN100527695C (en) Method and system for constructing half-fixed P2P network
CN100556129C (en) A kind of equity connects flow medium live system and device
EP2288085B1 (en) P2p based method, device and system for playing media
CN100405795C (en) Service system for distributed reciprocal flow media and realizing method for requesting programm
CN106330997B (en) A kind of method and system of the content distribution for mobile terminal application
CN100438408C (en) Method, device and system for realizing surrogate downloading
US20070233879A1 (en) System and method for advertisement identification, selection, and distribution involving a peer-to-peer network
CN106993054A (en) Document distribution method, node and system
CN107835437B (en) Dispatching method based on more cache servers and device
US20020178255A1 (en) Incentive program for a peer-to-peer network
CN102833293A (en) Method for downloading resources in peer to server and peer (P2SP) network, and client
CN101610162A (en) A kind of method, system and equipment that content is provided based on reciprocity storage networking
CN101388909A (en) P2P play-on-demand system and service method
CN101159645A (en) Design method and network structure of mutual server facing to P2P application
CN109194718A (en) A kind of block chain network and its method for scheduling task
CN101170430A (en) An advertisement distribution method based on distributed P2P stream media platform
CN103516579A (en) Service system providing offline message and corresponding service method
CN102857530A (en) Picture uploading method and system
CN101662508B (en) Method for data transmission based on point-to-point protocol, device and system thereof
CN108234607A (en) Document distribution method and system under a kind of architecture mode based on micro services
CN109218447A (en) Media file distribution method and file distributing platform
KR20000054315A (en) Internet advertisement broadcasting agency system and method
CN110086831A (en) Method for authenticating for gateway
CN110519656A (en) Playback method, system and the server of adaptive stream media
CN101150720A (en) Stream media program playing method and its playing client

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