A method for edge analysis of big data in power Internet of Things
By constructing an edge structure based on HDFS block layout optimization in the power Internet of Things and performing nearby edge computing, the network delay and load problems caused by data processing of power Internet of Things equipment are solved, and high throughput and low-latency data processing effects are achieved. .
Patent Information
- Application Number
- CN202011559413.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-25
AI Technical Summary
The large amount of data generated by power IoT devices increases network load, causing network congestion and delay. Traditional cloud computing is difficult to meet the requirements of high throughput and low latency.
The power Internet of Things big data edge analysis method is used to monitor terminal device data through the data collection system. The buffer system buffers and sends it to the computing system. The computing system performs block layout optimization and edge computing, uses the deep learning framework for storage and processing, and builds a system based on HDFS. Block layout optimized edge structure enables nearby edge computing.
On the premise of meeting throughput requirements, the end-to-end delay is effectively reduced, the network topology is improved, computing power is transferred from the cloud computing center to the network edge, network bandwidth usage is reduced and data processing efficiency is improved.
Smart Images

Figure CN112714016B
Abstract
Description
Technical Field
[0001] The present application relates to the fields of Internet of Things and computer technology, and in particular to an edge analysis method for power Internet of Things big data. Background Art
[0002] Thousands of IoT devices applied to the power industry will generate a large amount of data. For computers, this large amount of data requires IoT applications to have higher big data processing capabilities and faster response times. In the past few years, the solution to this problem was to transfer big data to cloud computing. Although this method realizes the calculation of IoT applications, as the amount of data increases, the network load will be greatly increased, the network may cause congestion, and there will be a certain delay in processing. Summary of the invention
[0003] In view of this, an embodiment of the present application provides an edge analysis method for power Internet of Things big data, which effectively reduces end-to-end latency while meeting throughput requirements.
[0004] To solve the above technical problems, the embodiments of this specification are implemented as follows:
[0005] The embodiment of this specification provides a method for edge analysis of power Internet of Things big data, including:
[0006] The data collection system monitors the data source of the terminal device and aggregates and forwards the stream data to the buffer system;
[0007] The buffer system buffers the stream data and then sends the buffered data to the computing system;
[0008] The computing system performs block layout optimization on each network node and performs edge computing on the stream data;
[0009] The computing system stores the stream data after edge processing.
[0010] Optionally, the data collection system is a distributed log aggregation system, which monitors and receives data from terminal devices and sends it out, and pre-processes the collected data according to feedback information when aggregating and forwarding, so as to achieve preliminary data screening.
[0011] Optionally, the buffer system generates feedback information to the data acquisition system through an intelligent optimization algorithm according to the usage of the streaming data, and the data acquisition system adjusts the data acquisition frequency based on the feedback information, forming a positive feedback virtuous cycle.
[0012] Optionally, the edge computing specifically includes: the edge device performs an edge prediction on the transmission efficiency of the streaming data, and makes an overall arrangement for the task allocation of each edge node based on the prediction result to prevent the edge node from bearing excessive computing tasks.
[0013] Optionally, the edge computing adopts the Storm framework, and the results of the edge computing have three transmission directions: one is to transmit it upward to the cloud server for further calculation; the second is to return this information to the terminal device, and the terminal device performs operations based on this information; the third is to transmit the results directly to the remote management platform without going through the cloud server, and the staff issues instructions through the remote management platform, and the instructions are transmitted to the terminal device through the edge node.
[0014] Optionally, the block layout optimization specifically includes:
[0015] Construct edge cloud topology: Assume that there are two special vertices in the Internet of Things: one represents the center vertex of the Internet of Things, and the other is the client vertex that accesses HDFS data. Set two types of clusters: data center and edge cluster. Each cluster contains at least one gateway node, which provides the connection between the cluster and the network.
[0016] The clusters are sorted based on their utilization and selected in order of decreasing reliability.
[0017] Optionally, storing the edge processed stream data specifically includes:
[0018] The edge computing results are stored or processed in different ways using a deep learning framework. The deep learning framework determines whether the edge computing results should be stored or forwarded, and if forwarded, whether they should be transmitted to a remote management platform or cloud server. It can also determine whether instructions should be issued to the terminal device, thereby sharing the work of the cloud server.
[0019] Optionally, the computing system includes: a cloud server and an edge device;
[0020] The computing system performs block layout optimization on each network node and performs edge computing on the stream data, specifically including:
[0021] The edge device performs partial edge computing on the stream data, and transmits part of the output computing results and part of the stream data to the cloud server for recalculation of the stream data.
[0022] Optionally, the edge device and the cloud server adopt the following communication methods: cloud communication, local area network communication, WIFI communication, Bluetooth communication, cellular network communication, ZigBee data communication or wide area network communication.
[0023] Optionally, the terminal device represents a device entity used to manage data or sense operating status in the Internet of Things architecture, which can monitor, collect or sense the operating status of power grid equipment, is responsible for collecting stream data, and aggregates and forwards the collected data to the edge device. The edge device refers to a computing gateway at the edge of the power equipment or network data source, which can perform local edge computing and processing on the data.
[0024] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0025] This method improves the topological structure of the network end, builds an edge structure based on HDFS block layout optimization, calculates streaming data in the edge cluster and feeds back the results to the IoT devices. It can transfer the computing power of streaming data from the traditional cloud computing center to the edge of the network, effectively reducing end-to-end latency while meeting throughput requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 A schematic diagram of a flow chart of a power Internet of Things big data edge analysis method provided in an embodiment of this specification;
[0028] Figure 2 The overall architecture diagram of the IoT edge deployment based on block layout provided in the embodiments of this specification;
[0029] Figure 3 The edge analysis of the power Internet of Things based on block layout optimization provided in the embodiments of this specification;
[0030] Figure 4 A Storm cluster working architecture diagram provided for the embodiments of this specification;
[0031] Figure 5 The edge computing implementation process provided in the embodiments of this specification. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0033] Edge computing refers to processing and analyzing data at the edge of the network. An edge node is any node with computing and network resources between the data source and the cloud server. Edge computing can still reduce request response time, reduce network bandwidth, and ensure data security and privacy.
[0034] As the amount of data generated by power IoT devices increases, the network load will be greatly increased. To address this problem, an HDFS block layout algorithm is proposed to analyze and process the edge data of the power IoT. This method improves the topology of the network end, builds an edge structure based on HDFS block layout optimization, and calculates the streaming data in the edge cluster and feeds back the results to the IoT devices. It can transfer the computing power of streaming data from the traditional cloud computing center to the edge of the network, effectively reducing the end-to-end delay while meeting the throughput requirements.
[0035] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0036] Figure 1 A schematic diagram of a flow chart of a power Internet of Things big data edge analysis method provided in an embodiment of this specification. From a program perspective, the execution subject of the process can be a program or application client installed on an application server.
[0037] like Figure 1 As shown, the process may include the following steps:
[0038] Step 110: The data collection system monitors the data source of the terminal device and aggregates and forwards the stream data to the buffer system;
[0039] Step 120: the buffer system buffers the stream data and sends it to the computing system;
[0040] Step 130: The computing system optimizes the block layout of each network node and performs edge computing on the stream data;
[0041] Step 140: The computing system stores the edge-processed stream data.
[0042] based on Figure 1 The method, the embodiments of this specification also provide some specific implementation methods of the method, which are described below.
[0043] The big data edge analysis method based on block layout adopts a four-layer management architecture in the overall physical network deployment, namely the cloud management layer, network channel management layer, edge computing layer and edge node optimization layer. Figure 2 shown.
[0044] (1) Cloud management layer. In the cloud server, multiple cloud micro servers can be deployed to receive streaming data from the device or network end of the power grid. The remote management platform is responsible for issuing instructions to the terminal devices and managing edge devices and terminal devices.
[0045] (2) Network channel management layer: Its function is to transmit streaming data and realize data communication between edge devices and cloud servers through data channels.
[0046] (3) Edge computing layer: This layer includes edge devices, edge computing, and terminal devices. Terminal devices refer to the device entities used to manage data or sense the operating status in the IoT architecture. They can monitor, collect, or sense the operating status of power grid equipment, collect streaming data, and aggregate and forward the collected data to edge devices. Edge devices refer to computing gateways at the edge of power equipment or network data sources, which can perform local edge computing and processing on data. Edge computing distributes computing tasks to each edge node. Since streaming data is real-time, edge devices will make an edge prediction of the transmission efficiency of streaming data, and make a coordinated arrangement of the task allocation of each edge node based on the prediction results to prevent edge nodes from bearing too heavy computing tasks. Edge computing mainly uses the Storm framework. The results of edge computing have three transmission directions: one is to transmit them upward to the cloud server for further calculation; the second is to return this information to the terminal device, and the terminal device performs operations based on this information; the third is to directly transmit the results to the remote management platform without going through the cloud server. The staff issues instructions through the remote management platform, and the instructions are transmitted to the terminal device through the edge node.
[0047] (4) Edge node optimization layer: There are many devices connected to the power Internet of Things. When computing nodes are interconnected with the network to form edge nodes, direct connection and aggregation of these nodes will lead to a decrease in the overall network information transmission performance. It is necessary to optimize the edge nodes and construct an edge cloud topology structure to host the HDFS block server to improve the availability and optimization of HDFS.
[0048] The edge computing design framework based on block layout optimization mainly includes five processes: data collection, data access, block layout optimization, edge computing, and data storage. Figure 3 As shown in the figure. This framework is based on log processing. First, the collection system monitors the data source, and then aggregates and forwards the data to the buffer system. The buffer system acts as a buffer for data transmission to the computing system, coordinating the rate of data collection and the rate of data processing by the computing system. Edge computing mainly optimizes the block layout of each network node, calculates the streaming data, and can use the memory database to exchange data. The calculation results will be analyzed and judged according to the deep learning framework for storage or transmission.
[0049] The analysis of each process is as follows:
[0050] (1) Data collection
[0051] The streaming data in the power grid mainly comes from the collection of smart meters, PMUs and various sensors. These data types are complex, large in scale, and real-time data. The collection system is a distributed, reliable, and highly available system for mass log aggregation. It can monitor and receive data from the client and send it out. When a node fails, the log file is transmitted to other nodes without loss, ensuring the integrity of the data. At the same time, the collected data will be pre-processed according to the feedback information when it is aggregated and forwarded to achieve preliminary data screening.
[0052] (2) Data access
[0053] The speed of data collection and data processing is not necessarily synchronized, so the data needs to be stored and cached. Since edge devices do not have as much storage space as cloud servers, it is necessary to improve the cache hit rate of edge devices. For the collected data, after streaming computing, according to the use of streaming computing on streaming data, a feedback information is generated and returned to the collection system through an intelligent optimization algorithm. The collection system adjusts the collected data based on this feedback information, forming a positive feedback virtuous cycle.
[0054] (3) Block layout optimization
[0055] In order to optimize the edge points, an edge cloud topology is constructed. Assume that there are two special vertices in the Internet of Things: one represents the central vertex of the Internet of Things, and the other is the client vertex that accesses HDFS data. Servers are grouped into server architectures, which are further grouped into clusters. Two types of clusters are set: data center and edge clusters. Each cluster contains at least one gateway node that provides connectivity between the cluster and the network. Each edge connecting the nodes in the network is associated with a positive threshold that represents the probability of failure of the edge within a given time range. In general, connections are considered to be independent of each other. The failure value of the path between any two points, that is, the probability of path breakage, is calculated based on the threshold of the path edge.
[0056] The block layout optimization algorithm process is:
[0057] First, clusters are sorted according to their utilization and selected in order of decreasing reliability.
[0058] Then, if the replication factor is less than 3, one replica is placed in the least utilized cluster and the other replica is placed in the second least utilized cluster. If the replication factor is greater than or equal to 3, the first two replicas are placed according to the data center priority strategy for edge cloud, which is as follows: 1) Place in two data centers where the architecture has available space; 2) Place in two separate data centers; 3) Place in two separate clusters; 4) Place in the least utilized cluster.
[0059] The implementation process of the block layout optimization algorithm is as follows:
[0060] Algorithm 1: Cluster selection for HDFS block layout optimization
[0061]
[0062]
[0063]
[0064] (4) Edge computing
[0065] Storm is a stand-alone distributed streaming data processing framework designed to process large amounts of streaming data in a fault-tolerant and horizontally scalable manner with the highest ingestion rate. Although Storm is stateless, it can manage distributed environments and cluster states through Apache ZooKeeper. Storm has a master node and multiple worker nodes inside. The master node is responsible for distributing code in the cluster, assigning computing tasks to machines, and monitoring cluster status. The worker node is responsible for listening to several worker processes assigned to its machine by the master node, and starting or shutting down as needed. A worker process consists of several executors, each of which corresponds to one or more tasks. In order to ensure the stability of the Storm system, Zookeeper is introduced to coordinate the scheduling and allocation of tasks between the master node and the worker nodes. The working architecture diagram is as follows Figure 4 shown.
[0066] (5) Data output and storage. After the edge computing results are obtained, the deep learning framework is used to store or process the results in different ways according to the different business requirements such as abnormal detection of monitoring data in the power grid, abnormal power consumption analysis, power consumption behavior analysis, and short-term load forecasting. The deep learning framework will determine whether the result should be stored or forwarded, and if forwarded, it should be transmitted to the remote management platform or cloud server. At the same time, it can also determine whether to issue instructions to the terminal device, sharing the work of the cloud server.
[0067] 3. Implementation process of edge analysis of power Internet of Things big data based on block layout optimization
[0068] For the overall architecture of edge deployment based on block layout optimization, each layer has its own specific implementation.
[0069] (1) Edge computing layer: The core of the edge device layer is the implementation of edge devices. Due to the different geographical locations of terminal devices, when performing edge computing, mobile edge computing (MEC) is used to calculate the more dispersed terminals. Through MEC technology, the operating status of terminal devices is controlled, calculated and stored at the edge of the network, overcoming regional barriers. In actual applications, MEC nodes are usually set near large base stations or wireless network controllers so that the nodes are also in the wireless area network used by users, which is more convenient for data transmission in the network. The edge computing implementation process is as follows: Figure 5 shown.
[0070] The edge computing devices in this layer include a collection unit for collecting various information of medium and low voltage distribution networks and a computing unit for calculating the collected distribution network information. The microcontroller processor model of the collection unit is ATMega328P, which has multiple interfaces, more specifically 14 GPIO interfaces, 6 PWM interfaces, 12-bit ADC interfaces, UART serial ports, 1 SPI interface, and 1 I2C interface. The device is connected to the controller in the form of a serial port through an external module, such as ZigBee, RS485 to RS232, etc. Its application frequency is a quad-core BCM2837 with a frequency of 1.2GHz. In the computing unit, the processor core board it has is a 64-bit ARMv8, and the external interfaces include BCM43143WiFi and low-power Bluetooth interfaces. It has 40 I / O interfaces, 4 USB ports, 1 Ethernet interface, 1 HDMI interface, etc. In this processor, an embedded Linux system is also integrated, which has outstanding capabilities in processing data.
[0071] (2) Cloud management layer implementation: Cloud servers are deployed to realize the recalculation or storage of stream data. The edge computing layer will perform edge computing on a portion of the stream data, but the edge device layer only has partial computing functions. Part of the output calculation results and part of the stream data will be transmitted to the cloud management layer through the information management layer to realize the recalculation of data.
[0072] (3) Implementation of the information management layer: In the information management layer, various communications are set up, such as cloud communication, local area network communication, WIFI communication, Bluetooth communication, cellular network communication, ZigBee data communication, wide area network communication, etc. Through different forms of data communication, access with multiple communication interfaces can be achieved, and compatibility is strong.
[0073] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0074] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0075] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0076] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A power Internet of Things big data edge analysis method, characterized in that: include: The data collection system monitors the data source of the terminal device and aggregates and forwards the stream data to the buffer system; The buffer system buffers the stream data and then sends the buffered data to the computing system; The computing system performs block layout optimization on each network node and performs edge computing on the stream data; The computing system stores the edge processed stream data; The data collection system is a distributed log aggregation system that monitors and receives data from terminal devices and sends it out. When aggregating and forwarding, it pre-processes the collected data based on the feedback information to achieve preliminary data screening; The buffer system generates feedback information based on the usage of the stream data through an intelligent optimization algorithm and returns it to the data acquisition system. The data acquisition system adjusts the data acquisition frequency based on the feedback information, forming a positive feedback virtuous cycle. The edge computing specifically includes: the edge device performs an edge prediction on the transmission efficiency of the streaming data, and makes a comprehensive arrangement for the task allocation of each edge node based on the prediction result to prevent the edge node from bearing too heavy computing tasks; The edge computing adopts the Storm framework. The results of the edge computing have three transmission directions: one is to transmit it upward to the cloud server for further calculation; the second is to return this information to the terminal device, and the terminal device performs operations based on this information; the third is to directly transmit the results to the remote management platform without going through the cloud server. The staff issues instructions through the remote management platform, and the instructions are transmitted to the terminal device through the edge node; The block layout optimization specifically includes: Construct edge cloud topology: Assume that there are two special vertices in the Internet of Things: one represents the center vertex of the Internet of Things, and the other is the client vertex that accesses HDFS data. Set two types of clusters: data center and edge cluster. Each cluster contains at least one gateway node, which provides the connection between the cluster and the network. Each edge connecting nodes in the network is associated with a positive threshold, which represents the failure probability of the edge within a given time range; the failure value of the path between any two points, that is, the probability of path breaking, is calculated based on the threshold of the path edge; The block layout optimization algorithm process is as follows: first, the clusters are sorted according to their utilization and selected in order of decreasing reliability; Then, if the replication factor is less than 3, one replica is placed in the cluster with the lowest utilization and the other replica is placed in the second cluster with the lowest utilization; if the replication factor is greater than or equal to 3, the first two replicas are placed according to the strategy of prioritizing data centers for edge clouds, and the division principles are as follows: 1) Place in two data centers with available space in the architecture; 2) Place in two independent data centers; 3) Place in two separate clusters; 4) Place in the cluster with the lowest utilization; The storing of the edge processed stream data specifically includes: The edge computing results are stored or processed in different ways using a deep learning framework. The deep learning framework determines whether the edge computing results should be stored or forwarded, and if forwarded, whether they should be transmitted to a remote management platform or a cloud server. It can also determine whether instructions should be issued to the terminal device, thereby offloading the work of the cloud server. The computing system includes: a cloud server and an edge device; The computing system performs block layout optimization on each network node and performs edge computing on the stream data, specifically including: The edge device performs partial edge computing on the stream data, and transmits part of the output computing results and part of the stream data to the cloud server to perform recalculation of the stream data; The edge device and the cloud server use the following communication methods: cloud communication, local area network communication, WIFI communication, Bluetooth communication, cellular network communication, ZigBee data communication or wide area network communication; The terminal device refers to the device body used to manage data or sense the operating status in the Internet of Things architecture. It can monitor, collect or sense the operating status of power grid equipment, and is responsible for collecting stream data. The collected data is summarized and forwarded to the edge device. The edge device refers to the computing gateway at the edge of the power equipment or network data source, which can perform local edge computing and processing on the data.
