Address allocation method of wireless sensor network
By combining centralized and distributed address management modes, using machine learning and environment perception technology, dynamically adjusting address allocation in wireless sensor networks, the conflict problem of static address allocation in dynamic environments is solved, and the adaptability of the network is improved and security.
Patent Information
- Application Number
- CN202411374204.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-27
AI Technical Summary
Static address allocation in existing wireless sensor networks can easily lead to address conflicts and management difficulties in dynamically changing network environments, and centralized management dynamic allocation can easily cause single point of failure.
Using a method combining centralized address allocation mode and distributed address management mode, the initial communication address is pre-allocated through a central server, and the address allocation strategy is dynamically adjusted according to historical data and network behavior when nodes enter the network, and using machine learning to predict potential conflicts, combined with Energy and location information optimize address allocation to realize adaptive address management.
Ensure address uniqueness when network startup, improve dynamic adaptability and scalability, reduce address conflicts and network latency, optimize energy consumption, and enhance network security and stability.
Smart Images

Figure CN119211200A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network allocation, and in particular to an address allocation method for a wireless sensor network. Background Art
[0002] In wireless sensor networks (WSNs), each device, such as a sensor or node, must have a unique communication address to ensure that data packets can be sent and received correctly.
[0003] In the process of implementing this application, the inventors found that there are at least the following problems in the prior art:
[0004] Current address allocation methods rely on manually configured or preset static addresses. Static address allocation is too rigid when facing dynamic changes in the network, while centrally managed dynamic allocation is prone to single point failures. Therefore, it may cause address conflicts and management difficulties in a dynamically changing network environment. Summary of the invention
[0005] The purpose of this application is to provide an address allocation method for a wireless sensor network to solve the technical problems of address conflicts and management difficulties in static address allocation in a dynamically changing network environment in the prior art. The various technical effects that can be produced by the optional technical solutions provided in this application are described in detail below.
[0006] To achieve the above objectives, this application provides the following technical solutions:
[0007] In a first aspect, the present application provides an address allocation method for a wireless sensor network, wherein the wireless sensor network includes a first-level network and a second-level network, wherein the first-level network includes a central server and a first-level aggregation node, and the second-level network includes a second-level aggregation node and a sensor, wherein the first-level aggregation node, the second-level aggregation node and the sensor are all nodes; the method comprises the following steps:
[0008] The address allocation method of the wireless sensor network comprises the following steps:
[0009] When the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, and allocates a unique address number segment to the first-level aggregation node or the second-level aggregation node that accesses the network;
[0010] If a new sensor joins the network from the first aggregation node or the second aggregation node, the centralized address allocation mode is switched to the distributed address management mode, and the first aggregation node or the second aggregation node locally allocates the address number segment to the sensor based on the unique address number segment.
[0011] Optionally, when the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, including:
[0012] When the node joins the network, the central server uses a machine learning algorithm to analyze the historical address allocation data and network behavior of each node to predict potential address conflicts;
[0013] According to the potential address conflict situation, the address allocation strategy of each node is dynamically adjusted, so as to allocate a unique initial communication address to each node.
[0014] Optionally, analyzing the historical address allocation data and network behavior of each node to predict potential address conflicts includes:
[0015] Based on the physical location, node density and communication mode of the nodes, the historical address allocation data and network behavior of each node are analyzed to predict potential address conflicts.
[0016] Optionally, the dynamically adjusting the address allocation strategy of each of the nodes includes:
[0017] Get the energy status of each node;
[0018] If the energy state of the node is lower than a preset energy, assigning a first type address to the node;
[0019] If the energy state of the node is greater than the preset energy, assigning a second type address to the node;
[0020] The difficulty of the first type of address is less than the difficulty of the second type of address.
[0021] Optionally, the allocating a unique address segment to the first-level aggregation node or the second-level aggregation node of the access network includes:
[0022] If there are remaining address segments in the pre-allocated address pool, a unique address segment is allocated to the first-level aggregation node or the second-level aggregation node based on the remaining address segments, so that the first-level aggregation node and the second aggregation node can allocate communication addresses to sensors entering the network from the aggregation node.
[0023] Optionally, when the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, including:
[0024] When the node accesses the network from the central server, obtaining the historical data flow and neighbor node information of the first-level aggregation node or the second aggregation node;
[0025] Determine the length of the address segment allocated to the first-level aggregation node or the second-level aggregation node according to the historical data traffic and neighbor node information of the first-level aggregation node or the second-level aggregation node;
[0026] According to the length of the address segment, a unique initial communication address is respectively allocated to the first-level aggregation node and the second aggregation node.
[0027] Optionally, the address allocation method for the wireless sensor network further includes:
[0028] If a new sensor joins the network from the first aggregation node or the second aggregation node that has already joined the network, and if there are no remaining address number segments in the pre-allocated address pool, the first-level aggregation node or the second-level aggregation node that has already joined the network will apply to the central server for the address segment to be allocated again, or apply to the central server in real time for the communication address of the sensor that has joined the network.
[0029] Optionally, the address allocation method for the wireless sensor network further includes:
[0030] If a sensor that has joined the network leaves the wireless sensor network, the first-level aggregation node or the second-level aggregation node corresponding to the sensor that has left will recycle the communication address of the sensor into the pre-allocated address pool.
[0031] Optionally, the address allocation method for the wireless sensor network further includes:
[0032] During the address allocation process, encryption is performed.
[0033] In a second aspect, the present application also provides an address allocation device for a wireless sensor network, including:
[0034] one or more processors;
[0035] The memory is used to store one or more computer programs, and the one or more processors are used to execute the one or more computer programs stored in the memory, so that the one or more processors execute the address allocation method for a wireless sensor network as described in any one of the first aspects.
[0036] In a third aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by an address allocation device of a wireless sensor network, the address allocation device of the wireless sensor network executes an address allocation method for a wireless sensor network as described in any one of the first aspects.
[0037] Implementing one of the above technical solutions of this application has the following advantages or beneficial effects:
[0038] The present invention discloses an address allocation method for a wireless sensor network. Based on the topological structure of the wireless sensor network, when a node joins the network, a centralized address allocation mode is adopted, and a central server pre-assigns a unique initial communication address to each node, so that each node can be assigned a unique communication address, ensuring the uniqueness of the address when the network starts; if a new sensor joins the network from the first aggregation node or the second aggregation node that has joined the network, the centralized address allocation mode is switched to the distributed address management mode, and the address is allocated from the address segment obtained by the aggregation node from the central server. The address in the address segment can be locally processed by the aggregation node to redistribute the address and resolve conflicts. By combining the centralized address allocation mode and the distributed address management mode, the orderliness of the address allocation when the network starts can be ensured, and the dynamic adaptability and scalability of the network can be improved during operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0040] Figure 1 It is a flow chart of a method for allocating addresses in a wireless sensor network according to an embodiment of the present application;
[0041] Figure 2 It is a topological diagram of the wireless sensor network of the embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, and devices that are consistent with some aspects disclosed in the present application as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present application.
[0043] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0044] In order to illustrate the technical solution described in the present application, a specific embodiment is provided below, and only the parts related to the embodiment of the present application are shown.
[0045] Embodiment 1:
[0046] like Figure 1 As shown, the present application provides an address allocation method for a wireless sensor network, such as Figure 2 As shown, the wireless sensor network includes a first-level network and a second-level network. The first-level network includes a central server and a first-level aggregation node, and the second-level network includes a second-level aggregation node and sensors. The first-level aggregation node, the second-level aggregation node and the sensor are all nodes. Figure 2 Two first-level aggregation nodes are shown, there are several second-level aggregation nodes, and each second-level aggregation node is connected to at least one sensor.
[0047] The central server, as an access node of the wireless sensor network, can be a rack server, a tower server, a cabinet server, a blade server, etc., but is not limited here.
[0048] The first-level aggregation node and the second-level aggregation node are both nodes with routing functions.
[0049] The sensor may be a currently common sensor, such as a temperature sensor, a smoke sensor, etc., but is not limited here.
[0050] After the first-level aggregation node, the second-level aggregation node and the sensor are connected to the network, data transmission and reception between the central server and each node can be realized.
[0051] The address allocation method of the wireless sensor network includes the following steps S10 to S20.
[0052] S10: When the node joins the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, and allocates a unique address number segment to the first-level aggregation node or the second-level aggregation node that joins the network.
[0053] Node access refers to the initial stage when any of the first-level aggregation nodes, second-level aggregation nodes, and sensors join the wireless sensor network. After the node joins the network, the central server will assign a unique initial communication address to the node.
[0054] It is understandable that no matter in the node access stage or in the network operation node, the central server will always be online as an access node.
[0055] The centralized address allocation mode means that only a central server manages address allocation in a unified manner to ensure the uniqueness of the address.
[0056] Furthermore, when the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, which may include:
[0057] When the sensor accesses the network from the central server, a centralized address allocation mode is adopted, and the central server allocates a unique initial communication address to the sensor;
[0058] When the first-level aggregation node or the second-level aggregation node accesses the network from the central server, the central server allocates a unique initial communication address to the first-level aggregation node or the second-level aggregation node.
[0059] Among them, the unique initial communication address pre-allocated to the first-level aggregation node, the unique initial communication address pre-allocated to the second-level aggregation node, and the unique initial communication address pre-allocated to the sensor are all different.
[0060] The central server allocates addresses to each node connected to the network to ensure the uniqueness of the address of each node connected to the network.
[0061] The central server allocates different unique initial communication addresses to sensors, first-level aggregation nodes or second-level aggregation nodes that access the network from the central server, ensuring that each node is allocated a unique initial communication address to avoid address conflicts during the network access phase.
[0062] Address conflict is one of the common problems in wireless sensor networks, especially when nodes dynamically join or leave. In order to prevent and reduce the occurrence of address conflicts, the embodiments of the present invention introduce a predictive address allocation mechanism. In some implementations, step S10 may include:
[0063] When the node accesses the network from the central server, the central server uses a machine learning algorithm to analyze the historical address allocation data and network behavior of each node to predict potential address conflicts;
[0064] According to the potential address conflict situation, the address allocation strategy of each node is dynamically adjusted, so as to allocate a unique initial communication address to each node.
[0065] Specifically, the machine learning algorithm can adopt current machine learning algorithms, such as a decision tree algorithm, which is relatively simple. Considering that the computing resources of nodes in wireless sensor networks are relatively limited, a relatively simple algorithm is selected to optimize network performance.
[0066] By predicting potential address conflicts, adjusting addresses in advance before conflicts occur, and using machine learning algorithms to learn and predict node behavior patterns, each node is assigned a unique initial communication address. By dynamically adjusting the address allocation strategy, the probability of conflicts can be reduced, thereby optimizing network performance and reducing data transmission delays and network congestion caused by address conflicts.
[0067] By utilizing machine learning algorithms, address conflicts can be predicted and prevented, the address allocation process can be optimized, and network latency and conflict rates can be reduced.
[0068] Since the nodes of a wireless sensor network are usually distributed in different physical environments, the geographical location, node density and communication mode of each node will have an impact on the network performance. Therefore, the embodiment of the present invention proposes an environment-aware address allocation strategy. In some implementation methods, the analysis of the historical address allocation data and network behavior of each node and the prediction of potential address conflicts may include:
[0069] Based on the physical location, node density and communication mode of the nodes, the historical address allocation data and network behavior of each node are analyzed to predict potential address conflicts.
[0070] For example, nodes in the same geographical area can be assigned similar or continuous address ranges. This context-aware address allocation strategy can simplify routing protocols and reduce latency and energy consumption during address resolution.
[0071] In addition, the environment-aware address allocation strategy can also adjust the address range in real time according to the movement of the nodes, ensuring that the nodes can always maintain effective communication connections during movement.
[0072] In addition, the environment-aware address allocation strategy is combined with a predictive address allocation mechanism, that is, according to the physical location, node density and communication mode of the node, the historical address allocation data and network behavior of each node are analyzed to predict potential address conflicts. According to the potential address conflicts, the address allocation strategy of each node is dynamically adjusted to make the prediction of potential address conflicts more accurate.
[0073] In some implementation modes, the dynamically adjusting the address allocation strategy of each node may include:
[0074] Get the energy status of each node;
[0075] If the energy state of the node is lower than a preset energy, assigning a first type address to the node;
[0076] If the energy state of the node is greater than the preset energy, assigning a second type address to the node;
[0077] The difficulty of the first type of address is less than the difficulty of the second type of address.
[0078] Specifically, the energy state of the node is one of the key factors to be considered in wireless sensor networks, especially when energy is limited. Therefore, how to effectively utilize the energy of the node is crucial.
[0079] The embodiment of the present invention proposes an energy-aware address protocol, which considers the energy state of each node and allocates addresses according to the energy state of the node. Therefore, the energy state of each node is obtained, and the relationship between the energy state of the node and the preset energy is determined. If the energy state of the node is lower than the preset energy, a first type of address is allocated to the node; if the energy state of the node is greater than the preset energy, a second type of address is allocated to the node. The difficulty of the first type of address is less than the difficulty of the second type of address.
[0080] Therefore, for nodes with lower energy status, assigning simpler addresses can reduce their computational burden and thus extend the service life of the nodes. Conversely, for nodes with higher energy status, more complex addresses are assigned. The simplicity or complexity of the address refers to the difficulty of the composition of the communication address. For example, a simple communication address is shorter, while a complex communication address is longer. A shorter communication address is more convenient for shortening the amount of data transmitted.
[0081] In addition, the energy-aware address protocol will optimize the communication and processing processes, reduce the communication energy consumption between nodes, and improve the energy efficiency of the entire wireless sensor network.
[0082] In some implementation modes, allocating a unique address segment to the first-level aggregation node or the second-level aggregation node of the incoming network may include:
[0083] If there are remaining address segments in the pre-allocated address pool, a unique address segment is allocated to the first-level aggregation node or the second-level aggregation node based on the remaining address segments, so that the first-level aggregation node and the second aggregation node can allocate communication addresses to sensors entering the network from the aggregation node.
[0084] Specifically, the central server can first pre-allocate unique initial communication addresses to the sensors, first-level aggregation nodes and second-level aggregation nodes that access the network from the central server. If there are still remaining address segments in the pre-allocated address pool after the allocation, it means that not all address segments have been used up. Then, a unique address segment can be allocated to the first-level aggregation node or the second-level aggregation node that has access to the network, so that the first-level aggregation node and the second-level aggregation node that have access to the network can allocate communication addresses to the sensors that access the network from the aggregation nodes. There is no need to request address allocation from the central server in real time, and there will be no situation where the central server and the first-level aggregation node and the second-level aggregation node allocate addresses to the sensors at the same time, thereby ensuring the uniqueness of the address.
[0085] For example, after the central server pre-allocates unique initial communication addresses to sensors, first-level aggregation nodes, and second-level aggregation nodes that access the network from the central server, there are remaining address segments of 1 to 100 in the pre-allocated address pool. Then, the address segments allocated to the first-level aggregation nodes that access the network are 1 to 50, and the address segments allocated to the second-level aggregation nodes are 51 to 100.
[0086] When the wireless sensor network is in the operation stage, if a sensor is connected to the network from the first-level aggregation node or the second-level aggregation node, the first-level aggregation node or the second-level aggregation node can assign the address segment 1 to 50, or any communication address in the address segment 51 to 100 to the sensor.
[0087] Communication addresses and address number segments are uniformly allocated through a central server, and allocation authority is delegated to aggregation nodes that have joined the network, which can ensure the uniqueness of the address.
[0088] In some implementations, when the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, which may include:
[0089] When the node accesses the network from the central server, obtaining the historical data flow and neighbor node information of the first-level aggregation node or the second aggregation node;
[0090] Determine the length of the address segment allocated to the first-level aggregation node or the second-level aggregation node according to the historical data traffic and neighbor node information of the first-level aggregation node or the second-level aggregation node;
[0091] According to the length of the address segment, a unique initial communication address is respectively allocated to the first-level aggregation node and the second aggregation node.
[0092] Specifically, in the initial stage, when the first-level aggregation node or the second aggregation node accesses the network from the central server, the historical data traffic and neighbor node information of the first-level aggregation node or the second aggregation node can be referred to to decide how large the address segment to allocate, and after determining the address segment length, reallocate it.
[0093] Furthermore, the more neighbor node information there is, the larger the data volume is, and the longer the allocated address segment is; conversely, the less neighbor node information there is, the smaller the data volume is, and the shorter the allocated address segment is.
[0094] S20: If a new sensor joins the network from the first aggregation node or the second aggregation node that has already joined the network, the centralized address allocation mode is switched to the distributed address management mode, and the first aggregation node or the second aggregation node that has joined the network locally allocates the address number segment to the sensor based on the unique address number segment.
[0095] The distributed address management mode has multiple management domains. Address allocation can be managed by a central server or by aggregation nodes locally.
[0096] Specifically, after the wireless sensor network is started and enters the operation stage, if a new sensor joins the network from the first aggregation node or the second aggregation node that has already joined the network, according to the distributed address management mode, the first aggregation node or the second aggregation node that has already joined the network and has the address number segment can directly assign a communication address to the new sensor.
[0097] In some implementation modes, the method for allocating addresses in a wireless sensor network may further include:
[0098] If a new sensor joins the network from the first aggregation node or the second aggregation node that has already joined the network, and if there are no remaining address number segments in the pre-allocated address pool, the first-level aggregation node or the second-level aggregation node that has already joined the network will apply to the central server for the address segment to be allocated again, or apply to the central server in real time for the communication address of the sensor that has joined the network.
[0099] Specifically, as the topology of the wireless sensor network changes, for example, nodes move, join or leave, the address allocation strategy in the network needs to be adjusted accordingly. The embodiment of the present invention supports real-time address reconfiguration function, allowing nodes to quickly adjust their own addresses when network conditions change, so as to ensure the continuity and stability of the network. When a new sensor is added, if there are no remaining address segments in the pre-allocated address pool, the first-level aggregation node or the second-level aggregation node will apply to the central server for the address segment to be allocated again, or apply to the central server in real time for the communication address of the sensor that has joined the network, thereby realizing the reallocation of the node address and avoiding conflicts that may be caused by dynamic allocation during the operation phase.
[0100] For example, the pre-allocated address pool of aggregation node A has all the address numbers 1 to 100 allocated. If a new sensor wants to access the network from aggregation node A, since the addresses in the pre-allocated address pool of aggregation node A have all been allocated, aggregation node A needs to apply for a new address segment from the central server, or apply to the central server in real time for the communication address of the sensor to be connected to the network.
[0101] In some implementation modes, the method for allocating addresses in a wireless sensor network may further include:
[0102] If a sensor that has joined the network leaves the wireless sensor network, the first-level aggregation node or the second-level aggregation node corresponding to the sensor that has left will recycle the communication address of the sensor into the pre-allocated address pool.
[0103] Specifically, based on the support of the real-time address reconfiguration function in the embodiment of the present invention, the node is allowed to quickly adjust its own address when the network conditions change, so as to ensure the continuity and stability of the network. In addition, based on the topological structure of the wireless sensor network, the sensor is connected to the first-level aggregation node or the second-level aggregation node. If the sensor that has been connected to the network leaves the wireless sensor network, the first-level aggregation node or the second-level aggregation node corresponding to the sensor that has left will recycle the communication address of the sensor into the pre-allocated address pool so that the address can be allocated and used again.
[0104] For example, the aggregation node A reclaims address No. 50. When another new sensor joins the network through the aggregation node A, the aggregation node A will allocate address No. 50 to the new sensor to implement distributed address management.
[0105] By monitoring network topology changes in real time, the embodiments of the present invention can identify nodes that need to be reconfigured in the first place and automatically assign new addresses to them. This function enables the network to quickly adapt to environmental changes and avoid communication interruptions caused by improper address allocation.
[0106] In some implementation modes, the method for allocating addresses in a wireless sensor network may further include:
[0107] During the address allocation process, encryption is performed.
[0108] Specifically, in wireless sensor networks, ensuring communication security is also crucial. The present invention adopts a multi-layer security integration mechanism to ensure the security of addresses and prevent address forgery and tampering. In the address allocation process, the embodiment of the present invention also introduces encryption technology, that is, encryption processing is performed in the address allocation process to ensure the uniqueness and non-tamperability of the allocated address through encryption. At the same time, the system also adds an authentication and authorization mechanism to ensure that only verified nodes can join the wireless sensor network and receive a valid address. This multi-layer security integration mechanism improves the security and stability of wireless sensor networks, and is particularly suitable for industrial and military application scenarios with high security requirements.
[0109] In some embodiments, during the encryption process, a hash algorithm may be used for encryption, or other types of encryption algorithms may be used or combined with improvements to the network layer protocol to implement the allocation mechanism.
[0110] The embodiment of the present application is based on the topological structure of the wireless sensor network. When a node enters the network, a centralized address allocation mode is adopted. The central server pre-allocates a unique initial communication address to each node, so that each node can be assigned a unique initial communication address to ensure the uniqueness of the address when the network starts; if there is a new sensor entering the network from the first aggregation node or the second aggregation node that has entered the network, the centralized address allocation mode is switched to the distributed address management mode, so that the node can handle the address reallocation and conflict resolution locally based on the unique initial communication address. By combining the centralized address allocation mode and the distributed address management mode, the orderliness of the address allocation when the network starts can be ensured, and the dynamic adaptability and scalability of the network can be improved during operation. Moreover, the adaptability and scalability of the wireless sensor network can be significantly improved, and the address conflict problem existing in the traditional static address allocation method can be solved. In addition, the complexity of network maintenance can be reduced, and data transmission errors and network failures caused by address conflicts can be reduced.
[0111] The key technical points of this application include:
[0112] 1. Hybrid address allocation mechanism: By combining the centralized address allocation mode and the distributed address management mode, it ensures the uniqueness of addresses when the network is started, and improves the flexibility and adaptability of address allocation during the operation phase;
[0113] 2. Predictive address allocation mechanism: Use machine learning technology to predict and prevent address conflicts, optimize the address allocation process, and reduce network latency and conflict rates;
[0114] 3. Environment-aware address allocation mechanism: dynamically adjust the address allocation strategy according to the physical location of the node and the network status to optimize network communication efficiency and reduce energy consumption;
[0115] 4. Energy-aware address protocol: considers the energy status of the node for address allocation, assigns simple addresses to nodes with lower energy, thereby extending the node's operating time and improving the energy efficiency of the entire network;
[0116] 5. Multi-layer security integration mechanism: through encryption and authentication mechanisms, the security of address allocation is enhanced to prevent address tampering and illegal access, ensuring the safe and stable operation of the network;
[0117] 6. Real-time address reconfiguration mechanism: supports instant address reconfiguration when network topology changes, ensuring the continuity and stability of the network when nodes change dynamically.
[0118] The combination of the above six innovations not only improves the operational efficiency and reliability of wireless sensor networks, but also provides solid technical support for network expansion and application in dynamic environments.
[0119] The embodiment is only a special case and does not indicate that the present application is implemented in such a way.
[0120] Embodiment 2:
[0121] The present application also provides an address allocation device for a wireless sensor network, comprising one or more processors; a memory for storing one or more computer programs, wherein the one or more processors are used to execute the one or more computer programs stored in the memory, so that the one or more processors execute the address allocation method for the wireless sensor network as described in any one of Embodiment 1.
[0122] The address allocation devices of wireless sensor networks can include a range of devices such as computers, smartphones, tablets, wearable electronic equipment, smart home electronics, industry, etc.
[0123] The present application also provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by an address allocation device of a wireless sensor network, the address allocation device of the wireless sensor network executes the method described in any one of the first embodiments.
[0124] Those skilled in the art can understand that all or part of the features / steps of the above-mentioned method embodiments can be implemented by methods, data processing systems or computer programs, and these features can be implemented without hardware, entirely by software, or by a combination of hardware and software. The aforementioned computer program can be stored in one or more computer-readable storage media, and the storage medium stores a computer program. When the computer program is executed (such as by a processor), the steps of the embodiment of the method for allocating addresses in a wireless sensor network including the above-mentioned embodiment 1 are executed.
[0125] The aforementioned storage media that can store program codes include: static hard disks, solid-state hard disks, 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), optical storage devices, magnetic storage devices, flash memory, magnetic disks or optical disks and / or combinations of the above devices, that is, it can be implemented by any type of volatile or non-volatile storage device or a combination thereof.
[0126] The above is only the preferred embodiment of the present application. Those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present application. In addition, under the guidance of the present application, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of the present application belong to the protection scope of the present application.
Claims
1. A method for allocating addresses in a wireless sensor network, characterized in that: The wireless sensor network comprises a first-level network and a second-level network, wherein the first-level network comprises a central server and a first-level aggregation node, and the second-level network comprises a second-level aggregation node and a sensor, wherein the first-level aggregation node, the second-level aggregation node and the sensor are all nodes; and the address allocation method of the wireless sensor network comprises the following steps: When the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, and allocates a unique address number segment to the first-level aggregation node or the second-level aggregation node that accesses the network; If a new sensor joins the network from the first aggregation node or the second aggregation node, the centralized address allocation mode is switched to the distributed address management mode, and the first aggregation node or the second aggregation node locally allocates the address number segment to the sensor based on the unique address number segment.
2. The method for allocating addresses of a wireless sensor network according to claim 1, characterized in that: When the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, including: When the node accesses the network from the central server, the central server uses a machine learning algorithm to analyze the historical address allocation data and network behavior of each node to predict potential address conflicts; According to the potential address conflict situation, the address allocation strategy of each node is dynamically adjusted, so as to allocate a unique initial communication address to each node.
3. The method for allocating addresses of a wireless sensor network according to claim 2, characterized in that: The analyzing the historical address allocation data and network behavior of each node to predict potential address conflicts includes: Based on the physical location, node density and communication mode of the nodes, the historical address allocation data and network behavior of each node are analyzed to predict potential address conflicts.
4. The method for allocating addresses for a wireless sensor network according to claim 2, characterized in that: The dynamically adjusting the address allocation strategy of each node includes: Get the energy status of each node; If the energy state of the node is lower than a preset energy, assigning a first type address to the node; If the energy state of the node is greater than the preset energy, assigning a second type of address to the node; The difficulty of the first type of address is less than the difficulty of the second type of address.
5. The method for allocating addresses of a wireless sensor network according to claim 1, characterized in that: The allocating a unique address number segment to the first-level aggregation node or the second-level aggregation node of the access network includes: If there are remaining address segments in the pre-allocated address pool, a unique address segment is allocated to the first-level aggregation node or the second-level aggregation node based on the remaining address segments, so that the first-level aggregation node and the second aggregation node can allocate communication addresses to sensors entering the network from the aggregation node.
6. The method for allocating addresses of a wireless sensor network according to claim 5, characterized in that: When the node accesses the network from the central server, a centralized address allocation mode is adopted, and the central server pre-allocates a unique initial communication address to each node, including: When the node accesses the network from the central server, obtaining historical data traffic and neighbor node information of the first-level aggregation node or the second aggregation node; Determine the length of the address segment allocated to the first-level aggregation node or the second-level aggregation node according to the historical data traffic and neighbor node information of the first-level aggregation node or the second-level aggregation node; According to the length of the address segment, a unique initial communication address is respectively allocated to the first-level aggregation node and the second aggregation node.
7. The method for allocating addresses of a wireless sensor network according to claim 5, characterized in that: The address allocation method of the wireless sensor network also includes: If a new sensor joins the network from the first aggregation node or the second aggregation node that has already joined the network, and if there are no remaining address number segments in the pre-allocated address pool, the first-level aggregation node or the second-level aggregation node that has already joined the network will apply to the central server for the address segment to be allocated again, or apply to the central server in real time for the communication address of the sensor that has joined the network.
8. The method for allocating addresses of a wireless sensor network according to claim 5, characterized in that: The address allocation method of the wireless sensor network also includes: If a sensor that has joined the network leaves the wireless sensor network, the first-level aggregation node or the second-level aggregation node corresponding to the sensor that has left will recycle the communication address of the sensor into the pre-allocated address pool.
9. The method for allocating addresses for a wireless sensor network according to any one of claims 1, 2 or 5, characterized in that: The address allocation method of the wireless sensor network also includes: During the address allocation process, encryption is performed.
10. An address allocation device for a wireless sensor network, characterized in that: include: one or more processors; The memory is used to store one or more computer programs, and the one or more processors are used to execute the one or more computer programs stored in the memory, so that the one or more processors execute the address allocation method for a wireless sensor network as described in any one of claims 1-9.
