Summary of the invention
To above one or more problems; The invention provides a kind of P2P node administration method; Go for different P2P operation modes; It can also pass through the adjustment to the selection strategy of P2P management server and secondary server simultaneously, and the coupling operation is tactful well, and less to original or newly-built upper layer application systematic influence.
P2P node administration method of the present invention comprises: the user management entity in the manageable P2P Operation Network is application relevant with operation and the P2P aspect that has nothing to do with operation with the node administration entity division; Application and P2P aspect are carried out alternately through interface, when the user registers and lands, accomplish the binding of application and P2P aspect.
Wherein, be the functional entity of P2P aspect with the P2P node division of P2P centre management subsystem in the P2P Operation Network and user terminal, other parts in the P2P Operation Network are divided into the functional entity of application.
Registering or land in the flow process at the P2P node through the node administration entity is P2P node distribution node sign and P2P management server address.Registering or land in the flow process at the P2P node through the node administration entity is the required secondary server of node appointing system operation.At least a policy selection P2P management server or secondary server below can passing through: service, ownership place service, load balancing service nearby.
The P2P node administration method comprises: step 1, user terminal are obtained the address of registrar from system configuration data; Step 2, the user initiates to land request, wherein, land and carry user position information and P2P node identification in the request, and the P2P node identification is empty; Step 3, registrar distributes the P2P node identification and specifies the game server address for user terminal according to presetting strategy, and in response message, P2P node identification and game server address is fed back to user terminal; Step 4, user terminal writes down the P2P node identification and the game server address of being fed back, and initiates the request of landing to game server; And step 5, game server is according to presetting strategy, for user terminal configuration P2P initialization information carries out initialization.
When user terminal lands, can see terminal interface, but need not import username and password.
When user terminal lands, can not see terminal interface, carry when user terminal lands after the encryption username and password to or the node identification and the access pin of system assignment right.
Node administration can adopt the mode of unified centralized management of the whole network or the management of branch territory, and for a minute territory management, game server can be positioned at identical management domain or different management domains with registrar when actual deployment.
Adopt P2P node administration method of the present invention, go for different P2P operation modes.It can also pass through the adjustment to the selection strategy of P2P management server and secondary server simultaneously, and the coupling operation is tactful well, and less to original or newly-built upper layer application systematic influence.
Embodiment
With reference to accompanying drawing, specify embodiment of the present invention below.
No matter be on the internet or on the telecommunications network, the universal nodes management method of different operation modes all appears being adapted at present.
The present invention proposes the irrelevant P2P node administration method of a kind of with concrete operation mode: two aspects of P2P aspect that it is divided into user management in the manageable P2P Operation Network and run relevant application and has nothing to do with operation,, the user accomplishes the binding of two aspects when registering and land.The flexible combination of P2P node administration and any operation mode can be realized in this way easily, also different application can be used for.The renewal of the differentiation of operation mode, application all can not influence the running of bottom P2P method like this.
The embodiment of this management method is as shown in Figure 1.Manageable P2P system be can run and user terminal, service sub-system, operation management subsystem, P2P centre management subsystem, operator's backstage subsystem five sub-systems comprised; Wherein the P2P node section of P2P centre management subsystem and user terminal belongs to the P2P aspect functional entity of native system, in Fig. 1, identifies with shade.Remainder belongs to the operation aspect functional entity of native system.The handling process of two aspects is independently of one another, only carries out alternately through interface.Applications client in service sub-system, operator's backstage subsystem and the terminal of with dashed lines sign and the present invention do not have directly and get in touch, and the meaning of its existence is merely the integrality that guarantees system configuration.
In Fig. 1, comprise: the node administration of the P2P node of user terminal, P2P centre management subsystem, the user management of operation management subsystem with the closely-related functional entity of the present invention.Wherein node administration be responsible for providing the P2P node registration, land functions such as verification; User management be responsible for providing the user registration, land functions such as verification.In the embodiment of reality; User management, node administration have different deployment schemes; Both possibly be a certain functional module such as the user management device in the Integrated Service Management Platform in a certain physical function equipment; Also possibly be one or more discrete physical equipment, for example the node administration functional entity possibly comprise node registrar, two physical entities of node logon server, also possibly be a physical entity.
In scheme according to the invention; But each user has the ID of its identity of unique identification; This sign can be existing telephone number in the telecommunications network (contain mobile phone, PHS number), broadband internet number of the account; Also can be that operator is the ID of P2P application definition specially, the user can register through WEB, business hall application or endpoint registration and obtain through modes such as identity validations.This sign is the ID of application, can be used for charging, user management, user behavior analysis and statistics etc., and it is with operation mode and use relevant.
Each P2P software that is installed on the user terminal has a sign, and this sign is similar to the IMSI of mobile phone, can confirm software terminal (P2P node) uniquely.This P2P node identification can be constant mark, also can be dynamic marks.When adopting constant mark, the user installs first and when moving the P2P terminal software, obtains the P2P node identification of system's appointment.When adopting dynamic P2P node identification, when the user lands when inserting the P2P network, obtain system's appointment when time landing effective P2P node identification.The P2P node identification is the ID of P2P aspect, can be used for node administration, resource management and P2P nodes ' behavior and analyzes and statistics, and it has nothing to do with operation mode and application; But can be through P2P node identification and ID related, in operation and application process, be able to embodiment.In reality operation, operator can be according to the handling process of own two aspects of needs association.
Fig. 2 explains related between operation aspect and the P2P aspect flow process with an embodiment, and wherein user's registration is independent of the registration of P2P node.P2P aspect node shown in Figure 2 is registered/is landed in the flow processing, and system not only will be P2P node distribution node sign, also will be according to predetermined strategy, and to specify the P2P method to move needed default or when time landing effective P2P management server address for it.In general, default setting can be accomplished in the node register flow path, in landing flow process, revises in case of necessity.For then specifying through landing flow process when time session effective service device.
The P2P management server comprises the server that resource query (group membership's inquiry), resource management, scheduling of resource function are provided, and they possibly be the standalone feature entities of simple function, also possibly be the combination function entity with a plurality of functions.Wherein said resource is meant the media file section that exists with pieces.
Except the P2P management server; In scheme according to the invention; Can also utilize P2P node administration entity and P2P node to register/land flow process; Be other required necessary secondary server of node appointing system operation, as provide the terminal versions automatically updating function (terminal) version server, be used to show, the content directory server of query contents etc.These secondary servers can be used as default attribution server and when registration, specify, and in landing flow process, can revise in case of necessity.
By the way, the user need not to understand complicated network design, just can obtain the required Servers-all information of the normal operation of system through a simple user landfall process, and these server infos are commonly referred to as initialization information.
The selection strategy of P2P management server and secondary server comprises that service, ownership place service, load balancing etc. are multiple nearby.So-called service nearby just is meant the address current according to node, for it selects the geographical server that closes on; The ownership place service is exactly the address when registering according to node, is its given server; Load balancing then is the load state according to associated server in the network, and mean allocation is professional.Above strategy can single use also can make up use.
The selection strategy of P2P management server and secondary server can define and dispose through the operation management subsystem.The selection strategy that how to define and dispose P2P management server and secondary server is referring to patent " a kind of system of P2P network application and network side system " and " a kind of P2P network application method ".
Through the adjustment of strategy, operator can adjust the running of P2P network easily, makes it to satisfy better the needs of operation, but can not influence the operation workflow of P2P network.
In scheme according to the invention; Can select the node administration scheme of the whole network unified management or branch territory management flexibly for use; And the selection of P2P aspect deployment scheme, change neither can influence the deployment and the flow process of upper strata operation aspect, also can not influence the terminal of One's name is legion.In addition, can also adopt different nodes management deployment scheme in the present invention, like unified registrar of the whole network, but a plurality of game server; Registrar and game server also can have identical or different management domain (like the management domain of the registrar management domain greater than game server).
Fig. 2 has only a unified node administration point, can be regarded as the embodiment that a whole network is unified node administration.May further comprise the steps:
Step S202, the user carries out user's registration to user management/certificate server, under the situation of needs, the input user cipher.
Step S204, the password of user management/certificate server distributing user sign and recording user, and the response message that will carry ID feeds back to the user.
Step S206, the user lands through username and password.
The user that step S208, user management/certificate server run aspect lands flow processing, and the response message that will carry ID feeds back to the user.
Step S210, the user uses business, if installing terminal not, then system prompt elder generation installing terminal as yet.
Step S212, the user installation terminal, terminal operating, and carry out the user and land.
Step S214, the P2P2 node is registered/is landed, and is sent to carry the user in the message of node administration entity and land check information.
Step S216 carries out the processing that flow process was registered/landed to P2P aspect node, and registers/land the processing response message, wherein carry initialization information to user management/certificate server feedback P2P aspect.
Step S218, operation is managed the corresponding relation of record user identifications and P2P node identification with the P2P aspect.
Step S220, user management/certificate server lands success response to user feedback, returns P2P aspect node location registration process result, such as P2P node identification, P2P initialization information etc.
Step S222, user terminal record P2P node identification and P2P initialization information, user terminal successful operation.
Fig. 3 explains the implementation method of node branch territory Managed Solution with an embodiment.In the present embodiment, registrar has only one, but has a plurality of game servers, and promptly registrar has different management domains with game server.The practical implementation step is following:
Step S302-S304, the user installation terminal, the positional information of selection or input oneself behind the terminal operating, is obtained the address of registrar from system configuration data.
Step S306, user input user name, password initiates to land request, in request, carry user position information and P2P node identification, and this moment, node identification was empty.
Step S308-S314, registrar is the terminal distribution node identification according to presetting strategy, and specifies the game server address, and return node identifies and the game server address in response.
Step S316-S318, the game server address and the node identification that return in the terminal records response, and on the backstage (with user's perception less than mode) initiate the request of landing to game server.
Step S320, game server is node configuration P2P initialization information, and initialization information is fed back to user management entity and user terminal according to presetting strategy.
Step S322, user terminal record initialization information, and the corresponding relation of user management entity record ID and node identification.
Step S324, the user successfully lands, the terminal successful operation.
When actual deployment, also can take registrar, game server to divide equally the scheme that the territory is disposed.No matter which kind of scheme of employing for the terminal, only need know registrar in advance, and registrar is relatively stable in whole P2P network,, also can change easily through the mode of upgrading the terminal software installation kit even change is arranged.
When actual deployment, user recited above lands flow process and can accomplish with the mode that implicit expression is landed, and it can have following two kinds of forms:
The terminal software front stage operation, promptly the user can see terminal interface, does not accomplish and lands but do not need the user to input user name, password by hand.
The terminal is moved in back way and is accomplished and land; The user can't see terminal interface (but can see the associated process operation through system management facility); User name, the password that possibly carry when the terminal is landed after the encryption are right, also possibly be that the system node identification and the access pin that when it is registered, distribute are right.
If the method that operator selects dynamic P2P node identification to distribute, handling process is similar with the said flow process of Fig. 2 and Fig. 3, just can the omit registration server, and promptly registering and landing is same flow process.
Adopt P2P node administration method of the present invention, go for different P2P operation modes.It can also pass through the adjustment to the selection strategy of P2P management server and secondary server simultaneously, and the coupling operation is tactful well, and less to original or newly-built upper layer application systematic influence.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.