A method and device for actively discovering unregistered sensors based on edge computing
Through edge computing and SNMP protocol, the active discovery and rapid access of unregistered sensors in the sensor network are realized, which solves the problems of high pressure and serious delay in the cloud system and improves the efficiency and security of network management.
Patent Information
- Application Number
- CN202311332099.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-10-13
AI Technical Summary
In sensor networks, cloud systems undertake a large number of sensor status identification and identity authentication tasks, resulting in high network bandwidth pressure and serious delay. Furthermore, sensor nodes have limited computing, storage and communication capabilities, making it difficult to achieve rapid access and management.
It adopts an active discovery method of unregistered sensors based on edge computing, automatically detects convergence nodes through heartbeat messages, uses the SNMP protocol to implement node networking and authentication, and quickly registers or blacklists to reduce cloud pressure.
It effectively avoids dead node redundancy, improves the overall effectiveness of the network, reduces bandwidth link pressure, reduces latency, improves management flexibility and accuracy, and solves management problems caused by frequent access and disconnection in sensor networks. Confusion and risk of attack.
Smart Images

Figure CN117319982B
Abstract
Description
Technical Field
[0001] The present invention relates to an edge computing-based unregistered sensor active discovery method and device, belonging to the technical field of information communication network. Background Art
[0002] With the construction of smart grids, sensor technology, as an emerging technology, has been widely used in all aspects of power grids, such as line icing monitoring, transformer oil temperature monitoring, and computer room fire monitoring, which has improved the overall intelligent operation level of the power grid. Sensor networks integrate sensor technology, embedded computing technology, distributed information processing technology, and wireless communication technology. They can collaboratively monitor, sense, and collect information from various environments or monitoring objects in real time, process it, and transmit the information to users. However, with its wide application, it also brings a series of management and technical problems such as information islands, complex interfaces, and multiple cross-systems.
[0003] Unlike traditional fixed networks, sensor networks generally do not have a strict control center, and the deployment of the network does not need to rely on any preset network facilities. Nodes can join or leave the network at any time and perform self-adjustment. After startup, they can quickly and automatically form an independent network to complete tasks such as monitoring and sensing data. They have the advantages of self-organization and strong scalability. But at the same time, the scale of sensor nodes is often large. Nodes may exit the network due to environmental interference and node failures, or new sensor nodes may be added to the network due to work needs. The topological structure of the sensor network is highly dynamic.
[0004] In response to the large number of frequent sensor status recognition and identity authentication problems in the network, the limited computing and storage resources of the device itself have become a pair of sharp contradictions. The traditional solution to the problem of limited terminal device resources is to upload data to the cloud system for unified centralized analysis and processing, but the cloud data center is usually deployed far away from the device end, which brings the following two problems: First, the massive data interaction in the network bandwidth puts huge pressure on the bandwidth link between data centers; second, data transmission occurs between the terminal device and the cloud data center. Due to the influence of factors such as network bandwidth, transmission distance, environment, and interference sources, data transmission has a large delay.
[0005] In addition, due to the high energy consumption of global addresses in communication, the traditional TCP / IP protocol framework is not used in sensor networks to assign a globally unique address to each node. In addition, the computing, storage, and communication capabilities of nodes are limited, and the power supply energy is also limited in many application scenarios. Therefore, there is an urgent need for a sensor active discovery and rapid access method based on edge computing. Summary of the invention
[0006] The purpose of the present invention is to provide a method and device for active discovery of unregistered sensors based on edge computing, so as to solve the problems of high pressure on cloud systems and severe delays caused by a large number of frequent sensor status recognition and identity authentication in wireless sensor networks.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] On the one hand, the present invention provides an unregistered sensor active discovery method based on edge computing, which is executed on a sink node and includes:
[0009] Automatically sense the aggregation node by sending heartbeat messages to the opposite aggregation node or receiving heartbeat messages sent by the opposite aggregation node;
[0010] Mount the sensed aggregation nodes to access nodes or other aggregation nodes to realize the aggregation node networking;
[0011] Automatically sense unregistered sensors in the sensor network and register or blacklist the unregistered sensors based on the received instructions.
[0012] Further, the step of automatically sensing the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node includes:
[0013] In response to no data exchange between the aggregation nodes for a preset first time interval, sending a heartbeat message to the opposite aggregation node;
[0014] If there is a response to the heartbeat message sent to the opposite aggregation node, and the heartbeat detection holding time between the two end aggregation nodes reaches a preset third time interval, the opposite aggregation node is confirmed as the perceived aggregation node.
[0015] Furthermore, the automatic sensing of the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node also includes:
[0016] If no response is received to the heartbeat message sent to the opposite aggregation node for a preset second time interval, or if no heartbeat message is received from the opposite aggregation node within the preset second time interval, the connection with the opposite aggregation node is actively disconnected.
[0017] Furthermore, the step of mounting the sensed aggregation node to an access node or other aggregation node to realize the networking of the aggregation node includes:
[0018] Based on the node discovery algorithm of the SNMP protocol, the sensed aggregation nodes are mounted to access nodes or other aggregation nodes to realize the networking of aggregation nodes.
[0019] Furthermore, the node discovery algorithm based on the SNMP protocol mounts the sensed aggregation node to the access node or other aggregation node to realize the networking of the aggregation node, including:
[0020] The IP address of the sensed aggregation node is stored in the queue of nodes to be accessed through the SNMP management station;
[0021] Repeat the following steps until the queue of nodes to be accessed is empty:
[0022] Take a node IP from the queue of nodes to be visited and regard it as the current node. Obtain the IP addresses of all interfaces of the current node through the SNMP protocol. Select the RouterID according to the OSPF protocol, use the largest IP in the interface table as the ID of the node, and write this information to the queue of visited nodes. At the same time, delete the address in the queue of nodes to be visited that is the same as the interface IP of the current node.
[0023] Obtain the ipRouteTable of the current node through the GetNextRequest operation of the SNMP protocol, wherein the ipRouteTable includes ipRouteDest, ipRouteType, ipRouteNextHop and ipRouteMask;
[0024] Determine based on the ipRouteType value. If ipRouteType=3, obtain the subnet where the route destination address is located based on ipRouteDest and ipRouteMask, and write the current node ID and subnet address to the discovered subnet queue. Otherwise, write the current node ID and ipRouteNextHop to the queue of known node and subnet connection relationships.
[0025] Furthermore, the automatic sensing of unregistered sensors in the sensor network and registering or blacklisting the unregistered sensors according to the received instructions include:
[0026] Receive data messages from sensor nodes;
[0027] Parse the received sensor node data message to obtain the sensor identifier, authenticate the sensor identifier, and determine whether it is an unregistered sensor;
[0028] According to the received instructions, the unregistered sensor is registered or blacklisted.
[0029] Furthermore, the identity verification of the sensor identifier to determine whether it is an unregistered sensor includes:
[0030] Verify that the length of the sensor identifier meets the specification;
[0031] If it meets the specifications, the sensor identifier is decomposed to obtain the manufacturer code and product code;
[0032] Verify whether the manufacturer code is registered in the sensor identifier ledger of the aggregation node. If not, it is determined to be an unregistered sensor.
[0033] Furthermore, the identity verification of the sensor identifier to determine whether it is an unregistered sensor also includes:
[0034] If the manufacturer code has been registered in the sensor identity identifier ledger, verify whether the product code is registered in the sensor identity identifier ledger. If not, it is determined to be an unregistered sensor.
[0035] Furthermore, the identity verification of the sensor identifier to determine whether it is an unregistered sensor also includes:
[0036] If the length of the sensor identifier does not meet the specification, the sensor is judged as an abnormal sensor and can be added to the blacklist.
[0037] Further, the registering or blacklisting the unregistered sensor according to the received instruction includes:
[0038] According to the received registration instruction, the sensor identifier that has passed the identity authentication is stored in the sensor identifier ledger to complete the registration of the sensor identifier.
[0039] Further, the registering or blacklisting the unregistered sensor according to the received instruction includes:
[0040] According to the received blacklisting instruction, the sensor identifier that has passed the authentication is stored in the shielding ledger that is pre-established in the aggregation node.
[0041] On the other hand, the present invention provides an unregistered sensor active discovery device based on edge computing, comprising a node perception module, a node mounting module and a wireless communication module arranged at a convergence node.
[0042] The node perception module is used to automatically perceive the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node;
[0043] The node mounting module is used to mount the sensed aggregation node to the access node or other aggregation node to realize the networking of the aggregation node;
[0044] The wireless communication module is used to automatically sense unregistered sensors in the sensor network, and register or blacklist the unregistered sensors according to received instructions.
[0045] Furthermore, the wireless communication module includes:
[0046] The information collection module is used to collect data messages from sensor nodes and send them to the processing module;
[0047] The processing module is used to parse the received sensor node data message to obtain the sensor identity identifier, and authenticate the sensor identity identifier obtained by the parsing based on the sensor identity identifier ledger to determine whether it is an unregistered sensor; according to the received instruction, the unregistered sensor is registered or blacklisted;
[0048] A storage module is used to establish a sensor identifier ledger and / or a shielding ledger.
[0049] Furthermore, the wireless communication module further includes:
[0050] The information transmission module is used to send the registration or blacklisting information of the sensor processed by the processing module to the cloud center through the wireless network.
[0051] The present invention also provides an electronic device, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the aforementioned methods.
[0052] The present invention also provides a readable storage medium on which one or more programs are stored, wherein the one or more programs include instructions, and when the instructions are executed by a computing device, the computing device executes any of the aforementioned methods. Compared with the prior art, the present invention has the following beneficial effects:
[0053] 1) The present invention can effectively avoid the redundancy of dead nodes through automatic perception of the aggregation node, and timely incorporate active nodes, thereby realizing efficient management of the aggregation node networking and improving the overall effectiveness of the network;
[0054] 2) The present invention is based on mobile edge computing and realizes active discovery and rapid access of unregistered sensors through sensor identification verification, which reduces the pressure on the bandwidth link between the aggregation node and the cloud center and has the advantages of low latency, high flexibility and wide perception range;
[0055] 3) The present invention automatically senses and records the aggregation node information and sensor node information through the heartbeat message at the preset time interval of the aggregation node, thereby overcoming the drawback that a large amount of meaningless heartbeat packet information occupies the computing and storage space;
[0056] 4) The present invention solves the problems of high pressure on the cloud system and severe delay caused by a large number of frequent sensor status identification and identity authentication in the network, and overcomes the shortcomings of frequent access and disconnection of sensor nodes in the sensor network, resulting in chaotic management and the risk of being attacked;
[0057] 5) The present invention solves the problem of network management difficulties caused by the geometric increase in the number of network devices, the increasingly complex network structure, and the continuous expansion of its coverage area;
[0058] 6) The present invention merges multiple IP addresses through a node discovery algorithm based on the SNMP protocol, thereby solving the problem that if a router in the network has multiple IP addresses and different IP addresses belonging to the same node are treated as multiple nodes, the correct distribution of network devices cannot be reflected, thereby causing errors in network topology discovery;
[0059] 7) The node discovery algorithm based on the SNMP protocol of the present invention can overcome the disadvantages of the current algorithm using sysObjectID or sysName in the system group of the MIB library to determine whether multiple IP addresses belong to the same node, which may be unset, is relatively arbitrary, and cannot accurately determine the node status;
[0060] 8) The present invention selects RouterID according to the OSPF protocol and uses the largest IP address in the interface table as the node identifier, thereby overcoming the problem that in an actual network operation environment, the smallest IP address of some routers is a private address, and some addresses are 0.0.0.0, resulting in one smallest IP address corresponding to multiple routers. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 is a flow chart of the method of the present invention;
[0062] Figure 2 is a diagram of the sensor identifier structure;
[0063] Figure 3 Logic diagram for sensor identifier verification;
[0064] Figure 4 It is a structural diagram of the device of the present invention;
[0065] Figure 5 This is the structure diagram of the wireless communication module;
[0066] Figure 6This is a flowchart of the node discovery algorithm based on the SNMP protocol. DETAILED DESCRIPTION
[0067] The present invention will be further described below in conjunction with specific examples. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention.
[0068] like Figure 1 As shown, a method for actively discovering unregistered sensors based on edge computing includes the following steps:
[0069] Step 1, automatically sensing the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node;
[0070] The aggregation nodes are automatically sensed by sending heartbeat messages between the aggregation nodes and the aggregation node information is recorded.
[0071] First, initialize the system clock and set the node interval time t0, loss of connection time t1, and mounting time t2.
[0072] The interval time t0 is the time interval during which no data is exchanged between the local aggregation node and the remote aggregation node.
[0073] The disconnection time t1 is the time interval during which the local aggregation node sends a heartbeat packet to the opposite aggregation node but receives no response, or the time interval during which the local aggregation node does not receive a heartbeat packet sent by the opposite aggregation node.
[0074] The mounting time t2, that is, the heartbeat detection between the two end aggregation nodes is maintained for a certain time interval.
[0075] Specifically, automatically sensing the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node includes:
[0076] In response to the absence of data exchange between the aggregation nodes for a preset first time interval, i.e., time interval t0, a heartbeat packet is sent to the opposite aggregation node to detect the connection between the two aggregation nodes;
[0077] If no response is received after sending a heartbeat packet to the opposite aggregation node for a preset second time interval, i.e., time interval t1, or if no heartbeat packet sent by the opposite aggregation node is received within the second time interval, i.e., time interval t1, the opposite aggregation node is confirmed to be an invalid aggregation node;
[0078] If there is a response to the heartbeat packet sent to the opposite aggregation node, and the heartbeat detection maintenance time between the two end aggregation nodes reaches the preset third time interval, that is, time interval t2, the opposite aggregation node is considered stable and is confirmed as a perceived aggregation node.
[0079] Step 2: Mount the sensed aggregation node to the access node or other aggregation node to realize the aggregation node networking;
[0080] If it is confirmed to be an invalid aggregation node, it will actively disconnect from the opposite aggregation node;
[0081] If the aggregation node is detected, you can choose to mount the discovered aggregation node to the access node or other aggregation node to form a network of aggregation nodes.
[0082] Specifically, a node discovery algorithm based on the SNMP protocol is used to mount the sensed aggregation nodes to access nodes or other aggregation nodes to realize the networking of the aggregation nodes.
[0083] The implementation of the algorithm relies on four main components, namely management station, agent, management information base (MIB) and management protocol (SNMP protocol).
[0084] SNMP management station is usually a stand-alone device or a member of a shared network. It is the interface between the network administrator and the network management system. The management station extracts the perceived node IP into the application and sends a GetRequest message to obtain the information of the specified object from the network device with the SNMP management agent.
[0085] The SNMP agent responds to information queries and requests from the management station, and asynchronously provides some important non-requested information to the management station. Currently, mainstream network devices such as routers and switches support SMT operations.
[0086] The Management Information Base (MIB) is a collection of data variables that represent the characteristics of a managed agent. Each node in a network management system includes a MIB that reflects the status of the managed resources in the node.
[0087] Each entry in the routing table contains ipRouteDest, ipRouteIfIndex, ipRouteNextHop, ipRouteType and ipRouteMask. Among them, ipRouteDest represents the destination address of the route, and ipRouteMask represents the subnet mask of the destination address of the route. The subnet where the destination address of the route is located can be obtained by performing a bitwise AND operation on ipRouteDest and ipRouteMask. ipRoutelflndex represents the index value of the local interface of the route. The node forwards the IP packet with the destination address of ipRouteDest through this interface. ipRouteType represents the type of route. When the route type value is 3 (direct), it means that the node is directly connected to the subnet where the destination address of the route is located. When the route type value is 4 (indirect), it means that the three-layer device is not directly connected to the subnet where the destination address of the route is located, and must pass through other nodes, that is, ipRouteNextHop in the routing table. At this time, the node is directly connected to the next hop node through the local interface ipRoutelflndex.
[0088] The node discovery algorithm based on the SNMP protocol specifically adopts a multi-threaded method to obtain the routing information of nodes in the network, selects the RouterID according to the OSPF protocol, uses the largest IP address in the interface table as the node identifier, and combines this information for analysis and processing, so as to obtain the node location information and networking structure relationship in the network.
[0089] More specifically, Figure 6 As shown in the figure, the node discovery algorithm based on the SNMP protocol mounts the sensed aggregation node to the access node or other aggregation node to realize the aggregation node networking, including:
[0090] Step a1, the SNMP management station stores the perceived node IPs to form a queue of nodes to be accessed;
[0091] After initializing each queue, the default gateway IP address is stored in the queue of nodes to be visited. Starting from the default node, topology discovery is performed and all nodes are traversed using the breadth-first traversal method.
[0092] Step a2, take out a node IP from the queue of nodes to be visited, regard it as the current node, obtain the MIB information of the node through the SNMP protocol, obtain the ipAdEntAddr value in the ipAddrTable table of the current node, obtain the IP addresses of all interfaces of the node, remove redundant data based on the information obtained, and merge all interface addresses of the node, select RouterID according to the OSPF protocol, take the largest IP in the interface table as the ID of the node, write this information to the queue of nodes that have been visited, and delete the address in the queue of nodes to be visited that is the same as the IP address of the current node interface;
[0093] Step a3, obtaining the ipRouteTable table of the current node through the GetNextRequest operation of the SNMP protocol, the ipRouteTable table includes ipRouteDest, ipRouteIfIndex, ipRouteType, ipRouteNextHop and ipRouteMask;
[0094] Step a4, determine the ipRouteType value. If ipRouteType=3, it is determined to be a direct connection. According to ipRouteDest:ipRouteMask, obtain the subnet where the destination network address is located, write the current node ID and subnet address to the discovered subnet queue, otherwise write the current node ID and ipRouteNextHop to the queue of known node and subnet connection relationship;
[0095] Step a5, continue to read the ipRouteTable table, after reading, take out the node from the queue of nodes to be visited, and repeat steps a2 to a4 until the queue of nodes to be visited is empty.
[0096] By merging multiple IP addresses through a node discovery algorithm based on the SNMP protocol, the problem of a router having multiple IP addresses in the network is solved. If different IP addresses belonging to the same node are treated as multiple nodes, the correct distribution of network devices cannot be reflected, thus leading to incorrect network topology discovery.
[0097] The current algorithm generally uses sysObjectID or sysName in the system group of the MIB library to determine whether multiple IP addresses belong to the same node. However, both of these two pieces of information are not necessary and may not be set. They are quite arbitrary and cannot accurately determine the node status. The node discovery algorithm based on the SNMP protocol in this application can avoid this disadvantage and accurately determine the node status.
[0098] The present invention selects RouterID according to the OSPF protocol and uses the largest IP address in the interface table as the node identifier, thereby overcoming the problem that in an actual network operation environment, the smallest IP addresses of some routers are private addresses and some addresses are 0.0.0.0, resulting in one smallest IP address corresponding to multiple routers.
[0099] Automatic perception of the aggregation node can effectively avoid the redundancy of dead nodes, and timely incorporate active nodes to achieve efficient management of the aggregation node network and improve the overall effectiveness of the network.
[0100] Through automatic perception by the aggregation node, when there is frequent data exchange between the aggregation nodes at both ends of the communication, the connection is stable by default. When the data window reaches a certain time interval, a heartbeat packet is sent for heartbeat detection, which can not only play a role in keeping alive, but also avoid waste of traffic.
[0101] The present invention presets a heartbeat detection time interval for the aggregation node, and considers mounting the discovered aggregation node to the access node or other aggregation node after the data connection at both ends is maintained for a certain time interval, thereby maintaining the relative stability of the network and avoiding the phenomenon of meaningless calculation caused by some intermittently active unstable nodes, thereby occupying the traffic.
[0102] Step 3: Automatically sense unregistered sensors in the sensor network, and register or blacklist the unregistered sensors according to the received instructions.
[0103] This step specifically includes:
[0104] Step 201, receiving a data message from a sensor node;
[0105] Step 202, parse the received sensor node data message to obtain a sensor identifier, authenticate the sensor identifier, and determine whether it is an unregistered sensor;
[0106] For sensor devices that have been connected to the sensor network but are not registered in the sensor identity identifier ledger of the aggregation node, active discovery of unregistered sensors is achieved through the sensor identification verification logic during the sensor data access message parsing process.
[0107] like Figure 3 As shown, the sensor identifier is authenticated to determine whether it is an unregistered sensor, including:
[0108] Step ss1, preliminarily verify whether the length of the sensor identifier meets the specification; if it does not meet the specification, it is determined to be an abnormal sensor, the verification is terminated, and it can be added to the blacklist; if it meets the specification, go to step ss2;
[0109] Step ss2, decomposing the sensor identifier to obtain the manufacturer code and product code, and proceeding to step ss3;
[0110] like Figure 2 As shown, according to the provisions of GB / T30269.504-2019, "Information Technology Sensor Networks Part 504: Identification: Sensor Node Identifier Management", the sensor identity identifier is divided into three parts: management agency code, manufacturer code, and product code;
[0111] Step ss3, verify whether the manufacturer code is registered in the sensor identifier ledger of the aggregation node; if not, it is determined to be an unregistered sensor; otherwise, proceed to step ss4;
[0112] Step ss4, verify whether the product code is registered in the sensor identifier ledger. If not, it is determined to be an unregistered sensor.
[0113] Step 203, registering or blacklisting the unregistered sensor according to the received instruction;
[0114] like Figure 3 As shown, if it is determined as an unregistered sensor through steps ss1 to ss4, the unregistered sensor can be registered or blacklisted according to the needs, specifically:
[0115] According to the received registration instruction, the sensor identifier that has passed the identity authentication is stored in the sensor identifier ledger to complete the registration of the sensor identifier;
[0116] According to the received blacklisting instruction, the sensor identity identifier that has passed the identity authentication is stored in the shielding ledger pre-established in the aggregation node to shield its information exchange.
[0117] Among them, the registration command or the blacklisting command can be sent through manual input configuration, and the rapid access of the sensor can be achieved by sending the configuration command.
[0118] The present invention realizes active discovery of sensors in a wireless sensor network, perception of unregistered sensors, and verification of legal identity information of sensors through sensor identification verification, while supporting one-key quick registration or blacklisting of unregistered sensors.
[0119] The present invention distributes the computing tasks originally running in the cloud to nodes near the user end by setting up ledgers, identity authentication, registration operations, etc. in the aggregation node, which can greatly reduce download latency and alleviate the downlink pressure of the backhaul link, thereby meeting key business requirements such as agile connection, data optimization, backhaul offloading, and computing offload.
[0120] like Figure 4 As shown, an unregistered sensor active discovery device based on edge computing is characterized by including a node perception module, a node mounting module and a wireless communication module arranged at a convergence node.
[0121] A node sensing module is used to automatically sense a convergence node by sending a heartbeat message to the opposite convergence node or receiving a heartbeat message sent by the opposite convergence node;
[0122] The node mounting module is used to mount the sensed aggregation node to the access node or other aggregation node to realize the networking of the aggregation node;
[0123] The wireless communication module is used to automatically sense unregistered sensors in the sensor network and register or blacklist the unregistered sensors according to the received instructions.
[0124] like Figure 5 As shown, the wireless communication module includes an information acquisition module, a processing module, a storage module, an information transmission module and a power supply module.
[0125] The information collection module is used to collect data messages from sensor nodes and send them to the processing module.
[0126] The processing module is the control center of the aggregation node and also the "brain" of the aggregation node, which is used to control the normal operation of the entire aggregation node.
[0127] More specifically, the processing module is used to parse the received sensor node data message to obtain the sensor identity identifier, and based on the sensor identity identifier ledger, authenticate the sensor identity identifier obtained by the analysis to determine whether it is an unregistered sensor; according to the received instructions, the unregistered sensor is registered or blacklisted.
[0128] The storage module is used to establish a sensor identity identifier ledger so that the processing module can authenticate the sensors found in the network and register or blacklist the sensors that have passed the authentication; and to establish a shielding ledger to shield the information exchange of the blacklisted sensors.
[0129] The information transmission module is used to send the registration or blacklisting information of the sensor processed by the processing module to the cloud center through the wireless network.
[0130] The information transmission module is composed of a wireless communication module. When receiving data sent by the processing module, the wireless communication module can send the data through a wireless network.
[0131] The power module is used to provide power to other modules.
[0132] The present invention takes the wireless communication module of the aggregation node as the core to form an edge computing network, and backs up the processed sensor information to the cloud center, thereby decentralizing the calculation originally belonging to the cloud center, reducing the pressure on the bandwidth link between the aggregation node and the cloud center, and having low latency and high flexibility.
[0133] The present invention also provides an electronic device, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the aforementioned methods.
[0134] The present invention also provides a readable storage medium having one or more programs stored thereon, wherein the one or more programs include instructions, and when the instructions are executed by a computing device, the computing device executes any one of the aforementioned methods.
[0135] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0136] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0137] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0139] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.
Claims
1. A method for actively discovering unregistered sensors based on edge computing, characterized in that: The method is executed on a sink node and includes: Automatically sense the aggregation node by sending heartbeat messages to the opposite aggregation node or receiving heartbeat messages sent by the opposite aggregation node; Mount the sensed aggregation nodes to access nodes or other aggregation nodes to realize the aggregation node networking; Automatically sense unregistered sensors in the sensor network and register or blacklist them based on the received instructions; The step of mounting the sensed aggregation node to the access node or other aggregation node to realize the aggregation node networking includes: The IP address of the sensed aggregation node is stored in the queue of nodes to be accessed through the SNMP management station; Repeat the following steps until the queue of nodes to be accessed is empty: Take a node IP from the queue of nodes to be visited and regard it as the current node. Obtain the IP addresses of all interfaces of the current node through the SNMP protocol. Select the RouterID according to the OSPF protocol, use the largest IP in the interface table as the ID of the node, and write this information to the queue of visited nodes. At the same time, delete the address in the queue of nodes to be visited that is the same as the interface IP of the current node. Obtain the ipRouteTable of the current node through the GetNextRequest operation of the SNMP protocol, wherein the ipRouteTable includes ipRouteDest, ipRouteType, ipRouteNextHop and ipRouteMask; Determine based on the ipRouteType value. If ipRouteType=3, obtain the subnet where the route destination address is located based on ipRouteDest and ipRouteMask, and write the current node ID and subnet address to the discovered subnet queue. Otherwise, write the current node ID and ipRouteNextHop to the queue of known node and subnet connection relationships. The automatic sensing of unregistered sensors in the sensor network includes: Receive data messages from sensor nodes; The received sensor node data message is parsed to obtain a sensor identifier, and the sensor identifier is authenticated to determine whether it is an unregistered sensor.
2. The method for actively discovering unregistered sensors based on edge computing according to claim 1, characterized in that: The method of automatically sensing the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node includes: In response to no data exchange between the aggregation nodes for a preset first time interval, sending a heartbeat message to the opposite aggregation node; If there is a response to the heartbeat message sent to the opposite aggregation node, and the heartbeat detection holding time between the two end aggregation nodes reaches a preset third time interval, the opposite aggregation node is confirmed as the perceived aggregation node.
3. The method for actively discovering unregistered sensors based on edge computing according to claim 2 is characterized in that: The automatic sensing of the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node also includes: If no response is received to the heartbeat message sent to the opposite aggregation node for a preset second time interval, or if no heartbeat message is received from the opposite aggregation node within the preset second time interval, the connection with the opposite aggregation node is actively disconnected.
4. The method for actively discovering unregistered sensors based on edge computing according to claim 1, characterized in that: The authenticating the sensor identifier to determine whether it is an unregistered sensor includes: Verify that the length of the sensor identifier meets the specification; If it meets the specifications, the sensor identifier is decomposed to obtain the manufacturer code and product code; Verify whether the manufacturer code is registered in the sensor identifier ledger of the aggregation node. If not, it is determined to be an unregistered sensor.
5. The method for actively discovering unregistered sensors based on edge computing according to claim 4 is characterized in that: The identity verification of the sensor identifier to determine whether the sensor is an unregistered sensor also includes: If the manufacturer code has been registered in the sensor identity identifier ledger, verify whether the product code is registered in the sensor identity identifier ledger. If not, it is determined to be an unregistered sensor.
6. The method for actively discovering unregistered sensors based on edge computing according to claim 4, characterized in that: The identity verification of the sensor identifier to determine whether the sensor is an unregistered sensor also includes: If the length of the sensor identifier does not meet the specification, the sensor is judged as an abnormal sensor and is added to the blacklist.
7. The method for actively discovering unregistered sensors based on edge computing according to claim 1, characterized in that: The step of registering or blacklisting an unregistered sensor according to the received instruction includes: According to the received registration instruction, the sensor identifier that has passed the identity authentication is stored in the sensor identifier ledger to complete the registration of the sensor identifier.
8. The method for actively discovering unregistered sensors based on edge computing according to claim 1, characterized in that: The step of registering or blacklisting an unregistered sensor according to the received instruction includes: According to the received blacklisting instruction, the sensor identifier that has passed the authentication is stored in the shielding ledger that is pre-established in the aggregation node.
9. An unregistered sensor active discovery device based on edge computing, characterized in that: It includes a node perception module, a node mounting module and a wireless communication module set at the aggregation node. The node perception module is used to automatically perceive the aggregation node by sending a heartbeat message to the opposite aggregation node or receiving a heartbeat message sent by the opposite aggregation node; The node mounting module is used to mount the sensed aggregation node to the access node or other aggregation node to realize the networking of the aggregation node; The wireless communication module is used to automatically sense unregistered sensors in the sensor network and register or blacklist the unregistered sensors according to the received instructions; The step of mounting the sensed aggregation node to the access node or other aggregation node to realize the aggregation node networking includes: The IP address of the sensed aggregation node is stored in the queue of nodes to be accessed through the SNMP management station; Repeat the following steps until the queue of nodes to be accessed is empty: Take a node IP from the queue of nodes to be visited and regard it as the current node. Obtain the IP addresses of all interfaces of the current node through the SNMP protocol. Select the RouterID according to the OSPF protocol, use the largest IP in the interface table as the ID of the node, and write this information to the queue of visited nodes. At the same time, delete the address in the queue of nodes to be visited that is the same as the interface IP of the current node. Obtain the ipRouteTable of the current node through the GetNextRequest operation of the SNMP protocol, wherein the ipRouteTable includes ipRouteDest, ipRouteType, ipRouteNextHop and ipRouteMask; Determine based on the ipRouteType value. If ipRouteType=3, obtain the subnet where the route destination address is located based on ipRouteDest and ipRouteMask, and write the current node ID and subnet address to the discovered subnet queue. Otherwise, write the current node ID and ipRouteNextHop to the queue of known node and subnet connection relationships. The automatic sensing of unregistered sensors in the sensor network includes: Receive data messages from sensor nodes; The received sensor node data message is parsed to obtain a sensor identifier, and the sensor identifier is authenticated to determine whether it is an unregistered sensor.
10. The device for actively discovering unregistered sensors based on edge computing according to claim 9, characterized in that: The wireless communication module comprises: The information collection module is used to collect data messages from sensor nodes and send them to the processing module; The processing module is used to parse the received sensor node data message to obtain the sensor identity identifier, and authenticate the sensor identity identifier obtained by the parsing based on the sensor identity identifier ledger to determine whether it is an unregistered sensor; according to the received instruction, the unregistered sensor is registered or blacklisted; A storage module is used to establish a sensor identifier ledger and / or a shielding ledger.
11. The device for actively discovering unregistered sensors based on edge computing according to claim 10, characterized in that: The wireless communication module further includes: The information transmission module is used to send the registration or blacklisting information of the sensor processed by the processing module to the cloud center through the wireless network.
12. An electronic device, characterized in that: The method comprises one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any one of the methods according to claims 1 to 8.
13. A readable storage medium, characterized in that: One or more programs are stored thereon, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any one of the methods according to claims 1 to 8.
