CN102118422B - The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system - Google Patents

The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system Download PDF

Info

Publication number
CN102118422B
CN102118422B CN201010003059.8A CN201010003059A CN102118422B CN 102118422 B CN102118422 B CN 102118422B CN 201010003059 A CN201010003059 A CN 201010003059A CN 102118422 B CN102118422 B CN 102118422B
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.)
Active
Application number
CN201010003059.8A
Other languages
Chinese (zh)
Other versions
CN102118422A (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

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)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system.Wherein, the method comprises: peer node obtains the configuration information after configuration server renewal, and wherein, this configuration information carries enabling time parameter; Peer node, according to this parameter, determines the enabling time of above-mentioned configuration information enabling time; When enabling time arrives, peer node utilizes the configuration of above-mentioned configuration information update this locality.By the present invention, the normal operation of system can be ensured.

Description

The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system
Technical field
The present invention relates to network and the communications field, particularly relate to a kind of peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system.
Background technology
Peer-to-peer network (PeertoPeer, referred to as P2P) is a kind of distributed network, and the participant of network shares the resource and service that they have.Generally, resource and the shared of service comprise: information share with exchange, computational resource such as the sharing of CPU, storage resources share as buffer memory and disk space.The resource shared and service can by any peer node (Peer) access in network.Each participant is in a peer-to-peer network resource and ISP (server), is again resource and service acquisition person (client).
Resource orientation and discovery (REsourceLOcateAndDiscovery, referred to as RELOAD) for IETF peer to peer session initializtion protocol (PeerToPeerSessionInitiationProtocol, referred to as P2PSIP) working group definition a kind of peer-to-peer network Resource orientation and find agreement.The implication of the several terms in RELOAD peer-to-peer network is as follows:
Node ID: as the unique identification of each node in RELOAD peer-to-peer network;
Configuration server: for whole network provides configuration information, such as, the algorithm of certificate server address, guiding node address, network employing, the size restriction of message and some other common configuration information;
Guiding node: have public network IP, can be direct-connected by peer node, can add the peer node providing guide service for 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, RELOAD peer-to-peer network is made up of peer node (A, B, C, D), configuration server etc.Wherein, node D is guiding node.
Need when peer node starts to obtain latest configuration from configuration server, for node A, realize in prior art obtaining the flow process of configuration as shown in Figure 2 when peer node starts, mainly comprise the steps:
Step 201: peer node A starts;
Step 202: peer node A obtains configuration information in HTTPGET mode from configuration server;
Step 203: configuration server returns XML configuration file to peer node A;
Step 204: peer node A utilizes the configuration information update this locality configuration obtained;
Step 205: peer node A performs all the other flow processs adding peer-to-peer network.
After configuration modification on configuration server, the node in peer-to-peer network needs to upgrade this locality configuration.For Node B, in prior art, after configuration modification, peer node carries out the flow process of Reconfigurations as shown in Figure 3, and in figure 3, assuming that node A has had new configuration, the flow process of Reconfigurations mainly comprises the following steps:
Step 301: peer node B sends message (can be any message of RELOAD) to peer node A;
Step 302: peer node A checks configuration sequence number wherein after receiving the message of Node B, the configuration sequence number of Ruo Biben node is little, then think that 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;
Its configuration information sends to Node B to send by step 304: peer node A, and notice Node B upgrades;
Step 305: peer node B is according to configuration information update this locality configuration of the node A received;
Step 306: peer node B returns config update response to node A.
As can be seen from above-mentioned flow process, in the prior art of RELOAD, there are the following problems: just start to scatter in a network as long as there is new node to add after configuration modification and enables new configuration, if new node adds fashionable system be just in time in the peak traffic phase, during this time enable new configuration and the operation of system may be caused to break 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 of configuration thereof and system, at least to solve owing to there is no to specify the enabling time of new configuration in prior art, thus the problem that peak traffic phase system cloud gray model breaks down may be caused.
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 obtains the configuration information after configuration server renewal, and wherein, this configuration information carries enabling time parameter; Peer node, according to this parameter, determines the enabling time of above-mentioned configuration information enabling time; When enabling time arrives, peer node utilizes the configuration of above-mentioned configuration information update this locality.
Preferably, the initial time that above-mentioned enabling time parameter instruction configuration information is enabled, or the time period that instruction configuration information is enabled.
Further, if enabling time, parameter indicated the time period of enabling, then parameter comprises: the initial time of enabling and duration enabling time, or, the initial time of enabling and the end time of enabling.
Further, the enabling time of peer node determination configuration information comprises: peer node is according to t:t=t start-up time of following formula determination configuration information 0+ offset, wherein, t 0for the initial time of enabling, offset is more than or equal to 0, for peer node enables the skew of configuration parameter.
Further, one of in such a way offset can be determined: get the random number between 0 to above-mentioned duration, using this random number as offset; Get the random number between 0 to default value, by this random number divided by remainder after above-mentioned duration, using the result of remainder as offset, wherein, default value is the node identification sum of above-mentioned duration and this peer node; The node identification getting peer node carries out divided by remainder after above-mentioned duration after Hash operation, using the result of remainder as offset.
Further, if enabling time, parameter indicated the time period of enabling, the enabling time of peer node determination configuration information comprises: peer node, within the time period of enabling time parameter instruction, according to the service condition of its system resource, determines enabling time.
Further, before the configuration information after peer node obtains configuration server renewal, the method also comprises: the configuration information of the standby configuration of Reconfigurations server, and setting starts the enabling time parameter of configuration information;
Then when the initial time arrival of enabling time parameter instruction or the time period of enabling time parameter instruction arrive, the method also comprises: configuration server is switched to standby configuration, enables the configuration information after renewal.
Further, peer node obtain configuration server upgrade after configuration information comprise one of following: peer node timing obtains configuration information from configuration server; The guiding node timing of RELOAD peer-to-peer network obtains configuration information from configuration server, and issues in RELOAD peer-to-peer network, and peer node obtains the configuration information that guiding node is issued; The guiding node timing of RELOAD peer-to-peer network obtains configuration information from configuration server, and peer node, by the interaction message with guiding node, obtains configuration information.
Further, for all nodes of RELOAD peer-to-peer network, enabling time parameter identical, or, for each node in RELOAD peer-to-peer network, enabling time parameter do not complete identical.
According to a further aspect in the invention, provide a kind of peer node of RELOAD peer-to-peer network, comprising: acquisition module, determination module and Executive Module.Wherein, acquisition module, for obtaining the configuration information after configuration server renewal, wherein, carries the enabling time parameter of configuration information in this configuration information; Determination module, for according to the enabling time parameter of carrying in configuration information, determines the enabling time of configuration information; Executive Module, for when enabling time arrives, utilizes this locality of config update peer node to configure.
According to another aspect of the invention, provide a kind of renewal system of peer node configuration of RELOAD peer-to-peer network, comprising: configuration server and peer node.Wherein, configuration server, for the configuration information after storage update, wherein, specifies the enabling time parameter of configuration information in this configuration information; According to above-mentioned enabling time parameter, peer node, for obtaining the configuration information that configuration server stores, and determining that the enabling time of configuration information is enabled in this locality, when enabling time arrives, utilizing the configuration of this configuration information update this locality.
Preferably, above-mentioned enabling time parameter comprise: the initial time of enabling configuration information, or, enable the time period of configuration information; Configuration server also for enable configuration information initial time or in the time period, the configuration information after renewal is enabled in this locality.
Further, this system also comprises: guiding node, for obtaining configuration information from configuration server, and this configuration information is sent to peer node.
Pass through the present invention, the enabling time parameter of this configuration information is specified in configuration information in the updated, thus make the peer node obtaining this configuration information can determine the time of the configuration information after enabling renewal according to enabling time parameter, solve owing to enabling new configuration in the peak traffic phase and cause the problem of system cloud gray model fault, and then ensure that the normal operation of system.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of RELOAD peer-to-peer network;
Fig. 2 obtains the flow process of configuration when being the peer node startup of existing techniques in realizing;
Fig. 3 is the flow process that after the configuration modification of existing techniques in realizing, peer node upgrades local configuration;
Fig. 4 is the structural representation of the renewal system configured according to the peer node of the RELOAD peer-to-peer network of the embodiment of the present invention;
Fig. 5 is the structural representation of the renewal 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 of the peer node of RELOAD peer-to-peer network according to the embodiment of the present invention;
Fig. 7 is the flow chart of the update method configured according to the peer node of the RELOAD peer-to-peer network of the embodiment of the present invention;
Fig. 8 is the flow chart according to the embodiment of the present invention one;
Fig. 9 is the flow chart according to the embodiment of the present invention two;
Figure 10 is the flow chart according to the embodiment of the present invention three.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
According to the embodiment of the present invention, provide the renewal system of a kind of peer node configuration, this system is for upgrading the configuration of the peer node in RELOAD peer-to-peer network.
Fig. 4 is the structural representation of the renewal system configured according to the peer node of the RELOAD peer-to-peer network of the embodiment of the present invention, as shown in Figure 4, will comprise in this system: configuration server 2 and peer node 4.Wherein, configuration server 2, for the configuration information after storage update, wherein, specifies the enabling time parameter of this configuration information in this configuration information; The above-mentioned configuration information that peer node 4 stores for obtaining configuration server 2, and determine that the enabling time of this configuration information is enabled in this locality according to the enabling time parameter of specifying in this configuration information, when enabling time arrives, utilize the configuration of this configuration information update this locality.
By the said system of the embodiment of the present invention, the enabling time parameter of this configuration information can be specified when revising configuration information, thus make peer node in RELOAD peer-to-peer network when obtaining this configuration information, the time of enabling this configuration information can be determined according to this parameter enabling time, thus peak traffic phase Reconfigurations can be avoided, avoid system cloud gray model to break down.
In a particular application, can divide active and standby two kinds by configuration, master is configured to the current configuration used, when standby configuration is for amendment configuration.When needs amendment configuration information, first upgrade standby configuration, then when needing the configuration after enabling renewal, enable new configuration in the mode of masterslave switchover.Particularly, can the configuration information of standby configuration of first Reconfigurations server 2, and the enabling time parameter of this configuration information of equipment, in specific implementation process, enabling time parameter (the enabling time parameter of all peer node namely in RELOAD peer-to-peer network is identical) can be set for all peer node of full RELOAD peer-to-peer network, also can for different peer node, incomplete same enabling time parameter is set, such as, can be different according to the node ID of peer node, for each node ID arrange one enabling time parameter, or, peer node for a certain section of node ID arranges an identical enabling time parameter.
And, the enabling time parameter of the configuration information of specifying in configuration information can be enable the initial time of this configuration information or enable the time period of this configuration information, if the time period of enabling this configuration information of this enabling time parameter instruction, then parameter can comprise: initial time and the duration of enabling this configuration information this enabling time, or, enable initial time and the end time of this configuration information.And, in order to the configuration synchronization of the peer node of the configuration and RELOAD peer-to-peer network that make configuration server, in the enabling time the arranged initial time of enabling indicated by parameter or in the time period, configuration server is also for the above-mentioned configuration information after renewal is enabled in this locality, particularly, configuration server in this initial time or in the time period, can be switched to standby configuration, enables this configuration information.
In addition, peer node 4 directly can obtain the configuration information after above-mentioned renewal from configuration server 2 according to the time point pre-set, also after can obtaining the configuration information after upgrading 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 present invention: guiding node 6, for obtaining above-mentioned configuration information from configuration server 2, and this configuration information is sent to peer node 4.In a particular application, guiding node 6 after getting configuration information from configuration server 2, initiatively can be issued in a network, also can be that the configuration information of acquisition is sent to peer node 4 by guiding node 6 when peer node 4 carries out message with guiding node 6.By system as shown in Figure 5, make peer node 4 can obtain the configuration information after the renewal that configuration server 2 stores by guiding node 6.
Below the peer node of the RELOAD peer-to-peer network according to the embodiment of the present invention is described.
Fig. 6 is the structural representation of the peer node of RELOAD peer-to-peer network according to the embodiment of the present 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, for obtaining the configuration information after configuration server renewal, wherein, carries the enabling time parameter of this configuration information in this configuration information; In a particular application, acquisition module 60 directly can obtain this configuration information from configuration server, also this configuration information can be obtained by guiding node from configuration server, initiatively issued in a network by guiding node again, thus make acquisition module 60 get this configuration information, or, when peer node and guiding node carry out interacting message, obtain this configuration information from guiding node.
Determination module 62, for according to the enabling time parameter of carrying in above-mentioned configuration information, determines that this peer node enables the enabling time of this configuration information; In a particular application, if enabling time, parameter specified the time period of enabling, then by the initial time arranged, determination module 62 can add that the mode of skew obtains the enabling time that this configuration information is enabled in this locality, particularly, this skew can obtain according to the initial time indicated in enabling time parameter and duration.
Executive Module 64, for when above-mentioned enabling time arrives, utilizes this locality of above-mentioned configuration information update peer node to configure.In a particular application, active and standby configuration can be set, current use be configured to main configuration, after getting above-mentioned configuration information, utilize this configuration information update standby configuration, when enabling time arrives, be switched to standby configuration, enable standby configuration, using this standby configuration as main configuration, change original main configuration switching into standby configuration, stop using.
By the peer node of the above-mentioned RELOAD peer-to-peer network of the embodiment of the present invention, according to the enabling time parameter of configuration information, the configuration information after renewal can be enabled, thus can avoid at peak traffic phase Reconfigurations.
Below the update method configured according to the peer node of the embodiment of the present invention is described.
Fig. 7 is the flow chart of the update method configured according to the peer node of the RELOAD peer-to-peer network of the embodiment of the present invention, the method is for upgrading the configuration of peer node in RELOAD peer-to-peer network, as shown in Figure 7, the method mainly comprises (step S702-step S706):
Step S702, peer node obtains the configuration information after configuration server renewal, and wherein, this configuration information carries enabling time parameter;
Step S704, peer node, according to above-mentioned enabling time parameter, determines the enabling time of this configuration information;
Step S706, when above-mentioned enabling time arrives, peer node utilizes the configuration of this configuration information update this locality.
By the said method of the embodiment of the present invention, peer node is after obtaining the configuration information after upgrading, can determine to enable according to the enabling time parameter of carrying in this configuration information the time of this configuration information, thus can avoid in peak traffic phase Reconfigurations information.
In a particular application, when needs amendment configuration information, configuration server is Reconfigurations information first, and in this configuration information, configure the enabling time parameter of this configuration information.Particularly, the enabling time parameter of configuration can represent the time point enabling this configuration information, also can represent the time range of enabling this configuration information.
And, when the enabling time parameter configured indicates the time period of enabling, this, parameter can comprise enabling time: the initial time of enabling and duration, when duration is 0, enabling time Parametric Representation time point (initial time), or, the initial time of enabling and the end time of enabling.
Further, when when enabled, parameter indicates the time period of enabling, peer node, when determining the enabling time of this configuration information, can determine the enabling time t of this configuration information according to following formula:
T=t 0+ offset, wherein, t 0for the initial time of enabling in enabling time parameter, offset is more than or equal to 0, for this peer node enables the skew of this configuration parameter.
Particularly, above-mentioned offset can obtain according to the duration in enabling time parameter, such as, directly gets random number between 0 to duration as offset; Or get divided by duration after the random number between 0 to duration and node ID sum, then remainder, using the result of remainder as offset; Or get node ID and carry out divided by duration after Hash computing, then remainder, using result as offset.
Or, when enabled parameter instruction configuration information enable time period time, peer node is when determining the enabling time of this configuration information, peer node is within the time period of this enabling time parameter instruction, according to its system resource (such as, CPU) service condition determines the enabling time of this configuration information, and particularly, peer node can enable this configuration information when its system resource exists the free time.What can ensure new configuration like this enables successfully, also can not affect the operation of other business simultaneously.
By the enabling time of said method determination peer node, the configuration of different peer node after the different time enables renewal can be made, cause upgrading the problem of failure or system fault to avoid most of node to enable new configuration at synchronization.
In specific implementation process, during the enabling time parameter of configuration information after configuration server upgrades, it can be the identical enabling time parameter of the whole network configuration, i.e. only configuration one enabling time parameter, identical enabling time can not completed for the configuration of each peer node yet, such as, different enabling time parameters can be configured to the peer node of different node ID, or, for the multiple peer node within the scope of certain node ID configure identical enabling time parameter, different enabling time parameters is configured to other peer node within the scope of this.When certain peer node is when obtaining the configuration information after upgrading, according to the enabling time parameter configured for it, determines that it enables the time of configuration information, having disperseed each node in RELOAD peer-to-peer network to enable the time of configuration information further like this.
In specific implementation process, the configuration after renewal can be enabled by the mode of masterslave switchover, particularly, during amendment configuration, first can upgrade standby configuration, then when enabling time arrives, enable the configuration after renewal by the mode of masterslave switchover.Enabling of the configuration after upgrading can be realized so easily.
Therefore, when needs amendment configuration information, the first configuration information of the standby configuration of Reconfigurations server, and the enabling time parameter setting this configuration information; Further, in order to make the configuration synchronization of configuration server and peer node, when the initial time indicated by this parameter or time period arrive enabling time, configuration server is switched to standby configuration, enables the configuration information after renewal.
In specific implementation process, the mode of the configuration information after peer node obtains configuration server renewal can be broadcast, also can other circulation ways, particularly, peer node obtain configuration server upgrade after configuration information include but not limited to following several method:
(1) peer node timing obtains above-mentioned configuration information from configuration server, in a particular application, can configure peer node obtains configuration information cycle from configuration server, when this cycle arrives, peer node initiatively arrives configuration server and obtains the configuration information upgraded;
(2) the guiding node timing of RELOAD peer-to-peer network obtains above-mentioned configuration information from configuration server, and initiatively issues in RELOAD peer-to-peer network, thus makes above-mentioned peer node can obtain the configuration information of this guiding node issue;
(3) the guiding node timing of RELOAD peer-to-peer network obtains above-mentioned configuration information from configuration server, when stating peer node and this guiding node mutually sends message, by the interaction message with guiding node, obtains above-mentioned configuration information.
And, after peer node upgrades above-mentioned configuration information, if have between other peer node and this peer node and mutually send message, this peer node can check that whether the configuration of two nodes is consistent, if inconsistent, uses the node of old configuration synchronously newly can configure from the other side.
The update method of the peer node configuration adopting the present invention to propose, peer node in network can according to prior setting, enable new configuration at the time point of specifying, or order enables new configuration in the time range of specifying, thus avoid the problem of the enabling time cannot specifying new configuration.
Below to adopting the flow process of Reconfigurations in RELOAD peer-to-peer network of the present invention to be described in detail.
Embodiment one
After the present embodiment configuration modification, the flow process of the local configuration of peer node renewal is described, Fig. 8 is the flow chart that after the configuration modification in the present embodiment, peer node upgrades local configuration, as shown in Figure 8, after configuration modification, the local configuration of peer node renewal mainly comprises the following steps:
Step 801, the standby configuration on amendment configuration server, sets the initial time and duration (represent when duration is 0 and enable after arriving initial time simultaneously) of enabling, will revise sequence number in configuration file simultaneously.Such as, increase between configuration label in configuration file and enable initial time and duration two labels, 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 is wherein hour, can be decimal.
Step 802: peer node obtains standby configuration (can be directly obtain or acquisition, active obtaining or passive acquisition indirectly);
Step 803: peer node utilizes the local standby configuration of the configuration information update obtained;
Step 804: peer node enables according to setting the actual enabling time that initial time and duration calculate the new configuration of this node;
If the enabling time parameter of configuration has multiple, if there be being equipped with of enabling time parameter for this node ID or affiliated node ID scope in configuration, then use it, otherwise just use the setting for all nodes.
Such as, adopt account form be: actual enabling time=initial time+duration random number, assuming that initial time is 2009-11-401:30:00, duration is 2 hours (i.e. 2*60*60=7200 second), get the random number between 0-7200, then the new configuration actual enabling time of peer node just should random time point between 2009-11-401:30:00 to 2009-11-403:30:00; Further, for each peer node in RELOAD peer-to-peer network, actual enabling time point of each peer node can be distributed in this interval more dispersedly.
Step 805a: peer node arrives the actual enabling time of oneself after point, enables standby configuration, using it main configuration as current use, stops using original main configuration, changes standby configuration into;
Step 805b: configuration server enables standby configuration when arriving the initial time of setting, using 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, makes it identical with main configuration information.
In a particular application, above-mentioned steps 802 can adopt multiple method to obtain standby configuration, as each guiding node timing gets latest configuration from configuration server, then initiatively issued in a network by guiding node, or carry out propagation latest configuration by the interaction message of other nodes and guiding node, or directly obtained from configuration server by peer node timing.
In addition, in step 804 ~ 805a, each node also can at the appointed time in section, and system resource (as the CPU) busy extent according to oneself decides enabling time.Such as, cpu busy percentage lower than 5% more than 5 minutes time enable new configuration.
Embodiment two
The flow process obtaining configuration when the present embodiment starts peer node in RELOAD peer-to-peer network is described.
In actual applications, when after configuration modification by new configuration distributing to each peer node, but also do not start to enable new configuration.Now, if there is new node (such as node A) start and add peer-to-peer network, then need to obtain current main configuration of enabling from configuration server.But now configuration server also has a standby configuration, and this standby configuration is new configuration, and because this new configuration issued, therefore, this new configuration can not send to network again.Thus, newly added node is needed to obtain active and standby configuration.
Fig. 9 is the flow chart of the present embodiment, and as shown in Figure 9, the flow process obtaining configuration when peer node starts in RELOAD peer-to-peer network mainly comprises the following steps:
Step 901: the standby configuration on amendment configuration server, sets the initial time and duration (represent when duration is 0 and enable after arriving initial time simultaneously) of enabling.Such as in configuration file, between configuration label, increase following two labels:
<config-update-begintime>2009-11-4
01:30:00</config-update-begintime>
<config-update-continuetime>2</config-update-continuetime>
The unit upgrading duration label config-update-continuetime is hour, can be decimal.
Step 902: peer node A starts (such as, power on, loading procedure, discovery configuration server address etc.);
Step 903: peer node A obtains main configuration information in HTTPGET mode from configuration server.An additional parameter identification after original URL is needed to be main configuration, such as config-flag=1 herein.
Step 904: configuration server returns XML master configuration file.
Step 905: peer node A resolves the XML file obtained, and configures with this landlord of its configuration information update;
Step 906: peer node A obtains standby configuration information in HTTPGET mode from configuration server.An additional parameter identification after original URL is needed to be standby configuration herein, 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 obtained, by the local standby configuration of its configuration information update;
Step 909: peer node A performs all the other flow processs adding peer-to-peer network.
Further, after step 908, peer node A is according to the enabling time parameter configured in the standby configuration information obtained, and determine the enabling time of this standby configuration, when this enabling time arrives, peer node A carries out active and standby configuration and switches, and is switched to standby configuration.
In addition, if the standby configuration on configuration server is new unlike main configuration, then starter node can only get main configuration, and does not get standby configuration.
Embodiment three
The 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 section at this moment.But in some cases, the configuration between the node of interaction message must be consistent, otherwise can cause mistake.In this case, the node of old configuration is used newly to configure with regard to needs are synchronous with the other side.
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, then Node B needs synchronously newly to configure from node A.Figure 10 is the flow chart of the present embodiment, and as shown in Figure 10, between node, the flow process of configuration synchronization mainly comprises the following steps in this case:
Step 101: peer node B sends a request message to peer node A.
In embody rule, this request message can be any message of RELOAD, and such as, route maintenance message and business datum maintain message etc., wherein, this request message forwards in head configuration (the i.e. main configuration) sequence number all carrying Node B and using.
The configuration sequence number of step 102 ~ 103: peer node A relatively in this landlord configuration identifier and request message, finds that this landlord configuration is newer than Node B;
Step 104: peer node A sends miscue (such as, return Error_Config_Too_Old, represent that B is old configuration) to peer node B;
Step 105: peer node A sends oneself main configuration 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, if number newer or equal 0xffff (represent and force to upgrade) than local configuration sequence, then upgrade this landlord configuration with it;
Step 107: peer node B returns to node A and upgrades response.
From above description, can find out, in embodiments of the present invention, when Reconfigurations information, by arranging enabling time parameter in configuration, make peer node after acquisition configuration information, can by configuration enabling time this node of calculation of parameter actual enabling time of new configuration, thus the time making each node in RELOAD peer-to-peer network enable new configuration can disperse to be distributed in time period of configuring and specifying, thus solve owing to enabling new configuration in the peak traffic phase and cause the problem of system cloud gray model fault, and then ensure that the normal operation of system.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a update method for the peer node configuration of RELOAD peer-to-peer network, it is characterized in that, described method comprises:
Peer node obtains the configuration information after configuration server renewal, and wherein, described configuration information carries enabling time parameter;
Described peer node, according to described enabling time parameter, determines the enabling time of described configuration information;
When described enabling time arrives, described peer node utilizes the configuration of described configuration information update this locality;
Wherein, before the configuration information after described peer node obtains configuration server renewal, described method also comprises:
Upgrade the configuration information of the standby configuration of described configuration server, setting starts described enabling time parameter of described configuration information;
Then when the initial time arrival of described enabling time parameter instruction or the time period of described enabling time parameter instruction arrive, described method also comprises:
Described configuration server is switched to standby configuration, enables the described configuration information after renewal.
2. method according to claim 1, is characterized in that, described enabling time the parameter initial time that indicates described configuration information to enable, or time period indicating described configuration information to enable.
3. method according to claim 2, is characterized in that, if described enabling time, parameter indicated the time period of enabling, then parameter comprises: the initial time of enabling and duration described enabling time, or, the initial time of enabling and the end 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 determines t start-up time of described configuration information according to following formula:
T=t 0+ offset, wherein, t 0for described initial time of enabling, offset is more than or equal to 0, for described peer node enables the skew of described configuration parameter.
5. method according to claim 4, is characterized in that, one of in such a way determines described offset:
Get the random number between 0 to described duration, using described random number as described offset;
Get the random number between 0 to default value, by described random number divided by remainder after described duration, using the result of remainder as described offset, wherein, described default value is the node identification sum of described duration and described peer node;
The node identification getting described peer node carries out divided by remainder after described duration after Hash operation, using the result of remainder as described offset.
6. method according to claim 2, is characterized in that, if described enabling time, parameter indicated the time period of enabling, described peer node determines that the enabling time of described configuration information comprises:
Described peer node, within the described time period of described enabling time parameter instruction, according to the service condition of its system resource, determines described enabling time.
7. method according to any one of claim 1 to 6, is characterized in that, peer node obtain configuration server upgrade after configuration information comprise one of following:
Described peer node timing obtains described configuration information from described configuration server;
The guiding node timing of described RELOAD peer-to-peer network obtains described configuration information from described configuration server, and issues in described RELOAD peer-to-peer network, and described peer node obtains the described configuration information that described guiding node is issued;
The guiding node timing of described RELOAD peer-to-peer network obtains described configuration information from described configuration server, and described peer node, by the interaction message with described guiding node, obtains described configuration information.
8. method according to any one of claim 1 to 6, is characterized in that, for all nodes of described RELOAD peer-to-peer network, described enabling time, parameter was identical, or, for each node in described RELOAD peer-to-peer network, described enabling time parameter do not complete identical.
9. a peer node for RELOAD peer-to-peer network, is characterized in that, comprising:
Acquisition module, for obtaining the configuration information after configuration server renewal, wherein, carries the enabling time parameter of described configuration information in described configuration information;
Determination module, for according to described enabling time parameter of carrying in described configuration information, determines the enabling time of described configuration information;
Executive Module, for when described enabling time arrives, utilizes this locality of peer node described in described configuration information update to configure.
10. a renewal system for the peer node configuration of RELOAD peer-to-peer network, is characterized in that, comprising:
Configuration server, for the configuration information after storage update, wherein, specifies the enabling time parameter of described configuration information in described configuration information;
Peer node, for obtaining the described configuration information that described configuration server stores, and determine that the enabling time of described configuration information is enabled in this locality according to described enabling time parameter, when described enabling time arrives, utilize the configuration of described configuration information update this locality;
Wherein, described configuration server also for:
Upgrade the configuration information of the standby configuration of described configuration server;
When the initial time arrival of described enabling time parameter instruction or the time period of described enabling time parameter instruction arrive, be switched to standby configuration, enable the described configuration information after renewal.
11. systems according to claim 10, is characterized in that, described enabling time parameter comprise: the initial time of enabling described configuration information, or, enable the time period of described configuration information; Described configuration server also for enable described configuration information initial time or in the time period, the described configuration information after renewal is enabled in this locality.
12. systems according to claim 10, is characterized in that, described system also comprises:
Guiding node, for obtaining described configuration information from described configuration server, and sends to described peer node by described configuration information.
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 CN102118422A (en) 2011-07-06
CN102118422B true 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)

Families Citing this family (5)

* 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
CN106850222B (en) * 2017-01-04 2020-11-17 普联技术有限公司 Configuration synchronization method of wireless networking equipment, wireless networking equipment and system
CN107480309A (en) * 2017-09-28 2017-12-15 阿里巴巴集团控股有限公司 Database access strategies update method, device, server and computing 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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437150A (en) * 2007-11-16 2009-05-20 华为技术有限公司 Apparatus and method for providing association information
CN101483604A (en) * 2009-02-16 2009-07-15 华为技术有限公司 Method, apparatus and system for resource list sending

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051928B (en) * 2006-04-07 2012-07-04 华为技术有限公司 Equipment configuration method in digital user line connection net
JP5016892B2 (en) * 2006-10-17 2012-09-05 東京エレクトロン株式会社 Inspection apparatus and inspection method
KR100949808B1 (en) * 2007-12-07 2010-03-30 한국전자통신연구원 Apparatus and method for managing p2p traffic

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437150A (en) * 2007-11-16 2009-05-20 华为技术有限公司 Apparatus and method for providing association information
CN101483604A (en) * 2009-02-16 2009-07-15 华为技术有限公司 Method, apparatus and system for resource list sending

Also Published As

Publication number Publication date
CN102118422A (en) 2011-07-06
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
EP2922238B1 (en) Resource allocation method
CN109474936B (en) Internet of things communication method and system applied among multiple lora gateways
CN102355500B (en) Service push method and device
CN102118422B (en) The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system
CN104184756A (en) Data synchronization method, device and system
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN107852682B (en) Method and apparatus for determining synchronization reference
CN113873005B (en) Node selection method, system, equipment and medium for micro-service cluster
JP2002051083A (en) Protocol information management for inter-private network interface hierarchy network
CN116566984B (en) Routing information creation method and device of k8s container cluster and electronic equipment
CN111262724B (en) Method and device for confirming trust relationship between domains
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
CN102624634A (en) Method and device for controlling network bandwidth on client side
CN114285787B (en) Cross-user plane forwarding method, system and computer readable storage medium
CN111435947A (en) Electronic message control
US10637748B2 (en) Method and apparatus for establishing interface between VNFMS, and system
CN112243243B (en) Network slice implementation method, entity and system
CN105246129A (en) Intelligent terminal networking method and device
CN103138961B (en) server control method, controlled server and central control server
CN102325154B (en) Network system with disaster-tolerant backup function and method for realizing disaster-tolerant backup function
Dimitriou et al. Sensenet: a wireless sensor network testbed
US11310718B2 (en) Wireless discovery, routing and advertisement protocol for secure remote services in a communication environment
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device

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