WO2018233139A1 - Method, base station, and storage medium for selecting cluster head node - Google Patents

Method, base station, and storage medium for selecting cluster head node Download PDF

Info

Publication number
WO2018233139A1
WO2018233139A1 PCT/CN2017/104997 CN2017104997W WO2018233139A1 WO 2018233139 A1 WO2018233139 A1 WO 2018233139A1 CN 2017104997 W CN2017104997 W CN 2017104997W WO 2018233139 A1 WO2018233139 A1 WO 2018233139A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
target area
cluster head
nodes
target
Prior art date
Application number
PCT/CN2017/104997
Other languages
French (fr)
Chinese (zh)
Inventor
马路娟
刘宏举
吕叶青
张传欣
Original Assignee
海信集团有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 海信集团有限公司 filed Critical 海信集团有限公司
Publication of WO2018233139A1 publication Critical patent/WO2018233139A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • H04W40/10Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources based on available power or energy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/20Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a method, a base station, and a storage medium for electing a cluster head node.
  • a local area network can be divided into multiple areas, and nodes (ie, devices) in each area form a cluster, and each cluster can include one or more nodes, and all nodes in each area form a cluster.
  • the nodes in the cluster can be further divided into cluster head nodes and cluster member nodes.
  • Cluster head nodes can be used to manage or control cluster member nodes throughout the cluster, as well as to coordinate work between cluster member nodes.
  • a method of electing a cluster head node comprising:
  • Determining a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
  • the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
  • the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
  • the method for determining the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area includes:
  • k opt is the number of cluster head nodes corresponding to the target area
  • n is the number of nodes of the target area
  • M is the maximum side length of the target area
  • the d toBS is the node to the base station in the target area. Average distance.
  • the target area is a room of the target house.
  • the cluster head node that elects the number of cluster head nodes in the node of the target area according to the contention value of the node in the target area includes:
  • the nodes ranked in the top N are elected as cluster head nodes, where N is the number of cluster head nodes.
  • the method further includes:
  • a base station comprising:
  • a node determining module configured to determine a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
  • a number determining module configured to determine, according to the area attribute information of the target area, a number of cluster head nodes corresponding to the target area;
  • a first election module configured to elect, according to a contention value of a node in the target area, a cluster head node of the number of cluster head nodes among nodes of the target area.
  • the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
  • the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
  • the number determining module is specifically configured to determine, according to the following calculation formula, a number of cluster head nodes corresponding to the target area:
  • k opt is the number of cluster head nodes corresponding to the target area
  • n is the number of nodes of the target area
  • M is the maximum side length of the target area
  • the d toBS is the node to the base station in the target area. Average distance.
  • the target area is a room of the target house.
  • the first election module includes:
  • a sorting unit configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
  • An election unit is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
  • the base station after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
  • a second election module configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a competition value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
  • a base station including:
  • a node determiner configured to determine a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
  • a number determining unit configured to determine, according to the area attribute information of the target area, a number of cluster head nodes corresponding to the target area;
  • the first electoral device is configured to elect a cluster head node of the number of cluster head nodes among nodes of the target area according to a contention value of a node in the target area.
  • the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
  • the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
  • the number determiner is specifically configured to determine a number of cluster head nodes corresponding to the target area according to the following calculation formula:
  • k opt is the number of cluster head nodes corresponding to the target area
  • n is the number of nodes of the target area
  • M is the maximum side length of the target area
  • the d toBS is the node to the base station in the target area. Average distance.
  • the target area is a room of the target house.
  • the first electoralator includes:
  • a sorter configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
  • the elector is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
  • the base station after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
  • a second arbitrator configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a contention value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
  • a base station including a processor and a memory, wherein the memory stores computer instructions executed by the processor to implement the first aspect or A method of electing a cluster head node as shown in its alternative implementation.
  • a computer readable storage medium having stored therein computer instructions executed by a processor to implement the first aspect described above or an alternative implementation thereof The method of electing a cluster head node is shown.
  • the computer readable storage medium may be a non-volatile storage medium.
  • a computer program product in which computer instructions are stored, the computer instructions being executed by a processor to implement the first aspect described above or an alternative implementation thereof The method of electing a cluster head node.
  • FIG. 1 is a flowchart of a method for electing a cluster head node according to an exemplary embodiment
  • FIG. 2 is a schematic diagram showing a region division according to an exemplary embodiment
  • FIG. 3 is a flowchart of a method for electing a cluster head node according to an exemplary embodiment
  • FIG. 4 is a schematic diagram of a cluster connection, according to an exemplary embodiment
  • FIG. 5 is a schematic diagram of a data transmission link according to an exemplary embodiment
  • FIG. 6 is a schematic diagram of a base station according to an exemplary embodiment
  • FIG. 7 is a schematic diagram of a base station according to an exemplary embodiment
  • FIG. 8 is a schematic structural diagram of a base station according to an exemplary embodiment.
  • Computer devices in a local area network are often referred to as nodes in a local area network.
  • the computer device ie, the node
  • the computer device may be a device such as a desktop computer, a laptop computer, a tablet computer, a mobile phone, a refrigerator, a television, a washing machine, an air conditioner, or a sensor.
  • a local area network can be divided into a plurality of clusters, and each cluster can include a plurality of nodes (for example, computer devices).
  • the number of cluster head nodes in each area contained in a local area network is one. This may result in too many or too few cluster member nodes carried by a cluster head node in some areas, thereby affecting communication efficiency within the cluster.
  • the embodiment of the present disclosure provides a method for electing a cluster head node, in which, before electing a cluster head node, first, it is necessary to determine the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area, thereby The number of corresponding cluster head nodes can be flexibly determined for each area according to the attribute information of the target area.
  • the method for electing a cluster head node provided by an embodiment of the present disclosure may be implemented by a base station.
  • a base station in an embodiment of the present disclosure may include components such as a processor, a memory, a transceiver, and the like.
  • the processor may be a CPU (Central Processing Unit) or the like, and may be used for calculating the number of cluster head nodes in the target area and calculating the contention value of each node.
  • the memory may be a RAM (Random Access Memory), a Flash (Flash Memory), or the like, and may be used to store received data, data required for processing, data generated during processing, and the like.
  • the transceiver can be used for data transmission with nodes and other base stations.
  • the transceiver can include an antenna, a matching circuit, a radio frequency circuit, and the like.
  • An exemplary embodiment of the present disclosure provides a method for electing a cluster head node. As shown in FIG. 1 , the processing flow of the method may include the following steps:
  • Step S110 Determine a node included in the target area according to the location information of the node in the target house and the range of the target area in the target house.
  • the base station may pre-store a floor plan of the target house, where the floor plan includes location information and size of each room. Then, the base station can receive each node The location information of each node passed. Then, the base station may determine, according to the floor plan of the target house and the location information of each node, which locations in each of the target houses are specifically located. Finally, determine the nodes included in the target area in the target house. For example, as shown in Figure 2, the target house includes a bathroom, a kitchen, two bedrooms, and a living room. If the living room in the target house is the target area, the area 6 corresponding to the living room includes six nodes, and it can be determined that they are node A, node B, node C, node D, node E, and node F, respectively.
  • the target area may be a room of the target house.
  • the division in the process of dividing the area, the division is performed in units of rooms in the target house, for example, dividing the bathroom into one area and dividing the living room into another area. This ensures that there is no wall penetration in any area that is divided, and the internal communication of the cluster in any area will not pass through the wall, thus avoiding signal attenuation and communication caused by communication through the wall. The problem of performance degradation.
  • Step S120 Determine the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area.
  • the size of the divided area may be different, so it is possible to elect a cluster head node in the area to make a cluster head.
  • the node member nodes carried by the node are too many or too few, which affects the communication efficiency within the cluster.
  • the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
  • the number of cluster head nodes corresponding to the target area is positively correlated with the number of nodes in the target area, and is positively correlated with the maximum side length of the target area, and inversely related to the average distance of each node to the base station in the target area.
  • the number of cluster head nodes corresponding to the target area is positively correlated with the number of nodes in the target area and positively correlated with the maximum side length of the target area. It can be understood that the number of nodes in the target area and/or the maximum side length of the target area increases, and the target The number of cluster head nodes corresponding to the region increases accordingly; the number of cluster head nodes corresponding to the target region is inversely related to the average distance from each node to the base station in the target region, which can be understood as the average distance from each node to the base station in the target region. Small, the number of cluster head nodes corresponding to the target area decreases. Optionally, the number of nodes in the target area is also available.
  • the maximum side length of the target area and the average distance from each node to the base station in the target area are set to a constant weight, or the number of nodes in the target area, the maximum side length of the target area, or the average distance from each node to the base station in the target area may be performed. Square or square and so on.
  • step S120 may include: determining a number of cluster head nodes corresponding to the target area according to the following calculation formula:
  • k opt is the number of cluster head nodes corresponding to the target area
  • n is the number of nodes of the target area
  • M is the maximum side length of the target area
  • d toBS is the average distance of each node in the target area to the base station. It should be noted that M may be the maximum side length in the boundary line of the target area.
  • weights can be set for M and d toBS , and the above formula 1 is adjusted to: Where a and b are the constant weights of M and d toBS , respectively; or, the weight is set in the part of n, and the above formula 1 is adjusted to: Where c is the weight of the number of nodes in the target area.
  • the values of the above-mentioned constants a, b, and c may be determined according to actual conditions, for example, may be obtained from multiple test data, or obtained according to experience, and are not limited in the embodiment of the present invention.
  • the living room corresponding to the area 6 is 10 meters long and 5 meters wide, and the maximum side length is 10 meters.
  • d toBS is a statistical data. Specifically, in planning and erecting a base station, the distance from the surrounding location to the base station is counted. For example, if a residential X cell is 5 kilometers away from the base station, it can be in the memory of the base station. The identifier corresponding to a certain residential X cell is stored in the distance list corresponding to the distance between the base station and a residential X cell.
  • the base station When the base station obtains an identifier corresponding to a residential X-cell, it may perform an inquiry according to the identifier corresponding to a residential X-cell in the distance list to determine a base station corresponding to a certain residential X-cell and a certain residential X. The distance of the cell. When the base station acquires the location information of each node, it can roughly determine which location the nodes are from, and roughly determine the average distance d toBS of the location to the base station.
  • the above formula 1 can be obtained by combining the following formulas 2 to 6, and performing a first-order derivation of the parameter k therein, and making the derivation result 0.
  • Equation 2 is as follows:
  • E CH is the total energy consumed by all cluster head nodes in a cluster in the target area
  • n is the number of nodes in the target area
  • k is the number of cluster head nodes corresponding to the target area
  • E DA is required for data fusion of the cluster head node energy consumption, d toBS each node as a target area from the base station to the average
  • E elec circuit to transmit or receive circuitry of each cluster head transmits 1-bit data or receive energy consumed, ⁇ fs depending transmit circuitry or
  • L is the number of bits of data that needs to be transmitted.
  • E CH , k, L are unknown parameters.
  • E DA and Elec are test data.
  • the performance of the node can be tested, including testing of the nodes E DA and Elec . After multiple tests, the test values of E DA and Elec will be obtained.
  • the user's manual can be directly queried to know E DA and Elec. .
  • values corresponding to the respective E DA and Elec can be stored in advance in the memory of each node. When the base station needs to obtain these values, it can be directly sent to the base station.
  • Equation 3 is as follows:
  • E nonCH L ⁇ E elec +L ⁇ fs ⁇ d 2 tocH (Equation 3)
  • Equation 4 E nonCH is the total energy consumed by all cluster member nodes in a cluster in the target area
  • d toCH is the distance from the cluster member node to the cluster head node.
  • ⁇ (x, y) is the distribution density function of the node
  • x and y are the position coordinates of each node in the target area.
  • Equation 5 is as follows:
  • E cluster is the total energy consumed by all nodes in a cluster in the target area.
  • Equation 6 is as follows:
  • E tot is the total energy consumed by all nodes in the target area.
  • Step S130 selecting a cluster head node of the number of cluster head nodes in the nodes of the target area according to the contention value of the nodes in the target area.
  • the embodiment may provide a contention value algorithm for calculating the contention value of each node in the target area.
  • a contention value algorithm for calculating the contention value of each node in the target area.
  • the node may first confirm which nodes participate in the election of the cluster head node, and do not perform the calculation of the contention value for the nodes that do not need to participate in the election of the cluster head node. Specifically, it may be first determined whether the node is a node with strong communication capability.
  • a node that uses cellular communication can be used as a node with strong communication capabilities, such as a mobile phone using a SIM card communication.
  • the remaining nodes that use WiFi, Bluetooth, Zigbee, and D2D (Device-to-Device Communication) communication can be used as nodes with weak communication capabilities.
  • the above distinctions for the communication capabilities of the nodes are mainly based on the distance of their communication.
  • a mobile phone can be connected to a base station outside of a kilometer via a cellular network, however, the tablet can only be connected to a router within 30 meters via WiFi.
  • the communication capacity of mobile phones is far greater than the communication capabilities of tablet computers.
  • the node having strong communication capability included in the target area is determined according to the judgment result of the communication capability of the node. Then, it can be determined whether these nodes with strong communication capabilities have established a connection with the base station. If so, it is determined that the node that has established a connection with the base station participates in the election of the cluster head node.
  • the contention value of the nodes participating in the election of the cluster head node in the target area is calculated.
  • the contention value of the node may be calculated by the signal connection strength of the node and the base station, and the node link information.
  • the signal connection strength between the node and the base station can be obtained by directly receiving the strength information sent by the node.
  • the node link information includes the connectivity, the load size, the remaining energy of the node, the remaining bandwidth of the node, and the lifetime of the node.
  • the degree of connectivity may be one of neighboring nodes of the node The number of hop nodes. The remaining energy of the node and the remaining bandwidth of the node can be obtained directly from the node.
  • the node lifetime represents the time at which the moving node can exist in the target area. Firstly, the position information of the node can be determined by the position information of the node, and then the time required for the node to move out of the target area according to the motion speed of the node is the node survival time.
  • the formula for calculating the load size can be seen in Equation 7:
  • Q max is the largest data queue length in node i in the target area that needs to be transmitted
  • Q avg (t) is the average data to be transmitted by node i in the target area from t- ⁇ t to t time. Queue size.
  • Equation 8 The method for calculating the contention value of a node by the signal connection strength of the node and the base station and the link information of the node can be seen in Equation 8:
  • N is the number of nodes participating in the election of the cluster head node
  • p j is the normalized value of each parameter included in the link information of the node, such as the degree of connectivity, the size of the load, the remaining energy of the node, the remaining bandwidth of the node, and the lifetime of the node
  • w Indicates the weight corresponding to each parameter.
  • different parameters and their weights can be determined according to different application environments.
  • the node in the target area may also send the network topology map of the neighboring node to the base station.
  • the base station can obtain a network topology diagram of the entire target house according to the network topology map of the node in the target area and the neighboring neighbor nodes.
  • step S130 may include: step S310, sorting nodes in the target area according to the contention value of the nodes in the target area from large to small; and step S320, selecting the node ranked in the top N as the cluster head node.
  • N is the number of cluster head nodes and N is an integer greater than or equal to 1.
  • the target area is the area 6, and the nodes are sorted according to the competition value of each node in the area 6 from large to small, and the ranking result is: node C, node E, node F, Node A, Node D, Node B. If the number of cluster head nodes is 2, node C and node E ranked in the top 2 positions can be elected as cluster head nodes.
  • the cluster head node C can be The surrounding nodes A and B serve as their cluster member nodes, and node D and node F around the cluster head node E can be used as their cluster member nodes.
  • clustering may be performed according to the size of data transmitted by other nodes than the cluster head node.
  • node A is a television
  • node B is a temperature sensor
  • node D is a computer
  • node F is a humidity sensor.
  • the amount of data that TVs and computers need to transmit is large, and the amount of data that temperature sensors and humidity sensors need to transmit is small.
  • nodes with a large amount of data can be separated according to the amount of data to be transmitted, so that they are in a cluster at the same time, and the cluster head node cannot effectively process the data of the cluster member nodes in the cluster.
  • a television and a temperature sensor around the cluster head node C can be used as its cluster member node
  • a computer and a humidity sensor around the cluster head node E can be used as its cluster member node.
  • the base station sends the election result and the clustering result to the nodes participating in the election of the cluster head node.
  • the unsuccessful node can disconnect from the base station and connect to its cluster head node instead.
  • the node that selects the cluster head node can notify its cluster member node to establish a connection with itself.
  • the optimal node can also be continuously updated as a cluster head node.
  • the method provided by the embodiment further includes: according to the competition value of the new node and the cluster head node in the target area, the new node and The cluster head node elects the node ranked in the first N bits as the cluster head node, where N is the number of cluster head nodes.
  • the contention value of the new node may be calculated, according to the new node in the target area and the competition value of each cluster head node, in the new node and each cluster.
  • the node in the top N position is elected as the cluster head node.
  • another method of updating an optimal node as a cluster head node may be provided. After each predetermined time T, the competition value of the nodes in the target area is recalculated, and the election of the cluster head nodes is performed again according to the new competition value.
  • the base station can be connected to the cluster head node, and the cluster head node can be connected to its cluster member node. Communication can also take place between cluster head nodes.
  • the base station may send the network topology map of the entire target house to each node, and each node may be based on the network topology of the entire target house.
  • the graph calculates the routing table. If the node is communicating within the local area network of the home, each node can determine how to send data from the source node to the destination node by querying the routing table. It should be noted that, in the local area network, in addition to the cluster member nodes directly connected to the cluster head node, there are secondary cluster member nodes that cannot be directly connected to the cluster head node, and they need to pass between them. Communication and transmission of data with communication between cluster member nodes that can be directly connected to the cluster head node. Therefore, there may be multiple paths from the source node to the destination node.
  • the data to be transmitted may be divided into three parts, and data transmission is performed through three preferred paths.
  • the node when the node receives any data packet, it can determine whether it is the destination node, and if so, unpack the data packet, if not, determine whether it is the first time to receive the data packet. If the packet is received for the first time, the packet is directly forwarded. If the packet is not received for the first time, it is determined whether the path of the second transmission of the packet intersects with the path of the first transmission, and if so, the packet is discarded. For example, as shown in FIG.
  • the source node sends the data packet Bag from the node A to the node B, and the node B determines that the data packet is received for the first time, and the source node sends the data packet Bag again from the node C to the node B.
  • the Node B determines that the data packet is not received for the first time, it determines whether the path of the second transmission intersects with the path of the first transmission.
  • the data packet Bag is sent from the source node to the node A for the first time and then to the node B and then to the node D.
  • the data packet Bag is sent from the source node to the node C and then to the node B and then to the node.
  • the two paths are intersected, and the intersection point is the node B, so the packet of the packet can be discarded to avoid repeatedly sending the packet to the destination node and wasting the communication resources of the local area network.
  • the cluster head node of the source node needs to forward the data to the base station, and then the base station forwards the data to the network where the destination node is located.
  • the number of cluster head nodes corresponding to the target area is determined according to the area attribute information of the target area, and the number of the cluster head nodes is determined according to the area attribute information of the target area, and the target area is determined for different ranges. If there are different area attributes, the area attribute information is also different, and then the number of cluster head nodes obtained is determined according to the target area attribute.
  • the number of dynamically changing cluster head nodes is more suitable than the fixed number of cluster head nodes. Target areas in different ranges.
  • a further exemplary embodiment of the present disclosure provides a base station, as shown in FIG. 6, the base station includes:
  • a node determining module 610 configured to determine, according to location information of a node in the target house and a range of the target area in the target house, a node included in the target area;
  • the number determining module 620 is configured to determine, according to the area attribute information of the target area, the number of cluster head nodes corresponding to the target area;
  • the first election module 630 is configured to elect, according to a contention value of a node in the target area, a cluster head node of the number of cluster head nodes among nodes of the target area.
  • the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
  • the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
  • the number determining module 620 is specifically configured to determine, according to the following calculation formula, a number of cluster head nodes corresponding to the target area:
  • k opt is the number of cluster head nodes corresponding to the target area
  • n is the number of nodes of the target area
  • M is the maximum side length of the target area
  • the d toBS is the node to the base station in the target area. Average distance.
  • the target area is a room of the target house.
  • the first election module 630 includes:
  • a sorting unit 731 configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
  • the election unit 732 is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
  • the base station after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
  • a second election module configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a competition value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
  • the number of cluster head nodes corresponding to the target area is determined according to the area attribute information of the target area, and the number of the cluster head nodes is determined according to the area attribute information of the target area, and the target area is determined for different ranges. If there are different area attributes, the area attribute information is also different, and then the number of cluster head nodes obtained is determined according to the target area attribute.
  • the number of dynamically changing cluster head nodes is more suitable than the fixed number of cluster head nodes. Target areas in different ranges.
  • the method for electing a cluster head node provided by the foregoing embodiment is only exemplified by the division of the foregoing functional modules when the cluster head node is elected. In actual applications, the foregoing functions may be allocated differently according to requirements.
  • the function module is completed, that is, the internal structure of the base station is divided into different functional modules to complete all or part of the functions described above.
  • the method for the base station and the method for electing the cluster head node in the foregoing embodiment are the same. The specific implementation process is described in the method embodiment, and details are not described herein again.
  • the embodiment of the present disclosure further provides a base station, where the base station includes:
  • a node determiner configured to determine a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
  • a number determining unit configured to determine, according to the area attribute information of the target area, a number of cluster head nodes corresponding to the target area;
  • the first electoral device is configured to elect a cluster head node of the number of cluster head nodes among nodes of the target area according to a contention value of a node in the target area.
  • the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
  • the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
  • the number determiner is specifically configured to determine a number of cluster head nodes corresponding to the target area according to the following calculation formula:
  • k opt is the number of cluster head nodes corresponding to the target area
  • n is the number of nodes of the target area
  • M is the maximum side length of the target area
  • the d toBS is the node to the base station in the target area. Average distance.
  • the target area is a room of the target house.
  • the first electoralator includes:
  • a sorter configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
  • the elector is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
  • the base station after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
  • a second arbitrator configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a contention value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
  • Embodiments of the present disclosure provide a base station including a processor and a memory, where the computer instructions are stored in the memory, and the computer instructions are executed by the processor to implement the method for electing the cluster head node shown in the above disclosed embodiments.
  • FIG. 8 it is a schematic structural diagram of a base station 900, which includes a processor 902 and a memory 904.
  • the processor 902 typically controls the overall operation of the base station 900, and the processor 902 can be used to execute computer instructions to perform all or part of the steps of the method of electing a cluster head node as disclosed in the above-described disclosed embodiments.
  • the processor 902 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or perform various illustrative logical blocks, modules and circuits described in connection with the embodiments of the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • Memory 904 can be configured to store various types of data to support operation at base station 900. Examples of such data include instructions for any application or method operating on base station 900.
  • Memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Communication component 906 is configured to facilitate wired or wireless communication between base station 900 and other devices.
  • the base station 900 can access a wireless network based on a communication standard, such as 2G, 3G or 4G, or a combination thereof.
  • base station 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the method of electing a cluster head node as described in the above embodiments of the present disclosure.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the method of electing a cluster head node as described in the above embodiments of the present disclosure.
  • the computer readable storage medium having stored thereon computer instructions, wherein instructions in the storage medium are executed by a processor to perform electoral clusters as disclosed in the above disclosed embodiments The method of the head node.
  • the computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • the computer readable storage medium may be a non-volatile storage medium.
  • the embodiment of the present disclosure further provides a computer program product, wherein the computer program product stores a computer instruction, and the computer instruction is executed by a processor to implement the method for electing a cluster head node shown in the above disclosed embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure relates to the technical field of communications, and relates to a method, base station, and storage medium for selecting a cluster head node. The method comprises: determining, according to position information of nodes in a target house and an area of a target region in the target house, nodes contained in the target region of the target house; determining, according to region attribute information of the target region, a cluster head node number corresponding to the target region; and selecting, according to competition values of the nodes in the target region, a cluster head node number of cluster head nodes from the nodes in the target region. For target regions having different areas, the target regions have different region attributes and different region attribute information, and therefore, a determined cluster head node number varies according to an attribute of a target region. In this way, the present invention enables a dynamic cluster head node number to better adapt to target regions having different areas than a fixed cluster head node number.

Description

一种选举簇头节点的方法、基站和存储介质Method, base station and storage medium for electing cluster head node
本申请要求于2017年06月20日提交中国专利局、申请号为201710471798.1、发明名称为“一种选举簇头节点的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. JP-A No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No In this application.
技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种选举簇头节点的方法、基站和存储介质。The present disclosure relates to the field of communications technologies, and in particular, to a method, a base station, and a storage medium for electing a cluster head node.
背景技术Background technique
局域网可以被划分为多个区域,每个区域中的节点(即设备)组成一个簇,每个簇均可以包括一个或多个节点,每个区域中所有节点即组成一个簇。簇内的节点又可以分为簇头节点和簇成员节点。簇头节点可以用于管理或控制整个簇内簇成员节点,以及协调簇成员节点之间的工作。A local area network can be divided into multiple areas, and nodes (ie, devices) in each area form a cluster, and each cluster can include one or more nodes, and all nodes in each area form a cluster. The nodes in the cluster can be further divided into cluster head nodes and cluster member nodes. Cluster head nodes can be used to manage or control cluster member nodes throughout the cluster, as well as to coordinate work between cluster member nodes.
发明内容Summary of the invention
根据本公开实施例的第一方面,提供一种选举簇头节点的方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a method of electing a cluster head node is provided, the method comprising:
根据目标房屋中节点的位置信息和所述目标房屋中目标区域的范围,确定所述目标区域中包含的节点;Determining a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目;Determining, according to the area attribute information of the target area, the number of cluster head nodes corresponding to the target area;
根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点。And selecting, according to a contention value of a node in the target area, a cluster head node of the number of cluster head nodes among nodes of the target area.
可选的,所述目标区域的区域属性信息包括所述目标区域的节点数目、最大边长以及所述目标区域中的节点到基站的平均距离。 Optionally, the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
可选的,所述目标区域对应的簇头节点数目与所述目标区域的节点数目呈正相关,与所述目标区域的最大边长呈正相关,与所述目标区域中各节点到基站的平均距离呈反相关。Optionally, the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
可选的,根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目的方法包括:Optionally, the method for determining the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area includes:
根据以下计算公式确定目标区域对应的簇头节点数目:Determine the number of cluster head nodes corresponding to the target area according to the following calculation formula:
Figure PCTCN2017104997-appb-000001
Figure PCTCN2017104997-appb-000001
其中,kopt为所述目标区域对应的簇头节点数目,n为所述目标区域的节点数目,M为所述目标区域的最大边长,所述dtoBS为目标区域中各节点到基站的平均距离。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and the d toBS is the node to the base station in the target area. Average distance.
可选的,所述目标区域为所述目标房屋的一个房间。Optionally, the target area is a room of the target house.
可选的,根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点,包括:Optionally, the cluster head node that elects the number of cluster head nodes in the node of the target area according to the contention value of the node in the target area includes:
按照所述目标区域中节点的竞争值由大至小对所述目标区域中的节点进行排序;Sorting nodes in the target area according to a competition value of nodes in the target area from large to small;
选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。The nodes ranked in the top N are elected as cluster head nodes, where N is the number of cluster head nodes.
可选的,在选举簇头节点完毕后,当检测到有新节点加入所述目标区域中时,所述方法还包括:Optionally, after the election of the cluster head node is completed, when a new node is detected to join the target area, the method further includes:
根据所述目标区域中新节点以及簇头节点的竞争值,在所述新节点以及所述簇头节点中选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。Selecting, in the new node and the cluster head node, a node ranked in the top N as a cluster head node according to a contention value of the new node and the cluster head node in the target area, where N is the cluster head node number.
根据本公开实施例的第二方面,提供一种基站,该基站包括:According to a second aspect of the embodiments of the present disclosure, a base station is provided, the base station comprising:
节点确定模块,用于根据目标房屋中节点的位置信息和所述目标房屋中目标区域的范围,确定所述目标区域中包含的节点;a node determining module, configured to determine a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
数目确定模块,用于根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目;a number determining module, configured to determine, according to the area attribute information of the target area, a number of cluster head nodes corresponding to the target area;
第一选举模块,用于根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点。 a first election module, configured to elect, according to a contention value of a node in the target area, a cluster head node of the number of cluster head nodes among nodes of the target area.
可选的,所述目标区域的区域属性信息包括所述目标区域的节点数目、最大边长以及所述目标区域中的节点到基站的平均距离。Optionally, the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
可选的,所述目标区域对应的簇头节点数目与所述目标区域的节点数目呈正相关,与所述目标区域的最大边长呈正相关,与所述目标区域中各节点到基站的平均距离呈反相关。Optionally, the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
可选的,所述数目确定模块,具体用于根据以下计算公式确定目标区域对应的簇头节点数目:Optionally, the number determining module is specifically configured to determine, according to the following calculation formula, a number of cluster head nodes corresponding to the target area:
Figure PCTCN2017104997-appb-000002
Figure PCTCN2017104997-appb-000002
其中,kopt为所述目标区域对应的簇头节点数目,n为所述目标区域的节点数目,M为所述目标区域的最大边长,所述dtoBS为目标区域中各节点到基站的平均距离。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and the d toBS is the node to the base station in the target area. Average distance.
可选的,所述目标区域为所述目标房屋的一个房间。Optionally, the target area is a room of the target house.
可选的,所述第一选举模块包括:Optionally, the first election module includes:
排序单元,用于按照所述目标区域中节点的竞争值由大至小对所述目标区域中的节点进行排序;a sorting unit, configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
选举单元,用于选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。An election unit is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
可选的,在所述基站选举簇头节点完毕后,当检测到有新节点加入所述目标区域中时,所述基站还包括:Optionally, after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
第二选举模块,用于根据所述目标区域中新节点以及簇头节点的竞争值,在所述新节点以及所述簇头节点中选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。a second election module, configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a competition value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
根据本公开实施例的第三方面,提供一种基站,该基站包括:According to a third aspect of the embodiments of the present disclosure, a base station is provided, the base station including:
节点确定器,配置为根据目标房屋中节点的位置信息和所述目标房屋中目标区域的范围,确定所述目标区域中包含的节点;a node determiner configured to determine a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
数目确定器,配置为根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目;a number determining unit, configured to determine, according to the area attribute information of the target area, a number of cluster head nodes corresponding to the target area;
第一选举器,配置为根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点。 The first electoral device is configured to elect a cluster head node of the number of cluster head nodes among nodes of the target area according to a contention value of a node in the target area.
可选的,所述目标区域的区域属性信息包括所述目标区域的节点数目、最大边长以及所述目标区域中的节点到基站的平均距离。Optionally, the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
可选的,所述目标区域对应的簇头节点数目与所述目标区域的节点数目呈正相关,与所述目标区域的最大边长呈正相关,与所述目标区域中各节点到基站的平均距离呈反相关。Optionally, the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
可选的,所述数目确定器,具体配置为根据以下计算公式确定目标区域对应的簇头节点数目:Optionally, the number determiner is specifically configured to determine a number of cluster head nodes corresponding to the target area according to the following calculation formula:
Figure PCTCN2017104997-appb-000003
Figure PCTCN2017104997-appb-000003
其中,kopt为所述目标区域对应的簇头节点数目,n为所述目标区域的节点数目,M为所述目标区域的最大边长,所述dtoBS为目标区域中各节点到基站的平均距离。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and the d toBS is the node to the base station in the target area. Average distance.
可选的,所述目标区域为所述目标房屋的一个房间。Optionally, the target area is a room of the target house.
可选的,所述第一选举器包括:Optionally, the first electoralator includes:
排序器,配置为按照所述目标区域中节点的竞争值由大至小对所述目标区域中的节点进行排序;a sorter configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
选举器,配置为选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。The elector is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
可选的,在所述基站选举簇头节点完毕后,当检测到有新节点加入所述目标区域中时,所述基站还包括:Optionally, after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
第二选举器,配置为根据所述目标区域中新节点以及簇头节点的竞争值,在所述新节点以及所述簇头节点中选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。a second arbitrator configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a contention value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
根据本公开实施例的第四方面,提供一种基站,所述基站包括处理器和存储器,所述存储器中存储有计算机指令,所述计算机指令由所述处理器执行以实现上述第一方面或其可选的实现方式所示的选举簇头节点的方法。According to a fourth aspect of an embodiment of the present disclosure, there is provided a base station including a processor and a memory, wherein the memory stores computer instructions executed by the processor to implement the first aspect or A method of electing a cluster head node as shown in its alternative implementation.
根据本公开实施例的第五方面,提供一种计算机可读存储介质,所述存储介质中存储有计算机指令,所述计算机指令由处理器执行以实现上述第一方面或其可选的实现方式所示的选举簇头节点的方法。 According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored therein computer instructions executed by a processor to implement the first aspect described above or an alternative implementation thereof The method of electing a cluster head node is shown.
可选的,所述计算机可读存储介质可以为非易失性存储介质。Optionally, the computer readable storage medium may be a non-volatile storage medium.
根据本公开实施例的第六方面,提供一种计算机程序产品,所述计算机程序产品中存储有计算机指令,所述计算机指令由处理器执行以实现上述第一方面或其可选的实现方式所示的选举簇头节点的方法。According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, in which computer instructions are stored, the computer instructions being executed by a processor to implement the first aspect described above or an alternative implementation thereof The method of electing a cluster head node.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。在附图中:The accompanying drawings, which are incorporated in the specification In the drawing:
图1是根据一示例性实施例示出的一种选举簇头节点的方法的流程图;FIG. 1 is a flowchart of a method for electing a cluster head node according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种区域划分的示意图;FIG. 2 is a schematic diagram showing a region division according to an exemplary embodiment; FIG.
图3是根据一示例性实施例示出的一种选举簇头节点的方法的流程图;FIG. 3 is a flowchart of a method for electing a cluster head node according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种簇连接的示意图;4 is a schematic diagram of a cluster connection, according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种数据传输链路的示意图;FIG. 5 is a schematic diagram of a data transmission link according to an exemplary embodiment; FIG.
图6是根据一示例性实施例示出的一种基站的示意图;FIG. 6 is a schematic diagram of a base station according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种基站的示意图;FIG. 7 is a schematic diagram of a base station according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种基站的结构示意图。FIG. 8 is a schematic structural diagram of a base station according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。The embodiments of the present disclosure have been shown by the above-described drawings, which will be described in more detail later. The drawings and the text are not intended to limit the scope of the present disclosure in any way, and the description of the present disclosure will be described by those skilled in the art by reference to the specific embodiments.
具体实施方式 Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects of the present disclosure as detailed in the appended claims.
通常将局域网中的计算机设备称为局域网中的节点。示例性的,本公开实施例中的计算机设备(也即节点)可以为诸如台式电脑、膝上电脑、平板电脑、手机、电冰箱、电视机、洗衣机、空调或传感器等设备。Computer devices in a local area network are often referred to as nodes in a local area network. Illustratively, the computer device (ie, the node) in the embodiments of the present disclosure may be a device such as a desktop computer, a laptop computer, a tablet computer, a mobile phone, a refrigerator, a television, a washing machine, an air conditioner, or a sensor.
目前在相关技术中,局域网可以被划分为多个簇,每个簇均可以包括多个节点(例如,计算机设备)。一个局域网(例如一个家庭中的局域网)包含的每个区域中的簇头节点的数量为一个。如此可能导致有的区域中一个簇头节点所携带的簇成员节点过多或者过少,进而影响簇内通信效率。Currently in the related art, a local area network can be divided into a plurality of clusters, and each cluster can include a plurality of nodes (for example, computer devices). The number of cluster head nodes in each area contained in a local area network (for example, a local area network) is one. This may result in too many or too few cluster member nodes carried by a cluster head node in some areas, thereby affecting communication efficiency within the cluster.
为了解决上述问题,本公开实施例提供一种选举簇头节点的方法,该方法中在选举簇头节点之前,首先需要根据目标区域的区域属性信息,确定目标区域对应的簇头节点数目,从而可以根据目标区域的属性信息灵活的为每个区域确定相应的簇头节点数目。In order to solve the above problem, the embodiment of the present disclosure provides a method for electing a cluster head node, in which, before electing a cluster head node, first, it is necessary to determine the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area, thereby The number of corresponding cluster head nodes can be flexibly determined for each area according to the attribute information of the target area.
本公开实施例提供的选举簇头节点的方法可以由基站实现。The method for electing a cluster head node provided by an embodiment of the present disclosure may be implemented by a base station.
本公开实施例中的基站可以包括处理器、存储器、收发器等部件。处理器,可以为CPU(Central Processing Unit,中央处理单元)等,可以用于计算目标区域中的簇头节点数目以及计算各节点的竞争值等处理。存储器,可以为RAM(Random Access Memory,随机存取存储器),Flash(闪存)等,可以用于存储接收到的数据、处理过程所需的数据、处理过程中生成的数据等。收发器,可以用于与节点、其他基站进行数据传输。收发器可以包括天线、匹配电路、射频电路等。A base station in an embodiment of the present disclosure may include components such as a processor, a memory, a transceiver, and the like. The processor may be a CPU (Central Processing Unit) or the like, and may be used for calculating the number of cluster head nodes in the target area and calculating the contention value of each node. The memory may be a RAM (Random Access Memory), a Flash (Flash Memory), or the like, and may be used to store received data, data required for processing, data generated during processing, and the like. The transceiver can be used for data transmission with nodes and other base stations. The transceiver can include an antenna, a matching circuit, a radio frequency circuit, and the like.
本公开一示例性实施例提供了一种选举簇头节点的方法,如图1所示,该方法的处理流程可以包括如下的步骤:An exemplary embodiment of the present disclosure provides a method for electing a cluster head node. As shown in FIG. 1 , the processing flow of the method may include the following steps:
步骤S110,根据目标房屋中节点的位置信息和目标房屋中目标区域的范围,确定目标区域中包含的节点。Step S110: Determine a node included in the target area according to the location information of the node in the target house and the range of the target area in the target house.
在实施中,首先,基站可以预先存储目标房屋的户型图,所述户型图中包含每个房间的位置信息以及尺寸大小。接着,基站可以接收各节点上 传的每个节点的位置信息。随后,基站可以根据所述目标房屋的户型图以及所述每个节点的位置信息,确定每个节点具体处于目标房屋中的哪些位置。最后,确定目标房屋中目标区域包含的各节点。例如,如图2所示,目标房屋包括一个卫生间、一个厨房、两个卧室和一个客厅。假如以目标房屋中的客厅为目标区域,则在客厅对应的区域6中包含6个节点,可以确定他们分别是节点A、节点B、节点C、节点D、节点E以及节点F。In an implementation, first, the base station may pre-store a floor plan of the target house, where the floor plan includes location information and size of each room. Then, the base station can receive each node The location information of each node passed. Then, the base station may determine, according to the floor plan of the target house and the location information of each node, which locations in each of the target houses are specifically located. Finally, determine the nodes included in the target area in the target house. For example, as shown in Figure 2, the target house includes a bathroom, a kitchen, two bedrooms, and a living room. If the living room in the target house is the target area, the area 6 corresponding to the living room includes six nodes, and it can be determined that they are node A, node B, node C, node D, node E, and node F, respectively.
可选的,目标区域可以为目标房屋的一个房间。Optionally, the target area may be a room of the target house.
在实施中,在划分区域的过程中,以目标房屋中的房间为单位进行划分,例如,将卫生间划分为一个区域,将客厅划分为另一个区域。这样可以保证划分得到的任一区域都不会存在贯穿墙壁的现象,进而任一区域中的簇内部通信都不会穿过墙壁,从而避免了因穿过墙壁进行通信会导致的信号衰减、通信性能下降的问题。In the implementation, in the process of dividing the area, the division is performed in units of rooms in the target house, for example, dividing the bathroom into one area and dividing the living room into another area. This ensures that there is no wall penetration in any area that is divided, and the internal communication of the cluster in any area will not pass through the wall, thus avoiding signal attenuation and communication caused by communication through the wall. The problem of performance degradation.
步骤S120,根据目标区域的区域属性信息,确定目标区域对应的簇头节点数目。Step S120: Determine the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area.
在实施中,由于划分区域的过程,是以目标房屋中的房间为单位的,因此划分得到的区域的大小都可能不同,故而再在区域中都选举一个簇头节点就有可能使得一个簇头节点所携带的簇成员节点过多或者过少,进而影响簇内通信效率。在本实施例提供的方法中,在选举簇头节点之前,首先需要根据目标区域的区域属性信息,确定目标区域对应的簇头节点数目。In the implementation, since the process of dividing the area is based on the room in the target house, the size of the divided area may be different, so it is possible to elect a cluster head node in the area to make a cluster head. The node member nodes carried by the node are too many or too few, which affects the communication efficiency within the cluster. In the method provided in this embodiment, before electing a cluster head node, first, it is necessary to determine the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area.
可选的,目标区域的区域属性信息包括目标区域的节点数目、最大边长以及目标区域中的节点到基站的平均距离。Optionally, the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
可选的,目标区域对应的簇头节点数目与目标区域的节点数目呈正相关,与目标区域的最大边长呈正相关,与目标区域中各节点到基站的平均距离呈反相关。Optionally, the number of cluster head nodes corresponding to the target area is positively correlated with the number of nodes in the target area, and is positively correlated with the maximum side length of the target area, and inversely related to the average distance of each node to the base station in the target area.
上述目标区域对应的簇头节点数目与目标区域的节点数目呈正相关、与目标区域的最大边长呈正相关,可以理解为目标区域的节点数目和/或目标区域的最大边长增大,则目标区域对应的簇头节点数目随之增大;上述目标区域对应的簇头节点数目与目标区域中各节点到基站的平均距离呈反相关,可以理解为目标区域中各节点到基站的平均距离减小,则目标区域对应的簇头节点数目随之减小。可选的,还可以对目标区域的节点数 目、目标区域的最大边长和目标区域中各节点到基站的平均距离设置常数权重,或者可以对目标区域的节点数目、目标区域的最大边长或目标区域中各节点到基站的平均距离进行开方或平方等等。The number of cluster head nodes corresponding to the target area is positively correlated with the number of nodes in the target area and positively correlated with the maximum side length of the target area. It can be understood that the number of nodes in the target area and/or the maximum side length of the target area increases, and the target The number of cluster head nodes corresponding to the region increases accordingly; the number of cluster head nodes corresponding to the target region is inversely related to the average distance from each node to the base station in the target region, which can be understood as the average distance from each node to the base station in the target region. Small, the number of cluster head nodes corresponding to the target area decreases. Optionally, the number of nodes in the target area is also available. The maximum side length of the target area and the average distance from each node to the base station in the target area are set to a constant weight, or the number of nodes in the target area, the maximum side length of the target area, or the average distance from each node to the base station in the target area may be performed. Square or square and so on.
可选的,步骤S120可以包括:根据以下计算公式确定目标区域对应的簇头节点数目:Optionally, step S120 may include: determining a number of cluster head nodes corresponding to the target area according to the following calculation formula:
Figure PCTCN2017104997-appb-000004
Figure PCTCN2017104997-appb-000004
其中,kopt为目标区域对应的簇头节点数目,n为目标区域的节点数目,M为目标区域的最大边长,dtoBS为目标区域中各节点到基站的平均距离。需要说明的是,M可以是目标区域边界线中的最大边长。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and d toBS is the average distance of each node in the target area to the base station. It should be noted that M may be the maximum side length in the boundary line of the target area.
需要说明的是,上述的公式1可以进行其他形式的调整,例如,可以对M和dtoBS设置权重,将上述公式1调整为:
Figure PCTCN2017104997-appb-000005
其中,a和b分别为M和dtoBS的常数权重;或者,在n的部分设置权重,将上述公式1调整为:
Figure PCTCN2017104997-appb-000006
其中,c为目标区域的节点数目的权重。可选的,上述常数a、b和c的取值具体可以根据实际情况确定,例如,可以由多次试验数据得到,或者是根据经验得到,本发明实施例不作限定。
It should be noted that the above formula 1 can be adjusted in other forms. For example, weights can be set for M and d toBS , and the above formula 1 is adjusted to:
Figure PCTCN2017104997-appb-000005
Where a and b are the constant weights of M and d toBS , respectively; or, the weight is set in the part of n, and the above formula 1 is adjusted to:
Figure PCTCN2017104997-appb-000006
Where c is the weight of the number of nodes in the target area. Optionally, the values of the above-mentioned constants a, b, and c may be determined according to actual conditions, for example, may be obtained from multiple test data, or obtained according to experience, and are not limited in the embodiment of the present invention.
例如,如图2所示,区域6对应的客厅长10米、宽5米,则其最大边长为10米。dtoBS是一个统计数据,具体地,在规划以及竖立基站的过程中,会统计周边地点到基站的距离,例如,某住宅X小区距离基站的距离为5千米,则可以在基站的存储器中将与某住宅X小区相应的标识与该基站与某住宅X小区的距离相对应地存储在距离列表中。当该基站获取到与某住宅X小区相应的标识时,就可以在距离列表中依据与某住宅X小区相应的标识进行查询,以确定与某住宅X小区相应的标识相应的基站与某住宅X小区的距离。当基站获取到每个节点的位置信息时,可以大致判断这些节点是来自于哪个地点的,进而粗略的确定该地点到该基站的平均距离dtoBSFor example, as shown in FIG. 2, the living room corresponding to the area 6 is 10 meters long and 5 meters wide, and the maximum side length is 10 meters. d toBS is a statistical data. Specifically, in planning and erecting a base station, the distance from the surrounding location to the base station is counted. For example, if a residential X cell is 5 kilometers away from the base station, it can be in the memory of the base station. The identifier corresponding to a certain residential X cell is stored in the distance list corresponding to the distance between the base station and a residential X cell. When the base station obtains an identifier corresponding to a residential X-cell, it may perform an inquiry according to the identifier corresponding to a residential X-cell in the distance list to determine a base station corresponding to a certain residential X-cell and a certain residential X. The distance of the cell. When the base station acquires the location information of each node, it can roughly determine which location the nodes are from, and roughly determine the average distance d toBS of the location to the base station.
上述公式1可以通过联立下列公式2至6,并对其中的参数k进行一阶求导,并令求导结果为0得出。 The above formula 1 can be obtained by combining the following formulas 2 to 6, and performing a first-order derivation of the parameter k therein, and making the derivation result 0.
公式2如下:Equation 2 is as follows:
Figure PCTCN2017104997-appb-000007
Figure PCTCN2017104997-appb-000007
其中,ECH为目标区域中一个簇内所有簇头节点消耗的总能量,n为目标区域的节点数目,k为目标区域对应的簇头节点数目,EDA为簇头节点进行数据融合所需要消耗的能量,dtoBS为目标区域中各节点到基站的平均距离,Eelec为簇头节点中的发射电路或接收电路每发送或接收1比特数据所消耗的能量,εfs取决于发射电路或接收电路中的信号放大器模型,L为需要传输的数据的比特数。其中,ECH、k、L为未知参数。EDA、Eelec为测试数据。一般地,在设计节点电路的阶段,就可以对节点的各性能进行测试,其中包括对节点EDA、Eelec的测试。在进行多次测试后,会得出EDA、Eelec的测试值,在之后应用到EDA、Eelec的测试值的时候,可以直接查询节点的使用手册就可以得知EDA、Eelec。在本实施例中,可以预先在各节点的存储器中预先将其EDA、Eelec分别对应的值进行存储。当基站需要获取这些值的时候,直接发送给基站即可。Where E CH is the total energy consumed by all cluster head nodes in a cluster in the target area, n is the number of nodes in the target area, k is the number of cluster head nodes corresponding to the target area, and E DA is required for data fusion of the cluster head node energy consumption, d toBS each node as a target area from the base station to the average, E elec circuit to transmit or receive circuitry of each cluster head transmits 1-bit data or receive energy consumed, ε fs depending transmit circuitry or The signal amplifier model in the receiving circuit, L is the number of bits of data that needs to be transmitted. Among them, E CH , k, L are unknown parameters. E DA and Elec are test data. Generally, at the stage of designing the node circuit, the performance of the node can be tested, including testing of the nodes E DA and Elec . After multiple tests, the test values of E DA and Elec will be obtained. When applied to the test values of E DA and Elec , the user's manual can be directly queried to know E DA and Elec. . In the present embodiment, values corresponding to the respective E DA and Elec can be stored in advance in the memory of each node. When the base station needs to obtain these values, it can be directly sent to the base station.
公式3如下:Equation 3 is as follows:
EnonCH=L·Eelec+L·εfs·d2 tocH   (公式3)E nonCH =L·E elec +L·ε fs ·d 2 tocH (Equation 3)
其中,EnonCH是目标区域中一个簇内所有簇成员节点消耗的总能量,dtoCH是簇成员节点到簇头节点的距离。其中,EnonCH、L、dtoCH为未知参数。dtoCH的计算公式可以见公式4:Where E nonCH is the total energy consumed by all cluster member nodes in a cluster in the target area, and d toCH is the distance from the cluster member node to the cluster head node. Where E nonCH , L, and d toCH are unknown parameters. The formula for calculating d toCH can be seen in Equation 4:
Figure PCTCN2017104997-appb-000008
Figure PCTCN2017104997-appb-000008
其中,ρ(x,y)是节点的分布密度函数,x、y为目标区域中各节点的位置坐标。需要说明的是,在推导公式1的过程中,首先可以将公式4代入公式3,即可将公式3中的d2 toCH直接消掉。Where ρ(x, y) is the distribution density function of the node, and x and y are the position coordinates of each node in the target area. It should be noted that in the process of deriving the formula 1, the formula 4 can be substituted into the formula 3, and the d 2 to CH in the formula 3 can be directly eliminated.
公式5如下:Equation 5 is as follows:
Figure PCTCN2017104997-appb-000009
Figure PCTCN2017104997-appb-000009
其中,Ecluster为目标区域中一个簇内所有节点消耗的总能量。 Where E cluster is the total energy consumed by all nodes in a cluster in the target area.
公式6如下:Equation 6 is as follows:
Etot=L(2nEelec+nEDAfs(kd2 toBS+nd2 toCH))       (公式6)E tot = L(2nE elec +nE DAfs (kd 2 toBS +nd 2 toCH )) (Equation 6)
其中,Etot为目标区域内所有节点消耗的总能量。Where E tot is the total energy consumed by all nodes in the target area.
通过联立上述公式2至6,把可以消掉的未知参数消掉,并对其中的参数k进行一阶求导,然后令求导结果为0,得到上述kopt的表达式(公式1)。By synthesizing the above formulas 2 to 6, the unknown parameters that can be eliminated are eliminated, and the first-order derivation of the parameter k is performed, and then the derivation result is 0, and the expression of the above k opt is obtained (formula 1) .
步骤S130,根据目标区域中节点的竞争值,在目标区域的节点中选举簇头节点数目的簇头节点。Step S130, selecting a cluster head node of the number of cluster head nodes in the nodes of the target area according to the contention value of the nodes in the target area.
在实施中,本实施例可以提供一种竞争值算法进行目标区域中各节点的竞争值的计算。对于竞争值的计算实际存在多种算法,在此本实施例不一一举例。In an implementation, the embodiment may provide a contention value algorithm for calculating the contention value of each node in the target area. There are a plurality of algorithms for the calculation of the competition value, which are not exemplified in this embodiment.
可选的,在计算目标区域中节点的竞争值之前,可以先确认哪些节点参与簇头节点的选举,并且不对不需要参与簇头节点选举的节点进行竞争值的计算。具体地,可以先判断节点是否是通信能力较强的节点。可以将使用蜂窝网通信的节点作为通信能力强的节点,如使用SIM卡通信的手机等节点。另外,可以将其余使用WiFi、蓝牙、Zigbee(紫蜂协议)、D2D(Device-to-Device Communication,邻近通讯网络)通信的节点作为通信能力弱的节点。以上针对节点进行的通信能力强弱的区分,主要是依据其通信的距离远近划分的。例如,手机可以通过蜂窝网连接到千米之外的基站,然而,平板电脑通过WiFi只能连接到三十米之内的路由器。显然,手机的通信能力要远远大于平板电脑的通信能力。根据对节点通信能力的判断结果,确定目标区域中包含的通信能力强的节点。接着,可以判断这些通信能力强的节点是否与基站已建立连接。若是,则确定与基站已建立连接的节点参与簇头节点的选举。Optionally, before calculating the contention value of the node in the target area, it may first confirm which nodes participate in the election of the cluster head node, and do not perform the calculation of the contention value for the nodes that do not need to participate in the election of the cluster head node. Specifically, it may be first determined whether the node is a node with strong communication capability. A node that uses cellular communication can be used as a node with strong communication capabilities, such as a mobile phone using a SIM card communication. In addition, the remaining nodes that use WiFi, Bluetooth, Zigbee, and D2D (Device-to-Device Communication) communication can be used as nodes with weak communication capabilities. The above distinctions for the communication capabilities of the nodes are mainly based on the distance of their communication. For example, a mobile phone can be connected to a base station outside of a kilometer via a cellular network, however, the tablet can only be connected to a router within 30 meters via WiFi. Obviously, the communication capacity of mobile phones is far greater than the communication capabilities of tablet computers. The node having strong communication capability included in the target area is determined according to the judgment result of the communication capability of the node. Then, it can be determined whether these nodes with strong communication capabilities have established a connection with the base station. If so, it is determined that the node that has established a connection with the base station participates in the election of the cluster head node.
继而,计算目标区域中参与簇头节点选举的节点的竞争值。具体地,可以通过节点与基站的信号连接强度、节点链路信息来计算节点的竞争值。其中,节点与基站的信号连接强度可以通过直接接收节点发送的强度信息进行获取。节点链路信息包括连接度、负载大小、节点剩余能量、节点剩余带宽、节点生存时间。其中,连接度可以为本节点的周围邻居节点的一 跳节点数。节点剩余能量、节点剩余带宽可以直接从节点中获取。节点生存时间表示移动的节点可以在本目标区域中存在的时间。首先可以通过节点的位置信息确定节点处于目标区域中的位置,再根据节点的运动速度确定节点运动出目标区域所需时间即为节点生存时间。负载大小的计算公式可以见公式7:Then, the contention value of the nodes participating in the election of the cluster head node in the target area is calculated. Specifically, the contention value of the node may be calculated by the signal connection strength of the node and the base station, and the node link information. The signal connection strength between the node and the base station can be obtained by directly receiving the strength information sent by the node. The node link information includes the connectivity, the load size, the remaining energy of the node, the remaining bandwidth of the node, and the lifetime of the node. Wherein, the degree of connectivity may be one of neighboring nodes of the node The number of hop nodes. The remaining energy of the node and the remaining bandwidth of the node can be obtained directly from the node. The node lifetime represents the time at which the moving node can exist in the target area. Firstly, the position information of the node can be determined by the position information of the node, and then the time required for the node to move out of the target area according to the motion speed of the node is the node survival time. The formula for calculating the load size can be seen in Equation 7:
Figure PCTCN2017104997-appb-000010
Figure PCTCN2017104997-appb-000010
其中,Δt是测量时间,Qmax是目标区域中节点i中最大的需要传输的数据队列长度,Qavg(t)是从t-Δt到t时间内目标区域中节点i的需要传输的数据平均队列大小。Where Δt is the measurement time, Q max is the largest data queue length in node i in the target area that needs to be transmitted, and Q avg (t) is the average data to be transmitted by node i in the target area from t-Δt to t time. Queue size.
通过节点与基站的信号连接强度、节点链路信息来计算节点的竞争值的方法可以见公式8:The method for calculating the contention value of a node by the signal connection strength of the node and the base station and the link information of the node can be seen in Equation 8:
Figure PCTCN2017104997-appb-000011
Figure PCTCN2017104997-appb-000011
其中,N是参与簇头节点选举的节点数目,pj是节点链路信息中包括的连接度、负载大小、节点剩余能量、节点剩余带宽、节点生存时间的各参数的归一化值,w表示各参数对应的权重。其中,不同的参数以及其权重可以根据不同的应用环境来确定。Where N is the number of nodes participating in the election of the cluster head node, and p j is the normalized value of each parameter included in the link information of the node, such as the degree of connectivity, the size of the load, the remaining energy of the node, the remaining bandwidth of the node, and the lifetime of the node, w Indicates the weight corresponding to each parameter. Among them, different parameters and their weights can be determined according to different application environments.
可选的,目标区域中的节点还可以将其与周围邻居节点的网络拓扑图发送至基站。基站可以根据目标区域中的节点与周围邻居节点的网络拓扑图得到整个目标房屋的网络拓扑图。Optionally, the node in the target area may also send the network topology map of the neighboring node to the base station. The base station can obtain a network topology diagram of the entire target house according to the network topology map of the node in the target area and the neighboring neighbor nodes.
可选的,选举簇头节点的方法可以如下。如图3所示,步骤S130可以包括:步骤S310,按照目标区域中节点的竞争值由大至小对目标区域中的节点进行排序;步骤S320,选举排在前N位的节点作为簇头节点,其中,N为簇头节点数目,N为大于或等于1的整数。Optionally, the method for electing a cluster head node may be as follows. As shown in FIG. 3, step S130 may include: step S310, sorting nodes in the target area according to the contention value of the nodes in the target area from large to small; and step S320, selecting the node ranked in the top N as the cluster head node. Where N is the number of cluster head nodes and N is an integer greater than or equal to 1.
在实施中,如图2所示,例如,目标区域为区域6,按照区域6中各节点的竞争值由大至小对各节点进行排序,排序结果为:节点C、节点E、节点F、节点A、节点D、节点B。簇头节点数目为2,则可以选举排在前2位的节点C和节点E作为簇头节点。In the implementation, as shown in FIG. 2, for example, the target area is the area 6, and the nodes are sorted according to the competition value of each node in the area 6 from large to small, and the ranking result is: node C, node E, node F, Node A, Node D, Node B. If the number of cluster head nodes is 2, node C and node E ranked in the top 2 positions can be elected as cluster head nodes.
可选的,在选举完毕簇头节点后,例如,接上例,可以将簇头节点C 周围的节点A和节点B作为其簇成员节点,可以将簇头节点E周围的节点D和节点F作为其簇成员节点。或者,还可以根据除簇头节点外的其他节点传输的数据大小进行分簇。例如,节点A是电视、节点B是温度传感器、节点D是电脑、节点F是湿度传感器。一般可以认为电视、电脑需要传输的数据量大,温度传感器、湿度传感器需要传输的数据量小。因此,可以根据需要传输的数据量,将数据量大的节点分开,以避免他们同时在一个簇内,簇头节点不能有效地处理簇内簇成员节点的数据。例如,可以将簇头节点C周围的电视和温度传感器作为其簇成员节点,可以将簇头节点E周围的电脑和湿度传感器作为其簇成员节点。当然,还可以通过预订的算法进行分簇。最后,当选举完毕簇头节点并确定完毕哪一簇头节点携带哪些簇成员节点之后,基站将选举结果与分簇结果下发至各参与簇头节点选举的节点。落选的节点可以断开与基站的连接,转而与其簇头节点相连。当选簇头节点的节点可以通知其簇成员节点与自己建立连接。Optionally, after the cluster head node is elected, for example, by connecting the example, the cluster head node C can be The surrounding nodes A and B serve as their cluster member nodes, and node D and node F around the cluster head node E can be used as their cluster member nodes. Alternatively, clustering may be performed according to the size of data transmitted by other nodes than the cluster head node. For example, node A is a television, node B is a temperature sensor, node D is a computer, and node F is a humidity sensor. Generally speaking, the amount of data that TVs and computers need to transmit is large, and the amount of data that temperature sensors and humidity sensors need to transmit is small. Therefore, nodes with a large amount of data can be separated according to the amount of data to be transmitted, so that they are in a cluster at the same time, and the cluster head node cannot effectively process the data of the cluster member nodes in the cluster. For example, a television and a temperature sensor around the cluster head node C can be used as its cluster member node, and a computer and a humidity sensor around the cluster head node E can be used as its cluster member node. Of course, it can also be clustered by the algorithm of the reservation. Finally, after the cluster head node is elected and the cluster node nodes are carried by the cluster head node, the base station sends the election result and the clustering result to the nodes participating in the election of the cluster head node. The unsuccessful node can disconnect from the base station and connect to its cluster head node instead. The node that selects the cluster head node can notify its cluster member node to establish a connection with itself.
可选的,还可以不断地更新最优的节点作为簇头节点。相应地,在选举簇头节点完毕后,当检测到有新节点加入目标区域中时,本实施例提供的方法还包括:根据目标区域中新节点以及簇头节点的竞争值,在新节点以及簇头节点中选举排在前N位的节点作为簇头节点,其中,N为簇头节点数目。Optionally, the optimal node can also be continuously updated as a cluster head node. Correspondingly, after the election of the cluster head node is completed, when a new node is detected to join the target area, the method provided by the embodiment further includes: according to the competition value of the new node and the cluster head node in the target area, the new node and The cluster head node elects the node ranked in the first N bits as the cluster head node, where N is the number of cluster head nodes.
在实施中,当检测到有新节点开启并加入到家庭中的局域网中时,可以计算新节点的竞争值,根据目标区域中新节点以及各簇头节点的竞争值,在新节点以及各簇头节点中选举排在前N位的节点作为簇头节点。In the implementation, when it is detected that a new node is opened and added to the local area network, the contention value of the new node may be calculated, according to the new node in the target area and the competition value of each cluster head node, in the new node and each cluster. The node in the top N position is elected as the cluster head node.
可选的,除上述更新最优的节点作为簇头节点的方法外,还可以提供另一种更新最优的节点作为簇头节点的方法。在每经过预定的时间T后,都重新计算一次目标区域中节点的竞争值,并重新依据新的竞争值进行簇头节点的选举。Optionally, in addition to the foregoing method of updating an optimal node as a cluster head node, another method of updating an optimal node as a cluster head node may be provided. After each predetermined time T, the competition value of the nodes in the target area is recalculated, and the election of the cluster head nodes is performed again according to the new competition value.
在选举完毕簇头节点并完成分簇后,如图4所示,就可以建立一个完整的网络了。其中,基站可以与簇头节点相连,簇头节点可以与其簇成员节点相连。簇头节点之间也可以进行通信。After the cluster head node is elected and clustering is completed, as shown in Figure 4, a complete network can be established. The base station can be connected to the cluster head node, and the cluster head node can be connected to its cluster member node. Communication can also take place between cluster head nodes.
可选的,在选举完毕簇头节点并完成分簇后,基站可以将整个目标房屋的网络拓扑图发送给各节点,各节点可以根据整个目标房屋的网络拓扑 图计算路由表。如果节点是在家庭中的局域网内部进行通信,则各节点可以通过查询路由表来确定如何将数据从源节点发送到目的节点。需要说明的是,在家庭中的局域网中,除可以与簇头节点直接相连的簇成员节点外,还存在不能直接与簇头节点直接相连的二级簇成员节点,他们需要通过他们之间的通信以及与可以与簇头节点直接相连的簇成员节点之间的通信来传输数据。因此,从源节点到目的节点之间可能存在多条通路。Optionally, after the cluster head node is elected and the clustering is completed, the base station may send the network topology map of the entire target house to each node, and each node may be based on the network topology of the entire target house. The graph calculates the routing table. If the node is communicating within the local area network of the home, each node can determine how to send data from the source node to the destination node by querying the routing table. It should be noted that, in the local area network, in addition to the cluster member nodes directly connected to the cluster head node, there are secondary cluster member nodes that cannot be directly connected to the cluster head node, and they need to pass between them. Communication and transmission of data with communication between cluster member nodes that can be directly connected to the cluster head node. Therefore, there may be multiple paths from the source node to the destination node.
可选的,如图5所示,可以将需要传输的数据切分成三份,并通过三条优选路径进行数据传输。对于传输中的任一节点,当该节点接收到任一数据包时,可以判断自己是不是目的节点,若是则解开该数据包,若不是则判断是否是第一次接收到该数据包。若是第一次接收到该数据包,则直接转发该数据包。若不是第一次接到到该数据包,则判断该数据包第二次传输的路径与第一次传输的路径是否相交,若是,则丢弃该数据包。例如,如图5所示,源节点将数据包Bag从节点A发送到节点B,节点B判断是第一次接收到数据包Bag,当源节点将数据包Bag再次从节点C发送到节点B时,节点B判断不是第一次接收到数据包Bag了,则判断第二次传输的路径是否与第一次传输的路径相交。具体地,数据包Bag第一次从源节点发送到节点A再发送到节点B再发送到节点D,数据包Bag第二次是从源节点发送到节点C再发送到节点B再发送到节点D,这两条路径是相交的,交点就是节点B,因此可以将数据包Bag丢弃,以避免重复发送数据包Bag到目的节点、浪费局域网的通信资源。此外,当源节点是局域网内部节点,而目的节点是局域网外部节点时,需要通过源节点的簇头节点将数据转发到基站,再由基站转发到目的节点所在网络中。Optionally, as shown in FIG. 5, the data to be transmitted may be divided into three parts, and data transmission is performed through three preferred paths. For any node in the transmission, when the node receives any data packet, it can determine whether it is the destination node, and if so, unpack the data packet, if not, determine whether it is the first time to receive the data packet. If the packet is received for the first time, the packet is directly forwarded. If the packet is not received for the first time, it is determined whether the path of the second transmission of the packet intersects with the path of the first transmission, and if so, the packet is discarded. For example, as shown in FIG. 5, the source node sends the data packet Bag from the node A to the node B, and the node B determines that the data packet is received for the first time, and the source node sends the data packet Bag again from the node C to the node B. When the Node B determines that the data packet is not received for the first time, it determines whether the path of the second transmission intersects with the path of the first transmission. Specifically, the data packet Bag is sent from the source node to the node A for the first time and then to the node B and then to the node D. The data packet Bag is sent from the source node to the node C and then to the node B and then to the node. D, the two paths are intersected, and the intersection point is the node B, so the packet of the packet can be discarded to avoid repeatedly sending the packet to the destination node and wasting the communication resources of the local area network. In addition, when the source node is an internal node of the local area network and the destination node is an external node of the local area network, the cluster head node of the source node needs to forward the data to the base station, and then the base station forwards the data to the network where the destination node is located.
通过本实施例提供的方法,根据目标区域的区域属性信息,确定目标区域对应的簇头节点数目,此簇头节点数目时根据目标区域的区域属性信息确定得到的,针对不同范围的目标区域,具有不同区域属性,则区域属性信息也都不尽相同,进而确定得到的簇头节点数目也是依据目标区域属性而变化的,动态变化的簇头节点数目相较于固定的簇头节点数目更适用于不同范围的目标区域。According to the method provided in this embodiment, the number of cluster head nodes corresponding to the target area is determined according to the area attribute information of the target area, and the number of the cluster head nodes is determined according to the area attribute information of the target area, and the target area is determined for different ranges. If there are different area attributes, the area attribute information is also different, and then the number of cluster head nodes obtained is determined according to the target area attribute. The number of dynamically changing cluster head nodes is more suitable than the fixed number of cluster head nodes. Target areas in different ranges.
本公开又一示例性实施例提供了一种基站,如图6所示,该基站包括: A further exemplary embodiment of the present disclosure provides a base station, as shown in FIG. 6, the base station includes:
节点确定模块610,用于根据目标房屋中节点的位置信息和目标房屋中目标区域的范围,确定所述目标区域中包含的节点;a node determining module 610, configured to determine, according to location information of a node in the target house and a range of the target area in the target house, a node included in the target area;
数目确定模块620,用于根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目;The number determining module 620 is configured to determine, according to the area attribute information of the target area, the number of cluster head nodes corresponding to the target area;
第一选举模块630,用于根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点。The first election module 630 is configured to elect, according to a contention value of a node in the target area, a cluster head node of the number of cluster head nodes among nodes of the target area.
可选的,所述目标区域的区域属性信息包括所述目标区域的节点数目、最大边长以及所述目标区域中的节点到基站的平均距离。Optionally, the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
可选的,所述目标区域对应的簇头节点数目与所述目标区域的节点数目呈正相关,与所述目标区域的最大边长呈正相关,与所述目标区域中各节点到基站的平均距离呈反相关。Optionally, the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
可选的,数目确定模块620具体用于根据以下计算公式确定目标区域对应的簇头节点数目:Optionally, the number determining module 620 is specifically configured to determine, according to the following calculation formula, a number of cluster head nodes corresponding to the target area:
Figure PCTCN2017104997-appb-000012
Figure PCTCN2017104997-appb-000012
其中,kopt为所述目标区域对应的簇头节点数目,n为所述目标区域的节点数目,M为所述目标区域的最大边长,所述dtoBS为目标区域中各节点到基站的平均距离。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and the d toBS is the node to the base station in the target area. Average distance.
可选的,所述目标区域为所述目标房屋的一个房间。Optionally, the target area is a room of the target house.
可选的,如图7所示,所述第一选举模块630包括:Optionally, as shown in FIG. 7, the first election module 630 includes:
排序单元731,用于按照所述目标区域中节点的竞争值由大至小对所述目标区域中的节点进行排序;a sorting unit 731, configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
选举单元732,用于选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。The election unit 732 is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
可选的,在所述基站选举簇头节点完毕后,当检测到有新节点加入所述目标区域中时,所述基站还包括:Optionally, after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
第二选举模块,用于根据所述目标区域中新节点以及簇头节点的竞争值,在所述新节点以及所述簇头节点中选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。a second election module, configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a competition value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
关于上述实施例中的基站,其中各个模块执行操作的具体方式已经在 有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the base station in the above embodiment, the specific manner in which each module performs an operation has been A detailed description of the embodiment of the method will not be described in detail herein.
通过本实施例提供的方法,根据目标区域的区域属性信息,确定目标区域对应的簇头节点数目,此簇头节点数目时根据目标区域的区域属性信息确定得到的,针对不同范围的目标区域,具有不同区域属性,则区域属性信息也都不尽相同,进而确定得到的簇头节点数目也是依据目标区域属性而变化的,动态变化的簇头节点数目相较于固定的簇头节点数目更适用于不同范围的目标区域。According to the method provided in this embodiment, the number of cluster head nodes corresponding to the target area is determined according to the area attribute information of the target area, and the number of the cluster head nodes is determined according to the area attribute information of the target area, and the target area is determined for different ranges. If there are different area attributes, the area attribute information is also different, and then the number of cluster head nodes obtained is determined according to the target area attribute. The number of dynamically changing cluster head nodes is more suitable than the fixed number of cluster head nodes. Target areas in different ranges.
需要说明的是:上述实施例提供的选举簇头节点的方法在选举簇头节点时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将基站的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的基站与选举簇头节点的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the method for electing a cluster head node provided by the foregoing embodiment is only exemplified by the division of the foregoing functional modules when the cluster head node is elected. In actual applications, the foregoing functions may be allocated differently according to requirements. The function module is completed, that is, the internal structure of the base station is divided into different functional modules to complete all or part of the functions described above. In addition, the method for the base station and the method for electing the cluster head node in the foregoing embodiment are the same. The specific implementation process is described in the method embodiment, and details are not described herein again.
本公开实施例还提供一种基站,该基站包括:The embodiment of the present disclosure further provides a base station, where the base station includes:
节点确定器,配置为根据目标房屋中节点的位置信息和所述目标房屋中目标区域的范围,确定所述目标区域中包含的节点;a node determiner configured to determine a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
数目确定器,配置为根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目;a number determining unit, configured to determine, according to the area attribute information of the target area, a number of cluster head nodes corresponding to the target area;
第一选举器,配置为根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点。The first electoral device is configured to elect a cluster head node of the number of cluster head nodes among nodes of the target area according to a contention value of a node in the target area.
可选的,所述目标区域的区域属性信息包括所述目标区域的节点数目、最大边长以及所述目标区域中的节点到基站的平均距离。Optionally, the area attribute information of the target area includes a number of nodes of the target area, a maximum side length, and an average distance of the node to the base station in the target area.
可选的,所述目标区域对应的簇头节点数目与所述目标区域的节点数目呈正相关,与所述目标区域的最大边长呈正相关,与所述目标区域中各节点到基站的平均距离呈反相关。Optionally, the number of the cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the average distance from each node to the base station in the target area. It is inversely related.
可选的,所述数目确定器,具体配置为根据以下计算公式确定目标区域对应的簇头节点数目:Optionally, the number determiner is specifically configured to determine a number of cluster head nodes corresponding to the target area according to the following calculation formula:
Figure PCTCN2017104997-appb-000013
Figure PCTCN2017104997-appb-000013
其中,kopt为所述目标区域对应的簇头节点数目,n为所述目标区域 的节点数目,M为所述目标区域的最大边长,所述dtoBS为目标区域中各节点到基站的平均距离。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and the d toBS is the node to the base station in the target area. Average distance.
可选的,所述目标区域为所述目标房屋的一个房间。Optionally, the target area is a room of the target house.
可选的,所述第一选举器包括:Optionally, the first electoralator includes:
排序器,配置为按照所述目标区域中节点的竞争值由大至小对所述目标区域中的节点进行排序;a sorter configured to sort nodes in the target area according to a competition value of nodes in the target area from large to small;
选举器,配置为选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。The elector is configured to elect a node ranked in the top N as a cluster head node, where N is the number of cluster head nodes.
可选的,在所述基站选举簇头节点完毕后,当检测到有新节点加入所述目标区域中时,所述基站还包括:Optionally, after the base station elects the cluster head node, when the new node is detected to join the target area, the base station further includes:
第二选举器,配置为根据所述目标区域中新节点以及簇头节点的竞争值,在所述新节点以及所述簇头节点中选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目。a second arbitrator configured to select a node ranked in the top N as a cluster head node in the new node and the cluster head node according to a contention value of the new node and the cluster head node in the target area, where N is the number of cluster head nodes.
本公开实施例提供一种基站,该基站包括处理器和存储器,存储器中存储有计算机指令,计算机指令由处理器执行以实现上述公开实施例所示的选举簇头节点的方法。Embodiments of the present disclosure provide a base station including a processor and a memory, where the computer instructions are stored in the memory, and the computer instructions are executed by the processor to implement the method for electing the cluster head node shown in the above disclosed embodiments.
如图8所示,为一种基站900的结构示意图,该基站900包括处理器902和存储器904。As shown in FIG. 8, it is a schematic structural diagram of a base station 900, which includes a processor 902 and a memory 904.
处理器902通常控制基站900的整体操作,处理器902可以用来执行计算机指令,以完成上述公开实施例所示的选举簇头节点的方法的全部或部分步骤。示例性的。该处理器902可以是中央处理器,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本公开实施例内容所描述的各种示例性的逻辑方框,模块和电路。该处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 902 typically controls the overall operation of the base station 900, and the processor 902 can be used to execute computer instructions to perform all or part of the steps of the method of electing a cluster head node as disclosed in the above-described disclosed embodiments. Exemplary. The processor 902 can be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It is possible to implement or perform various illustrative logical blocks, modules and circuits described in connection with the embodiments of the present disclosure. The processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
存储器904可配置为存储各种类型的数据,以支持在基站900的操作。这些数据的示例包括用于在基站900上操作的任何应用程序或方法的指令。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储 器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 904 can be configured to store various types of data to support operation at base station 900. Examples of such data include instructions for any application or method operating on base station 900. Memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
通信组件906被配置为便于基站900和其他设备之间有线或无线方式的通信。基站900可以接入基于通信标准的无线网络,如2G、3G或4G,或它们的组合。 Communication component 906 is configured to facilitate wired or wireless communication between base station 900 and other devices. The base station 900 can access a wireless network based on a communication standard, such as 2G, 3G or 4G, or a combination thereof.
在示例性实施例中,基站900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述本公开实施例中所述的选举簇头节点的方法。In an exemplary embodiment, base station 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the method of electing a cluster head node as described in the above embodiments of the present disclosure.
在示例性实施例中,还提供了一种计算机可读存储介质,该存储介质上存储有计算机指令,当所述存储介质中的指令由处理器执行以完成上述公开实施例所示的选举簇头节点的方法。示例性的,所述计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a computer readable storage medium having stored thereon computer instructions, wherein instructions in the storage medium are executed by a processor to perform electoral clusters as disclosed in the above disclosed embodiments The method of the head node. Illustratively, the computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
可选的,所述计算机可读存储介质可以为非易失性存储介质。Optionally, the computer readable storage medium may be a non-volatile storage medium.
本公开实施例还提供一种计算机程序产品,所述计算机程序产品中存储有计算机指令、所述计算机指令由处理器执行以实现上述公开实施例所示的选举簇头节点的方法。The embodiment of the present disclosure further provides a computer program product, wherein the computer program product stores a computer instruction, and the computer instruction is executed by a processor to implement the method for electing a cluster head node shown in the above disclosed embodiment.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present disclosure, which are in accordance with the general principles of the disclosure and include common general knowledge or common technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be regarded as illustrative only,
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details and The scope of the disclosure is to be limited only by the appended claims.

Claims (10)

  1. 一种选举簇头节点的方法,其特征在于,所述方法包括:A method for electing a cluster head node, the method comprising:
    根据目标房屋中节点的位置信息和所述目标房屋中目标区域的范围,确定所述目标区域中包含的节点;Determining a node included in the target area according to location information of a node in the target house and a range of the target area in the target house;
    根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目;Determining, according to the area attribute information of the target area, the number of cluster head nodes corresponding to the target area;
    根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点。And selecting, according to a contention value of a node in the target area, a cluster head node of the number of cluster head nodes among nodes of the target area.
  2. 根据权利要求1所述的方法,其特征在于,所述目标区域的区域属性信息包括所述目标区域的节点数目、最大边长以及所述目标区域中的节点到基站的平均距离。The method according to claim 1, wherein the area attribute information of the target area comprises a number of nodes of the target area, a maximum side length, and an average distance of a node to a base station in the target area.
  3. 根据权利要求2所述的方法,其特征在于,所述目标区域对应的簇头节点数目与所述目标区域的节点数目呈正相关,与所述目标区域的最大边长呈正相关,与所述目标区域中各节点到基站的平均距离呈反相关。The method according to claim 2, wherein the number of cluster head nodes corresponding to the target area is positively correlated with the number of nodes of the target area, and is positively correlated with the maximum side length of the target area, and the target The average distance from each node to the base station in the area is inversely related.
  4. 根据权利要求2或3所述的方法,其特征在于,所述根据所述目标区域的区域属性信息,确定所述目标区域对应的簇头节点数目包括:The method according to claim 2 or 3, wherein the determining the number of cluster head nodes corresponding to the target area according to the area attribute information of the target area comprises:
    根据以下计算公式确定目标区域对应的簇头节点数目:Determine the number of cluster head nodes corresponding to the target area according to the following calculation formula:
    Figure PCTCN2017104997-appb-100001
    Figure PCTCN2017104997-appb-100001
    其中,kopt为所述目标区域对应的簇头节点数目,n为所述目标区域的节点数目,M为所述目标区域的最大边长,所述dtoBS为目标区域中各节点到基站的平均距离。Where k opt is the number of cluster head nodes corresponding to the target area, n is the number of nodes of the target area, M is the maximum side length of the target area, and the d toBS is the node to the base station in the target area. Average distance.
  5. 根据权利要求1所述的方法,其特征在于,所述目标区域包括所述目标房屋的一个房间。The method of claim 1 wherein said target area comprises a room of said target house.
  6. 根据权利要求1所述的方法,其特征在于,根据所述目标区域中节点的竞争值,在所述目标区域的节点中选举所述簇头节点数目的簇头节点,包括:The method according to claim 1, wherein the cluster head node that elects the number of the cluster head nodes in the nodes of the target area according to the contention value of the nodes in the target area comprises:
    按照所述目标区域中节点的竞争值由大至小对所述目标区域的节点进行排序;Sorting the nodes of the target area according to the competition value of the nodes in the target area from large to small;
    选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目, N为大于或等于1的整数。Electing the nodes ranked in the top N as cluster head nodes, where N is the number of cluster head nodes, N is an integer greater than or equal to 1.
  7. 根据权利要求1所述的方法,其特征在于,在选举簇头节点完毕后,当检测到有新节点加入所述目标区域中时,所述方法还包括:The method according to claim 1, wherein after the election of the cluster head node is completed, when it is detected that a new node is added to the target area, the method further includes:
    根据所述目标区域中新节点以及簇头节点的竞争值,在所述新节点以及所述簇头节点中选举排在前N位的节点作为簇头节点,其中,N为所述簇头节点数目,N为大于或等于1的整数。Selecting, in the new node and the cluster head node, a node ranked in the top N as a cluster head node according to a contention value of the new node and the cluster head node in the target area, where N is the cluster head node The number, N is an integer greater than or equal to 1.
  8. 一种基站,其特征在于,所述基站包括:处理器和存储器;所述存储器中存储有计算机指令,所述计算机指令由所述处理器执行以实现上述权利要求1-7任一所述的选举簇头节点的方法。A base station, comprising: a processor and a memory; wherein the memory stores computer instructions, the computer instructions being executed by the processor to implement any of the above claims 1-7 The method of electing a cluster head node.
  9. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机指令,所述计算机指令由处理器执行以实现如权利要求1-7任一所述的选举簇头节点的方法。A computer readable storage medium, wherein the storage medium stores computer instructions, the computer instructions being executed by a processor to implement the method of electing a cluster head node according to any of claims 1-7.
  10. 一种计算机程序产品,其特征在于,所述计算机程序产品中存储有计算机指令,所述计算机指令由处理器执行以实现如权利要求1-7任一所述的选举簇头节点的方法。 A computer program product, wherein the computer program product stores computer instructions, the computer instructions being executed by a processor to implement the method of electing a cluster head node according to any of claims 1-7.
PCT/CN2017/104997 2017-06-20 2017-09-30 Method, base station, and storage medium for selecting cluster head node WO2018233139A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710471798.1A CN107071849B (en) 2017-06-20 2017-06-20 Method and device for electing cluster head node
CN201710471798.1 2017-06-20

Publications (1)

Publication Number Publication Date
WO2018233139A1 true WO2018233139A1 (en) 2018-12-27

Family

ID=59594429

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104997 WO2018233139A1 (en) 2017-06-20 2017-09-30 Method, base station, and storage medium for selecting cluster head node

Country Status (2)

Country Link
CN (1) CN107071849B (en)
WO (1) WO2018233139A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071849B (en) * 2017-06-20 2020-08-04 海信集团有限公司 Method and device for electing cluster head node
CN111586789A (en) * 2020-05-19 2020-08-25 北京理工大学 Data transmission method and device, computer equipment and storage medium
CN113588001A (en) * 2021-08-12 2021-11-02 上海宏英智能科技股份有限公司 Engineering machine tool state monitoring system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729331A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Clustering method and device, routing method and device of cluster head and base station
CN102176149A (en) * 2011-02-24 2011-09-07 浙江工业大学 Intelligent building energy consumption monitoring system based on wireless sensor network
CN102695190A (en) * 2012-05-16 2012-09-26 东南大学 Data acquisition method in wireless sensor network
CN103826282A (en) * 2014-02-24 2014-05-28 南昌大学 Set partitioning multi-hop routing method based on dump energy
CN105704775A (en) * 2016-01-13 2016-06-22 湖南工业大学 Improved low energy adaptive clustering hierarchy (LEACH) method
CN107071849A (en) * 2017-06-20 2017-08-18 海信集团有限公司 A kind of method and apparatus for electing leader cluster node

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036308B (en) * 2010-12-09 2013-04-17 江南大学 Energy balancing wireless sensor network clustering method
CN104144425B (en) * 2013-05-08 2020-06-12 索尼公司 Network management apparatus, method and apparatus in wireless communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729331A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Clustering method and device, routing method and device of cluster head and base station
CN102176149A (en) * 2011-02-24 2011-09-07 浙江工业大学 Intelligent building energy consumption monitoring system based on wireless sensor network
CN102695190A (en) * 2012-05-16 2012-09-26 东南大学 Data acquisition method in wireless sensor network
CN103826282A (en) * 2014-02-24 2014-05-28 南昌大学 Set partitioning multi-hop routing method based on dump energy
CN105704775A (en) * 2016-01-13 2016-06-22 湖南工业大学 Improved low energy adaptive clustering hierarchy (LEACH) method
CN107071849A (en) * 2017-06-20 2017-08-18 海信集团有限公司 A kind of method and apparatus for electing leader cluster node

Also Published As

Publication number Publication date
CN107071849B (en) 2020-08-04
CN107071849A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN108574970B (en) Father node selection method, network node and system
US7142866B2 (en) Load leveling in mobile ad-hoc networks to support end-to-end delay reduction, QoS and energy leveling
CN109257319B (en) Internet of things, and routing and identifier distribution method, device, equipment and medium thereof
WO2018233139A1 (en) Method, base station, and storage medium for selecting cluster head node
TWI721264B (en) Method for establishing a bidirectional route between a route originator node and a route destination node
CN111835638A (en) Policy rule issuing method, device and system
JP2017216682A (en) Radio network establishment method, device, and terminal apparatus
KR20150084647A (en) Method and apparatus for establishing a virtual interface for a set of mutual-listener devices
CN110167198A (en) The method and apparatus for determining protocol Data Unit conversational services network element
WO2018233138A1 (en) Method, computer apparatus, and storage medium for selecting cluster head node
TW201944801A (en) Methods and apparatus for selecting cell in mobile communications
JP2010045525A (en) Autonomous group construction method in wireless ad-hoc network, and data distribution method and data collection method using the same
Fabian et al. Fuzzy-based objective function for routing protocol in the internet of things
KR20210010574A (en) Service quality monitoring method and system, and device
CN108390824B (en) Ad-hoc network path construction system and node
Mu An improved AODV routing for the zigbee heterogeneous networks in 5G environment
CN108370610A (en) Interference mitigation in dense grid network
JP2017175619A (en) Auxiliary device for constructing radio network, mobile terminal and radio network construction method
JP2013132052A (en) Partner discovery/selection method, device and system
US20130290560A1 (en) Systems and methods for determining routes in networks
WO2022082356A1 (en) Communication method and apparatus
US20170019327A1 (en) Heterogeneous network system, network apparatus, and rendezvous path selection method thereof
JP6784706B2 (en) Wireless communication equipment, wireless communication methods and computer programs
JP6518029B2 (en) Management device, wireless communication system, wireless terminal device and communication control program
WO2014185768A1 (en) A method of spectrum aware routing in a mesh network and a system derived thereof

Legal Events

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

Ref document number: 17914817

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

Country of ref document: EP

Kind code of ref document: A1