WO2011109986A1 - Method, system and equipment for generating node identity - Google Patents

Method, system and equipment for generating node identity Download PDF

Info

Publication number
WO2011109986A1
WO2011109986A1 PCT/CN2010/075485 CN2010075485W WO2011109986A1 WO 2011109986 A1 WO2011109986 A1 WO 2011109986A1 CN 2010075485 W CN2010075485 W CN 2010075485W WO 2011109986 A1 WO2011109986 A1 WO 2011109986A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
load weight
identifier
weight parameter
new
Prior art date
Application number
PCT/CN2010/075485
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 华为技术有限公司
Priority to PCT/CN2010/075485 priority Critical patent/WO2011109986A1/en
Priority to CN201080001864.5A priority patent/CN102369749B/en
Publication of WO2011109986A1 publication Critical patent/WO2011109986A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/265Network addressing or numbering for mobility support for initial activation of new user

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, system, and device for generating a node identifier. Background technique
  • each entity such as a Mobility Management Entity (Mobility Management Entity,
  • the node identifier of the GPRS Serving GPRS Support Node is ⁇ MCC> ⁇ MNC> ⁇ LAC> ⁇ RAC> ⁇ NRI>, where ⁇ LAC> ⁇ RAC> defines the location information of the area, and ⁇ NRI> is the node. A unique identifier within a defined area.
  • the node identifier of the new node is manually configured. This configuration mode is inefficient, and the node identification may be incorrectly configured due to human error, thereby affecting the entire network. normal operation.
  • the embodiment of the invention provides a method, a system and a device for generating a node identifier, which simplifies the configuration of the node identifier.
  • the first policy includes: the new node identifier is after the node identifier of the first node Node ID for a specific distance; or,
  • An embodiment of the present invention provides another method for generating a node identifier, including:
  • the status information includes status information of at least one node within a range of available address spaces in which the new node identifier of the newly joined node is located; according to the first policy and the status information Generating at least one new node identifier; the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
  • Receiving a join request message of the newly joined node determining a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node; according to the second policy and at least two hashes
  • the function calculates an alternate node identifier of the at least two candidate nodes, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the hash calculation hash corresponding to the node keyword of the newly joined node The sum of values;
  • the node identifier of the candidate node corresponding to the third node is used as the new node identifier of the newly joined node.
  • a determining unit configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located;
  • a state obtaining unit configured to acquire state information of at least one node in the available address space range
  • a first identifier generating unit configured to generate at least one new node identifier according to the first policy and the state information;
  • the first policy includes: the new node identifier is a node identifier of a specific distance after the first node, and the Sending the new node identifier to the new joining node; or, for sending the status information to the new joining node, so that the newly joining node generates at least one new node identifier according to the status information and the first policy.
  • Another node device includes: a sending unit, configured to send a join request message of the newly joined node;
  • a status receiving unit configured to receive status information returned according to the join request message, where the status information includes status information of at least one node within a range of available address spaces in which the new node identifier of the newly joined node is located;
  • a second identifier generating unit configured to generate at least one new node identifier according to the first policy and the state information; the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
  • the embodiment of the invention provides another node device, including:
  • a receiving determining unit configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node;
  • An alternative calculation unit configured to calculate an alternate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is the available address space range The starting point, the hash corresponding to the node keyword of the newly joined node, calculates the sum of the hash values;
  • a selecting unit configured to select a successor node of the at least two candidate nodes, a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as a third node, or a static load weight parameter and/or a dynamic load weight At least two successor nodes having larger parameters are used as the third node;
  • an identifier determining unit configured to use a node identifier of the candidate node corresponding to the third node as a new node identifier of the newly added node.
  • An embodiment of the present invention further provides a system for generating a node identifier, including: a network node and a newly added node;
  • the network node is configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located, and obtain state information of at least one node in the available address space range; Sending the status information to the newly joined node;
  • the new joining node is configured to send a join request message of the newly joined node; receive state information returned according to the join odd request message, and generate at least one new node identifier according to the first policy and the state information;
  • a policy includes: The new node is identified as a node identifier of a specific distance after the node identification of the first node.
  • the method for generating a node identifier in the embodiment of the present invention includes: receiving a join request of a newly joined node a message, determining a range of available address spaces in which the new node identifier of the newly joined node is located; and obtaining state information of at least one node in the available address space; finally generating at least one new node identifier according to the first policy and the state information, or The status information is sent to the newly joined node, so that the new joining node generates at least one new node identifier according to the state information and the first policy, where the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
  • the new join node After receiving the join request message, the new join node is configured with a certain distance after the first node existing in the network system by using the newly joined node and the existing node in the network system, so that the configuration of the new node identifier is not required. Human involvement simplifies the configuration process.
  • FIG. 1 is a flowchart of a method for generating a node identifier according to Embodiment 1 of the method of the present invention
  • FIG. 2 is a flowchart of a method for obtaining state information of a node in an available address space according to an embodiment of the method of the present invention
  • FIG. 3 is a flow chart of another method for obtaining state information of nodes in an available address space in an embodiment of the method of the present invention
  • FIG. 4 is a flow chart of another method for obtaining state information of nodes in an available address space in an embodiment of the method of the present invention.
  • FIG. 5 is a flowchart of a method for generating a node identifier according to Embodiment 2 of the method of the present invention
  • FIG. 6 is a flowchart of a method for generating a node identifier according to Embodiment 3 of the method of the present invention
  • FIG. 8 is a flowchart of a method for generating a node identifier according to Embodiment 5 of the method of the present invention
  • FIG. 9 is a flowchart of a method for generating a node identifier according to Embodiment 6 of the method of the present invention
  • FIG. 11 is a schematic structural diagram of another node device according to Embodiment 1 of the present invention
  • FIG. 12 is a schematic structural diagram of another node device according to Embodiment 1 of the present invention
  • FIG. 13 is another node provided in Embodiment 1 of the device of the present invention.
  • Schematic diagram of equipment structure 14 is a schematic structural diagram of a node device according to Embodiment 2 of the device of the present invention.
  • FIG. 15 is a schematic structural diagram of a node device according to Embodiment 3 of the device of the present invention.
  • a method for generating a node identifier is when a new node joins a network system, and a centralized management node of the node information in the centralized management network system, or an entry node that receives the join request message in the network system
  • the method of executing, as shown in FIG. 1 includes: Step 101: Receive a join request message of a newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located;
  • a new node When a new node joins the network system, it sends a join request message to the centralized management node or any node in the network system, that is, the ingress node, and may include at least one of the following information in the join request message: a network protocol of the newly joined node (IP) address, inherent load capacity, Media Access Control (MAC) address, and authentication authentication information;
  • IP network protocol of the newly joined node
  • MAC Media Access Control
  • the central management node or the ingress node After the central management node or the ingress node receives the join request message, it first determines the range of address spaces that may exist in the new node identifier of the newly joined node, that is, the available address space range. Specifically, the node of the same type as the newly joined node may be determined.
  • the range of the address space is the range of available address space, where the same type means that the functional attributes of the node are the same, as for the MME node, the same as the SGW node, the same as the PGW node, the same as the SGSN node, etc.; or, determine the network
  • the entire address space of the system or part of the address space in the entire address space is a range of available address spaces.
  • the node that manages the node information in the network system can directly read the local storage; and for the ingress node, the ingress node needs to be new.
  • Step 102 Obtain status information of at least one node in the available address space; after performing step 102, step 103a may be performed, or step 103b may be performed;
  • the status information may include at least one of the following information: node identifier, node address information, Information such as inherent load capacity parameters, static or dynamic load weight parameters;
  • the execution entity of the method is a centralized management node, since the centralized management node is a node in the management network system, state information such as a node type, a node identifier, a node IP address, and the like of all nodes in the management network system are stored locally. When the state information of the at least one node is obtained, the reading may be directly performed in the local storage space. If the execution entity of the method is the ingress node, when the state information of the node is acquired, the node state information query message needs to be sent through the ingress node. The node being queried is obtained by requesting the state information of the queried node.
  • Step 103a Generate at least one new node identifier according to the first policy and status information, and send the new node identifier to the newly joined node.
  • the first strategy here includes: the new node identifier is a node identifier of a specific distance X after the node identifier of the first node, and the specific distance may be a distance preset locally or may be a successor node of the first node (hereinafter referred to as The difference between the second node and the node identifier of the first node; the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly joined node and the second node and the newly joined node The product of the ratio of the sum of the inherent load capacity parameters; the specific distance may also be any distance from the node identifier of the first node, the specific content of which does not constitute a limitation of the present invention.
  • X is added mainly on the node identifier of the first node, that is, the new node identifier is obtained.
  • the first node and the second node herein, and the first and second mentioned in the following documents do not describe the order associated with any step, but merely to illustrate that the two nodes are different.
  • the first node here is the node of at least one node acquired in step 102.
  • the first node is Q
  • the second node is P
  • the new node ID node ID of node Q + (node ID of node P - node ID of node Q) /2
  • node of new node ID node Q Identification + (node ID of node P - node ID of node Q) X newly added node inherent load capacity / (node P inherent load capacity + newly added node inherent load capacity).
  • the newly added node has a load capacity that can be obtained from the received join request message.
  • the new node identifier may be sent to the newly joined node to configure the node identifier of the complete form.
  • Step 103b Send the status information acquired in step 102 to the newly joined node, so as to be new.
  • Join node #> generates at least one new node identifier according to the status information and the first policy.
  • the foregoing state information is configuration information for generating a new node identifier, including a node identifier of at least two nodes, or an inherent load capability parameter and a node identifier, and the newly added node generates the new node identifier according to the first policy. That is, it is consistent with the method in the above step 103a.
  • the embodiment of the present invention is applicable to the generation of a node identifier in a Public Land Mobile-Communication Network (PLMN).
  • PLMN Public Land Mobile-Communication Network
  • the complete form of the node identifier may adopt the following structure ⁇ 0 ⁇ 0 ⁇ node identifier>, which is implemented by the method. After the node identifier is formed, the complete node identifier can be configured through the structure, and the generated node identifier is an integer from 0 to N.
  • 0 ⁇ N is defined as the address space, and the size is determined by the network size.
  • Each address in the address space 0 ⁇ N forms an address space ring in a clockwise direction, and nodes in the network press the node.
  • the identifier values are distributed on the address space ring.
  • the nodes in the same PLMN can share the same address space, or different address spaces can be divided according to the difference of the area or node type.
  • the method for generating a node identifier in the embodiment of the present invention includes: when receiving a join request message of a newly joined node, determining a range of available address spaces in which the new node identifier of the newly joined node is located; and acquiring at least a range of available address spaces The state information of one node; finally, generating at least one new node identifier according to the first policy and the state information, or sending the state information to the newly joined node, so that the newly joining node generates at least one new node identifier according to the state information and the first policy, where
  • the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
  • the new join node After receiving the join request message, the new join node is configured with a certain distance after the first node existing in the network system by using the newly joined node and the existing node in the network system, so that the configuration of the new node identifier is not required. Human involvement simplifies the configuration process.
  • step A1 Compare the static load weight parameter and/or the dynamic load weight parameter of all nodes in the available address space range; after performing step A1, step B1 may be performed, or step C1 may be performed; where the static load weight parameter of the node is node The ratio of the responsible address space segment to its inherent load capacity; the dynamic load weight parameter of the node is the ratio of the current load condition of the node to its inherent load capacity. For a new node that has no current load, the dynamic load weight parameter is zero.
  • the address space segment responsible for the node is the difference between the node identifier of the node and the node identifier of the predecessor node, and in the address space of the network, the adjacent nodes are the precursor successor nodes, specifically, the node identifiers of the two adjacent nodes.
  • a small node is a predecessor node of a node that identifies a large node, and a node with a large node identification is a successor node of a node with a small node identifier. If it is a non-adjacent node, the node with the largest node ID is the subsequent node of the node with the smaller node ID.
  • each node identifies the intrinsic load capacity of the corresponding node as part of the load capacity of the device, and the proportion of the node is allocated according to the size of the address space that is responsible for the node corresponding to each node identifier, or by the operator. Direct allocation.
  • the second node is a node with a static load weight parameter and/or a dynamic load weight parameter
  • the first node is its precursor node
  • the static load weight parameter of the node indicates that the address space segment that the node is responsible for is relatively large, and the inherent load capacity is relatively small; and the dynamic load weight parameter of the node indicates that the current load rate of the node is large.
  • Configuring the node ID of the newly added node in the vicinity of these nodes can share some of the service capabilities of the node with a relatively large current load rate or a small intrinsic load capacity and a relatively large address, so that the load of each node in the configured network is more uniform. .
  • C1 Read status information of at least two nodes with a large static load weight parameter and/or a dynamic load weight parameter and corresponding predecessor nodes.
  • the second node is at least two nodes having a static load weight parameter and/or a dynamic load weight parameter
  • the first node is a corresponding predecessor node.
  • a number of node identifiers may be generated for the newly joined node, so that the service processing may be shared for several nodes in the network.
  • a port that can be set by the user may be provided in the device, and the user may use the device according to the device. And the actual situation of the current network is set.
  • step 102 when the foregoing step 102 is performed, the following steps may be implemented:
  • A2 calculating, by using at least two hash functions and the second policy, candidate node identifiers of the at least two candidate nodes, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the newly added node key The word corresponds to the hash to calculate the sum of the hash values; Assuming Start is the starting point of the available address space range, and End is the ending point of the available address space range, the candidate node identifier is Start + Hash ( key ), where the node key (Key ) can be the state information of the newly added node. , such as the IP address or MAC address or load parameter of the newly added node, can be obtained from the received join request message.
  • the hash function selected here is a hash function that can hash values to the [0,End-Start] interval of the same length as the available address space range, and such a hash function can Select multiple.
  • Hash key
  • hash functions By calculating Hash (key) through various hash functions, multiple hashes corresponding to the newly added node keywords can be used to calculate the hash value, and then at least one candidate node identifier can be obtained by the second strategy.
  • step B2 The static load weight parameter and/or the dynamic load weight parameter of the successor node of the at least two candidate nodes are compared; after step B2 is performed, step C2 may be performed, or step D2 may be performed;
  • C2 obtaining state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a predecessor node thereof;
  • the second node is a node with at least two candidate nodes, a static load weight parameter and/or a node with the largest dynamic load weight parameter, and the first node is its predecessor node;
  • D2 Obtain status information of at least two nodes with a static load weight parameter and/or a dynamic load weight parameter and corresponding predecessor nodes. At this time, the second node has a static load weight parameter and/or a dynamic load weight parameter. At least two nodes, the first node is a corresponding predecessor node.
  • step 102 when the foregoing step 102 is performed, the following steps may be implemented:
  • A3 Calculating the cut-in node identifier of the cut-in node by using a hash function and the second policy, where the second strategy includes: the cut-in node identifier is a starting point of the available address space range, and the hash corresponding to the newly added node keyword is used to calculate the hash value.
  • the hand-in node calculated here is not an existing one in the actual node, but the result calculated by the second policy, which is used as the starting point for selecting a node within the available address space.
  • the node corresponding to the node identifier calculated by the second policy is used as the entry point, ⁇ sets Start as the starting point of the available address space range, and End is the ending point of the available address space range, and the cut-in node identifier is Start. + Hash ( key ), where the node keyword Key is the newly added node
  • the status information such as the IP address or MAC address or load parameter of the newly added node, can be obtained from the received join request message.
  • the hash function selected here is a hash function that can hash the value to the [0, End-Start] interval of the same length as the range of available address spaces.
  • a Hash (key) of a function can be used to obtain a hash value corresponding to the newly added node keyword, and then a second node can obtain a hand-in node identifier.
  • step B3 Comparing the available load address space, the static load weight parameter and/or the dynamic load weight parameter of the successor node of the node and its subsequent nodes; after performing step B3, step C3 may be performed, or step D3 may be performed;
  • C3 obtaining state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a predecessor node thereof;
  • the second node is a node of the cut-in node and all subsequent nodes, the node with the largest static load weight parameter and/or the dynamic load weight parameter, and the first node is its predecessor node;
  • D3 obtaining state information of at least two nodes with a static load weight parameter and/or a dynamic load weight parameter and corresponding predecessor nodes;
  • the second node is at least two nodes having a static load weight parameter and/or a dynamic load weight parameter
  • the first node is a corresponding predecessor node.
  • a method for generating a node identifier is a node identifier generation method performed by the newly joined node when a node newly joins the network system, and the structure diagram is as shown in FIG. 5, including:
  • Step 201 The new joining node sends a join request message of the newly joined node.
  • join request message When a new node joins the network system, it sends a join request message to the centralized management node or any node in the network system, that is, the ingress node.
  • the join request message may include the IP address of the newly joined node, the inherent load capacity, and the MAC. Information such as address and authentication information;
  • the centralized management node or the ingress node After receiving the join request message, the centralized management node or the ingress node first determines the range of address spaces that may exist in the new node identifier of the newly joined node, that is, the available address space range, and obtains state information of at least one node in the available address space range, For example, the node identifier of at least one node, or the status information of the intrinsic load capability parameter and the node identifier of at least two nodes.
  • the specific method for determining and obtaining is as shown in the first embodiment of the method, and details are not described herein again.
  • Step 202 The new joining node receives status information returned according to the join request message.
  • the status information includes the available address space in which the new node identifier of the newly joined node is located, and the status information of at least one node, such as a node identifier, an inherent load capability parameter, and the like;
  • the available address space ranges specifically: the address space range of the node of the same type as the newly joined node is the available address space range; or, the entire address space of the network system or the partial address space in the entire address space.
  • Step 203 The new joining node generates at least one new node identifier according to the first policy and the state information.
  • the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node, where the specific distance may be a local preset distance, or may be a node identifier of the second node and the first node.
  • Half of the difference can also be the product of the difference between the node identification of the second node and the first node, and the ratio of the inherent load capacity parameter of the newly added node to the sum of the inherent load capacity parameters of the second node and the newly added node, For any other distance.
  • the newly joined node configures the complete form of the new node identifier after generating the new node identifier, as in
  • the complete form of the node identifier of the PLMN is ⁇ MCC> ⁇ MNC> ⁇ node identification>, and the generated new node is identified on the central management node.
  • a method for generating a node identifier is when a new node joins a network system, and is executed by a centralized management node of a node in the centralized management network system, or an entry node that receives a join request message in the network system.
  • the method, the flow chart shown in Figure 6, includes:
  • Step 301 Receive a join request message of a newly joined node, where the join request message includes a node keyword of the newly added node;
  • join request message When a new node joins the network system, it sends a join request message to the centralized management node or any node in the network system, that is, the ingress node.
  • the join request message may include the IP address, intrinsic load capacity, and MAC address of the newly joined node. And authentication information, etc.;
  • the node keyword of the newly added node is the status information of the newly added node, such as the IP address of the newly added node, or the inherent load capacity, or the MAC address and the authentication information.
  • Step 302 Determine a range of available address spaces in which the new node identifier of the newly joined node is located.
  • the centralized management node or the ingress node After receiving the join request message, the centralized management node or the ingress node first determines a range of address spaces that may exist in the new node identifier of the newly joined node, that is, Available address space range, specifically, can be The address space range of the node of the same type as the newly added node is the range of available address space.
  • the same type means that the function attributes of the node are the same, as for the MME node, the same as the SGW node, and the same as the PGW node.
  • SGSN node or the like or, determine that the entire address space of the network system or a part of the address space in the entire address space is a range of available address spaces.
  • Step 303 Calculate an candidate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the newly added node key The word corresponds to the hash to calculate the sum of the hash values;
  • the candidate node identifier is Start + Hash ( key ), where the node key Key can be the IP address or MAC of the newly joined node. Address or load parameters, etc., can be obtained from the received join request message.
  • the hash function selected here is a hash function that can hash the value to the [0, End-Start] interval of the same length as the range of available address spaces.
  • Step 304 Select a successor node with at least two candidate nodes, a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as the third node, or a static load weight parameter and/or a dynamic load weight parameter. At least two successor nodes as the third node;
  • Step 305 The node identifier of the candidate node corresponding to the third node is used as the new node identifier of the newly added node. After the new node identifier is determined, the new node identifier may be sent to the newly joined node for configuration.
  • the method for generating a node identifier in this embodiment includes: determining, after receiving the join request message, a range of available address spaces; calculating an candidate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where
  • the second strategy includes: the candidate node identifier is a starting point of the available address space range, and the sum of the hash values is calculated corresponding to the node keyword of the newly joined node; the static load of the succeeding nodes of the at least two candidate nodes
  • the candidate node identifier corresponding to the successor node with the largest or larger weight parameter and/or dynamic load weight parameter is used as the new node identifier.
  • the new join node After receiving the join request message, the new join node is configured in front of the existing third node in the network system by the cooperation of the newly added node and the existing node in the network system, so that the configuration of the new node identifier does not need to be manually participated. , simplifies the configuration process.
  • a method for generating a node identifier includes: Step 401: The newly added node obtains the central management node address, which can be obtained by static configuration of the operator or by querying other network elements. The newly added node sends a join request message to the centralized management node, and includes the newly added node in the join request message. IP address, MAC address, inherent load capacity, and authentication information.
  • Step 402 The centralized management node sends the information of the newly added node to the authentication server to complete the security authentication of the newly added node. If the authentication succeeds, step 403 is performed. If the authentication fails, the new node identifier is not configured.
  • Step 403 The centralized management node determines a range of address spaces in which the new node identifier of the newly joined node may be located, that is, an available address space range, and may determine an address space range in which the same type of network element as the newly joined node is located, or the entire network system. The address space, or part of the address space in the entire address space.
  • Step 404 After the centralized management node obtains the configuration information of the newly added node, the new node identifier may be generated, and the configuration information may be carried in the join response response message in step 405 and sent to the newly joined node, so that the newly added node generates a new one. Node ID.
  • the configuration information of the newly added node is the parameter required for generating the new node identifier, which is specific to the state information of at least two nodes in the available address space, wherein the state information includes: a node identifier, or an inherent load capability parameter and a node identifier,
  • the status information may also include the current load parameters of the node and the like.
  • At least two nodes may be the node with the largest static and/or dynamic load weight parameter in the available address space range and its predecessor node, assuming that the node is node P, and its predecessor node is node Q; At least two nodes with a large static and/or dynamic load weight parameter and corresponding predecessor nodes assume that a node with a larger parameter is a node P, and a precursor node thereof is a node Q.
  • the configuration information that the centralized management node can obtain locally includes: node identifiers of nodes P and Q; or node identifiers of nodes P and Q, and the inherent load capacity of the node P.
  • Step 405 The central management node sends a join request response message to the newly joined node. If the new node identifier is generated in step 404, the new node identifier is carried; if only the configuration is obtained in step 404 Information, you can carry configuration information.
  • the new joining node receives the join request response message, including the configuration information, and then generates a new node identifier according to the method in the above step 404, and can report the generated new node identifier to the centralized management node.
  • the centralized management node is not only responsible for generating the newly added node identifier or obtaining configuration information; but also for storing state information of all nodes in the network system, such as node type, node identifier, node IP address, and node inherent. Load capacity parameters and static/dynamic load weight parameters.
  • a method for generating a node identifier includes:
  • Step 501 The newly added node obtains the ingress node address, which can be obtained by static configuration of the operator or by querying other network elements, and any node in the network system can be an ingress node; the newly joining node sends a join request message to the ingress node.
  • the join request message includes the IP address, MAC address, inherent load capacity, and authentication authentication information of the newly joined node.
  • Step 502 The ingress node sends the information of the newly added node to the authentication server to complete the security authentication of the newly added node. If the authentication is passed, step 503 is performed. If the authentication fails, the new node identifier is not configured.
  • Step 503 The ingress node determines a range of address spaces in which the new node identifier of the newly joined node may be located, that is, an available address space range, and may determine an address space range in which the network element of the same type as the newly joined node is located, or an entire address of the network system. Space, or part of the address space in the entire address space.
  • Step 504 The ingress node calculates the candidate node identifiers of the multiple candidate nodes by using multiple hash functions.
  • the key of the newly added node is obtained from the join request message, and multiple candidate node identifiers are calculated by using the second policy.
  • Select the new node ID Start + Hash ( key ), where the Start value is the starting point of the address space range and End is the end point of the available address space range.
  • the Hash function selected here is a Hash function that can hash the value to the [0, End-Start] interval of the same length as the alternate address space.
  • Step 505 The ingress node sends a node status information query message to a successor node of the multiple candidate nodes to obtain status information of the multiple succeeding nodes.
  • Step 506 The subsequent node performs a query of the status of the neighbor node, and returns a status query response message to the ingress node, where the response message may include: a node identifier of the successor node and the corresponding predecessor node, a static load weight parameter, an inherent load capacity, and a current Information such as load conditions.
  • Step 507 After obtaining the configuration information of the newly added node, the ingress node may generate a new node identifier according to the received multiple status query response message, or may send the status information in the join request response message sent in step 508 to the new node. Join the node, so that the newly joined node generates a new node identifier by itself; or the ingress node performs step 509 according to the received multiple status query response messages.
  • the configuration information of the newly added node is the parameter required for generating the new node identifier, which is specific to the state information of at least two nodes in the available address space, wherein the state information includes: a node identifier, or an inherent load capability parameter and a node identifier,
  • the status information may also include the current load parameters of the node and the like.
  • the ingress node may obtain static load weight parameters and/or dynamic load weight parameters of the subsequent nodes according to the plurality of status query response messages, and compare, and obtain at least two nodes may be the successor nodes of the candidate nodes, static and / or the node with the largest dynamic load weight parameter and its precursor node, the node is node P, and the precursor node is node Q; or the successor parameters of these candidate nodes are static and/or dynamic load weight parameters.
  • the at least two nodes and the corresponding predecessor nodes are large, assuming that a node with a larger parameter is the node P and the precursor node is the node Q.
  • the configuration information acquired by the ingress node includes: node identifiers of nodes P and Q; or node identifiers of nodes P and Q, and the inherent load capacity of the node P.
  • Step 508 The ingress node sends a join response message to the new joining node. If the new node identifier is generated in step 507, the new node identifier is carried. If only the configuration information is obtained in step 507, the configuration information is carried.
  • the new joining node when the new joining node receives the join request response message, including the configuration information, the new node identifier is generated according to the method in step 507 above. Further, the newly added node may also send the generated node identifier to the centralized management node. .
  • Step 509 The ingress node selects a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as the third node, or a static load weight parameter and/or a dynamic load according to the status information in the returned multiple status query response message. At least two successor nodes with larger weight parameters as the first The node is identified as the new node identifier of the newly added node. After the new node identifier is determined, the new node identifier can be sent to the newly joined node for configuration.
  • a method for generating a node identifier which is shown in Figure 9, includes:
  • Step 601 The newly added node obtains the address of the ingress node, which can be obtained by static configuration of the operator or by querying other network elements, and any node in the network system can be an ingress node; the newly added node sends a join request message to the ingress node.
  • the keyword (Key) of the newly joined node such as an IP address, a MAC address, an inherent load capacity, and authentication authentication information, is included in the join request message.
  • Step 602 The ingress node sends the information of the newly added node to the authentication server to complete the security authentication of the newly added node. If the authentication succeeds, step 603 is performed. If the authentication fails, the new node identifier is not configured.
  • Step 603 The ingress node determines a range of address spaces in which the new node identifier of the newly joined node may be located, that is, an available address space range, and may determine an address space range in which the same type of network element as the newly joined node is located, or an entire address of the network system. Space, or part of the address space in the entire address space.
  • the Hash function selected here is a Hash function that can hash the value to the [0, End-Start] interval of the same length as the alternate address space.
  • Step 605 The ingress node sends a node status information query message to the successor node P1 of the cut-in node to obtain the status information of the successor node P1, and includes a search depth parameter M in the node status information query message, indicating that the node P1 searches backward.
  • the node identifiers of the M subsequent nodes do not exceed the available address space range; when M>0, the successor node P1 continues the node state query message to the successor node P2 of the node P1, including the search depth parameter being M - 1, and so on, It is not sent until the value of M is 0.
  • Step 606 The subsequent nodes assume that the node status information query message is received from the P1 to the PN, and the neighbor node status is queried, and the status query response message is returned to the ingress node, where the response message may include: the successor node and the corresponding The node ID of the precursor node, the static load weight parameter, the inherent load capacity, and the current load condition.
  • Step 607 The ingress node obtains a new joining section according to the received multiple status query response messages. After the configuration information of the point, the new node identifier may be generated, or the configuration information may be carried in the join request response message in step 608 and sent to the newly joined node, so that the newly joined node generates the new node identifier by itself.
  • the configuration information of the newly added node is the parameter required for generating the new node identifier, which is specific to the state information of at least two nodes in the available address space, wherein the state information includes: a node identifier, or an inherent load capability parameter and a node identifier,
  • the status information may also include the current load parameters of the node and the like.
  • the ingress node may obtain static load weight parameters and/or dynamic load weight parameters of the subsequent nodes from the plurality of status query response messages, and compare, and obtain at least two nodes may be within the available address space range, after the node is cut in Among the nodes, the node with the largest static and/or dynamic load weight parameter and its precursor node, assuming that the node is node P, and its precursor node is node Q; it can also be within the available address space, in the node after the node is switched in. At least two nodes with a large static and/or dynamic load weight parameter and corresponding predecessor nodes, a node having a larger parameter is a node P, and a precursor node thereof is a node Q. Then, the configuration information acquired by the ingress node includes: a node identifier of the nodes P and Q; or a node identifier of the nodes P and Q, and an inherent load capacity of the node P.
  • Step 608 The ingress node sends a join response message to the new joining node. If the new node identifier is generated in step 607, the new node identifier is carried. If only the configuration information is obtained in step 607, the configuration information is carried.
  • the new node identifier is generated according to the method in step 607 above. Further, the generated new node identifier may be sent to the centralized management node.
  • a node device the structure diagram is shown in Figure 10, including:
  • the determining unit 10 is configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located; When determining the range of available address spaces, the determining unit 10 specifically determines the address space range in which the node of the same type as the newly joined node is located, or the entire address space of the network system, or a part of the address space in the entire address space is the available address space. range.
  • the state obtaining unit 11 is configured to obtain state information of at least one node in the range of available address space determined by the determining unit 10, where the state information may include: a node identifier, an inherent load capability parameter, a current load parameter of the node, and the like;
  • the state obtaining unit 11 can directly read in the local storage space; if the node device is an ingress node, the state obtaining unit 11 needs to pass through the portal when acquiring the state information of the node.
  • the node sends the node status information query message to the queried node to obtain.
  • the first identifier generating unit 12 is configured to generate at least one new node identifier according to the state information acquired by the first policy and the state acquiring unit 11, and send the new node identifier to the new joining node.
  • the first policy includes: the new node identifier is a node identifier of a specific distance after the first node;
  • the status information acquired by the state obtaining unit 11 is sent to the newly joined node, so that the newly added node generates the at least one new node identifier according to the state information and the first policy.
  • the specific distance may be half of the difference between the node identifier of the second node and the first node; or may be the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly added node and the second node
  • the second node is a successor node of the first node.
  • the determining unit 10 receives the join request message of the newly joined node, determines the available address space range in which the new node identifier of the newly joined node is located, and obtains the available address space range by the state acquiring unit 11.
  • the status information of the at least one node in the first; the first first identifier generating unit 12 generates at least one new node identifier according to the first policy and the status information, or sends the status information to the newly joined node, so that the newly joined node is based on the status information and the first
  • the policy generates at least one new node identifier, where the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
  • the newly added node is configured at a certain distance after the first node existing in the network system, so that the configuration of the new node identifier is not required. Human participation, the configuration process is streamlined.
  • the foregoing state acquiring unit 11 may include:
  • the first parameter comparison unit 110 is configured to compare static load weight parameters and/or dynamic load weight parameters of all nodes in the available address space range after the determining unit 10 determines the available address space range;
  • the reading unit 111 is configured to read the static load weight parameter and/or the state information of the node with the largest dynamic load weight parameter and the precursor node of the first parameter comparison unit 110, where the first node is a static load weight parameter and And a predecessor node corresponding to the node with the largest dynamic load weight parameter; or at least two nodes and corresponding predecessors for reading the static load weight parameter and/or the dynamic load weight parameter that are compared by the first parameter comparison unit 110 State information of the node; the first node is a predecessor node corresponding to at least two nodes having a static load weight parameter and/or a dynamic load weight parameter.
  • the first identifier generating unit 12 After the reading unit 111 reads the status information, the first identifier generating unit 12 performs the generation of the new node identifier according to the first policy and the status information.
  • the foregoing state acquiring unit 11 may further include:
  • the candidate calculation unit 112 is configured to: after the determining unit 10 determines the available address space range, calculate the candidate node identifiers of the at least two candidate nodes by using at least two hash functions and the second policy, where the second policy includes: The node identifier is the starting point of the range of available address spaces, and the hash corresponding to the newly added node keyword is calculated as the sum of the hash values;
  • the second parameter comparison unit 113 is configured to compare the static load weight parameter and/or the dynamic load weight parameter of the successor node of the at least two candidate nodes calculated by the candidate calculation unit 112;
  • the first obtaining unit 114 is configured to retrieve the static load weight parameter and/or the state information of the node with the largest dynamic load weight parameter and the status of the precursor node that are compared by the second parameter comparing unit 113, and the first node is at least two devices. Among the successor nodes of the selected node, the static load weight parameter and/or the node with the largest dynamic load weight parameter correspond to its precursor node;
  • the first node is a static load weight parameter.
  • a predecessor node corresponding to at least two nodes having a large dynamic load weight parameter is
  • the first identifier generating unit 12 follows the first Policy and status information for the generation of new node IDs.
  • the foregoing state acquiring unit 11 may further include:
  • the cut-in calculation unit 115 is configured to calculate a cut-in node identifier of the cut-in node by using a hash function and a second policy after the determining unit 10 determines the available address space range, where the second policy includes: the cut-in node identifier is a range of available address space Starting point, the hash corresponding to the newly added node keyword is calculated as the sum of the hash values;
  • the third parameter comparison unit 116 is configured to compare the static load weight parameter and/or the dynamic load weight parameter of the successor node of the cut-in node and the successor node calculated by the calculation unit 115 within the available address space range;
  • the second obtaining unit 117 is configured to acquire the static load weight parameter and/or the state information of the node with the largest dynamic load weight parameter and the precursor node thereof, and the first node is at least one of the cut-in nodes. Among the consecutive subsequent nodes, the static load weight parameter and/or the predecessor node corresponding to the node with the largest dynamic load weight parameter;
  • the first node is a static load.
  • the at least two nodes corresponding to the weight parameter and/or the dynamic load weight parameter are corresponding to the precursor node.
  • the first identifier generating unit 12 After the second obtaining unit 117 acquires the status information, the first identifier generating unit 12 performs the generation of the new node identifier according to the first policy and the status information.
  • a node device includes:
  • the sending unit 20 is configured to send a join request message of the newly joined node
  • the status receiving unit 21 is configured to receive status information returned according to the join request message sent by the join sending unit 20, where the status information includes a range of available address spaces in which the new node identifier of the newly joined node is located, and status information of the at least one node, such as a node. Identification, current load capacity parameter node current load parameters, etc.;
  • the available address space ranges specifically: the address space range of the same type of node as the newly joined node is the available address space range; or, the entire address space of the network system or the entire address space Sub-address space.
  • the second identifier generating unit 22 is configured to generate at least one new node identifier according to the first policy and the state information received by the state receiving unit 21; the first policy includes: the new node identifier is a node at a specific distance after the node identifier of the first node Logo.
  • the specific distance may be half of the difference between the node identifier of the second node and the first node; the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly joined node with the second node and the new node
  • the product of the ratio of the sum of the nodes' inherent load capacity parameters can also be any other distance.
  • the join sending unit 20 sends the join request message
  • the state receiving unit 21 receives the returned state information
  • the second identifier generating unit 22 performs the generation of the new node identifier.
  • the new node joins the network system, by joining the sending unit 20, the state receiving unit 21, and the second identifier generating unit 22, the new node identifier can be configured without manual participation, which simplifies the configuration process.
  • a node device the structure diagram is shown in Figure 15, including:
  • the receiving determining unit 30 is configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node;
  • the available address space ranges specifically: the address space range of the node of the same type as the newly joined node is the available address space range; or, the entire address space of the network system or the partial address space in the entire address space.
  • the node keyword of the newly added node may be information such as the IP address, the inherent load capacity, the MAC address, and the authentication authentication information of the newly added node.
  • the candidate calculation unit 31 is configured to calculate an candidate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is an available address determined by the receiving determining unit 30 The starting point of the spatial range, corresponding to the node keyword of the newly joined node, hashes the sum of the hash values;
  • the selecting unit 32 is configured to select, in the successor node of the at least two candidate nodes calculated by the candidate calculating unit 31, the static load weight parameter and/or the successor node with the largest dynamic load weight parameter as the third node Point, or at least two successor nodes having a static load weight parameter and/or a dynamic load weight parameter as a third node;
  • the identifier determining unit 33 is configured to use the node identifier of the candidate node corresponding to the third node selected by the selecting unit 32 as the new node identifier of the newly joined node.
  • the receiving determining unit 30 determines the available address space range after receiving the join request message; the candidate calculating unit 31 calculates the at least two candidate nodes according to the second policy and the at least two hash functions.
  • An alternative node identifier where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the sum of the hash values is calculated corresponding to the node keyword of the newly joined node; the selecting unit 32 will at least two In the successor node of the selected node, the succeeding node with the largest or larger static load weight parameter and/or the dynamic load weight parameter is selected as the third node, and the identifier determining unit 33 determines the candidate node identifier corresponding to the third node as the new node identifier.
  • the new join node After receiving the join request message, the new join node is configured in front of the existing third node in the network system by the cooperation of the newly added node and the existing node in the network system, so that the configuration of the new node identifier does not need to be manually participated. , simplifies the configuration process.
  • a system for generating a node identifier comprising: a network node and a newly joined node, where: a network node, configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located; Status information of at least one node in the available address space; sending status information to the newly joined node;
  • the status information here includes: a node identifier, an inherent load capability parameter, a current load parameter of the node, and the like;
  • the new joining node configured to send a join request message of the newly joined node; receiving the status information returned according to the join request message, generating at least one new node identifier according to the first policy and the status information;
  • the first policy includes: the new node identifier is: The node identifier of a specific distance after the node of the first node is identified.
  • the specific distance may be half of the difference between the node identifier of the second node and the first node; or may be the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly joined node and the second node and The product of the ratio of the new node's inherent load capacity parameters; it can also be any other distance.
  • the node identifier generation method, system, and device receive the join request message of the newly joined node, determine the available address space range in which the new node identifier of the newly joined node is located, and obtain the available address space range. At least one node's state information; finally generating at least one new node identifier according to the first policy and the state information, or sending the state information to the newly joined node, so that the new joining node #> generates the at least one according to the state information and the first policy
  • the new node identifier, where the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
  • the new join node After receiving the join request message, the new join node is configured with a certain distance after the first node existing in the network system by using the newly joined node and the existing node in the network system, so that the configuration of the new node identifier is not required. Human involvement simplifies the configuration process.
  • the program may be executed by instructing related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include: a ROM, a RAM, a magnetic disk or an optical disk.

Abstract

A method, system and equipment for generating a node identity is disclosed in the present invention. Said method includes: receiving a join request message of a newly joining node; determining the available address space range which the new node identity of the newly joining node is in; obtaining the state information of at least one node in the available address space range, wherein the state information includes a node identity, or an inherent load capacity parameter and a node identity; generating at least one new node identity according to a first strategy and the state information, or sending the state information to the newly joining node so that the newly joining node can generate at least one new node identity according to the state information and the first strategy, wherein the first strategy includes that the new node identity is the node identity which has a specific distance behind the node identity of the first node. Said device includes a determining unit, a state-obtaining unit, and a first identity-generating unit. Said system includes a network node and the newly joining node. The generation of the new node identity of the newly joining node is implemented in the present invention.

Description

节点标识的生成方法、 系统及设备  Node identification generation method, system and device
技术领域 Technical field
本发明涉及通信技术领域, 特别涉及节点标识的生成方法、 系统及设备。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method, system, and device for generating a node identifier. Background technique
在网络系统中,每个实体如移动性管理网元(Mobility Management Entity, In a network system, each entity such as a Mobility Management Entity (Mobility Management Entity,
MME )、服务网关( Serving Gateway, SGW )、数据网关( PDN Gate Way, PGW ) 等都有自己的网元标识, 如节点标识 (Identity, ID ) 等。 The MME, the Serving Gateway (SGW), and the PDN Gate Way (PGW) all have their own NE identifiers, such as the node identifier (Identity, ID).
网络系统中不同类型的节点, 其节点标识的完整形式各不相同, 如 MME 的节点标识为 <GUMMEI> = <MCC><MNC><MME Group IDxMME Code>, 其中 <MCC>是移动国家号, 由三位数字组成; <MNC>是移动网号, 由两位数 字组成; <MME Group ID>是节点所在 MME组的标识, < MME Code >是节点 所在 MME组中的唯一标识。 而 GPRS服务网元( Serving GPRS Support Node, SGSN ) 的 节 点 标识 为 <MCC><MNC><LAC><RAC><NRI> , 其 中 <LAC><RAC>限定区域位置信息 , <NRI>是节点在限定的区域内的唯一标识。  Different types of nodes in the network system have different complete forms of node identifiers. For example, the node identifier of the MME is <GUMMEI> = <MCC><MNC><MME Group IDxMME Code>, where <MCC> is the mobile country number. It consists of three digits; <MNC> is the mobile network number, which consists of two digits; <MME Group ID> is the identifier of the MME group where the node is located, and <MME Code> is the unique identifier in the MME group where the node is located. The node identifier of the GPRS Serving GPRS Support Node (SGSN) is <MCC><MNC><LAC><RAC><NRI>, where <LAC><RAC> defines the location information of the area, and <NRI> is the node. A unique identifier within a defined area.
现有的网络系统中, 当新节点加入网络时,新节点的节点标识由人工手动 配置生成, 这种配置方式, 效率低下, 并且可能由于人为操作失误导致节点标 识配置错误, 从而影响整个网络的正常运行。  In the existing network system, when a new node joins the network, the node identifier of the new node is manually configured. This configuration mode is inefficient, and the node identification may be incorrectly configured due to human error, thereby affecting the entire network. normal operation.
发明内容 Summary of the invention
本发明实施例提供节点标识的生成方法、 系统及设备, 简化了节点标识的 配置。  The embodiment of the invention provides a method, a system and a device for generating a node identifier, which simplifies the configuration of the node identifier.
本发明实施例提供的一种节点标识的生成方法, 包括:  A method for generating a node identifier according to an embodiment of the present invention includes:
接收新加入节点的加入请求消息,确定所述新加入节点的新节点标识所在 的可用地址空间范围;  Receiving a join request message of the newly joined node, determining a range of available address spaces in which the new node identifier of the newly joined node is located;
获取所述可用地址空间范围内的至少一个节点的状态信息;  Obtaining state information of at least one node in the range of available address spaces;
按照第一策略及所述状态信息生成至少一个新节点标识,并将所述新节点 标识发送给所述新加入节点; 所述第一策略包括: 新节点标识为在第一节点的 节点标识后特定距离的节点标识; 或,  Generating at least one new node identifier according to the first policy and the state information, and sending the new node identifier to the new joining node; the first policy includes: the new node identifier is after the node identifier of the first node Node ID for a specific distance; or,
将所述状态信息发送给所述新加入节点,以便所述新加入节点根据所述状 态信息和第一策略生成至少一个新节点标识, 第一策略包括: 新节点标识为在 第一节点的节点标识后特定距离的节点标识。本发明实施例提供另一种节点标 识的生成方法, 包括: Transmitting the status information to the new joining node, so that the new joining node generates at least one new node identifier according to the status information and the first policy, where the first policy includes: the new node identifier is The node of the first node identifies the node identifier of a specific distance. An embodiment of the present invention provides another method for generating a node identifier, including:
发送新加入节点的加入请求消息;  Send a join request message for the newly joined node;
接收根据所述加入请求消息返回的状态信息,所述状态信息包括所述新加 入节点的新节点标识所在的可用地址空间范围内, 至少一个节点的状态信息; 按照第一策略及所述状态信息生成至少一个新节点标识;所述第一策略包 括: 新节点标识为在第一节点的节点标识后特定距离的节点标识。  Receiving status information returned according to the join request message, where the status information includes status information of at least one node within a range of available address spaces in which the new node identifier of the newly joined node is located; according to the first policy and the status information Generating at least one new node identifier; the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
本发明实施例提供的又一种节点标识生成方法, 包括:  Another method for generating a node identifier provided by the embodiment of the present invention includes:
接收新加入节点的加入请求消息,确定该新加入节点的新节点标识所在的 可用地址空间范围, 所述加入请求消息中包括新加入节点的节点关键字; 根据第二策略和至少两个哈希函数计算至少两个备选节点的备选节点标 识, 所述第二策略包括: 备选节点标识为所述可用地址空间范围的起始点, 与 新加入节点的节点关键字对应哈希计算散列值的和;  Receiving a join request message of the newly joined node, determining a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node; according to the second policy and at least two hashes The function calculates an alternate node identifier of the at least two candidate nodes, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the hash calculation hash corresponding to the node keyword of the newly joined node The sum of values;
选择所述至少两个备选节点的后继节点中, 静态负载权重参数和 /或动态 负载权重参数最大的后继节点作为第三节点, 或静态负载权重参数和 /或动态 负载权重参数较大的至少两个后继节点作为第三节点;  Selecting a successor node of the at least two candidate nodes, a static load weight parameter and/or a successor node having a maximum dynamic load weight parameter as a third node, or a static load weight parameter and/or a dynamic load weight parameter having at least a larger parameter Two successor nodes as the third node;
将所述第三节点对应的备选节点的节点标识作为新加入节点的新节点标 识。  The node identifier of the candidate node corresponding to the third node is used as the new node identifier of the newly joined node.
本发明实施例提供的一种节点设备, 包括:  A node device provided by the embodiment of the present invention includes:
确定单元, 用于接收新加入节点的加入请求消息, 确定所述新加入节点的 新节点标识所在的可用地址空间范围;  a determining unit, configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located;
状态获取单元,用于获取所述可用地址空间范围内的至少一个节点的状态 信息;  a state obtaining unit, configured to acquire state information of at least one node in the available address space range;
第一标识生成单元,用于按照第一策略及所述状态信息生成至少一个新节 点标识;所述第一策略包括:新节点标识为在第一节点后特定距离的节点标识, 并将所述新节点标识发送给所述新加入节点; 或, 用于将所述状态信息发送给 所述新加入节点,以便所述新加入节点根据所述状态信息和第一策略生成至少 一个新节点标识。  a first identifier generating unit, configured to generate at least one new node identifier according to the first policy and the state information; the first policy includes: the new node identifier is a node identifier of a specific distance after the first node, and the Sending the new node identifier to the new joining node; or, for sending the status information to the new joining node, so that the newly joining node generates at least one new node identifier according to the status information and the first policy.
本发明实施例提供的另一种节点设备, 包括: 加入发送单元, 用于发送新加入节点的加入请求消息; Another node device provided by the embodiment of the present invention includes: a sending unit, configured to send a join request message of the newly joined node;
状态接收单元, 用于接收根据所述加入请求消息返回的状态信息, 所述状 态信息包括所述新加入节点的新节点标识所在的可用地址空间范围内,至少一 个节点的状态信息;  a status receiving unit, configured to receive status information returned according to the join request message, where the status information includes status information of at least one node within a range of available address spaces in which the new node identifier of the newly joined node is located;
第二标识生成单元,用于按照第一策略及所述状态信息生成至少一个新节 点标识; 所述第一策略包括: 新节点标识为在第一节点的节点标识后特定距离 的节点标识。  And a second identifier generating unit, configured to generate at least one new node identifier according to the first policy and the state information; the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
本发明实施例提供了又一种节点设备, 包括:  The embodiment of the invention provides another node device, including:
接收确定单元, 用于接收新加入节点的加入请求消息, 确定该新加入节点 的新节点标识所在的可用地址空间范围,所述加入请求消息中包括新加入节点 的节点关键字;  a receiving determining unit, configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node;
备选计算单元,用于根据第二策略和至少两个哈希函数计算至少两个备选 节点的备选节点标识, 所述第二策略包括: 备选节点标识为所述可用地址空间 范围的起始点, 与新加入节点的节点关键字对应哈希计算散列值的和;  An alternative calculation unit, configured to calculate an alternate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is the available address space range The starting point, the hash corresponding to the node keyword of the newly joined node, calculates the sum of the hash values;
选择单元, 用于选择所述至少两个备选节点的后继节点中, 静态负载权重 参数和 /或动态负载权重参数最大的后继节点作为第三节点, 或静态负载权重 参数和 /或动态负载权重参数较大的至少两个后继节点作为第三节点;  a selecting unit, configured to select a successor node of the at least two candidate nodes, a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as a third node, or a static load weight parameter and/or a dynamic load weight At least two successor nodes having larger parameters are used as the third node;
标识确定单元,用于将所述第三节点对应的备选节点的节点标识作为新加 入节点的新节点标识。  And an identifier determining unit, configured to use a node identifier of the candidate node corresponding to the third node as a new node identifier of the newly added node.
本发明实施例还提供一种节点标识的生成系统, 包括: 网络节点和新加入 节点;  An embodiment of the present invention further provides a system for generating a node identifier, including: a network node and a newly added node;
所述网络节点, 用于接收新加入节点的加入请求消息, 确定所述新加入节 点的新节点标识所在的可用地址空间范围;获取所述可用地址空间范围内的至 少一个节点的状态信息; 将所述状态信息发送给所述新加入节点;  The network node is configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located, and obtain state information of at least one node in the available address space range; Sending the status information to the newly joined node;
所述新加入节点, 用于发送新加入节点的加入请求消息; 接收到根据所述 加入奇求消息返回的状态信息,按照第一策略及所述状态信息生成至少一个新 节点标识; 所述第一策略包括: 新节点标识为在第一节点的节点标识后特定距 离的节点标识。  The new joining node is configured to send a join request message of the newly joined node; receive state information returned according to the join odd request message, and generate at least one new node identifier according to the first policy and the state information; A policy includes: The new node is identified as a node identifier of a specific distance after the node identification of the first node.
本发明实施例中的节点标识生成方法包括:接收到新加入节点的加入请求 消息 , 确定该新加入节点的新节点标识所在的可用地址空间范围; 并获取可用 地址空间范围内的至少一个节点的状态信息;最后按照第一策略及状态信息生 成至少一个新节点标识, 或将状态信息发送给新加入节点, 以便新加入节点根 据状态信息和第一策略生成至少一个新节点标识, 其中第一策略包括: 新节点 标识为在第一节点的节点标识后特定距离的节点标识。这样当接收到加入请求 消息后,通过新加入节点和网络系统中已有节点的配合, 将新加入节点配置在 网络系统中已有的第一节点后特定距离,使得新节点标识的配置不需要人为参 与, 简化了配置流程。 The method for generating a node identifier in the embodiment of the present invention includes: receiving a join request of a newly joined node a message, determining a range of available address spaces in which the new node identifier of the newly joined node is located; and obtaining state information of at least one node in the available address space; finally generating at least one new node identifier according to the first policy and the state information, or The status information is sent to the newly joined node, so that the new joining node generates at least one new node identifier according to the state information and the first policy, where the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node. After receiving the join request message, the new join node is configured with a certain distance after the first node existing in the network system by using the newly joined node and the existing node in the network system, so that the configuration of the new node identifier is not required. Human involvement simplifies the configuration process.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲,在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1是本发明方法实施例一提供的节点标识生成方法的流程图; 图 2 是本发明方法实施例中获取可用地址空间范围内节点的状态信息的 方法流程图;  1 is a flowchart of a method for generating a node identifier according to Embodiment 1 of the method of the present invention; FIG. 2 is a flowchart of a method for obtaining state information of a node in an available address space according to an embodiment of the method of the present invention;
图 3 是本发明方法实施例中获取可用地址空间范围内节点的状态信息的 另一方法流程图;  3 is a flow chart of another method for obtaining state information of nodes in an available address space in an embodiment of the method of the present invention;
图 4是本发明方法实施例中获取可用地址空间范围内节点的状态信息的 另一方法流程图;  4 is a flow chart of another method for obtaining state information of nodes in an available address space in an embodiment of the method of the present invention;
图 5是本发明方法实施例二提供的节点标识生成方法的流程图; 图 6是本发明方法实施例三提供的节点标识生成方法的流程图; 图 Ί是本发明方法实施例四提供的节点标识生成方法的流程图; 图 8是本发明方法实施例五提供的节点标识生成方法的流程图; 图 9是本发明方法实施例六提供的节点标识生成方法的流程图; 图 10是本发明设备实施例一提供的节点设备结构示意图;  5 is a flowchart of a method for generating a node identifier according to Embodiment 2 of the method of the present invention; FIG. 6 is a flowchart of a method for generating a node identifier according to Embodiment 3 of the method of the present invention; FIG. 8 is a flowchart of a method for generating a node identifier according to Embodiment 5 of the method of the present invention; FIG. 9 is a flowchart of a method for generating a node identifier according to Embodiment 6 of the method of the present invention; Schematic diagram of the structure of the node device provided in the first embodiment of the device;
图 11是本发明设备实施例一提供的另一节点设备结构示意图; 图 12是本发明设备实施例一提供的另一节点设备结构示意图; 图 13是本发明设备实施例一提供的另一节点设备结构示意图; 图 14是本发明设备实施例二提供的节点设备结构示意图; 11 is a schematic structural diagram of another node device according to Embodiment 1 of the present invention; FIG. 12 is a schematic structural diagram of another node device according to Embodiment 1 of the present invention; FIG. 13 is another node provided in Embodiment 1 of the device of the present invention. Schematic diagram of equipment structure; 14 is a schematic structural diagram of a node device according to Embodiment 2 of the device of the present invention;
图 15是本发明设备实施例三提供的节点设备结构示意图。  FIG. 15 is a schematic structural diagram of a node device according to Embodiment 3 of the device of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
方法实施例一  Method embodiment 1
一种节点标识的生成方法,本发明实施例的方法是的当一个新节点加入网 络系统中, 由集中管理网络系统中节点信息的集中管理节点, 或网络系统中接 收到加入请求消息的入口节点等执行的方法, 流程图如图 1所示, 包括: 步骤 101、 接收新加入节点的加入请求消息, 确定该新加入节点的新节点 标识所在的可用地址空间范围;  A method for generating a node identifier, the method of the embodiment of the present invention is when a new node joins a network system, and a centralized management node of the node information in the centralized management network system, or an entry node that receives the join request message in the network system The method of executing, as shown in FIG. 1 , includes: Step 101: Receive a join request message of a newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located;
一个新节点加入网络系统时,会发送加入请求消息给集中管理节点或该网 络系统中的任一节点即入口节点,在加入请求消息中可以包括如下信息中的至 少一个: 新加入节点的网络协议(IP )地址、 固有负载能力、 媒体访问空间子 层(Media Access Control, MAC )地址及鉴权认证信息等;  When a new node joins the network system, it sends a join request message to the centralized management node or any node in the network system, that is, the ingress node, and may include at least one of the following information in the join request message: a network protocol of the newly joined node (IP) address, inherent load capacity, Media Access Control (MAC) address, and authentication authentication information;
当集中管理节点或入口节点接收到加入请求消息后,先确定新加入节点的 新节点标识可能存在的地址空间范围, 即可用地址空间范围, 具体地, 可以确 定与该新加入节点同类型的节点所处的地址空间范围为可用地址空间范围,这 里同类型是指节点的功能属性相同, 如同为 MME节点, 同为 SGW节点, 同 为 PGW节点, 同为 SGSN节点等等; 或, 确定该网络系统的整个地址空间或 整个地址空间中的部分地址空间为可用地址空间范围。  After the central management node or the ingress node receives the join request message, it first determines the range of address spaces that may exist in the new node identifier of the newly joined node, that is, the available address space range. Specifically, the node of the same type as the newly joined node may be determined. The range of the address space is the range of available address space, where the same type means that the functional attributes of the node are the same, as for the MME node, the same as the SGW node, the same as the PGW node, the same as the SGSN node, etc.; or, determine the network The entire address space of the system or part of the address space in the entire address space is a range of available address spaces.
在获得与新加入节点同类型的节点的地址空间范围时, 对于集中管理节 点, 是管理网络系统中节点信息的节点, 可以直接读取本地存储的; 而对于入 口节点, 需要入口节点向于新加入节点同类型的节点发送奇求获取。  When obtaining the address space range of the same type of node as the newly added node, for the centralized management node, the node that manages the node information in the network system can directly read the local storage; and for the ingress node, the ingress node needs to be new. Join a node of the same type as the node to send the odd request.
步骤 102、 获取可用地址空间范围内的至少一个节点的状态信息; 在执行 完步骤 102后, 可以执行步骤 103a, 也可以执行步骤 103b;  Step 102: Obtain status information of at least one node in the available address space; after performing step 102, step 103a may be performed, or step 103b may be performed;
其中状态信息可以包括如下信息中的至少一个:节点标识、节点地址信息、 固有负载能力参数、 静态或动态负载权重参数等信息; The status information may include at least one of the following information: node identifier, node address information, Information such as inherent load capacity parameters, static or dynamic load weight parameters;
如果本方法的执行主体是集中管理节点,由于该集中管理节点是管理网络 系统中的节点,在本地会储存有管理网络系统中所有节点的状态信息如节点类 型、 节点标识、 节点 IP地址等参数, 在获取至少一个节点的状态信息时, 可 以直接在本地存储空间进行读取; 如果本方法的执行主体是入口节点,在获取 节点的状态信息时,需要通过入口节点发送节点状态信息查询消息给被查询的 节点, 并请求获取该被查询节点的状态信息的方式来获取。  If the execution entity of the method is a centralized management node, since the centralized management node is a node in the management network system, state information such as a node type, a node identifier, a node IP address, and the like of all nodes in the management network system are stored locally. When the state information of the at least one node is obtained, the reading may be directly performed in the local storage space. If the execution entity of the method is the ingress node, when the state information of the node is acquired, the node state information query message needs to be sent through the ingress node. The node being queried is obtained by requesting the state information of the queried node.
步骤 103a、 按照第一策略和状态信息生成至少一个新节点标识, 并将新 节点标识发送给新加入节点;  Step 103a: Generate at least one new node identifier according to the first policy and status information, and send the new node identifier to the newly joined node.
这里第一策略包括: 新节点标识为在第一节点的节点标识后特定距离 X 的节点标识, 该特定距离可以是在本地预置的一个距离, 也可以为第一节点的 后继节点(以下记为第二节点)与第一节点的节点标识之差的一半; 还可以为 第二节点与第一节点的节点标识之差,与新加入节点的固有负载能力参数与第 二节点和新加入节点固有负载能力参数之和的比值的乘积;特定距离也可以是 距离第一节点的节点标识的任一距离, 其具体的内容并不构成对本发明的限 制。  The first strategy here includes: the new node identifier is a node identifier of a specific distance X after the node identifier of the first node, and the specific distance may be a distance preset locally or may be a successor node of the first node (hereinafter referred to as The difference between the second node and the node identifier of the first node; the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly joined node and the second node and the newly joined node The product of the ratio of the sum of the inherent load capacity parameters; the specific distance may also be any distance from the node identifier of the first node, the specific content of which does not constitute a limitation of the present invention.
也就是说,按照第一策略和状态信息生成主要是在第一节点的节点标识基 础上加 X, 即得到新节点标识。 可以理解, 这里第一节点和第二节点, 及后面 文件中提到的第一、 第二并不表述与任何步骤有关的顺序, 而只是为了说明这 两个节点不同而已。且这里的第一节点是步骤 102获取的至少一个节点其中的 节点。  That is to say, according to the first policy and the state information generation, X is added mainly on the node identifier of the first node, that is, the new node identifier is obtained. It will be understood that the first node and the second node herein, and the first and second mentioned in the following documents do not describe the order associated with any step, but merely to illustrate that the two nodes are different. And the first node here is the node of at least one node acquired in step 102.
例如: 第一节点为 Q, 第二节点为 P, 则新节点标识 =节点 Q的节点标识 + (节点 P的节点标识 -节点 Q的节点标识) /2; 或新节点标识 =节点 Q的 节点标识 + (节点 P的节点标识 -节点 Q的节点标识) X新加入节点固有负载 能力 / (节点 P固有负载能力 +新加入节点固有负载能力)。 其中新加入节点固 有负载能力可以从接收到的加入奇求消息中获取。  For example: the first node is Q, the second node is P, then the new node ID = node ID of node Q + (node ID of node P - node ID of node Q) /2; or node of new node ID = node Q Identification + (node ID of node P - node ID of node Q) X newly added node inherent load capacity / (node P inherent load capacity + newly added node inherent load capacity). The newly added node has a load capacity that can be obtained from the received join request message.
通过步骤 103a生成新节点标识后, 可以将该新节点标识发送给新加入的 节点进行配置完整形式的节点标识。  After the new node identifier is generated by step 103a, the new node identifier may be sent to the newly joined node to configure the node identifier of the complete form.
步骤 103b、 将上述步骤 102中获取的状态信息发送给新加入节点, 以便新 加入节点 #>据状态信息和第一策略生成至少一个新节点标识。 Step 103b: Send the status information acquired in step 102 to the newly joined node, so as to be new. Join node #> generates at least one new node identifier according to the status information and the first policy.
上述状态信息即为生成新节点标识的配置信息,包括至少两个节点的节点 标识,或固有负载能力参数和节点标识等,而新加入节点在生成新节点标识时, 按照第一策略进行生成, 即和上述步骤 103a中的方法一致。  The foregoing state information is configuration information for generating a new node identifier, including a node identifier of at least two nodes, or an inherent load capability parameter and a node identifier, and the newly added node generates the new node identifier according to the first policy. That is, it is consistent with the method in the above step 103a.
本发明实施例适用于公众陆地移动通信网 ( Public Land Mobile- communication Network, PLMN ) 内节点标识的生成, 节点标识的完整形式可 采用如下结构< 0 < 0<节点标识>,在通过本方法实施例形成节点标识 后, 即可通过该结构来配置完整的节点标识, 其中生成的节点标识是 0 ~ N中 的某一整数。  The embodiment of the present invention is applicable to the generation of a node identifier in a Public Land Mobile-Communication Network (PLMN). The complete form of the node identifier may adopt the following structure < 0 < 0 <node identifier>, which is implemented by the method. After the node identifier is formed, the complete node identifier can be configured through the structure, and the generated node identifier is an integer from 0 to N.
可以理解, 一般情况下, 0 ~ N定义为地址空间, 大小由网络规模决定, 在地址空间 0 ~ N中的每个地址以顺时针增大的方向形成地址空间环, 网络中 节点按其节点标识值分布在地址空间环上, 同一个 PLMN中的节点可以共用同 一个地址空间, 也可以 居区域或节点类型差异划分出不同的地址空间。  It can be understood that, in general, 0 ~ N is defined as the address space, and the size is determined by the network size. Each address in the address space 0 ~ N forms an address space ring in a clockwise direction, and nodes in the network press the node. The identifier values are distributed on the address space ring. The nodes in the same PLMN can share the same address space, or different address spaces can be divided according to the difference of the area or node type.
可见, 本发明实施例中的节点标识生成方法包括: 当接收到新加入节点的 加入请求消息, 确定该新加入节点的新节点标识所在的可用地址空间范围; 并 获取可用地址空间范围内的至少一个节点的状态信息;最后按照第一策略及状 态信息生成至少一个新节点标识, 或将状态信息发送给新加入节点, 以便新加 入节点根据状态信息和第一策略生成至少一个新节点标识, 其中第一策略包 括: 新节点标识为在第一节点的节点标识后特定距离的节点标识。这样当接收 到加入请求消息后, 通过新加入节点和网络系统中已有节点的配合,将新加入 节点配置在网络系统中已有的第一节点后特定距离,使得新节点标识的配置不 需要人为参与, 简化了配置流程。  It can be seen that the method for generating a node identifier in the embodiment of the present invention includes: when receiving a join request message of a newly joined node, determining a range of available address spaces in which the new node identifier of the newly joined node is located; and acquiring at least a range of available address spaces The state information of one node; finally, generating at least one new node identifier according to the first policy and the state information, or sending the state information to the newly joined node, so that the newly joining node generates at least one new node identifier according to the state information and the first policy, where The first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node. After receiving the join request message, the new join node is configured with a certain distance after the first node existing in the network system by using the newly joined node and the existing node in the network system, so that the configuration of the new node identifier is not required. Human involvement simplifies the configuration process.
可以理解, 如图 2所示, 在一个具体的实施例中, 在执行上述步骤 102时, 可以通过如下的步骤来实现:  It can be understood that, as shown in FIG. 2, in a specific embodiment, when the foregoing step 102 is performed, the following steps can be implemented:
A1 : 比较可用地址空间范围中所有节点的静态负载权重参数和 /或动态负 载权重参数; 在执行完步骤 A1后, 可以执行步骤 B1 , 也可以执行步骤 C1 ; 这里节点的静态负载权重参数为节点负责的地址空间段与其固有负载能 力比值;节点的动态负载权重参数为节点当前负载情况与其固有负载能力的比 值, 对于当前没有负荷的新节点, 其动态负载权重参数为零。 其中每个节点负 责的地址空间段为该节点的节点标识与其前驱节点的节点标识之差,而在网络 的地址空间中, 相邻节点互为前驱后继节点, 具体来讲, 两个相邻节点中, 节 点标识小的节点为节点标识大的节点的前驱节点,节点标识大的节点为节点标 识小的节点的后继节点。 如果是非相邻节点, 节点标识大的节点为节点标识小 的节点的后续节点。 A1: Compare the static load weight parameter and/or the dynamic load weight parameter of all nodes in the available address space range; after performing step A1, step B1 may be performed, or step C1 may be performed; where the static load weight parameter of the node is node The ratio of the responsible address space segment to its inherent load capacity; the dynamic load weight parameter of the node is the ratio of the current load condition of the node to its inherent load capacity. For a new node that has no current load, the dynamic load weight parameter is zero. Each of them is negative The address space segment responsible for the node is the difference between the node identifier of the node and the node identifier of the predecessor node, and in the address space of the network, the adjacent nodes are the precursor successor nodes, specifically, the node identifiers of the two adjacent nodes. A small node is a predecessor node of a node that identifies a large node, and a node with a large node identification is a successor node of a node with a small node identifier. If it is a non-adjacent node, the node with the largest node ID is the subsequent node of the node with the smaller node ID.
如果一个设备对应多个节点标识,则每个节点标识对应节点的固有负载能 力是该设备负载能力的一部分,其所占比例按照每个节点标识对应节点负责的 地址空间大小分配, 或由运营商直接分配。  If a device corresponds to multiple node identifiers, each node identifies the intrinsic load capacity of the corresponding node as part of the load capacity of the device, and the proportion of the node is allocated according to the size of the address space that is responsible for the node corresponding to each node identifier, or by the operator. Direct allocation.
B1 : 读取静态负载权重参数和 /或动态负载权重参数最大的节点及其前驱 节点的状态信息;  B1: reading the state information of the node with the largest static load weight parameter and/or the dynamic load weight parameter and its precursor node;
这时, 第二节点为静态负载权重参数和 /或动态负载权重参数最大的节点, 第一节点为其前驱节点。  At this time, the second node is a node with a static load weight parameter and/or a dynamic load weight parameter, and the first node is its precursor node.
可以理解,节点的静态负载权重参数大说明该节点负责的地址空间段相对 较大, 而固有负载能力相对较小; 而节点的动态负载权重参数大说明该节点的 当前负载率较大。将新加入节点的节点标识配置在这些节点附近, 可以为这些 当前负载率较大或固有负载能力较小而负责地址相对较大的节点分担部分业 务能力, 使得配置后的网络各个节点负荷更加均匀。  It can be understood that the static load weight parameter of the node indicates that the address space segment that the node is responsible for is relatively large, and the inherent load capacity is relatively small; and the dynamic load weight parameter of the node indicates that the current load rate of the node is large. Configuring the node ID of the newly added node in the vicinity of these nodes can share some of the service capabilities of the node with a relatively large current load rate or a small intrinsic load capacity and a relatively large address, so that the load of each node in the configured network is more uniform. .
C1: 读取静态负载权重参数和 /或动态负载权重参数较大的至少两个节点 及相应的前驱节点的状态信息。  C1: Read status information of at least two nodes with a large static load weight parameter and/or a dynamic load weight parameter and corresponding predecessor nodes.
这时, 第二节点为静态负载权重参数和 /或动态负载权重参数较大的至少 两个节点, 第一节点为相应的前驱节点。  At this time, the second node is at least two nodes having a static load weight parameter and/or a dynamic load weight parameter, and the first node is a corresponding predecessor node.
在本实施例中, 可以为新加入节点生成若干个节点标识, 这样可以为网络 中的若干节点分担业务处理, 至于生成几个, 可以在设备中提供可供用户设置 的端口, 用户可以根据设备及当前网络的实际情况进行设置。  In this embodiment, a number of node identifiers may be generated for the newly joined node, so that the service processing may be shared for several nodes in the network. As for the generation, a port that can be set by the user may be provided in the device, and the user may use the device according to the device. And the actual situation of the current network is set.
如图 3所示, 在另一个具体的实施例中, 在执行上述步骤 102时, 可以通过 如下的步骤来实现:  As shown in FIG. 3, in another specific embodiment, when the foregoing step 102 is performed, the following steps may be implemented:
A2: 通过至少两个哈希函数与第二策略计算至少两个备选节点的备选节 点标识, 其中第二策略包括: 备选节点标识为可用地址空间范围的起始点, 与 新加入节点关键字对应哈希计算散列值的和; 假设 Start为可用地址空间范围的起始点, 而 End为可用地址空间范围的 终止点, 则备选节点标识为 Start + Hash ( key ), 其中节点关键字 (Key )可以 为新加入节点的状态信息, 如新加入节点的 IP地址或 MAC地址或负载参数 等, 可以从接收的加入请求消息中获取。 A2: calculating, by using at least two hash functions and the second policy, candidate node identifiers of the at least two candidate nodes, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the newly added node key The word corresponds to the hash to calculate the sum of the hash values; Assuming Start is the starting point of the available address space range, and End is the ending point of the available address space range, the candidate node identifier is Start + Hash ( key ), where the node key (Key ) can be the state information of the newly added node. , such as the IP address or MAC address or load parameter of the newly added node, can be obtained from the received join request message.
哈希( Hash )函数有多种, 这里选择的哈希函数是可以将值散列到与可用 地址空间范围具有相同长度的 [0,End-Start]区间的 Hash 函数, 且这样的 Hash 函数可以选取多个。 通过多种哈希函数计算 Hash ( key ) 即可得到新加入节点 关键字对应的多个哈希计算散列值,进而通过第二策略可以得到至少一个备选 节点标识。  There are a variety of hash functions. The hash function selected here is a hash function that can hash values to the [0,End-Start] interval of the same length as the available address space range, and such a hash function can Select multiple. By calculating Hash (key) through various hash functions, multiple hashes corresponding to the newly added node keywords can be used to calculate the hash value, and then at least one candidate node identifier can be obtained by the second strategy.
B2: 比较至少两个备选节点的后继节点的静态负载权重参数和 /或动态负 载权重参数; 在执行完步骤 B2后, 可以执行步骤 C2, 也可以执行步骤 D2;  B2: The static load weight parameter and/or the dynamic load weight parameter of the successor node of the at least two candidate nodes are compared; after step B2 is performed, step C2 may be performed, or step D2 may be performed;
C2: 获取静态负载权重参数和 /或动态负载权重参数最大的节点及其前驱 节点的状态信息;  C2: obtaining state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a predecessor node thereof;
这时, 第二节点为至少两个备选节点的后继节点中, 静态负载权重参数和 /或动态负载权重参数最大的节点, 第一节点为其前驱节点;  At this time, the second node is a node with at least two candidate nodes, a static load weight parameter and/or a node with the largest dynamic load weight parameter, and the first node is its predecessor node;
D2: 获取静态负载权重参数和 /或动态负载权重参数较大的至少两个节点 及相应的前驱节点的状态信息, 这时, 第二节点为静态负载权重参数和 /或动 态负载权重参数较大的至少两个节点, 第一节点为相应的前驱节点。  D2: Obtain status information of at least two nodes with a static load weight parameter and/or a dynamic load weight parameter and corresponding predecessor nodes. At this time, the second node has a static load weight parameter and/or a dynamic load weight parameter. At least two nodes, the first node is a corresponding predecessor node.
如图 4所示, 在又一个具体的实施例中, 在执行上述步骤 102时, 可以通过 如下的步骤来实现:  As shown in FIG. 4, in still another specific embodiment, when the foregoing step 102 is performed, the following steps may be implemented:
A3: 通过一个哈希函数与第二策略计算切入节点的切入节点标识, 第二 策略包括: 切入节点标识为可用地址空间范围的起始点, 与新加入节点关键字 对应哈希计算散列值的和;  A3: Calculating the cut-in node identifier of the cut-in node by using a hash function and the second policy, where the second strategy includes: the cut-in node identifier is a starting point of the available address space range, and the hash corresponding to the newly added node keyword is used to calculate the hash value. with;
这里计算的切入节点并不是一个实际中现有的一个节点,而是通过第二策 略计算得到的结果,将该切入节点标识作为在可用地址空间范围内选择一个节 点的起点。  The hand-in node calculated here is not an existing one in the actual node, but the result calculated by the second policy, which is used as the starting point for selecting a node within the available address space.
本实施例是将通过第二策略计算的节点标识对应的节点作为切入点, ^^设 Start为可用地址空间范围的起始点, 而 End为可用地址空间范围的终止点, 则切入节点标识为 Start + Hash ( key ), 其中节点关键字 Key是新加入节点的 状态信息 , 如可以为新加入节点的 IP地址或 MAC地址或负载参数等, 可以 从接收的加入请求消息中获取。而这里选择的哈希函数是可以将值散列到与可 用地址空间范围具有相同长度的 [0,End-Start]区间的哈希函数。 In this embodiment, the node corresponding to the node identifier calculated by the second policy is used as the entry point, ^^ sets Start as the starting point of the available address space range, and End is the ending point of the available address space range, and the cut-in node identifier is Start. + Hash ( key ), where the node keyword Key is the newly added node The status information, such as the IP address or MAC address or load parameter of the newly added node, can be obtained from the received join request message. The hash function selected here is a hash function that can hash the value to the [0, End-Start] interval of the same length as the range of available address spaces.
通过一个函数的计算 Hash ( key )即可得到新加入节点关键字对应的一个 散列值, 进而通过第二策略可以得到一个切入节点标识。  A Hash (key) of a function can be used to obtain a hash value corresponding to the newly added node keyword, and then a second node can obtain a hand-in node identifier.
B3: 比较可用地址空间范围内, 切入节点的后继节点和其后续节点的静 态负载权重参数和 /或动态负载权重参数; 在执行完步骤 B3后, 可以执行步驟 C3 , 也可以执行步骤 D3;  B3: Comparing the available load address space, the static load weight parameter and/or the dynamic load weight parameter of the successor node of the node and its subsequent nodes; after performing step B3, step C3 may be performed, or step D3 may be performed;
C3: 获取静态负载权重参数和 /或动态负载权重参数最大的节点及其前驱 节点的状态信息;  C3: obtaining state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a predecessor node thereof;
这时, 第二节点为切入节点的后继节点和所有后续节点中, 静态负载权重 参数和 /或动态负载权重参数最大的节点, 第一节点为其前驱节点;  At this time, the second node is a node of the cut-in node and all subsequent nodes, the node with the largest static load weight parameter and/or the dynamic load weight parameter, and the first node is its predecessor node;
D3: 获取静态负载权重参数和 /或动态负载权重参数较大的至少两个节点 及相应的前驱节点的状态信息;  D3: obtaining state information of at least two nodes with a static load weight parameter and/or a dynamic load weight parameter and corresponding predecessor nodes;
这时, 第二节点为静态负载权重参数和 /或动态负载权重参数较大的至少 两个节点, 第一节点为相应的前驱节点。  At this time, the second node is at least two nodes having a static load weight parameter and/or a dynamic load weight parameter, and the first node is a corresponding predecessor node.
方法实施例二  Method embodiment two
一种节点标识的生成方法, 本方法实施例是一个节点新加入网络系统时, 该新加入节点执行的节点标识生成方法, 结构示意图如图 5所示, 包括:  A method for generating a node identifier, the method embodiment is a node identifier generation method performed by the newly joined node when a node newly joins the network system, and the structure diagram is as shown in FIG. 5, including:
步骤 201、 新加入节点发送新加入节点的加入请求消息;  Step 201: The new joining node sends a join request message of the newly joined node.
一个新节点加入网络系统时,会发送加入请求消息给集中管理节点或该网 络系统中的任一节点即入口节点,在加入倚求消息中可以包括新加入节点的 IP 地址、 固有负载能力、 MAC地址及鉴权认证信息等信息;  When a new node joins the network system, it sends a join request message to the centralized management node or any node in the network system, that is, the ingress node. The join request message may include the IP address of the newly joined node, the inherent load capacity, and the MAC. Information such as address and authentication information;
当集中管理节点或入口节点接收到加入请求消息后,先确定新加入节点的 新节点标识可能存在的地址空间范围, 即可用地址空间范围, 并获得可用地址 空间范围内至少一个节点的状态信息, 如荻得至少一个节点的节点标识, 或至 少两个节点的固有负载能力参数和节点标识等状态信息。 具体的确定、获取方 法如方法实施例一所示, 在此不再赘述。  After receiving the join request message, the centralized management node or the ingress node first determines the range of address spaces that may exist in the new node identifier of the newly joined node, that is, the available address space range, and obtains state information of at least one node in the available address space range, For example, the node identifier of at least one node, or the status information of the intrinsic load capability parameter and the node identifier of at least two nodes. The specific method for determining and obtaining is as shown in the first embodiment of the method, and details are not described herein again.
步骤 202、 该新加入节点接收根据加入请求消息返回的状态信息; 该状态信息包括新加入节点的新节点标识所在的可用地址空间范围内,至 少一个节点的状态信息如节点标识, 固有负载能力参数等参数; Step 202: The new joining node receives status information returned according to the join request message. The status information includes the available address space in which the new node identifier of the newly joined node is located, and the status information of at least one node, such as a node identifier, an inherent load capability parameter, and the like;
可用地址空间范围具体为:与新加入节点同类型的节点所处的地址空间范 围为可用地址空间范围; 或, 网络系统的整个地址空间或整个地址空间中的部 分地址空间。  The available address space ranges specifically: the address space range of the node of the same type as the newly joined node is the available address space range; or, the entire address space of the network system or the partial address space in the entire address space.
步骤 203、 该新加入节点按照第一策略及状态信息生成至少一个新节点标 识;  Step 203: The new joining node generates at least one new node identifier according to the first policy and the state information.
其中第一策略包括:新节点标识为在第一节点的节点标识后特定距离的节 点标识, 这里特定距离可以是本地预置的一个距离, 也可以为第二节点与第一 节点的节点标识之差的一半; 也可以为第二节点与第一节点的节点标识之差, 与新加入节点的固有负载能力参数与第二节点和新加入节点固有负载能力参 数之和的比值的乘积, 还可以为其他的任意距离。  The first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node, where the specific distance may be a local preset distance, or may be a node identifier of the second node and the first node. Half of the difference; can also be the product of the difference between the node identification of the second node and the first node, and the ratio of the inherent load capacity parameter of the newly added node to the sum of the inherent load capacity parameters of the second node and the newly added node, For any other distance.
新加入节点在生成新节点标识后, 配置新节点标识的完整形式, 如在 The newly joined node configures the complete form of the new node identifier after generating the new node identifier, as in
PLMN的节点标识的完整形式为 <MCC><MNC><节点标识>,并将生成的新节 点标识上寺良给集中管理节点。 The complete form of the node identifier of the PLMN is <MCC><MNC><node identification>, and the generated new node is identified on the central management node.
方法实施例三  Method embodiment three
一种节点标识的生成方法,本发明实施例的方法是的当一个新节点加入网 络系统中, 由集中管理网络系统中节点的集中管理节点, 或网络系统中接收到 加入请求消息的入口节点执行的方法, 流程图如图 6所示, 包括:  A method for generating a node identifier, the method of the embodiment of the present invention is when a new node joins a network system, and is executed by a centralized management node of a node in the centralized management network system, or an entry node that receives a join request message in the network system. The method, the flow chart shown in Figure 6, includes:
步骤 301、 接收新加入节点的加入请求消息, 该加入请求消息中包括新加 入节点的节点关键字;  Step 301: Receive a join request message of a newly joined node, where the join request message includes a node keyword of the newly added node;
一个新节点加入网络系统时,会发送加入请求消息给集中管理节点或该网 络系统中的任一节点即入口节点,在加入请求消息中可以包括新加入节点的 IP 地址、 固有负载能力、 MAC地址及鉴权认证信息等;  When a new node joins the network system, it sends a join request message to the centralized management node or any node in the network system, that is, the ingress node. The join request message may include the IP address, intrinsic load capacity, and MAC address of the newly joined node. And authentication information, etc.;
而这里新加入节点的节点关键字是新加入节点的状态信息,如可以为新加 入节点的 IP地址, 或固有负载能力, 或 MAC地址及鉴权认证信息等信息。  The node keyword of the newly added node here is the status information of the newly added node, such as the IP address of the newly added node, or the inherent load capacity, or the MAC address and the authentication information.
步骤 302、 确定该新加入节点的新节点标识所在的可用地址空间范围; 当集中管理节点或入口节点接收到加入请求消息后,先确定新加入节点的 新节点标识可能存在的地址空间范围, 即可用地址空间范围, 具体地, 可以确 定与该新加入节点同类型的节点所处的地址空间范围为可用地址空间范围,这 里同类型是指节点的功能属性相同, 如同为 MME节点, 同为 SGW节点, 同 为 PGW节点, 同为 SGSN节点等等; 或, 确定该网络系统的整个地址空间或 整个地址空间中的部分地址空间为可用地址空间范围。 Step 302: Determine a range of available address spaces in which the new node identifier of the newly joined node is located. After receiving the join request message, the centralized management node or the ingress node first determines a range of address spaces that may exist in the new node identifier of the newly joined node, that is, Available address space range, specifically, can be The address space range of the node of the same type as the newly added node is the range of available address space. Here, the same type means that the function attributes of the node are the same, as for the MME node, the same as the SGW node, and the same as the PGW node. SGSN node or the like; or, determine that the entire address space of the network system or a part of the address space in the entire address space is a range of available address spaces.
步骤 303、 根据第二策略和至少两个哈希函数计算至少两个备选节点的备 选节点标识, 第二策略包括: 备选节点标识为可用地址空间范围的起始点, 与 新加入节点关键字对应哈希计算散列值的和;  Step 303: Calculate an candidate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the newly added node key The word corresponds to the hash to calculate the sum of the hash values;
假设 Start为可用地址空间范围的起始点, 而 End为可用地址空间范围的 终止点, 则备选节点标识为 Start + Hash ( key ), 其中节点关键字 Key可以为 新加入节点的 IP地址或 MAC地址或负载参数等, 可以从接收的加入请求消 息中获取。而这里选择的哈希函数是可以将值散列到与可用地址空间范围具有 相同长度的 [0,End-Start]区间的哈希函数。  Assuming Start is the starting point of the available address space range, and End is the ending point of the available address space range, the candidate node identifier is Start + Hash ( key ), where the node key Key can be the IP address or MAC of the newly joined node. Address or load parameters, etc., can be obtained from the received join request message. The hash function selected here is a hash function that can hash the value to the [0, End-Start] interval of the same length as the range of available address spaces.
步骤 304、 选择至少两个备选节点的后继节点中, 静态负载权重参数和 / 或动态负载权重参数最大的后继节点作为第三节点, 或静态负载权重参数和 / 或动态负载权重参数较大的至少两个后继节点作为第三节点;  Step 304: Select a successor node with at least two candidate nodes, a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as the third node, or a static load weight parameter and/or a dynamic load weight parameter. At least two successor nodes as the third node;
步骤 305、 将第三节点对应的备选节点的节点标识作为新加入节点的新节 点标识,在确定了新节点标识后, 可以将该新节点标识发送给新加入节点进行 配置。  Step 305: The node identifier of the candidate node corresponding to the third node is used as the new node identifier of the newly added node. After the new node identifier is determined, the new node identifier may be sent to the newly joined node for configuration.
本实施例中的节点标识生成方法包括: 在接收到加入请求消息后, 确定可 用地址空间范围;根据第二策略和至少两个哈希函数计算至少两个备选节点的 备选节点标识, 其中第二策略包括: 备选节点标识为可用地址空间范围的起始 点, 与新加入节点的节点关键字对应哈希计算散列值的和; 将至少两个备选节 点的后继节点中, 静态负载权重参数和 /或动态负载权重参数最大或较大的后 继节点对应的备选节点标识作为新节点标识。 这样当接收到加入请求消息后, 通过新加入节点和网络系统中已有节点的配合,将新加入节点配置在网络系统 中已有的第三节点之前,使得新节点标识的配置不需要人为参与, 简化了配置 流程。  The method for generating a node identifier in this embodiment includes: determining, after receiving the join request message, a range of available address spaces; calculating an candidate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where The second strategy includes: the candidate node identifier is a starting point of the available address space range, and the sum of the hash values is calculated corresponding to the node keyword of the newly joined node; the static load of the succeeding nodes of the at least two candidate nodes The candidate node identifier corresponding to the successor node with the largest or larger weight parameter and/or dynamic load weight parameter is used as the new node identifier. After receiving the join request message, the new join node is configured in front of the existing third node in the network system by the cooperation of the newly added node and the existing node in the network system, so that the configuration of the new node identifier does not need to be manually participated. , simplifies the configuration process.
方法实施例四  Method embodiment four
一种节点标识生成方法, 流程图如图 7所示, 包括: 步骤 401、 新加入节点获取集中管理节点地址, 可以通过运营商静态配置 或通过向其它网元查询后得到; 新加入节点发送加入请求消息给集中管理节 点, 在加入请求消息中包括新加入节点的 IP地址、 MAC地址、 固有负载能力 及鉴权认证信息等。 A method for generating a node identifier, which is shown in Figure 7, includes: Step 401: The newly added node obtains the central management node address, which can be obtained by static configuration of the operator or by querying other network elements. The newly added node sends a join request message to the centralized management node, and includes the newly added node in the join request message. IP address, MAC address, inherent load capacity, and authentication information.
步骤 402、 集中管理节点将新加入节点的信息发送给认证服务器完成新加 入节点的安全认证, 如果认证通过, 则执行步骤 403, 如果认证没有通过, 则 不进行配置新节点标识。  Step 402: The centralized management node sends the information of the newly added node to the authentication server to complete the security authentication of the newly added node. If the authentication succeeds, step 403 is performed. If the authentication fails, the new node identifier is not configured.
步骤 403、 集中管理节点确定新加入节点的新节点标识可能所在的地址空 间范围, 即可用地址空间范围, 可以确定与新加入节点同类型的网元所处的地 址空间范围,或网络系统的整个地址空间,或整个地址空间中的部分地址空间。  Step 403: The centralized management node determines a range of address spaces in which the new node identifier of the newly joined node may be located, that is, an available address space range, and may determine an address space range in which the same type of network element as the newly joined node is located, or the entire network system. The address space, or part of the address space in the entire address space.
步骤 404、 集中管理节点获得新加入节点的配置信息后, 可以生成新节点 标识, 也可以将配置信息携带在步骤 405的加入倚求响应消息中发送给新加入 节点, 以便新加入节点自己生成新节点标识。  Step 404: After the centralized management node obtains the configuration information of the newly added node, the new node identifier may be generated, and the configuration information may be carried in the join response response message in step 405 and sent to the newly joined node, so that the newly added node generates a new one. Node ID.
新加入节点的配置信息即生成新节点标识所需的参数,具体为可用地址空 间范围内的至少两个节点的状态信息, 其中状态信息包括: 节点标识, 或固有 负载能力参数和节点标识, 获取的状态信息还可以包括节点当前的负荷参数 等。  The configuration information of the newly added node is the parameter required for generating the new node identifier, which is specific to the state information of at least two nodes in the available address space, wherein the state information includes: a node identifier, or an inherent load capability parameter and a node identifier, The status information may also include the current load parameters of the node and the like.
其中至少两个节点可以为可用地址空间范围中静态和 /或动态负载权重参 数最大的节点及其前驱节点, 假设该节点为节点 P, 其前驱节点为节点 Q; 也 可以为可用地址空间范围中静态和 /或动态负载权重参数较大的至少两个节点 及对应的前驱节点, 假设参数较大的某节点为节点 P, 其前驱节点为节点 Q。 则集中管理节点可以从本地获取的配置信息包括: 节点 P和 Q的节点标识; 或 节点 P和 Q的节点标识, 及节点 P的固有负载能力。  At least two nodes may be the node with the largest static and/or dynamic load weight parameter in the available address space range and its predecessor node, assuming that the node is node P, and its predecessor node is node Q; At least two nodes with a large static and/or dynamic load weight parameter and corresponding predecessor nodes assume that a node with a larger parameter is a node P, and a precursor node thereof is a node Q. The configuration information that the centralized management node can obtain locally includes: node identifiers of nodes P and Q; or node identifiers of nodes P and Q, and the inherent load capacity of the node P.
在获得配置信息后, 可以按照第一策略生成新节点标识, 即新节点标识 = 节点 Q的节点标识 + (节点 P的节点标识 -节点 Q的节点标识) /2; 或新节点标 识=节点 Q的节点标识 + (节点 P的节点标识 -节点 Q的节点标识) X新节点固 有负载能力 / (节点 P固有负载能力 +新节点固有负载能力)。  After obtaining the configuration information, the new node identifier may be generated according to the first policy, that is, the new node identifier = the node identifier of the node Q + (the node identifier of the node P - the node identifier of the node Q) /2; or the new node identifier = the node Q Node ID + (node ID of node P - node ID of node Q) X new node inherent load capacity / (node P inherent load capacity + new node inherent load capacity).
步骤 405、 集中管理节点发送加入请求响应消息给新加入节点, 如果步骤 404中生成了新节点标识, 则携带该新节点标识; 如果步骤 404中只获得了配置 信息, 则可以携带配置信息。 Step 405: The central management node sends a join request response message to the newly joined node. If the new node identifier is generated in step 404, the new node identifier is carried; if only the configuration is obtained in step 404 Information, you can carry configuration information.
可以理解, 新加入节点接收到加入请求响应消息, 其中包括配置信息, 则 按照上述步骤 404的方法生成新节点标识, 并可以将生成的新节点标识上报给 集中管理节点。  It can be understood that the new joining node receives the join request response message, including the configuration information, and then generates a new node identifier according to the method in the above step 404, and can report the generated new node identifier to the centralized management node.
可见,在本实施例中, 集中管理节点不仅负责新加入节点标识的生成或配 置信息的获得; 还负责存储网络系统中所有节点的状态信息, 如节点类型, 节 点标识、 节点 IP地址、 节点固有负载能力参数及静态 /动态负载权重参数等。  It can be seen that, in this embodiment, the centralized management node is not only responsible for generating the newly added node identifier or obtaining configuration information; but also for storing state information of all nodes in the network system, such as node type, node identifier, node IP address, and node inherent. Load capacity parameters and static/dynamic load weight parameters.
方法实施例五  Method embodiment five
一种节点标识生成方法, 流程图如图 8所示, 包括:  A method for generating a node identifier, the flowchart shown in Figure 8, includes:
步骤 501、 新加入节点获取入口节点地址, 可以通过运营商静态配置或通 过向其它网元查询后得到, 且网络系统中任意一个节点都可以为入口节点; 新 加入节点发送加入请求消息给入口节点,在加入请求消息中包括新加入节点的 IP地址、 MAC地址、 固有负载能力及鉴权认证信息等。  Step 501: The newly added node obtains the ingress node address, which can be obtained by static configuration of the operator or by querying other network elements, and any node in the network system can be an ingress node; the newly joining node sends a join request message to the ingress node. The join request message includes the IP address, MAC address, inherent load capacity, and authentication authentication information of the newly joined node.
步骤 502、 入口节点将新加入节点的信息发送给认证服务器完成新加入节 点的安全认证, 如果认证通过, 则执行步骤 503, 如果认证没有通过, 则不进 行配置新节点标识。  Step 502: The ingress node sends the information of the newly added node to the authentication server to complete the security authentication of the newly added node. If the authentication is passed, step 503 is performed. If the authentication fails, the new node identifier is not configured.
步驟 503、 入口节点确定新加入节点的新节点标识可能所在的地址空间范 围, 即可用地址空间范围, 可以确定与新加入节点同类型的网元所处的地址空 间范围, 或网络系统的整个地址空间, 或整个地址空间中的部分地址空间。  Step 503: The ingress node determines a range of address spaces in which the new node identifier of the newly joined node may be located, that is, an available address space range, and may determine an address space range in which the network element of the same type as the newly joined node is located, or an entire address of the network system. Space, or part of the address space in the entire address space.
步骤 504、入口节点通过多个哈希函数计算多个备选节点的备选节点标识, 首先从加入请求消息中获得新加入节点的 Key, 通过第二策略计算多个备选节 点标识, 则备选新节点标识 = Start + Hash ( key ), 其中 Start值可用地址空间范 围的起始点, End是可用地址空间范围的终止点。 而这里选择的 Hash函数是可 以将值散列到与备选地址空间具有相同长度的 [0,End-Start]区间的 Hash函数。  Step 504: The ingress node calculates the candidate node identifiers of the multiple candidate nodes by using multiple hash functions. First, the key of the newly added node is obtained from the join request message, and multiple candidate node identifiers are calculated by using the second policy. Select the new node ID = Start + Hash ( key ), where the Start value is the starting point of the address space range and End is the end point of the available address space range. The Hash function selected here is a Hash function that can hash the value to the [0, End-Start] interval of the same length as the alternate address space.
步骤 505、 入口节点发送节点状态信息查询消息给多个备选节点的后继节 点, 以获得这多个后继节点的状态信息。  Step 505: The ingress node sends a node status information query message to a successor node of the multiple candidate nodes to obtain status information of the multiple succeeding nodes.
步骤 506、 后继节点进行邻居节点状态的查询, 向入口节点返回状态查询 响应消息,该响应消息中可以包括:该后继节点及对应的前驱节点的节点标识、 静态负载权重参数、 固有负载能力及当前负载情况等信息。 步骤 507、 入口节点根据接收到的多个状态查询响应消息, 获得新加入节 点的配置信息后, 可以生成新节点标识, 也可以将状态信息携带在步骤 508的 加入清求响应消息中发送给新加入节点, 以便新加入节点自己生成新节点标 识; 或入口节点根据接收到的多个状态查询响应消息, 执行步驟 509。 Step 506: The subsequent node performs a query of the status of the neighbor node, and returns a status query response message to the ingress node, where the response message may include: a node identifier of the successor node and the corresponding predecessor node, a static load weight parameter, an inherent load capacity, and a current Information such as load conditions. Step 507: After obtaining the configuration information of the newly added node, the ingress node may generate a new node identifier according to the received multiple status query response message, or may send the status information in the join request response message sent in step 508 to the new node. Join the node, so that the newly joined node generates a new node identifier by itself; or the ingress node performs step 509 according to the received multiple status query response messages.
新加入节点的配置信息即生成新节点标识所需的参数,具体为可用地址空 间范围内的至少两个节点的状态信息, 其中状态信息包括: 节点标识, 或固有 负载能力参数和节点标识, 获取的状态信息还可以包括节点当前的负荷参数 等。  The configuration information of the newly added node is the parameter required for generating the new node identifier, which is specific to the state information of at least two nodes in the available address space, wherein the state information includes: a node identifier, or an inherent load capability parameter and a node identifier, The status information may also include the current load parameters of the node and the like.
入口节点可以根据多个状态查询响应消息得到这些后继节点的静态负载 权重参数和 /或动态负载权重参数, 并进行比较, 获得的至少两个节点可以为 这些备选节点的后继节点中, 静态和 /或动态负载权重参数最大的节点及其前 驱节点, 艮设该节点为节点 P, 其前驱节点为节点 Q; 也可以为这些备选节点 的后继节点中, 静态和 /或动态负载权重参数较大的至少两个节点及对应的前 驱节点, 假设参数较大的某节点为节点 P, 其前驱节点为节点 Q。 则入口节点 获取的配置信息包括: 节点 P和 Q的节点标识; 或节点 P和 Q的节点标识, 及节 点 P的固有负载能力。  The ingress node may obtain static load weight parameters and/or dynamic load weight parameters of the subsequent nodes according to the plurality of status query response messages, and compare, and obtain at least two nodes may be the successor nodes of the candidate nodes, static and / or the node with the largest dynamic load weight parameter and its precursor node, the node is node P, and the precursor node is node Q; or the successor parameters of these candidate nodes are static and/or dynamic load weight parameters. The at least two nodes and the corresponding predecessor nodes are large, assuming that a node with a larger parameter is the node P and the precursor node is the node Q. Then, the configuration information acquired by the ingress node includes: node identifiers of nodes P and Q; or node identifiers of nodes P and Q, and the inherent load capacity of the node P.
在获得配置信息后如果生成新节点标识, 则按照第一策略生成, 即新节点 标识 =节点 Q的节点标识 + (节点 P的节点标识 -节点 Q的节点标识) /2; 或新 节点标识=节点 Q的节点标识 + (节点 P的节点标识-节点 Q的节点标识) X新 节点固有负载能力 / (节点 P固有负载能力 +新节点固有负载能力)。  If a new node identifier is generated after obtaining the configuration information, it is generated according to the first policy, that is, the new node identifier = the node identifier of the node Q + (the node identifier of the node P - the node identifier of the node Q) /2; or the new node identifier = Node ID of node Q + (node ID of node P - node ID of node Q) X new node inherent load capacity / (node P inherent load capacity + new node inherent load capacity).
步骤 508、 入口节点发送加入倚求响应消息给新加入节点, 如果步骤 507 中生成了新节点标识, 则携带该新节点标识; 如果步骤 507中只获得了配置信 息, 则携带配置信息。  Step 508: The ingress node sends a join response message to the new joining node. If the new node identifier is generated in step 507, the new node identifier is carried. If only the configuration information is obtained in step 507, the configuration information is carried.
可以理解, 新加入节点接收到加入请求响应消息, 其中包括配置信息, 则 按照上述步骤 507的方法生成新节点标识, 进一步的, 新加入节点也可以将生 成的节点标识上才艮给集中管理节点。  It can be understood that, when the new joining node receives the join request response message, including the configuration information, the new node identifier is generated according to the method in step 507 above. Further, the newly added node may also send the generated node identifier to the centralized management node. .
步骤 509、 入口节点根据返回的多个状态查询响应消息中的状态信息, 选 择静态负载权重参数和 /或动态负载权重参数最大的后继节点作为第三节点, 或静态负载权重参数和 /或动态负载权重参数较大的至少两个后继节点作为第 三节点;并将第三节点对应的备选节点的节点标识作为新加入节点的新节点标 识,在确定了新节点标识后,可以将该新节点标识发送给新加入节点进行配置。 Step 509: The ingress node selects a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as the third node, or a static load weight parameter and/or a dynamic load according to the status information in the returned multiple status query response message. At least two successor nodes with larger weight parameters as the first The node is identified as the new node identifier of the newly added node. After the new node identifier is determined, the new node identifier can be sent to the newly joined node for configuration.
方法实施例六  Method Embodiment 6
一种节点标识生成方法, 流程图如图 9所示, 包括:  A method for generating a node identifier, which is shown in Figure 9, includes:
步骤 601、 新加入节点获取入口节点地址, 可以通过运营商静态配置或通 过向其它网元查询后得到, 且网络系统中任意一个节点都可以为入口节点; 新 加入节点发送加入请求消息给入口节点,在加入请求消息中包括新加入节点的 关键字 (Key ), 如 IP地址、 MAC地址、 固有负载能力及鉴权认证信息等。  Step 601: The newly added node obtains the address of the ingress node, which can be obtained by static configuration of the operator or by querying other network elements, and any node in the network system can be an ingress node; the newly added node sends a join request message to the ingress node. The keyword (Key) of the newly joined node, such as an IP address, a MAC address, an inherent load capacity, and authentication authentication information, is included in the join request message.
步驟 602、 入口节点将新加入节点的信息发送给认证服务器完成新加入节 点的安全认证, 如果认证通过, 则执行步骤 603, 如果认证没有通过, 则不进 行配置新节点标识。  Step 602: The ingress node sends the information of the newly added node to the authentication server to complete the security authentication of the newly added node. If the authentication succeeds, step 603 is performed. If the authentication fails, the new node identifier is not configured.
步骤 603、 入口节点确定新加入节点的新节点标识可能所在的地址空间范 围, 即可用地址空间范围, 可以确定与新加入节点同类型的网元所处的地址空 间范围, 或网络系统的整个地址空间, 或整个地址空间中的部分地址空间。  Step 603: The ingress node determines a range of address spaces in which the new node identifier of the newly joined node may be located, that is, an available address space range, and may determine an address space range in which the same type of network element as the newly joined node is located, or an entire address of the network system. Space, or part of the address space in the entire address space.
步骤 604、 入口节点通过一个哈希函数计算切入节点的切入节点标识, 首 先从加入倚求消息中获得新加入节点的 Key, 通过第二策略计算切入节点标 识, 则切入节点标识 = Start + Hash ( key ), 其中 Start值可用地址空间范围的起 始点, End是可用地址空间范围的终止点。 而这里选择的 Hash函数是可以将值 散列到与备选地址空间具有相同长度的 [0,End-Start]区间的 Hash函数。  Step 604: The ingress node calculates the cut-in node identifier of the cut-in node by using a hash function, first obtains the key of the newly joined node from the join request message, and calculates the cut-in node identifier by using the second policy, and then the cut-in node identifier = Start + Hash ( Key ), where the Start value is the starting point of the range of available address spaces, and End is the ending point of the range of available address spaces. The Hash function selected here is a Hash function that can hash the value to the [0, End-Start] interval of the same length as the alternate address space.
步骤 605、入口节点发送节点状态信息查询消息给切入节点的后继节点 P1 , 以荻得后继节点 P1的状态信息,在节点状态信息查询消息中包括搜索深度参数 M,表示由节点 P1向后搜索第 M个后续节点的节点标识不超出可用地址空间范 围; 当 M>0时, 后继节点 P1继续节点状态查询消息给节点 P1的后继节点 P2, 其中包括搜索深度参数为 M - 1,这样依次类推,直到 M的值为 0时就不再发送。  Step 605: The ingress node sends a node status information query message to the successor node P1 of the cut-in node to obtain the status information of the successor node P1, and includes a search depth parameter M in the node status information query message, indicating that the node P1 searches backward. The node identifiers of the M subsequent nodes do not exceed the available address space range; when M>0, the successor node P1 continues the node state query message to the successor node P2 of the node P1, including the search depth parameter being M - 1, and so on, It is not sent until the value of M is 0.
步骤 606、这些后继节点假设从 P1到 PN,接收到节点状态信息查询消息后, 进行邻居节点状态的查询, 向入口节点返回状态查询响应消息, 该响应消息中 可以包括: 该后继节点及对应的前驱节点的节点标识、 静态负载权重参数、 固 有负载能力及当前负载情况等。  Step 606: The subsequent nodes assume that the node status information query message is received from the P1 to the PN, and the neighbor node status is queried, and the status query response message is returned to the ingress node, where the response message may include: the successor node and the corresponding The node ID of the precursor node, the static load weight parameter, the inherent load capacity, and the current load condition.
步骤 607、 入口节点根据接收到的多个状态查询响应消息, 获得新加入节 点的配置信息后, 可以生成新节点标识, 也可以将配置信息携带在步骤 608的 加入清求响应消息中发送给新加入节点, 以便新加入节点自己生成新节点标 识。 Step 607: The ingress node obtains a new joining section according to the received multiple status query response messages. After the configuration information of the point, the new node identifier may be generated, or the configuration information may be carried in the join request response message in step 608 and sent to the newly joined node, so that the newly joined node generates the new node identifier by itself.
新加入节点的配置信息即生成新节点标识所需的参数,具体为可用地址空 间范围内的至少两个节点的状态信息, 其中状态信息包括: 节点标识, 或固有 负载能力参数和节点标识, 获取的状态信息还可以包括节点当前的负荷参数 等。  The configuration information of the newly added node is the parameter required for generating the new node identifier, which is specific to the state information of at least two nodes in the available address space, wherein the state information includes: a node identifier, or an inherent load capability parameter and a node identifier, The status information may also include the current load parameters of the node and the like.
入口节点可以从多个状态查询响应消息中得到这些后继节点的静态负载 权重参数和 /或动态负载权重参数, 并进行比较, 获得的至少两个节点可以为 可用地址空间范围内, 在切入节点之后的节点中, 静态和 /或动态负载权重参 数最大的节点及其前驱节点, 假设该节点为节点 P, 其前驱节点为节点 Q; 也 可以为可用地址空间范围内, 在切入节点之后的节点中, 静态和 /或动态负载 权重参数较大的至少两个节点及对应的前驱节点,^ ^设参数较大的某节点为节 点 P, 其前驱节点为节点 Q。 则入口节点获取的配置信息包括: 节点 P和 Q的节 点标识; 或节点 P和 Q的节点标识, 及节点 P的固有负载能力。  The ingress node may obtain static load weight parameters and/or dynamic load weight parameters of the subsequent nodes from the plurality of status query response messages, and compare, and obtain at least two nodes may be within the available address space range, after the node is cut in Among the nodes, the node with the largest static and/or dynamic load weight parameter and its precursor node, assuming that the node is node P, and its precursor node is node Q; it can also be within the available address space, in the node after the node is switched in. At least two nodes with a large static and/or dynamic load weight parameter and corresponding predecessor nodes, a node having a larger parameter is a node P, and a precursor node thereof is a node Q. Then, the configuration information acquired by the ingress node includes: a node identifier of the nodes P and Q; or a node identifier of the nodes P and Q, and an inherent load capacity of the node P.
在获得配置信息后如果生成新节点标识, 则按照第一策略生成, 即新节点 标识 =节点 Q的节点标识 + (节点 P的节点标识 -节点 Q的节点标识) /2; 或新 节点标识=节点 Q的节点标识 + (节点 P的节点标识-节点 Q的节点标识) X新 节点固有负载能力 / (节点 P固有负载能力 +新节点固有负载能力)。  If a new node identifier is generated after obtaining the configuration information, it is generated according to the first policy, that is, the new node identifier = the node identifier of the node Q + (the node identifier of the node P - the node identifier of the node Q) /2; or the new node identifier = Node ID of node Q + (node ID of node P - node ID of node Q) X new node inherent load capacity / (node P inherent load capacity + new node inherent load capacity).
步骤 608、 入口节点发送加入倚求响应消息给新加入节点, 如果步骤 607 中生成了新节点标识, 则携带该新节点标识; 如果步骤 607中只获得了配置信 息, 则携带配置信息。  Step 608: The ingress node sends a join response message to the new joining node. If the new node identifier is generated in step 607, the new node identifier is carried. If only the configuration information is obtained in step 607, the configuration information is carried.
可以理解, 新加入节点接收到加入请求响应消息, 其中包括配置信息, 则 按照上述步骤 607的方法生成新节点标识, 进一步的, 可以将该生成的新节点 标识上 给集中管理节点。  It can be understood that, when the new joining node receives the join request response message, including the configuration information, the new node identifier is generated according to the method in step 607 above. Further, the generated new node identifier may be sent to the centralized management node.
设备实施例一  Equipment Embodiment 1
一种节点设备, 结构示意图如图 10所示, 包括:  A node device, the structure diagram is shown in Figure 10, including:
确定单元 10, 用于接收新加入节点的加入倚求消息, 确定新加入节点的 新节点标识所在的可用地址空间范围; 确定单元 10在确定可用地址空间范围时, 具体地确定与新加入节点同类 型的节点所处的地址空间范围, 或网络系统的整个地址空间, 或整个地址空间 中的部分地址空间为可用地址空间范围。 The determining unit 10 is configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located; When determining the range of available address spaces, the determining unit 10 specifically determines the address space range in which the node of the same type as the newly joined node is located, or the entire address space of the network system, or a part of the address space in the entire address space is the available address space. range.
状态获取单元 11 , 用于获取确定单元 10确定的可用地址空间范围内的至 少一个节点的状态信息, 其中状态信息可以包括: 节点标识, 固有负载能力参 数, 节点当前的负荷参数等;  The state obtaining unit 11 is configured to obtain state information of at least one node in the range of available address space determined by the determining unit 10, where the state information may include: a node identifier, an inherent load capability parameter, a current load parameter of the node, and the like;
可以理解, 如果该节点设备是集中管理节点, 则状态获取单元 11可以直 接在本地存储空间进行读取; 如果该节点设备是入口节点, 在获取节点的状态 信息时, 状态获取单元 11需要通过入口节点发送节点状态信息查询消息给被 查询的节点的方式来获取。  It can be understood that if the node device is a centralized management node, the state obtaining unit 11 can directly read in the local storage space; if the node device is an ingress node, the state obtaining unit 11 needs to pass through the portal when acquiring the state information of the node. The node sends the node status information query message to the queried node to obtain.
第一标识生成单元 12, 用于按照第一策略及状态获取单元 11获取的状态 信息生成至少一个新节点标识, 并将新节点标识发送给新加入节点; 第一策略 包括: 新节点标识为在第一节点后特定距离的节点标识;  The first identifier generating unit 12 is configured to generate at least one new node identifier according to the state information acquired by the first policy and the state acquiring unit 11, and send the new node identifier to the new joining node. The first policy includes: the new node identifier is a node identifier of a specific distance after the first node;
或, 用于将状态获取单元 11获取的状态信息发送给新加入节点, 以便新 加入节点艮据状态信息和第一策略生成至少一个新节点标识。  Or, the status information acquired by the state obtaining unit 11 is sent to the newly joined node, so that the newly added node generates the at least one new node identifier according to the state information and the first policy.
其中该特定距离可以为第二节点与第一节点的节点标识之差的一半;也可 以为第二节点与第一节点的节点标识之差,与新加入节点的固有负载能力参数 与第二节点和新加入节点固有负载能力参数之和的比值的乘积;还可以为其他 任意距离。 其中第二节点为第一节点的后继节点。  The specific distance may be half of the difference between the node identifier of the second node and the first node; or may be the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly added node and the second node The product of the ratio of the sum of the new intrinsic load capacity parameters of the node; it can also be any other distance. The second node is a successor node of the first node.
可见, 本发明实施例的节点设备中: 确定单元 10接收到新加入节点的加 入请求消息, 确定该新加入节点的新节点标识所在的可用地址空间范围; 由状 态获取单元 11获取可用地址空间范围内的至少一个节点的状态信息; 最后第 一标识生成单元 12按照第一策略及状态信息生成至少一个新节点标识, 或将 状态信息发送给新加入节点,以便新加入节点根据状态信息和第一策略生成至 少一个新节点标识, 其中第一策略包括: 新节点标识为在第一节点的节点标识 后特定距离的节点标识。 这样通过新加入节点和网络系统中已有节点的配合, 当接收到加入请求消息后,将新加入节点配置在网络系统中已有的第一节点后 特定距离, 使得新节点标识的配置不需要人为参与, 筒化了配置流程。  It can be seen that, in the node device of the embodiment of the present invention, the determining unit 10 receives the join request message of the newly joined node, determines the available address space range in which the new node identifier of the newly joined node is located, and obtains the available address space range by the state acquiring unit 11. The status information of the at least one node in the first; the first first identifier generating unit 12 generates at least one new node identifier according to the first policy and the status information, or sends the status information to the newly joined node, so that the newly joined node is based on the status information and the first The policy generates at least one new node identifier, where the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node. In this way, through the cooperation of the newly added node and the existing node in the network system, after receiving the join request message, the newly added node is configured at a certain distance after the first node existing in the network system, so that the configuration of the new node identifier is not required. Human participation, the configuration process is streamlined.
参考图 11所示,在一个具体的实施例中,上述状态获取单元 11可以包括: 第一参数比较单元 110, 用于当确定单元 10确定可用地址空间范围后, 比较可用地址空间范围中所有节点的静态负载权重参数和 /或动态负载权重参 数; Referring to FIG. 11, in a specific embodiment, the foregoing state acquiring unit 11 may include: The first parameter comparison unit 110 is configured to compare static load weight parameters and/or dynamic load weight parameters of all nodes in the available address space range after the determining unit 10 determines the available address space range;
读取单元 111 , 用于读取第一参数比较单元 110比较的静态负载权重参数 和 /或动态负载权重参数最大的节点及其前驱节点的状态信息, 这时第一节点 为静态负载权重参数和 /或动态负载权重参数最大的节点对应的前驱节点; 或, 用于读取第一参数比较单元 110 比较的静态负载权重参数和 /或动态 负载权重参数较大的至少两个节点及相应的前驱节点的状态信息;第一节点为 静态负载权重参数和 /或动态负载权重参数较大的至少两个节点相应的前驱节 点。  The reading unit 111 is configured to read the static load weight parameter and/or the state information of the node with the largest dynamic load weight parameter and the precursor node of the first parameter comparison unit 110, where the first node is a static load weight parameter and And a predecessor node corresponding to the node with the largest dynamic load weight parameter; or at least two nodes and corresponding predecessors for reading the static load weight parameter and/or the dynamic load weight parameter that are compared by the first parameter comparison unit 110 State information of the node; the first node is a predecessor node corresponding to at least two nodes having a static load weight parameter and/or a dynamic load weight parameter.
在读取单元 111读取状态信息后, 第一标识生成单元 12则按照第一策略 及状态信息进行新节点标识的生成。  After the reading unit 111 reads the status information, the first identifier generating unit 12 performs the generation of the new node identifier according to the first policy and the status information.
参考图 12所示, 在另一个具体的实施例中, 上述状态获取单元 11还可以 包括:  Referring to FIG. 12, in another specific embodiment, the foregoing state acquiring unit 11 may further include:
备选计算单元 112, 用于当确定单元 10确定可用地址空间范围后, 通过 至少两个哈希函数与第二策略计算至少两个备选节点的备选节点标识,第二策 略包括: 备选节点标识为可用地址空间范围的起始点, 与新加入节点关键字对 应哈希计算散列值的和;  The candidate calculation unit 112 is configured to: after the determining unit 10 determines the available address space range, calculate the candidate node identifiers of the at least two candidate nodes by using at least two hash functions and the second policy, where the second policy includes: The node identifier is the starting point of the range of available address spaces, and the hash corresponding to the newly added node keyword is calculated as the sum of the hash values;
第二参数比较单元 113, 用于比较备选计算单元 112计算的至少两个备选 节点的后继节点的静态负载权重参数和 /或动态负载权重参数;  The second parameter comparison unit 113 is configured to compare the static load weight parameter and/or the dynamic load weight parameter of the successor node of the at least two candidate nodes calculated by the candidate calculation unit 112;
第一获取单元 114, 用于荻取第二参数比较单元 113比较的静态负载权重 参数和 /或动态负载权重参数最大的节点及其前驱节点的状态信息, 这时第一 节点为至少两个备选节点的后继节点中, 静态负载权重参数和 /或动态负载权 重参数最大的节点对应的其前驱节点;  The first obtaining unit 114 is configured to retrieve the static load weight parameter and/or the state information of the node with the largest dynamic load weight parameter and the status of the precursor node that are compared by the second parameter comparing unit 113, and the first node is at least two devices. Among the successor nodes of the selected node, the static load weight parameter and/or the node with the largest dynamic load weight parameter correspond to its precursor node;
或, 用于获取第二参数比较单元 113 比较的静态负载权重参数和 /或动态 负载权重参数较大的至少两个节点及相应的前驱节点的状态信息;这时第一节 点为静态负载权重参数和 /或动态负载权重参数较大的至少两个节点相应的前 驱节点。  Or for obtaining the static load weight parameter and/or the dynamic load weight parameter of the second parameter comparison unit 113 for comparing at least two nodes and the state information of the corresponding precursor node; at this time, the first node is a static load weight parameter. And/or a predecessor node corresponding to at least two nodes having a large dynamic load weight parameter.
在第一获取单元 114获取状态信息后, 第一标识生成单元 12则按照第一 策略及状态信息进行新节点标识的生成。 After the first obtaining unit 114 acquires the state information, the first identifier generating unit 12 follows the first Policy and status information for the generation of new node IDs.
参考图 13所示, 在另一个具体的实施例中, 上述状态获取单元 11还可以 包括:  Referring to FIG. 13, in another specific embodiment, the foregoing state acquiring unit 11 may further include:
切入计算单元 115, 用于当确定单元 10确定可用地址空间范围后, 通过 一个哈希函数与第二策略计算切入节点的切入节点标识, 第二策略包括: 切入 节点标识为可用地址空间范围的起始点,与新加入节点关键字对应哈希计算散 列值的和;  The cut-in calculation unit 115 is configured to calculate a cut-in node identifier of the cut-in node by using a hash function and a second policy after the determining unit 10 determines the available address space range, where the second policy includes: the cut-in node identifier is a range of available address space Starting point, the hash corresponding to the newly added node keyword is calculated as the sum of the hash values;
第三参数比较单元 116,用于比较可用地址空间范围内,切入计算单元 115 计算的切入节点的后继节点和其后继节点的静态负载权重参数和 /或动态负载 权重参数;  The third parameter comparison unit 116 is configured to compare the static load weight parameter and/or the dynamic load weight parameter of the successor node of the cut-in node and the successor node calculated by the calculation unit 115 within the available address space range;
第二获取单元 117, 用于获取第三参数比较单元 116比较的静态负载权重 参数和 /或动态负载权重参数最大的节点及其前驱节点的状态信息, 这时第一 节点为切入节点的至少一个连续的后续节点中, 静态负载权重参数和 /或动态 负载权重参数最大的节点对应的前驱节点;  The second obtaining unit 117 is configured to acquire the static load weight parameter and/or the state information of the node with the largest dynamic load weight parameter and the precursor node thereof, and the first node is at least one of the cut-in nodes. Among the consecutive subsequent nodes, the static load weight parameter and/or the predecessor node corresponding to the node with the largest dynamic load weight parameter;
或, 用于获取第三参数比较单元 116 比较的获取静态负载权重参数和 /或 动态负载权重参数较大的至少两个节点及相应的前驱节点的状态信息; 这时, 第一节点为静态负载权重参数和 /或动态负载权重参数较大的至少两个节点相 应的前驱节点。  Or, used to obtain the state information of the at least two nodes and the corresponding precursor nodes that are obtained by comparing the static load weight parameter and/or the dynamic load weight parameter compared by the third parameter comparison unit 116; at this time, the first node is a static load. The at least two nodes corresponding to the weight parameter and/or the dynamic load weight parameter are corresponding to the precursor node.
在第二获取单元 117获取状态信息后, 第一标识生成单元 12则按照第一 策略及状态信息进行新节点标识的生成。  After the second obtaining unit 117 acquires the status information, the first identifier generating unit 12 performs the generation of the new node identifier according to the first policy and the status information.
设备实施例二  Equipment Embodiment 2
一种节点设备, 结构示意图如图 14所示, 包括:  A node device, the structure diagram shown in Figure 14, includes:
加入发送单元 20, 用于发送新加入节点的加入请求消息;  The sending unit 20 is configured to send a join request message of the newly joined node;
状态接收单元 21, 用于接收根据加入发送单元 20发送的加入请求消息返 回的状态信息,其中状态信息包括新加入节点的新节点标识所在的可用地址空 间范围内, 至少一个节点的状态信息如节点标识, 固有负载能力参数节点当前 的负荷参数等;  The status receiving unit 21 is configured to receive status information returned according to the join request message sent by the join sending unit 20, where the status information includes a range of available address spaces in which the new node identifier of the newly joined node is located, and status information of the at least one node, such as a node. Identification, current load capacity parameter node current load parameters, etc.;
可用地址空间范围具体为:与新加入节点同类型的节点所处的地址空间范 围为可用地址空间范围; 或, 网络系统的整个地址空间或整个地址空间中的部 分地址空间。 The available address space ranges specifically: the address space range of the same type of node as the newly joined node is the available address space range; or, the entire address space of the network system or the entire address space Sub-address space.
第二标识生成单元 22, 用于按照第一策略及状态接收单元 21接收的状态 信息生成至少一个新节点标识; 第一策略包括: 新节点标识为在第一节点的节 点标识后特定距离的节点标识。  The second identifier generating unit 22 is configured to generate at least one new node identifier according to the first policy and the state information received by the state receiving unit 21; the first policy includes: the new node identifier is a node at a specific distance after the node identifier of the first node Logo.
这里特定距离可以为第二节点与第一节点的节点标识之差的一半;也可以 第二节点与第一节点的节点标识之差 ,与新加入节点的固有负载能力参数与第 二节点和新加入节点固有负载能力参数之和的比值的乘积,还可以为其他任意 距离。  Here, the specific distance may be half of the difference between the node identifier of the second node and the first node; the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly joined node with the second node and the new node The product of the ratio of the sum of the nodes' inherent load capacity parameters can also be any other distance.
可以理解, 本实施例的节点设备中, 加入发送单元 20发送了加入倚求消 息后, 当状态接收单元 21 接收到返回的状态信息, 则第二标识生成单元 22 进行新节点标识的生成, 这样在新节点加入网络系统时, 通过加入发送单元 20、状态接收单元 21和第二标识生成单元 22几个单元的配合, 可以配置新节 点标识, 不需要人工参与, 简化了配置流程。  It can be understood that, in the node device of this embodiment, after the join sending unit 20 sends the join request message, when the state receiving unit 21 receives the returned state information, the second identifier generating unit 22 performs the generation of the new node identifier. When the new node joins the network system, by joining the sending unit 20, the state receiving unit 21, and the second identifier generating unit 22, the new node identifier can be configured without manual participation, which simplifies the configuration process.
设备实施例三  Equipment Embodiment 3
一种节点设备, 结构示意图如图 15所示, 包括:  A node device, the structure diagram is shown in Figure 15, including:
接收确定单元 30, 用于接收新加入节点的加入请求消息, 确定该新加入 节点的新节点标识所在的可用地址空间范围,其中加入情求消息中包括新加入 节点的节点关键字;  The receiving determining unit 30 is configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node;
可用地址空间范围具体为:与新加入节点同类型的节点所处的地址空间范 围为可用地址空间范围; 或, 网络系统的整个地址空间或整个地址空间中的部 分地址空间。  The available address space ranges specifically: the address space range of the node of the same type as the newly joined node is the available address space range; or, the entire address space of the network system or the partial address space in the entire address space.
这里新加入节点的节点关键字可以为新加入节点的 IP地址、 固有负载能 力、 MAC地址及鉴权认证信息等信息。  Here, the node keyword of the newly added node may be information such as the IP address, the inherent load capacity, the MAC address, and the authentication authentication information of the newly added node.
备选计算单元 31, 用于根据第二策略和至少两个哈希函数计算至少两个 备选节点的备选节点标识, 第二策略包括: 备选节点标识为接收确定单元 30 确定的可用地址空间范围的起始点,与新加入节点的节点关键字对应哈希计算 散列值的和;  The candidate calculation unit 31 is configured to calculate an candidate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is an available address determined by the receiving determining unit 30 The starting point of the spatial range, corresponding to the node keyword of the newly joined node, hashes the sum of the hash values;
选择单元 32,用于选择备选计算单元 31计算的至少两个备选节点的后继节 点中, 静态负载权重参数和 /或动态负载权重参数最大的后继节点作为第三节 点, 或静态负载权重参数和 /或动态负载权重参数较大的至少两个后继节点作 为第三节点; The selecting unit 32 is configured to select, in the successor node of the at least two candidate nodes calculated by the candidate calculating unit 31, the static load weight parameter and/or the successor node with the largest dynamic load weight parameter as the third node Point, or at least two successor nodes having a static load weight parameter and/or a dynamic load weight parameter as a third node;
标识确定单元 33, 用于将选择单元 32选择的第三节点对应的备选节点的 节点标识作为新加入节点的新节点标识。  The identifier determining unit 33 is configured to use the node identifier of the candidate node corresponding to the third node selected by the selecting unit 32 as the new node identifier of the newly joined node.
本实施例的节点设备中: 接收确定单元 30在接收到加入请求消息后, 确定 可用地址空间范围;备选计算单元 31根据第二策略和至少两个哈希函数计算至 少两个备选节点的备选节点标识, 其中第二策略包括: 备选节点标识为可用地 址空间范围的起始点, 与新加入节点的节点关键字对应哈希计算散列值的和; 选择单元 32将至少两个备选节点的后继节点中, 静态负载权重参数和 /或动态 负载权重参数最大或较大的后继节点选择为第三节点,标识确定单元 33则确定 第三节点对应的备选节点标识作为新节点标识。 这样当接收到加入请求消息 后,通过新加入节点和网络系统中已有节点的配合,将新加入节点配置在网络 系统中已有的第三节点之前,使得新节点标识的配置不需要人为参与, 简化了 配置流程。  In the node device of this embodiment, the receiving determining unit 30 determines the available address space range after receiving the join request message; the candidate calculating unit 31 calculates the at least two candidate nodes according to the second policy and the at least two hash functions. An alternative node identifier, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the sum of the hash values is calculated corresponding to the node keyword of the newly joined node; the selecting unit 32 will at least two In the successor node of the selected node, the succeeding node with the largest or larger static load weight parameter and/or the dynamic load weight parameter is selected as the third node, and the identifier determining unit 33 determines the candidate node identifier corresponding to the third node as the new node identifier. . After receiving the join request message, the new join node is configured in front of the existing third node in the network system by the cooperation of the newly added node and the existing node in the network system, so that the configuration of the new node identifier does not need to be manually participated. , simplifies the configuration process.
系统实施例  System embodiment
一种节点标识的生成系统, 包括: 网络节点和新加入节点, 其中: 网络节点, 用于接收新加入节点的加入情求消息, 确定新加入节点的新节 点标识所在的可用地址空间范围;获取可用地址空间范围内的至少一个节点的 状态信息; 将状态信息发送给新加入节点;  A system for generating a node identifier, comprising: a network node and a newly joined node, where: a network node, configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located; Status information of at least one node in the available address space; sending status information to the newly joined node;
这里状态信息包括: 节点标识, 固有负载能力参数、 节点当前的负荷参数 等;  The status information here includes: a node identifier, an inherent load capability parameter, a current load parameter of the node, and the like;
新加入节点, 用于发送新加入节点的加入情求消息; 接收到根据加入请求 消息返回的状态信息, 按照第一策略及状态信息生成至少一个新节点标识; 第 一策略包括: 新节点标识为在第一节点的节点标识后特定距离的节点标识。  a new joining node, configured to send a join request message of the newly joined node; receiving the status information returned according to the join request message, generating at least one new node identifier according to the first policy and the status information; the first policy includes: the new node identifier is: The node identifier of a specific distance after the node of the first node is identified.
这里特定距离可以为第二节点与第一节点的节点标识之差的一半;也可以 为第二节点与第一节点的节点标识之差,与新加入节点的固有负载能力参数与 第二节点和新加入节点固有负载能力参数之和的比值的乘积;还可以为其他任 意距离。  Here, the specific distance may be half of the difference between the node identifier of the second node and the first node; or may be the difference between the node identifier of the second node and the first node, and the inherent load capacity parameter of the newly joined node and the second node and The product of the ratio of the new node's inherent load capacity parameters; it can also be any other distance.
本实施实例的系统中网络节点与新加入节点在生成节点标识时,可以按照 上述方法实施例的方法进行执行, 在此不再赘述。 In the system of this embodiment, when a network node and a newly joined node generate a node identifier, they may follow The method of the foregoing method embodiment is performed, and details are not described herein again.
可见, 本发明实施例提供的节点标识生成方法、 系统及设备, 在接收到新 加入节点的加入请求消息,确定该新加入节点的新节点标识所在的可用地址空 间范围; 并获取可用地址空间范围内的至少一个节点的状态信息; 最后按照第 一策略及状态信息生成至少一个新节点标识, 或将状态信息发送给新加入节 点, 以便新加入节点 #>据状态信息和第一策略生成至少一个新节点标识, 其中 第一策略包括: 新节点标识为在第一节点的节点标识后特定距离的节点标识。 这样当接收到加入请求消息后, 通过新加入节点和网络系统中已有节点的配 合,将新加入节点配置在网络系统中已有的第一节点后特定距离,使得新节点 标识的配置不需要人为参与, 简化了配置流程。 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: ROM、 RAM, 磁盘或光盘等。  It can be seen that the node identifier generation method, system, and device provided by the embodiment of the present invention receive the join request message of the newly joined node, determine the available address space range in which the new node identifier of the newly joined node is located, and obtain the available address space range. At least one node's state information; finally generating at least one new node identifier according to the first policy and the state information, or sending the state information to the newly joined node, so that the new joining node #> generates the at least one according to the state information and the first policy The new node identifier, where the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node. After receiving the join request message, the new join node is configured with a certain distance after the first node existing in the network system by using the newly joined node and the existing node in the network system, so that the configuration of the new node identifier is not required. Human involvement simplifies the configuration process. The program may be executed by instructing related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include: a ROM, a RAM, a magnetic disk or an optical disk.
以上对本发明实施例所提供的节点标识的生成方法、 系统及设备, 进行了 上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本 领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会 有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The foregoing description of the method, system and device for generating the node identifier provided by the embodiment of the present invention is only for assisting in understanding the method and core idea of the present invention. Meanwhile, for those skilled in the art, based on The present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种节点标识的生成方法, 其特征在于, 包括:  A method for generating a node identifier, comprising:
接收新加入节点的加入请求消息 ,确定所述新加入节点的新节点标识所在 的可用地址空间范围;  Receiving a join request message of the newly joined node, determining a range of available address spaces in which the new node identifier of the newly joined node is located;
获取所述可用地址空间范围内的至少一个节点的状态信息;  Obtaining state information of at least one node in the range of available address spaces;
按照第一策略及所述状态信息生成至少一个新节点标识,并将所述新节点 标识发送给所述新加入节点; 所述第一策略包括: 新节点标识为在第一节点的 节点标识后特定距离的节点标识; 或,  Generating at least one new node identifier according to the first policy and the state information, and sending the new node identifier to the new joining node; the first policy includes: the new node identifier is after the node identifier of the first node Node ID for a specific distance; or,
将所述状态信息发送给所述新加入节点,以便所述新加入节点根据所述状 态信息和第一策略生成至少一个新节点标识, 第一策略包括: 新节点标识为在 第一节点的节点标识后特定巨离的节点标识。  Transmitting the status information to the new joining node, so that the newly joining node generates at least one new node identifier according to the status information and the first policy, where the first policy includes: the new node identifier is a node at the first node A node identifier that identifies a specific large distance.
2、 如权利要求 1所述的方法, 其特征在于, 所述特定距离为预置的距离; 或,  2. The method according to claim 1, wherein the specific distance is a preset distance; or
所述特定距离为所述第一节点的后继节点与第一节点的节点标识之差的 一半; 或,  The specific distance is half of a difference between a successor node of the first node and a node identifier of the first node; or
所述特定距离为所述第一节点的后继节点与第一节点的节点标识之差,与 所述新加入节点的固有负载能力参数与第一节点的后继节点和新加入节点固 有负载能力参数之和的比值的乘积。  The specific distance is a difference between a successor node of the first node and a node identifier of the first node, and an inherent load capacity parameter of the newly added node and a successor parameter of the first node and a new node intrinsic load capacity parameter The product of the ratio of the sum.
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述确定新加入节点的 新节点标识所在的可用地址空间范围具体包括:  The method according to claim 1 or 2, wherein the determining the available address space range in which the new node identifier of the newly joined node is located specifically includes:
确定与所述新加入节点同类型的节点所处的地址空间范围为可用地址空 间范围; 或,  Determining an address space range in which a node of the same type as the newly joined node is in an available address space range; or
确定网络系统的整个地址空间或整个地址空间中的部分地址空间为可用 地址空间范围。  Determine the entire address space of the network system or part of the address space in the entire address space as a range of available address spaces.
4、 如权利要求 2所述的方法, 其特征在于, 所述获取所述可用地址空间 范围内的至少一个节点的状态信息具体包括:  The method of claim 2, wherein the obtaining the status information of the at least one node in the range of the available address space comprises:
比较所述可用地址空间范围中所有节点的静态负载权重参数和 /或动态负 载权重参数;  Comparing static load weight parameters and/or dynamic load weight parameters of all nodes in the available address space range;
读取静态负载权重参数和 /或动态负载权重参数最大的节点及其前驱节点 的状态信息 , 所述第一节点为所述静态负载权重参数和 /或动态负载权重参数 最大的节点对应的前驱节点; 或, Read the node with the largest static load weight parameter and/or dynamic load weight parameter and its precursor node Status information, the first node is a predecessor node corresponding to the node with the static load weight parameter and/or the dynamic load weight parameter being the largest; or
读取静态负载权重参数和 /或动态负载权重参数较大的至少一个节点及相 应的前驱节点的状态信息; 所述第一节点为静态负载权重参数和 /或动态负载 权重参数较大的至少两个节点相应的前驱节点。  Reading at least one node of the static load weight parameter and/or the dynamic load weight parameter and status information of the corresponding precursor node; the first node is at least two of a static load weight parameter and/or a dynamic load weight parameter The corresponding predecessor node of each node.
5、 如权利要求 2所述的方法, 其特征在于, 所述获取所述可用地址空间 范围内的至少一个节点的状态信息具体包括:  The method of claim 2, wherein the obtaining the status information of the at least one node in the range of the available address space comprises:
通过至少两个哈希函数与第二策略计算至少两个备选节点的备选节点标 识, 所述第二策略包括: 备选节点标识为所述可用地址空间范围的起始点, 与 新加入节点关键字对应哈希计算散列值的和;  Calculating the candidate node identifiers of the at least two candidate nodes by using at least two hash functions and the second policy, where the second policy includes: the candidate node identifier is a starting point of the available address space range, and the newly joined node The keyword corresponds to the hash to calculate the sum of the hash values;
比较所述至少两个备选节点的后继节点的静态负载权重参数和 /或动态负 载权重参数;  Comparing static load weight parameters and/or dynamic load weight parameters of successor nodes of the at least two candidate nodes;
获取静态负载权重参数和 /或动态负载权重参数最大的节点及其前驱节点 的状态信息, 所述第一节点为所述至少两个备选节点的后继节点中,静态负载 权重参数和 /或动态负载权重参数最大的节点对应的前驱节点;  Obtaining state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a precursor node thereof, wherein the first node is a successor of the at least two candidate nodes, a static load weight parameter and/or a dynamic a predecessor node corresponding to a node having the largest load weight parameter;
或,  Or,
获取静态负载权重参数和 /或动态负载权重参数较大的至少两个节点及相 应的前驱节点的状态信息; 所述第一节点为静态负载权重参数和 /或动态负载 权重参数较大的至少两个节点相应的前驱节点。  Obtaining state information of at least two nodes and corresponding predecessor nodes with a static load weight parameter and/or a dynamic load weight parameter; the first node is at least two of a static load weight parameter and/or a dynamic load weight parameter The corresponding predecessor node of each node.
6、 如权利要求 2所述的方法, 其特征在于, 所述获取所述可用地址空间 范围内的至少两个节点的状态信息具体包括:  The method of claim 2, wherein the obtaining the status information of the at least two nodes in the range of the available address space comprises:
通过一个哈希函数与第二策略计算切入节点的切入节点标识,所述第二策 略包括: 切入节点标识为所述可用地址空间范围的起始点, 与新加入节点关键 字对应哈希计算散列值的和;  Computing a cut-in node identifier of the cut-in node by using a hash function and a second policy, where the second policy includes: the cut-in node identifier is a starting point of the available address space range, and the hash calculation hash corresponding to the newly added node keyword The sum of values;
比较所述可用地址空间范围内,切入节点的后继节点和后续节点的静态负 载权重参数和 /或动态负载权重参数;  Comparing the static load weight parameter and/or the dynamic load weight parameter of the successor node and subsequent nodes of the node into the range of available address space;
获取静态负载权重参数和 /或动态负载权重参数最大的节点及其前驱节点 的状态信息, 所述第一节点为所述切入节点的后继节点和所有后续中,静态负 载权重参数和 /或动态负载权重参数最大的节点对应的前驱节点; 或, Obtaining state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a precursor node thereof, the first node being a successor node of the hand-cut node and all subsequent, static load weight parameters and/or dynamic load a predecessor node corresponding to the node with the largest weight parameter; or,
获取静态负载权重参数和 /或动态负载权重参数较大的至少两个节点及相 应的前驱节点的状态信息; 或所述第一节点为静态负载权重参数和 /或动态负 载权重参数较大的至少两个节点相应的前驱节点。  Obtaining state information of at least two nodes and corresponding predecessor nodes having a large static load weight parameter and/or a dynamic load weight parameter; or the first node is at least a static load weight parameter and/or a dynamic load weight parameter The corresponding precursor node of the two nodes.
7、 一种节点标识的生成方法, 其特征在于, 包括:  A method for generating a node identifier, comprising:
发送新加入节点的加入奇求消息;  Send the join request message of the newly joined node;
接收根据所述加入请求消息返回的状态信息,所述状态信息包括所述新加 入节点的新节点标识所在的可用地址空间范围内, 至少一个节点的状态信息; 按照第一策略及所述状态信息生成至少一个新节点标识;所述第一策略包 括: 新节点标识为在第一节点的节点标识后特定距离的节点标识。  Receiving status information returned according to the join request message, where the status information includes status information of at least one node within a range of available address spaces in which the new node identifier of the newly joined node is located; according to the first policy and the status information Generating at least one new node identifier; the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
8、 如权利要求 7所述的方法, 其特征在于, 所述特定距离为预置的距离; 或,  8. The method according to claim 7, wherein the specific distance is a preset distance; or
所述特定距离为第一节点的后继节点与第一节点的节点标识之差的一半; 或,  The specific distance is half of a difference between a successor node of the first node and a node identifier of the first node; or
所述特定距离为第一节点的后继节点与第一节点的节点标识之差,与所述 新加入节点的固有负载能力参数与第一节点的后继节点和新加入节点固有负 载能力参数之和的比值的乘积。  The specific distance is the difference between the successor node of the first node and the node identifier of the first node, and the sum of the inherent load capacity parameter of the newly joined node and the successor parameter of the successor node of the first node and the newly added node. The product of the ratio.
9、 如权利要求 7或 8所述的方法, 其特征在于, 所述可用地址空间范围 具体为:与所迷新加入节点同类型的节点所处的地址空间范围为可用地址空间 范围; 或, 网络系统的整个地址空间或整个地址空间中的部分地址空间。  The method according to claim 7 or 8, wherein the range of available address spaces is specifically: an address space range in which a node of the same type as the newly joined node is in an available address space range; or The entire address space of the network system or part of the address space in the entire address space.
10、 一种节点标识生成方法, 其特征在于, 包括:  A method for generating a node identifier, comprising:
接收新加入节点的加入倚求消息,确定该新加入节点的新节点标识所在的 可用地址空间范围, 所述加入情求消息中包括新加入节点的节点关键字; 根据第二策略和至少两个哈希函数计算至少两个备选节点的备选节点标 识, 所述第二策略包括: 备选节点标识为所述可用地址空间范围的起始点, 与 新加入节点的节点关键字对应哈希计算散列值的和;  Receiving a join request message of the newly joined node, determining a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node; according to the second policy and at least two The hash function calculates an alternate node identifier of the at least two candidate nodes, and the second policy includes: the candidate node identifier is a starting point of the available address space range, and the hash calculation corresponding to the node keyword of the newly joined node The sum of the hash values;
选择所述至少两个备选节点的后继节点中, 静态负载权重参数和 /或动态 负载权重参数最大的后继节点作为第三节点, 或静态负载权重参数和 /或动态 负载权重参数较大的至少两个后继节点作为第三节点; 将所述第三节点对应的备选节点的节点标识作为新加入节点的新节点标 识。 Selecting a successor node of the at least two candidate nodes, a static load weight parameter and/or a successor node having a maximum dynamic load weight parameter as a third node, or a static load weight parameter and/or a dynamic load weight parameter having at least a larger parameter Two successor nodes as the third node; The node identifier of the candidate node corresponding to the third node is used as the new node identifier of the newly joined node.
11、 如权利要求 10所述的方法, 其特征在于, 所述确定该新加入节点的 新节点标识所在的可用地址空间范围具体包括:确定与所述新加入节点同类型 的节点所处的地址空间范围为可用地址空间范围; 或,  The method according to claim 10, wherein the determining the range of available address spaces in which the new node identifier of the newly joined node is located comprises: determining an address of a node of the same type as the newly joined node The spatial extent is the range of available address spaces; or,
确定网络系统的整个地址空间或整个地址空间中的部分地址空间为可用 地址空间范围。  Determine the entire address space of the network system or part of the address space in the entire address space as a range of available address spaces.
12、 一种节点设备, 其特征在于, 包括:  12. A node device, comprising:
确定单元, 用于接收新加入节点的加入请求消息, 确定所述新加入节点的 新节点标识所在的可用地址空间范围;  a determining unit, configured to receive a join request message of the newly joined node, and determine a range of available address spaces in which the new node identifier of the newly joined node is located;
状态获取单元,用于获取所述可用地址空间范围内的至少一个节点的状态 信息;  a state obtaining unit, configured to acquire state information of at least one node in the available address space range;
第一标识生成单元,用于按照第一策略及所述状态信息生成至少一个新节 点标识;所述第一策略包括:新节点标识为在第一节点后特定距离的节点标识, 并将所述新节点标识发送给所述新加入节点; 或, 用于将所述状态信息发送给 所述新加入节点,以便所述新加入节点根据所述状态信息和第一策略生成至少 一个新节点标识。  a first identifier generating unit, configured to generate at least one new node identifier according to the first policy and the state information; the first policy includes: the new node identifier is a node identifier of a specific distance after the first node, and the Sending the new node identifier to the new joining node; or, for sending the status information to the new joining node, so that the newly joining node generates at least one new node identifier according to the status information and the first policy.
13、 如权利要求 12所述的设备, 其特征在于, 所述状态获取单元包括: 第一参数比较单元 ,用于比较所述可用地址空间范围中所有节点的静态负 载权重参数和 /或动态负载权重参数;  The device according to claim 12, wherein the state obtaining unit comprises: a first parameter comparing unit, configured to compare static load weight parameters and/or dynamic loads of all nodes in the available address space range Weight parameter
读取单元, 用于读取静态负载权重参数和 /或动态负载权重参数最大的节 点及其前驱节点的状态信息, 所述第一节点为所述静态负载权重参数和 /或动 态负载权重参数最大的节点对应的其前驱节点;  a reading unit, configured to read status information of a node with a maximum static load weight parameter and/or a dynamic load weight parameter and a precursor node thereof, where the first node is the static load weight parameter and/or the dynamic load weight parameter is the largest The node corresponding to its predecessor node;
或, 用于读取静态负载权重参数和 /或动态负载权重参数较大的至少两个 节点及相应的前驱节点的状态信息, 所述第一节点为静态负载权重参数和 /或 动态负载权重参数较大的至少两个节点相应的前驱节点。  Or for reading status information of at least two nodes and corresponding predecessor nodes having a large static load weight parameter and/or a dynamic load weight parameter, wherein the first node is a static load weight parameter and/or a dynamic load weight parameter A larger predecessor node of at least two nodes.
14、 如权利要求 12所述的设备, 其特征在于, 所述状态获取单元包括: 备选计算单元,用于通过至少两个哈希函数与第二策略计算至少两个备选 节点的备选节点标识, 所述第二策略包括: 备选节点标识为所述可用地址空间 范围的起始点, 与新加入节点关键字对应哈希计算散列值的和; 第二参数比较单元,用于比较所述至少两个备选节点的后继节点的静态负 载权重参数和 /或动态负载权重参数; The device according to claim 12, wherein the state obtaining unit comprises: an alternative calculating unit, configured to calculate an candidate of the at least two candidate nodes by using at least two hash functions and the second policy a node identifier, where the second policy includes: the candidate node identifier is the available address space a starting point of the range, a hash corresponding to the newly added node keyword to calculate a sum of hash values; a second parameter comparing unit, configured to compare static load weight parameters and/or dynamics of the successor nodes of the at least two candidate nodes Load weight parameter
第一获取单元, 用于获取静态负载权重参数和 /或动态负载权重参数最大 的节点及其前驱节点的状态信息,所述第一节点为所述至少两个备选节点的后 继节点中, 静态负载权重参数和 /或动态负载权重参数最大的节点对应的前驱 节点;  a first acquiring unit, configured to acquire state information of a node with a static load weight parameter and/or a dynamic load weight parameter and a precursor node thereof, wherein the first node is a successor node of the at least two candidate nodes, and is static a predecessor node corresponding to a node having a load weight parameter and/or a dynamic load weight parameter;
或, 用于获取静态负载权重参数和 /或动态负载权重参数较大的至少两个 节点及相应的前驱节点的状态信息; 所述第一节点为静态负载权重参数和 /或 动态负载权重参数较大的至少两个节点相应的前驱节点。  Or for obtaining state information of at least two nodes and corresponding predecessor nodes having a large static load weight parameter and/or a dynamic load weight parameter; wherein the first node is a static load weight parameter and/or a dynamic load weight parameter Larger at least two nodes corresponding to the precursor nodes.
15、 如权利要求 12所述的设备, 其特征在于, 所述状态获取单元包括: 切入计算单元,用于通过一个哈希函数与第二策略计算切入节点的切入节 点标识,所述第二策略包括:切入节点标识为所述可用地址空间范围的起始点, 与新加入节点关键字对应哈希计算散列值的和;  The device according to claim 12, wherein the state obtaining unit comprises: a cut-in computing unit, configured to calculate a cut-in node identifier of the cut-in node by using a hash function and a second policy, the second policy The method includes: a cut-in node identifier is a starting point of the available address space range, and a hash corresponding to the newly added node keyword is used to calculate a sum of hash values;
第三参数比较单元, 用于比较所述可用地址空间范围内, 切入节点的后继 节点和所有后续节点的静态负载权重参数和 /或动态负载权重参数;  a third parameter comparison unit, configured to compare static load weight parameters and/or dynamic load weight parameters of the successor node and all subsequent nodes within the available address space;
第二获取单元, 用于获取静态负载权重参数和 /或动态负载权重参数最大 的节点及其前驱节点的状态信息,所述第一节点为所述切入节点的后继节点和 所有后继节点中, 静态负载权重参数和 /或动态负载权重参数最大的节点对应 的前驱节点;  a second acquiring unit, configured to acquire state information of a node with a maximum static load weight parameter and/or a dynamic load weight parameter and a precursor node thereof, where the first node is a successor node of the cut-in node and all subsequent nodes, and is static a predecessor node corresponding to a node having a load weight parameter and/or a dynamic load weight parameter;
或, 用于获取静态负载权重参数和 /或动态负载权重参数较大的至少两个 节点及相应的前驱节点的状态信息; 所述第一节点为静态负载权重参数和 /或 动态负载权重参数较大的至少两个节点相应的前驱节点。  Or for obtaining state information of at least two nodes and corresponding predecessor nodes having a large static load weight parameter and/or a dynamic load weight parameter; wherein the first node is a static load weight parameter and/or a dynamic load weight parameter Larger at least two nodes corresponding to the precursor nodes.
16、 一种节点设备, 其特征在于, 包括:  16. A node device, comprising:
加入发送单元, 用于发送新加入节点的加入请求消息;  a sending unit, configured to send a join request message of the newly joined node;
状态接收单元, 用于接收根据所述加入请求消息返回的状态信息, 所述状 态信息包括所述新加入节点的新节点标识所在的可用地址空间范围内,至少一 个节点的状态信息;  a status receiving unit, configured to receive status information returned according to the join request message, where the status information includes status information of at least one node within a range of available address spaces in which the new node identifier of the newly joined node is located;
第二标识生成单元,用于按照第一策略及所述状态信息生成至少一个新节 点标识; 所述第一策略包括: 新节点标识为在第一节点的节点标识后特定距离 的节点标识。 a second identifier generating unit, configured to generate at least one new section according to the first policy and the state information Point identification; the first policy includes: the new node identifier is a node identifier of a specific distance after the node identifier of the first node.
17、 一种节点设备, 其特征在于, 包括:  17. A node device, comprising:
接收确定单元, 用于接收新加入节点的加入请求消息, 确定该新加入节点 的新节点标识所在的可用地址空间范围,所述加入请求消息中包括新加入节点 的节点关键字;  a receiving determining unit, configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located, where the join request message includes a node keyword of the newly joined node;
备选计算单元,用于根据第二策略和至少两个哈希函数计算至少两个备选 节点的备选节点标识, 所述第二策略包括: 备选节点标识为所述可用地址空间 范围的起始点, 与新加入节点的节点关键字对应哈希计算散列值的和;  An alternative calculation unit, configured to calculate an alternate node identifier of the at least two candidate nodes according to the second policy and the at least two hash functions, where the second policy includes: the candidate node identifier is the available address space range The starting point, the hash corresponding to the node keyword of the newly joined node, calculates the sum of the hash values;
选择单元, 用于选择所述至少两个备选节点的后继节点中, 静态负载权重 参数和 /或动态负载权重参数最大的后继节点作为第三节点, 或静态负载权重 参数和 /或动态负载权重参数较大的至少两个后继节点作为第三节点;  a selecting unit, configured to select a successor node of the at least two candidate nodes, a static load weight parameter and/or a successor node with a maximum dynamic load weight parameter as a third node, or a static load weight parameter and/or a dynamic load weight At least two successor nodes having larger parameters are used as the third node;
标识确定单元,用于将所述第三节点对应的备选节点的节点标识作为新加 入节点的新节点标识。  And an identifier determining unit, configured to use a node identifier of the candidate node corresponding to the third node as a new node identifier of the newly added node.
18、 一种节点标识的生成系统, 其特征在于, 包括: 网络节点和新加入节 点;  18. A system for generating a node identifier, comprising: a network node and a newly added node;
所述网络节点, 用于接收新加入节点的加入请求消息, 确定所述新加入节 点的新节点标识所在的可用地址空间范围;获取所述可用地址空间范围内的至 少一个节点的状态信息; 将所述状态信息发送给所述新加入节点;  The network node is configured to receive a join request message of the newly joined node, determine a range of available address spaces in which the new node identifier of the newly joined node is located, and obtain state information of at least one node in the available address space range; Sending the status information to the newly joined node;
所述新加入节点, 用于发送新加入节点的加入请求消息; 接收到根据所述 加入请求消息返回的状态信息,按照第一策略及所述状态信息生成至少一个新 节点标识; 所述第一策略包括: 新节点标识为在第一节点的节点标识后特定距 离的节点标识。  The new joining node is configured to send a join request message of the newly joined node; receive the status information returned according to the join request message, and generate at least one new node identifier according to the first policy and the state information; The policy includes: The new node is identified as a node identifier of a certain distance after the node identifier of the first node.
PCT/CN2010/075485 2010-07-27 2010-07-27 Method, system and equipment for generating node identity WO2011109986A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2010/075485 WO2011109986A1 (en) 2010-07-27 2010-07-27 Method, system and equipment for generating node identity
CN201080001864.5A CN102369749B (en) 2010-07-27 2010-07-27 Method, system and equipment for generating node identity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2010/075485 WO2011109986A1 (en) 2010-07-27 2010-07-27 Method, system and equipment for generating node identity

Publications (1)

Publication Number Publication Date
WO2011109986A1 true WO2011109986A1 (en) 2011-09-15

Family

ID=44562816

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/075485 WO2011109986A1 (en) 2010-07-27 2010-07-27 Method, system and equipment for generating node identity

Country Status (2)

Country Link
CN (1) CN102369749B (en)
WO (1) WO2011109986A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1256567A (en) * 1998-11-26 2000-06-14 三星电子株式会社 Home network system and method of distributing node-identifying code
US6098116A (en) * 1996-04-12 2000-08-01 Fisher-Rosemont Systems, Inc. Process control system including a method and apparatus for automatically sensing the connection of devices to a network
US20060056313A1 (en) * 2002-08-15 2006-03-16 Barix Ag Method for automatic network integration of a network
CN101400053A (en) * 2007-09-30 2009-04-01 大唐移动通信设备有限公司 Method and system for implementing automatically distributing EID when base station opening
CN101500023A (en) * 2008-02-03 2009-08-05 北京艾德斯科技有限公司 Automatic configuration method for network appliance IP address

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159966A (en) * 2007-11-14 2008-04-09 北京邮电大学 Peer-to-peer network topology matching method in mobile environment
CN101753610B (en) * 2008-12-19 2012-11-21 华为技术有限公司 Distributed network structure method, device, system and task processing method
CN101442557B (en) * 2008-12-24 2012-04-04 北京邮电大学 Method for sensing and optimizing region of peer-to-peer session initiation protocol network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098116A (en) * 1996-04-12 2000-08-01 Fisher-Rosemont Systems, Inc. Process control system including a method and apparatus for automatically sensing the connection of devices to a network
CN1256567A (en) * 1998-11-26 2000-06-14 三星电子株式会社 Home network system and method of distributing node-identifying code
US20060056313A1 (en) * 2002-08-15 2006-03-16 Barix Ag Method for automatic network integration of a network
CN101400053A (en) * 2007-09-30 2009-04-01 大唐移动通信设备有限公司 Method and system for implementing automatically distributing EID when base station opening
CN101500023A (en) * 2008-02-03 2009-08-05 北京艾德斯科技有限公司 Automatic configuration method for network appliance IP address

Also Published As

Publication number Publication date
CN102369749B (en) 2014-10-08
CN102369749A (en) 2012-03-07

Similar Documents

Publication Publication Date Title
CN110012437B (en) Method, device and system for sending multicast message
KR101828412B1 (en) Communication method, communication apparatus and communication system
TWI428047B (en) Wlan peer-to-peer group owner negotiation
JP5971488B2 (en) Network address assignment
US10057130B2 (en) D2HCP protocol in ad hoc networks: merging of sub-networks and address conflict resolution
WO2018024121A1 (en) Network function (nf) management method and nf management device
KR102392120B1 (en) Processing method, device and system for nf component abnormality
US20190014531A1 (en) Network Access Permission Management Method and Related Device
US9769738B2 (en) Implementing an access controller pool
JP6652236B2 (en) Method and apparatus for detecting a wireless device
CN107682857B (en) Data sharing method of Zigbee network, gateway equipment and Zigbee network system
WO2016065892A1 (en) Discovery method and apparatus between devices
EP3451585B1 (en) Auto-configuring multicast protocol parameters of a network device
WO2012155615A1 (en) Method, system and related apparatus for implementing rfid network management
CN108366438B (en) Generating cluster networking method and generating cluster network for large-scale self-organizing wireless communication
JP2004320741A (en) Apparatus and method for connecting independent networks
JPH11275106A (en) Communications system
WO2018112745A1 (en) Method, entity and system for obtaining network slice instance information
US20160135017A1 (en) System and method for multiple clients synchronization in wi-fi peer-to-peer group
CN112583875B (en) Asset scanning method and device
JP2017511663A (en) Wireless local area network user side apparatus and information processing method
WO2008037174A1 (en) A method, device and communication system thereof of electing local master
US20220215038A1 (en) Distributed storage of blocks in blockchains
WO2011109986A1 (en) Method, system and equipment for generating node identity
WO2022160864A1 (en) Network access method and apparatus for intelligent device, and intelligent device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201080001864.5

Country of ref document: CN

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

Ref document number: 10847244

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: 10847244

Country of ref document: EP

Kind code of ref document: A1