Task unloading method for energy conservation of heterogeneous fusion edge network of electric power internet of things

By establishing a task offloading model for heterogeneous converged networks in the power Internet of Things, using optical fiber and wireless communication connections to collaboratively optimize the task offloading of power terminals and edge servers, the problem of balancing task processing delay and energy consumption in the power Internet of things is solved. , improving the flexibility and efficiency of task processing.

CN118540345APending Publication Date: 2024-08-23STATE GRID NINGXIA ELECTRIC POWER CO +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410630322.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology is difficult to balance task processing delay and energy consumption in the power Internet of Things, resulting in poor task processing flexibility and low efficiency of terminal equipment, making it difficult to reduce energy consumption and delay at the same time while ensuring user experience.

Method used

By establishing a task offloading model for heterogeneous converged networks, using optical fiber and wireless communication connections, and determining the task offloading strategy based on the delay and energy consumption of each task in the local and offloading terminals of the power terminal, collaborative offloading between the power terminal and the edge server is realized. Optimize the balance between latency and energy consumption.

Benefits of technology

It achieves an effective balance between delay and energy consumption when offloading tasks while ensuring user experience, improves the flexibility and efficiency of task processing, and reduces the energy consumption of power terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540345A
    Figure CN118540345A
Patent Text Reader

Abstract

The invention provides a task unloading method, device and equipment for energy conservation of a power internet of things heterogeneous fusion edge network, and a storage medium. The method comprises the following steps: acquiring to-be-processed task information of a power terminal; establishing a task unloading model of the heterogeneous fusion network according to the time delay and the energy consumption of execution of each task of the power terminal at the local and the unloading end; wherein the heterogeneous fusion network comprises at least one optical fiber and at least one wireless network server in communication connection with the optical fiber, and the power terminal is in communication connection with the wireless network server; inputting to-be-processed task information of the power terminal into the task unloading model to obtain an unloading strategy of a to-be-processed task; wherein the unloading strategy comprises execution at the local of the power terminal and execution at the unloading end. By means of the task unloading method and device, in the process of task unloading in the heterogeneous fusion edge network, the energy consumption of the equipment can be reduced while low time delay is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing technology, and in particular to a task offloading method, device, equipment and storage medium for energy saving in a heterogeneous fusion edge network of power Internet of Things. Background Art

[0002] Converged communication technology is the key to promoting the construction of a new power system with new energy as the main body. In recent years, with the development of the power Internet of Things, the rapid growth of computing-intensive and delay-sensitive business needs, the contradiction between network energy-saving needs and power Internet of Things terminal devices with limited resources has become increasingly prominent.

[0003] To ensure the service quality of the power Internet of Things, most optimization solutions currently adopt the method of offloading computing tasks to the Mobile Edge Computing (MEC) server, which significantly reduces the core network load pressure and greatly reduces the transmission distance of user requests. However, the current power Internet of Things edge network faces problems such as poor end-to-end service latency guarantee, uncertain heterogeneous network latency, and a single communication method that is difficult to meet the needs of various terminal services. As a result, the task processing flexibility of terminal Internet of Things devices is poor and the efficiency is low. It is difficult to balance the latency and energy consumption during task offloading while ensuring the user experience. Summary of the invention

[0004] The present invention provides a task offloading method, device, equipment and storage medium for energy saving in a heterogeneous fusion edge network of the power Internet of Things, so as to solve the defect in the prior art that it is difficult to balance task processing delay and energy consumption during task offloading, and realize more flexible and efficient task offloading.

[0005] In a first aspect, the present invention provides a task offloading method for energy saving in a heterogeneous fusion edge network of power Internet of Things, comprising:

[0006] Obtaining pending task information of the power terminal;

[0007] According to the delay and energy consumption of each task of the power terminal executed locally and at the unloading end, a task unloading model of a heterogeneous fusion network is established; wherein the heterogeneous fusion network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server;

[0008] The pending task information of the power terminal is input into the task offloading model to obtain the offloading strategy of the pending task; wherein the offloading strategy includes: executing locally at the power terminal and executing at the offloading end.

[0009] In some embodiments, the task offloading model of the heterogeneous fusion network is established according to the delay and energy consumption of each task of the power terminal executed locally and at the offloading end, including:

[0010] According to the computing energy consumption and transmission energy consumption of the power terminal for each task, the energy consumption of the power terminal when performing edge computing offloading is obtained;

[0011] According to the response delay and transmission delay of the power terminal for each task, the delay of the power terminal when performing edge computing offloading is obtained;

[0012] The time delay of the power terminal when performing edge computing offloading is taken as a constraint condition, and the minimization of the energy consumption of the power terminal is taken as the optimization goal, and a task offloading model of the heterogeneous fusion network is established.

[0013] In some embodiments, the pending task information includes: the number of CPU cycles required to execute the pending task; the method further includes:

[0014] Obtaining the energy consumption of the power terminal in each CPU cycle;

[0015] Based on the number of CPU cycles required to execute the task to be processed and the energy consumption of the power terminal in each CPU cycle, the computing energy consumption of the power terminal is obtained.

[0016] In some embodiments, the method further comprises:

[0017] Obtaining an average response time of the power terminal executing each task locally and an average response time of the power terminal executing each task at the unloading end;

[0018] Obtaining the optical fiber communication delay and the wireless network communication delay when the power terminal offloads each task to the offloading end for execution;

[0019] Determining a response delay of the power terminal based on an average response time of each task executed locally by the power terminal and an average response time of each task executed at the unloading end;

[0020] The transmission delay of the power terminal is determined based on the optical fiber communication delay and the wireless network communication delay.

[0021] In some embodiments, the unloading end includes at least one edge server; the edge server is communicatively connected to the power terminal, and the edge server is used to receive and calculate the unloading task of the power terminal.

[0022] In some embodiments, the unloading end also includes at least one cloud server; the cloud server is communicatively connected to each of the edge servers, and the cloud server is used to provide centralized cloud computing center services, receive and calculate tasks unloaded by the edge servers.

[0023] In some embodiments, the wireless network server includes at least one of a Zigbee network server, a Lora network server, and a WLAN network server.

[0024] In a second aspect, the present invention further provides a task offloading device for energy saving in a heterogeneous fusion edge network of power Internet of Things, comprising:

[0025] An acquisition module, used to acquire the pending task information of the power terminal;

[0026] A modeling module, used for establishing a task offloading model of a heterogeneous converged network according to the delay and energy consumption of each task of the power terminal executed locally and at an offloading end; wherein the heterogeneous converged network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server;

[0027] The processing module is used to input the pending task information of the power terminal into the task offloading model to obtain the offloading strategy of the pending task; wherein the offloading strategy includes: executing locally on the power terminal and executing on the offloading end.

[0028] In a third aspect, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for task offloading for energy saving in a heterogeneous converged edge network for the power Internet of Things as described in any one of the first aspects above is implemented.

[0029] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a task offloading method for energy saving in a heterogeneous converged edge network for the power Internet of Things as described in any one of the first aspects above.

[0030] In a fifth aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a task offloading method for energy saving in a heterogeneous fusion edge network of the power Internet of Things as described in any one of the first aspects above.

[0031] The present invention provides a task offloading method, device, equipment and storage medium for energy saving in a heterogeneous fusion edge network of power Internet of Things. A task offloading model of the heterogeneous fusion network is established based on the delay and energy consumption of each task of the power terminal executed locally and at the offloading end. The heterogeneous fusion network includes at least one optical fiber and at least one wireless network server connected to the optical fiber communication, thereby establishing a heterogeneous fusion edge network architecture that is a hybrid of optical fiber and wireless, making the connection method of the power terminal more flexible. In addition, the task offloading strategy of the power terminal is obtained by processing the task offloading model, which effectively balances the delay and energy consumption during task offloading while ensuring the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 It is a flow chart of a task offloading method for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention;

[0034] Figure 2 It is a schematic diagram of the architecture of the heterogeneous fusion edge network of the power Internet of Things provided by the present invention;

[0035] Figure 3 is a task unloading flow chart of the power terminal provided by the present invention;

[0036] Figure 4 It is a structural schematic diagram of a task offloading device for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention;

[0037] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Figure 1 : is a flow chart of a task offloading method for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention, such as Figure 1As shown, the embodiment of the present application provides a task offloading method for energy saving in a heterogeneous converged edge network of the power Internet of Things, and the execution subject can be a terminal, such as a general intelligent terminal, a data transparent transmission terminal, a power Internet of Things intelligent terminal, etc., or a mobile edge computing server. The method includes:

[0040] Step 101, obtaining the pending task information of the power terminal.

[0041] Specifically, in an embodiment of the present invention, the pending task information of the power terminal is obtained in real time, wherein the pending task information includes the data size of the pending task and the number of CPU cycles of the power terminal required to execute the pending task. It should be noted that when the present invention obtains the pending information of the power terminal, it can also obtain the network status information between the power terminal and the MEC server, that is, obtain the network connection status between the power terminal and the MEC server, as well as the CPU frequency of the MEC server, the network connection status between the MEC server and the remote cloud server, etc. The power terminal can be the above-mentioned power data transparent transmission terminal, the power Internet of Things smart terminal, etc.

[0042] The task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things provided by the present invention takes into account the network status of the power terminal and the MEC server when performing edge computing offloading allocation. Therefore, it can calculate whether the computing task is to be processed locally at the power terminal or offloaded to the MEC server for processing based on the pending task information of the power terminal at the current moment. In this way, when the power terminal and the edge server collaborate to offload computing tasks, the offloading strategy can be adjusted according to different network status, making the task offloading process more flexible.

[0043] Step 102: Establish a task offloading model of a heterogeneous converged network according to the delay and energy consumption of each task of the power terminal executed locally and at the offloading end.

[0044] The heterogeneous fusion network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server.

[0045] Figure 2 Schematic diagram of the architecture of the heterogeneous fusion edge network of the power Internet of Things provided by the present invention, such as Figure 2As shown, in the present invention, the optical fiber backhaul is composed of IEEE 802.3ah 1Gbps or IEEE 802.3av10Gbps Ethernet Passive Optical Network (EPON) of time division multiplexing (TDM) or wavelength division multiplexing (WDM), and the central optical line terminal (OLT) and the remote optical network unit (ONU) are connected by optical fiber communication, and the optical fiber length can range from 2 km, 5 km, 20 km, etc.

[0046] EPON can include multiple levels, each of which is separated by a wavelength broadcast separator and combiner, or a wavelength multiplexer and demultiplexer. ONU has four different subsets, which respectively produce collocated base station type optical network units (ONU-BS) or access point type optical network units (ONU-AP); ONU can provide wired connection services for fixed users, or connect to a wireless network server to provide wireless network access services for power terminals. The wireless network server includes Zigbee network server (Zigbee-BS), LoRa network server (Lora-BS), IEEE 802.11n / ac / s WLAN mesh entry point (AP), etc. (i.e. WLAN network server), where the WLAN mesh front end consists of ONU-AP, relay mesh point (Mesh Point, MP) and access point (Mesh Access Point, MAP). The power terminal connected to the LoRa network server or Zigbee network server directly communicates with the dedicated AP, thereby establishing a fiber-wireless heterogeneous fusion edge network.

[0047] Furthermore, the power terminal device (i.e., power terminal) in the edge network can support all three protocols such as WiFi, LoRa, and Zigbee, or only support one or two of the three protocols of WiFi, LoRa, and Zigbee. For power terminal devices that support multiple protocols, considering the mobility of the device, the present invention assumes that as long as the power terminal device is located in the coverage area of ​​LoRa or Zigbee-BS, the power terminal (Mobile Unit, MU) will retain the connection with WiFi, otherwise, MU will experience vertical switching from Zigbee or LoRa to WiFi network, that is, when the connection is unavailable or the LoRa connection and Zigbee connection cannot meet the required network quality of service (Quality of Service, QoS) requirements, a vertical switching of the network will occur. For ease of representation, the power terminal devices, whether mobile or not, are represented by MU in the following text.

[0048] The embodiment of the present invention establishes a fiber-wireless heterogeneous fusion edge network to ensure that no matter the power terminal is connected to the network by wire or wirelessly, it can always obtain the optimal task offloading strategy based on the task offloading model provided by the present invention when offloading computing tasks. The computing resources of the local power terminal and the MEC server are utilized to enable the power terminal and the edge server to collaboratively offload computing tasks, thereby reducing equipment energy consumption while ensuring low latency.

[0049] In some embodiments, the unloading end includes at least one edge server; the edge server is communicatively connected to the power terminal, and the edge server is used to receive and calculate the unloading task of the power terminal.

[0050] The present invention configures at least one MEC server for the OLT. These MEC servers are configured at the fiber-wireless network interface. The power terminal is connected to the MEC server via a wired network or a wireless network. The power terminal can offload all or part of its incoming computing tasks to a nearby MEC server, which will perform the calculations.

[0051] The embodiment of the present invention uses several MEC servers as unloading terminals, and can reduce energy consumption as much as possible while meeting the effectiveness of user latency requirements by adjusting task offloading decisions and task scheduling order, thereby improving the overall network performance and task offloading efficiency.

[0052] In some embodiments, the unloading end also includes at least one cloud server; the cloud server is communicatively connected to each of the edge servers, and the cloud server is used to provide centralized cloud computing center services, receive and calculate tasks unloaded by the edge servers.

[0053] In the present invention, in addition to the edge server, the unloading end also includes at least one cloud server. Each cloud server is communicatively connected to each MEC server. The edge network can offload the pending tasks of any power terminal to the cloud server via a MEC server when necessary, and the cloud server provides computing services. Each cloud server can serve a single task at a time.

[0054] The embodiment of the present invention uses several cloud servers as unloading terminals, and can reduce energy consumption as much as possible while meeting the effectiveness of user delay requirements by adjusting task unloading decisions and task scheduling orders, thereby improving the overall network performance and task unloading efficiency.

[0055] In some embodiments, the task offloading model of the heterogeneous fusion network is established according to the delay and energy consumption of each task of the power terminal executed locally and at the offloading end, including:

[0056] According to the computing energy consumption and transmission energy consumption of the power terminal for each task, the energy consumption of the power terminal when performing edge computing offloading is obtained;

[0057] According to the response delay and transmission delay of the power terminal for each task, the delay of the power terminal when performing edge computing offloading is obtained;

[0058] The time delay of the power terminal when performing edge computing offloading is taken as a constraint condition, and the minimization of the energy consumption of the power terminal is taken as the optimization goal, and a task offloading model of the heterogeneous fusion network is established.

[0059] Figure 3 is a task unloading flow chart of the power terminal provided by the present invention, such as Figure 3 As shown, in the present invention, each power terminal includes a central processing unit (CPU) module and a wireless interface module (including WiFi, Zigbee, and LoRa wireless interfaces), the CPU module is used to execute tasks that are retained in the unloading strategy for local processing in the power terminal, and the wireless network interface module is responsible for unloading tasks to nearby edge servers. The present invention models the task scheduler in each MU through a priority queue, and the scheduler decides whether to unload the task to the edge server or retain it locally to execute the task in the CPU of the power terminal.

[0060] The present invention first models the priority queue task scheduler in each power terminal. The tasks to be processed generated by MU are computationally intensive and independent of each other. Assuming that MU has an average task packet rate λ B (in packets / second) to generate background Poisson traffic, with tasks at rate Arrival at MU iThe task scheduler of MU, i represents the number of MU. i The task scheduler at i The value of β i is the probability that the incoming task is offloaded to the edge server. i The tasks generated by and Characterization, among which, Indicates the average size of the calculated input data. Indicates the average number of CPU cycles required to calculate the input data, and the calculation task is set as an atomic task.

[0061] Furthermore, the present invention equips each edge server with a task scheduler based on a priority queue, which is used to decide whether to execute the pending tasks passed in by the MU or to further offload the tasks to the cloud server. The tasks arriving at the edge server j are scheduled with probability α j Further offload to the cloud server, or with probability (1-α j ) is executed locally on the edge server.

[0062] In some embodiments, the task offloading method for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention further includes:

[0063] Obtaining an average response time of the power terminal executing each task locally and an average response time of the power terminal executing each task at the unloading end;

[0064] Obtaining the optical fiber communication delay and the wireless network communication delay when the power terminal offloads each task to the offloading end for execution;

[0065] Determining a response delay of the power terminal based on an average response time of each task executed locally by the power terminal and an average response time of each task executed at the unloading end;

[0066] The transmission delay of the power terminal is determined based on the optical fiber communication delay and the wireless network communication delay.

[0067] The delay of the power terminal for each task when performing edge computing offloading is obtained based on the response delay and transmission delay. The response delay is calculated by the local response time of the power terminal, the edge server response time and the cloud server response time. The transmission delay is the communication delay of the optical fiber-wireless network.

[0068] 1. Calculate the response delay in the following way:

[0069] 1.1. Local response time of power terminals

[0070] For a given MU participating in task offloading i, assuming that the task arrival time follows an independent and identically distributed exponential distribution, given the task unloading probability β i , the tasks arriving at the CPU queue for local computation follow a Poisson process, with an arrival rate of The offload tasks arriving at the wireless interface queue follow the rate Poisson process. To execute the arrival MU i The average number of CPU cycles required for the task, then MU i The average local task execution time at as follows:

[0071]

[0072] Among them, f i It is MU i The clock frequency (in CPU cycles per second). Assuming that the number of CPU cycles required for each task follows an exponential distribution, we can calculate MU i The local CPU is modeled as an M / M / 1 queue with an average task arrival rate of The average task execution time is MU i The average latency of local task execution (including queuing and service time) on the CPU Given by:

[0073]

[0074] in, Indicates that the task being executed has left the MU i The speed of the CPU.

[0075] 1.2 MEC server response time

[0076] make represents the set of MUs served by edge server j, is the average arrival rate of tasks, and represents the number of CPU cycles required to offload tasks from fixed users (i.e., power terminals connected via wired connections), whose power terminals can be directly connected to edge server j. Given the offloading probability β i , The average arrival rate of the task scheduler at edge server j The calculation is as follows:

[0077]

[0078] set up represents the average task execution time on edge server j. First calculate the average CPU cycles required to execute tasks on edge server j As shown below:

[0079]

[0080] Then use To calculate

[0081]

[0082] Among them, f j e is the computing power of edge server j (in CPU cycles per second).

[0083] Model edge server j as an M / M / 1 queue with an average arrival rate Average service time Then the average response time of edge server j task execution is The calculation is as follows:

[0084]

[0085] in, Substituting equation (3) into equation (6), we can obtain Final calculation formula:

[0086]

[0087] 1.3. Cloud server response time

[0088] set up represents the set of edge servers connected to the cloud server. The average arrival rate of tasks to the cloud server is λ c It is obtained by the following formula:

[0089]

[0090] make and denote the arrival rate and number of CPU cycles required to perform background tasks on the cloud server (some fixed users may not be connected to any nearby edge servers, so their tasks are directly offloaded to the cloud server via the backhaul EPON). Let τ c represents the average task execution time on the cloud server. In order to estimate τ c , first calculate the average CPU cycles required to execute the task on the cloud server Given by:

[0091]

[0092] Then use To estimate τ c :

[0093]

[0094] Among them, f c is the computing power of each of the s similar servers deployed on the cloud server.

[0095] Therefore, we can model the cloud server as having an average arrival rate λ c (given by the above formula (8)) and the average service time τ c The average delay Δ experienced by any task in the remote cloud is given by the M / M / s queue (given by the above formula (10)). c Estimated by the Erlang-C formula:

[0096]

[0097] Where load a is equal to λ c ·τ c , Given by:

[0098]

[0099] It represents the probability that at a certain moment, a task arrives at a cloud server but all s servers are busy.

[0100] 2. Calculate the communication delay by:

[0101] 2.1 WiFi forward and backhaul latency

[0102] As mentioned earlier, the offloaded tasks are The rate at which MU i The wireless interface. m represents the maximum payload size of a single data packet, then the number of packets per task is equal to Then, the arrival of the packet at MU can be estimated i Wireless interface rate As shown below:

[0103]

[0104] Among them, λ B Indicates background traffic.

[0105] Calculate MU first i Average packet delay in uplink MU iAssociated with ONU-AP via WiFi. For a given set of network model parameters, we can estimate for:

[0106]

[0107] Among them, Δ i is the average channel access delay, It is given by formula (13).

[0108] The above formula (14) takes into account both queuing and channel access (service) delays. i The average channel access delay Δ i The calculation method is as follows:

[0109]

[0110] Among them, the average channel access delay Δ i It is composed of the time delay caused by carrier sensing, exponential backoff, collision and error attempts, successful transmission and confirmation. e,i is the probability of erroneous transmission, p c,i is the probability of collision, W0 is the initial contention window size, E s is the expected time slot duration, T c,i , T e,i , T s,i MU i The average duration of collisions, errors, and successful transmissions.

[0111] 2.2 LoRa forward and return delay

[0112] Unlike WiFi networks, the delay model of LoRa communication cannot be represented in an intuitive way due to the standard duty cycle and maximum payload size. Because LoRa provides relatively constant throughput, independent of packet size or any other characteristics, when sending large files, the files need to be packaged into smaller packets, and the delay in sending each packet depends on the size of these packets. Therefore, when using a data rate with a maximum payload size of S and a file size of s bits (bit, B), the transmission delay is:

[0113]

[0114] in, is the number of packets whose size is equal to the maximum payload, H = 9B is the size of the header appended to each packet, T LR is the link throughput, s mod S is the number of remaining bytes that are not filled with a complete packet, and γ is a fixed time constant.

[0115] Due to the duty cycle defined by the LoRa standard, when file transfer requires multiple transmissions, the duration that the terminal device switches to the Idle state is proportional to the duty cycle D. When M packets less than or equal to S are sent, the total idle time is:

[0116]

[0117] Among them, M-1 is the number of times the device enters the idle state. The length of each idle state.

[0118] Therefore, by combining equations (16) and (17), the total delay required to send a file of generic size s is:

[0119]

[0120] The above formula (18) shows that the forward return delay of sending a file is the sum of the time required to send as many packets of the maximum payload size as possible, the time the device is idle after sending each packet, and the time required to send the last packet less than or equal to the maximum payload size.

[0121] 2.3 Zigbee forward and return delay

[0122] The present invention estimates the forward return delay of the Zigbee protocol in beacon-enable mode according to the content of the IEEE802.15.4 protocol. Assuming that the network structure is a star topology, a total of N MUs work simultaneously under the coordination of a personal area network (PAN). The CFP period of the Zigbee superframe is controlled by the PAN, and a total of N MUs are allocated. GTS GTS time slots. The probability P{Z s}for:

[0123]

[0124] Among them, P{Z j} CAP It represents the probability that the node MU completes data packet transmission at time slot j in the CAP period of the superframe.

[0125] NodeMU i The probability p of successful transmission in a superframe s (N) is:

[0126]

[0127] in, Indicates that the node is in NN GTSThe probability of completing data packet transmission in the CAP period when multiple nodes compete for access to the CAP period at the same time.

[0128]

[0129] Among them, T CAP Indicates the length of the CAP period, d bo Indicates the length of a back-off period, which is usually 320μs.

[0130] The average delay Δ of PAN receiving data packets i It is expressed as:

[0131]

[0132] Among them, d bo Indicates the backoff duration of the CSMA / CA mechanism in the CAP period, T A Indicates the superframe duration.

[0133] During the superframe CAP period, a node accessing the channel can be in one of the following four states: fallback, channel sensing, transmission, and idle. If the channel is idle for two consecutive time slots after sensing the channel, the node immediately transmits and then enters the idle state until the end of the superframe. Therefore, this paper models the fallback state and channel sensing state as a three-dimensional process: in, Indicates time slot, Indicates that the node receives a beacon frame; and Represents the node backoff counter and The backoff stage of the moment; Calculate the number of time slots a node must wait before sensing the channel, and Calculate the maximum duration of the fallback phase; Indicated in The number of cycles that the node still needs to back off at this moment. If the node senses that the channel is busy, CW = 2. Definition Indicates that the node is in the time slot The probability of sensing the channel for the first time (CW=2) and being in the i-th backoff phase. Define f j is the joint probability that the node perceives an idle channel in both time slots j and j-1. Then the above equation (19) can be expressed as:

[0134]

[0135] Where D represents the number of time slots occupied by sending a data packet.

[0136] Therefore, it can be estimated for:

[0137]

[0138] in, Same as formula (13). Combined with formulas (20), (22), and (23), the average delay Δ for PAN to receive data packets is i for:

[0139]

[0140] 2.4 Total forward and return delay

[0141] Average task transmission delay in uplink The calculation is as follows:

[0142]

[0143] in, The above formula (26) calculates the average delay based on the average time of MU accessing different networks. P represents the impact of terminal distribution and mobility on the average transmission delay.

[0144] 2.5 PON Backhaul Delay

[0145] set up is the average packet delay of the upstream EPON backhaul. Then the average task transmission delay in the backhaul is Θ POn equal in, for:

[0146]

[0147] Among them, ρ u is the upstream flow intensity, τ PON is the propagation delay between ONU and OLT, c PON is the EPON data rate, Φ() is the Pollaczek-Khintchine formula, B u Calculated by the following formula:

[0148]

[0149] Where, O is the number of ONUs, For slave ONU i To ONU q The flow rate is , and Λ is the number of wavelengths in the wavelength division multiplexing PON.

[0150] After accounting for the communication and computational delay components, MU i The total average response time i It is expressed as follows:

[0151]

[0152] Where Δ and θ represent the delay of computation and communication respectively. It should be noted that the delay term caused by communication and θ PON Depends on the unloading probability β i and α j Specifically, if the MU decides to offload most of the incoming tasks to the edge server, the average task transmission delay in the uplink and the waiting time in the edge server may increase significantly. On the other hand, if the edge server further offloads the incoming tasks from the MU i If most of the tasks of fixed users are offloaded to the cloud server, the backhaul upstream delay and the waiting delay on the cloud server may increase. Therefore, in order for MU to benefit from the powerful computing power of edge servers and cloud servers and get lower response time, both the scheduler of the terminal device and the scheduler of the edge server must optimize and adjust their offloading probability.

[0153] In some embodiments, the task offloading method for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention further includes:

[0154] Obtaining the energy consumption of the power terminal in each CPU cycle;

[0155] Based on the number of CPU cycles required to execute the task to be processed and the energy consumption of the power terminal in each CPU cycle, the computing energy consumption of the power terminal is obtained.

[0156] In some embodiments, the energy consumption of the power terminal for each task when performing edge computing offloading is obtained based on the computing energy consumption and the transmission energy consumption. The present invention assumes that the underlying network and computing components (BS, AP, ONU and MEC server) of the considered architecture are always powered by sufficiently available low-cost energy, so the present invention focuses on the energy consumption optimization of MU.

[0157] Specifically, the present invention converts MU i The CPU power consumption is modeled as κ·f i 3 , where κ is the effective switch capacitance related to the chip architecture. Therefore, the energy consumption per CPU cycle is equal to κ·f i 2 , f represents the number of CPU cycles per second. i The average energy consumption of local execution tasks for:

[0158]

[0159] At MU i The incoming tasks are either iExecuted locally, either with probability β i Offload to non-local execution. Offload an incoming task to the MU i Energy consumption It is expressed as follows:

[0160]

[0161] in, and MU i Average energy consumption of offloading inbound tasks in the upstream direction and receiving the output of inbound tasks in the downstream direction.

[0162] In uplink The calculation method is as follows:

[0163]

[0164] in, It represents the static power consumption when the radio frequency (RF) transmission circuit is turned on. Measuring transmitter power consumption versus radiated power In the downlink, MU i of It is expressed as follows:

[0165]

[0166] in, represents the additional power consumption of opening the receiving circuit, (measured in W / Mbps) is the power consumption per Mbps in the downstream direction, is the downstream rate, expressed as follows:

[0167]

[0168] Among them, r WiFi is the average transmission rate of the WiFi access point.

[0169] In addition, note that the transmission time of the task output in the downstream direction Depend on It is estimated that, is the task output size. different, Does not depend on the uninstall probability β i MU i The average energy consumption E i (used to perform tasks locally or transmit their input data to edge servers) is estimated to be:

[0170]

[0171] Final MU i The average energy consumption E i The calculation formula is:

[0172]

[0173] In the above-mentioned embodiment of the present invention, based on the optical fiber-wireless (EPON+WiFi+Lora+Zigbee) heterogeneous network architecture of the double-layered MEC server, the energy-saving computing offloading scenario of the heterogeneous fusion edge network for the power Internet of Things is modeled, so that the power terminal and the edge server can collaboratively offload the computing tasks, greatly improving the computing efficiency of task offloading.

[0174] Step 103: input the pending task information of the power terminal into the task offloading model to obtain the offloading strategy of the pending task.

[0175] The unloading strategy includes: executing locally at the power terminal and executing at the unloading end.

[0176] The present invention proposes a dual-criteria optimization framework that enables MU to use local information to minimize response time and energy consumption by dynamically adjusting its own offloading probability and autonomously adjusting the CPU clock frequency. The present invention assumes that the CPU clock frequency f of the labeled MU is limited to [f min ,f max ], f min Indicates the preset MU minimum CPU clock frequency, f max Represents the preset maximum CPU clock frequency of MU. The dual-criteria energy delay self-organization problem is expressed as:

[0177]

[0178] The constraints are:

[0179]

[0180] Where γ and E are given by equation (29) and equation (36).

[0181] In order to evaluate the task offloading model and characterize the trade-off between the two objectives (delay and energy consumption) of the above formula (37), the present invention applies Pareto front analysis. To obtain the Pareto front solution, the original problem is Transform it into an optimization problem, and change one of the objectives (delay ) is transformed into constraints and solved iteratively. The problem is transformed into a single-objective nonlinear optimization problem as follows:

[0183] The constraints are:

[0184]

[0185] Among them, ε thr Indicates the given maximum delay cost.

[0186] Since Υ(f,β) is a continuous quadratic differentiable convex function of f and β, the constraints are all affine functions of f and β, and the constraint Υ(f,β)≤ε thr is a convex function of f and β, so the problem is a convex optimization problem. Therefore, the Lagrangian method can be used to solve The specific steps are as follows:

[0187] First, define the constraints of the Lagrangian function as:

[0188] g1(f,β)=ff min ≥0,

[0189] g2(f,β)=ff max ≤0,

[0190] g3(f,β)=β≥0

[0191] g4(f,β)=β≤1

[0192]

[0193] Among them, g1(f,β), g2(f,β), g3(f,β), g4(f,β), and g5(f,β) are all constraints of the Lagrangian function. g5(f,β) is determined by the problem in formula (38): The constraint condition Υ(f,β)≤ε thr Together with formula (1) and formula (2), C1, C2, and C3 represent the remaining parameters that are independent of the parameters to be solved f, β.

[0194] Secondly, construct the Lagrangian function: L(f,β,λ1,λ2,λ3,λ4,λ5)=E(f,β)+λ1(g1)+λ2(g2)+λ3(g3)+λ4(g4)+λ5(g5).

[0195] Finally, find the optimal solution of the Lagrangian function:

[0196] Calculate the partial derivatives of L with respect to f, β, λ1, λ2, λ3, λ4, λ5 respectively, and set them equal to 0 to ensure that the stationary point found satisfies the constraints of the Lagrangian function, and determine the minimum point (f) according to the E(f, β) value among all the stationary points that satisfy the constraints. * ,β * ).

[0197] According to the analysis of the above embodiments of the present invention, better QoE can only be achieved when both the power terminal equipment and the edge server complete the optimal setting of the unloading probability. Any deviation from this optimal setting may lead to performance degradation, that is, an increase in latency and energy consumption. Due to user mobility and network traffic fluctuations, such an optimal setting may not be easy to obtain and maintain. Therefore, the present invention adopts CPU frequency modulation technology, so that MU can rely on local computing resources when necessary, and balance the latency and energy consumption of task unloading by adjusting only local parameters. On this basis, the present invention fully considers the energy-saving needs of MU, that is, while ensuring that the user QoE is not reduced, the terminal energy consumption is reduced as much as possible, so that the task unloading process of the edge network is more energy-efficient and efficient.

[0198] The following is a description of the task offloading device for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention. The task offloading device for energy saving in a heterogeneous fusion edge network of the power Internet of Things described below and the task offloading method for energy saving in a heterogeneous fusion edge network of the power Internet of Things described above can be referenced to each other.

[0199] Figure 4 is a structural schematic diagram of a task offloading device for energy saving in a heterogeneous fusion edge network of the power Internet of Things provided by the present invention, such as Figure 4 As shown, the present invention provides a task offloading device for energy saving in a heterogeneous fusion edge network of power Internet of Things, including an acquisition module 401, a modeling module 402 and a processing module 403, wherein the acquisition module 401 is used to obtain the pending task information of the power terminal; the modeling module 402 is used to establish a task offloading model of the heterogeneous fusion network according to the delay and energy consumption of each task of the power terminal executed locally and at the offloading end; wherein the heterogeneous fusion network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server; the processing module 403 is used to input the pending task information of the power terminal into the task offloading model to obtain the offloading strategy of the pending task; wherein the offloading strategy includes: executing locally at the power terminal and executing at the offloading end.

[0200] Specifically, the task offloading device for energy saving in a heterogeneous converged edge network of the power Internet of Things provided in an embodiment of the present invention can implement all the method steps implemented in the task offloading method embodiment for energy saving in a heterogeneous converged edge network of the power Internet of Things, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those of the method embodiment will not be described in detail here.

[0201] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a task offloading method for energy saving of a heterogeneous fusion edge network of the power Internet of Things, the method comprising: obtaining information of pending tasks of the power terminal; establishing a task offloading model of the heterogeneous fusion network according to the delay and energy consumption of each task of the power terminal executed locally and at the offloading end; wherein the heterogeneous fusion network comprises at least one optical fiber and at least one wireless network server connected to the optical fiber, and the power terminal is connected to the wireless network server; inputting the pending task information of the power terminal into the task offloading model to obtain an offloading strategy for the pending task; wherein the offloading strategy comprises: executing locally at the power terminal and executing at the offloading end.

[0202] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0203] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things provided by the above methods, and the method includes: obtaining the pending task information of the power terminal; establishing a task offloading model of the heterogeneous fusion network according to the delay and energy consumption of each task of the power terminal executed locally and at the unloading end; wherein the heterogeneous fusion network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server; the pending task information of the power terminal is input into the task offloading model to obtain the unloading strategy of the pending task; wherein the unloading strategy includes: executing locally on the power terminal and executing at the unloading end.

[0204] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things provided by the above-mentioned methods, the method comprising: obtaining the pending task information of the power terminal; establishing a task offloading model of the heterogeneous fusion network according to the delay and energy consumption of each task of the power terminal executed locally and at the unloading end; wherein the heterogeneous fusion network comprises at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server; inputting the pending task information of the power terminal into the task offloading model to obtain the unloading strategy of the pending task; wherein the unloading strategy comprises: executing locally on the power terminal and executing at the unloading end.

[0205] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0206] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0207] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A task offloading method for energy saving in a heterogeneous fusion edge network of power Internet of Things, characterized in that: include: Obtaining pending task information of the power terminal; According to the delay and energy consumption of each task of the power terminal executed locally and at the unloading end, a task unloading model of a heterogeneous fusion network is established; wherein the heterogeneous fusion network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server; The pending task information of the power terminal is input into the task offloading model to obtain the offloading strategy of the pending task; wherein the offloading strategy includes: executing locally at the power terminal and executing at the offloading end.

2. The task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things according to claim 1 is characterized in that: The task offloading model of the heterogeneous fusion network is established according to the delay and energy consumption of each task of the power terminal executed locally and at the offloading end, including: According to the computing energy consumption and transmission energy consumption of the power terminal for each task, the energy consumption of the power terminal when performing edge computing offloading is obtained; According to the response delay and transmission delay of the power terminal for each task, the delay of the power terminal when performing edge computing offloading is obtained; The time delay of the power terminal when performing edge computing offloading is taken as a constraint condition, and the minimization of the energy consumption of the power terminal is taken as the optimization goal, and a task offloading model of the heterogeneous fusion network is established.

3. The task offloading method for energy saving in the heterogeneous fusion edge network of power Internet of Things according to claim 2 is characterized in that: The pending task information includes: the number of CPU cycles required to execute the pending task; the method further includes: Obtaining the energy consumption of the power terminal in each CPU cycle; Based on the number of CPU cycles required to execute the task to be processed and the energy consumption of the power terminal in each CPU cycle, the computing energy consumption of the power terminal is obtained.

4. The task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things according to claim 2 is characterized in that: The method further comprises: Obtaining an average response time of the power terminal executing each task locally and an average response time of the power terminal executing each task at the unloading end; Obtaining the optical fiber communication delay and the wireless network communication delay when the power terminal offloads each task to the offloading end for execution; Determining a response delay of the power terminal based on an average response time of each task executed locally by the power terminal and an average response time of each task executed at the unloading end; The transmission delay of the power terminal is determined based on the optical fiber communication delay and the wireless network communication delay.

5. The task offloading method for energy saving in a heterogeneous fusion edge network of power Internet of Things according to any one of claims 1 to 4, characterized in that: The unloading end includes at least one edge server; the edge server is communicatively connected with the power terminal, and the edge server is used to receive and calculate the unloading task of the power terminal.

6. The task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things according to claim 5 is characterized in that: The unloading end also includes at least one cloud server; the cloud server is communicatively connected with each of the edge servers, and the cloud server is used to provide centralized cloud computing center services, receive and calculate tasks unloaded by the edge servers.

7. The task offloading method for energy saving in a heterogeneous fusion edge network of power Internet of Things according to any one of claims 1 to 4, characterized in that: The wireless network server includes at least one of a Zigbee network server, a Lora network server, and a WLAN network server.

8. A task offloading device for energy saving in a heterogeneous fusion edge network of power Internet of Things, characterized in that: include: An acquisition module, used to acquire the pending task information of the power terminal; A modeling module, used for establishing a task offloading model of a heterogeneous converged network according to the delay and energy consumption of each task of the power terminal executed locally and at an offloading end; wherein the heterogeneous converged network includes at least one optical fiber and at least one wireless network server communicatively connected to the optical fiber, and the power terminal is communicatively connected to the wireless network server; The processing module is used to input the pending task information of the power terminal into the task offloading model to obtain the offloading strategy of the pending task; wherein the offloading strategy includes: executing locally on the power terminal and executing on the offloading end.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the task offloading method for energy saving in the heterogeneous fusion edge network of the power Internet of Things as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the task offloading method for energy saving in a heterogeneous fusion edge network for power Internet of Things is implemented as described in any one of claims 1 to 7.