CN101079800A - A method and system for improving P2P network stability - Google Patents

A method and system for improving P2P network stability Download PDF

Info

Publication number
CN101079800A
CN101079800A CNA2006100620264A CN200610062026A CN101079800A CN 101079800 A CN101079800 A CN 101079800A CN A2006100620264 A CNA2006100620264 A CN A2006100620264A CN 200610062026 A CN200610062026 A CN 200610062026A CN 101079800 A CN101079800 A CN 101079800A
Authority
CN
China
Prior art keywords
node
super node
super
backup
network
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
CNA2006100620264A
Other languages
Chinese (zh)
Other versions
CN101079800B (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 CN2006100620264A priority Critical patent/CN101079800B/en
Publication of CN101079800A publication Critical patent/CN101079800A/en
Application granted granted Critical
Publication of CN101079800B publication Critical patent/CN101079800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an improving method and system of P2P network stability, which comprises the following steps: A. making common joint land server and super joint successfully; adopting super joint as real-time super joint of common joint; B. transmitting duplicated request of other super joints in the P2P network through common joint; duplicating the other super joints after permitting the duplication to form the duplicated super joint; C. switching the common joint to the duplicated super joint when the real-time joint is off line; executing the step B. The invention strengthens the stability of P2P network greatly, which releases the pressure of server.

Description

A kind of method and system that improve the P2P network stabilization
Technical field
(Peer-to-Peer, P2P) network more particularly, relate to a kind of method and system of the P2P of raising network stabilization to the present invention relates to equity.
Background technology
The P2P network is a kind of distributed network, its network node be service providers also be the beneficiary of service, typical as P2P download, certain node is in other node file in download, its file of sharing also provides download for other node.
The P2P network has 4 types topological structure: centralization topology, full distributed destructuring topology, all distributed structureization topology and half distribution topology.Wherein, half distribution topology selects the higher node of performance (performances of aspects such as processing, storage, bandwidth) as super node, under each super node, hang the ordinary node of some, and the information of storing other nodes in the system, it is responsible for handling or transmitting the request of above-mentioned ordinary node.Half distributed topology of P2P network is a hierarchy type structure, constitutes one between the super node and transmits layer at a high speed, then constitutes some levels between super node and the common node be responsible for.
At the P2P network, especially in the semi-distributed P 2 P network, the landfall process of an ordinary node may further comprise the steps:
1, ordinary node at first sends the request of landing to server, and request adds this P2P network;
2, whether this ordinary node of server authentication is legal, legal commentaries on classics 3, illegal commentaries on classics 4;
3, ordinary node returns the information of some super nodes by the checking of server, changes 5;
4, ordinary node returns and lands failure not by server authentication;
5, ordinary node sends the request of landing to super node again;
6, super node receive ordinary node land request after, earlier whether this ordinary node of checking legal, and judges and oneself (for example can accept this ordinary node, the ordinary node that this super node is hung down is too much, then it can not accept this ordinary node), satisfying condition changes 7, otherwise changes 8;
7, ordinary node is received the grant message that lands that super node returns, and then completes successfully and lands;
8, super node returns and lands refuse information, then lands failure.
As mentioned above, in existing P 2P network (being typically the P2P network of half distributed topology), an ordinary node lands the process that super node must be finished " server lands checking " and " super node lands checking " two information interactions and judgement.
The advantage of the P2P network of this half distributed topology is that performance and extensibility are better, be easy to management, but that its defective is the dependence of super node is strong, if certain super node rolls off the production line, with making its whole ordinary nodes of being hung down be forced to roll off the production line, need land again.If roll off the production line on super node is frequent, will cause whole network system shake violent, also pose a big pressure simultaneously to server.
Summary of the invention
The object of the present invention is to provide a kind of method of the P2P of raising network stabilization, the P2P network that is intended to solve prior art causes the serious problem of system fluctuation because of rolling off the production line on the super node.
The present invention also aims to provide a kind of P2P network system, to solve the above-mentioned problems in the prior art better.
In order to realize goal of the invention, described P2P network system comprises server, super node and ordinary node, described super node is hung down described ordinary node and as the real-time super node of described ordinary node, described ordinary node backs up super node with at least one super node beyond the described real-time super node as it, then switches to described backup super node when described real-time super node rolls off the production line.
Described real-time super node and described backup super node have identical functions, are used for the request that described ordinary node sends is handled or transmitted.
Described super node all contains a status identifier, is real-time super node or backup super node to identify its state.
The P2P network that described P2P network is half distributed topology.
In order to realize goal of the invention better, the method for described raising P2P network stabilization may further comprise the steps:
A. ordinary node success game server and super node are with the real-time super node of described super node as described ordinary node;
B. described ordinary node other super nodes in described P2P network send backup request, then it are backed up after the backup permission by described other super nodes, make it become the backup super node;
C. when described real-time super node rolled off the production line, described ordinary node switched to described backup super node, and execution in step B once more.
Backup among the described step B is meant: described ordinary node and described backup super node are kept heartbeat.
The process that ordinary node switches to described backup super node among the described step C comprises:
C1. described ordinary node sends and contains the signaling packet of status identifier configuration information to described backup super node;
C2. described backup super node becomes real-time super node according to the assignment of himself status identifier of described status identifier configuration information change.
Described real-time super node and described backup super node have identical functions, are used for the request that described ordinary node sends is handled or transmitted.
The P2P network that described P2P network is half distributed topology.
The present invention backs up super node after landing super node at ordinary node, thereby can switch to the backup super node rapidly when super node rolls off the production line, and has greatly strengthened the P2P stability of network, has also alleviated the pressure of server in addition.
Description of drawings
Fig. 1 is the structure chart of P2P network system of the present invention;
Fig. 2 is the method flow diagram that the present invention improves the P2P network stabilization.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Among the present invention behind ordinary node certain super node in landing the P2P network, seek other super nodes in this network as the backup of this super node, when rolling off the production line, this super node notify this backup super node as formal super node and switching rapidly, backup once more simultaneously.Such P2P network system can guarantee that the ordinary node in the network is online all the time, and for ordinary node of the prior art needed heavily to land repeatedly, the present invention only need keep backup to get final product, and has greatly strengthened stability of network.
Fig. 1 shows the structure of P2P network system among the present invention, comprises server 100, real-time super node 200, ordinary node 300 and backup super node 400.
Above-mentioned server 100, in real time super node 200, ordinary node 300 are consistent with existing P 2P network system, and backup super node 400 is identical with the function and the character of real-time super node 200 in fact, all can be super node in general sense.In the present invention, each ordinary node 300 lands after certain super node, and this super node promptly becomes the real-time super node of this ordinary node 300, promptly aforesaid real-time super node 200; And simultaneously, other super nodes that this ordinary node 300 is also sought in the P2P network back up, and also are above-mentioned backup super node 400.Therefore, super node 200 has only one all the time in real time, and backup super node 400 then can be one or more.Differentiate that a super node is that the real-time super node or the method for backup super node are by the contained status identifier of super node, in the P2P network system in the present invention, each super node all comprises self a status identifier P: if P=true shows that then this super node is foregoing real-time super node 200; If P=false shows that then this super node is foregoing backup super node 400.Certainly, the assignment of above-mentioned status identifier P also can be taked other modes, and the present invention is not limited to certain specific assignment mode.
When certain real-time super node 200 can operate as normal, hang a plurality of ordinary nodes 300 it under, this moment, super node 200 was responsible for the request of ordinary node 300 is handled or transmitted in real time, backed up super node 400 and did not work; When real-time super node 200 cisco unity malfunctions (as rolling off the production line), 400 signaling packets that contain the status identifier configuration information that send according to ordinary node 300 of backup super node, revise the assignment of himself status identifier (if according to foregoing assignment mode according to this status identifier configuration information, that is: " P=false " changed to " P=true "), then this backup super node 400 becomes the real-time super node of this moment, and fulfil all responsibilities and function as super node, the request of ordinary node 300 is handled or transmitted.
Because the existence of backup super node 400 is arranged in the P2P network system of the present invention, guaranteed that its a large amount of ordinary nodes of being hung down can not be forced to roll off the production line when real-time super node 200 rolls off the production line, get final product operate as normal and only need switch to a backup super node 400, this is the basic reason that P2P network system of the present invention can keep high stability.
Fig. 2 shows the method flow that the present invention improves the P2P network stabilization, may further comprise the steps:
Among the step S201, ordinary node 300 sends the request of landing to server 100, i.e. request adds this P2P network, and by then successful game server 100 after the checking of server 100, server 100 returns the information of some super nodes to ordinary node 300 simultaneously.
Among the step S202, ordinary node 300 sends to certain super node and lands request, lands success after the checking by this super node, and then this super node becomes the real-time super node 200 of this ordinary node 300.In this step, this super node receive ordinary node 300 land request after, earlier whether this ordinary node 300 of checking legal, and judges and oneself can accept this ordinary node, for example, if the ordinary node of extension is not through accepting this ordinary node at most under this super node.Have only when satisfying above condition, this super node just returns and lands grant message and allow it to land for ordinary node 300, thereby this super node becomes the real-time super node of this ordinary node 300.The process of ordinary node game server and super node is identical in the implementation procedure of above step S201 and S202 and the prior art.
Among the step S203, ordinary node 300 is sought other super nodes and is sent backup request in the P2P network system, by after the backup permission then with the backup super node 400 of this super node as real-time super node 200.In this step, after these other super nodes are received the backup request of ordinary node 300, at first to judge and oneself can accept the request of this ordinary node 300, for example, if the ordinary node that this super node is hung down is not through receiving the request of this ordinary node 300 at most.Have only when this super node and determine to accept this ordinary node 300, just return the backup grant message and allow its backup for this ordinary node 300, thereby this super node becomes the backup super node 400 of this ordinary node 300 through judging.About backup, also promptly this ordinary node 300 is kept heartbeat with this backup super node 400: this ordinary node 300 regularly sends a packet to this backup super node 400, informs that its state is still for online.
Among the step S204, when the real-time super node 200 of ordinary node 300 rolls off the production line, these ordinary node 300 notice backup super nodes 400 become the real-time super node of this moment and realize rapidly switching, this ordinary node 300 operation among the execution in step S203 is once more simultaneously sought new super node as backup.In this step, the detailed content that ordinary node 300 switches to backup super node 400 is: when real-time super node 200 rolls off the production line, ordinary node 300 sends signaling packet immediately to backup super node 400, contain the status identifier configuration information in this signaling packet, ask this backup super node 400 to become real-time super node; When the backup super node receives above-mentioned signaling packet, then the assignment of revising himself status identifier according to the status identifier configuration information (for example, " P=false " changed to " P=true "), then this backup super node 400 becomes the real-time super node of this moment.In addition, the present invention realizes successfully that in this step switching the back continues execution in step S203, seeking new super node backs up, purpose is the stability that can always keep height for the P2P network system that guarantees its place, and arbitrary at any time real-time super node 200 can both guarantee when rolling off the production line that its ordinary node of being hung down can normally move.
Need to prove that the present invention mainly is suitable for but is not limited to the P2P network of half distributed topology, so long as include the P2P network of super node, all can use technical scheme of the present invention to improve this P2P stability of network.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of P2P network system, comprise server, super node and ordinary node, described super node is hung down described ordinary node and as the real-time super node of described ordinary node, it is characterized in that, described ordinary node backs up super node with at least one super node beyond the described real-time super node as it, then switches to described backup super node when described real-time super node rolls off the production line.
2, P2P network system according to claim 1 is characterized in that, described real-time super node and described backup super node have identical functions, is used for the request that described ordinary node sends is handled or transmitted.
3, P2P network system according to claim 1 is characterized in that, described super node all contains a status identifier, is real-time super node or backup super node to identify its state.
4, according to the described P2P network system of arbitrary claim in the claim 1 to 3, it is characterized in that the P2P network that described P2P network is half distributed topology.
5, a kind of method that improves the P2P network stabilization is characterized in that, said method comprising the steps of:
A. ordinary node success game server and super node are with the real-time super node of described super node as described ordinary node;
B. described ordinary node other super nodes in described P2P network send backup request, then it are backed up after the backup permission by described other super nodes, make it become the backup super node;
C. when described real-time super node rolled off the production line, described ordinary node switched to described backup super node, and execution in step B once more.
6, the method for raising P2P network stabilization according to claim 5, it is characterized in that the backup among the described step B is meant: described ordinary node and described backup super node are kept heartbeat.
7, the method for raising according to claim 5 P2P network stabilization is characterized in that, the process that ordinary node switches to described backup super node among the described step C comprises:
C1. described ordinary node sends and contains the signaling packet of status identifier configuration information to described backup super node;
C2. described backup super node becomes real-time super node according to the assignment of himself status identifier of described status identifier configuration information change.
8, according to the described method that improves the P2P network stabilization of arbitrary claim in the claim 5 to 7, it is characterized in that, described real-time super node and described backup super node have identical functions, are used for the request that described ordinary node sends is handled or transmitted.
9, according to the method for the described raising of arbitrary claim in the claim 5 to 7 P2P network stabilization, it is characterized in that the P2P network that described P2P network is half distributed topology.
CN2006100620264A 2006-08-07 2006-08-07 A method and system for improving P2P network stability Active CN101079800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100620264A CN101079800B (en) 2006-08-07 2006-08-07 A method and system for improving P2P network stability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100620264A CN101079800B (en) 2006-08-07 2006-08-07 A method and system for improving P2P network stability

Publications (2)

Publication Number Publication Date
CN101079800A true CN101079800A (en) 2007-11-28
CN101079800B CN101079800B (en) 2010-07-28

Family

ID=38907041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100620264A Active CN101079800B (en) 2006-08-07 2006-08-07 A method and system for improving P2P network stability

Country Status (1)

Country Link
CN (1) CN101079800B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010115373A1 (en) * 2009-04-08 2010-10-14 中兴通讯股份有限公司 Peer-to-peer-network-based resource information backup operation method and peer-to-peer network
CN101374159B (en) * 2008-10-08 2012-05-23 中国科学院计算技术研究所 Credible control method and system for P2P network
CN101772012B (en) * 2009-01-04 2012-06-06 中国移动通信集团公司 Method, system and device for determining network node confidence
CN103167028A (en) * 2013-02-21 2013-06-19 胡凤兵 User convergence method capable of saving transmission bandwidth and increasing concurrency
CN110365771A (en) * 2019-07-16 2019-10-22 深圳市网心科技有限公司 A kind of data capture method, device, system and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549613A (en) * 2003-05-19 2004-11-24 �ʼҷ����ֵ��ӹɷ����޹�˾ Method and apparatus for soft switching between P2P communication mode and traditional communication mode in radio communication system
CN1298138C (en) * 2003-06-04 2007-01-31 中兴通讯股份有限公司 Method for realizing chain circuit polymer function based on strategy route
CN100387017C (en) * 2005-09-01 2008-05-07 西安交通大学 High usable self-healing Logic box fault detecting and tolerating method for constituting multi-machine system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374159B (en) * 2008-10-08 2012-05-23 中国科学院计算技术研究所 Credible control method and system for P2P network
CN101772012B (en) * 2009-01-04 2012-06-06 中国移动通信集团公司 Method, system and device for determining network node confidence
WO2010115373A1 (en) * 2009-04-08 2010-10-14 中兴通讯股份有限公司 Peer-to-peer-network-based resource information backup operation method and peer-to-peer network
CN103167028A (en) * 2013-02-21 2013-06-19 胡凤兵 User convergence method capable of saving transmission bandwidth and increasing concurrency
CN110365771A (en) * 2019-07-16 2019-10-22 深圳市网心科技有限公司 A kind of data capture method, device, system and computer readable storage medium

Also Published As

Publication number Publication date
CN101079800B (en) 2010-07-28

Similar Documents

Publication Publication Date Title
Zhang et al. Using the small-world model to improve freenet performance
EP2058980B1 (en) A method, system and device for establishing a peer to peer connection in a p2p network
CN101616184B (en) Method of redundant data storage
EP2544403B1 (en) Method and system for terminal access and management in cloud computing
EP2227016B1 (en) A content buffering, querying method and point-to-point media transmitting system
CN101257396B (en) System for distributing multi-field content based on P2P technique as well as corresponding method
CN102143046A (en) Load balancing method, equipment and system
CN101079800A (en) A method and system for improving P2P network stability
EP1856889A1 (en) Making available redundant sip proxy resources
JP2001202330A (en) Cluster server device
CN105159603A (en) Repair method for distributed data storage system
CN111615066A (en) Distributed micro-service registration and calling method based on broadcast
CN103944993A (en) Million-level user simultaneous online mobile platform server architecture
CN1858755A (en) Method for keeping network game continuity
CN101304372B (en) Method, equipment and system for collocating access control list
CN103401951B (en) Based on the elastic cloud distribution method of peer-to-peer architecture
EP3570169B1 (en) Method and system for processing device failure
JP3785101B2 (en) Communication connection establishment method, communication control device, recording medium, and control program
CN1881898A (en) Non-structured P2P copy consistency maintaining method based on node locus label
CN101060424A (en) A system and its method for realizing the load balancing and high availability
CN104995897A (en) Method, system and devices for content caching and delivering in IP networks
CN102017568B (en) For sending the system of the autonomous content play
KR100435985B1 (en) Nonstop service system using voting and, information updating and providing method in the same
CN100559758C (en) Method based on building combination P2P system
Nguyen et al. A dynamic-clustering backup scheme for high-availability distributed File sharing Systems

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