Edge node deployment method and device, electronic equipment, storage medium and product

By constructing the target mathematical model and using the whale optimization algorithm, the optimal deployment position between the edge node and the base station is determined, which solves the access delay and load imbalance problems caused by unreasonable deployment of edge nodes, and achieves response delay and load balancing. optimization.

CN118540745APending Publication Date: 2024-08-23CHINA MOBILE GROUP DESIGN INST +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Unreasonable deployment locations of edge nodes lead to increased service access delays for mobile users and unbalanced workloads between edge nodes. There is a lack of reasonable deployment methods.

Method used

By obtaining the base station information of the business base station and the demand information of the edge nodes, the target mathematical model is constructed, combined with the response delay function and the load balancing function, and the whale optimization algorithm is used to determine the location prediction relationship between the edge node and the base station, and based on this, the optimal location prediction relationship is determined. Optimize deployment information to optimize response latency and load balancing.

Benefits of technology

Effectively reduce response delays, achieve load balancing of edge nodes, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540745A
    Figure CN118540745A
Patent Text Reader

Abstract

The invention provides an edge node deployment method and device, electronic equipment, a storage medium and a product, and the method comprises the steps: obtaining the base station information of a service base station, and determining the node demand information of the service base station for an edge node; wherein the node demand information at least comprises the demand number of edge nodes; determining a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function about a response time delay function and a load balancing function of the edge node, and the response time delay function is a function about a node position and a base station position; determining a position prediction relationship between each edge node and each base station; and determining target node access information under the condition that the optimal solution of the target mathematical model meets a preset constraint condition based on the position prediction relationship, and determining deployment information of the edge node based on the position prediction relationship and the target node access information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a method, device, electronic device, storage medium and product for deploying an edge node. Background Art

[0002] Currently, mobile users can send requests to edge nodes connected to the base station through the base station. The base station is responsible for processing each mobile user request, and the workload of the edge node is determined by the number of mobile user requests processed by the edge node.

[0003] The deployment location of edge nodes affects the access delay of mobile users and the resource utilization of edge nodes. The unreasonable deployment location of edge computing nodes will lead to increased service access delay for mobile users and unbalanced workloads between edge nodes. Therefore, in the mobile edge computing scenario, the reasonable deployment of edge nodes is an urgent problem to be solved. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a method, device, electronic device, storage medium and product for deploying an edge node.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for deploying an edge node, including:

[0006] Acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes;

[0007] Determine a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function of a response delay function and a load balancing function of the edge node, and the response delay function is a function of a node location and a base station location;

[0008] Determine the position prediction relationship between each edge node and each base station;

[0009] Based on the position prediction relationship, target node access information is determined when the optimal solution of the target mathematical model satisfies preset constraints, and based on the position prediction relationship and the target node access information, deployment information of the edge node is determined.

[0010] In an optional implementation manner, determining the position prediction relationship between each edge node and each base station includes:

[0011] Determine the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity through the whale optimization algorithm;

[0012] The position prediction relationship is determined based on the position relationship between the predicted position of each edge node and the position of each base station.

[0013] In an optional implementation, the determining the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity by using a whale optimization algorithm includes:

[0014] When the random probability value of the whale optimization algorithm is less than the preset probability threshold, and the absolute value of the current coefficient vector of the whale optimization algorithm is less than the preset coefficient vector threshold, the predicted position determined at the previous moment is updated by the surrounding prey algorithm in the whale optimization algorithm to obtain the predicted position.

[0015] In an optional implementation, the determining the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity by using a whale optimization algorithm includes:

[0016] When the random probability value of the whale optimization algorithm is less than the preset probability threshold and the absolute value of the coefficient vector of the whale optimization algorithm is greater than or equal to the preset coefficient vector threshold, the prey search algorithm in the whale optimization algorithm is used to update the predicted position determined at the previous moment to obtain the predicted position.

[0017] In an optional implementation, the determining the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity by using a whale optimization algorithm includes:

[0018] When the random probability value of the whale optimization algorithm is greater than or equal to a preset probability threshold, the hunting behavior algorithm in the whale optimization algorithm is used to update the predicted position determined at the last moment to obtain the predicted position.

[0019] In an optional implementation manner, the determining, based on the position prediction relationship, the target node access information when the optimal solution of the target mathematical model satisfies a preset constraint condition includes:

[0020] Based on the position prediction relationship and the base station position, generating at least one type of candidate node access information; wherein each type of candidate node access information is used to indicate an access relationship between an edge node and a base station;

[0021] For each type of candidate node access information, calculating a minimum solution of the target mathematical model;

[0022] When it is determined that there is an optimal solution satisfying the preset constraint condition in the minimum solution, the target node access information is determined based on the candidate node access information corresponding to the optimal solution.

[0023] In an optional implementation manner, the method further includes:

[0024] When it is determined that there is no optimal solution satisfying the preset constraint condition in the minimum solution, re-determine the position prediction relationship between each edge node and each base station to obtain a new position prediction relationship;

[0025] Based on the new position prediction relationship, the target node access information is determined when the optimal solution of the target mathematical model meets the preset constraints, and based on the position prediction relationship and the target node access information, the deployment information of the edge node is determined.

[0026] In an optional implementation manner, determining the target mathematical model by using the base station information and the demand information includes:

[0027] Constructing the response delay function based on the node position, the base station position, and a preset propagation speed between the edge node and the base station;

[0028] Constructing a load balancing function according to the resource utilization of the edge node and the average resource utilization of all the edge nodes;

[0029] The target mathematical model is determined based on the response delay function and the load balancing function.

[0030] In an optional implementation manner, the determining the node requirement information of the service base station for the edge node includes:

[0031] Obtaining the maximum load processing capacity of the edge node;

[0032] Based on the maximum load processing capability and the base station information, the required number of the edge nodes by the base station is determined.

[0033] In a second aspect, an embodiment of the present disclosure further provides a deployment device for an edge node, including:

[0034] An acquisition module, used to acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes;

[0035] A first determination module is used to determine a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function of a response delay function and a load balancing function of the edge node, and the response delay function is a function of a node location and a base station location;

[0036] A second determination module is used to determine the position prediction relationship between each edge node and each base station;

[0037] The third determination module is used to determine the target node access information when the optimal solution of the target mathematical model meets the preset constraints based on the position prediction relationship, and determine the deployment information of the edge node based on the position prediction relationship and the target node access information.

[0038] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.

[0039] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.

[0040] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which is stored in a storage medium and is executed by at least one processor to perform the steps in the above-mentioned first aspect, or any possible implementation of the first aspect.

[0041] In an embodiment of the present disclosure, first, the base station information of the service base station is obtained, and the node demand information of the service base station for the edge node is determined; wherein the node demand information includes at least the required number of edge nodes; secondly, the target mathematical model is determined through the base station information and the node demand information; wherein the target mathematical model is a response delay function and a load balancing function about the edge node, and the response delay function is a function about the node position and the base station position; secondly, the position prediction relationship between each edge node and each base station is determined; finally, based on the position prediction relationship, the target node access information is determined when the optimal solution of the target mathematical model meets the preset constraints, and based on the position prediction relationship and the target node access information, the deployment information of the edge node is determined.

[0042] In the above embodiment, the target mathematical model constructed by the base station information and the node demand information is a model of the response delay function and the load balancing function of the edge node. On the basis of the known position prediction relationship between each edge node and each base station, by determining the optimal solution of the target mathematical model to satisfy the preset constraints, the optimal solution that satisfies the response delay and load balancing can be obtained. Through the optimal solution that satisfies the constraints, the access relationship between the edge node and the base station under the optimal response delay and load balancing condition based on the position prediction relationship can be determined, thereby reducing the response delay while achieving load balancing of each edge node.

[0043] Determining the deployment information of edge nodes that meet the constraint conditions improves the user experience of users communicating with the base station.

[0044] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0046] Figure 1 A flow chart of a method for deploying an edge node provided by an embodiment of the present disclosure is shown;

[0047] Figure 2 A specific flow chart of the edge node deployment method provided by an embodiment of the present disclosure is shown;

[0048] Figure 3 A schematic diagram of a deployment device for edge nodes provided by an embodiment of the present disclosure is shown;

[0049] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0051] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0052] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0053] According to research, mobile users can send requests to edge nodes connected to the base station through the base station. The base station is responsible for processing each mobile user request, and the workload of the edge node is determined by the number of mobile user requests processed by the edge node.

[0054] The deployment location of edge nodes affects the access delay of mobile users and the resource utilization of edge nodes. The unreasonable deployment location of edge computing nodes will lead to increased service access delay for mobile users and unbalanced workloads between edge nodes. Therefore, in the mobile edge computing scenario, the reasonable deployment of edge nodes is an urgent problem to be solved.

[0055] Based on the above research, the present disclosure provides a method for deploying edge nodes, in which the target mathematical model constructed by base station information and node demand information is a model of the response delay function and load balancing function of the edge node. On the basis of the known position prediction relationship between each edge node and each base station, by determining the optimal solution of the target mathematical model that satisfies the preset constraints, the optimal solution that satisfies the response delay and load balancing can be obtained. Through the optimal solution that satisfies the constraints, the access relationship between the edge node and the base station under the optimal response delay and load balancing condition based on the position prediction relationship can be determined, thereby reducing the response delay while achieving load balancing of each edge node.

[0056] To facilitate understanding of this embodiment, a method for deploying an edge node disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the method for deploying an edge node provided in an embodiment of the present disclosure is generally an electronic device with certain computing capabilities. In some possible implementations, the method for deploying an edge node can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0057] See also Figure 1 FIG. 1 is a flow chart of a method for deploying edge nodes provided in an embodiment of the present disclosure, wherein the method includes steps S101 to S104, wherein:

[0058] S101. Acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes.

[0059] In the embodiment of the present disclosure, the service base station is one or more base stations required for the task to be performed, wherein the task to be performed includes the intelligent interconnection service provided by the cloud service provider to the user.

[0060] Here, the base station information includes but is not limited to base station location information, access volume of terminal devices, bandwidth, resource data of pending tasks, and demand data of pending tasks. Among them, the demand data of pending tasks includes expected response delay and expected load balancing value. Here, the node demand information can be determined based on the load information of each base station in the base station information.

[0061] The load information of the base station includes the current load capacity of the base station and the maximum load capacity that the base station can reach.

[0062] S102. Determine a target mathematical model based on base station information and node demand information; wherein the target mathematical model is a response delay function and a load balancing function of edge nodes, and the response delay function is a function of node locations and base station locations.

[0063] In the embodiments of the present disclosure, first, the response delay function of the edge node can be determined based on the base station location information in the base station information and the node location information of the edge node. Secondly, the load balancing function can be determined based on the resource utilization and node demand information of each edge node. Finally, the target mathematical model can be determined based on the response delay function and the load balancing function.

[0064] Here, the load balancing function may be determined based on the resource utilization of each edge node and the required number of edge nodes in the node requirement information.

[0065] Here, the target mathematical model may be a mixed-integer linear programming (MILP) model. Here, when the target mathematical model is a mixed-integer linear programming model, the constraints may be the following conditions:

[0066] Each edge node can only access one base station at a time;

[0067] Each edge node needs to be connected to the base station;

[0068] Each base station is accessed by at least one edge node. In other words, one base station can be accessed by multiple edge nodes.

[0069] S103: Determine the position prediction relationship between each edge node and each base station.

[0070] In an embodiment of the present disclosure, the position prediction relationship between each edge node and each base station may be determined based on a whale optimization algorithm.

[0071] Here, first, the position vector of each edge node relative to each base station can be determined based on the whale optimization algorithm; wherein the position vector is the distance vector of each edge node relative to each base station. Secondly, the distance of each edge node relative to each base station can be determined based on the position vector of each edge node relative to each base station. Finally, the position prediction relationship between each edge node and each base station can be determined based on the distance of each edge node relative to each base station.

[0072] The position prediction relationship between the edge node and the base station can be understood as the position of the edge node relative to the base station. Here, the deployment position of each edge node can be determined based on the position of each edge node relative to each base station.

[0073] S104, determining target node access information when an optimal solution of the target mathematical model satisfies preset constraints based on the position prediction relationship, and determining edge node deployment information based on the position prediction relationship and the target node access information.

[0074] In the embodiments of the present disclosure, at least one node access relationship may be pre-listed, wherein each node access relationship is used to indicate a possible connection relationship between an edge node and a base station under a current position prediction relationship. Here, at least one node access relationship may be understood as candidate node access information in the following implementation.

[0075] Here, based on the location prediction relationship, a node access relationship in which the optimal solution of the target mathematical model satisfies preset constraints can be determined in at least one node access relationship as the target node access information.

[0076] When the target node access information is determined, the edge node is deployed to the deployment position corresponding to the position prediction relationship. In addition, each edge node is connected to the corresponding base station according to the node access relationship indicated in the target node access information.

[0077] In an embodiment of the present disclosure, first, the base station information of the service base station is obtained, and the node demand information of the service base station for the edge node is determined; wherein the node demand information includes at least the required number of edge nodes; secondly, the target mathematical model is determined through the base station information and the node demand information; wherein the target mathematical model is a response delay function and a load balancing function about the edge node, and the response delay function is a function about the node position and the base station position; secondly, the position prediction relationship between each edge node and each base station is determined; finally, based on the position prediction relationship, the target node access information is determined when the optimal solution of the target mathematical model meets the preset constraints, and based on the position prediction relationship and the target node access information, the deployment information of the edge node is determined.

[0078] In the above embodiment, the target mathematical model constructed by the base station information and the node demand information is a model of the response delay function and the load balancing function of the edge node. On the basis of the known position prediction relationship between each edge node and each base station, by determining the optimal solution of the target mathematical model to satisfy the preset constraints, the optimal solution that satisfies the response delay and load balancing can be obtained. Through the optimal solution that satisfies the constraints, the access relationship between the edge node and the base station under the optimal response delay and load balancing condition based on the position prediction relationship can be determined, thereby reducing the response delay while achieving load balancing of each edge node.

[0079] In an optional embodiment, the above steps of determining the position prediction relationship between each edge node and each base station specifically include the following steps:

[0080] First, the predicted location of the edge node is determined within the coverage of the base station based on the base station location and the number of demands through the whale optimization algorithm;

[0081] Then, based on the positional relationship between the predicted position of each edge node and the position of each base station, a position prediction relationship is determined.

[0082] In an embodiment of the present disclosure, the position prediction relationship can be determined by the following steps. First, the position vector between each edge node and each base station (i.e., the predicted position of the edge node) can be determined by the whale optimization algorithm. Then, the position prediction relationship can be determined based on the position vector between each edge node and each base station.

[0083] Here, when the coverage of each base station is the same, the coverage of the base station can be determined according to the base station location. Here, based on the base station location and the demand quantity, constraints can be imposed in the process of determining the predicted position of the edge node by the whale optimization algorithm so that the obtained predicted position is within the coverage of the base station.

[0084] Here, the whale optimization algorithm includes multiple algorithm modes. Among them, the predicted position of the edge node can be determined by any algorithm mode. Here, the algorithm modes in the whale optimization algorithm include: "encirclement behavior", "hunting behavior" and "search behavior".

[0085] In an optional embodiment, the above steps determine the predicted position of the edge node within the coverage of the base station based on the base station position and the required quantity through the whale optimization algorithm, and specifically include the following steps:

[0086] When the random probability value of the whale optimization algorithm is less than the preset probability threshold, and the absolute value of the current coefficient vector of the whale optimization algorithm is less than the preset coefficient vector threshold, the predicted position determined at the previous moment is updated by the surrounding prey algorithm in the whale optimization algorithm to obtain the predicted position.

[0087] In an embodiment of the present disclosure, a preset probability threshold and a coefficient vector are used to select an algorithm mode in the whale optimization algorithm.

[0088] Here, the preset probability threshold determines the switching strategy of the whale optimization algorithm between global search (i.e., hunting behavior) and local search (i.e., encirclement behavior or search behavior). Specifically, the value of the preset probability threshold will affect the mode and efficiency of the whale optimization algorithm.

[0089] Here, the preset probability threshold p i Set to p i = 0.5, the whale optimization algorithm maintains a balance between global search and local search. This setting ensures that the algorithm can explore new areas of the solution space and perform local search to refine the solution when necessary. This balance strategy enables the algorithm to adapt to different types of optimization problems while maintaining a certain search efficiency and solution quality.

[0090] Here, when the preset probability threshold pi is set to pi < 0.5, the whale optimization algorithm is more inclined to perform global search. In more cases, the whale optimization algorithm will choose to explore new areas of the solution space instead of performing local search near the current optimal solution. This strategy is suitable for problems with large and complex solution spaces, and helps prevent the whale optimization algorithm from falling into a local optimal solution too early.

[0091] Here, when the preset probability threshold pi is set to pi>0.5, the algorithm is more inclined to perform local search. The whale optimization algorithm focuses more on finding a better solution near the current optimal solution, which can speed up the convergence of the whale optimization algorithm, especially when the solution space is relatively simple or the known optimal solution is near the current solution. However, this strategy may increase the risk of the algorithm falling into the local optimal solution, thus failing to find the true global optimal solution.

[0092] For example, the preset probability threshold p i Set to p i =0.5. Set the coefficient vector threshold to 1. The random probability p∈[0,1] of the whale optimization algorithm, the coefficient vector A∈[a,-a]. Where a is a linear coefficient, and the value of a decreases linearly from 2 to 0 as the number of iterations of the whale optimization algorithm increases. This allows the whale optimization algorithm to adopt different algorithm modes at different stages as the number of iterations increases, so that the search behavior of the whale optimization algorithm can transition from global search to local search.

[0093] Here, the coefficient vector A meets the following conditions:

[0094] A=2ar-a; wherein r is a random number in the range of 0 to 1.

[0095] Here, the decreasing value △a of each iteration of the linear coefficient meets the following conditions:

[0096] △a=2-2t / T max ; where t is the current iteration number, T max The maximum number of iterations for the whale optimization algorithm.

[0097] Here, in the current iteration, p<p i , and |A|<1, the predicted position determined at the last moment (that is, the predicted position calculated in the last iteration) is updated through the algorithm mode of surrounding the prey in the whale optimization algorithm.

[0098] Among them, the predicted position X(s, b, t+1) of the edge node s relative to the base station b determined at the current moment meets the following conditions:

[0099] X(s,b,t+1)=X *(s, b, t)-A*D;

[0100] Among them, X * (s, b, t) is the predicted position of edge node s relative to base station b determined at the previous moment, s ranges from 1 to M, b ranges from 1 to B, M is the required number of edge nodes, B is the number of service base stations, and D is the target coefficient.

[0101] Here, the target coefficient D meets the following conditions:

[0102] D=|CX * (s, b, t)-X(s, b, t+1)|; wherein C=2r.

[0103] In an optional embodiment, the above steps determine the predicted position of the edge node within the coverage of the base station based on the base station position and the required quantity through the whale optimization algorithm, and specifically include the following steps:

[0104] When the random probability value of the whale optimization algorithm is less than the preset probability threshold and the absolute value of the coefficient vector of the whale optimization algorithm is greater than or equal to the preset coefficient vector threshold, the algorithm mode of searching for prey in the whale optimization algorithm is used to update the predicted position determined at the previous moment to obtain the predicted position.

[0105] In the embodiment of the present disclosure, in the current iteration calculation p<p i , and |A|≥1, the predicted position determined at the last moment (that is, the predicted position calculated at the last iteration) is updated by the prey search algorithm in the whale optimization algorithm. Among them, the predicted position X(s, b, t+1) of the edge node s relative to the base station b determined at the current moment meets the following conditions:

[0106] X(s,b,t+1)=X rand (s, b, t)-A*|C*X rand -X * (s, b, t)|;

[0107] Among them, X rand (s, b, t) is the position vector of the sth edge node randomly selected in the tth iteration relative to the bth base station.

[0108] Here, the position of the edge node is updated according to the position vector of the randomly selected edge node relative to each base station, so that the edge node can deviate from the base station accessed in the last iterative calculation, thereby finding a more suitable access base station.

[0109] In an optional embodiment, the above steps determine the predicted position of the edge node within the coverage of the base station based on the base station position and the required quantity through the whale optimization algorithm, and specifically include the following steps:

[0110] When the random probability value of the whale optimization algorithm is greater than or equal to the preset probability threshold, the hunting behavior algorithm in the whale optimization algorithm is used to update the predicted position determined at the last moment to obtain the predicted position.

[0111] In the embodiment of the present disclosure, in the current iteration, p≥p i In the case of , the predicted position determined at the last moment (that is, the predicted position calculated at the last iteration) is updated by the search and hunting algorithm in the whale optimization algorithm. Among them, the predicted position X(s, b, t+1) of the edge node s relative to the base station b determined at the current moment meets the following conditions:

[0112] X(s, b, t+1) = |X * (s,b,t)-X(s,b,t)|*e hl *cos(2πl)+X *

[0113] (s, b, t).

[0114] Wherein, X(s, b, t) is the position vector between the sth edge node and the bth base station determined at the last moment, h is a constant that can be set to 1, and l is a random number between 1 and -1.

[0115] Here, in the whale optimization algorithm, each edge node can be regarded as a whale, and each base station can be regarded as a prey.

[0116] In an optional implementation, the above step determines the target node access information when the optimal solution of the target mathematical model satisfies the preset constraint conditions based on the position prediction relationship, specifically including the following steps:

[0117] First, based on the position prediction relationship and the base station position, at least one candidate node access information is generated; wherein each candidate node access information is used to indicate the access relationship between the edge node and the base station;

[0118] Then, for each candidate node access information, the minimum solution of the target mathematical model is calculated;

[0119] Finally, when it is determined that there is an optimal solution satisfying the preset constraint condition in the minimum solution, the target node access information is determined based on the candidate node access information corresponding to the optimal solution.

[0120] In an embodiment of the present disclosure, the position prediction relationship may be determined based on the whale optimization algorithm. After the position prediction relationship is determined, the position prediction relationship and the base station position may be input into the target mathematical model.

[0121] Here, the target mathematical model can calculate the corresponding solution for each candidate node access information, location prediction relationship and base station location.

[0122] Here, among the solutions corresponding to the candidate node access information calculated, a minimum solution may be selected, and it is determined whether the minimum solution is less than a preset threshold. If the minimum solution is less than the preset threshold, the minimum solution is taken as the optimal solution, and the candidate node access information corresponding to the optimal solution is determined as the target node access information.

[0123] Here, the smaller the solution corresponding to the candidate node access information is, the shorter the response time between each edge node and the corresponding access base station in the candidate node access information is; and the closer the load levels of each edge node are, the more the load balancing condition is met.

[0124] In an optional embodiment, based on the above embodiment, the method further includes the following steps:

[0125] Firstly, when it is determined that there is no optimal solution satisfying the preset constraint condition in the minimum solution, the position prediction relationship between each edge node and each base station is re-determined to obtain a new position prediction relationship;

[0126] Secondly, based on the new position prediction relationship, the optimal solution of the target mathematical model is determined to meet the target node access information under the condition of preset constraints, and the deployment information of the edge node is determined based on the position prediction relationship and the target node access information.

[0127] In the embodiment of the present disclosure, when the minimum solution is greater than or equal to the preset threshold, it is determined that there is no optimal solution that satisfies the preset constraint condition in the minimum solution. At this time, the position prediction relationship at the previous moment (i.e., the last iteration moment) can be updated according to the whale optimization algorithm to obtain the position prediction relationship at the current moment (i.e., the new position prediction relationship).

[0128] Here, when the minimum solution is greater than or equal to the preset threshold and the number of updates (i.e., the number of iterations) is the maximum number of iterations, the update process of the location prediction relationship at the previous moment is stopped. The minimum solution among the solutions corresponding to the candidate node access information of the location prediction relationship at each historical moment can be used as the optimal solution.

[0129] In an optional embodiment, the above steps determine the target mathematical model through the base station information and the demand information, and specifically include the following steps:

[0130] First, a response delay function is constructed based on the node location, base station location, and the propagation speed between the edge node and the base station.

[0131] Secondly, a load balancing function is constructed based on the resource utilization of edge nodes and the average resource utilization of all edge nodes;

[0132] Finally, the target mathematical model is determined based on the response delay function and the load balancing function.

[0133] In an embodiment of the present disclosure, the response delay function Latency(s, b) between the sth edge node and the bth base station meets the following conditions:

[0134] Latency(s,b)=D(s,b) / speed; where D(s,b) is the distance between the sth edge node and the bth base station.

[0135] Here, D(s, b) meets the following conditions:

[0136] Among them, x b is the horizontal coordinate of the bth base station, y b is the ordinate of the b-th base station, x s is the horizontal coordinate of the sth edge node, y s is the ordinate of the sth edge node. That is, the position coordinate of base station b is (x b ,y b ), the position coordinates of the edge node s are (x s ,y s ).

[0137] Here, the load balancing function LB meets the following conditions:

[0138] u s is the resource utilization of the sth edge node, is the average utilization of M edge nodes.

[0139] In the embodiment of the present disclosure, in order to obtain the optimal deployment information of the edge nodes, the target mathematical model also includes the following constraints:

[0140]

[0141] ∪ s∈M E s =M;

[0142] Among them, E s represents the set of base stations accessed by the sth edge node, E krepresents the set of base stations to which the kth edge node accesses, where s≠k and the value range of k is 1 to M.

[0143] here, Used to indicate that there are no two or more edge nodes connected to the same base station; s∈M E s =M is ​​used to indicate that each service base station has an edge node access (ie, the deployed edge nodes cover all base stations in the network), and each edge node is connected to at least one base station.

[0144] Here, the target mathematical model can be determined based on the above response delay function Latency(s, b), load balancing function LB and constraints. The target mathematical model meets the following conditions:

[0145]

[0146] Among them, ω is the weight value, which is used to determine the influence of the response delay function and the task load function on the target mathematical model, x sb Used to indicate whether the sth edge node is connected to the bth base station, x sb =1 means that the sth edge node is connected to the bth base station, x sb =0 indicates that the sth edge node is not connected to the bth base station.

[0147] In the above embodiment, a one-to-one relationship between the base station and the edge node is ensured, and there is no duplicate allocation or non-allocation. Such constraints are to ensure the consistency and effectiveness of the system, so as to maintain a reasonable allocation of edge nodes while balancing the service load and minimizing the access delay.

[0148] In an optional embodiment, the above step of determining the node requirement information of the service base station for the edge node specifically includes the following steps:

[0149] First, obtain the maximum load handling capacity of the edge node;

[0150] Then, based on the maximum load processing capability and base station information, the number of edge nodes required by the base station is determined.

[0151] In the embodiment of the present disclosure, the maximum load processing capability of each edge node is the same. The number of edge nodes required by the base station can be determined based on the maximum load processing capability and the task load of the base station in the base station information of the base station.

[0152] Here, the demand quantity M meets the following conditions:

[0153]

[0154] Where fb is the task load of the bth base station, fmax is the maximum load handling capacity of the edge node, and ε is the redundancy coefficient. The larger the ε, the higher the robustness of the network.

[0155] See also Figure 2 As shown, it is a specific flow chart of the edge node deployment method provided by the embodiment of the present disclosure, wherein:

[0156] S10: Acquire base station information of a service base station, and determine node requirement information of the service base station for edge nodes according to the base station information.

[0157] S20. Determine a target mathematical model through base station information and node demand information.

[0158] S30. Based on the base station location and demand quantity, the predicted location of the edge node is updated within the coverage of the base station through the whale optimization algorithm.

[0159] S40: Input the predicted position of the edge node, base station information and node demand information into the target mathematical model to generate at least one candidate node access information.

[0160] S50: Calculate the minimum solution of the target mathematical model for each candidate node access information.

[0161] S60: Determine whether there is an optimal solution that satisfies preset constraints in the minimum solution.

[0162] S70: When it is determined that there is no optimal solution satisfying the preset constraint condition in the minimum solution, re-update the predicted position of the edge node to obtain a new predicted position.

[0163] S80: When it is determined that there is an optimal solution satisfying the preset constraint condition in the minimum solution, determine the target node access information based on the candidate node access information corresponding to the optimal solution.

[0164] S90: Determine deployment information of the edge node based on the location prediction relationship corresponding to the target node access information and the target node access information.

[0165] In the above embodiment, the target mathematical model constructed by the base station information and the node demand information is a model of the response delay function and the load balancing function of the edge node. On the basis of the known position prediction relationship between each edge node and each base station, by determining the optimal solution of the target mathematical model to satisfy the preset constraints, the optimal solution that satisfies the response delay and load balancing can be obtained. Through the optimal solution that satisfies the constraints, the access relationship between the edge node and the base station under the optimal response delay and load balancing condition based on the position prediction relationship can be determined, thereby reducing the response delay while achieving load balancing of each edge node.

[0166] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0167] Based on the same inventive concept, an edge node deployment device corresponding to the edge node deployment method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned edge node deployment method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0168] Reference Figure 3 FIG. 1 is a schematic diagram of a deployment device for edge nodes provided by an embodiment of the present disclosure, wherein the device comprises: an acquisition module 11, a first determination module 12, a second determination module 13, and a third determination module 14; wherein:

[0169] An acquisition module, used to acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes;

[0170] A first determination module is used to determine a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function of a response delay function and a load balancing function of the edge node, and the response delay function is a function of a node location and a base station location;

[0171] A second determination module is used to determine the position prediction relationship between each edge node and each base station;

[0172] The third determination module is used to determine the target node access information when the optimal solution of the target mathematical model meets the preset constraints based on the position prediction relationship, and determine the deployment information of the edge node based on the position prediction relationship and the target node access information.

[0173] The target mathematical model constructed by the embodiment of the present disclosure through base station information and node demand information is a model of the response delay function and load balancing function of the edge node. On the basis of the known position prediction relationship between each edge node and each base station, by determining the optimal solution of the target mathematical model to meet the preset constraints, the optimal solution that meets the response delay and load balancing can be obtained. Through the optimal solution that meets the constraints, the access relationship between the edge node and the base station under the optimal response delay and load balancing based on the position prediction relationship can be determined, thereby reducing the response delay while achieving load balancing of each edge node.

[0174] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0175] Corresponds to Figure 1 The embodiment of the present disclosure also provides an electronic device 400, such as Figure 4 FIG. 4 is a schematic diagram of the structure of an electronic device 400 provided in an embodiment of the present disclosure, including:

[0176] Processor 41, memory 42, and bus 43; memory 42 is used to store execution instructions, including internal memory 421 and external memory 422; the internal memory 421 is also called internal memory, which is used to temporarily store the operation data in the processor 41 and the data exchanged with the external memory 422 such as a hard disk. The processor 41 exchanges data with the external memory 422 through the internal memory 421. When the electronic device 400 is running, the processor 41 communicates with the memory 42 through the bus 43, so that the processor 41 executes the following instructions:

[0177] Acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes;

[0178] Determine a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function of a response delay function and a load balancing function of the edge node, and the response delay function is a function of a node location and a base station location;

[0179] Determine the position prediction relationship between each edge node and each base station;

[0180] Based on the position prediction relationship, target node access information is determined when the optimal solution of the target mathematical model satisfies preset constraints, and based on the position prediction relationship and the target node access information, deployment information of the edge node is determined.

[0181] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the edge node deployment method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0182] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the edge node deployment method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0183] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0184] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0185] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0187] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0188] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for deploying edge nodes, It is characterized in that include: Acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes; Determine a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function of a response delay function and a load balancing function of the edge node, and the response delay function is a function of a node location and a base station location; Determine the position prediction relationship between each edge node and each base station; Based on the position prediction relationship, target node access information is determined when the optimal solution of the target mathematical model satisfies preset constraints, and based on the position prediction relationship and the target node access information, deployment information of the edge node is determined.

2. The method according to claim 1, It is characterized in that The determining of the position prediction relationship between each edge node and each base station includes: Determine the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity through the whale optimization algorithm; The position prediction relationship is determined based on the position relationship between the predicted position of each edge node and the position of each base station.

3. The method according to claim 2, It is characterized in that The step of determining the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity by using the whale optimization algorithm includes: When the random probability value of the whale optimization algorithm is less than the preset probability threshold, and the absolute value of the current coefficient vector of the whale optimization algorithm is less than the preset coefficient vector threshold, the predicted position determined at the previous moment is updated by the surrounding prey algorithm in the whale optimization algorithm to obtain the predicted position.

4. The method according to claim 2, It is characterized in that The step of determining the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity by using the whale optimization algorithm includes: When the random probability value of the whale optimization algorithm is less than the preset probability threshold and the absolute value of the coefficient vector of the whale optimization algorithm is greater than or equal to the preset coefficient vector threshold, the prey search algorithm in the whale optimization algorithm is used to update the predicted position determined at the previous moment to obtain the predicted position.

5. The method according to claim 2, It is characterized in that The step of determining the predicted position of the edge node within the coverage of the base station based on the base station position and the demand quantity by using the whale optimization algorithm includes: When the random probability value of the whale optimization algorithm is greater than or equal to a preset probability threshold, the hunting behavior algorithm in the whale optimization algorithm is used to update the predicted position determined at the last moment to obtain the predicted position.

6. The method according to claim 1, It is characterized in that The determining, based on the position prediction relationship, the target node access information when the optimal solution of the target mathematical model satisfies a preset constraint condition comprises: Based on the position prediction relationship and the base station position, generating at least one type of candidate node access information; wherein each type of candidate node access information is used to indicate an access relationship between an edge node and a base station; For each type of candidate node access information, calculating a minimum solution of the target mathematical model; When it is determined that there is an optimal solution satisfying the preset constraint condition in the minimum solution, the target node access information is determined based on the candidate node access information corresponding to the optimal solution.

7. The method according to claim 6, It is characterized in that The method further comprises: When it is determined that there is no optimal solution satisfying the preset constraint condition in the minimum solution, re-determine the position prediction relationship between each edge node and each base station to obtain a new position prediction relationship; Based on the new position prediction relationship, the target node access information is determined when the optimal solution of the target mathematical model meets the preset constraints, and based on the position prediction relationship and the target node access information, the deployment information of the edge node is determined.

8. The method according to claim 1, It is characterized in that The determining of the target mathematical model by using the base station information and the demand information includes: Constructing the response delay function based on the node position, the base station position, and a preset propagation speed between the edge node and the base station; Constructing a load balancing function according to the resource utilization of the edge node and the average resource utilization of all the edge nodes; The target mathematical model is determined based on the response delay function and the load balancing function.

9. The method according to claim 1, It is characterized in that The determining node requirement information of the service base station for the edge node includes: Obtaining the maximum load processing capacity of the edge node; Based on the maximum load processing capability and the base station information, the required number of the edge nodes by the base station is determined.

10. A deployment device for edge nodes, It is characterized in that include: An acquisition module, used to acquire base station information of a service base station, and determine node demand information of the service base station for edge nodes; wherein the node demand information at least includes the required number of edge nodes; A first determination module is used to determine a target mathematical model through the base station information and the node demand information; wherein the target mathematical model is a function of a response delay function and a load balancing function of the edge node, and the response delay function is a function of a node location and a base station location; A second determination module is used to determine the position prediction relationship between each edge node and each base station; The third determination module is used to determine the target node access information when the optimal solution of the target mathematical model meets the preset constraints based on the position prediction relationship, and determine the deployment information of the edge node based on the position prediction relationship and the target node access information.

11. An electronic device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the edge node deployment method as described in any one of claims 1 to 9 are performed.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the edge node deployment method according to any one of claims 1 to 9 are executed.

13. A computer program product, It is characterized in that The computer program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the edge node deployment method according to any one of claims 1 to 9.