CN116528365A - Edge computing method for reliability perception - Google Patents

Edge computing method for reliability perception Download PDF

Info

Publication number
CN116528365A
CN116528365A CN202310563822.XA CN202310563822A CN116528365A CN 116528365 A CN116528365 A CN 116528365A CN 202310563822 A CN202310563822 A CN 202310563822A CN 116528365 A CN116528365 A CN 116528365A
Authority
CN
China
Prior art keywords
representing
task
reliability
calculation
whale
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310563822.XA
Other languages
Chinese (zh)
Other versions
CN116528365B (en
Inventor
李职杜
张靖珏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wanzhida Technology Transfer Center Co ltd
Original Assignee
Space Communication Research Institute Of Chongqing University Of Posts And Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Space Communication Research Institute Of Chongqing University Of Posts And Telecommunications filed Critical Space Communication Research Institute Of Chongqing University Of Posts And Telecommunications
Priority to CN202310563822.XA priority Critical patent/CN116528365B/en
Publication of CN116528365A publication Critical patent/CN116528365A/en
Application granted granted Critical
Publication of CN116528365B publication Critical patent/CN116528365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0473Wireless resource allocation based on the type of the allocated resource the resource being transmission power
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1263Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • H04W72/25Control channels or signalling for resource management between terminals via a wireless link, e.g. sidelink

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention belongs to the technical fields of edge calculation and industrial Internet, and particularly relates to a reliability-aware edge calculation method. According to the invention, firstly, the system performance is reduced by considering the temperature rise brought in the calculation process of the chip of the equipment, meanwhile, the communication capability is influenced by the channel condition due to fading, and the calculation reliability and the communication reliability are modeled by the fact that the temperature generated by the chip calculation does not exceed the tolerance temperature and the signal to noise ratio is not smaller than the minimum signal to noise ratio threshold. Then, by constructing a local calculation model, a transmission model, an edge calculation model, and a reliability model, an energy consumption minimization problem is designed. And finally, providing an energy efficiency alternate iteration task unloading method for reliability perception by adopting an improved hybrid whale optimization algorithm and an alternate iteration method. The method provided by the invention can reduce the energy consumption of the terminal equipment under the industrial Internet reliability scene, and obviously improve the effective utilization rate of resources.

Description

Edge computing method for reliability perception
Technical Field
The invention relates to edge computing and industrial internet technology, in particular to a reliability-aware edge computing method.
Background
At present, the rapid development of the internet makes intelligent equipment become an indispensable part of life of people, and the internet era puts higher demands on transmission bandwidth, time delay, energy consumption, application performance and reliability, various complex applications (such as intelligent monitoring, autonomous control, intelligent medical treatment and the like) become more popular, and are all computationally intensive and time delay sensitive tasks, and a large amount of bandwidth and processing resources are needed. Because of the very limited computing and storage capabilities of devices, some complex internet of things applications (e.g., face recognition, augmented reality, autopilot) cannot be handled efficiently locally. Offloading the computing task to the edge server process is a large solution.
The existing scheme usually focuses on the system performance of the network such as time delay, energy consumption and the like in resource scheduling, and energy-saving design is carried out under the constraint of time delay. Because of the huge amount of industrial field data, wireless resources are scarce, channels are highly time-varying and offloading strategies are complex, meanwhile, the coupling of communication and calculation processes is included in the task offloading process, and the misdistribution of communication and calculation resources can lead to low resource utilization and differentiated task completion time delay. Therefore, it is a challenge in edge computing to consider the reliability of tasks in computing and communication processes, so as to meet the overall reliability of tasks in industrial internet scenarios, how to reasonably allocate resources and design efficient computing offloading policies, and thus, a reliability-aware edge computing offloading and resource allocation method is needed to reduce the energy consumption of computationally intensive and time-delay sensitive tasks.
Disclosure of Invention
In view of the above, the present invention aims to provide a reliability-aware edge computing method, which aims at the problems of large data volume of industrial equipment, low computing energy efficiency, low computing resource utilization rate and differentiated task completion time delay in an industrial internet edge computing scene, and reduces the energy consumption caused by a large amount of tasks by optimizing the total energy consumption generated by computing the tasks in consideration of task computing and communication reliability.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a reliability-aware edge computing unloading and resource allocation method comprises the steps of initializing initial solutions of transmitting power, computing resources and communication resources, and then solving three sub-problems by adopting convex optimization and an improved hybrid whale optimization algorithm provided by the invention. For the unloading ratio distribution process, firstly fixing the transmitting power and calculating the resource distribution, and then solving the unloading ratio through the Lagrangian theory and convex optimization; for the communication resource allocation process, firstly, fixing the unloading ratio and calculating the resource allocation, and then solving through the improved hybrid whale optimization algorithm proposed by the invention to obtain the transmitting power; for the calculation resource allocation process, firstly, the unloading ratio and the transmitting power are fixed, then the calculation resource allocation is obtained by solving through the algorithm provided by the invention, and finally, whether the optimal solution is reached is determined by judging the energy consumption. The method specifically comprises the following steps:
s1: establishing a reliability edge computing system frame according to an edge computing network scene comprising a plurality of devices, an Internet of things repeater and an edge server;
s2: under the system architecture in the step S1, a communication model is built according to the transmission delay and the transmission energy consumption during task unloading; establishing a calculation model according to the calculation time delay and the calculation energy consumption;
s3: according to the temperature and the signal-to-noise ratio, a calculation model and a communication model are established as a calculation reliability model and a communication reliability model;
s4: according to the calculation reliability model and the communication reliability model, establishing an optimization problem with time delay and reliability as constraint conditions and with energy consumption of all equipment minimized as an optimization target;
s5: decomposing the optimization problem into an unloading ratio sub-problem, a power control sub-problem and a computing resource sub-problem, and adopting the steps S6 to S7 to carry out alternate iteration solution;
s6: solving the unloading ratio sub-problem through a convex optimization theory and a Lagrangian method to obtain an optimal unloading decision;
s7: and solving a power control sub-problem and a computing resource sub-problem by improving a hybrid whale optimization algorithm to obtain optimal transmitting power, a local computing resource allocation decision and an edge computing resource allocation decision.
The invention has the beneficial effects that:
the invention provides an energy-saving edge computing design scheme under the consideration of task communication reliability and computing reliability, and the energy consumption of equipment is reduced to the maximum extent by jointly optimizing unloading decision, communication and computing resource allocation under the condition of ensuring task tolerance time delay and task overall reliability requirements. And the chip processing capacity is considered, a model for measuring the task calculation reliability through temperature is provided, the original non-convex problem is converted into a plurality of sub-problems to be solved, and meanwhile, an alternate iterative algorithm and an improved hybrid whale optimization algorithm are provided.
The method aims at solving the problems that the resource utilization rate is low and the energy-saving performance is difficult to realize due to insufficient computing capacity of the terminal equipment in an industrial Internet edge computing scene. The invention can reduce the energy consumption of the terminal equipment while ensuring the overall reliability of the task.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objects and other advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the specification.
Drawings
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in the following preferred detail with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a reliability-aware-based edge computing method according to an embodiment of the invention;
FIG. 2 is a system architecture diagram of the present invention;
FIG. 3 is a flow chart of an improved hybrid whale optimization algorithm of the present invention;
fig. 4 is a flow chart of a power control and resource calculation method of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 is a flow chart of a reliability-based edge computing offloading and resource allocation method according to an embodiment of the present invention, as shown in FIG. 1, the method includes:
s1: establishing a reliability edge computing system frame according to an edge computing network scene comprising a plurality of devices, an Internet of things repeater and an edge server;
in the embodiment of the invention, as shown in fig. 2, in an industrial internet outdoor monitoring scene, a terminal device generates a large number of tasks with intensive computation and time delay sensitivity, an edge server provides computation resources for the tasks, and the computing capacity, battery energy and storage capacity deficiency of the terminal device are relieved through sharing idle resources; in the invention, considering the edge computing system in the outdoor environment monitoring scene of the industrial Internet, the scenes of a plurality of Internet of things devices and a single base station, the data volume generated by the industrial Internet of things devices is very huge, the chip overheat can be caused to affect the performance when the task is processed, and the communication capacity can be reduced due to the instability of the communication link, as in the industrial Internet of things device with a plurality of time delay sensitive and computation intensive tasks is assumed in fig. 1And an internet of things relay N, a single edge server M. Simultaneous computing tasks are expressed asWherein D represents the task input size, C represents the number of CPU cycles required to calculate each bit of task, T max Indicating that the task is tolerant of latency.
S2: under the system architecture in the step S1, a communication model is built according to the transmission delay and the transmission energy consumption during task unloading; establishing a calculation model according to the calculation time delay and the calculation energy consumption;
in the embodiment of the invention, when the local calculation cannot meet the performance requirement required by the task, part of the task is uploaded to the edge server by the local equipment for parallel processing, and the calculation unloading process is expressed as that the local equipment firstly unloads the task to the edge server for processing, and then the calculation result is returned to the terminal equipment after the calculation of the task is completed. Thus, according to shannon's formula, the task transfer rate can be expressed as:
wherein B represents the channel bandwidth; p (P) i Representing the transmit power of device i; sigma (sigma) 2 Representing noise power; g i =d i |h 1 | 2 Representing the power gain caused by channel fading; d, d i Representing the distance between the Internet of things equipment and the edge server; h is a 1 Representing rayleigh fading channel coefficients; alpha is the path loss index.
Therefore, based on the task transmission power, a communication model in which the transmission delay and the transmission energy consumption at the time of task unloading are expressed as:
wherein T is i tr Representing the transmission delay of the device i during task unloading; lambda (lambda) i Representing the task ratio size of device i, i.e., the task ratio size of device i offloaded to the edge server; d represents the task input size; r is R i Representing the task transmission rate of device i;representing the transmission energy consumption of the equipment i during task unloading; p (P) i tr Representing the transmit power of device i at task offloading;
likewise, for the computational model of the present invention:
(1) Local computing model
The number of CPU cycles for a device to perform a computational task depends on various factors, in order to trade off the task offload ratio to meet the reliability requirements of the task, assume f i l Representing the CPU cycle frequency at which device i is, and may be based on dynamic voltage and frequency scaling techniquesWithin the range of selection>Representing the maximum CPU cycle frequency of the device, the CPU frequency constraint of the device can therefore be expressed as:
considering that the chip calculation energy consumption mainly comprises application processing energy consumption, and meanwhile, the chip heating power is equal to the chip calculation energy consumption, the power consumption generated by an application processor of the Internet of things equipment is k (f i l ) 3 The time delay and energy consumption generated by processing the task locally are respectively expressed as:
where k represents the effective capacitance coefficient, which depends on the chip structure, λ i Representing the task ratio size of the device offloaded to the edge server.
(2) Edge calculation model
After receiving the offloaded tasks from the devices, the edge servers schedule their computing resources to process the tasks in parallel. Edge serverIs defined by the maximum CPU frequency ofRepresenting that the task computation latency offloaded to the ith device of the edge server is:
wherein f i m The CPU cycle frequency of the edge server m of the device i is the computing resource allocated to the offload task by the edge server m. In addition, since the calculation result is small, the delay and power consumption from the edge server to the device are also ignored. Thus, the total delay and total energy consumption of the device can be expressed as follows:
wherein T is i mec Representing task computation latency of device i offloaded to the edge server; t (T) i l Representing the time delay generated by the local processing of the device i; c represents the number of CPU cycles required for calculating each bit task; f (f) i l Representing the CPU cycle frequency of device i;representing the energy consumption generated by the local processing of the equipment i; k represents an effective capacitance coefficient; t (T) total Representing the total time delay of the device; u represents a device set; e (E) total Representing the total energy consumption of the device.
S3: according to the temperature and the signal-to-noise ratio, a calculation model and a communication model are established as a calculation reliability model and a communication reliability model;
(1) Computational reliability model
When the task is at the presentWhen processing on a local device, the irreversible computation on the chip logic increases the thermodynamic entropy of the environment, and the processing of a large amount of data on the local device can cause the CPU of the device to be severely loaded so as to emit heat. According to the heat transfer theory, the heat generated by processing data can lead the surface temperature of equipment to rise sharply, and considering that the temperature of an equipment chip can rise when a task performs local calculation, the system performance can be influenced when the temperature reaches a certain threshold value, and the task can fail to process. The power consumption generated by the application processor is denoted as P AP =k(f i l ) 3 And the variation in chip temperature is equal to the variation in device surface temperature, can be expressed as:
z(T chip -T env )=h air A(T sur -T env )
the surface temperature expression of the equipment can be obtained according to the one-dimensional unsteady state heat conduction process:
if the initial temperature of the chip isThe probability that the calculated reliability is defined as the chip temperature does not exceed the threshold temperature is:
wherein the parameter h air ,A,T chip ,T sur ,T safe ,T env ,c chip M, t represents the air convection heat transfer coefficient, the area of the radiating fin, the chip temperature, the equipment surface temperature, the safety temperature, the environment temperature, the initial temperature, the chip specific heat, the chip quality and the task calculation time. Thus, the task computation reliability is expressed as:
(2) Communication reliability model
Successful task transmission refers to an event that the received signal-to-noise ratio exceeds a certain threshold. Transmission reliability is defined as the signal-to-noise ratio exceeding a signal-to-noise ratio threshold, which is defined in this section as γ, when a task needs to be offloaded when it is computationally difficult for the task to meet the required performance at the local device, where the communication link may have insufficient channel capacity to offload the task due to fading th According to the definition above, the transmission reliability in the worst case of channel fading is Pr (gamma. Gtoreq. Gamma th ) Assuming that the channel gain obeys an exponential distribution with a parameter of γ, the probability density function is f (x) =e -x/γ /gamma. Thus, transmission reliability may be expressed as a probability that the signal-to-noise ratio is greater than or equal to a signal-to-noise ratio threshold, and its expression may be expressed as:
wherein P is reliable Representing a calculation reliability model, pr (·) representing a probability function; f (f) i l Representing the CPU cycle frequency of device i; parameter h air ,A,T chip ,T sur ,T safe ,T env ,c chip M and t are sequentially expressed as an air convection heat transfer coefficient, a radiating fin area, a chip temperature, an equipment surface temperature, a safety temperature, an environment temperature, an initial temperature, a chip specific heat, a chip quality and a task calculation time; z represents a control parameter, which is a constant; gamma represents the channel gain compliance parameter, gamma th Representing a signal to noise ratio threshold.
S4: according to the calculation reliability model and the communication reliability model, establishing an optimization problem with time delay and reliability as constraint conditions and with energy consumption of all equipment minimized as an optimization target;
after modeling the communication model, the calculation model and the reliability model, the section establishes an optimization problem by jointly considering task unloading decisions, local CPU frequency scheduling, transmitting power and edge calculation resources so as to minimize the energy consumption of all users and ensure the reliability requirement and the time requirement when the tasks are completed, and the established optimization problem is as follows:
C6:Pr[T sur (t)<T safe ]·Pr(γ≥γ th )≥ψ
C7:max{T i l ,T i tr +T i mec }≤T max
wherein P represents transmission power; λ represents the task off-load ratio; f represents CPU cycle frequency;representing a set of devices;representing the energy consumption generated by the local processing of the equipment i; />Representing the transmission energy consumption of the equipment i during task unloading; c1 denotes a user transmit power constraint, P i Representing the transmit power of device i; p (P) i max Representing the maximum transmit power of device i; c2 represents the local computing power constraints of the device, f i l CPU cycle frequency of device i, +.>The maximum CPU cycle frequency of device i; c3 and C4 represent edge server computing power constraints, f i m CPU cycle frequency of edge server representing device i,/-, is->Representing the maximum CPU cycle frequency of the edge server m; c5 denotes the user unloading ratio constraint, lambda i A task ratio size representing device i; c6 represents the overall reliability constraint of the task, pr (·) represents the probability function, T sur (T) represents the surface temperature of the device i, T safe Representing the safe temperature of device i, gamma represents the channel gain compliance parameter, gamma th Representing a signal-to-noise ratio threshold, ψ representing a reliability threshold; c7 represents task tolerance delay constraint, T i l Representing the delay generated by the local processing of the device i, T i tr Representing the transmission delay of the device i during task offloading, T i mec Representing task computation latency of device i offloaded to edge server, T max Representing the maximum delay.
S5: decomposing the optimization problem into an unloading ratio sub-problem, a power control sub-problem and a computing resource sub-problem, and adopting the steps S6 to S7 to carry out alternate iteration solution;
in the embodiment of the invention, in consideration of the fact that coupling variables exist in constraint and objective functions, and various variables and constraint conditions are non-convex, an original problem optimal solution is difficult to directly solve, and in order to decouple the variables, the original problem P is decomposed into three sub-problems: 1) Unloading the ratio sub-problem; 2) A power control sub-problem; 3) The computational resource allocation sub-problem converts the above expression into the original problem P1 as follows, and proposes an alternate iterative scheme of joint computation and communication resource allocation.
Wherein D represents the task input size; c represents the number of CPU cycles required for calculating each bit task; parameter h air ,A,T chip ,T env ,c chip M and t are sequentially expressed as an air convection heat transfer coefficient, a radiating fin area, a chip temperature, an ambient temperature, an initial temperature, a chip specific heat, a chip quality and task calculation time; z represents a control parameter and is a constant.
For the offload ratio sub-problem, given the transmission power P, the resource allocation f is calculated i l ,f i m The optimization objective can be expressed as:
s.t.C2.1:0≤λ u ≤1
the first order partial derivative function of the P2 problem is thatWhen solving for the unloading ratio, the unloading ratio can be obtained by comparing the boundary points provided by the unloading ratio, and the optimal unloading ratio can be obtained according to the first-order partial derivative function. When (when)When the offload rate increases, the total energy consumption increases, which means that the smaller the offload rate, the more energy-efficient, i.e. the user is more willing to calculate his data locally, but when the local calculation is enabledWhen the force is very limited, there is a tendency to offload more data to the edge server for execution; when->When the off-load ratio increases, the total energy consumption is reduced, which means that it is more energy efficient to off-load more tasks to the edge than to compute locally, while the larger the off-load ratio, the more energy efficient, i.e. the user is willing to off-load tasks to the edge. Thereby, an optimal unloading ratio can be obtained.
For the power control sub-problem: given computing resource allocation f i l ,f i m Unloading ratio lambda i In the case of (2), transmission energy consumption is minimized by optimizing the transmission power under the constraints of time delay and reliability, and the original problem can be converted into:
because the problem is in a split form and is a non-convex problem, the improved hybrid whale optimization algorithm is adopted to solve the current optimal value P of the transmitting power *
For the computational resource sub-problem: when the offload ratio λ and transmit power P are fixed, the total device energy consumption is minimized by optimizing local and edge computing resource allocation under latency, reliability, and computing resource constraints. Taking into account the problem of coupling and the delay constraint is relatively complexThe energy consumption in the task unloading process is minimum when the maximum time delay constraint is met, so that the optimization problem is deformed, and the time delay constraint is rewritten into T i tr +T i mec =T max At this time, the energy consumption in the task unloading process is minimum, and thus, the computational resource allocation sub-problem can be expressed as:
wherein lambda is u A task ratio size representing offloading of device u to edge server;representing the optimal unloading ratio of the device u; sigma (sigma) 2 Representing noise power; b represents the channel bandwidth; d represents the distance between the device and the edge server; alpha represents path loss fingerA number; h is a 1 Representing rayleigh fading channel coefficients.
Because the objective function has the partial formula and the constraint condition is coupled, the direct solution is more complex, and then the current computing resource allocation optimal value is obtained by adopting the improved hybrid whale optimization algorithm of the invention to solve by introducing the penalty function.
As shown in fig. 3, the performing the alternate iterative solution by adopting the steps S6 to S7 specifically includes:
initializing initial solutions of transmitting power, computing resources and communication resources, and then solving three sub-problems by adopting convex optimization and improved hybrid whale optimization algorithms respectively;
for the unloading ratio distribution process, firstly fixing the transmitting power and calculating the resource distribution, and then solving the unloading ratio through the Lagrangian theory and convex optimization;
for the communication resource allocation process, firstly fixing the unloading ratio and calculating the resource allocation, and then solving by improving a hybrid whale optimization algorithm to obtain the transmitting power;
for the calculation resource allocation process, firstly, the unloading ratio and the transmitting power are fixed, then, the calculation resource allocation is obtained by solving through improving a hybrid whale optimization algorithm, and finally, whether the optimal solution is reached is determined through judging the energy consumption.
S6: solving the unloading ratio sub-problem through a convex optimization theory and a Lagrangian method to obtain an optimal unloading decision;
it will be appreciated that solving the unloading ratio sub-problem by convex optimization theory and Lagrangian method may be a common approach to those skilled in the art, and the invention is not limited in any way.
S7: and solving a power control sub-problem and a computing resource sub-problem by improving a hybrid whale optimization algorithm to obtain optimal transmitting power, a local computing resource allocation decision and an edge computing resource allocation decision.
Because of the coupling relation among different variables, the intelligent optimization algorithm is an effective method for solving a global optimal solution, two searching modes exist in the whale optimization algorithm, and an optimal value can be better explored, but because the algorithm jumps out of the local optimal value, the global searching capability of the bat algorithm is considered to be stronger, and the improved hybrid whale optimization algorithm is provided by combining the bat algorithm with the whale algorithm.
Whales are considered a social mammal and they generally chase predatory prey by cooperating with each other. Thus, based on the behavior of the whale-trap, combining it with optimization problems led to a whale optimization algorithm in which the possible solutions are mapped with whale positions, and the optimal possible solutions are achieved by optimizing the whale positions. During each renewal, whales randomly choose to prey in two ways, namely surrounding prey and air bubble net predation, and the prey surrounding mode is adopted in two ways: the current optimal position is selected for predation, or a whale position is randomly selected and is close to the whale position, and the algorithm mainly comprises two steps, as shown in fig. 4.
Initializing: the whale adjusts its position continuously according to the distance from the prey, and the value of the optimization variable can be expressed as:
update mechanism: the whales can be surrounded by continuously contracted bubbles so that the whales can float on the water surface before hunting, and the bubble net feeding process is divided into a contraction surrounding mechanism and a spiral updating position. The contraction surrounding mechanism is divided into optimal utilization and random exploration, when the convergence coefficient |A| is less than or equal to 1, an optimal value is selected for calculation, and at the moment, an optimal utilization updating formula is as follows:
when the convergence coefficient |A| >1, selecting a random value for calculation, and randomly exploring and updating the formula as follows:
wherein X is * Is the position vector of the current optimal solution;is the position vector of the current solution, and X needs to be updated when there is a better solution in each iteration process * . Wherein->Is the absolute value of the distance between the current best position and the current position;is a coefficient vector, and C represents a random coefficient; t (T) max Is the maximum number of iterations. Wherein the convergence coefficient vector->And convergence factor a 1 The expression is as follows:
a 1 =2-2t/T max
the spiral predation mode of whales is mainly measured by a spiral equation established between whales and prey, and the expression is as follows:
wherein b is a constant of logarithmic spiral shape, l is an interval random coefficient having a value of [ -1,1]Between, l=a 2 Rand+1 and a 2 =-1-t/T max For a constant coefficient, two search mechanisms are chosen by the random number p=0.5, so the update strategy can be expressed as:
in the algorithm, firstly, a feasible solution is randomly initialized, the position of a search agent (namely the feasible solution) can be updated according to the predation mechanism of whales in each iteration, and the position can be updated by the optimal solution of the current iteration, and one search agent position can be randomly selected for updating. In the algorithm, the convergence factor a 1 The number of iterations gradually decreases from 2 to 0, the whale will initially move around continuously to obtain more prey (i.e. the exploring stage), and the whale will select the optimal position to move (i.e. the utilizing stage) continuously as the convergence factor becomes smaller. By constantly switching between spiral motion and surrounding mechanism, constantly taking optimal or random position to update in surrounding mechanism, the optimal solution of the algorithm is achieved.
The bat algorithm is an intelligent optimization algorithm which is proposed by connecting algorithm optimization with the detection and positioning capability of the bat on obstacles or the prey according to the habit that the bat detects the prey by utilizing sonar and avoids danger. The basic principle of the algorithm is that the number of bat populations is mapped onto the feasible solution of the problem, the bat positions are continuously optimized to achieve the optimal feasible solution, the individual fitness function is used for measuring the advantages and disadvantages of the bat positions, the target function in the problem is optimized through the fitness function mapping, the bat individuals are continuously optimized, the survival of the fittest is continuously carried out, and the positions are updated by searching for better feasible solutions.
If the bat is at random speedIn position->Flying while at a fixed frequency r i Sound wave loudness +.>Searching for prey and bat continuously adjusts the wavelength (or frequency) and pulse frequency of the transmitted pulse to approach the target according to the distance from the target position, so the position update mechanism can be expressed as:
f i =f min +(f max -f min )e
wherein, the local optimal solution x in the position updating mechanism * Pulse rate r i t And sound wave loudnessThe updating mode is as follows:
r i t+1 =r i 0 (1-e -rt )
because the exploration stage in the whale algorithm is easy to sink into local optimum, is easy to converge too early, is difficult to achieve optimum performance, and has excellent global searching capability, but the iterative process can only be updated by means of the current optimum individual, and the diversity is lacking, so that the contraction surrounding mechanism in the whale algorithm is replaced by the updating mechanism of the bat algorithm to achieve the jump-out local optimum. Based on the design thought, the invention provides an improved hybrid whale optimization algorithm based on the updating rules of whale algorithm and bat algorithm.
In the embodiment of the present invention, as shown in fig. 4, the improved hybrid whale optimization algorithm specifically includes initializing a viable whale population with the hybrid whale optimization algorithm, and initializing a location of the viable whale population; judging whether a termination condition is met, if not, calculating an adaptability value of a viable whale solving group, and calculating to obtain a convergence coefficient A, a random coefficient C, a spiral coefficient l and a random number p according to the adaptability value; if the random number p is smaller than a first preset threshold, continuing to judge whether the convergence coefficient A is larger than or equal to a second preset threshold, if so, selecting a random search agent and then updating the position of the whale solving individual through a bat algorithm updating mechanism; if the position of the whale solving individual is not greater than or equal to a second preset threshold value, the position of the whale solving individual is updated through a bat algorithm updating mechanism after the optimal searching agent is selected; if the first coefficient rand is larger than the second coefficient r, wherein both rand and r are random numbers generated randomly, updating the position of a local feasible whale solving individual; if the sound wave loudness eta is larger than the first coefficient rand and the fitness value of the position of the current feasible whale solving group is larger than the fitness value of the position of the previous feasible whale solving group, updating the pulse generation rate and the sound wave loudness; if the random number is not smaller than a first preset threshold value or after updating the pulse generation rate and the sound wave loudness, updating the position through a spiral surrounding mechanism, judging whether the current fitness value is smaller than the previous fitness value, if so, selecting to update the position of the current feasible whale solving group, otherwise, selecting the position of the previous feasible whale solving group; until the final optimal transmitting power, the local computing resource allocation decision and the feasible solution of the edge computing resource allocation decision are determined.
It may be understood that, in the embodiment of the present invention, for convenience of presentation, the first preset threshold value is 1, and the second preset threshold value is 0.5, and in actual situations, a person skilled in the art may appropriately adjust the values.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, etc.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (9)

1. The edge computing method for the reliability perception is characterized by comprising the following steps of:
s1: establishing a reliability edge computing system frame according to an edge computing network scene comprising a plurality of devices, an Internet of things repeater and an edge server;
s2: under the system architecture in the step S1, a communication model is built according to the transmission delay and the transmission energy consumption during task unloading; establishing a calculation model according to the calculation time delay and the calculation energy consumption;
s3: according to the temperature and the signal-to-noise ratio, a calculation model and a communication model are established as a calculation reliability model and a communication reliability model;
s4: according to the calculation reliability model and the communication reliability model, establishing an optimization problem with time delay and reliability as constraint conditions and with energy consumption of all equipment minimized as an optimization target;
s5: decomposing the optimization problem into an unloading ratio sub-problem, a power control sub-problem and a computing resource sub-problem, and adopting the steps S6 to S7 to carry out alternate iteration solution;
s6: solving the unloading ratio sub-problem through a convex optimization theory and a Lagrangian method to obtain an optimal unloading decision;
s7: and solving a power control sub-problem and a computing resource sub-problem by improving a hybrid whale optimization algorithm to obtain optimal transmitting power, a local computing resource allocation decision and an edge computing resource allocation decision.
2. The method according to claim 1, wherein the reliability edge computing system framework in step S1 specifically includes constructing an industrial internet of things device having a plurality of latency-sensitive, computation-intensive tasksAnd the internet of things relay N, a single edge server M; the computing task is expressed asWherein D represents the task input size; c represents the number of CPU cycles required for calculating each bit task; t (T) max Representing task tolerance time delay; when the local calculation cannot meet the performance requirement required by the task, part of the task is uploaded to the edge server by the local equipment for parallel processing, and the calculation unloading process is expressed as that the local equipment firstly unloads the task to the edge server for processing, and then the calculation result is returned to the terminal equipment after the task calculation is completed.
3. The method for calculating the edge of the reliability perception according to claim 1, wherein the step S2 specifically comprises:
communication model:
wherein T is i tr Representing the transmission delay of the device i during task unloading; lambda (lambda) i A task ratio size representing device i; d represents the task input size; r is R i Representing the task transmission rate of device i;representing the transmission energy consumption of the equipment i during task unloading; p (P) i tr Representing the transmit power of device i at task offloading;
and (3) calculating a model:
the task computation delay is expressed as:
the time delay and the energy consumption generated by the local processing of the task are respectively expressed as follows:
the total time delay and total energy consumption of the device are expressed as:
wherein T is i mec Representing task computation latency of device i offloaded to the edge server; f (f) i m CPU cycle frequency for edge server of device i; t (T) i l Representing the time delay generated by the local processing of the device i; c represents the number of CPU cycles required for calculating each bit task; f (f) i l Representing the CPU cycle frequency of device i;representing the energy consumption generated by the local processing of the equipment i; k represents an effective capacitance coefficient; t (T) total Representing the total time delay of the device; u represents a device set; e (E) total Representing the total energy consumption of the device.
4. The method for calculating the edge of the reliability perception according to claim 1, wherein the step S3 specifically comprises:
the computational reliability is expressed as:
the communication reliability is expressed as:
wherein P is reliable Representing a calculation reliability model, pr (·) representing a probability function; k represents an effective capacitance coefficient; f (f) i l Representing the CPU cycle frequency of device i; parameter h air ,A,T chip ,T sur ,T safe ,T env ,c chip M and t are sequentially expressed as an air convection heat transfer coefficient, a radiating fin area, a chip temperature, an equipment surface temperature, a safety temperature, an environment temperature, an initial temperature, a chip specific heat, a chip quality and a task calculation time; z represents a control parameter, which is a constant; lambda (lambda) i Representing any of the devices iTraffic offload ratio, gamma denotes channel gain compliance parameter, gamma th Representing a signal to noise ratio threshold.
5. The method according to claim 1, wherein in the step S4, the established optimization problem is as follows:
P:
s.t.C1:
C2:
C3:
C4:
C5:
C6:Pr[T sur (t)<T safe ]·Pr(γ≥γ th )≥ψ
C7:
wherein P represents transmission power; λ represents the task off-load ratio; f represents CPU cycle frequency; u represents a device set;representing the processing of device i locallyEnergy consumption; />Representing the transmission energy consumption of the equipment i during task unloading; c1 denotes a user transmit power constraint, P i Representing the transmit power of device i; p (P) i max Representing the maximum transmit power of device i; c2 represents the local computing power constraints of the device, f i l CPU cycle frequency of device i, +.>The maximum CPU cycle frequency of device i; c3 and C4 represent edge server computing power constraints, f i m CPU cycle frequency of edge server representing device i,/-, is->Representing the maximum CPU cycle frequency of the edge server m; c5 denotes the user unloading ratio constraint, lambda i A task ratio size representing device i; c6 represents the overall reliability constraint of the task, pr (·) represents the probability function, T sur (T) represents the surface temperature of the device i, T safe Representing the safe temperature of device i, gamma represents the channel gain compliance parameter, gamma th Representing a signal-to-noise ratio threshold, ψ representing a reliability threshold; c7 represents task tolerance delay constraint, T i l Representing the delay generated by the local processing of the device i, T i tr Representing the transmission delay of the device i during task offloading, T i mec Representing task computation latency of device i offloaded to edge server, T max Representing the maximum delay.
6. The method according to claim 5, wherein in step S5, the optimization problem is decomposed into an offload ratio sub-problem, a power control sub-problem, and a computing resource sub-problem as follows:
P1:
s.t.C1:
C2:
C3:
C4:
C5:
C6:
C7:
C8:
wherein D represents the task input size; c represents the number of CPU cycles required for calculating each bit task; parameter h air ,A,T chip ,T env ,c chip M and t are sequentially expressed as an air convection heat transfer coefficient, a radiating fin area, a chip temperature, an ambient temperature, an initial temperature, a chip specific heat, a chip quality and task calculation time; z representsThe control parameter is a constant; d represents the task input size; d (D) max Representing the task input maximum.
7. The method for edge computation of reliability perception according to claim 6, wherein in step S5,
unloading ratio sub-problem:
P2:
s.t.C2.1:0≤λ u ≤1
C2.2:
C2.3:
power control sub-problem:
P3:
s.t.
C3.2:
C3.3:
computing resource sub-problem:
P4:
s.t.C4.1:
C4.2:
C4.3:
C4.4:
C4.5:
C4.6:
wherein k represents an effective capacitance coefficient; lambda (lambda) u A task ratio size representing offloading of device u to edge server;representing the optimal unloading ratio of the device u; sigma (sigma) 2 Representing noise power; b represents the channel bandwidth; d represents the distance between the device and the edge server; alpha represents a path loss index; h is a 1 Representing rayleigh fading channel coefficients.
8. The method for computing the edge of the reliability perception according to claim 1, wherein the step S6 to the step S7 of performing the iterative solution alternately comprises:
initializing initial solutions of transmitting power, computing resources and communication resources, and then solving three sub-problems by adopting convex optimization and improved hybrid whale optimization algorithms respectively;
for the unloading ratio distribution process, firstly fixing the transmitting power and calculating the resource distribution, and then solving the unloading ratio through the Lagrangian theory and convex optimization;
for the communication resource allocation process, firstly fixing the unloading ratio and calculating the resource allocation, and then solving by improving a hybrid whale optimization algorithm to obtain the transmitting power;
for the calculation resource allocation process, firstly, the unloading ratio and the transmitting power are fixed, then, the calculation resource allocation is obtained by solving through improving a hybrid whale optimization algorithm, and finally, whether the optimal solution is reached is determined through judging the energy consumption.
9. The edge computing method of reliability perception according to claim 1 or 8, wherein the improved hybrid whale optimization algorithm specifically comprises initializing a viable whale population with the hybrid whale optimization algorithm, initializing the location of the viable whale population; judging whether a termination condition is met, if not, calculating an adaptability value of a viable whale solving group, and calculating to obtain a convergence coefficient A, a random coefficient C, an interval random coefficient l and a random number p according to the adaptability value; if the random number p is smaller than a first preset threshold, continuing to judge whether the convergence coefficient A is larger than or equal to a second preset threshold, if so, selecting a random search agent and then updating the position of the whale solving individual through a bat algorithm updating mechanism; if the position of the whale solving individual is not greater than or equal to a second preset threshold value, the position of the whale solving individual is updated through a bat algorithm updating mechanism after the optimal searching agent is selected; if the first coefficient rand is larger than the second coefficient r, updating the position of the local feasible whale solving individual; if the sound wave loudness eta is larger than the first coefficient rand and the fitness value of the position of the current feasible whale solving group is larger than the fitness value of the position of the previous feasible whale solving group, updating the pulse generation rate and the sound wave loudness; if the random number is not smaller than a first preset threshold value or after updating the pulse generation rate and the sound wave loudness, updating the position through a spiral surrounding mechanism, judging whether the current fitness value is smaller than the previous fitness value, if so, selecting to update the position of the current feasible whale solving group, otherwise, selecting the position of the previous feasible whale solving group; until the final optimal transmitting power, the local computing resource allocation decision and the feasible solution of the edge computing resource allocation decision are determined.
CN202310563822.XA 2023-05-18 2023-05-18 Edge computing method for reliability perception Active CN116528365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310563822.XA CN116528365B (en) 2023-05-18 2023-05-18 Edge computing method for reliability perception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310563822.XA CN116528365B (en) 2023-05-18 2023-05-18 Edge computing method for reliability perception

Publications (2)

Publication Number Publication Date
CN116528365A true CN116528365A (en) 2023-08-01
CN116528365B CN116528365B (en) 2023-12-29

Family

ID=87408199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310563822.XA Active CN116528365B (en) 2023-05-18 2023-05-18 Edge computing method for reliability perception

Country Status (1)

Country Link
CN (1) CN116528365B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974774A (en) * 2023-09-25 2023-10-31 中国电子科技集团公司第十五研究所 Method, server and storage medium for optimizing satellite-borne computing resource allocation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245651A (en) * 2020-01-08 2020-06-05 上海交通大学 Task unloading method based on power control and resource allocation
CN113207136A (en) * 2021-04-02 2021-08-03 北京科技大学 Method and device for joint optimization of computation offloading and resource allocation
CN114691362A (en) * 2022-03-22 2022-07-01 重庆邮电大学 Edge calculation method for compromising time delay and energy consumption
CN115529632A (en) * 2022-06-07 2022-12-27 东南大学 Task unloading and resource allocation method facing edge computing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245651A (en) * 2020-01-08 2020-06-05 上海交通大学 Task unloading method based on power control and resource allocation
CN113207136A (en) * 2021-04-02 2021-08-03 北京科技大学 Method and device for joint optimization of computation offloading and resource allocation
CN114691362A (en) * 2022-03-22 2022-07-01 重庆邮电大学 Edge calculation method for compromising time delay and energy consumption
CN115529632A (en) * 2022-06-07 2022-12-27 东南大学 Task unloading and resource allocation method facing edge computing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YALING YU等: "Task Delay Minimization in Wireless Powered Mobile Edge Computing Networks: A Deep Reinforcement Learning Approach", 《IEEE》 *
吴大鹏等: "移动性感知的边缘服务迁移策略", 《通信学报》, vol. 41, no. 4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974774A (en) * 2023-09-25 2023-10-31 中国电子科技集团公司第十五研究所 Method, server and storage medium for optimizing satellite-borne computing resource allocation
CN116974774B (en) * 2023-09-25 2024-01-23 中国电子科技集团公司第十五研究所 Method, server and storage medium for optimizing satellite-borne computing resource allocation

Also Published As

Publication number Publication date
CN116528365B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN108920280B (en) Mobile edge computing task unloading method under single-user scene
CN113543176B (en) Unloading decision method of mobile edge computing system based on intelligent reflecting surface assistance
CN116528365B (en) Edge computing method for reliability perception
CN113286317B (en) Task scheduling method based on wireless energy supply edge network
CN113626104B (en) Multi-objective optimization unloading strategy based on deep reinforcement learning under edge cloud architecture
CN113645637B (en) Method and device for unloading tasks of ultra-dense network, computer equipment and storage medium
CN115827108B (en) Unmanned aerial vehicle edge calculation unloading method based on multi-target deep reinforcement learning
CN110531996B (en) Particle swarm optimization-based computing task unloading method in multi-micro cloud environment
CN114697333B (en) Edge computing method for energy queue equalization
Zhang et al. Energy-efficient federated learning framework for digital twin-enabled industrial internet of things
CN117580105A (en) Unmanned aerial vehicle task unloading optimization method for power grid inspection
CN110768827B (en) Task unloading method based on group intelligent algorithm
CN116828541A (en) Edge computing dependent task dynamic unloading method and system based on multi-agent reinforcement learning
CN111930435A (en) Task unloading decision method based on PD-BPSO technology
CN116486192A (en) Federal learning method and system based on deep reinforcement learning
CN113835894B (en) Intelligent calculation migration method based on dual-delay depth deterministic strategy gradient
Li et al. D2D-assisted computation offloading for mobile edge computing systems with energy harvesting
CN112600869B (en) Calculation unloading distribution method and device based on TD3 algorithm
CN115580900A (en) Unmanned aerial vehicle assisted cooperative task unloading method based on deep reinforcement learning
CN114691362A (en) Edge calculation method for compromising time delay and energy consumption
Tan et al. Toward a task offloading framework based on cyber digital twins in mobile edge computing
CN117834643B (en) Deep neural network collaborative reasoning method for industrial Internet of things
CN117539640B (en) Heterogeneous reasoning task-oriented side-end cooperative system and resource allocation method
CN114860345B (en) Calculation unloading method based on cache assistance in smart home scene
Raja et al. An Efficient 6G Federated Learning-enabled Energy-Efficient Scheme for UAV Deployment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240521

Address after: 1003, Building A, Zhiyun Industrial Park, No. 13 Huaxing Road, Henglang Community, Dalang Street, Longhua District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen Wanzhida Technology Transfer Center Co.,Ltd.

Country or region after: China

Address before: 401135 No. 19, Zhuoyue Road, Longxing Town, Yubei District, Chongqing

Patentee before: Space Communication Research Institute of Chongqing University of Posts and Telecommunications

Country or region before: China