Green energy-saving unloading method based on multi-edge node collaboration in power Internet of Things
By adopting multi-edge node collaboration clustering and task offloading strategies in the power Internet of Things, the problem of uneven energy consumption of convergence nodes is solved, a balance between delay constraints and energy efficiency is achieved, and the completion rate of edge computing tasks is improved.
Patent Information
- Application Number
- CN202210900101.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-07-28
AI Technical Summary
In the power Internet of Things, when aggregation nodes carry edge nodes to process data, uneven energy consumption results. Existing technologies cannot effectively solve this problem, especially when edge nodes have limited computing and storage capabilities.
A green energy-saving offloading method based on multi-edge node collaboration under the power Internet of Things is proposed. Through clustering and task offloading strategies, edge nodes in the same cluster are used to collaborate to balance energy consumption, and tasks are offloaded to a private cloud when the energy is exhausted. Computation, ensuring latency constraints and energy efficiency.
While meeting the delay constraints, it reduces the energy consumption of aggregation nodes, improves the completion rate of edge computing tasks, avoids node shutdowns caused by uneven energy consumption, and achieves energy balance and efficient data forwarding.
Smart Images

Figure CN115412966B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electric power Internet of Things, and specifically refers to a green energy-saving unloading method based on multi-edge node collaboration under the electric power Internet of Things. Background Art
[0002] In recent years, the development model of high-carbon economy in various countries around the world has aggravated the global energy crisis and the deterioration of the ecological environment. At present, due to the continuous increase in the amount of wind and solar power abandonment, the problem of new energy consumption has seriously restricted the green and low-carbon transformation of the power industry [1]. Among them, the lack of information perception ability of new energy power generation units and controllable loads is one of the reasons for the insufficient new energy consumption. Therefore, we should use the rapidly developing information technologies such as artificial intelligence and 5G to improve the operation and management level of new energy power generation equipment and realize the efficient consumption of new energy.
[0003] With the rapid increase in the types and number of distributed power generation equipment connected, the amount of data in the power Internet of Things is increasing[2]. Currently, there are millions of distributed renewable energy power generation units across the country. In the future, the number of renewable energy power generation units will reach tens of millions, and the various signals accompanying them, such as meteorological environment, operation control, etc., will reach billions[3].
[0004] In order to cope with the challenges brought by the multiplication of data in the power Internet of Things, an effective method is to combine multi-access edge computing (MEC) with the power Internet of Things to process the increasing amount of data[4]. MEC deploys servers on the user side and further sinks computing power to the edge of the network to provide fast and reliable computing services on the user side, which can solve the problem of insufficient computing power and storage space in the power Internet of Things.
[0005] The aggregation nodes in the power Internet of Things provide sufficient computing power and storage space to cope with the growing amount of data by carrying edge nodes with computing and storage functions. However, the aggregation nodes have to bear the data transmission and reception work as well as the computing work of some power Internet of Things services. Their limited energy has become one of the key issues restricting the combination of edge computing and the power Internet of Things [5]. Therefore, designing a multi-edge node collaborative offloading strategy that considers energy saving issues under the power Internet of Things is of great significance for the green and low-carbon transformation of the power industry.
[0006] In the prior art, Wen et al. [6] designed a location-aware algorithm to determine the area where users with offloading requirements are located. Based on factors such as the idle state of edge computing servers around the area, the algorithm allocates servers for task offloading, achieving a higher task completion rate and lower service delay. Cui et al. [7] constructed an adaptive weighted deep deterministic policy gradient algorithm by adopting the DDPG strategy in deep reinforcement learning, which greatly reduced the service delay of edge computing task offloading and migration. Reference [8] used Lyapunov optimization to model the task offloading problem as a series of short-term deterministic optimization problems, realizing the joint allocation and optimization of communication, energy and computing resources. Reference [9] proposed a hierarchical clustering routing protocol, in which nodes are divided into different clusters, and nodes are routed through cluster heads and gateway nodes. This routing algorithm greatly improves the scalability of the network. Reference
[10] achieved more obvious energy-saving effects by setting two levels of cluster heads compared with the classic energy-saving protocol LEACH protocol.
[0007] Although the above studies have achieved the goal of energy saving, they are all applied to sensor networks and are not applicable to the aggregation node level. At the same time, existing research on the power Internet of Things usually assumes that the energy of the aggregation node is unlimited, which does not conform to the actual situation. In the existing literature, most of the offloading strategies for edge computing tasks are designed through reinforcement learning. However, when the edge node computing and storage capabilities carried by the aggregation node are limited, the reinforcement learning model cannot be carried.
[0008] [1] Liu Linhai. New energy consumption and power grid planning[J]. China Industrial Economy, 2022(02):48-50.
[0009] [2] F.Samie, V.Tsoutsouras, L.Bauer, S.Xydis, D.Soudris and J.Henkel, "Computation offloading and resource allocation for low-power IoT edgedevices," 2016 IEEE 3rd World Forum on Internet of Things(WF-IoT), 2016, pp.7-12, doi:10.1109 / WF-IoT.2016.7845499.
[0010] [3] Yang Kun, Sun Lei, Fang Chaoyun, Zhang Yi. Hybrid power generation system to promote the consumption of new energy[J]. China Electric Power, 2022, 55(02): 145-151.
[0011] [4] Zhao Heng, Miao Kun, Chen Lei, Huo Mingxia, Zhang Yongle, Liu Yang. Research on power Internet of Things networking scheme based on edge computing[J]. Microcontrollers & Embedded Systems Applications, 2021, 21(10): 7-11.
[0012] [5] Ding Jie, Liu Danpu. Energy-saving algorithm for data collection in wireless sensor networks under mobile sink environment[J]. Journal of Beijing University of Posts and Telecommunications, 2013, 36(5): 51-55.
[0013] [6] W.Shi, S.Liu, J.Zhang and R.Zhang, "A Location-aware ComputationOffloading Policy for MEC-assisted Wireless Mesh Network," 2020 IEEE / CICInternational Conference on Communications in China (ICCC Workshops), 2020, pp.53-58, doi:10.1109 / ICCCWorkshops49972.2020.9209947.
[0014] [7]Y.Cui,D.Zhang,J.Zhang,T.Zhang,L.Cao and L.Chen, "Distributed TaskMigration Optimization in MEC by Deep Reinforcement Learning Strategy," 2021IEEE 46th Conference on Local Computer Networks(LCN), 2021, pp.411-414, doi:10.1109 / LCN52139.2021.9524987.
[0015] [8] Mao Shuiqiang, Hong Jian, Ren Hua, Ma Xiao, Xu Yongjun. 5G mobile edge computing task offloading method for power Internet of Things[J]. Electrical Measurement and Instrumentation, 2022, 59(02): 105-111. DOI: 10.19753 / j.issn1001-1390.2022.02.015.
[0016] [9] T.Acharjee and S.Roy, "A mobility-aware cluster based routing for large wireless mesh network," 2016 International Conference on SignalProcessing, Communication, Power and Embedded System (SCOPES), 2016, pp.1376-1380, doi:10.1109 / SCOPES.2016.7955666.
[0017]
[10] S.Nasr and M.Quwaider, "LEACH Protocol Enhancement for IncreasingWSN Lifetime," 2020 11th International Conference on Information and Communication Systems (ICICS), 2020, pp.102-107, doi:10.1109 / ICICS49469.2020.239542. Summary of the invention
[0018] Aiming at the problem of uneven energy consumption of aggregation nodes caused by using aggregation nodes equipped with edge nodes to process the ever-increasing data in the power Internet of Things, the present invention proposes a green energy-saving unloading method based on the collaboration of multiple edge nodes under the power Internet of Things. When the computing and storage resources of the edge nodes carried by the aggregation node are sufficient, the sensor data under its jurisdiction are calculated locally; when the local edge node is busy, the task is unloaded to other edge nodes under the same cluster for calculation; when all edge nodes in the same cluster are busy, the task is unloaded to the private cloud in the scene in the form of multiple hops for calculation. The unloading strategy is divided into two parts, clustering and task unloading. Through clustering, the edge nodes in the cluster cooperate with each other to balance the energy consumption of each aggregation node. In the task unloading stage, the processing delay of the edge computing task can be reduced by selecting a suitable unloading node. The simulation results show that the present invention can reduce the energy consumption of the aggregation node as much as possible while meeting the delay constraint.
[0019] The green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things has the following specific steps:
[0020] Step 1: For the photovoltaic power generation scenario, N aggregation nodes are evenly distributed in the scenario, each aggregation node is equipped with an edge node, and each aggregation node has several sensors under its jurisdiction;
[0021] Step 2: For each sink node, calculate the energy consumption model of each sink node respectively;
[0022] For a single sink node n i , perform two types of processing on the task set T uploaded by the sensor. The edge node carried by itself calculates the task set J and forwards the task set V to the private cloud or other aggregation nodes; T = J + V.
[0023] Then the sink node n i The energy consumption includes: the computing energy consumption generated by the edge nodes carried by itself when performing calculations, and the energy consumed by the aggregation nodes when sending and receiving data.
[0024] Sink Node n i The energy consumption of the edge node when computing task j∈J is calculated as:
[0025] f represents the CPU frequency of the edge node carried by the aggregation node; K0 is a constant related to the CPU frequency; B j is the amount of data generated by the sensor for computing task j; C j is the number of CPU cycles required per bit for task j;
[0026] The energy consumption when sending and receiving data includes the following:
[0027] First, the sink node n i The energy consumed by receiving the computing task k∈T is:
[0028] B k is the amount of data generated by the sensor or offloaded from other nodes for task k; E elec It is the energy required by the transmitting and receiving circuits to transmit each bit of data.
[0029] Then, the sink node n i Towards another sink node n with a distance d from itself x Or the private cloud ξ sends a computing task v∈V, and the energy consumed is:
[0030]
[0031] Its B v The amount of data for task v offloaded from other nodes; ε fs and ε mp Amplifiers for free space and multipath transmission
[0032]
[0033] Characteristic constant, d0 is the distance critical value; when the distance between two sink nodes is d<d0, the free space propagation model is adopted; when the distance between two sink nodes is d≥d0, the multipath fading model is adopted.
[0034] Step 3: For the edge computing task j generated by the sensor, a delay constraint model is constructed according to whether it is a delay-sensitive task;
[0035] When task j is a delay-sensitive task, it should be calculated locally or at surrounding sink nodes as much as possible.
[0036] When task j is calculated locally at the sink node to which it belongs, the latency is:
[0037]
[0038] When the local load of the sink node is too heavy, it chooses to offload task j to the surrounding sink nodes. At this time, the delay is:
[0039]
[0040] Where R' represents the data transmission rate of the sink node.
[0041] When j is a delay-insensitive task, or when the local aggregation node and the surrounding edge nodes are overloaded, the edge computing task is transferred to the private cloud ξ for calculation.
[0042] Assuming that the time for each aggregation node to forward the data packet is constant, the offloading delay D of the task offloaded to the private cloud is offload It is expressed as:
[0043]
[0044] Among them, D process is the processing delay of the offload task transmitted to the private cloud when passing through each node, f MEC represents the CPU frequency of the large MEC server located in the private cloud ξ, and n represents the number of hops that the data packet undergoes to be transmitted to the private cloud ξ.
[0045] Step 4: Using the energy consumption model of each sink node and the delay constraint model of the task, build an objective function that minimizes the energy consumption of all sink nodes while meeting the task delay requirements;
[0046] The objective functions include the following two:
[0047] 1) The total energy consumption objective function of all sink nodes in the scene:
[0048]
[0049] Where N represents the number of sink nodes; R represents the number of rounds of data processing; Represents the sink node n i The energy consumed in the rth round of data processing cycle is calculated as:
[0050]
[0051] T represents the total number of all tasks in the scenario;
[0052] 2) Objective function of the average delay of all tasks in the scene:
[0053]
[0054] Local j Indicates the sink node n i Whether the storage resources of the edge node are sufficient and whether the computing task j is calculated locally; if so, Local j =1; otherwise, Local j =0;
[0055] Around j Represents the sink node n i Send an offload request to other sink nodes in the cluster to which it belongs. Check whether the surrounding sink nodes have sufficient computing and storage resources. i Send a response and start receiving the metrics of the offloaded task; if yes, Around j =1; otherwise, Around j =0;
[0056] Offload i Indicates that when the local sink node and surrounding sink nodes are all busy, sink node n i Acting as a router, offloading data packets in the form of multiple hops to the private cloud at the center of the scene, whether there are sufficient computing and storage resources in the private cloud; if Offload i =1, otherwise Offload i =0.
[0057] The constraints are as follows:
[0058]
[0059]
[0060] C3:Local j +Around j +Offload j =1
[0061] C4:Φ i,j +Φ i,ξ =1
[0062] C5:D local ≤D j , D around ≤D j , D offload ≤D j ;
[0063] Where C1 represents the sink node n i The energy consumed in each round cannot exceed the remaining energy in the current round
[0064] C2 means that the total energy consumed by all sink nodes every day cannot be more than the energy supplemented by solar energy on that day
[0065] C3 means that each task has one and only one processing method;
[0066] C4 ensures that in each cycle, each sink node has one and only one forwarding node.
[0067]
[0068]
[0069] C5 means that all three processing methods must be less than the maximum delay D that the task can tolerate. j .
[0070] Step 5: Decouple the objective function solution process into two sub-problems, perform clustering and unloading, and finally obtain the optimal green energy-saving unloading result;
[0071] (1) Two-layer clustering
[0072] First, the sink nodes are divided into different clusters, and the cluster head is elected in each cluster according to the weight of the sink nodes. The sink node with the largest weight is upgraded to the cluster head node of the group.
[0073] The weight calculation formula of the sink node is:
[0074]
[0075] Where α is the sink node n i The weight coefficient of the remaining energy; β is the sink node n i The weight coefficient of the distance to other nodes in the same cluster; γ is the sink node n i The weight coefficient of the distance to other nodes in the surrounding clusters; E0 is the initial energy of each sink node.
[0076] d inside (n i ) is the sink node n i The average distance to other sink nodes in the same cluster; is the sink node n i The average communication distance between all sink nodes in the cluster; d side (n i ) is the sink node n i The average distance to each sink node in the adjacent cluster; is the average distance between the sink node in a cluster and all sink nodes in adjacent clusters;
[0077] (2) Multi-edge node collaborative offloading
[0078] First, in the initial round of data transmission, each cluster selects the sink node with the largest weight as the cluster head node of the group.
[0079] After a fixed transmission period, the cluster head is updated and re-elected;
[0080] Then, each sensor collects data and sends the task set T to the sink node to which it belongs.
[0081] If the edge nodes deployed in the current aggregation node have sufficient computing and storage resources, all tasks will be offloaded to the local aggregation node. i =1.
[0082] If the current sink node is within the coverage of the private cloud, and its corresponding edge node is overloaded, and no sink node in the cluster has available resources, the task set T is packaged and unloaded to the cluster head node of the cluster, and the cluster head node directly unloads the received data to the private cloud ξ;
[0083] If the current aggregation node is outside the coverage of the private cloud, first find out whether there is an aggregation node with sufficient computing and storage resources in the cluster. If so, offload the task to the surrounding aggregation nodes in the cluster. At this time, Local i =0,Around i = 1. If the surrounding nodes do not have enough computing and storage resources, the current sink node sends the task to the cluster head node of the cluster group. The cluster head node selects the cluster head node within the coverage of the private cloud closest to itself as the forwarding node, packages the data and transmits it to the forwarding node, which then offloads the task to the private cloud. At this time, Offload j =1.
[0084] The advantages of the present invention are:
[0085] 1. A green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things, which takes into account the delay constraint and the energy consumption of the aggregation node, balances the energy consumption of each aggregation node in the data forwarding stage through clustering, and combines the supplement of solar energy to avoid the node shutdown phenomenon caused by uneven energy consumption of the aggregation node.
[0086] 2. A green and energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things, which effectively reduces the number of data forwarding hops, reduces the unloading delay of edge computing tasks, and improves the completion rate of edge computing tasks by sharing computing and storage resources between aggregation nodes in the same cluster.
[0087] 3. A green and energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things achieves a good balance between reducing the energy consumption of aggregation nodes and improving the completion rate of edge computing tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 This is a flow chart of a green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things of the present invention;
[0089] Figure 2 Schematic diagram of a photovoltaic power generation scenario including N evenly distributed aggregation nodes built for the present invention;
[0090] Figure 3 A schematic diagram of a simple solar energy supply model constructed for the present invention;
[0091] Figure 4 The present invention divides the scene into an inner area and an outer area and divides the aggregation nodes into different clusters;
[0092] Figure 5 The figure is a schematic diagram comparing the number of surviving nodes of the offloading strategy under the present invention and the two existing algorithms. DETAILED DESCRIPTION
[0093] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0094] In order to solve the energy deficiency of the aggregation node in the power Internet of Things, the present invention discloses a green energy-saving unloading method based on the cooperation of multiple edge nodes under the power Internet of Things. Through the mutual cooperation between edge nodes and edge nodes, and between edge nodes and private clouds, the completion rate of edge computing tasks is improved. Under the premise of meeting the task delay requirements, the unloading of edge computing tasks is achieved at the minimum energy consumption cost, and the unloading energy consumption of the aggregation node is reduced. At the same time, through reasonable clustering and combined with the energy supplement of solar charging panels, the energy balance and uninterrupted operation of the aggregation nodes in the scene are achieved.
[0095] The green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things is as follows: Figure 1 As shown, the specific steps are as follows:
[0096] Step 1: For the photovoltaic power generation scenario, N aggregation nodes are evenly distributed in the scenario, each aggregation node is equipped with an edge node, and each aggregation node has several sensors under its jurisdiction;
[0097] Step 2: For each sink node, calculate the energy consumption model of each sink node respectively;
[0098] For a single sink node n i , perform two types of processing on the task set T uploaded by the sensor. The edge node carried by itself calculates the task set J and forwards the task set V to the private cloud or other aggregation nodes; T = J + V.
[0099] Then the sink node n i The energy consumption includes: the computing energy consumption generated by the edge nodes carried by itself when performing calculations, and the energy consumed by the aggregation nodes when sending and receiving data.
[0100] Sink Node n i The energy consumption of the edge node when computing task j∈J is calculated as:
[0101] f represents the CPU frequency of the edge node carried by the aggregation node; K0 is a constant related to the CPU frequency; B j is the amount of data generated by the sensor for computing task j; C j is the number of CPU cycles required per bit for task j;
[0102] The energy consumption when sending and receiving data includes the following:
[0103] First, the sink node n i The energy consumed by receiving the computing task k∈K is:
[0104] B k is the amount of data generated by the sensor or offloaded from other nodes for task k; E elec It is the energy required by the transmitting and receiving circuits to transmit each bit of data.
[0105] Then, the sink node n i Towards another sink node n with a distance d from itself x Or the private cloud ξ sends a computing task v∈V, and the energy consumed is:
[0106]
[0107] Among them, B v The amount of data for task v offloaded from other nodes; ε fs and ε mp They correspond to the amplifier characteristic constants of free space and multipath transmission respectively, d0 is the distance critical value, When the distance between two sink nodes is d<d0, the free space propagation model is used; when the distance between two sink nodes is d≥d0, the multipath fading model is used; assuming that the coordinates of the two nodes are (x1, y1) and (x2, y2),
[0108] Step 3: For the edge computing task j generated by the sensor, a delay constraint model is constructed according to whether it is a delay-sensitive task;
[0109] When task j is a delay-sensitive task, it should be calculated locally or at surrounding sink nodes as much as possible.
[0110] When task j is calculated locally at the sink node to which it belongs, the latency is:
[0111]
[0112] When the local load of the sink node is too heavy, it chooses to offload task j to the surrounding sink nodes. At this time, the delay is:
[0113]
[0114] Where R' represents the data transmission rate of the sink node.
[0115] When j is a delay-insensitive task, or when the local aggregation node and the surrounding edge nodes are overloaded, the edge computing task is transferred to the private cloud ξ for calculation.
[0116] Assuming that the time for each aggregation node to forward the data packet is constant, the offloading delay D of the task offloaded to the private cloud is offload It is expressed as:
[0117]
[0118] Among them, D process is the processing delay of the offload task transmitted to the private cloud when passing through each node, f MEC represents the CPU frequency of the large MEC server located in the private cloud ξ, and n represents the number of hops that the data packet undergoes to be transmitted to the private cloud ξ.
[0119] Step 4: Using the energy consumption model of each sink node and the delay constraint model of the task, build an objective function that minimizes the energy consumption of all sink nodes while meeting the task delay requirements;
[0120] The objective functions include the following two:
[0121] 1) The total energy consumption objective function of all sink nodes in the scene:
[0122]
[0123] Where N represents the number of sink nodes; R represents the number of rounds of data processing; Represents the sink node n i The energy consumed in the rth round of data processing cycle is calculated as:
[0124]
[0125] T represents the total number of all tasks in the scenario;
[0126] 2) Objective function of the average delay of all tasks in the scene:
[0127]
[0128] Local j Indicates the sink node n i Whether the storage resources of the edge node are sufficient and whether the computing task j is calculated locally; if so, Local j =1; otherwise, Local j =0;
[0129] Around j Represents the sink node n i Send an offload request to other sink nodes in the cluster to which it belongs. Check whether the surrounding sink nodes have sufficient computing and storage resources. i Send a response and start receiving the metrics of the offloaded task; if yes, Around j =1; otherwise, Around j =0;
[0130] Offload i Indicates that when the local sink node and surrounding sink nodes are all busy, sink node n i Acting as a router, offloading data packets in the form of multiple hops to the private cloud at the center of the scene, whether there are sufficient computing and storage resources in the private cloud; if Offload i =1, otherwise Offload i =0.
[0131] The constraints are as follows:
[0132]
[0133]
[0134] C3:Local j +Around j +Offload j =1
[0135] C4:Φ i,j +Φ i,ξ =1
[0136] C5:D local ≤D j , D around ≤D j , D offload ≤D j ;
[0137] Where C1 represents the sink node n i The energy consumed in each round cannot exceed the remaining energy in the current round
[0138] C2 means that the total energy consumed by all sink nodes every day cannot be more than the energy supplemented by solar energy on that day
[0139] C3 means that each task has one and only one processing method;
[0140] C4 ensures that in each cycle, each sink node has one and only one forwarding node.
[0141]
[0142]
[0143] C5 means that all three processing methods must be less than the maximum delay D that the task can tolerate. j .
[0144] Step 5: Decouple the objective function solution process into two sub-problems, perform clustering and unloading, and finally obtain the optimal green energy-saving unloading result;
[0145] The steps are summarized as follows:
[0146] 1) First, the current weight of each sink node is determined based on factors such as the current residual energy of each sink node and the communication distance with other sink nodes, and the cluster head of each cluster is selected based on the weight.
[0147] 2) After the sensor node generates an edge computing task, there are three offloading schemes according to the current state of the aggregation: if the aggregation node has sufficient computing and storage resources, the computing task will be offloaded to the aggregation node to which the sensor belongs for calculation; if the aggregation node is currently overloaded, the computing task will be offloaded to the idle aggregation node in the same cluster for calculation; if there is no idle node in the current cluster, the computing task will be offloaded to the edge cloud in the scene for calculation.
[0148] Specifically:
[0149] (1) Two-layer clustering
[0150] First, the sink nodes are divided into different clusters, and the cluster head is elected in each cluster according to the weight of the sink nodes. The sink node with the largest weight is upgraded to the cluster head node of the group.
[0151] The weight calculation formula of the sink node is:
[0152]
[0153] Where α is the sink node n i The weight coefficient of the remaining energy; β is the sink node n i The weight coefficient of the distance to other nodes in the same cluster; γ is the sink node n i The weight coefficient of the distance to other nodes in the surrounding clusters; E0 is the initial energy of each sink node.
[0154] d inside (n i ) is the sink node n i The average distance to other sink nodes in the same cluster; is the sink node n i The average communication distance between all sink nodes in the cluster; d side (n i ) is the sink node n i The average distance to each sink node in the adjacent cluster; is the average distance between the sink node in a cluster and all sink nodes in adjacent clusters;
[0155] (2) Multi-edge node collaborative offloading
[0156] First, in the initial round of data transmission, each cluster selects the sink node with the largest weight as the cluster head node of the group.
[0157] After a fixed transmission period, the cluster head is updated and re-elected;
[0158] Then, each sensor collects data and sends the task set T to the sink node to which it belongs.
[0159] If the edge nodes deployed in the current aggregation node have sufficient computing and storage resources, all tasks will be offloaded to the local aggregation node. i =1.
[0160] If the current sink node is within the coverage of the private cloud, and its corresponding edge node is overloaded, and no sink node in the cluster has available resources, the task set T is packaged and unloaded to the cluster head node of the cluster, and the cluster head node directly unloads the received data to the private cloud ξ;
[0161] If the current aggregation node is outside the coverage of the private cloud, first find out whether there is an aggregation node with sufficient computing and storage resources in the cluster. If so, offload the task to the surrounding aggregation nodes in the cluster. At this time, Local i =0,Around i = 1. If the surrounding nodes do not have enough computing and storage resources, the current sink node sends the task to the cluster head node of the cluster group. The cluster head node selects the cluster head node within the coverage of the private cloud closest to itself as the forwarding node, packages the data and transmits it to the forwarding node, which then offloads the task to the private cloud. At this time, Offload j =1.
[0162] Example:
[0163] like Figure 2 The figure shows a photovoltaic power generation scenario. To achieve efficient consumption of photovoltaic energy, several sensors are placed in the scenario to sense environmental changes and monitor the operating status of equipment. N aggregation nodes are evenly distributed in the scenario, and each aggregation node is equipped with an edge node with certain computing and storage capabilities.
[0164] At the same time, each sink node has several sensors under its jurisdiction. When the sensor collects data and generates edge computing task j, the data is packaged and transmitted to the sink node to which it belongs. i The computing and storage resources of the edge nodes are sufficient to perform computing tasks locally and record the local j =1;
[0165] Otherwise, Local j = 0, the sink node n i Send an offload request to other sink nodes in the cluster. If the surrounding sink nodes have sufficient computing and storage resources, send an offload request to sink node n. i Send a response and start receiving offload tasks. This process is called Around. j =1;
[0166] Otherwise, when Local j =0 and Around j= 0, indicating that the local sink node and surrounding sink nodes are all busy. i The data packets are unloaded to the private cloud located in the center of the scene in the form of multiple hops. Assuming that there are sufficient computing and storage resources in the private cloud, Offload i =1;
[0167] In this scenario, the 802.11ah protocol is used for data transmission.
[0168] Assume that the initial energy of each sink node is the same as E0, and the sink node n i The current remaining energy is The computational task j generated by the sensor is described as {B j ,C j ,D j}, where j∈T, T is the set of computational tasks generated by sensors in the scene. j is the data volume of task j, C j is the number of CPU cycles required per bit, D j is the maximum delay that task j can tolerate. i The energy consumed by edge computing task j that performs computation on
[0169] The energy dissipated during data transmission between sensors and sink nodes, sink nodes and sink nodes, and sink nodes and private clouds is calculated using the basic radio model. i The energy consumed by receiving computing task k(k∈T) is
[0170] Assume that the sink node n i Towards another sink node n with a distance d from itself x Or the private cloud ξ sends a computing task v(v∈T), and the energy consumed is
[0171] According to the size, real-time requirements and reliability requirements of the power Internet of Things business, this application processes the power Internet of Things business in three ways: computing locally at the aggregation node, offloading to surrounding aggregation nodes for computing, and transmitting to a private cloud for computing.
[0172] For the edge computing task j generated by the sensor, the maximum delay it can tolerate is D j , then the computational delay D of the local computation at the sink node is local , the delay D of offloading to the surrounding aggregation nodes around Or the transmission delay D to the private cloud for calculation offloadShould be less than the maximum delay D that the task can tolerate j .
[0173] Assuming that task j is a latency-sensitive service, it should be calculated locally on the sink node or on surrounding sink nodes. j =1, the delay is D local .
[0174] When the local load of the sink node is too heavy, it chooses to offload task j to the surrounding sink nodes. j =1, the delay is D around .
[0175] Assuming that task j is a delay-insensitive task, or when the local sink node and the surrounding edge nodes are overloaded, the edge computing task is transferred to the private cloud ξ for computing. Assuming that the time for each sink node to forward the data packet is constant, the unloading delay D of the task to be offloaded to the private cloud ξ is offload .
[0176] The aggregation node is equipped with solar panels, which can replenish the consumed electricity under sufficient sunlight conditions. This application draws a simple solar energy replenishment model diagram based on the sunlight conditions of the day, such as Figure 3 Assume that the duration of each data processing cycle of the sink node is T, and there are R data processing cycles in a day. The solar energy supply value in the figure is extreme valued, then for the sink node n i , it can be concluded that within the data processing round r, the solar energy that can be replenished is:
[0177]
[0178] In this scenario, the sink node not only undertakes some MEC computing tasks, but also undertakes the routing and forwarding tasks of MEC data. If the sink node is shut down due to insufficient power, the sensors under the sink node will not work properly. Therefore, the normal operation of the sink node is crucial to this network. The energy consumption of the sink node mainly comes from computing consumption and routing consumption. i The energy consumed in the rth round of data processing cycle is expressed as:
[0179]
[0180] Therefore, the total energy consumption of the sink node in the network can be expressed as:
[0181] The computing tasks generated in this network scenario are divided into three types: local computing at the corresponding aggregation node, offloading to surrounding aggregation nodes for computing, and offloading to private cloud computing. Therefore, the average latency of the computing tasks can be expressed as:
[0182]
[0183] The optimization goal is to minimize the energy consumption of the aggregation node while meeting the task delay requirements. Therefore, this problem is expressed as follows:
[0184] p1:min E total
[0185]
[0186]
[0187]
[0188] C3:Local j +Around j +Offload j =1
[0189] C4:Φ i,j +Φ i,ξ =1
[0190] C5:D local ≤D j , D around ≤D j , D offload ≤D j ;
[0191] The two objective functions in P1 and P2 are both non-convex functions, and have non-convex constraint inequalities C1, C2 and C5, making it difficult to solve the problem using traditional methods. Therefore, the present invention minimizes the energy consumption of the aggregation node while ensuring the task completion rate through the mutual cooperation between edge nodes and edge nodes and private clouds, and decouples the entire solution process into two sub-problems to reduce the complexity of the algorithm; specifically:
[0192] (1) Two-layer clustering algorithm
[0193] In this scenario, the distance between the sink nodes is usually more than 200 meters, and the communication range is generally 400-500 meters. If the clustering algorithm in the traditional sensor network is used to elect cluster heads between sink nodes, the distance between the elected cluster heads may be too far, exceeding the communication range of each other.
[0194] Therefore, this embodiment uses the distance from the aggregation node to the private cloud ξ as a reference to divide the scene into an inner area and an outer area, which not only meets the requirement of a maximum of three hops for service routing in this scene, but also achieves the purpose of energy saving. With the private cloud ξ as the center, the area within a radius of 600 meters is the inner area, and the remaining area is the outer area. At the same time, the aggregation nodes are divided into different clusters according to their location and area, represented as {ZA1-ZA4}, {ZB1-ZB12}, such as Figure 4 shown.
[0195] Each cluster group elects a cluster head based on the weight of the sink node, and the sink node with the largest weight is upgraded to the cluster head node of the cluster. The weight of the sink node mainly considers three factors: the remaining energy of the current sink node, the communication cost between the sink node and other sink nodes in the cluster, and the communication cost between the sink node and the nodes of the adjacent cluster. In order to save signaling overhead, unlike the traditional clustering algorithm that replaces the cluster head every round, the two-layer clustering algorithm re-elects the cluster head every 10 rounds.
[0196] Sink Node n i The average distance to other sink nodes in the cluster is defined as:
[0197]
[0198] where d im is the sink node n i With the sink node n in the same cluster m The Euclidean distance of N. inside is the number of aggregation nodes in the cluster.
[0199] Sink Node n i The average communication distance between sink nodes in a cluster is defined as:
[0200]
[0201] Sink Node n i The average distance to the sink node in the adjacent cluster is defined as:
[0202]
[0203] where d il is the sink node n i With the sink node n in the adjacent area l The Euclidean distance, N side Indicates the number of sink nodes in adjacent clusters. i Located in the inner area, Z side is the sink node n i The external area adjacent to the area where it is located; if the sink node n iLocated in the outer area, Z side is the sink node n i The inner area closest to the area you are in.
[0204] The average distance between a sink node in a cluster and a sink node in an adjacent cluster is defined as:
[0205]
[0206] Sink Node n i The weight of is defined as:
[0207]
[0208] Among them, α, β, and γ are the weight coefficients of the residual energy of the sink node, the distance between the sink node and other nodes in the same cluster, and the distance between the sink node and other nodes in the surrounding clusters, respectively.
[0209] Each cluster selects a cluster head in each round of data transmission. The sensor collects data and sends the task to the sink node. If the edge node deployed in the current sink node has sufficient computing and storage resources, the task will be unloaded to the local sink node; if the edge node in the current sink node is overloaded and this sink node is in the inner area, the unloaded task will be packaged and transmitted to the cluster head node of this cluster, and the cluster head node will directly unload the received data to the private cloud. When this sink node is in the outer area, first find out whether there is a sink node with sufficient computing and storage resources in this cluster. If so, the task will be unloaded to the surrounding sink nodes. If the surrounding nodes do not have sufficient computing and storage resources, the current sink node will send the task to the cluster head node of the cluster. The cluster head node selects the inner area cluster head node closest to itself as the front transmission node. After the data is packaged and transmitted to the front transmission node in the inner area, the front transmission node in the inner area will unload the task to the private cloud. Through the cooperation between the sink nodes equipped with edge nodes, a higher task completion rate and lower energy consumption are achieved compared with the traditional offloading algorithm.
[0210] Simulation and performance analysis
[0211] The performance of the proposed green offloading method based on multi-edge node collaboration was verified by using MATLAB. 64 aggregation nodes were set up evenly distributed in an area of 1600*1600, and the distance between aggregation nodes was 200-250 meters. Each aggregation node was equipped with an edge node with a CPU frequency of 1.8GHZ and a storage space of 1MB. At the center of the scene, a private cloud was set up, in which edge servers with sufficient storage space and a CPU frequency of 3.6GHZ were placed. Other parameters are shown in Table 1:
[0212] Table 1
[0213]
[0214]
[0215] In order to compare the performance of the proposed multi-edge node cooperative offloading, this embodiment sets two comparative offloading strategies:
[0216] 1) The sink nodes are equipped with the same edge nodes as the proposed algorithm, but there is no clustering between the sink nodes. When the edge nodes are overloaded, the distance vector routing algorithm is used to offload the edge computing tasks to the private cloud in a multi-hop manner.
[0217] 2) The sink node is equipped with the same edge node as the proposed algorithm, and all edge computing tasks generated by the sensors are only calculated locally on the sink node to which they belong.
[0218] like Figure 5 As shown, there are comparison diagrams of the number of nodes surviving under the three offloading strategies and the remaining energy of each node under the three strategies after 576 rounds of data transmission cycles.
[0219] Among them, the solution of local computing of edge nodes achieves zero node death at the cost of high latency and low completion rate of tasks. In traditional edge-cloud offloading, the closer the aggregation node is to the private cloud, the more data it needs to send and receive, resulting in a serious imbalance of energy between nodes. Even with solar energy supplementation, a large number of aggregation nodes located in the scene area still die. The proposed multi-edge node collaborative offloading strategy balances the energy consumption of aggregation nodes through a two-layer clustering algorithm. With the supplement of solar energy, the daily balance of node energy in and out is achieved, and the node death rate is 0.
Claims
1. A green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things, characterized in that: The specific steps are as follows: First, for the photovoltaic power generation scenario, N aggregation nodes are evenly distributed, each of which is equipped with an edge node. At the same time, each aggregation node is responsible for several sensors. The energy consumption of each sink node is calculated separately. At the same time, for each edge computing task generated by the sensor, the delay constraint is constructed according to whether it is a delay-sensitive task. Then, using the energy consumption of each sink node and the delay constraint of the task, an objective function is constructed to minimize the energy consumption of all sink nodes while meeting the task delay requirement. The objective functions include the following two: 1) The total energy consumption objective function of all sink nodes in the scene: Where N represents the number of sink nodes; R represents the number of rounds of data processing; Represents the sink node n i The energy consumed in the rth round of data processing cycle; 2) Objective function of the average delay of all tasks in the scene: Local j Indicates the sink node n i Whether the storage resources of the edge node are sufficient and whether the computing task j is calculated locally; if so, Local j =1; otherwise, Local j =0; Around j Represents the sink node n i Send an offload request to other sink nodes in the cluster to which it belongs. Check whether the surrounding sink nodes have sufficient computing and storage resources. i Send a response and start receiving the metrics of the offloaded task; if yes, Around j =1; otherwise, Around j =0; Offload i Indicates that when the local sink node and surrounding sink nodes are all busy, sink node n i Acting as a router, offloading data packets in the form of multiple hops to the private cloud at the center of the scene, whether there are sufficient computing and storage resources in the private cloud; if Offload i =1, otherwise Offload i =0; For task j, if the task is delay-sensitive, it should be calculated at the local sink node or surrounding sink nodes as much as possible; The latency of local calculation is: The delay of offloading task j to the surrounding sink nodes is: Where R' represents the data transmission rate of the sink node; B j is the amount of data generated by the sensor for computing task j; C j is the number of CPU cycles required per bit for task j; f represents the CPU frequency of the edge node carried by the sink node; When the task is latency-insensitive or when the local aggregation node and the surrounding edge nodes are overloaded, the edge computing task is transferred to the private cloud for computing. Assuming that the time for each aggregation node to forward the data packet is constant, the offloading delay D of the task offloaded to the private cloud is offload It is expressed as: Among them, D process is the processing delay of the offload task transmitted to the private cloud when passing through each node, f MEC represents the CPU frequency of the large MEC server located in the private cloud ξ, and n represents the number of hops that the data packet takes to be transmitted to the private cloud ξ; The constraints are as follows: C3:Local j +Around j +Offload j =1 C4:F i,j +F i,ξ =1 C5:D local ≤D j ,D around ≤D j ,D offload ≤D j ; Where C1 represents the sink node n i The energy consumed in each round cannot exceed the remaining energy in the current round C2 means that the total energy consumed by all sink nodes every day cannot be more than the energy supplemented by solar energy on that day C3 means that each task has one and only one processing method; C4 ensures that in each cycle, each sink node has one and only one forwarding node; C5 means that all three processing methods must be less than the maximum delay D that the task can tolerate. j ; Finally, the objective function solution process is decoupled into two sub-problems, clustering and unloading are performed, and finally the optimal green energy-saving unloading result is obtained; Specifically: (1) Two-layer clustering First, the sink nodes are divided into different clusters, and the cluster head is elected in each cluster according to the weight of the sink nodes. The sink node with the largest weight is upgraded to the cluster head node of the group. The weight calculation formula of the sink node is: Where α is the sink node n i The weight coefficient of the remaining energy; β is the sink node n i The weight coefficient of the distance to other nodes in the same cluster; γ is the sink node n i The weight coefficient of the distance to other nodes in the surrounding clusters; E0 is the initial energy of each sink node; d inside (n i ) is the average distance between sink node ni and other sink nodes in the same cluster; is the average communication distance between all sink nodes in the cluster where sink node ni is located; d side (n i ) is the average distance between the sink node ni and each sink node in the adjacent cluster; is the average distance between the sink node in a cluster and all sink nodes in adjacent clusters; (2) Multi-edge node collaborative offloading First, in the initial round of data transmission, each cluster selects the sink node with the largest weight as the cluster head node of the group; Then, each sensor collects data and sends the task set T to the sink node to which it belongs; If the edge nodes deployed in the current aggregation node have sufficient computing and storage resources, all tasks will be offloaded to the local aggregation node. i =1; If the current sink node is within the coverage of the private cloud, and its corresponding edge node is overloaded, and no sink node in the cluster has available resources, the task set T is packaged and unloaded to the cluster head node of the cluster, and the cluster head node directly unloads the received data to the private cloud ξ; If the current aggregation node is outside the coverage of the private cloud, first find out whether there is an aggregation node with sufficient computing and storage resources in the cluster. If so, offload the task to the surrounding aggregation nodes in the cluster. At this time, Local i =0,Around i =1; if the surrounding nodes do not have enough computing and storage resources, the current sink node sends the task to the cluster head node of the cluster group. The cluster head node selects the cluster head node within the coverage of the private cloud closest to itself as the forwarding node, packages the data and transmits it to the forwarding node, which then offloads the task to the private cloud. At this time, Offload j =1.
2. The green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things according to claim 1 is characterized in that: The process of calculating the energy consumption of a single sink node is as follows: Since a single sink node n i The task set T uploaded by the sensor is processed in two ways: the edge node carried by the sensor calculates the task set J and forwards the task set V to the private cloud or other aggregation nodes; T = J + V; Therefore, the sink node n i The energy consumption of the network includes: the computing energy consumed by the edge nodes it carries when performing calculations, and the energy consumed by the aggregation nodes when sending and receiving data; Sink Node n i The energy consumption of the edge node when computing task j∈J is calculated as: K0 is a constant related to CPU frequency; The energy consumption when sending and receiving data includes the following: First, the sink node n i The energy consumed by receiving the computing task k∈T is: B k is the amount of data generated by the sensor or offloaded from other nodes for task k; E elec It is the energy required by the transmitting and receiving circuits to transmit each bit of data; Then, the sink node n i Towards another sink node n with a distance d from itself x Or the private cloud ξ sends a computing task v∈V, and the energy consumed is: Its B v The amount of data for task v offloaded from other nodes; ε fs and ε mp They correspond to the amplifier characteristic constants of free space and multipath transmission respectively, d0 is the distance critical value, When the distance between two sink nodes is d<d0, the free space propagation model is adopted; when the distance between two sink nodes is d≥d0, the multipath fading model is adopted.
3. The green energy-saving unloading method based on multi-edge node collaboration under the power Internet of Things according to claim 1 is characterized in that: The energy The calculation formula is: T represents the total number of all tasks in the scenario.
