WO2011082634A1 - Peer node of resource locate and discovery peer to peer network and configuration update method and system thereof - Google Patents

Peer node of resource locate and discovery peer to peer network and configuration update method and system thereof Download PDF

Info

Publication number
WO2011082634A1
WO2011082634A1 PCT/CN2010/080275 CN2010080275W WO2011082634A1 WO 2011082634 A1 WO2011082634 A1 WO 2011082634A1 CN 2010080275 W CN2010080275 W CN 2010080275W WO 2011082634 A1 WO2011082634 A1 WO 2011082634A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
peer
configuration information
node
time
Prior art date
Application number
PCT/CN2010/080275
Other languages
French (fr)
Chinese (zh)
Inventor
彭永林
马苏安
王炜
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011082634A1 publication Critical patent/WO2011082634A1/en

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

Definitions

  • the present invention relates to the field of networks and communications, and in particular, to a peer-to-peer node of a resource locating and discovery (RELOAD LOcate And Discovery, RELOAD for short) and an update method and system thereof.
  • BACKGROUND Peer-to-peer P2P is a distributed network in which participants of a network share resources and services they own.
  • the sharing of resources and services includes: sharing and exchange of information, sharing of computing resources (for example, CPU), sharing of storage resources (for example, cache and disk space).
  • shared resources and services can be accessed by any peer (PEer) in the network.
  • Each participant in a peer-to-peer network is both a resource and a service provider (server), and a resource and a client.
  • RELOAD defines a peer-to-peer network resource location and discovery for the Peer To Peer Session Initiation Protocol (P2PSIP) working group for the Internet Engineering Task Force (IETF) peer-to-peer session. protocol.
  • P2PSIP Peer To Peer Session Initiation Protocol
  • IETF Internet Engineering Task Force
  • the terms in the RELOAD peer-to-peer network have the following meanings: Node ID: A unique identifier for each node in the RELOAD peer-to-peer network; Configuration server: Provides configuration information for the entire network, for example, certificate server address, boot node address , network-utilized algorithms, message size limits, and some other common configuration information; boot node: peer-to-peer node with public network IP, capable of being directly connected by peer nodes, and providing boot services for peer nodes .
  • FIG. 1 is a schematic diagram of a networking architecture of a RELOAD peer-to-peer network according to the prior art.
  • a RELOAD peer-to-peer network is composed of peer nodes (A, B, C, D), a configuration server, and the like. composition.
  • node D is a boot node.
  • Figure 2 is a schematic diagram of the process of obtaining the configuration when the peer node is started according to the prior art. As shown in Figure 2, it mainly includes the following. Steps: Step S201: Peer node A starts; Step S202: Peer node A obtains by Hypertext Transfer protocol (HyperText Transfer)
  • FIG. 3 is a schematic flowchart of updating the configuration of the peer node according to the configuration in the prior art. As shown in FIG.
  • Step S301 The peer node B sends a message to the peer node A (which may be any message of RELOAD);
  • Step S302 After receiving the message of the Node B, the peer node A checks the configuration sequence number thereof, if If the configuration number of the node is small, it is considered that the configuration of the node B is old and needs to be updated.
  • Step S303 the peer node A returns a message response to the node B, indicating that it is not a new configuration;
  • Step S304 the peer node A sets its configuration information.
  • Step S305 The Peer Node B updates the local configuration according to the received configuration information of the Node A;
  • a primary object of the present invention is to provide a peer-to-peer node of a RELOAD peer-to-peer network and a method and system for updating the configuration thereof, so as to at least solve the problem that the activation time of the new configuration is not specified in the prior art, which may lead to a peak business period.
  • the system is running with a problem.
  • a method for updating a peer node configuration of a RELOAD peer-to-peer network including: a peer node acquiring configuration information of a configuration server update, wherein the configuration information carries an enable time parameter; The peer node determines the activation time of the above configuration information according to the activation time parameter; when the activation time arrives, the peer node updates the local configuration by using the above configuration information.
  • the activation time parameter indicates a start time when the configuration information is enabled, or a time period indicating that the configuration information is enabled.
  • the enable time parameter indicates an enabled time period
  • the enable time parameters include: an enabled start time and duration, or an enabled start time and an enabled end time.
  • the offset may be determined according to one of the following ways: taking a random number between 0 and the above duration, and taking the random number as an offset; taking 0 to a random number between preset values, dividing the random number by the duration After the remainder, the result of the remainder is taken as an offset, wherein the preset value is the sum of the duration and the node identifier of the peer node; the node identifier of the peer node is hashed and divided by the duration , the result of the remainder is taken as the offset.
  • the enable time parameter indicates the enabled time period
  • the peer node determines the activation time of the configuration information includes: the peer node determines the activation time according to the usage of the system resource within the time period indicated by the enable time parameter.
  • the method further includes: updating configuration information of the standby configuration of the configuration server, setting an activation time parameter of the startup configuration information; The time period indicated by the time of arrival or activation time parameter is When the method is reached, the method further includes: configuring the server to switch to the alternate configuration, and enabling the updated configuration information.
  • the configuration information after the peer node obtains the configuration server update includes one of the following: the peer node periodically obtains the configuration information from the configuration server; the boot node of the RELOAD peer network periodically obtains the configuration information from the configuration server, and is in the RELOAD peer. The peer node obtains the configuration information issued by the boot node.
  • the boot node of the RELOAD peer network periodically obtains the configuration information from the configuration server, and the peer node obtains the configuration information through the interaction message with the boot node. Further, for all nodes of the RELOAD peer-to-peer network, the enable time parameters are the same, or, for each node in the RELOAD peer-to-peer network, the enable time parameters are not identical.
  • a peer node of a RELOAD peer-to-peer network comprising: an acquisition module, a determination module, and an execution module.
  • the obtaining module is configured to obtain configuration information after the configuration server is updated, where the configuration information includes an activation time parameter of the configuration information, and a determining module, configured to determine, according to the activation time parameter carried in the configuration information, an activation time of the configuration information.
  • the execution module is used to update the local configuration of the peer node with the configuration when the enable time arrives.
  • an update system for a peer node configuration of a RELOAD peer-to-peer network including: a configuration server and a peer node.
  • the configuration server is configured to store the updated configuration information, where the configuration information specifies an activation time parameter of the configuration information, and the peer node is configured to obtain configuration information stored by the configuration server, and determine local activation according to the activation time parameter.
  • the time when the configuration information is enabled, when the time of arrival is reached, the configuration information is used to update the local configuration.
  • the enabling time parameter includes: a start time for enabling configuration information or a time period for enabling configuration information; the configuration server is further configured to enable the updated configuration information locally during a start time or a time period when the configuration information is enabled.
  • the system further includes a boot node for obtaining configuration information from the configuration server and transmitting the configuration information to the peer node.
  • the activation time parameter of the configuration information is specified in the updated configuration information, so that the peer node that obtains the configuration information can determine the time for enabling the updated configuration information according to the activation time parameter, and solves the problem. Due to the problem of system failure caused by the new configuration being enabled during peak business hours, the effect of normal operation of the system is reached.
  • FIG. 1 is a schematic diagram of a networking architecture of a RELOAD peer-to-peer network according to the prior art
  • FIG. 2 is a schematic flowchart of implementing a configuration when a peer node is started according to the prior art
  • 3 is a schematic flowchart of updating a configuration of a peer node after modification according to a configuration in the prior art
  • FIG. 4 is a schematic structural diagram of an update system of a peer node configuration of a RELOAD peer-to-peer network according to an embodiment of the present invention
  • FIG. 6 is a block diagram showing the structure of a peer node of a RELOAD peer-to-peer network in accordance with an embodiment of the present invention
  • FIG. 8 is a schematic diagram of a process of updating a local configuration of a peer node after modification of a configuration in accordance with an embodiment of the present invention
  • FIG. 9 is a flowchart for implementing a local configuration according to the present invention.
  • FIG. 10 is a schematic diagram of a process for obtaining a configuration when a peer node is started in a RELOAD peer-to-peer network
  • FIG. 10 is a configuration of a node in a RELOAD peer-to-peer network according to an embodiment of the present invention. Schematic diagram of the process of synchronization.
  • an update system for peer node configuration is provided, which is used for Update the configuration of the peer node in the RELOAD peer-to-peer network.
  • 4 is a schematic structural diagram of an update system of a peer node configuration of a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG. 4, the system includes: a configuration server 2 and a peer node 4.
  • the configuration server 2 is configured to store the updated configuration information, where the configuration information specifies the activation time parameter of the configuration information; the peer node 4 is configured to obtain the configuration information stored by the configuration server 2, and then The enable time parameter specified in the configuration information determines when the configuration information is enabled locally, and when the enable time arrives, the local configuration is updated with the configuration information.
  • the activation time parameter of the configuration information may be specified when the configuration information is falsified, so that the peer node in the RELOAD peer-to-peer network can obtain the configuration information when the configuration information is obtained.
  • the time parameter determines the time when the configuration information is enabled, thereby avoiding the update configuration during the peak period of the business, and achieving the effect of making the system operate normally.
  • the configuration can be divided into two types: the primary configuration is the configuration currently in use, and the alternate configuration is used for tampering configuration.
  • the configuration information of the alternate configuration of the configuration server 2 may be updated first, and the activation time parameter of the configuration information may be set.
  • all peer nodes of the full RELOAD peer network may be set.
  • An enable time parameter that is, the same enable time parameter of all peer nodes in the RELOAD peer-to-peer network
  • different enable time parameters may be set for different peer nodes, for example, the peer node may be selected.
  • the node ID is different, and an enable time parameter is set for each node ID. It is also possible to set an same enable time parameter for the peer node of a certain node ID.
  • the enable time parameter of the configuration information specified in the configuration information may be a start time of enabling the configuration information or a time period in which the configuration information is enabled, and if the enable time parameter indicates a time period in which the configuration information is enabled,
  • the enable time parameter can include: the start time and duration of the configuration information is enabled, or the start time and end time of the configuration information are enabled.
  • the configuration server is also used locally at the start time or time period indicated by the set enable time parameter.
  • the configuration information after the update is enabled.
  • the configuration server can switch to the standby configuration during the start time or time period to enable the configuration information.
  • the peer node 4 can directly obtain from the configuration server 2 according to a preset time point. After the updated configuration information is obtained by the boot node, the configuration information may be sent to the peer node.
  • 5 is a structural block diagram of an update system for a peer node configuration of a RELOAD peer-to-peer network according to a preferred embodiment of the present invention. As shown in FIG. 5, the system may further include: a boot node 6 for obtaining the above from the configuration server 2. Configure the information and send the configuration information to peer node 4.
  • the boot node 6 may actively publish in the network after acquiring the configuration information from the configuration server 2, or may send the acquired configuration information when the peer node 4 and the boot node 6 perform a message. Give peer node 4. Through the system as shown in FIG. 5, the peer node 4 can make the updated configuration information stored on the configuration server 2 available through the boot node 6.
  • FIG. 6 is a structural block diagram of a peer node of a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG.
  • the peer node mainly includes: an obtaining module 60, a determining module 62, and an executing module 64.
  • the obtaining module 60 is configured to obtain configuration information that is updated by the configuration server, where the configuration information carries an activation time parameter of the configuration information.
  • the obtaining module 60 may directly obtain the configuration information from the configuration server.
  • the configuration information may be obtained by the boot node from the configuration server, and then the boot node actively publishes in the network, so that the obtaining module 60 obtains the configuration information, or when the peer node performs message interaction with the boot node. Get the configuration information from the boot node.
  • the determining module 62 is configured to determine an enable time of the configuration information to be enabled in the configuration information, and determine, in a specific application, an enable time of the peer information to enable the configuration information. In a specific application, if the enable time parameter specifies an enabled time period, the determining module 62 The enable time for enabling the configuration information locally can be obtained by setting the start time plus the offset. Specifically, the offset can be obtained according to the start time and duration indicated in the enable time parameter.
  • the executing module 64 is configured to update the local configuration of the peer node by using the foregoing configuration information when the activation time is reached. In a specific application, an active/standby configuration can be configured. The currently used configuration is the primary configuration.
  • the configuration information is used to update the standby configuration.
  • the configuration is switched to the standby configuration.
  • the peer node of the above-mentioned RELOAD peer-to-peer network according to the embodiment of the present invention can be configured Set the enable time parameter of the information, enable the updated configuration information, so as to avoid updating the configuration during peak business hours.
  • An update method of a peer node configuration according to an embodiment of the present invention is described below. 7 is a schematic flowchart of a method for updating a peer node configuration of a RELOAD peer-to-peer network according to an embodiment of the present invention.
  • the process is used to update a configuration of a peer node in a RELOAD peer-to-peer network.
  • Step S702 the peer node obtains configuration information that is updated by the configuration server, where the configuration information carries an enable time parameter; and in step S704, the peer node determines the time parameter according to the activation time parameter.
  • the activation time of the configuration information Step S706, when the activation time arrives, the peer node updates the local configuration by using the configuration information.
  • the peer node may determine the time for enabling the configuration information according to the activation time parameter carried in the configuration information, thereby avoiding updating the configuration information during the peak period of the service.
  • the configuration server when the configuration information needs to be modified, the configuration server first updates the configuration information, and configures the activation time parameter of the configuration information in the configuration information.
  • the configured enable time parameter may indicate a point in time when the configuration information is enabled, and may also indicate a time period in which the configuration information is enabled.
  • the enable time parameter when the configured enable time parameter indicates the enabled time period, the enable time parameter may include: an enabled start time and a duration, when the length is 0, the enable time parameter indicates a time point (start time), or, The start time enabled and the end time enabled.
  • offset is greater than or equal to 0, and the offset of the configuration parameter is enabled for the peer node.
  • the offset may be obtained according to the duration in the activation time parameter, for example, directly The random number between 0 and the duration is taken as the offset; or, the random number between 0 and the sum of the node ID is divided by the duration, and then the remainder is taken as the offset; or, the node ID is taken as the hash.
  • the peer node After the operation, divide by the duration, and then take the result of the remainder as offset.
  • the time parameter is enabled to indicate that the configuration information is enabled, and the peer node determines the activation time of the configuration information
  • the peer node is based on its system resources (eg, CPU) during the time period indicated by the enable time parameter.
  • the usage of the configuration determines the activation time of the configuration information.
  • the peer node can enable the configuration information when its system resources are idle. This will ensure that the new configuration is successfully enabled and does not affect the operation of other services.
  • different peer nodes can enable the updated configuration at different times, so as to avoid the problem that most nodes enable the new configuration at the same time and cause update failure or system error.
  • a peer node obtains the updated configuration information, it determines the time when the configuration information is enabled based on the enable time parameter configured for it, which further decentralizes the time when the configuration information is enabled for each node in the RELOAD peer-to-peer network.
  • the updated configuration can be enabled through the active/standby switchover. Specifically, when the configuration is changed, the backup configuration can be updated first, and then the active/standby switchover is enabled when the enable time is reached. Updated configuration. This makes it easy to enable the configuration of the updated configuration. Therefore, when the configuration information needs to be modified, the configuration information of the configuration configuration of the configuration server is first updated, and the activation time parameter of the configuration information is set; and, in order to synchronize the configuration of the configuration server with the peer node, the activation time parameter is When the indicated start time or time period arrives, the configuration server switches to the alternate configuration and enables the updated configuration information.
  • the manner in which the peer node obtains the configuration information after the server is updated may be broadcast, or may be in another manner.
  • the manner in which the peer node obtains the configuration information after the server is updated includes the following types. However, it is not limited to the following:
  • the peer node periodically obtains the above configuration information from the configuration server.
  • the peer node can be configured to obtain configuration information from the configuration server. Whenever the period arrives, the peer node actively requests the configuration server to obtain updated configuration information.
  • the boot node of the RELOAD peer-to-peer network obtains the above configuration information from the configuration server, and actively publishes the configuration information in the RELOAD peer-to-peer network, so that the peer node can obtain the configuration information advertised by the boot node;
  • the boot node of the RELOAD peer network periodically acquires the configuration information from the configuration server.
  • the configuration information is obtained through an interaction message with the boot node.
  • the peer node updates the configuration information
  • the peer node can check whether the configurations of the two nodes are consistent, and if not, the old configured node can be made. Synchronize from the other party to the new configuration.
  • the peer node in the network can enable the new configuration at a specified time point according to the prior setting, or enable the new configuration within a specified time range, thereby solving the problem.
  • the first embodiment of the present invention describes the process of updating the local configuration of the peer node after the configuration is modified.
  • FIG. 8 is a schematic diagram of the process of updating the local configuration of the peer node after the configuration is modified according to the embodiment of the present invention.
  • the peer node updates the local configuration mainly including the following steps: Steps S801, 4 tampering with the configuration of the standby server, setting the start time and duration (the duration is 0) It means that it is enabled at the same time after the start time, and ⁇ ⁇ ' tamper with the serial number in the configuration file.
  • the add-on port between the configuration tags enables the start time and duration tags, as shown below: ⁇ config-update-begintime>2009- 11-4 01: 30: 00 ⁇ /config-update- Begintime>
  • Step S802 The peer node obtains the standby configuration (which may be direct acquisition or indirect acquisition, active acquisition or passive acquisition); Step S803: the peer node updates the local standby configuration by using the obtained configuration information; Step S804: The peer node according to the setting Enable start time and duration to calculate the actual enable time of the new configuration of the node; if there are multiple enable time parameters configured, if there are 40 pairs of local node IDs or the set time parameters of the own node ID range in the configuration, Then use it, otherwise use the settings for all nodes.
  • Step S805a After the peer node reaches the actual activation time point, the standby configuration is enabled, and the original configuration is used as the current configuration, and the original primary configuration is stopped and replaced with the standby configuration.
  • Step S805b The configuration server arrives at the set configuration. Enable the standby configuration as the current configuration, change the original primary configuration to the standby configuration, and stop using it.
  • Steps S 806a to b Both the peer node and the configuration server update the alternate configuration information after switching. , making it the same as the main configuration information. In a specific application, the foregoing step S802 may obtain an alternate configuration by using multiple methods.
  • each boot node periodically acquires the latest configuration from the configuration server, and then is actively released by the boot node in the network, or through other nodes and the boot node.
  • the interactive message propagates the latest configuration, or is directly obtained from the configuration server by the peer node.
  • each node may determine the activation time according to the busyness of its own system resource (for example, CPU) within a specified time period. For example, enable a new configuration when CPU utilization is less than 5% for more than 5 minutes.
  • Embodiment 2 The embodiment of the present invention describes a procedure for obtaining a configuration when a peer node in a RELOAD peer-to-peer network starts.
  • FIG. 9 is a schematic diagram of a process for obtaining a configuration when a peer node is started in a RELOAD peer-to-peer network according to the embodiment of the present invention.
  • Step S901 4 Tampering configuration service Alternate configuration on the device, set the start time and duration of the enable (when the duration is 0, it means that it is enabled at the same time after the start time). For example, in the configuration file, add two ports under the configuration tab: ⁇ config-update-begintime>2009- 11-4 01: 30: 00 ⁇ /config-update-begintime>
  • Step S907 The configuration server returns an XML backup configuration file in the same format as the main configuration file;
  • Step S908 The peer node A parses the obtained XML file, and updates the local standby configuration with the configuration information;
  • Step S909 Peer node A Perform the rest of the process of joining the peer-to-peer network.
  • the activation time parameter configured in the standby configuration information obtained by the peer node A determines the activation time of the standby configuration. When the activation time arrives, the peer node A performs the active/standby configuration switching, and the switching is performed. Go to the alternate configuration.
  • Embodiment 3 This embodiment describes a procedure for configuring synchronization between nodes. Since the new configuration of the entire network is enabled within a period of time, there is a situation in which the configuration between the nodes is inconsistent during this time period. However, in some cases, the configuration between the nodes of the interactive message must be consistent, otherwise it will cause an error. In this case, the node with the old configuration needs to synchronize the new configuration with the other party.
  • FIG. 10 is a schematic diagram of a process for configuring synchronization between nodes in a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG. 10, the process mainly includes the following steps: Step S101: Peer-to-peer B The node A sends a request message.
  • the request message may be any message of the RELOAD (for example, a route maintenance message and a service data maintenance message, etc., wherein the request message forwarding header carries the configuration that the node B is using (ie, Main configuration) Serial number).
  • Steps S102 to S103 The peer node A compares the configuration serial number in the local primary configuration identifier with the request message, and finds that the local primary configuration is newer than the node B;
  • Step S104 The peer node A sends an error message to the peer node B (for example, returns Error Config Too Old, indicating that B is the old configuration);
  • Step S105 the peer node A sends a message to the peer node B through the configuration update message.
  • Step S106 After receiving the configuration update message of the node A, the peer node B checks the configuration serial number therein, and if it is newer than the local configuration serial number or equals Oxfflff (indicating forced update), it is updated with Local master configuration; Step 4 S S 107: Peer Node B returns an update response to Node A. From the above description, it can be seen that, in the embodiment of the present invention, when the configuration information is updated, by setting the enable time parameter in the configuration, the peer node is calculated by using the enable time parameter in the configuration after acquiring the configuration information.

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

A peer node of a RELOAD Peer to Peer (P2P) network and a configuration update method and system thereof are disclosed. The method includes that: the peer node obtains updated configuration information from a configuration server, wherein the configuration information carries an activation time parameter; the peer node determines an activation time of the configuration information according to the activation time parameter; and the peer node updates local configuration using the configuration information when the activation time arrives. With the present invention, the normal operation of the system can be ensured.

Description

资源定位和发现对等网络的对等节点及其配置的  Resource location and discovery of peer nodes of peer-to-peer networks and their configuration
更新方法和系统 技术领域 本发明涉及网络和通信领域, 尤其涉及一种资源定位和发现 ( REsource LOcate And Discovery , 简称为 RELOAD )对等网络的对等节点及其配置的 更新方法和系统。 背景技术 对等网络(Peer to Peer, 简称为 P2P ) 是一种分布式网络, 网络的参与 者共享它们所拥有的资源和服务。 一般情况下, 资源和服务的共享包括: 信 息的共享与交换、 计算资源 (例如, CPU ) 的共享、 存储资源 (例如, 緩存 和磁盘空间)的共享等。共享的资源和服务能被网络中的任意对等节点( Peer ) 访问。 在对等网络中的每个参与者既是资源和服务提供者 (server ), 又是资 源和月艮务获取者 ( client )。  TECHNICAL FIELD The present invention relates to the field of networks and communications, and in particular, to a peer-to-peer node of a resource locating and discovery (RELOAD LOcate And Discovery, RELOAD for short) and an update method and system thereof. BACKGROUND Peer-to-peer (P2P) is a distributed network in which participants of a network share resources and services they own. In general, the sharing of resources and services includes: sharing and exchange of information, sharing of computing resources (for example, CPU), sharing of storage resources (for example, cache and disk space). Shared resources and services can be accessed by any peer (PEer) in the network. Each participant in a peer-to-peer network is both a resource and a service provider (server), and a resource and a client.
RELOAD为互联网工程任务组 ( Internet Engineering Task Force , 简称为 IETF )点对点会话初始 4匕十办议 ( Peer To Peer Session Initiation Protocol, 简称 为 P2PSIP )工作组定义了一种对等网络的资源定位和发现协议。在 RELOAD 对等网络中的几个术语的含义如下: 节点 ID: 在 RELOAD对等网络中作为每个节点的唯一标识; 配置服务器: 为整个网络提供配置信息, 例如, 证书服务器地址、 引导 节点地址、 网络釆用的算法、 消息的大小限制、 以及一些其它公共配置信息; 引导节点: 具有公网 IP, 能够被对等节点直连, 且可以为对等节点的加 入提供引导服务的对等节点。 其中, 引导节点的地址在配置服务器的配置信 息中均有设置。 图 1是才艮据现有技术中的 RELOAD对等网络的一种组网架构示意图, 如图 1 所示, RELOAD对等网络由对等节点 (A、 B、 C、 D )、 配置服务器 等组成。 其中, 节点 D为引导节点。 对等节点启动时需要从配置服务器上获取最新配置, 以节点 A为例, 图 2 是根据现有技术中的实现对等节点启动时获取配置的流程示意图, 如图 2 所示, 主要包括如下步骤: 步骤 S201 : 对等节点 A启动; 步骤 S202: 对等节点 A 以超文本传输协议获得 (HyperText TransferRELOAD defines a peer-to-peer network resource location and discovery for the Peer To Peer Session Initiation Protocol (P2PSIP) working group for the Internet Engineering Task Force (IETF) peer-to-peer session. protocol. The terms in the RELOAD peer-to-peer network have the following meanings: Node ID: A unique identifier for each node in the RELOAD peer-to-peer network; Configuration server: Provides configuration information for the entire network, for example, certificate server address, boot node address , network-utilized algorithms, message size limits, and some other common configuration information; boot node: peer-to-peer node with public network IP, capable of being directly connected by peer nodes, and providing boot services for peer nodes . The address of the boot node is set in the configuration information of the configuration server. FIG. 1 is a schematic diagram of a networking architecture of a RELOAD peer-to-peer network according to the prior art. As shown in FIG. 1, a RELOAD peer-to-peer network is composed of peer nodes (A, B, C, D), a configuration server, and the like. composition. Among them, node D is a boot node. When the peer node is started, you need to obtain the latest configuration from the configuration server. Take the node A as an example. Figure 2 is a schematic diagram of the process of obtaining the configuration when the peer node is started according to the prior art. As shown in Figure 2, it mainly includes the following. Steps: Step S201: Peer node A starts; Step S202: Peer node A obtains by Hypertext Transfer protocol (HyperText Transfer
Protocol GET, 简称为 HTTP GET ) 方式从配置月艮务器上获取配置信息; 步骤 S203 : 配置服务器向对等节点 A返回 XML配置文件; 步骤 S204: 对等节点 A利用获得的配置信息更新本地配置; 步骤 S205: 对等节点 A执行加入对等网络的其余流程。 配置服务器上的配置修改后, 对等网络中的节点需要对本地配置进行更 新。 以节点 B为例, 图 3是根据现有技术中的配置修改后对等节点进行更新 配置的流程示意图, 如图 3所示, 支定节点 A已经有了新配置, 更新配置的 流程主要包括以下步 4聚: 步骤 S301 : 对等节点 B向对等节点 A发送消息(可以是 RELOAD的任 何消息); 步骤 S302: 对等节点 A接收到节点 B的消息后检查其中的配置序号, 若比本节点的配置序号小, 则认为节点 B的配置是旧的, 需要更新; 步骤 S303 : 对等节点 A向节点 B返回消息响应, 提示不是新配置; 步骤 S304: 对等节点 A将其配置信息发送给节点 B发送, 通知节点 B 更新; 步骤 S305 : 对等节点 B根据接收到的节点 A的配置信息更新本地配置; 步 4聚 S306: 对等节点 B向节点 A返回配置更新响应。 从上述流程可以看出, 在 RELOAD 的现有技术中, 存在如下问题: 配 置修改后只要有新节点加入就开始在网络中散布并启用新配置, 如果新节点 加入时系统正好处于业务高峰期, 在这个时候启用新配置可能会导致系统的 运行出现故障。 发明内容 本发明的主要目的在于提供一种 RELOAD对等网络的对等节点及其配 置的更新方法及系统, 以至少解决现有技术中由于没有指定新配置的启用时 间, 从而可能导致业务高峰期系统运行出现故障的问题。 才艮据本发明的一个方面, 提供了一种 RELOAD对等网络的对等节点配 置的更新方法, 包括: 对等节点获取配置服务器更新后的配置信息, 其中, 该配置信息携带启用时间参数; 对等节点根据该启用时间参数, 确定上述配 置信息的启用时间; 在启用时间到达时, 对等节点利用上述配置信息更新本 地的配置。 优选地, 上述启用时间参数指示配置信息启用的起始时间, 或指示配置 信息启用的时间段。 进一步地,如果启用时间参数指示启用的时间段, 则启用时间参数包括: 启用的起始时间和时长, 或, 启用的起始时间和启用的结束时间。 进一步地, 对等节点确定配置信息的启用时间包括: 对等节点 居以下 公式确定配置信息的启动时间 t: t = t。 + offset , 其中, t。为启用的起始时间, offset大于等于 0, 为对等节点启用配置参数的偏移。 进一步地, 可以按照以下方式之一确定 offset : 取 0至上述时长之间的随 机数, 将该随机数作为 offset ; 取 0至预设数值之间的随机数, 将该随机数除 以上述时长后取余, 将取余的结果作为 offset , 其中, 预设数值为上述时长与 该对等节点的节点标识之和; 取对等节点的节点标识进行哈希运算后除以上 述时长后取余, 将取余的结果作为 offset。 进一步地, 如果启用时间参数指示启用的时间段, 对等节点确定配置信 息的启用时间包括: 对等节点在启用时间参数指示的时间段内, 根据其系统 资源的使用情况, 确定启用时间。 进一步地, 在对等节点获取配置服务器更新后的配置信息之前, 该方法 还包括: 更新配置服务器的备用配置的配置信息, 设定启动配置信息的启用 时间参数; 则在启用时间参数指示的起始时间到达或启用时间参数指示的时间段到 达时, 该方法还包括: 配置月艮务器切换到备用配置, 启用更新后的配置信息。 进一步地, 对等节点获取配置服务器更新后的配置信息包括以下之一: 对等节点定时从配置服务器获取配置信息; RELOAD对等网络的引导节点定 时从配置服务器获取配置信息, 并在 RELOAD对等网络中发布, 对等节点 获取引导节点发布的配置信息; RELOAD对等网络的引导节点定时从配置服 务器获取配置信息, 对等节点通过与引导节点的交互消息, 获取配置信息。 进一步地, 对于 RELOAD对等网络的所有节点, 启用时间参数相同, 或者, 对于 RELOAD对等网络中的各个节点, 启用时间参数不完全相同。 根据本发明的另一方面, 提供了一种 RELOAD对等网络的对等节点, 包括: 获取模块、 确定模块和执行模块。 其中, 获取模块, 用于获取配置服 务器更新后的配置信息, 该配置信息中携带有配置信息的启用时间参数; 确 定模块, 用于根据配置信息中携带的启用时间参数, 确定配置信息的启用时 间; 执行模块, 用于在启用时间到达时, 利用配置更新对等节点的本地配置。 才艮据本发明的又一方面, 提供了一种 RELOAD对等网络的对等节点配 置的更新系统, 包括: 配置服务器和对等节点。 其中, 配置服务器, 用于存 储更新后的配置信息, 该配置信息中指定了配置信息的启用时间参数; 对等 节点, 用于获取配置服务器存储的配置信息, 并根据上述启用时间参数确定 本地启用配置信息的启用时间, 在启用时间到达时, 利用该配置信息更新本 地的配置。 优选地, 上述启用时间参数包括: 启用配置信息的起始时间或启用配置 信息的时间段; 配置服务器还用于在启用配置信息的起始时间或时间段内, 在本地启用更新后的配置信息。 进一步地, 该系统还包括引导节点, 该引导节点用于从配置服务器获取 配置信息, 并将该配置信息发送给对等节点。 通过本发明, 釆用在更新后的配置信息中指定该配置信息的启用时间参 数, 使得获取该配置信息的对等节点可以根据启用时间参数确定启用更新后 的配置信息的时间的方法, 解决了由于在业务高峰期启用新的配置而导致系 统运行故障的问题, 进而到达了使系统正常运行的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是才艮据现有技术中的 RELOAD对等网络的的一种组网架构示意图; 图 2是根据现有技术中的实现对等节点启动时获取配置的流程示意图; 图 3是根据现有技术中的配置修改后对等节点进行更新配置的流程示意 图; 图 4是根据本发明实施例的 RELOAD对等网络的对等节点配置的更新 系统的结构示意图; 图 5是根据本发明优选实施例的 RELOAD对等网络的对等节点配置的 更新系统的结构框图; 图 6是根据本发明实施例的 RELOAD对等网络的对等节点的结构框图; 图 7是根据本发明实施例的 RELOAD对等网络的对等节点配置的更新 方法的¾¾程示意图; 图 8是根据本发明实施例中的配置修改后对等节点更新本地配置的流程 示意图; 图 9是根据本发明实施例的 RELOAD对等网络中对等节点启动时获取 配置的流程示意图; 图 10是根据本发明实施例的 RELOAD对等网络中对节点配置同步的流 程示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 根据本发明实施例, 提供了一种对等节点配置的更新系统, 该系统用于 更新 RELOAD对等网络中的对等节点的配置。 图 4是根据本发明实施例的 RELOAD对等网络的对等节点配置的更新 系统的结构示意图, 如图 4所示, 该系统中要包括: 配置服务器 2和对等节 点 4。 其中, 配置服务器 2用于存储更新后的配置信息, 其中, 该配置信息 中指定了该配置信息的启用时间参数; 对等节点 4用于获取配置服务器 2存 储的上述配置信息, 并才艮据该配置信息中指定的启用时间参数确定本地启用 该配置信息的启用时间, 在启用时间到达时, 利用该配置信息更新本地的配 置。 通过本发明实施例的上述系统, 可以在 4爹改配置信息时指定该配置信息 的启用时间参数, 从而使得 RELOAD对等网络中的对等节点在获取该配置 信息时, 可以才艮据该启用时间参数确定启用该配置信息的时间, 从而避开了 在业务高峰期进行更新配置, 达到了使系统正常运行的效果。 在具体应用中, 可以将配置分主备两种, 其中, 主配置为当前正在使用 的配置, 备用配置供爹改配置时使用。 当需要 4爹改配置信息时, 先更新备用 配置, 然后在需要启用更新后的配置时, 以主备倒换的方式启用新配置。 在 实际实施时, 可以先更新配置月艮务器 2的备用配置的配置信息, 并设置该配 置信息的启用时间参数, 在具体实施过程中, 可以针对全 RELOAD对等网 络的所有对等节点设置一个启用时间参数 (即 RELOAD对等网络中的所有 对等节点的启用时间参数相同),也可以针对不同的对等节点,设置不完全相 同的启用时间参数, 例如, 可以才艮据对等节点的节点 ID 不同, 为每个节点 ID设置一个启用时间参数, 也可以为某一段节点 ID的对等节点设置一个相 同的启用时间参数。 并且, 配置信息中指定的配置信息的启用时间参数可以是启用该配置信 息的起始时间或启用该配置信息的时间段, 如果该启用时间参数指示的是启 用该配置信息的时间段, 则该启用时间参数可以包括: 启用该配置信息的起 始时间和时长, 或者, 启用该配置信息的起始时间和结束时间。 并且, 为了 使配置服务器的配置与 RELOAD对等网络的对等节点的配置同步, 在设置 的启用时间参数所指示的启用的起始时间或时间段内, 配置月艮务器还用于在 本地启用更新后的上述配置信息, 具体地, 配置月艮务器可以在该起始时间或 时间段内, 倒换到备用配置, 启用该配置信息。 另外, 对等节点 4可以根据预先设置的时间点直接从配置服务器 2获取 上述更新后的配置信息, 也可以由引导节点获取更新后的配置信息后, 将该 配置信息发送给对等节点。 图 5是根据本发明优选实施例的 RELOAD对等 网络的对等节点配置的更新系统的结构框图, 如图 5所示, 该系统还可以包 括: 引导节点 6 , 用于从配置服务器 2获取上述配置信息, 并将该配置信息 发送给对等节点 4。 在具体应用中, 引导节点 6可以在从配置服务器 2获取 到配置信息后, 主动在网络中发布, 也可以在对等节点 4与引导节点 6进行 消息时, 引导节点 6将获取的配置信息发送给对等节点 4。 通过如图 5所示 的系统, 使得对等节点 4可以通过引导节点 6获取配置服务器 2上存储的更 新后的配置信息。 下面对根据本发明实施例的 RELOAD对等网络的对等节点进行描述。 图 6是根据本发明实施例的 RELOAD对等网络的对等节点的结构框图, 如图 6所示, 该对等节点主要包括: 获取模块 60、 确定模块 62和执行模块 64。 其中, 获取模块 60 , 用于获取配置服务器更新后的配置信息, 其中, 该配置信 息中携带有该配置信息的启用时间参数; 在具体应用中, 获取模块 60 可以 直接从配置服务器获取该配置信息, 也可以由引导节点从配置服务器中获取 该配置信息, 再由引导节点主动在网络中发布, 从而使获取模块 60 获取到 该配置信息, 或者, 当对等节点与引导节点进行消息交互时, 从引导节点获 取该配置信息。 确定模块 62 , 用于 居上述配置信息中携带的启用时间参数, 确定该对 等节点启用该配置信息的启用时间; 在具体应用中, 如果启用时间参数指定 了启用的时间段, 则确定模块 62 可以通过设置的起始时间加上偏移的方式 得到本地启用该配置信息的启用时间, 具体地, 该偏移可以才艮据启用时间参 数中指示的起始时间与时长获得。 执行模块 64 , 用于在上述启用时间到达时, 利用上述配置信息更新对等 节点的本地配置。 在具体应用中, 可以设置主备配置, 其中, 当前使用的配 置为主配置, 在获取到上述配置信息后, 利用该配置信息更新备用配置, 在 启用时间到达时, 倒换到备用配置, 启用备用配置, 将该备用配置作为主配 置, 将原有的主配置切换改为备用配置, 并停止使用。 通过本发明实施例的上述 RELOAD对等网络的对等节点, 可以才艮据配 置信息的启用时间参数, 启用更新后的配置信息, 从而可以避免在业务高峰 期更新配置。 下面对根据本发明实施例的对等节点配置的更新方法进行描述。 图 7是根据本发明实施例的 RELOAD对等网络的对等节点配置的更新 方法的流程示意图, 如图 7所示, 该流程用于更新 RELOAD对等网络中对 等节点的配置, 该流程主要包括 (步骤 S702 -步骤 S706 ): 步骤 S702, 对等节点获取配置服务器更新后的配置信息, 其中, 该配置 信息携带启用时间参数; 步骤 S704, 对等节点才艮据上述启用时间参数, 确定该配置信息的启用时 间; 步骤 S706, 在上述启用时间到达时, 对等节点利用该配置信息更新本地 的配置。 通过本发明实施例的上述流程, 对等节点在获取更新后的配置信息后, 可以根据该配置信息中携带的启用时间参数确定启用该配置信息的时间, 从 而避免了在业务高峰期更新配置信息。 在具体应用中,在需要修改配置信息时, 配置服务器首先更新配置信息, 并在该配置信息中配置该配置信息的启用时间参数。 具体地, 配置的启用时 间参数可以表示启用该配置信息的时间点, 也可以表示启用该配置信息的时 间段。 并且, 当配置的启用时间参数指示启用的时间段时, 该启用时间参数可 以包括: 启用的起始时间和时长, 当时长为 0时, 启用时间参数表示时间点 (起始时间), 或者, 启用的起始时间和启用的结束时间。 并且, 当启用时间参数指示启用的时间段, 且对等节点在确定该配置信 息的启用时间时, 可以按照以下公式确定该配置信息的启用时间 t: t = t。 + offset , 其中, t。为启用时间参数中的启用的起始时间, offset大 于等于 0, 为该对等节点启用该配置参数的偏移。 具体地, 上述 offset可以根据启用时间参数中的时长获得, 例如, 直接取 0至时长之间的随机数作为 offset; 或者, 取 0至时长与节点 ID之和间的随 机数后除以时长, 然后取余, 将取余的结果作为 offset ; 或者, 取节点 ID进 行 Hash运算后除以时长, 然后将取余的结果作为 offset。 或者, 当启用时间参数指示配置信息启用的时间段, 且对等节点在确定 该配置信息的启用时间时, 对等节点在该启用时间参数指示的时间段内, 根 据其系统资源 (例如, CPU ) 的使用情况确定该配置信息的启用时间, 具体 地, 对等节点可以在其系统资源存在空闲的时候启用该配置信息。 这样既可 以保证新配置的启用成功, 也不会影响其他业务的运行。 通过上述方法确定对等节点的启用时间, 可以使不同的对等节点在不同 的时间启用更新后的配置, 以避免大部分节点在同一时刻启用新的配置而导 致更新失败或系统出错的问题。 在具体实施过程中, 在配置服务器配置更新后的配置信息启用时间参数 时, 可以为全网配置相同的启用时间参数, 即只配置一个启用时间参数, 也 可以为各个对等节点配置不完全相同的启用时间, 例如, 可以对不同节点 ID 的对等节点配置不同的启用时间参数, 也可以为某个节点 ID 范围内的多个 对等节点配置相同的启用时间参数, 而对该范围内的其它对等节点配置不同 的启用时间参数。 某个对等节点在获取更新后的配置信息时, 根据为其配置 的启用时间参数, 确定其启用配置信息的时间, 这样进一步分散了 RELOAD 对等网络中各个节点启用配置信息的时间。 在具体实施过程中, 可以通过主备倒换的方式来启用更新后的配置, 具 体地, 4爹改配置时, 可以先更新备用配置, 然后在启用时间到达时, 通过主 备倒换的方式来启用更新后的配置。 从而方便地实现更新后的配置的启用。 因此, 在需要修改配置信息时, 首先更新配置服务器的备用配置的配置 信息, 并设定该配置信息的启用时间参数; 并且, 为了使配置服务器与对等 节点的配置同步, 在该启用时间参数所指示的起始时间或时间段到达时, 配 置服务器切换到备用配置, 启用更新后的配置信息。 在具体实施过程中, 对等节点获得配置服务器更新后的配置信息的方式 可以是广播, 也可以其他传播方式, 具体地, 对等节点获取配置服务器更新 后的配置信息的方式包括以下几种, 但是并不限定为以下方式: Protocol GET, abbreviated as HTTP GET), obtains configuration information from the configuration server; Step S203: The configuration server returns an XML configuration file to the peer node A; Step S204: The peer node A updates the local configuration by using the obtained configuration information. Step S205: Peer node A performs the remaining processes of joining the peer-to-peer network. After configuring the configuration changes on the server, the nodes in the peer-to-peer network need to update the local configuration. Taking the node B as an example, FIG. 3 is a schematic flowchart of updating the configuration of the peer node according to the configuration in the prior art. As shown in FIG. 3, the node A has a new configuration, and the process of updating the configuration mainly includes The following step 4: Step S301: The peer node B sends a message to the peer node A (which may be any message of RELOAD); Step S302: After receiving the message of the Node B, the peer node A checks the configuration sequence number thereof, if If the configuration number of the node is small, it is considered that the configuration of the node B is old and needs to be updated. Step S303: the peer node A returns a message response to the node B, indicating that it is not a new configuration; Step S304: the peer node A sets its configuration information. Sending to the Node B to send, notifying the Node B to update; Step S305: The Peer Node B updates the local configuration according to the received configuration information of the Node A; Step 4: S306: The Peer Node B returns a configuration update response to the Node A. As can be seen from the above process, in the prior art of RELOAD, the following problems exist: After the configuration is modified, as long as a new node joins, it starts to spread and enable the new configuration in the network. If the new node joins, the system is at the peak of the business. Enabling a new configuration at this time may cause the system to malfunction. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a peer-to-peer node of a RELOAD peer-to-peer network and a method and system for updating the configuration thereof, so as to at least solve the problem that the activation time of the new configuration is not specified in the prior art, which may lead to a peak business period. The system is running with a problem. According to an aspect of the present invention, a method for updating a peer node configuration of a RELOAD peer-to-peer network is provided, including: a peer node acquiring configuration information of a configuration server update, wherein the configuration information carries an enable time parameter; The peer node determines the activation time of the above configuration information according to the activation time parameter; when the activation time arrives, the peer node updates the local configuration by using the above configuration information. Preferably, the activation time parameter indicates a start time when the configuration information is enabled, or a time period indicating that the configuration information is enabled. Further, if the enable time parameter indicates an enabled time period, the enable time parameters include: an enabled start time and duration, or an enabled start time and an enabled end time. Further, the peer node determines the activation time of the configuration information, including: the peer node determines the startup time t of the configuration information by using the following formula: t=t. + offset , where t. For the enabled start time, offset is greater than or equal to 0, enabling the offset of the configuration parameters for the peer node. Further, the offset may be determined according to one of the following ways: taking a random number between 0 and the above duration, and taking the random number as an offset; taking 0 to a random number between preset values, dividing the random number by the duration After the remainder, the result of the remainder is taken as an offset, wherein the preset value is the sum of the duration and the node identifier of the peer node; the node identifier of the peer node is hashed and divided by the duration , the result of the remainder is taken as the offset. Further, if the enable time parameter indicates the enabled time period, the peer node determines the activation time of the configuration information includes: the peer node determines the activation time according to the usage of the system resource within the time period indicated by the enable time parameter. Further, before the peer node obtains the configuration information of the configuration server update, the method further includes: updating configuration information of the standby configuration of the configuration server, setting an activation time parameter of the startup configuration information; The time period indicated by the time of arrival or activation time parameter is When the method is reached, the method further includes: configuring the server to switch to the alternate configuration, and enabling the updated configuration information. Further, the configuration information after the peer node obtains the configuration server update includes one of the following: the peer node periodically obtains the configuration information from the configuration server; the boot node of the RELOAD peer network periodically obtains the configuration information from the configuration server, and is in the RELOAD peer. The peer node obtains the configuration information issued by the boot node. The boot node of the RELOAD peer network periodically obtains the configuration information from the configuration server, and the peer node obtains the configuration information through the interaction message with the boot node. Further, for all nodes of the RELOAD peer-to-peer network, the enable time parameters are the same, or, for each node in the RELOAD peer-to-peer network, the enable time parameters are not identical. According to another aspect of the present invention, a peer node of a RELOAD peer-to-peer network is provided, comprising: an acquisition module, a determination module, and an execution module. The obtaining module is configured to obtain configuration information after the configuration server is updated, where the configuration information includes an activation time parameter of the configuration information, and a determining module, configured to determine, according to the activation time parameter carried in the configuration information, an activation time of the configuration information. The execution module is used to update the local configuration of the peer node with the configuration when the enable time arrives. According to still another aspect of the present invention, an update system for a peer node configuration of a RELOAD peer-to-peer network is provided, including: a configuration server and a peer node. The configuration server is configured to store the updated configuration information, where the configuration information specifies an activation time parameter of the configuration information, and the peer node is configured to obtain configuration information stored by the configuration server, and determine local activation according to the activation time parameter. The time when the configuration information is enabled, when the time of arrival is reached, the configuration information is used to update the local configuration. Preferably, the enabling time parameter includes: a start time for enabling configuration information or a time period for enabling configuration information; the configuration server is further configured to enable the updated configuration information locally during a start time or a time period when the configuration information is enabled. . Further, the system further includes a boot node for obtaining configuration information from the configuration server and transmitting the configuration information to the peer node. According to the present invention, the activation time parameter of the configuration information is specified in the updated configuration information, so that the peer node that obtains the configuration information can determine the time for enabling the updated configuration information according to the activation time parameter, and solves the problem. Due to the problem of system failure caused by the new configuration being enabled during peak business hours, the effect of normal operation of the system is reached. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of a networking architecture of a RELOAD peer-to-peer network according to the prior art; FIG. 2 is a schematic flowchart of implementing a configuration when a peer node is started according to the prior art; 3 is a schematic flowchart of updating a configuration of a peer node after modification according to a configuration in the prior art; FIG. 4 is a schematic structural diagram of an update system of a peer node configuration of a RELOAD peer-to-peer network according to an embodiment of the present invention; A block diagram of an update system for a peer-to-peer node configuration of a RELOAD peer-to-peer network in accordance with a preferred embodiment of the present invention; FIG. 6 is a block diagram showing the structure of a peer node of a RELOAD peer-to-peer network in accordance with an embodiment of the present invention; FIG. 8 is a schematic diagram of a process of updating a local configuration of a peer node after modification of a configuration in accordance with an embodiment of the present invention; FIG. 9 is a flowchart for implementing a local configuration according to the present invention. FIG. 10 is a schematic diagram of a process for obtaining a configuration when a peer node is started in a RELOAD peer-to-peer network; FIG. 10 is a configuration of a node in a RELOAD peer-to-peer network according to an embodiment of the present invention. Schematic diagram of the process of synchronization. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. According to an embodiment of the present invention, an update system for peer node configuration is provided, which is used for Update the configuration of the peer node in the RELOAD peer-to-peer network. 4 is a schematic structural diagram of an update system of a peer node configuration of a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG. 4, the system includes: a configuration server 2 and a peer node 4. The configuration server 2 is configured to store the updated configuration information, where the configuration information specifies the activation time parameter of the configuration information; the peer node 4 is configured to obtain the configuration information stored by the configuration server 2, and then The enable time parameter specified in the configuration information determines when the configuration information is enabled locally, and when the enable time arrives, the local configuration is updated with the configuration information. With the above system of the embodiment of the present invention, the activation time parameter of the configuration information may be specified when the configuration information is falsified, so that the peer node in the RELOAD peer-to-peer network can obtain the configuration information when the configuration information is obtained. The time parameter determines the time when the configuration information is enabled, thereby avoiding the update configuration during the peak period of the business, and achieving the effect of making the system operate normally. In a specific application, the configuration can be divided into two types: the primary configuration is the configuration currently in use, and the alternate configuration is used for tampering configuration. When you need to tamper with the configuration information, update the alternate configuration first, and then enable the new configuration in active/standby mode when you need to enable the updated configuration. In actual implementation, the configuration information of the alternate configuration of the configuration server 2 may be updated first, and the activation time parameter of the configuration information may be set. In the specific implementation process, all peer nodes of the full RELOAD peer network may be set. An enable time parameter (that is, the same enable time parameter of all peer nodes in the RELOAD peer-to-peer network), or different enable time parameters may be set for different peer nodes, for example, the peer node may be selected. The node ID is different, and an enable time parameter is set for each node ID. It is also possible to set an same enable time parameter for the peer node of a certain node ID. And, the enable time parameter of the configuration information specified in the configuration information may be a start time of enabling the configuration information or a time period in which the configuration information is enabled, and if the enable time parameter indicates a time period in which the configuration information is enabled, The enable time parameter can include: the start time and duration of the configuration information is enabled, or the start time and end time of the configuration information are enabled. And, in order to synchronize the configuration of the configuration server with the configuration of the peer node of the RELOAD peer network, the configuration server is also used locally at the start time or time period indicated by the set enable time parameter. The configuration information after the update is enabled. Specifically, the configuration server can switch to the standby configuration during the start time or time period to enable the configuration information. In addition, the peer node 4 can directly obtain from the configuration server 2 according to a preset time point. After the updated configuration information is obtained by the boot node, the configuration information may be sent to the peer node. 5 is a structural block diagram of an update system for a peer node configuration of a RELOAD peer-to-peer network according to a preferred embodiment of the present invention. As shown in FIG. 5, the system may further include: a boot node 6 for obtaining the above from the configuration server 2. Configure the information and send the configuration information to peer node 4. In a specific application, the boot node 6 may actively publish in the network after acquiring the configuration information from the configuration server 2, or may send the acquired configuration information when the peer node 4 and the boot node 6 perform a message. Give peer node 4. Through the system as shown in FIG. 5, the peer node 4 can make the updated configuration information stored on the configuration server 2 available through the boot node 6. A peer node of a RELOAD peer-to-peer network in accordance with an embodiment of the present invention is described below. FIG. 6 is a structural block diagram of a peer node of a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG. 6, the peer node mainly includes: an obtaining module 60, a determining module 62, and an executing module 64. The obtaining module 60 is configured to obtain configuration information that is updated by the configuration server, where the configuration information carries an activation time parameter of the configuration information. In a specific application, the obtaining module 60 may directly obtain the configuration information from the configuration server. The configuration information may be obtained by the boot node from the configuration server, and then the boot node actively publishes in the network, so that the obtaining module 60 obtains the configuration information, or when the peer node performs message interaction with the boot node. Get the configuration information from the boot node. The determining module 62 is configured to determine an enable time of the configuration information to be enabled in the configuration information, and determine, in a specific application, an enable time of the peer information to enable the configuration information. In a specific application, if the enable time parameter specifies an enabled time period, the determining module 62 The enable time for enabling the configuration information locally can be obtained by setting the start time plus the offset. Specifically, the offset can be obtained according to the start time and duration indicated in the enable time parameter. The executing module 64 is configured to update the local configuration of the peer node by using the foregoing configuration information when the activation time is reached. In a specific application, an active/standby configuration can be configured. The currently used configuration is the primary configuration. After the configuration information is obtained, the configuration information is used to update the standby configuration. When the activation time is reached, the configuration is switched to the standby configuration. Configure the standby configuration as the primary configuration, change the original primary configuration switch to the standby configuration, and stop using it. The peer node of the above-mentioned RELOAD peer-to-peer network according to the embodiment of the present invention can be configured Set the enable time parameter of the information, enable the updated configuration information, so as to avoid updating the configuration during peak business hours. An update method of a peer node configuration according to an embodiment of the present invention is described below. 7 is a schematic flowchart of a method for updating a peer node configuration of a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG. 7, the process is used to update a configuration of a peer node in a RELOAD peer-to-peer network. Included (step S702 - step S706): Step S702, the peer node obtains configuration information that is updated by the configuration server, where the configuration information carries an enable time parameter; and in step S704, the peer node determines the time parameter according to the activation time parameter. The activation time of the configuration information; Step S706, when the activation time arrives, the peer node updates the local configuration by using the configuration information. After the process of obtaining the updated configuration information, the peer node may determine the time for enabling the configuration information according to the activation time parameter carried in the configuration information, thereby avoiding updating the configuration information during the peak period of the service. . In a specific application, when the configuration information needs to be modified, the configuration server first updates the configuration information, and configures the activation time parameter of the configuration information in the configuration information. Specifically, the configured enable time parameter may indicate a point in time when the configuration information is enabled, and may also indicate a time period in which the configuration information is enabled. Moreover, when the configured enable time parameter indicates the enabled time period, the enable time parameter may include: an enabled start time and a duration, when the length is 0, the enable time parameter indicates a time point (start time), or, The start time enabled and the end time enabled. And, when the time parameter is enabled to indicate the enabled time period, and the peer node determines the activation time of the configuration information, the activation time t of the configuration information may be determined according to the following formula: t=t. + offset , where t. To enable the enabled start time in the time parameter, offset is greater than or equal to 0, and the offset of the configuration parameter is enabled for the peer node. Specifically, the offset may be obtained according to the duration in the activation time parameter, for example, directly The random number between 0 and the duration is taken as the offset; or, the random number between 0 and the sum of the node ID is divided by the duration, and then the remainder is taken as the offset; or, the node ID is taken as the hash. After the operation, divide by the duration, and then take the result of the remainder as offset. Or, when the time parameter is enabled to indicate that the configuration information is enabled, and the peer node determines the activation time of the configuration information, the peer node is based on its system resources (eg, CPU) during the time period indicated by the enable time parameter. The usage of the configuration determines the activation time of the configuration information. Specifically, the peer node can enable the configuration information when its system resources are idle. This will ensure that the new configuration is successfully enabled and does not affect the operation of other services. By determining the activation time of the peer node by the above method, different peer nodes can enable the updated configuration at different times, so as to avoid the problem that most nodes enable the new configuration at the same time and cause update failure or system error. In the specific implementation process, you can configure the same enable time parameter for the entire network when you configure the configuration parameters of the server configuration update. That is, only one enable time parameter is configured, or the configuration of each peer node is not identical. Enable time, for example, you can configure different enable time parameters for peer nodes with different node IDs, or configure multiple enable time parameters for multiple peer nodes within a node ID range, but within the range Other peer nodes are configured with different enable time parameters. When a peer node obtains the updated configuration information, it determines the time when the configuration information is enabled based on the enable time parameter configured for it, which further decentralizes the time when the configuration information is enabled for each node in the RELOAD peer-to-peer network. In the implementation process, the updated configuration can be enabled through the active/standby switchover. Specifically, when the configuration is changed, the backup configuration can be updated first, and then the active/standby switchover is enabled when the enable time is reached. Updated configuration. This makes it easy to enable the configuration of the updated configuration. Therefore, when the configuration information needs to be modified, the configuration information of the configuration configuration of the configuration server is first updated, and the activation time parameter of the configuration information is set; and, in order to synchronize the configuration of the configuration server with the peer node, the activation time parameter is When the indicated start time or time period arrives, the configuration server switches to the alternate configuration and enables the updated configuration information. In a specific implementation process, the manner in which the peer node obtains the configuration information after the server is updated may be broadcast, or may be in another manner. Specifically, the manner in which the peer node obtains the configuration information after the server is updated includes the following types. However, it is not limited to the following:
( 1 ) 对等节点定时从配置服务器获取上述配置信息, 在具体应用中, 可以配置对等节点从配置服务器获取配置信息的周期, 每当周期到达时, 对 等节点会主动到配置服务器获取更新的配置信息; (1) The peer node periodically obtains the above configuration information from the configuration server. In a specific application, The peer node can be configured to obtain configuration information from the configuration server. Whenever the period arrives, the peer node actively requests the configuration server to obtain updated configuration information.
( 2 ) RELOAD对等网络的引导节点定时从配置服务器获取上述配置信 息, 并主动在 RELOAD对等网络中发布, 从而使得上述对等节点可以获取 该引导节点发布的配置信息; (2) The boot node of the RELOAD peer-to-peer network obtains the above configuration information from the configuration server, and actively publishes the configuration information in the RELOAD peer-to-peer network, so that the peer node can obtain the configuration information advertised by the boot node;
( 3 ) RELOAD对等网络的引导节点定时从配置服务器获取上述配置信 息, 当上述对等节点与该引导节点相互发送消息时, 通过与引导节点的交互 消息, 获取上述配置信息。 并且, 在对等节点更新上述配置信息后, 如果有其它对等节点与该对等 节点间相互发送消息, 该对等节点可以检查两节点的配置是否一致, 若不一 致则可以使旧配置的节点从对方同步到新配置。 釆用本发明提出的对等节点配置的更新方法, 网络中的对等节点能够按 照事先的设置, 在指定的时间点启用新配置, 或在指定的时间范围内启用新 配置, 从而解决了无法指定新配置的启用时间的问题。 下面对釆用本发明的 RELOAD对等网络中更新配置的流程进行详细描 述。 实施例一 本发明实施例对配置修改后对等节点更新本地配置的流程进行描述, 图 8 是才艮据本发明实施例中的配置^ ί'爹改后对等节点更新本地配置的流程示意 图, 如图 8所示, 配置修改后对等节点更新本地配置主要包括以下步骤: 步骤 S801 , 4爹改配置月艮务器上的备用配置, 设定启用的起始时间和时长 (时长为 0 时表示到达起始时间后同时启用), 同时^ ί'爹改配置文件中的序列 号。 例如, 在配置文件中 configuration标签之间增力口启用起始时间和时长两 个标签, 如下所示: <config-update-begintime>2009- 11-4 01: 30: 00</config-update-begintime> (3) The boot node of the RELOAD peer network periodically acquires the configuration information from the configuration server. When the peer node and the boot node send messages to each other, the configuration information is obtained through an interaction message with the boot node. And, after the peer node updates the configuration information, if another peer node sends a message to the peer node, the peer node can check whether the configurations of the two nodes are consistent, and if not, the old configured node can be made. Synchronize from the other party to the new configuration. Using the update method of the peer node configuration proposed by the present invention, the peer node in the network can enable the new configuration at a specified time point according to the prior setting, or enable the new configuration within a specified time range, thereby solving the problem. Specifies the issue of when the new configuration is enabled. The flow of updating the configuration in the RELOAD peer-to-peer network of the present invention will be described in detail below. The first embodiment of the present invention describes the process of updating the local configuration of the peer node after the configuration is modified. FIG. 8 is a schematic diagram of the process of updating the local configuration of the peer node after the configuration is modified according to the embodiment of the present invention. As shown in Figure 8, after the configuration is modified, the peer node updates the local configuration mainly including the following steps: Steps S801, 4 tampering with the configuration of the standby server, setting the start time and duration (the duration is 0) It means that it is enabled at the same time after the start time, and ^ ί ' tamper with the serial number in the configuration file. For example, in the configuration file, the add-on port between the configuration tags enables the start time and duration tags, as shown below: <config-update-begintime>2009- 11-4 01: 30: 00</config-update- Begintime>
<config-update-continuetime>2</ config-update-continuetime > 其中的更新时长标签 config-update-continuetime 的单位是小时, 可以为 小数。 步骤 S802: 对等节点获得备用配置(可以是直接获取或间接获取、 主动 获取或被动获取); 步骤 S803: 对等节点利用获得的配置信息更新本地备用配置; 步骤 S804:对等节点根据设定的启用起始时间和时长来计算本节点的新 配置的实际启用时间; 如果配置的启用时间参数有多个, 如果配置中有 4十对本节点 ID 或所属 节点 ID 范围的启用时间参数的设置, 则使用之, 否则就使用针对所有节点 的设置。 例如, 釆用的计算方式为: 实际启用时间 =起始时间 +时长随机数, 假定 起始时间为 2009-11-4 01:30:00, 时长为 2小时 (即 2*60*60=7200秒 ), 取 0 - 7200 间的随机数, 则对等节点的新配置的实际启用时间应该是 2009- 11 -4 01:30:00至 2009-11-4 03:30:00之间的任意时间点; 并且, 对于 RELOAD对 等网络中的各个对等节点, 各个对等节点的实际启用时间点会比较分散地分 布在 jt匕区间内。 步骤 S805a: 对等节点到达实际启用时间点后, 则启用备用配置, 将之 作为当前使用的主配置, 将原先的主配置停止使用, 改为备用配置; 步骤 S805b: 配置服务器在到达设定的起始时间时启用备用配置, 将之 作为当前使用的主配置, 将原先的主配置改为备用配置, 停止使用; 步骤 S 806a〜b: 对等节点和配置服务器均更新倒换后的备用配置信息, 使之与主配置信息相同。 在具体应用中, 上述步骤 S802 可釆用多种方法获得备用配置, 例如, 各引导节点定时从配置服务器上获取最新配置, 然后由引导节点主动在网络 中发布, 或者通过其他节点与引导节点的交互消息进行传播最新配置, 或者 直接由对等节点定时从配置服务器上获取。 此外, 步骤 S804〜S805a 中, 各节点也可以在指定时间段内, 才艮据本身 的系统资源 (例如, CPU )的繁忙程度来决定启用时间。 例如, 在 CPU利用 率低于 5%超过 5分钟时启用新配置。 实施例二 本发明实施例对 RELOAD对等网络中对等节点启动时获取配置的流程 进行描述。 在实际应用中, 当配置修改后已经将新配置下发到各对等节点, 但还没 有开始启用新配置时, 如果有新节点(例如, 节点 A )启动并加入对等网络, 则需要从配置月艮务器上获取当前正在启用的主配置。 由于此时配置月艮务器上 还有一份备用配置, 并且该备用配置是新配置, 并且, 由于该新配置已经下 发过了, 因此, 该新配置不会再向网络发送。 因而, 对于新加入节点需要获 取主、 备配置。 图 9是才艮据本发明本实施例的 RELOAD对等网络中对等节点启动时获 取配置的流程示意图, 如图 9所示, 该流程主要包括以下步骤: 步骤 S901 : 4爹改配置 艮务器上的备用配置, 设定启用的起始时间和时长 ( 时长为 0 时表示到达起始时间后同时启用 )。 例如在配置文件中 configuration标签之间增力口 ^口下两个标签: <config-update-begintime>2009- 11-4 01: 30: 00</config-update-begintime> <config-update-continuetime>2</ config-update-continuetime > The update time tag config-update-continuetime is in hours and can be Decimal. Step S802: The peer node obtains the standby configuration (which may be direct acquisition or indirect acquisition, active acquisition or passive acquisition); Step S803: the peer node updates the local standby configuration by using the obtained configuration information; Step S804: The peer node according to the setting Enable start time and duration to calculate the actual enable time of the new configuration of the node; if there are multiple enable time parameters configured, if there are 40 pairs of local node IDs or the set time parameters of the own node ID range in the configuration, Then use it, otherwise use the settings for all nodes. For example, the calculation method used is: Actual activation time = start time + duration random number, assuming start time is 2009-11-4 01:30:00, duration is 2 hours (ie 2*60*60=7200 Seconds), taking a random number between 0 and 7200, the actual activation time of the new configuration of the peer node should be any between 2009-11 4 -4 01:30:00 to 2009-11-4 03:30:00 Time point; and, for each peer node in the RELOAD peer-to-peer network, the actual activation time points of the respective peer nodes are distributed in a dispersed manner within the jt匕 interval. Step S805a: After the peer node reaches the actual activation time point, the standby configuration is enabled, and the original configuration is used as the current configuration, and the original primary configuration is stopped and replaced with the standby configuration. Step S805b: The configuration server arrives at the set configuration. Enable the standby configuration as the current configuration, change the original primary configuration to the standby configuration, and stop using it. Steps S 806a to b: Both the peer node and the configuration server update the alternate configuration information after switching. , making it the same as the main configuration information. In a specific application, the foregoing step S802 may obtain an alternate configuration by using multiple methods. For example, each boot node periodically acquires the latest configuration from the configuration server, and then is actively released by the boot node in the network, or through other nodes and the boot node. The interactive message propagates the latest configuration, or is directly obtained from the configuration server by the peer node. In addition, in steps S804 to S805a, each node may determine the activation time according to the busyness of its own system resource (for example, CPU) within a specified time period. For example, enable a new configuration when CPU utilization is less than 5% for more than 5 minutes. Embodiment 2 The embodiment of the present invention describes a procedure for obtaining a configuration when a peer node in a RELOAD peer-to-peer network starts. In the actual application, when the configuration has been modified and the new configuration has been delivered to each peer node, but the new configuration has not started, if a new node (for example, node A) is started and joined to the peer-to-peer network, it needs to be Configure the main configuration that is currently enabled on the server. Since there is an alternate configuration on the server at this time, and the standby configuration is a new configuration, and since the new configuration has been delivered, the new configuration will not be sent to the network. Therefore, you need to obtain the primary and backup configurations for the newly joined nodes. FIG. 9 is a schematic diagram of a process for obtaining a configuration when a peer node is started in a RELOAD peer-to-peer network according to the embodiment of the present invention. As shown in FIG. 9, the process mainly includes the following steps: Step S901: 4 Tampering configuration service Alternate configuration on the device, set the start time and duration of the enable (when the duration is 0, it means that it is enabled at the same time after the start time). For example, in the configuration file, add two ports under the configuration tab: <config-update-begintime>2009- 11-4 01: 30: 00</config-update-begintime>
<config-update-continuetime>2</ config-update-continuetime > 更新时长标签 config-update-continuetime的单位是小时, 可以为小数。 步骤 S902: 对等节点 A启动 (例如, 上电、 加载程序、 发现配置服务 器地址等); 步骤 S903 : 对等节点 A以 HTTP GET方式从配置服务器上获取主配置 信息, 此处需要在原有的 URL后附加一个参数标识(例如 config-flag=l )是 主配置;。 步 4聚 S904: 配置 艮务器返回 XML主配置文件; 步骤 S905 : 对等节点 A解析获得的 XML文件, 用其配置信息更新本地 主配置; 步骤 S906: 对等节点 A以 HTTP GET方式从配置服务器上获取备用配 置信息, 此处需要在原有的 URL后附加一个参数标识 (例如 config-flag=2 ) 是备配置; 步骤 S907: 配置服务器返回 XML备用配置文件, 格式同主配置文件; 步骤 S908: 对等节点 A解析获得的 XML文件, 用其配置信息更新本地 备用配置; 步骤 S909: 对等节点 A执行加入对等网络的其余流程。 并且, 在步骤 908之后, 对等节点 A 居获取的备用配置信息中配置的 启用时间参数, 确定该备用配置的启用时间, 在该启用时间到达时, 对等节 点 A进行主备配置倒换, 切换到备用配置。 此外, 如果配置艮务器上的主配置比备配置新, 则启动节点可以只取主 配置, 而不取备用配置。 实施例三 本实施例对节点间配置同步的流程进行描述。 由于整个网络的新配置是在一个时间段内启用, 因此, 在此时间段内就 存在节点间的配置不一致的情况。 但是在某些情况下, 交互消息的节点之间 的配置必须是一致的, 否则会引起错误。 在这种情况下, 使用旧配置的节点 就需要与对方同步新配置。 在本实施例中, 假设节点 B使用旧配置, 而节点 A使用新配置, 节点 B 向节点 A发送请求消息, 则节点 B需要从节点 A同步新配置。 图 10是才艮据 本发明实施例的 RELOAD对等网络中对节点间配置同步的流程示意图, 如 图 10所示, 该流程主要包括以下步 4聚: 步骤 S 101: 对等节点 B向对等节点 A发送请求消息; 具体应用中, 该请求消息可以是 RELOAD任何消息 (例如, 路由维护 消息和业务数据维护消息等, 其中, 该请求消息转发头中均携带节点 B正在 使用的配置 (即主配置) 序列号)。 步骤 S 102〜S 103: 对等节点 A比较本地主配置标识与请求消息中的配置 序列号, 发现本地主配置比节点 B新; 步骤 S 104 : 对等节点 A 向对等节点 B 发送错误提示 (例如, 返回 Error Config Too Old , 表示 B为旧配置); 步骤 S 105 : 对等节点 A通过配置更新消息向对等节点 B发送自己的主 配置; 步骤 S 106: 对等节点 B接收到节点 A的配置更新消息后, 检查其中的 配置序列号, 若比本地配置序列号新或等于 Oxfflff (表示强制更新), 则用其 更新本地主配置; 步 4聚 S 107: 对等节点 B向节点 A返回更新响应。 从以上的描述中, 可以看出, 在本发明实施例中, 在更新配置信息时, 通过在配置中设置启用时间参数, 使得对等节点在获取配置信息后, 通过配 置中的启用时间参数计算本节点新配置的实际启用时间,从而使得 RELOAD 对等网络中的各个节点启用新配置的时间分散分布在配置指定的时间段内, 从而解决了由于在业务高峰期启用新的配置而导致系统运行故障的问题, 进 而达到了保证系统正常运行的效果。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 <config-update-continuetime>2</ config-update-continuetime > The update time tag config-update-continuetime is in hours and can be a decimal. Step S902: The peer node A is started (for example, powering on, loading program, discovering the configuration server address, etc.); Step S903: the peer node A obtains the main configuration information from the configuration server by using the HTTP GET method, where the original configuration information needs to be A parameter identifier (such as config-flag=l) appended to the URL is the primary configuration; Step 4: S904: The configuration server returns an XML main configuration file; Step S905: the peer node A parses the obtained XML file, and updates the local main configuration with its configuration information; Step S906: Peer node A configures by HTTP GET Obtain the alternate configuration information on the server. Here, you need to append a parameter identifier to the original URL (for example, config-flag=2) Step S907: The configuration server returns an XML backup configuration file in the same format as the main configuration file; Step S908: The peer node A parses the obtained XML file, and updates the local standby configuration with the configuration information; Step S909: Peer node A Perform the rest of the process of joining the peer-to-peer network. And after the step 908, the activation time parameter configured in the standby configuration information obtained by the peer node A determines the activation time of the standby configuration. When the activation time arrives, the peer node A performs the active/standby configuration switching, and the switching is performed. Go to the alternate configuration. In addition, if the primary configuration on the configuration server is newer than the standby configuration, the initiating node can take only the primary configuration instead of the alternate configuration. Embodiment 3 This embodiment describes a procedure for configuring synchronization between nodes. Since the new configuration of the entire network is enabled within a period of time, there is a situation in which the configuration between the nodes is inconsistent during this time period. However, in some cases, the configuration between the nodes of the interactive message must be consistent, otherwise it will cause an error. In this case, the node with the old configuration needs to synchronize the new configuration with the other party. In this embodiment, assuming that Node B uses the old configuration and Node A uses the new configuration, and Node B sends a request message to Node A, Node B needs to synchronize the new configuration from Node A. FIG. 10 is a schematic diagram of a process for configuring synchronization between nodes in a RELOAD peer-to-peer network according to an embodiment of the present invention. As shown in FIG. 10, the process mainly includes the following steps: Step S101: Peer-to-peer B The node A sends a request message. In a specific application, the request message may be any message of the RELOAD (for example, a route maintenance message and a service data maintenance message, etc., wherein the request message forwarding header carries the configuration that the node B is using (ie, Main configuration) Serial number). Steps S102 to S103: The peer node A compares the configuration serial number in the local primary configuration identifier with the request message, and finds that the local primary configuration is newer than the node B; Step S104: The peer node A sends an error message to the peer node B (for example, returns Error Config Too Old, indicating that B is the old configuration); Step S105: the peer node A sends a message to the peer node B through the configuration update message. Step S106: After receiving the configuration update message of the node A, the peer node B checks the configuration serial number therein, and if it is newer than the local configuration serial number or equals Oxfflff (indicating forced update), it is updated with Local master configuration; Step 4 S S 107: Peer Node B returns an update response to Node A. From the above description, it can be seen that, in the embodiment of the present invention, when the configuration information is updated, by setting the enable time parameter in the configuration, the peer node is calculated by using the enable time parameter in the configuration after acquiring the configuration information. The actual activation time of the new configuration of the node, so that the time of each node in the RELOAD peering network to enable the new configuration is distributed within the specified time period of the configuration, thereby solving the system operation caused by enabling the new configuration during the peak business period. The problem of failure, and thus achieve the effect of ensuring the normal operation of the system. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书  Claims
1. 一种资源定位和发现 RELOAD对等网络的对等节点配置的更新方法,其 特征在于, 所述方法包括: 对等节点获取配置服务器更新后的配置信息, 其中, 所述配置信息 携带启用时间参数; A resource location locating and a method for updating a peer node configuration of a RELOAD peer-to-peer network, wherein the method includes: the peer node acquires configuration information after the configuration server is updated, where the configuration information carries the configuration information. Time parameter
所述对等节点根据所述启用时间参数, 确定所述配置信息的启用时 间;  Determining, by the peer node, an activation time of the configuration information according to the activation time parameter;
在所述启用时间到达时, 所述对等节点利用所述配置信息更新本地 的配置。  When the enable time arrives, the peer node updates the local configuration with the configuration information.
2. 根据权利要求 1所述的方法, 其特征在于, 所述启用时间参数指示所述 配置信息启用的起始时间, 或指示所述配置信息启用的时间段。 2. The method according to claim 1, wherein the enable time parameter indicates a start time when the configuration information is enabled, or a time period indicating that the configuration information is enabled.
3. 根据权利要求 2所述的方法, 其特征在于, 如果所述启用时间参数指示 启用的时间段, 则所述启用时间参数包括: 启用的起始时间和时长, 或, 启用的起始时间和启用的结束时间。 3. The method according to claim 2, wherein if the enable time parameter indicates an enabled time period, the enable time parameter comprises: an enabled start time and duration, or an enabled start time And the end time of the enable.
4. 根据权利要求 3所述的方法, 其特征在于, 所述对等节点确定所述配置 信息的启用时间包括: The method according to claim 3, wherein the determining, by the peer node, the activation time of the configuration information comprises:
所述对等节点才艮据以下公式确定所述配置信息的启动时间 t:  The peer node determines the startup time t of the configuration information according to the following formula:
t = t。 + offset , 其中, t。为所述启用的起始时间, offset大于等于 0, 为所述对等节点启用所述配置参数的偏移。  t = t. + offset , where t. For the enabled start time, offset is greater than or equal to 0, and the offset of the configuration parameter is enabled for the peer node.
5. 根据权利要求 4所述的方法, 其特征在于, 按照以下方式之一确定所述 offset: 5. The method according to claim 4, wherein the offset is determined in one of the following ways:
取 0至所述时长之间的随机数, 将所述随机数作为所述 offset; 取 0至预设数值之间的随机数,将所述随机数除以所述时长后取余, 将取余的结果作为所述 offset , 其中, 所述预设数值为所述时长与所述对 等节点的节点标识之和;  Taking 0 to a random number between the durations, taking the random number as the offset; taking 0 to a random number between preset values, dividing the random number by the duration, and taking the remainder, The remaining result is the offset, wherein the preset value is a sum of the duration and a node identifier of the peer node;
取所述对等节点的节点标识进行哈希运算后除以所述时长后取余, 将取余的结果作为所述 offset。 根据权利要求 2所述的方法, 其特征在于, 如果所述启用时间参数指示 启用的时间段, 所述对等节点确定所述配置信息的启用时间包括: 所述对等节点在所述启用时间参数指示的所述时间段内, 根据其系 统资源的使用情况, 确定所述启用时间。 根据权利要求 1至 6中任一项所述的方法, 其特征在于, Taking the node identifier of the peer node, performing a hash operation, dividing by the duration, and taking the remainder, and taking the result of the redundancy as the offset. The method according to claim 2, wherein, if the enable time parameter indicates an enabled time period, the peer node determines that the activation time of the configuration information comprises: the peer node is at the enable time Within the time period indicated by the parameter, the activation time is determined according to the usage of its system resources. The method according to any one of claims 1 to 6, characterized in that
在所述对等节点获取配置服务器更新后的配置信息之前, 所述方法 还包括:  Before the peer node obtains the configuration information after the server is updated, the method further includes:
更新所述配置服务器的备用配置的配置信息, 设定启动所述配置信 息的所述启用时间参数;  Updating configuration information of the alternate configuration of the configuration server, and setting the activation time parameter for starting the configuration information;
则在所述启用时间参数指示的起始时间到达或所述启用时间参数指 示的时间段到达时, 所述方法还包括:  Then, when the start time indicated by the enable time parameter is reached or the time period indicated by the enable time parameter arrives, the method further includes:
所述配置服务器切换到备用配置, 启用更新后的所述配置信息。 根据权利要求 1至 6中任一项所述的方法, 其特征在于, 对等节点获取 配置 艮务器更新后的配置信息包括以下之一:  The configuration server switches to the alternate configuration, and the updated configuration information is enabled. The method according to any one of claims 1 to 6, wherein the peer node obtains configuration information after the configuration server is updated, including one of the following:
所述对等节点定时从所述配置服务器获取所述配置信息; 所述 RELOAD 对等网络的引导节点定时从所述配置服务器获取所 述配置信息, 并在所述 RELOAD对等网络中发布, 所述对等节点获取所 述引导节点发布的所述配置信息;  The peer node periodically acquires the configuration information from the configuration server; the boot node of the RELOAD peer network periodically acquires the configuration information from the configuration server, and issues the configuration information in the RELOAD peer-to-peer network. The peer node acquires the configuration information issued by the boot node;
所述 RELOAD 对等网络的引导节点定时从所述配置服务器获取所 述配置信息, 所述对等节点通过与所述引导节点的交互消息, 获取所述 配置信息。 才艮据权利要求 1 至 6 中任一项所述的方法, 其特征在于, 对于所述 RELOAD对等网络的所有节点, 所述启用时间参数相同, 或者, 对于所 述 RELOAD对等网络中的各个节点, 所述启用时间参数不完成相同。 一种 RELOAD对等网络的对等节点, 其特征在于, 包括:  The boot node of the RELOAD peer-to-peer network obtains the configuration information from the configuration server, and the peer node obtains the configuration information through an interaction message with the boot node. The method according to any one of claims 1 to 6, wherein the activation time parameters are the same for all nodes of the RELOAD peer-to-peer network, or for the RELOAD peer-to-peer network For each node, the enable time parameters are not the same. A peer node of a RELOAD peer-to-peer network, characterized by comprising:
获取模块, 用于获取配置服务器更新后的配置信息, 其中, 所述配 置信息中携带有所述配置信息的启用时间参数;  An obtaining module, configured to obtain configuration information after the configuration server is updated, where the configuration information carries an activation time parameter of the configuration information;
确定模块, 用于根据所述配置信息中携带的所述启用时间参数, 确 定所述配置信息的启用时间; 执行模块, 用于在所述启用时间到达时, 利用所述配置信息更新所 述对等节点的本地配置。 a determining module, configured to determine, according to the activation time parameter carried in the configuration information, an activation time of the configuration information; And an execution module, configured to update the local configuration of the peer node by using the configuration information when the activation time arrives.
11. 一种 RELOAD对等网络的对等节点配置的更新系统,其特征在于,包括: 配置服务器, 用于存储更新后的配置信息, 其中, 所述配置信息中 指定了所述配置信息的启用时间参数; An update system for a peer-to-peer node configuration of a RELOAD peer-to-peer network, comprising: a configuration server, configured to store updated configuration information, wherein the configuration information specifies that the configuration information is enabled Time parameter
对等节点, 用于获取所述配置服务器存储的所述配置信息, 并根据 所述启用时间参数确定本地启用所述配置信息的启用时间, 在所述启用 时间到达时, 利用所述配置信息更新本地的配置。  a peer node, configured to obtain the configuration information stored by the configuration server, and determine, according to the activation time parameter, an activation time of locally enabling the configuration information, and when the activation time arrives, update by using the configuration information Local configuration.
12. 根据权利要求 11所述的系统, 其特征在于, 所述启用时间参数包括: 启 用所述配置信息的起始时间, 或, 启用所述配置信息的时间段; 所述配 置服务器还用于在启用所述配置信息的起始时间或时间段内, 在本地启 用更新后的所述配置信息。 The system according to claim 11, wherein the enabling time parameter comprises: a start time of enabling the configuration information, or a time period in which the configuration information is enabled; the configuration server is further configured to: The updated configuration information is locally enabled during the start time or time period in which the configuration information is enabled.
13. 根据权利要求 11所述的系统, 其特征在于, 所述系统还包括: The system according to claim 11, wherein the system further comprises:
引导节点, 用于从所述配置服务器获取所述配置信息, 并将所述配 置信息发送给所述对等节点。  And a guiding node, configured to acquire the configuration information from the configuration server, and send the configuration information to the peer node.
PCT/CN2010/080275 2010-01-05 2010-12-24 Peer node of resource locate and discovery peer to peer network and configuration update method and system thereof WO2011082634A1 (en)

Applications Claiming Priority (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
CN201010003059.8 2010-01-05

Publications (1)

Publication Number Publication Date
WO2011082634A1 true WO2011082634A1 (en) 2011-07-14

Family

ID=44217012

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Cited By (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

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008050648A1 (en) * 2006-10-17 2008-05-02 Tokyo Electron Limited Holding member for inspection, inspecting device, and inspecting method
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
CN101051928B (en) * 2006-04-07 2012-07-04 华为技术有限公司 Equipment configuration method in digital user line connection net

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008050648A1 (en) * 2006-10-17 2008-05-02 Tokyo Electron Limited Holding member for inspection, inspecting device, and inspecting method
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 (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

Also Published As

Publication number Publication date
CN102118422A (en) 2011-07-06
CN102118422B (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN102118263B (en) Method and system for distribution of configuration information
US10530847B2 (en) Virtual application delivery chassis system
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
CN108307198B (en) Flow service node scheduling method and device and scheduling node
JP2005287045A (en) Method for discovery of device connected to ip network and device to carry out the method
EP2406936A2 (en) Methods and apparatus for merging peer-to-peer overlay networks
WO2010127618A1 (en) System and method for implementing streaming media content service
WO2011082634A1 (en) Peer node of resource locate and discovery peer to peer network and configuration update method and system thereof
WO2009117946A1 (en) Main-spare realizing method for dispatch servers and dispatch server
JP4635615B2 (en) Information processing apparatus, system, data synchronization method, and program
Vashishth et al. Addressing challenges in browser based P2P content sharing framework using WebRTC
Voulgaris et al. Hybrid dissemination: Adding determinism to probabilistic multicasting in large-scale p2p systems
WO2011160549A1 (en) Electronic program guide system and file downloading method
AU2013386210B2 (en) Method for network change tolerant service discovery in a computer network
WO2011082637A1 (en) Peer to peer network and peer node restarting method
JP5440574B2 (en) Node device, information communication method, and program
US8661080B2 (en) Propagating changes in topic subscription status of processes in an overlay network
Schildt et al. Free-riding the BitTorrent DHT to improve DTN connectivity
JP4952276B2 (en) Distributed data management system and method
WO2017193692A1 (en) Method and apparatus for processing multicast information
WO2011060702A1 (en) Peer-to-peer overlay network, service content storage method and service content download method
Shih et al. Service recovery for large scale distributed publish and subscription services for cyber-physical systems and disaster management
JP2017073089A (en) Data distribution program, data distribution method, information processing apparatus, and information processing system
Hoong et al. A Super-Peer based P2P Live Media Streaming System
JP2013178609A (en) Node device, information communication system, upload method and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10841977

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10841977

Country of ref document: EP

Kind code of ref document: A1