CN102118422A - Peer node of RELOAD peer network as well as method and system for updating configuration of peer node - Google Patents

Peer node of RELOAD peer network as well as method and system for updating configuration of peer node Download PDF

Info

Publication number
CN102118422A
CN102118422A CN2010100030598A CN201010003059A CN102118422A CN 102118422 A CN102118422 A CN 102118422A CN 2010100030598 A CN2010100030598 A CN 2010100030598A CN 201010003059 A CN201010003059 A CN 201010003059A CN 102118422 A CN102118422 A CN 102118422A
Authority
CN
China
Prior art keywords
configuration information
peer
configuration
node
enabling
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
CN2010100030598A
Other languages
Chinese (zh)
Other versions
CN102118422B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010003059.8A priority Critical patent/CN102118422B/en
Priority to PCT/CN2010/080275 priority patent/WO2011082634A1/en
Publication of CN102118422A publication Critical patent/CN102118422A/en
Application granted granted Critical
Publication of CN102118422B publication Critical patent/CN102118422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a peer node of an RELOAD peer network as well as a method and system for updating the configuration of the peer node. The method comprises the following steps: acquiring configuration information updated by a configuration server via the peer node, wherein the configuration information carries a starting time parameter; determining the starting time of the configuration information by the peer node in accordance with the starting time parameter; and when the starting time is over, using the configuration information by the peer node to update the local configuration. According to the invention, the normal operation of the system can be ensured.

Description

The peer node of RELOAD peer-to-peer network and the update method of configuration and system
Technical field
The present invention relates to the network and the communications field, relate in particular to a kind of peer node of RELOAD peer-to-peer network and the update method and the system of configuration thereof.
Background technology
Peer-to-peer network (Peer to Peer abbreviates P2P as) is a kind of distributed network, and the participant of network shares resource and the service that they are had.Generally speaking, the shared of resource and service comprises: information share with sharing of the sharing of exchange, computational resource such as CPU, storage resources such as buffer memory and disk space etc.Resources shared and service can be visited by any peer node (Peer) in the network.Each participant in peer-to-peer network is resource and ISP (server), is again resource and the service person of obtaining (client).
Resource location and discovery (REsource LOcate And Discovery, abbreviate RELOAD as) be the resource location and the discovery agreement of a kind of peer-to-peer network of IETF peer to peer session initializtion protocol (Peer To Peer SessionInitiation Protocol abbreviates P2PSIP as) working group definition.The implication of the several terms in the RELOAD peer-to-peer network is as follows:
Node ID: in the RELOAD peer-to-peer network as the unique identification of each node;
Configuration server: for whole network provides configuration information, for example, the algorithm of certificate server address, guiding node address, network using, the restriction of the size of message and some other common configuration information;
Guiding node: have public network IP, can be direct-connected by peer node, the peer node of guide service can be provided for the adding of peer node.All there is setting the address of guiding node in the configuration information of configuration server.
Fig. 1 is a kind of group-network construction schematic diagram of RELOAD peer-to-peer network, and as shown in Figure 1, the RELOAD peer-to-peer network is made up of peer node (A, B, C, D), configuration server etc.Wherein, node D is a guiding node.
Peer node need be obtained latest configuration from configuration server when starting, and is example with node A, and the flow process that realizes obtaining when peer node starts configuration in the prior art mainly comprises the steps: as shown in Figure 2
Step 201: peer node A starts;
Step 202: peer node A obtains configuration information in HTTP GET mode from configuration server;
Step 203: configuration server returns the XML configuration file to peer node A;
Step 204: peer node A utilizes the local configuration of the configuration information update that obtains;
Step 205: peer node A carries out all the other flow processs that add peer-to-peer network.
Behind the configuration modification on the configuration server, the node in the peer-to-peer network need upgrade this locality configuration.With the Node B is example, and the flow process that peer node is upgraded configuration behind the configuration modification in the prior art in Fig. 3, supposes that node A has had new configuration as shown in Figure 3, and the flow process of upgrading configuration mainly may further comprise the steps:
Step 301: peer node B sends message (can be any message of RELOAD) to peer node A;
Step 302: peer node A receives the configuration sequence number of checking after the message of Node B wherein, and the configuration sequence number of Ruo Biben node is little, thinks that then the configuration of Node B is old, needs to upgrade;
Step 303: peer node A is to the response of Node B return messages, and prompting is not new configuration;
Step 304: peer node A sends to Node B with its configuration information and sends, and the notice Node B is upgraded;
Step 305: peer node B is according to the local configuration of the configuration information update of the node A that receives;
Step 306: peer node B returns the config update response to node A.
From above-mentioned flow process as can be seen, in the prior art of RELOAD, there are the following problems: just begin to scatter and enable new configuration as long as there is new node to add behind the configuration modification in network, just in time be in the peak traffic phase if new node adds fashionable system, during this time enable new configuration and may cause the operation of system to be broken down.
Summary of the invention
Main purpose of the present invention is to provide a kind of peer node of RELOAD peer-to-peer network and the update method and the system of configuration thereof, to solve at least in the prior art owing to there not be to specify the enabling time of new configuration, thereby may cause peak traffic phase system to move the problem that breaks down.
According to an aspect of the present invention, provide a kind of update method of peer node configuration of RELOAD peer-to-peer network, comprising: peer node is obtained the configuration information after configuration server upgrades, and wherein, this configuration information carries the enabling time parameter; Peer node is determined the enabling time of above-mentioned configuration information according to this parameter enabling time; When enabling time arrived, peer node was utilized the configuration of above-mentioned configuration information update this locality.
Preferably, the zero-time that above-mentioned enabling time parameter indication configuration information is enabled, or the time period of indicating configuration information to enable.
Further, if the time period that enabling time parameter indication is enabled, then parameter comprises enabling time: zero-time of enabling and duration, or, zero-time of enabling and the concluding time of enabling.
Further, peer node determines that the enabling time of configuration information comprises: peer node is determined t:t=t start-up time of configuration information according to following formula 0+ offset, wherein, t 0Be the zero-time of enabling, offset enables the skew of configuration parameter more than or equal to 0 for peer node.
Further, one of can be in such a way determine offset: get 0 to the random number between the above-mentioned duration, with this random number as offset; Get 0 to the random number between the default value, this random number is got after divided by above-mentioned duration surplus, will get surplus result as offset, wherein, default value is the node identification sum of above-mentioned duration and this peer node; The node identification of getting peer node carries out after the Hash operation surplus divided by getting behind the above-mentioned duration, will get surplus result as offset.
Further, if the time period that enabling time parameter indication is enabled, peer node determines that the enabling time of configuration information comprises: peer node according to the operating position of its system resource, is determined enabling time in the time period of enabling time parameter indication.
Further, before the configuration information after peer node is obtained the configuration server renewal, this method also comprises: upgrade the configuration information of the standby configuration of configuration server, set the enabling time parameter that starts configuration information;
Then arrive or time period of enabling time parameter indication when arriving in the zero-time of enabling time parameter indication, this method also comprises: configuration server switches to standby configuration, enables the configuration information after the renewal.
Further, it is one of following that the configuration information after peer node is obtained configuration server and upgraded comprises: peer node is regularly obtained configuration information from configuration server; The guiding node of RELOAD peer-to-peer network regularly obtains configuration information from configuration server, and issues in the RELOAD peer-to-peer network, and peer node is obtained the configuration information of guiding node issue; The guiding node of RELOAD peer-to-peer network regularly obtains configuration information from configuration server, peer node by with the interaction message of guiding node, obtain configuration information.
Further, for all nodes of RELOAD peer-to-peer network, enabling time parameter identical, perhaps, for each node in the RELOAD peer-to-peer network, enabling time parameter do not finish identical.
According to a further aspect in the invention, provide a kind of peer node of RELOAD peer-to-peer network, having comprised: acquisition module, determination module and Executive Module.Wherein, acquisition module is used to obtain the configuration information after configuration server upgrades, and wherein, carries the enabling time parameter of configuration information in this configuration information; Determination module is used for the enabling time parameter of carrying according to configuration information, determines the enabling time of configuration information; Executive Module is used for when enabling time arrives, and utilizes this locality configuration of config update peer node.
According to another aspect of the invention, provide a kind of update system of peer node configuration of RELOAD peer-to-peer network, having comprised: configuration server and peer node.Wherein, configuration server is used for the configuration information behind the storage update, wherein, has specified the enabling time parameter of configuration information in this configuration information; Peer node is used to obtain the configuration server stored configuration information, and according to above-mentioned enabling time parameter determine that this locality enables the enabling time of configuration information, when enabling time arrives, utilize the configuration of this configuration information update this locality.
Preferably, above-mentioned enabling time parameter comprise: enable the zero-time of configuration information, or, the time period of enabling configuration information; Configuration server also is used in the zero-time of enabling configuration information or in the time period, the configuration information after renewal is enabled in this locality.
Further, this system also comprises: guiding node is used for obtaining configuration information from configuration server, and this configuration information is sent to peer node.
By the present invention, specify the enabling time parameter of this configuration information in the configuration information after renewal, thereby make the peer node obtain this configuration information can determine to enable the time of the configuration information after the renewal according to the enabling time parameter, solved owing to enabling the problem that new configuration causes system's operation troubles, and then guaranteed the normal operation of system in the peak traffic phase.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of RELOAD peer-to-peer network;
Fig. 2 is that the peer node of existing techniques in realizing is obtained the flow process of configuration when starting;
Fig. 3 is the flow process that peer node is upgraded local configuration behind the configuration modification of existing techniques in realizing;
Fig. 4 is the structural representation according to the update system of the peer node configuration of the RELOAD peer-to-peer network of the embodiment of the invention;
Fig. 5 is the structural representation of update system of the peer node configuration of RELOAD peer-to-peer network according to the preferred embodiment of the invention;
Fig. 6 is the structural representation according to the peer node of the RELOAD peer-to-peer network of the embodiment of the invention;
Fig. 7 is the flow chart according to the update method of the peer node configuration of the RELOAD peer-to-peer network of the embodiment of the invention;
Fig. 8 is the flow chart according to the embodiment of the invention one;
Fig. 9 is the flow chart according to the embodiment of the invention two;
Figure 10 is the flow chart according to the embodiment of the invention three.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
According to the embodiment of the invention, the update system of a kind of peer node configuration is provided, this system is used for upgrading the configuration of the peer node of RELOAD peer-to-peer network.
Fig. 4 is according to the structural representation of the update system of the peer node configuration of the RELOAD peer-to-peer network of the embodiment of the invention, as shown in Figure 4, will comprise in this system: configuration server 2 and peer node 4.Wherein, configuration server 2 is used for the configuration information behind the storage update, wherein, has specified the enabling time parameter of this configuration information in this configuration information; Peer node 4 is used to obtain the above-mentioned configuration information of configuration server 2 storages, and determine that according to the enabling time parameter of appointment in this configuration information this locality enables the enabling time of this configuration information, when enabling time arrives, utilize the configuration of this configuration information update this locality.
Said system by the embodiment of the invention, can when revising configuration information, specify the enabling time parameter of this configuration information, thereby make peer node in the RELOAD peer-to-peer network when obtaining this configuration information, the time that can determine to enable this configuration information according to this parameter enabling time, upgrade configuration thereby can avoid the peak traffic phase, avoid system's operation to break down.
In concrete application, can configuration divide active and standby two kinds, the master is configured to the current configuration of using, and standby configuration is used for revising when disposing.When needs are revised configuration information, upgrade standby configuration earlier, when needing to enable the configuration after the renewal again, enable new configuration in the mode of masterslave switchover.Particularly, can upgrade the configuration information of the standby configuration of configuration server 2 earlier, and the enabling time parameter of this configuration information of equipment, in specific implementation process, an enabling time parameter (the enabling time parameter that is all peer node in the RELOAD peer-to-peer network is identical) can be set at all peer node of full RELOAD peer-to-peer network, also can be at different peer node, incomplete same enabling time parameter is set, for example, can be according to the node ID difference of peer node, for each node ID be provided with one enabling time parameter, perhaps, for the peer node of a certain section node ID is provided with an identical enabling time parameter.
And, the enabling time parameter of the configuration information of appointment can be the time period of enabling the zero-time of this configuration information or enabling this configuration information in the configuration information, if should enabling time time period of enabling this configuration information of parameter indication, then should enabling time parameter can comprise: zero-time and the duration of enabling this configuration information, perhaps, enable the zero-time and the concluding time of this configuration information.And, configuration synchronization for the peer node of the configuration that makes configuration server and RELOAD peer-to-peer network, in the indicated zero-time of enabling of the enabling time parameter that is provided with or in the time period, configuration server also is used for the above-mentioned configuration information after renewal is enabled in this locality, particularly, configuration server can be switched to standby configuration in this zero-time or in the time period, enables this configuration information.
In addition, peer node 4 can directly be obtained configuration information after the above-mentioned renewal from configuration server 2 according to the time point that sets in advance, after also can obtaining configuration information after the renewal by guiding node, this configuration information is sent to peer node, therefore, as shown in Figure 5, can also comprise according to the system of the embodiment of the invention: guiding node 6, be used for obtaining above-mentioned configuration information, and this configuration information is sent to peer node 4 from configuration server 2.In concrete the application, guiding node 6 can initiatively be issued in network after getting access to configuration information from configuration server 2, also can be that guiding node 6 sends to peer node 4 with the configuration information that obtains when peer node 4 and guiding node 6 carry out message.By system as shown in Figure 5, make peer node 4 to obtain on the configuration server 2 configuration information after the renewal of storage by guiding node 6.
Below the peer node according to the RELOAD peer-to-peer network of the embodiment of the invention is described.
Fig. 6 is the structural representation according to the peer node of the RELOAD peer-to-peer network of the embodiment of the invention, and as shown in Figure 6, this peer node mainly comprises: acquisition module 60, determination module 62 and Executive Module 64.Wherein,
Acquisition module 60 is used to obtain the configuration information after configuration server upgrades, and wherein, carries the enabling time parameter of this configuration information in this configuration information; In concrete the application, acquisition module 60 can directly obtain this configuration information from configuration server, also can from configuration server, obtain this configuration information by guiding node, initiatively in network, issue by guiding node again, thereby make acquisition module 60 get access to this configuration information, perhaps, when peer node and guiding node carry out interacting message, obtain this configuration information from guiding node.
Determination module 62 is used for the enabling time parameter of carrying according to above-mentioned configuration information, determines that this peer node enables the enabling time of this configuration information; In concrete the application, if enabling time, parameter specified the time period of enabling, then determination module 62 can add that the mode of skew obtains the enabling time that this configuration information is enabled in this locality by the zero-time that is provided with, particularly, this skew can obtain according to zero-time of indicating in the enabling time parameter and duration.
Executive Module 64 is used for when above-mentioned enabling time arrives, and utilizes this locality configuration of above-mentioned configuration information update peer node.In concrete the application, active and standby configuration can be set, the master that is configured to of current use disposes, and after getting access to above-mentioned configuration information, utilizes this configuration information update standby configuration, when enabling time arrives, be switched to standby configuration, enable standby configuration, this standby configuration is disposed as main, change original main configuration switching into standby configuration, stop using.
The peer node of the above-mentioned RELOAD peer-to-peer network by the embodiment of the invention can be according to the enabling time parameter of configuration information, enables the configuration information after the renewal, thereby can avoid upgrading configuration in the peak traffic phase.
The update method that peer node according to the embodiment of the invention is disposed is described below.
Fig. 7 is the flow chart according to the update method of the peer node configuration of the RELOAD peer-to-peer network of the embodiment of the invention, this method is used for upgrading the configuration of RELOAD peer-to-peer network peer node, as shown in Figure 7, this method mainly comprises (step S702-step S706):
Step S702, peer node is obtained the configuration information after configuration server upgrades, and wherein, this configuration information carries the enabling time parameter;
Step S704, peer node is determined the enabling time of this configuration information according to above-mentioned enabling time parameter;
Step S706, when above-mentioned enabling time arrived, peer node was utilized the configuration of this configuration information update this locality.
Said method by the embodiment of the invention, behind the configuration information of peer node after obtaining renewal, can determine to enable according to the enabling time parameter of carrying in this configuration information the time of this configuration information, thereby can avoid upgrading configuration information in the peak traffic phase.
In concrete the application, when needs were revised configuration information, configuration server at first upgraded configuration information, and disposed the enabling time parameter of this configuration information in this configuration information.Particularly, the enabling time parameter of configuration can represent to enable the time point of this configuration information, also can represent to enable the time range of this configuration information.
And, when time period that the parameter indication of the enabling time of configuration is enabled, this enabling time parameter can comprise: zero-time of enabling and duration, when duration is 0, enabling time parametric representation time point (zero-time), perhaps, zero-time of enabling and the concluding time of enabling.
And when enabling time, parameter was indicated the time period of enabling, peer node can be determined the enabling time t of this configuration information according to following formula when determining the enabling time of this configuration information:
T=t 0+ offset, wherein, t 0Be the zero-time of enabling in the enabling time parameter, offset enables the skew of this configuration parameter more than or equal to 0 for this peer node.
Particularly, above-mentioned offset can obtain according to the duration in the enabling time parameter, for example, directly get 0 to the random number between the duration as offset; Perhaps, get 0 to the random number between duration and node ID sum divided by duration, get surplusly then, will get surplus result as offset; Perhaps, get node ID and carry out after the Hash computing divided by duration, get then surplus, with the result as offset.
Perhaps, when time period that enabling time parameter indication configuration information is enabled, peer node is when determining the enabling time of this configuration information, peer node is in the time period of this enabling time parameter indication, according to its system resource (for example, CPU) operating position is determined the enabling time of this configuration information, and particularly, peer node can be enabled this configuration information when there is the free time in its system resource.Can guarantee enabling successfully of new configuration like this, also can not influence the operation of other business simultaneously.
Determine enabling time of peer node can make the configuration after different peer node is enabled renewal in the different time by said method, enable new configuration and cause upgrading the problem that failure or system make mistakes at synchronization to avoid most of node.
In specific implementation process, the enabling time of the configuration information after configuration server is upgraded is during parameter, can be the identical enabling time parameter of the whole network configuration, promptly only dispose one enabling time parameter, can not finish identical enabling time for each peer node configuration yet, for example, can be to the different enabling time parameter of peer node configuration of different node ID, perhaps, be the identical enabling time parameter of a plurality of peer node configurations in certain node ID scope, to the different enabling time parameter of other peer node configuration in this scope.During configuration information after certain peer node is being obtained renewal,, determine that it enables the time of configuration information, further like this dispersion time that each node is enabled configuration information in the RELOAD peer-to-peer network according to the enabling time parameter that is its configuration.
In specific implementation process, can enable configuration after the renewal by the mode of masterslave switchover, particularly, when revising configuration, can upgrade standby configuration earlier, then when enabling time arrives, enable configuration after the renewal by the mode of masterslave switchover.Enabling of configuration after can realizing easily upgrading like this.
Therefore, when needs are revised configuration information, at first upgrade the configuration information of the standby configuration of configuration server, and set the enabling time parameter of this configuration information; And in order to make the configuration synchronization of configuration server and peer node, when the indicated zero-time of this parameter or time period arrived enabling time, configuration server switched to standby configuration, enabled the configuration information after the renewal.
In specific implementation process, the mode that peer node obtains the configuration information after configuration server upgrades can be broadcasting, also can other circulation ways, particularly, peer node is obtained configuration information after configuration server upgrades and is comprised but be not limited to following several method:
(1) peer node is regularly obtained above-mentioned configuration information from configuration server, in concrete the application, can dispose peer node from the cycle that configuration server obtains configuration information, when this cycle arrived, peer node was initiatively obtained the configuration information of renewal to configuration server;
(2) guiding node of RELOAD peer-to-peer network regularly obtains above-mentioned configuration information from configuration server, and initiatively issues in the RELOAD peer-to-peer network, thereby makes above-mentioned peer node can obtain the configuration information of this guiding node issue;
(3) guiding node of RELOAD peer-to-peer network regularly obtains above-mentioned configuration information from configuration server, when stating peer node and this guiding node and send message mutually, by with the interaction message of guiding node, obtain above-mentioned configuration information.
And, after peer node is upgraded above-mentioned configuration information, send message between other peer node and this peer node mutually if having, this peer node can check whether the configuration of two nodes is consistent, if the inconsistent node of old configuration that then uses can be from the new synchronously configuration of the other side.
The update method that the peer node that adopts the present invention to propose disposes, peer node in the network can be according to prior setting, enable new configuration at the time point of appointment, or order is enabled new configuration in the time range of appointment, thereby avoided to specify the problem of the enabling time of new configuration.
Below to adopting the flow process of upgrading configuration in the RELOAD peer-to-peer network of the present invention to be described in detail.
Embodiment one
The flow process of the local configuration of peer node renewal is described behind the present embodiment configuration modification, Fig. 8 is the flow chart that peer node is upgraded local configuration behind the configuration modification in the present embodiment, as shown in Figure 8, the local configuration of peer node renewal mainly may further comprise the steps behind the configuration modification:
Step 801 is revised the standby configuration on the configuration server, sets the zero-time of enabling and duration (duration is to enable simultaneously after representing to arrive zero-time at 0 o'clock), will revise sequence number in the configuration file simultaneously.For example, in configuration file, increase between the configuration label and enable zero-time and two labels of duration, as follows:
<config-update-begintime>2009-11-4
01:30:00</config-update-begintime>
<config-update-continuetime>2</config-update-continuetime>
The unit of renewal duration label config-update-continuetime wherein is hour to be decimal.
Step 802: peer node obtains standby configuration (can be directly to obtain or obtain indirectly, initiatively obtain or passive obtaining);
Step 803: the local standby configuration of the configuration information update that the peer node utilization obtains;
Step 804: peer node is according to enabling the actual enabling time that zero-time and duration calculate the new configuration of this node of setting;
If it is a plurality of that the enabling time parameter of configuration has, if having in the configuration at this node ID or affiliated node ID scope enabling time parameter making and settlement, then use it, otherwise just use setting at all nodes.
For example, the account form that adopts is: actual enabling time=zero-time+duration random number, suppose that zero-time is 2009-11-4 01:30:00, duration is 2 hours (being 2*60*60=7200 second), get the random number between 0-7200, then new configuration actual enabling time of peer node just should be at the random time point between 2009-11-4 01:30:00 to the 2009-11-4 03:30:00; And for each peer node in the RELOAD peer-to-peer network, actual enabling time point of each peer node can be distributed in this interval more dispersedly.
Step 805a: the actual enabling time of peer node arrival oneself is enabled standby configuration after putting, and with it main configuration as current use, original main configuration is stopped using, and changes standby configuration into;
Step 805b: configuration server is enabled standby configuration when arriving the zero-time of setting, and with it main configuration as current use, changes original main configuration into standby configuration, stops using;
Step 806a~b: peer node and configuration server all upgrade the standby configuration information after switching, and make it identical with main configuration information.
In concrete the application, above-mentioned steps 802 can adopt several different methods to obtain standby configuration, regularly get latest configuration as each guiding node from configuration server, initiatively in network, issue by guiding node then, or propagate latest configuration by the interaction message of other nodes and guiding node, perhaps directly regularly obtain from configuration server by peer node.
In addition, among step 804~805a, each node also can be at the appointed time in the section, decides enabling time according to oneself system resource (as CPU) busy extent.For example, be lower than 5% at cpu busy percentage and enable new configuration when surpassing 5 minutes.
Embodiment two
Present embodiment obtains configuration when peer node in the RELOAD peer-to-peer network is started flow process is described.
In actual applications, behind configuration modification, new configuration distributing is arrived each peer node, but also do not begin to enable new configuration.At this moment, if having new node (for example node A) to start and the adding peer-to-peer network, then need to obtain current main configuration of enabling from configuration server.But also have a standby configuration on the configuration server this moment, and this standby configuration is new configuration, and because this new configuration issued, therefore, this new configuration can not send to network again.Thereby, need obtain active and standby configuration for newly added node.
Fig. 9 is the flow chart of present embodiment, and as shown in Figure 9, the flow process of obtaining configuration when peer node starts in the RELOAD peer-to-peer network mainly may further comprise the steps:
Step 901: revise the standby configuration on the configuration server, set the zero-time of enabling and duration (duration is to enable simultaneously after representing to arrive zero-time at 0 o'clock).For example in configuration file, increase following two labels between the configuration label:
<config-update-begintime>2009-11-4
01:30:00</config-update-begintime>
<config-update-continuetime>2</config-update-continuetime>
The unit that upgrades duration label config-update-continuetime is hour to be decimal.
Step 902: peer node A starts (for example, power on, loading procedure, discovery configuration server address etc.);
Step 903: peer node A obtains main configuration information in HTTP GET mode from configuration server.Need add a parameter identification herein behind original URL is main configuration, for example config-flag=1.
Step 904: configuration server returns the XML master configuration file.
Step 905: peer node A resolves the XML file that obtains, and disposes with this landlord of its configuration information update;
Step 906: peer node A obtains standby configuration information in HTTP GET mode from configuration server.Need add a parameter identification herein behind original URL is to be equipped with configuration, as config-flag=2.
Step 907: configuration server returns XML standby configuration file, the same master configuration file of form;
Step 908: peer node A resolves the XML file that obtains, with the local standby configuration of its configuration information update;
Step 909: peer node A carries out all the other flow processs that add peer-to-peer network.
And after step 908, peer node A determines the enabling time of this standby configuration according to the enabling time parameter that disposes in the standby configuration information of obtaining, and when this enabling time arrived, peer node A carried out active and standby configuration and switches, and switches to standby configuration.
In addition, if the standby configuration on the configuration server is new unlike main configuration, then starts node and can only get main configuration, and do not get standby configuration.
Embodiment three
Present embodiment is described the flow process of configuration synchronization between node.
Because the new configuration of whole network is enabled in a period of time, therefore, just there is the inconsistent situation of internodal configuration in the section between at this moment.Configuration between the node of interaction message must be consistent, otherwise can cause mistake but in some cases.In this case, use the node of old configuration just need dispose with the other side is new synchronously.
In the present embodiment, suppose that Node B uses old configuration, and node A uses new configuration, Node B sends a request message to node A, and then Node B need be from the new synchronously configuration of node A.Figure 10 is the flow chart of present embodiment, and as shown in figure 10, the flow process of configuration synchronization mainly may further comprise the steps between node in this case:
Step 101: peer node B sends a request message to peer node A.
In concrete the application, this request message can be any message of RELOAD, for example, route maintenance message and business datum maintain message etc., wherein, this request message is transmitted configuration (the promptly main configuration) sequence number that all carries Node B in the head and using.
Step 102~103: peer node A is the configuration sequence in this landlord configuration identifier and the request message number relatively, and it is newer than Node B to find that this landlord disposes;
Step 104: peer node A sends miscue (for example, return Error_Config_Too_Old, expression B is old configuration) to peer node B;
Step 105: peer node A sends the main configuration of oneself to peer node B by configuration update message;
After step 106: peer node B receives the configuration update message of node A, check configuration sequence number wherein,, then upgrade this landlord configuration with it if number newer or equal 0xffff (expression is forced to upgrade) than local configuration sequence;
Step 107: peer node B returns to node A and upgrades response.
From above description, as can be seen, in embodiments of the present invention, when upgrading configuration information, by the enabling time parameter is set in configuration, make peer node after obtaining configuration information, can by in the configuration enabling time this node of calculation of parameter actual enabling time of new configuration, thereby make each node in the RELOAD peer-to-peer network enable time of new configuration can dispersed and distributed in the time period of configuration appointment, thereby solved owing to enabling the problem that new configuration causes system's operation troubles, and then guaranteed the normal operation of system in the peak traffic phase.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, and in some cases, can carry out step shown or that describe with the order that is different from herein, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.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 (13)

1. the update method of the peer node of RELOAD peer-to-peer network configuration is characterized in that described method comprises:
Peer node is obtained the configuration information after configuration server upgrades, and wherein, described configuration information carries the enabling time parameter;
Described peer node is determined the enabling time of described configuration information according to described enabling time parameter;
When described enabling time arrived, described peer node was utilized the configuration of described configuration information update this locality.
2. method according to claim 1 is characterized in that, described enabling time the parameter zero-time of indicating described configuration information to enable, or time period of indicating described configuration information to enable.
3. method according to claim 2 is characterized in that, if the time period that the parameter indication of described enabling time is enabled, then described enabling time parameter comprise: zero-time of enabling and duration, or, zero-time of enabling and the concluding time of enabling.
4. method according to claim 3 is characterized in that, described peer node determines that the enabling time of described configuration information comprises:
Described peer node is determined t start-up time of described configuration information according to following formula:
T=t 0+ offset, wherein, t 0Be described zero-time of enabling, offset enables the skew of described configuration parameter more than or equal to 0 for described peer node.
5. method according to claim 4 is characterized in that, determines one of in such a way described offset:
Get 0 to the random number between the described duration, with described random number as described offset;
Get 0 to the random number between the default value, described random number is got after divided by described duration surplus, will get surplus result as described offset, wherein, described default value is the node identification sum of described duration and described peer node;
The node identification of getting described peer node carries out after the Hash operation surplus divided by getting behind the described duration, will get surplus result as described offset.
6. method according to claim 2 is characterized in that, if the time period that the parameter indication of described enabling time is enabled, described peer node determines that the enabling time of described configuration information comprises:
Described peer node according to the operating position of its system resource, is determined described enabling time in the described time period of described enabling time parameter indication.
7. according to each described method in the claim 1 to 6, it is characterized in that,
Before the configuration information after described peer node is obtained the configuration server renewal, described method also comprises:
Upgrade the configuration information of the standby configuration of described configuration server, set to start described enabling time parameter of described configuration information;
Then arrive or time period of described enabling time parameter indication when arriving in the zero-time of described enabling time parameter indication, described method also comprises:
Described configuration server switches to standby configuration, enables the described configuration information after the renewal.
8. according to each described method in the claim 1 to 6, it is characterized in that it is one of following that the configuration information after peer node is obtained configuration server and upgraded comprises:
Described peer node is regularly obtained described configuration information from described configuration server; The guiding node of described RELOAD peer-to-peer network regularly obtains described configuration information from described configuration server, and issues in described RELOAD peer-to-peer network, and described peer node is obtained the described configuration information of described guiding node issue;
The guiding node of described RELOAD peer-to-peer network regularly obtains described configuration information from described configuration server, described peer node by with the interaction message of described guiding node, obtain described configuration information.
9. according to each described method in the claim 1 to 6, it is characterized in that, for all nodes of described RELOAD peer-to-peer network, described enabling time, parameter was identical, perhaps, for each node in the described RELOAD peer-to-peer network, described enabling time parameter do not finish identical.
10. the peer node of a RELOAD peer-to-peer network is characterized in that, comprising:
Acquisition module is used to obtain the configuration information after configuration server upgrades, and wherein, carries the enabling time parameter of described configuration information in the described configuration information;
Determination module is used for described enabling time parameter of carrying according to described configuration information, determines the enabling time of described configuration information;
Executive Module is used for when described enabling time arrives, and utilizes this locality configuration of the described peer node of described configuration information update.
11. the update system of the peer node of RELOAD peer-to-peer network configuration is characterized in that, comprising:
Configuration server is used for the configuration information behind the storage update, wherein, has specified the enabling time parameter of described configuration information in the described configuration information;
Peer node, be used to obtain the described configuration information of described configuration server storage, and according to described enabling time parameter determine that this locality enables the enabling time of described configuration information, when described enabling time arrives, utilize the configuration of described configuration information update this locality.
12. system according to claim 11 is characterized in that, described enabling time parameter comprise: enable the zero-time of described configuration information, or, the time period of enabling described configuration information; Described configuration server also is used in the zero-time of enabling described configuration information or in the time period, the described configuration information after renewal is enabled in this locality.
13. system according to claim 11 is characterized in that, described system also comprises:
Guiding node is used for obtaining described configuration information from described configuration server, and described configuration information is sent to described peer node.
CN201010003059.8A 2010-01-05 2010-01-05 The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system Active CN102118422B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010003059.8A CN102118422B (en) 2010-01-05 2010-01-05 The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system
PCT/CN2010/080275 WO2011082634A1 (en) 2010-01-05 2010-12-24 Peer node of resource locate and discovery peer to peer network and configuration update method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010003059.8A CN102118422B (en) 2010-01-05 2010-01-05 The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system

Publications (2)

Publication Number Publication Date
CN102118422A true CN102118422A (en) 2011-07-06
CN102118422B CN102118422B (en) 2016-01-20

Family

ID=44217012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010003059.8A Active CN102118422B (en) 2010-01-05 2010-01-05 The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system

Country Status (2)

Country Link
CN (1) CN102118422B (en)
WO (1) WO2011082634A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850222A (en) * 2017-01-04 2017-06-13 普联技术有限公司 The configuration and synchronization method of wireless networking devices, wireless networking devices and system
CN107480309A (en) * 2017-09-28 2017-12-15 阿里巴巴集团控股有限公司 Database access strategies update method, device, server and computing device
CN110784340A (en) * 2019-10-09 2020-02-11 无线生活(北京)信息技术有限公司 Configuration information updating method and device
CN112153457A (en) * 2020-09-10 2020-12-29 Oppo(重庆)智能科技有限公司 Wireless screen projection connection method and device, computer storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533024A (en) * 2013-09-17 2014-01-22 福州瑞芯微电子有限公司 Method for synchronizing firmware on mobile equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051928A (en) * 2006-04-07 2007-10-10 华为技术有限公司 Equipment configuration method in digital user line connection net
CN101437150A (en) * 2007-11-16 2009-05-20 华为技术有限公司 Apparatus and method for providing association information
US20090150972A1 (en) * 2007-12-07 2009-06-11 Moon Yong-Hyuk Apparatus and method for managing p2p traffic
CN101483604A (en) * 2009-02-16 2009-07-15 华为技术有限公司 Method, apparatus and system for resource list sending

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5016892B2 (en) * 2006-10-17 2012-09-05 東京エレクトロン株式会社 Inspection apparatus and inspection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051928A (en) * 2006-04-07 2007-10-10 华为技术有限公司 Equipment configuration method in digital user line connection net
CN101437150A (en) * 2007-11-16 2009-05-20 华为技术有限公司 Apparatus and method for providing association information
US20090150972A1 (en) * 2007-12-07 2009-06-11 Moon Yong-Hyuk Apparatus and method for managing p2p traffic
CN101483604A (en) * 2009-02-16 2009-07-15 华为技术有限公司 Method, apparatus and system for resource list sending

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850222A (en) * 2017-01-04 2017-06-13 普联技术有限公司 The configuration and synchronization method of wireless networking devices, wireless networking devices and system
CN107480309A (en) * 2017-09-28 2017-12-15 阿里巴巴集团控股有限公司 Database access strategies update method, device, server and computing device
CN110784340A (en) * 2019-10-09 2020-02-11 无线生活(北京)信息技术有限公司 Configuration information updating method and device
CN110784340B (en) * 2019-10-09 2022-07-12 无线生活(北京)信息技术有限公司 Configuration information updating method and device
CN112153457A (en) * 2020-09-10 2020-12-29 Oppo(重庆)智能科技有限公司 Wireless screen projection connection method and device, computer storage medium and electronic equipment

Also Published As

Publication number Publication date
CN102118422B (en) 2016-01-20
WO2011082634A1 (en) 2011-07-14

Similar Documents

Publication Publication Date Title
CN102118263B (en) Method and system for distribution of configuration information
EP3648401B1 (en) Method, device, and computer readable storage medium for managing network slice
US10298457B2 (en) Synchronization of configuration file of virtual application distribution chassis
CN107689882B (en) Method and device for service deployment in virtual network
EP2922238B1 (en) Resource allocation method
US20050028001A1 (en) Secured software patching and upgrade method for densely deployed networks having spanning-tree topology
CN103856569A (en) Method and device for synchronizing domain name system resource information
CN102523278B (en) Cloud-computing based service providing method and network operator server
CN102118422B (en) The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
EP4050850A1 (en) Service upgrading method, device and system
CN103281356A (en) File distribution method and system
CN113873005A (en) Node master selection method, system, equipment and medium for micro-service cluster
CN102624634A (en) Method and device for controlling network bandwidth on client side
CN102316117A (en) Resource processing method and device
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
CN107786350B (en) Method and device for restoring factory configuration of network equipment and network equipment
CN103001989A (en) Parameter receiving method and system
CN105337766A (en) Network element automatic discovery method and system based on DHCP
CN109688011B (en) Agent selection method and device based on OpenStack
CN116260827A (en) Election method, election system and related device of leader in cluster
CN114125827B (en) Terminal management method, device and centralized management system
CN102118421A (en) Peer-to-peer network and method for restarting peer nodes
CN112653620B (en) Route processing method, device, equipment and computer readable storage medium
CN112714035A (en) Monitoring method and system

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