A low-voltage power Internet of Things network load balancing method, medium and terminal
Through the network root nodes, the load information is collected and analyzed and load adjustment is carried out, which solves the problem of low service quality and network resource utilization efficiency of load balancing methods in the existing technology, and achieves more efficient load balancing and stability.
Patent Information
- Application Number
- CN202411404730.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2044-10-10
AI Technical Summary
The existing low-voltage power IoT network load balancing methods have problems with low service quality and network resource utilization efficiency, especially when the load switching parameter adjustment between devices does not take into account the peripheral network communication situation and user behavior factors.
The network root node monitors the load monitoring messages of slave nodes, periodically collects and parses information, calculates the number of adjustable load nodes, and initiates load adjustment commands based on specific conditions, so as to keep slave nodes offline and join a new network, ensuring load When equilibrium, factors such as communication success rate of surrounding networks and PAN Cost are taken into account.
It effectively reduces the probability of network overload operation, avoids network conflicts and degradation of service quality, and improves the utilization rate of network resources and service quality.
Smart Images

Figure CN118921327B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of Internet of Things communication technology, and in particular relates to a low-voltage power Internet of Things network load balancing method, medium and terminal. Background Art
[0002] In the actual construction process of low-voltage power Internet of Things, there are strong temporal and spatial differences in the installation of communication systems and business distribution. Under the engineering conditions of installing terminal equipment and perception nodes in batches on site, it is very easy to form a load imbalance phenomenon where the network scale of the terminal equipment installed first is larger, while the terminal equipment installed later has almost no perception nodes hanging under it, resulting in intensified network communication conflicts and uneven distribution of business resources. In severe cases, it may even cause system failures due to traffic impact, thus affecting the overall stability and security of the network.
[0003] In response to the unbalanced load phenomenon in low-voltage power Internet of Things networks, a commonly used load balancing technology is mobility load balancing. This method exchanges load information between different terminal devices in the same area, and then adjusts the load switching parameters of the equipment, realizing the function of switching nodes under overloaded devices to adjacent devices with lower loads. However, this method will only be called when network congestion is detected, and there is a lag in adjustment. In addition, when performing network load balancing, only the switching parameter adjustment between devices is considered, and factors such as the communication status of the surrounding network and user behavior are not considered. Therefore, after using this method for load balancing, it usually has a negative impact on business service quality and network resource utilization efficiency. The patent with announcement number CN108541022B provides a method for achieving network load balancing, including: obtaining the load of the source cell; comparing the load of the source cell with a preset threshold to obtain a judgment result; if the judgment result indicates that the load of the source cell is greater than the preset threshold, then obtaining the network coverage mode of the source cell; if the network coverage mode indicates that the source cell is a single-layer network coverage area, then using the same-frequency mobility load balancing MLB function to adjust the load of the source cell; if the network coverage mode indicates that the source cell is a multi-layer network coverage area, then using the load balancing LB function and the mobility load balancing MLB function to coordinately adjust the load of the source cell. This patent also uses mobility load balancing, which has the same disadvantages as the prior art.
[0004] Therefore, how to provide a network load balancing method with high business service quality and high network resource utilization is a problem that needs to be solved urgently by personnel in the field of this technology. Summary of the invention
[0005] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a low-voltage power Internet of Things network load balancing method to solve the problems of low business service quality and low network resource utilization efficiency of the load balancing method in the prior art.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a low-voltage power Internet of Things network load balancing method, comprising the following steps:
[0008] S10, the network slave node monitors the information of other surrounding networks and periodically sends load monitoring messages to the network root node;
[0009] S20, the network root node collects load monitoring messages sent by the network slave nodes in each load adjustment cycle, parses and records the message contents;
[0010] S30, when the load adjustment cycle ends, the network root node calculates the number of network slave nodes whose loads can be adjusted according to the recorded network slave node load information, and initiates a load adjustment command as needed;
[0011] S40: After receiving the load adjustment command, the network slave node goes offline from the current network and searches for a new network to join.
[0012] Furthermore, in step S10, within a load adjustment cycle of 240 minutes, the network slave node sends load monitoring messages to the network root node at least three times.
[0013] Furthermore, in step S10, the load monitoring message includes the ID of the surrounding network, the size of the surrounding network, the Mac address of the surrounding network preferred parent node, the signal strength of the surrounding network preferred parent node, the level of the surrounding network preferred parent node, and the communication success rate of the surrounding network preferred parent node.
[0014] Furthermore, in step S20, after receiving the load monitoring message from the network slave node, the network root node records the communication success rate of the preferred parent node of the surrounding network in the message. , and update the communication success rate according to the following formula:
[0015]
[0016] in, Indicates rounding down. Indicates the updated communication success rate of the surrounding network's preferred parent node, with a value range of , Indicates the communication success rate of the preferred parent node in the surrounding network carried in the current load monitoring message. The value range is , Indicates the communication success rate of the surrounding network's preferred parent node carried in the previous load monitoring message from the node. Indicates the communication success rate of the preferred parent node of the surrounding network carried in the first two load monitoring messages of the network slave node.
[0017] Furthermore, the specific steps of step S30 are as follows:
[0018] S301, the network root node extracts the ID and scale of the surrounding network according to the load monitoring message reported by the network slave node, and uses the following formula to determine whether load adjustment is required and the number of network slave nodes that need to adjust the load:
[0019]
[0020] in, Indicates rounding down. The size difference between the network and the surrounding network calculated by the network root node, Indicates the number of nodes that need to adjust the load calculated by the network root node. Indicates the current size of the network. Indicates the size of the largest and second largest surrounding networks extracted by the root node of this network through load monitoring messages;
[0021] S302: The network root node searches for the number of network slave nodes that can perform load adjustment in the current network, and compares it with the number of load nodes that need to be adjusted, and takes the smaller value of the two as the number of network slave nodes that finally perform load adjustment.
[0022] Furthermore, in step S302, the network slave nodes that simultaneously meet the following conditions are listed as network slave nodes capable of performing load adjustment:
[0023] The network slave node reports the surrounding network, and the PAN Cost of the surrounding network is less than the current network;
[0024] The network slave node has no less than 7 routing levels in the network;
[0025] The network slave node has been running on this network for more than 4 hours.
[0026] Furthermore, the PAN Cost of the surrounding network is compared with the current network using the following formula:
[0027]
[0028] in, Indicates rounding down. Indicates the PAN Cost of the current network of the network slave node calculated by the network root node. Indicates the PAN Cost of the network surrounding the slave node calculated by the network root node. Indicates the size of the current network. Indicates the size of the surrounding network carried in the network slave node load monitoring message. Indicates the routing level of the network slave node in the current network. Indicates the routing level of the preferred parent node of the surrounding network carried in the network slave node load monitoring message. Indicates the communication success rate between the network slave node and the current network parent node, the value range is , Indicates the communication success rate between the network slave node and the preferred parent node of the surrounding network after the formula is updated.
[0029] Furthermore, in step S40, after receiving the load adjustment command from the network node, the current network is added to the blacklist and taken offline, and the network is no longer selected for joining during the duration of the blacklist.
[0030] In a second aspect, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0031] In a third aspect, the present invention further provides an electronic terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the method as described above.
[0032] Compared with the prior art, the low-voltage power Internet of Things network load balancing method, medium and terminal provided by the present invention have at least the following beneficial effects:
[0033] After load balancing is performed in the prior art, it usually has a negative impact on the business service quality and network resource utilization efficiency. The present invention has a simple process and convenient operation. Through a specially designed network root node to collect network slave node load information mechanism, supplemented by a specially designed network root node load control process and conditions, the probability of network overload operation is effectively reduced, the occurrence of network shock is avoided, and the high quality of business services and high utilization of network resources are guaranteed at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the scheme of the present invention, a brief introduction is given below to the figures required for use in the description of the embodiments. Obviously, the figures described below are some embodiments of the present invention. For ordinary technicians in this field, other figures can be obtained based on these figures without paying any creative work.
[0035] Figure 1A flow chart of a low-voltage power Internet of Things network load balancing method provided by an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of a flow chart of determining whether a network slave node is an adjustable load node in step S302 of a low-voltage power Internet of Things network load balancing method provided by an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the implementation effect of a low-voltage power Internet of Things network load balancing method in two communication systems provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention; the terms used in the specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For example, the terms "length", "width", "upper", "lower", "left", "right", "front", "back", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or locations based on the positions or locations shown in the drawings, which are only for the convenience of description and cannot be understood as limiting the present technical solution. The terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions; the terms "first", "second" and the like in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In the specification and claims of the present invention and the above-mentioned drawings, when an element is referred to as "fixed to" or "mounted on" or "set on" or "connected to" another element, it may be directly or indirectly located on the other element. For example, when an element is referred to as "connected to" another element, it may be directly or indirectly connected to the other element. In addition, reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0039] The present invention provides a low-voltage power Internet of Things network load balancing method, which is applied to the low-voltage power Internet of Things network load imbalance phenomenon. The low-voltage power Internet of Things network load balancing method comprises the following steps:
[0040] S10, the network slave node monitors the information of other surrounding networks and periodically sends load monitoring messages to the network root node;
[0041] S20, the network root node collects load monitoring messages sent by the network slave nodes in each load adjustment cycle, parses and records the message contents;
[0042] S30, when the load adjustment cycle ends, the network root node calculates the number of network slave nodes whose loads can be adjusted according to the recorded network slave node load information, and initiates a load adjustment command as needed;
[0043] S40: After receiving the load adjustment command, the network slave node goes offline from the current network and searches for a new network to join.
[0044] The present invention calculates the adjustable network load through the network root node, effectively reduces the probability of network overload operation, avoids the occurrence of network conflicts, and ensures the high quality of business services and high utilization of network resources.
[0045] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
[0046] The present invention provides a low-voltage power Internet of Things network load balancing method, which is applied to the low-voltage power Internet of Things network load imbalance phenomenon. Figures 1 to 3 , the low-voltage power Internet of Things network load balancing method comprises the following steps:
[0047] S10, the network slave node monitors the information of other surrounding networks and periodically sends load monitoring messages to the network root node;
[0048] Specifically, within one load adjustment cycle of 240 minutes, the network slave node needs to send load monitoring messages to the network root node at least three times, and parse and record the message content.
[0049] S20, the network root node collects load monitoring messages sent by the network slave nodes in each load adjustment cycle, parses and records the message contents;
[0050] Specifically, the following rules are used to parse and record the message content:
[0051] After receiving the load monitoring message from the network slave node, the network root node records the communication success rate of the preferred parent node in the surrounding network in the message, and updates the communication success rate according to the following formula:
[0052]
[0053] in, Indicates rounding down. Indicates the updated communication success rate of the surrounding network's preferred parent node, with a value range of , Indicates the communication success rate of the preferred parent node in the surrounding network carried in the current load monitoring message. The value range is , Indicates the communication success rate of the surrounding network's preferred parent node carried in the previous load monitoring message from the node. Indicates the communication success rate of the preferred parent node of the surrounding network carried in the first two load monitoring messages of the network slave node.
[0054] In this embodiment, for example, the network root node receives a load monitoring message currently sent by the network slave node, and the communication success rate of the surrounding network preferred parent node recorded in the message is , the communication success rate of the network preferred parent node carried in the previous load monitoring message of the network slave node , the communication success rate of the network preferred parent node carried in the first two load monitoring messages , then we can calculate:
[0055] .
[0056] S30, when the load adjustment cycle ends, the network root node calculates the number of network slave nodes whose loads can be adjusted according to the recorded network slave node load information, and initiates a load adjustment command as needed;
[0057] Specifically, step S30 is processed by the following steps:
[0058] S301, the network root node extracts the ID and size of the surrounding network according to the load monitoring message reported by the network slave node, and determines whether load adjustment is required and the number of network slave nodes that need to adjust the load. Specifically, the following formula is used:
[0059]
[0060] in, Indicates rounding down. The size difference between the network and the surrounding network calculated by the network root node, Indicates the number of nodes that need to adjust the load calculated by the network root node. Indicates the current size of the network. Indicates the size of the largest and second largest surrounding networks extracted by the root node of this network through load monitoring messages;
[0061] In this embodiment, for example, the network root node obtains the current network size , based on the load monitoring information reported by the network slave nodes, the largest network in the surrounding area is found , the next largest network , then we can calculate: ;
[0062] S302, the network root node searches for the number of network slave nodes that can perform load adjustment in the current network, and compares it with the number of load nodes that need to be adjusted, and takes the smaller value of the two as the number of network slave nodes that can finally perform load adjustment. Specifically, network slave nodes that meet the following conditions at the same time can be listed as network slave nodes that can perform load adjustment:
[0063] Condition 1: The network slave node reports the surrounding network, and the PAN Cost of the surrounding network is less than the current network. PANCost is calculated as follows:
[0064]
[0065] in, Indicates rounding down. Indicates the PAN Cost of the current network of the network slave node calculated by the network root node. Indicates the PAN Cost of the network surrounding the slave node calculated by the network root node. Indicates the size of the current network. Indicates the size of the surrounding network carried in the network slave node load monitoring message. Indicates the routing level of the network slave node in the current network. Indicates the routing level of the preferred parent node of the surrounding network carried in the network slave node load monitoring message. Indicates the communication success rate between the network slave node and the current network parent node, the value range is , It represents the communication success rate between the network slave node and the preferred parent node of the surrounding network after the formula is updated;
[0066] In this embodiment, for example, a network slave node load monitoring message in the network carries the surrounding network scale , the routing hierarchy of the surrounding network preferred parent node , according to the updated formula, the communication success rate between the network slave node and the preferred parent node of the surrounding network , the size of the network where the slave node is currently located , the network routing level is , communication success rate with the parent node According to the formula, we can get:
[0067]
[0068] Condition 2: The network slave node has no less than 7 routing levels in the network;
[0069] Condition 3: The network slave node has been running on this network for more than 4 hours.
[0070] S40: After receiving the load adjustment command, the network slave node goes offline from the current network and searches for a new network to join.
[0071] Specifically, after the network slave node receives the load adjustment command, it goes offline from the current network and looks for a new network to join. Specifically, after the network slave node receives the load adjustment command, it adds the current network to the blacklist and goes offline. During the blacklist duration, the network will no longer be selected to join.
[0072] In order to demonstrate the practicality and effectiveness of the low-voltage power Internet of Things network load balancing method provided by the embodiment of the present invention, the staff built two sets of low-voltage power Internet of Things communication networks. Communication network 1 had 866 network slave nodes before load balancing, and the maximum routing level was 11. Communication network 2 had 369 network slave nodes before load balancing, and the maximum routing level was 4. Except for the differences in network scale and routing level, other system parameter settings remained consistent. After a 240-minute load adjustment cycle, the two sets of low-voltage power Internet of Things communication networks had 636 network slave nodes after load balancing in communication network 1, and the maximum routing level was 7. Communication network 2 had 599 network slave nodes after load balancing, and the maximum routing level was 5. Figure 3 As shown, after applying the low-voltage power Internet of Things network load balancing method provided by the embodiment of the present invention, the number of network nodes and the changes in the routing level of the two communication systems before and after load balancing. The above experimental results show that the method of the present invention can effectively balance the network load, reduce the probability of network overload operation, avoid the occurrence of network shock, and at the same time ensure the high quality of business services and high utilization of network resources.
[0073] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any one of the methods in the present embodiment is implemented.
[0074] An embodiment of the present invention further provides an electronic terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.
[0075] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0076] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run computer programs so that the electronic terminal executes each step of the above method.
[0077] The low-voltage power Internet of Things network load balancing method, medium and terminal described in the above embodiments are compared with the prior art. After load balancing in the prior art, it usually has a negative impact on the business service quality and network resource utilization efficiency. The process of the present invention is simple and easy to operate. It collects network slave node load information through a specially designed network root node, supplemented by a specially designed network root node load control process and conditions, which effectively reduces the probability of network overload operation, avoids the occurrence of network shock, and ensures the high quality of business services and high utilization of network resources.
[0078] Obviously, the embodiments described above are only preferred embodiments of the present invention, rather than all embodiments. The preferred embodiments of the present invention are shown in the accompanying drawings, but they do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific embodiments, or to perform equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of the present invention, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present invention.
Claims
1. A low-voltage power Internet of Things network load balancing method, characterized in that: The following steps are involved: S10, the network slave node monitors the information of other surrounding networks and periodically sends load monitoring messages to the network root node; S20, the network root node collects load monitoring messages sent by the network slave nodes in each load adjustment cycle, parses and records the message contents; In step S20, after receiving the load monitoring message from the network slave node, the network root node records the communication success rate of the preferred parent node of the surrounding network in the message. , and update the communication success rate according to the following formula: ; in, Indicates rounding down. Indicates the updated communication success rate of the surrounding network's preferred parent node, with a value range of , Indicates the communication success rate of the preferred parent node in the surrounding network carried in the current load monitoring message. The value range is , Indicates the communication success rate of the surrounding network's preferred parent node carried in the previous load monitoring message from the node. Indicates the communication success rate of the preferred parent node of the surrounding network carried in the first two load monitoring messages of the slave node of the network; S30, when the load adjustment cycle ends, the network root node calculates the number of network slave nodes whose loads can be adjusted according to the recorded network slave node load information, and initiates a load adjustment command as needed; The specific steps of step S30 are as follows: S301, the network root node extracts the ID and scale of the surrounding network according to the load monitoring message reported by the network slave node, and uses the following formula to determine whether load adjustment is required and the number of network slave nodes that need to adjust the load: ; in, Indicates rounding down. The size difference between the network and the surrounding networks calculated by the network root node, Indicates the number of nodes that need to adjust the load calculated by the network root node. Indicates the current size of the network. Indicates the size of the largest and second largest surrounding networks extracted by the root node of this network through load monitoring messages; S302, the network root node searches for the number of network slave nodes that can perform load adjustment in the current network, and compares it with the number of load nodes that need to be adjusted, and takes the smaller value of the two as the number of network slave nodes that finally perform load adjustment; S40: After receiving the load adjustment command, the network slave node goes offline from the current network and searches for a new network to join.
2. A low-voltage power Internet of Things network load balancing method according to claim 1, characterized in that: In the step S10, within a load adjustment cycle of 240 minutes, the network slave node sends load monitoring messages to the network root node at least three times.
3. A low-voltage power Internet of Things network load balancing method according to claim 1, characterized in that: In step S10, the load monitoring message includes the ID of the surrounding network, the size of the surrounding network, the Mac address of the surrounding network preferred parent node, the signal strength of the surrounding network preferred parent node, the level of the surrounding network preferred parent node, and the communication success rate of the surrounding network preferred parent node.
4. A low-voltage power Internet of Things network load balancing method according to claim 1, characterized in that: In step S302, the network slave nodes that simultaneously meet the following conditions are listed as network slave nodes capable of performing load adjustment: The network slave node reports the surrounding network, and the PAN Cost of the surrounding network is less than the current network; The network slave node has no less than 7 routing levels in the network; The network slave node has been running on this network for more than 4 hours.
5. A low-voltage power Internet of Things network load balancing method according to claim 4, characterized in that: Compare the PAN Cost of the surrounding network with the current network using the following formula: ; in, Indicates rounding down. Indicates the PANCost of the current network of the network slave node calculated by the network root node, Indicates the PAN Cost of the network surrounding the slave node calculated by the network root node. Indicates the size of the current network. Indicates the size of the surrounding network carried in the network slave node load monitoring message. Indicates the routing level of the network slave node in the current network. Indicates the routing level of the preferred parent node of the surrounding network carried in the network slave node load monitoring message. Indicates the communication success rate between the network slave node and the current network parent node, the value range is , Indicates the communication success rate between the network slave node and the preferred parent node of the surrounding network after the formula is updated.
6. A low-voltage power Internet of Things network load balancing method according to claim 1, characterized in that: In the step S40, after receiving the load adjustment command from the network node, the current network is added to the blacklist and taken offline, and the network is no longer selected for joining during the duration of the blacklist.
7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
8. An electronic terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the method according to any one of claims 1 to 6.
