A method for offshore offloading and resource allocation of mobile edge computing
Mobile edge computing and particle swarm algorithm are used to optimize the transmission power and resource allocation of maritime wireless communication networks, solving the high energy consumption and delay problems of maritime communication networks, achieving efficient resource allocation and improving user experience.
Patent Information
- Application Number
- CN202211346123.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-10-31
AI Technical Summary
With the development of 5G technology, maritime wireless communication networks are facing the problems of high energy consumption, high latency and degraded service quality, resulting in poor user experience. Existing cloud computing cannot effectively handle the massive computing tasks of maritime navigation equipment.
Mobile edge computing combined with particle swarm algorithm is used to optimize transmission power, realize resource allocation and offloading decisions, maximize system efficiency, and improve service quality and user experience.
The particle swarm algorithm is used to minimize transmission energy consumption and delay, achieve efficient allocation and scheduling of resources, improve user experience and system efficiency, and solve the energy consumption and delay problems of maritime communication networks.
Smart Images

Figure CN115665797B
Abstract
Description
Technical Field
[0001] The present invention relates to the research field of wireless communication network technology, and in particular to a method for combining maritime wireless communication and mobile edge computing with a particle swarm algorithm to achieve power optimization, offloading decision-making and resource allocation. Background Art
[0002] With the rapid development of 5G technology, modern smart devices use information and communication technology to promote the intelligence of digital and industrial industries. The rapid development of the smart Internet has also expanded to the marine field, and ships sailing on the sea have also generated a large amount of data that needs to be transmitted and processed. The continuous development of the integrated network of air, land, and sea, and the interconnection between satellites, drones, coastal base stations, and ships have generated a large amount of computing tasks that need to be processed and analyzed, which has brought a heavy burden to the Internet with limited capacity and service delays, resulting in a series of problems such as high energy consumption, high latency, reduced service quality, and increasingly poor user experience. Therefore, we proposed this patent to introduce mobile edge computing in the marine communication network.
[0003] Cloud computing is the transmission of data from terminal devices to a central cloud server with powerful computing capabilities, but there is a long geographical distance between the cloud server and the mobile device. Mobile edge computing refers to the sinking of part or all of the computing tasks of mobile devices to the edge of the network, using larger edge servers to process and analyze tasks, and solving the problems of cloud computing closer to mobile devices. The synergy and complementarity of cloud computing and edge computing can help reduce energy costs, optimize transmission power and resource allocation, and improve user experience to achieve more reliable maritime communications. Summary of the invention
[0004] In view of the above problems, the method of the present invention uses mobile edge computing technology to achieve reliable maritime communications and improve service quality. It also uses particle swarm algorithm to optimize user transmission power, minimize transmission energy consumption, select and allocate offloading decisions and computing resources, maximize system performance, improve service quality and user experience, reasonably allocate computing resources, minimize transmission energy, and maximize system performance.
[0005] The present invention provides the following technical solutions:
[0006] A method for offshore unloading and resource allocation of mobile edge computing comprises the following steps:
[0007] (1) Obtain the location of the network access node in the offshore deployment area, the ship user request tasks to be processed, and the prescribed unloading strategy;
[0008] (2) Formulate the transmission power allocation problem for ship users to minimize the system transmission energy consumption;
[0009] (3) Use particle swarm optimization algorithm to optimize user transmission power;
[0010] (4) After determining the transmission power, the joint request offloading and computing resource allocation problem is modeled as a mixed integer nonlinear programming problem to maximize the system performance;
[0011] (5) Use the particle swarm optimization algorithm to optimize and allocate offloading problems and computing resources.
[0012] As a further limitation of the technical solution, the step (1) specifically includes the following steps: obtaining the location of the network access node in the offshore multi-server multi-user system in the offshore area to be deployed, the ship user request task to be processed and the prescribed unloading strategy; assuming that the ship user has , micro base stations with edge servers have , there is only one macro base station with a cloud server. Assume that each user has one computing task at a time. The computing task is , the computational task is expressed as , angle brackets Represented as a tuple containing the four elements, The input size of the task, represents the workload of the edge server when processing tasks, It represents the ideal delay to complete the computing task. It represents the maximum delay to complete the computing task and the upper limit of the delay. The offloading strategy is divided into offloading to the edge and offloading to the cloud. Offloading to the edge is represented by 1 and offloading to the cloud is represented by 0.
[0013] As a further limitation of the technical solution, the step (2) specifically includes the following steps: using orthogonal frequency division multiple access as the multiple access scheme for the uplink, and dividing the total bandwidth Divide into For ship users, the sub-band is ,in ;in Indicates uplink subband scheduling. In order to ensure the orthogonality of uplink transmission of users under the same base station, each user is assigned to a sub-band. Each base station can serve at most users; the transmission power of each user in the system is , the total transmission power of all users in a cell is , that is, satisfy , the maximum transmission power of each user is .
[0014] As a further limitation of the present technical solution, the uninstall variable is used Indicates that Indicates uplink subband scheduling, when When , it means offloading to the edge server. represents the execution of computing tasks in the cloud; since each task can be executed in the cloud or offloaded to at most one edge server, we can get ,in Indicates the number of edge servers. The micro base stations of edge servers have ;in Indicates uplink subband scheduling .
[0015] As a further limitation of the present technical solution, when offloading to the edge server, It is in the subband User and edge servers The uplink channel gain between , which includes the effects of path loss, shadowing, and antenna gain;
[0016] The uplink channel gain is generated using the three-path model and can be expressed as:
[0017] ,
[0018] in represents the wavelength, Indicates the distance between the transmitter and the receiver. Represent the heights of the transmitter and receiver respectively, Indicates the height of the vapor waveguide;
[0019] Since users sending to the same base station use different subbands, uplink intra-cell interference can be suppressed better, but inter-cell interference still exists. To subband Signal-to-interference ratio of the base station for:
[0020] ,
[0021] in Indicates user The transmission power, is the uplink channel gain, It is noise. Indicates other cell edge servers User interference, Representation Server and users The uninstall decision between Indicates user The transmission power, It is an edge server and users The uplink channel gain between Represents edge server The user set of the cell where the user is located;
[0022] Since each user transmits on only one subband, the user Upload rate for:
[0023] ,in , ;
[0024] The total bandwidth Divide into For ship users, the sub-band is ,in ;in represents uplink subband scheduling, Indicates user The signal-to-interference ratio on all upstream sub-bands, Indicates user Offloading decisions on all upstream subbands;
[0025] When the task is offloaded to the edge server, the upload time for:
[0026] ,
[0027] Among them is Task input, Indicates user The upload rate Indicates the number of edge servers. The micro base stations of edge servers have ;
[0028] Energy transmission energy consumption for ,
[0029] in Indicates user The transmission power, Indicates the upload time when the task is offloaded to the edge server.
[0030] As a further limitation of the present technical solution, the power allocation problem in step (2) can be expressed as minimizing energy consumption: ,obey Constraints, where is the total transmission power of all users in a cell, A ship user The total transmission power, ,The transmission power of the user cannot exceed the maximum value, and each task generated by the ship ,user can be offloaded only to one edge server or cloud ;
[0031] make , Expressed as the total interference from other cells, we need to find Assume that each base station independently calculates its uplink power allocation, that is, it does not need to cooperate with each other and informs the associated users of the uplink transmission power. The upper bound that can be achieved is: ,use replace ,get ,in Indicates user The maximum power of , It is converted into only A function of a variable can be expressed as: ; Solve the transmission energy consumption minimization problem as ; Represents edge server The set of users in the cell where the user is located, It means server The collection of users in the cell.
[0032] As a further limitation of the technical solution, the step (3) is solved using a particle swarm algorithm, comprising the following steps:
[0033] Step 1: Initialize the particle population, set the particle population size, and randomly generate the initial position of the particles , the initialization speed of each particle ;
[0034] Step 2: Calculate the initial position, and obtain the minimized transmission energy consumption based on the initialization parameters and the transmission energy consumption calculation formula; obtain the optimal power allocation and the optimal particle initial position based on the minimized transmission energy consumption , its optimal initial position Set to the global optimal initial position , the initial position of each particle Set to the individual optimal initial position ;
[0035] Step 3: Update the particle position and particle velocity respectively to determine whether the position of each particle meets the constraint conditions. If so, update the particle position and velocity respectively; if not, randomly generate new particle positions and velocities.
[0036] The particle velocity update formula is: ;
[0037] The particle position update formula is: ;
[0038] in represents the number of iterations, represents the inertia weight, and denote the learning factors of individual particles and the whole particle, respectively. and for A random number between Represents particles exist The individual optimal value at the iteration is Indicates that all particles are The global optimal value at the iteration is Represents particles exist The position at the iteration, Represents particles exist The speed at the iteration;
[0039] Step 4: Select the fitness function of the particle swarm algorithm to determine the convergence speed and the optimal solution. In the present invention, the fitness function is defined by the energy loss of transmission. The fitness function can be expressed as: ;
[0040] Update the new global optimal initial position and individual optimal initial position according to the fitness;
[0041] when hour, ;when hour, ;
[0042] Step 5: Determine whether the iteration has reached the end condition; if it is met, output the optimal particle position; if not, return to step 3, and finally reduce the transmission energy consumption and achieve power optimization.
[0043] As a further limitation of the technical solution, step (4) specifically includes the following steps: after determining the optimal power, since the MEC server at each base station can provide computing offloading services to multiple users at the same time, the computing resources shared by each MEC server for the associated users are quantified by the computing rate , each user uses the scheduling of computing resources on the edge server Indicates that and ;
[0044] Ship users in the same area compete for the computing resources of the same micro base station to complete the request within the ideal delay, and propose a utility function based on service quality for:
[0045] Utility function based on quality of service , characterizes the system's service quality performance, where is the total delay when processing at the edge server, represents the ideal delay to complete the task, Indicates the upper limit of the delay, , at the edge we define the system cost of task processing as: , is a user-defined constant to ensure The range is [0,1], represents the execution energy consumption at the edge;
[0046] Given fixed computing resources, if the edge server cannot process all tasks in time, the ship user can choose to send the task request to the cloud for processing, and the edge system should pay for it; the additional cost of offloading to the cloud is defined as: ,in is a constant that represents the relative importance of service quality and execution energy consumption. represents the execution loss in the cloud; the joint request offloading and computing resource scheduling problem is formulated as a system efficiency maximization problem, and the total system profit is defined as: .
[0047] As a further limitation of the technical solution, the step (5) uses a particle swarm algorithm to solve the system efficiency maximization problem, including the following steps:
[0048] Step 1: Initialize the particle population, set the particle population size, and randomly generate the initial position of the particles , the initialization speed of each particle ;
[0049] Step 2: Calculate the initial position, and get the maximum system efficiency based on the initialization parameters and the system total efficiency formula; get the optimal particle initial position based on the maximum system efficiency , its optimal initial position Set to the global optimal initial position , the initial position of each particle Set to the individual optimal initial position ;
[0050] Step 3: Update the particle position and particle velocity respectively to determine whether the position of each particle meets the constraint conditions. If so, update the particle position and velocity respectively; if not, randomly generate new particle positions and velocities.
[0051] The particle velocity update formula is: ;
[0052] The particle position update formula is: ;
[0053] in represents the number of iterations, represents the inertia weight, and denote the learning factors of individual particles and the whole particle, respectively. and for A random number between Represents particles exist The individual optimal value at the iteration is Indicates that all particles are The global optimal value at the iteration is Represents particles exist The position at the iteration, Represents particles exist The speed at the iteration;
[0054] Step 4: Select the fitness function of the particle swarm algorithm to determine the convergence speed and the optimal solution. In the present invention, the fitness function is defined by the energy loss of transmission. The fitness function can be expressed as: ;
[0055] Update the new global optimal initial position and individual optimal initial position according to the fitness;
[0056] when hour, ;when hour, ;
[0057] Step 5: Determine whether the iteration has reached the end condition; if it has, output the optimal particle position; if not, return to step 3, and finally achieve the goal of increasing system performance, performing unloading optimization, and reasonable allocation of resources.
[0058] From the above description, it can be seen that this solution uses mobile edge computing and particle swarm algorithm to optimize power and efficiently allocate resources. This solution first minimizes transmission energy consumption through particle swarm algorithm and optimizes power. The optimized power is brought into the solution of system performance, and the particle swarm algorithm is used to solve it to obtain the reasonable allocation of offloading decisions and computing resources. It minimizes energy consumption, minimizes latency, improves user experience, and realizes efficient scheduling and allocation of resources, which has practical application significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A model of an offshore edge computing system.
[0060] Figure 2 The comparative energy consumption diagram for different numbers of users at different maximum powers.
[0061] Figure 3 The figure below shows the system performance changes under different numbers of users.
[0062] Figure 4 This is a graph showing how task input affects system performance.
[0063] Figure 5 This is a graph showing how workload affects system performance.
[0064] Figure 6 The graph shows the changes in system performance with different numbers of users under different workloads. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the specific embodiments of the present invention to clearly and completely describe the technical solutions in the specific embodiments of the present invention. Obviously, the specific embodiment described is only one specific embodiment of the present invention, not all specific embodiments. Based on the specific embodiments of the present invention, all other specific embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] It can be seen from the accompanying drawings that the present invention is a method for offshore unloading and resource allocation of mobile edge computing. Based on the goals of minimizing transmission energy consumption and maximizing system efficiency, a particle swarm algorithm is used to determine the user's optimal power, unloading decision and resource allocation, including the following steps: obtaining the location of the network access node in the offshore area to be deployed, the ship user request task to be processed and the specified unloading strategy; formulating the transmission power allocation problem of the ship user to minimize the system transmission energy consumption; using the particle swarm optimization algorithm to achieve user transmission power optimization; modeling the joint request unloading and computing resource allocation problem as a mixed integer nonlinear programming problem to maximize the system efficiency; using the particle swarm optimization algorithm to optimize and allocate the unloading problem and computing resources; the algorithm has good convergence in achieving the minimum transmission energy, and has good performance in achieving unloading and computing resource allocation in a dynamic network.
[0067] In an offshore multi-server multi-user system, such as Figure 1 As shown, the location of the network access node in the offshore area to be deployed, the ship user request task to be processed and the prescribed unloading strategy are obtained. Each user corresponds to a terminal device. In this example, the edge server is Figure 1 The micro base station in the cloud server is Figure 1 The macro base station in the edge server has There are 1 cloud server and the computing task is , the computational task is expressed as , angle brackets Represented as a tuple containing the four elements, The input size of the task, represents the workload of the edge server when processing tasks, It represents the ideal delay to complete the computing task. It represents the maximum delay to complete the computing task and the upper limit of the delay. The offloading strategy is divided into offloading to the edge and offloading to the cloud. Offloading to the edge is represented by 1 and offloading to the cloud is represented by 0.
[0068] Orthogonal Frequency Division Multiple Access is used as the uplink multiple access scheme, which reduces the total bandwidth Divide into For ship users, the sub-band is ,in ;in Indicates uplink subband scheduling. In order to ensure the orthogonality of uplink transmission of users under the same base station, each user is assigned to a sub-band. Each base station can serve at most users; the transmission power of each user in the system is , the total transmission power of all users in a cell is , that is, satisfy , the maximum transmission power of each user is .
[0069] Unload variables with Indicates that Indicates uplink subband scheduling, when When , it means offloading to the edge server. represents the execution of computing tasks in the cloud; since each task can be executed in the cloud or offloaded to at most one edge server, we can get ,in Indicates the number of edge servers. The micro base stations of edge servers have ;in Indicates uplink subband scheduling .
[0070] When offloading to edge servers, In the sub-band User and edge servers The uplink channel gain between , which includes the effects of path loss, shadowing, and antenna gain;
[0071] The uplink channel gain is generated using the three-path model and can be expressed as:
[0072] ,
[0073] in represents the wavelength, Indicates the distance between the transmitter and the receiver. Represent the heights of the transmitter and receiver respectively, Indicates the height of the vapor waveguide;
[0074] Since users sending to the same base station use different subbands, uplink intra-cell interference can be suppressed better, but inter-cell interference still exists. To subband Signal-to-interference ratio of the base station for:
[0075] ,
[0076] in Indicates user The transmission power, is the uplink channel gain, It is noise. Indicates other cell edge servers User interference, Representation Server and users The uninstall decision between Indicates user The transmission power, It is an edge server and users The uplink channel gain between Represents edge server The user set of the cell where the user is located;
[0077] Because it is users from other communities who are accessing the edge server The interference caused by users in the cell, so the edge server cannot be selected as the server , but the collection In addition to Other edge servers other than It refers to Other servers selected in the collection, It means server The collection of users in the cell.
[0078] Since each user transmits on only one subband, the user Upload rate for:
[0079] ,in , ;
[0080] The total bandwidth Divide into For ship users, the sub-band is ,in ;in represents uplink subband scheduling, Indicates user The signal-to-interference ratio on all upstream sub-bands, Indicates user Offloading decisions on all upstream subbands;
[0081] When the task is offloaded to the edge server, the upload time for:
[0082] ,
[0083] Among them is Task input, Indicates user The upload rate Indicates the number of edge servers. The micro base stations of edge servers have ;
[0084] Energy transmission energy consumption for ,
[0085] in Indicates user The transmission power, Indicates the upload time when the task is offloaded to the edge server.
[0086] As a further limitation of the present technical solution, the power allocation problem in step (2) can be expressed as minimizing energy consumption: ,obey Constraints, where is the total transmission power of all users in a cell, A ship user The total transmission power, ,The transmission power of the user cannot exceed the maximum value, and each task generated by the ship ,user can be offloaded only to one edge server or cloud ;
[0087] make , Expressed as the total interference from other cells, we need to find Assume that each base station independently calculates its uplink power allocation, that is, it does not need to cooperate with each other and informs the associated users of the uplink transmission power. The upper bound that can be achieved is: ,use replace ,get ,in Indicates user The maximum power of , It is converted into only A function of a variable can be expressed as: ; Solve the transmission energy consumption minimization problem as ; Represents edge server The set of users in the cell where the user is located, It means server The collection of users in the cell.
[0088] Represents edge server The collection of users in the cell where the user is located, because it is the users of other cells who are connected to the edge server The interference caused by users in the cell, so the edge server cannot be selected as the server , but the collection The other edge servers except in this formula are the other servers selected in the set, which represents the set of users in the cell where the server is located.
[0089] Because there are too many parameters in the expression, use , Make equivalent substitutions for the following expressions. Indicates that it is about function, representing the transmission energy consumption mentioned above .
[0090] As a further limitation of the technical solution, the step (3) is solved using a particle swarm algorithm, comprising the following steps:
[0091] Step 1: Initialize the particle population, set the particle population size, and randomly generate the initial position of the particles , the initialization speed of each particle ;
[0092] Step 2: Calculate the initial position, and obtain the minimized transmission energy consumption based on the initialization parameters and the transmission energy consumption calculation formula; obtain the optimal power allocation and the optimal particle initial position based on the minimized transmission energy consumption , its optimal initial position Set to the global optimal initial position , the initial position of each particle Set to the individual optimal initial position ;
[0093] Step 3: Update the particle position and particle velocity respectively to determine whether the position of each particle meets the constraint conditions. If so, update the particle position and velocity respectively; if not, randomly generate new particle positions and velocities.
[0094] The particle velocity update formula is: ;
[0095] The particle position update formula is: ;
[0096] in represents the number of iterations, represents the inertia weight, and denote the learning factors of individual particles and the whole particle, respectively. and for A random number between Represents particles exist The individual optimal value at the iteration is Indicates that all particles are The global optimal value at the iteration is Represents particles exist The position at the iteration, Represents particles exist The speed at the iteration;
[0097] Step 4: Select the fitness function of the particle swarm algorithm to determine the convergence speed and the optimal solution. In the present invention, the fitness function is defined by the energy loss of transmission. The fitness function can be expressed as: ;
[0098] Update the new global optimal initial position and individual optimal initial position according to the fitness;
[0099] when hour, ;when hour, ;
[0100] Step 5: Determine whether the iteration has reached the end condition; if it is met, output the optimal particle position; if not, return to step 3, and finally reduce the transmission energy consumption and achieve power optimization.
[0101] As a further limitation of the technical solution, step (4) specifically includes the following steps: after determining the optimal power, since the MEC server at each base station can provide computing offloading services to multiple users at the same time, the computing resources shared by each MEC server for the associated users are quantified by the computing rate , each user uses the scheduling of computing resources on the edge server Indicates that and ;
[0102] Ship users in the same area compete for the computing resources of the same micro base station to complete the request within the ideal delay, and propose a utility function based on service quality for:
[0103] Utility function based on quality of service , characterizes the system's service quality performance, where is the total delay when processing at the edge server, represents the ideal delay to complete the task, Indicates the upper limit of the delay, , at the edge we define the system cost of task processing as: , is a user-defined constant to ensure The range is [0,1], represents the execution energy consumption at the edge;
[0104] Given fixed computing resources, if the edge server cannot process all tasks in time, the ship user can choose to send the task request to the cloud for processing, and the edge system should pay for it; the additional cost of offloading to the cloud is defined as: ,in is a constant that represents the relative importance of service quality and execution energy consumption. represents the execution loss in the cloud; the joint request offloading and computing resource scheduling problem is formulated as a system efficiency maximization problem, and the total system profit is defined as: .
[0105] As a further limitation of the technical solution, the step (5) uses a particle swarm algorithm to solve the system efficiency maximization problem, including the following steps:
[0106] Step 1: Initialize the particle population, set the particle population size, and randomly generate the initial position of the particles , the initialization speed of each particle ;
[0107] Step 2: Calculate the initial position, and get the maximum system efficiency based on the initialization parameters and the system total efficiency formula; get the optimal particle initial position based on the maximum system efficiency , its optimal initial position Set to the global optimal initial position , the initial position of each particle Set to the individual optimal initial position ;
[0108] Step 3: Update the particle position and particle velocity respectively to determine whether the position of each particle meets the constraint conditions. If so, update the particle position and velocity respectively; if not, randomly generate new particle positions and velocities.
[0109] The particle velocity update formula is: ;
[0110] The particle position update formula is: ;
[0111] in represents the number of iterations, represents the inertia weight, and denote the learning factors of individual particles and the whole particle, respectively. and for A random number between Represents particles exist The individual optimal value at the iteration is Indicates that all particles are The global optimal value at the iteration is Represents particles exist The position at the iteration, Represents particles exist The speed at the iteration;
[0112] Step 4: Select the fitness function of the particle swarm algorithm to determine the convergence speed and the optimal solution. In the present invention, the fitness function is defined by the energy loss of transmission. The fitness function can be expressed as: ;
[0113] Update the new global optimal initial position and individual optimal initial position according to the fitness;
[0114] when hour, ;when hour, ;
[0115] Step 5: Determine whether the iteration has reached the end condition; if it has, output the optimal particle position; if not, return to step 3, and finally achieve the goal of increasing system performance, performing unloading optimization, and reasonable allocation of resources.
[0116] Figure 3 This is a diagram showing the changes in system performance under different numbers of users. When all servers have the same working capacity and the same ship user configuration conditions, it reflects the impact of the number of ship users. As the number of users increases, the system performance continues to increase.
[0117] Figure 4 This is a graph showing the effect of task input on system performance, which shows the impact of task input. When the task input decreases, the system performance increases slightly, but the change is not large.
[0118] Figure 5 The graph of workload on system performance shows the impact of workload on system performance. As the workload increases, the system performance remains almost unchanged. However, when the workload is 1500, the system performance is higher than that under other workloads.
[0119] Figure 6The graph shows the change of system performance under different workloads and different numbers of users, and evaluates the performance of the particle swarm algorithm under different workloads. Under three different workloads, the system performance increases with the increase of the number of users. When the number of users is small, the performance of the three workloads is the same. When the number of users is large, the larger the workload, the better the performance. Therefore, we need to choose the appropriate workload to improve the performance of the system. This further verifies the validity of this patent.
[0120] Although specific embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the specific embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A method for offshore offloading and resource allocation of mobile edge computing, comprising the following steps: (1) Obtain the location of the network access node in the offshore deployment area, the ship user request tasks to be processed, and the prescribed unloading strategy; (2) Formulate the transmission power allocation problem for ship users to minimize the system transmission energy consumption; (3) Use particle swarm optimization algorithm to optimize user transmission power; (4) After determining the transmission power, the joint request offloading and computing resource allocation problem is modeled as a mixed integer nonlinear programming problem to maximize the system performance; (5) Use particle swarm optimization algorithm to optimize and allocate offloading problems and computing resources; The step (1) specifically includes the following steps: obtaining the location of the network access node in the offshore multi-server multi-user system in the offshore area to be deployed, the ship user request task to be processed and the prescribed unloading strategy; assuming that the ship user has , micro base stations with edge servers have , there is only one macro base station with a cloud server. Assume that each user has one computing task at a time. The computing task is , the computational task is expressed as , angle brackets Represented as a tuple containing four elements, Indicates the size of the task input. represents the workload of the edge server when processing tasks, It represents the ideal delay to complete the computing task. It represents the maximum delay to complete the computing task and the upper limit of the delay. The offloading strategy is divided into offloading to the edge and offloading to the cloud. The offloading to the edge is represented by 1, and the offloading to the cloud is represented by 0. The step (2) specifically includes the following steps: using orthogonal frequency division multiple access as the multiple access scheme for the uplink, Divide into For ship users, the sub-band is ,in ;in Indicates uplink subband scheduling. In order to ensure the orthogonality of uplink transmission of users under the same base station, each user is assigned to a sub-band. Each base station can serve at most users; the transmission power of each user in the system is , the total transmission power of all users in a cell is , that is, satisfy , the maximum transmission power of each user is ; Unload variables with Indicates that Indicates uplink subband scheduling, when When , it means offloading to the edge server. represents the execution of computing tasks in the cloud; since each task can be executed in the cloud or offloaded to at most one edge server, we can get ,in Indicates the number of edge servers. The micro base stations of edge servers have , ; When offloading to edge servers, In the sub-band User and edge servers The uplink channel gain between , which includes the effects of path loss, shadowing, and antenna gain; The uplink channel gain is generated using the three-path model and can be expressed as: , , in represents the wavelength, Indicates the distance between the transmitter and the receiver. Represent the heights of the transmitter and receiver respectively, Indicates the height of the vapor waveguide; Since users sending to the same base station use different subbands, uplink intra-cell interference can be suppressed better, but inter-cell interference still exists. To subband Signal-to-interference ratio of the base station for: , in Indicates user The transmission power, is the uplink channel gain, It is noise. Indicates other cell edge servers User interference, Representation Server and users The uninstall decision between Indicates user The transmission power, It is an edge server and users The uplink channel gain between Represents edge server The user set of the cell where the user is located; Since each user transmits on only one subband, the user Upload rate for: ,in , ; The total bandwidth Divide into For ship users, the sub-band is ,in ;in represents uplink subband scheduling, Indicates user The signal-to-interference ratio on all upstream sub-bands, Indicates user Offloading decisions on all upstream subbands; When the task is offloaded to the edge server, the upload time for: , in Indicates the size of the task input, Indicates user The upload rate, Indicates the number of edge servers. The micro base stations of edge servers have , ; Energy transmission energy consumption for: , in Indicates user The transmission power, Indicates the upload time when the task is offloaded to the edge server; The power allocation problem in step (2) can be expressed as minimizing energy consumption: ,obey Constraints, where is the total transmission power of all users in a cell, yes The total transmission power of ship users, , ,The transmission power of the user cannot exceed the maximum value, and each task generated by the ship ,user can be offloaded only to one edge server or cloud ; make , It is expressed as the total interference of other cells. Assuming that each base station calculates its uplink power allocation independently, that is, there is no need to cooperate with each other, and informs the associated users of the uplink transmission power, then The upper bound that can be achieved is: ,use replace ,get ,in Indicates user The maximum power of , It is converted into only A function of a variable can be expressed as: ; Solving the transmission energy consumption minimization problem is ; Represents edge server The set of users in the cell where the user is located, It means server The set of users in the cell; The step (3) is solved using a particle swarm algorithm, and includes the following steps: Step 1: Initialize the particle population, set the particle population size, and randomly generate the initial position of the particles , the initialization speed of each particle ; Step 2: Calculate the initial position, and obtain the minimized transmission energy consumption based on the initialization parameters and the transmission energy consumption calculation formula; obtain the optimal power allocation and the optimal particle initial position based on the minimized transmission energy consumption , its optimal initial position Set to the global optimal initial position , the initial position of each particle Set to the individual optimal initial position ; Step 3: Update the particle position and particle velocity respectively to determine whether the position of each particle meets the constraint conditions. If so, update the particle position and velocity respectively; if not, randomly generate new particle positions and velocities. The particle velocity update formula is: ; The particle position update formula is: ; in represents the number of iterations, represents the inertia weight, and denote the learning factors of individual particles and the whole particle, respectively. and for A random number between Represents particles exist The individual optimal value at the iteration is Indicates that all particles are The global optimal value at the iteration is Represents particles exist The position at the iteration, Represents particles exist The speed at the iteration; Step 4: Select the fitness function of the particle swarm algorithm to determine the convergence speed and the optimal solution. Use the energy loss of transmission to define the fitness function. The fitness function can be expressed as: ; According to the fitness, the new global optimal initial position and the individual optimal initial position are updated: when hour, ;when hour, ; Step 5: Determine whether the iteration has reached the end condition; if it is met, output the optimal particle position; if not, return to step 3, and finally reduce the transmission energy consumption and optimize the power; The step (4) specifically includes the following steps: after determining the optimal power, since the MEC server at each base station can provide computing offloading services to multiple users at the same time, the computing resources shared by each MEC server for the associated users are quantified by the computing rate , each user uses the scheduling of computing resources on the edge server Indicates that and ; Ship users in the same area compete for the computing resources of the same micro base station to complete the request within the ideal delay, and propose a utility function based on service quality for: Utility function based on quality of service , characterizes the system's service quality performance, where is the total delay when processing at the edge server, represents the ideal delay to complete the task, Indicates the upper limit of the delay, ,At the edge, we define the system cost of task processing as: , is a user-defined constant to ensure The range is [0,1], represents the execution energy consumption at the edge; Given fixed computing resources, if the edge server cannot process all tasks in time, the ship user can choose to send the task request to the cloud for processing, and the edge system should pay for it; the additional cost of offloading to the cloud is defined as: ,in is a constant that represents the relative importance of service quality and execution energy consumption. represents the execution loss in the cloud; the joint request offloading and computing resource scheduling problem is formulated as a system efficiency maximization problem, and the total system efficiency is defined as: ; The step (5) uses a particle swarm algorithm to solve the system efficiency maximization problem, including the following steps: Step 1: Initialize the particle population, set the particle population size, and randomly generate the initial position of the particles , the initialization speed of each particle ; Step 2: Calculate the initial position, and get the maximum system efficiency based on the initialization parameters and the system total efficiency formula; get the optimal particle initial position based on the maximum system efficiency , its optimal initial position Set to the global optimal initial position , the initial position of each particle Set to the individual optimal initial position ; Step 3: Update the particle position and particle velocity respectively to determine whether the position of each particle meets the constraint conditions. If so, update the particle position and velocity respectively; if not, randomly generate new particle positions and velocities. The particle velocity update formula is: ; The particle position update formula is: ; in represents the number of iterations, represents the inertia weight, and denote the learning factors of individual particles and the whole particle, respectively. and for A random number between Represents particles exist The individual optimal value at the iteration is Indicates that all particles are The global optimal value at the iteration is Represents particles exist The position at the iteration, Represents particles exist The speed at the iteration; Step 4: Select the fitness function of the particle swarm algorithm to determine the convergence speed and the optimal solution. Use the energy loss of transmission to define the fitness function. The fitness function can be expressed as: ; According to the fitness, the new global optimal initial position and the individual optimal initial position are updated: when hour, ;when hour, ; Step 5: Determine whether the iteration has reached the end condition; if it has, output the optimal particle position; if not, return to step 3, and finally achieve the goal of increasing system performance, performing unloading optimization, and reasonable allocation of resources.
