An active cache decision method based on prior knowledge in Internet of Vehicles
By introducing an active caching decision-making method driven by prior knowledge in the Internet of Vehicles, and using dynamic time graph network and DDPG algorithm to optimize the cache location, the problem of low utilization efficiency of cache resources in the Internet of Vehicles is solved, and high response rate and low cost are achieved. Caching scheme.
Patent Information
- Application Number
- CN202311360618.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-10-20
AI Technical Summary
In the Internet of Vehicles, the problem of caching content requested by mobile users is complex. It is difficult for existing technologies to effectively utilize edge server resources to meet the requirements of low latency and high response rate while ensuring the quality of user experience.
An active cache decision-making method driven by prior knowledge is proposed. By constructing a joint edge cache architecture model, using node clustering and a dynamic time graph network of semantic virtual edges to predict popularity and characteristics, a request cache placement that maximizes cache benefits is constructed. Strategy, the DDPG algorithm is used to optimize the cache location.
It improves the user response rate, reduces the request cost, rationally utilizes edge server resources, and improves the quality of service experience.
Smart Images

Figure CN117460001B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of mobile communication technology, and in particular relates to an active cache decision method driven by prior knowledge in a vehicle network. Background Art
[0002] With the widespread adoption of various mobile applications, the traffic in wireless networks is growing at an exponential rate, which has brought a great burden to the mobile core network and backhaul links. Solutions for the 5G core network include software-defined networks, network function virtualization, and mobile edge computing (MEC). MEC enables the edge to have computing functions, and mobile edge caching is one of the typical applications of MEC. It enables edge servers to have cache storage functions so that they can be used as cache nodes to store popular content requested by users, greatly reducing the waiting time for retrieving content and avoiding repeated transmissions from content servers to additional cache network nodes. Edge caching of requested content can ease the burden on the backhaul link and reduce traffic load. In addition, as storage costs decrease, deploying caches at the wireless edge becomes more cost-effective.
[0003] Since mobile users' requests are highly dynamic and intensive, and the resources of cache servers are limited, where to cache, how to cache, and what to cache are key issues in mobile edge caching. To solve this problem, we need to consider how to select appropriate cache indicators and design a reasonable cache solution. The cache indicator determines what content to cache, and its selection must be consistent with the characteristics of the request content itself and the characteristics of the end user; the cache solution determines how to cache and where to cache, and its design must consider the resource issues of the cache server and the requirements of low cost and high response rate of the end user.
[0004] Therefore, for the highly dynamic requests of mobile users in the Internet of Vehicles, there is an urgent need for a method to cache the request content to ensure the rational use of edge server resources and to meet the user's service experience quality while ensuring the system's low latency and high response rate. Summary of the invention
[0005] The present invention proposes an active caching decision method based on prior knowledge in the Internet of Vehicles. From the perspective of active caching, prior knowledge is introduced to actively cache the request content of mobile users in the Internet of Vehicles, and a reasonable cache location is found for the request content.
[0006] The technical solution of the present invention is as follows:
[0007] An active cache decision method based on prior knowledge in an Internet of Vehicles includes the following steps:
[0008] Step 1: Build a joint edge cache architecture model in the Internet of Vehicles consisting of vehicles, users, and edge nodes;
[0009] Step 2: Predict popularity and features using a dynamic time graph network based on node clustering and semantic virtual edges;
[0010] Step 3: Construct a request cache placement strategy that maximizes cache benefits based on request semantic information.
[0011] Furthermore, in the joint edge cache architecture model in the Internet of Vehicles, there are L edge nodes B all within the coverage of the cloud server, and each edge node contains a content-centric framework and an edge mobile computing server; the coverage of each edge node includes multiple vehicles v and multiple users u, and the vehicles and users are collectively referred to as end users; suppose that the end user generates a total of G request contents g, and the total request content set composed of G request contents g is G = {g1,g2,…,g G}, the G request contents include W content download requests f and J task computing requests k; the content download request set composed of W content download requests f is F = {f1,f2,…,f W}; The task computing request set consisting of J task computing requests k is K = {k1, k2, …k J};
[0012] Content download request Among them I f is the name of the content download request f, is the tolerable delay of content download request f, S f is the data size of the content download request f, is the cache delay required by the content download request f; task computing request Among them I k is the name of the task computation request k, is the tolerable delay of task computation request k, S k is the data size of task computation request k, ψ k is the computing resource required for task computing request k, is the cache delay required for task computation request k.
[0013] Furthermore, the specific process of step 2 is:
[0014] Step 2.1: Assume that in the current time slot, the i-th edge node B i The user set at i∈[1,L], is the i-th edge node B iThe Mth user at the location; use the similarity concept to weigh the similarity between two different users on multiple features, find the D users with the smallest similarity, take the D users with the smallest similarity as the center of the cluster, and then use the K-means algorithm to cluster according to the characteristics of each user. Clustering is performed, and the user groups after clustering are D≤M, is the Dth user group node; the i-th edge node B i In advance, from the jth edge node B j Get the next time slot to arrive at B i New user set is the jth edge node B j The Mth user at the location, and then according to the user characteristics Clustering into U group ;if There is a new user u n andu n The characteristics do not meet U group , then according to the grouping characteristics of the new user u n The characteristics of u n Clustering into new user groups r represents the number of new user groups, r≤M;
[0015] Step 2.2: The clustered user group is used as the user group node U, and the requested content g is directly used as the request node g; when the user group requests content, a request edge e is established between U and g. gU ; Calculate the Request Node and Request Node The semantic similarity between nodes is calculated and a semantic similarity threshold is pre-set. When the semantic similarity is greater than the threshold, a semantic virtual edge is constructed between the requesting nodes. Finally, based on the user group node U, the request node g, and the request edge e gU and semantic virtual edges Complete the construction of the request graph;
[0016] Step 2.3: Input the request graph into the temporal graph network to predict popularity. The temporal graph network predicts the request node g based on the semantic virtual edge. Semantic and non-neighbor user group node U Non-neighbours The popularity of the new edge generated between Semantic ,U Non-neighbours )|t), based on the node memory prediction request node g Node and neighbor user group node U Neighbours The popularity of the old edge generated between Node ,UNeighbours )|t), update the node memory according to the freshness of the information. The calculation formula for freshness is: t is the current time, Is a node At the time of the last request, nodes with a freshness greater than the freshness threshold are selected to update the node memory; the selected node information is weighted, and the greater the freshness, the heavier the weight;
[0017] At the same time, the time graph network is used to predict the characteristics of the request node, including the predicted usage time Predicted usage times and the number of prediction requests Assume the request node memory is in is the name of the requesting node g, T g is the historical usage time set of the requesting node g, N g is the historical request count set of the requesting node g, U g is the historical usage count set of the request node g, and then s g Input to the decoder to get the feature z of the requested node g(t) ;
[0018] After the temporal graph network simultaneously outputs the predicted popularity and predicted node features, they are compared with the true values, and the loss function is used for back propagation to update the parameters in the temporal graph network.
[0019] Furthermore, the specific process of step 3 is:
[0020] Step 3.1: Build a cache benefit function based on request semantic information;
[0021] Step 3.2: Construct a content download request process model;
[0022] Step 3.3, construct the task computing request process model;
[0023] Step 3.4: Delete the historical cached request content and re-cache it according to the real environment information;
[0024] Step 3.5: Determine the target optimization problem and solve it;
[0025] Step 3.6: Use the DDPG-based active caching method to select the most appropriate cache placement location for the predicted request content.
[0026] Furthermore, in step 3.1, the cache benefit function is specifically divided into the following four cases:
[0027] Case 1: The content download request cache benefit function related to the content download request f and the predicted request number is
[0028]
[0029] Among them, ω p is the weighting factor for predicting popularity; p f is the predicted popularity of content download request f in the next time slot; T f is the minimum delay for downloading content request f; E f is the minimum energy consumption of downloading content request f; is the predicted number of requests for content download request f; ω T and ω E denote the weighting factors of traffic load and delay cost respectively;
[0030] Case 2: The content download request cache benefit function related to the predicted usage time of the content download request f is
[0031]
[0032] in, is the predicted usage duration of the content download request f;
[0033] Case 3: The task calculation request k is related to the number of predicted requests. The cache benefit function of the task calculation request is:
[0034]
[0035] Among them, p k Calculate the predicted popularity of request k in the next time slot for task; is the predicted number of requests for task computation request k; T k is the minimum delay of the computing task; E k is the minimum energy consumption of the computing task;
[0036] Case 4: The task computing request k is related to the predicted usage times. The cache benefit function of the task computing request is:
[0037]
[0038] in, is the predicted usage count of task computation request k.
[0039] Furthermore, in step 3.2, the calculation process of the content download request process model is:
[0040] Step 3.2.1: When the terminal user sends a content download request f, first determine whether the content can be found in vehicle v. If so, then the vehicle cache hit decision If it is 1, the vehicle directly outputs f; if not, go to step 3.2.2 for judgment;
[0041] Step 3.2.2: Determine whether the content can be found at edge node B. If so, the edge node cache hit decision is made. is 1, vehicle v directly downloads f from edge node B. At this time, the request delay of edge node cache hit is The propagation load of edge node cache hits is V Bv is the communication rate between vehicle v and edge node B, p Bv is the transmission power between vehicle v and edge node B, β is the unit price of energy consumption; if not, proceed to step 3.2.3 for judgment;
[0042] Step 3.2.3: Determine whether request aggregation occurs. If so, first determine whether vehicle aggregation occurs. If vehicle aggregation occurs, then make a vehicle aggregation decision. is 1, then the request delay of vehicle aggregation is The propagation load of vehicle aggregation is V v is the communication rate between vehicles, p v is the transmission power between vehicle v and vehicle v; if vehicle aggregation does not occur, it is determined whether edge node aggregation occurs; if edge node aggregation occurs, the edge node aggregation decision is 1, and the request delay of edge node aggregation is The aggregated propagation load of edge nodes is is the vehicle v and the adjacent edge node B neighbour The communication rate between is vehicle v and B neighbour If edge node aggregation does not occur, the forwarding information base will forward f to the cloud server, and the forwarding decision h for is 1, and the forwarding download delay is T C =S f / V C , the forwarded propagation load is E C =βp C T C , V C is the communication rate between the vehicle and the cloud server, p C is the transmission power between vehicle v and the cloud server.
[0043] Furthermore, in step 3.3, the calculation process of the task calculation request process model is:
[0044] Step 3.3.1: The end user sends a task computation request k, and first determines whether the content can be found in the vehicle v. If so, the vehicle cache hit decision is made. If it is 1, the vehicle directly outputs k; if not, it goes to step 3.3.2;
[0045] Step 3.3.2: Determine whether the content can be found at edge node B. If so, the edge node cache hit decision is made. If it is 1, the edge node transmits the result to the vehicle; if not, the size of the task, the tolerance delay and other characteristics will be input into DDPG, and the calculation decision about k will be output. and caching decisions Then proceed to step 3.3.3; DDPG is a deep deterministic policy gradient algorithm;
[0046] Step 3.3.2, judgment If the value of k is calculated locally, and the local delay is The local energy consumption is ψ k is the allocated computing resources, ψ v is the computing resource allocated to vehicle v; if k is offloaded to the edge node for computation, and the offloading delay of k is The unloading energy consumption of k is S k Calculate the data size of request k for task, ψ B It is the computing resource allocated by edge node B.
[0047] Furthermore, the specific process of step 3.4 is as follows: first, the real popularity of the content g requested in the current time slot is calculated N g is the number of times the requested content g is requested by the user, and G is the total number of requested contents. Then the cached contents in the cache space are sorted in descending order of popularity, and the cached contents are deleted starting from the minimum value until the popularity of the cached content is the same as the popularity of the requested content. Finally, according to the actual usage time T of the requested content, true 、Real usage times U true 、N number of actual requests true and real popularity The request cache benefit is calculated based on formula (1), formula (2), formula (3) and formula (4), and the optimal cache location is found by maximizing the request cache benefit function; the traffic load generated by caching the request content g is S g is the data size of the request content g, is the cache delay required to cache g.
[0048] Furthermore, in step 3.5, the target optimization problem is determined to maximize the utility function P2:
[0049]
[0050] Among them, T is the round set; T is a round; For U f or U k Select one, when g = f, the utility function U of the content download request f , when g = k, the utility function U of the task is calculated k ;
[0051] P2 is divided into two parts for solution. The first part is to maximize the utility function P3 of content download request, and the second part is to maximize the utility function P6 of task calculation request.
[0052] The formula for P3 is as follows:
[0053]
[0054] P3 is finally transformed into an equivalent mixed integer nonlinear programming optimization problem P5:
[0055]
[0056] in, represents a set of two decision variables; h f represents the cache hit decision of content download request f; Indicates that the content download request f is cached at position m; R f is the cache benefit value of the content download request f being cached; let the intermediate variable X f =ω p p f ; U m represents the cache benefit of location m; y is the set of location decision variables; z is the vector set of solutions to content download request f; U IL (h) is an internal function;
[0057] The process of finding the optimal solution of P5 is as follows: first, use the branch and bound algorithm to replace all binary variables h of P5 at the root problem. f , and The relaxation is continuous variables, and then the nonlinear continuous relaxation of the branching problem is solved by the interior point method. An interior point subproblem is derived from the branching problem as an approximation problem with an additional logarithmic barrier function and non-negative slack variables. The Lagrangian expression of the interior point subproblem is then calculated, and the Lagrangian multiplier is obtained by the gradient descent method. Finally, the conjugate gradient technique is used to maximize the quadratic approximation of the approximation problem in each step to obtain the optimal solution.
[0058] The formula for P6 is as follows:
[0059]
[0060] The optimal solution of P6 is obtained by using the same transformation and solution method as that of P3.
[0061] Furthermore, in step 3.6, iterative training is performed based on the DDPG algorithm, and each iteration performs the following operations: the prediction results of the time graph network and the delay and energy consumption at different locations are used as the state s t Input into DDPG, generate strategy μ, and then add exploration noise to select action a t , according to a t Place the request content; execute a t The environment then returns a reward r t And the new state s for the next time slot will be obtained t+1 ; will s t 、a t 、r t 、s t+1 Input DDPG for training;
[0062] The training process of the DDPG algorithm network parameters is as follows: First, the agent obtains s in the interaction with the environment t 、a t 、r t 、s t+1 , store it as a four-tuple in the replay buffer, and delete the oldest four-tuple experience sample if the replay buffer is full; then extract a sample of size The target value is calculated in turn using the empirical samples of the formula as follows:
[0063] y=r t +γQ'(s t+1 ,μ'(s t+1 |θ μ' )|θ Q' ) (37);
[0064] Where y is the target value of the experience sample; γ is the discount factor; Q' is the target evaluation neural network; μ' is the target action neural network; θ Q' Evaluate the weights of the neural network for the target; θ μ' is the weight of the target action neural network;
[0065] Then the evaluation network Q(s,a|θ) is updated by one step of gradient descent Q ), the formula is as follows:
[0066]
[0067] Among them, θ Q is the weight of the target network; α Q Represents the learning rate of the evaluation network; is the gradient descent; y b represents the target value of the bth experience sample drawn from the buffer; is the evaluation network of the bth sample extracted from the buffer; the action network is updated by a one-step sampling strategy gradient ascent, and the formula is as follows:
[0068]
[0069] Among them, θ μ To evaluate the weight of the network, α μ represents the learning rate of the action network; is the state of the bth sample extracted from the buffer; a is the action; is the action of the bth sample extracted from the buffer;
[0070] Finally, the formula for updating the target network is:
[0071] θ Q '→ξ Q θ Q +(1-ξ Q )θ Q ',θ μ '→ξ μ θ μ +(1-ξ μ )θ μ ' (40);
[0072] Among them, ξ Q represents the update rate of the evaluation network, ξ μ represents the update rate of the action network;
[0073] After a predetermined number of iterations, a value function network with good performance is finally trained, thereby obtaining the optimal cache placement solution.
[0074] The beneficial technical effects brought about by the present invention are as follows: the present invention introduces prior knowledge from the perspective of active caching to actively cache the request content of mobile users in the Internet of Vehicles, finds a reasonable cache location for the request content, thereby solving the problem of active caching of multiple requests in the Internet of Vehicles, and can improve the user's response rate and reduce the request cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 This is a flow chart of the active cache decision method based on prior knowledge in the Internet of Vehicles of the present invention.
[0076] Figure 2 This is the joint edge cache architecture model in the Internet of Vehicles in the present invention.
[0077] Figure 3This is a flow chart of the active cache placement strategy driven by prior knowledge in the present invention. DETAILED DESCRIPTION
[0078] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0079] like Figure 1 The method block diagram of the present invention is shown, which includes the following three processes: constructing a joint edge cache architecture model in the Internet of Vehicles composed of vehicles, users and edge nodes; predicting popularity and features using a dynamic time graph network based on node clustering and semantic virtual edges; constructing a cache benefit function based on request semantic information, using the branch and bound algorithm and the interior point method to solve the optimal solution to maximize the benefit function, and using DDPG for simulation. Specifically, it is as follows: constructing a joint edge cache architecture model in the Internet of Vehicles composed of vehicles, users and edge nodes; clustering mobile users based on user characteristics, constructing semantic virtual edges based on request semantic similarity, and then inputting the request graph composed of users, requests and their relationship edges into the dynamic time graph network to predict popularity and features; constructing a cache benefit function based on the prediction results and request semantic information, combining it with the request cost to establish an optimization function (i.e., establishing a model to maximize the benefit function), using the branch and bound algorithm and the interior point method to solve the optimal solution to maximize the benefit function, using the DDPG algorithm for simulation, iteratively training the DDPG network, and finding the cache location placement strategy that maximizes the Q value.
[0080] Each process is described in further detail below.
[0081] 1. Construct a joint edge cache architecture model in the Internet of Vehicles consisting of vehicles, users and edge nodes.
[0082] Figure 2 The schematic diagram of the joint edge cache architecture model in the Internet of Vehicles of the present invention is a joint edge cache architecture model consisting of vehicles, users and edge nodes. The intelligent agent can obtain the prior knowledge about the request content and mobile users in the next time slot in the environment in a timely manner, and cluster users and build a request graph between users and requests based on the information; calculate the cache interest function and benefit function based on the prediction results of the time graph network; use the branch and bound algorithm and the interior point method to obtain the optimal solution that maximizes the benefit function; finally, simulate through DDPG to verify the optimization solution and obtain the best cache placement plan.
[0083] In the scenario of the joint edge cache architecture model in the Internet of Vehicles, there are L edge nodes B all within the coverage of the cloud server. Each edge node contains a content-centric framework and a mobile edge computing server. The edge node has computing and storage capabilities. There are multiple vehicles v and multiple users u within the coverage of each edge node. Vehicles and users are collectively referred to as end users. Assume that the end user generates a total of G request contents g. The total request content set composed of G request contents g is G = {g1, g2, …, g G}, the G request contents contain two types of requests, namely, W content download requests f and J task computing requests k, G = W + J; the content download request set composed of W content download requests f is F = {f1, f2, …, f W}, after the end user generates a content download request, the corresponding requested content needs to be downloaded from the vehicle, edge node or cloud server; the task computing request set consisting of J task computing requests k is K = {k1, k2, …k J}, the task computing request usually requires the vehicle to perform computing or offload computing to the edge node; the content is downloaded to the vehicle through the downlink, and the task is offloaded to the edge node through the uplink; let T be a round, then the round set is is the total number of rounds, For the rounds.
[0084] Content download request Among them I f is the name of the content download request f, is the tolerable delay of content download request f, S f is the data size of the content download request f, is the cache delay required by the content download request f; task computing request Among them I k is the name of the task computation request k, is the tolerable delay of task computation request k, S k is the data size of task computation request k, ψ k is the computing resource required for task computing request k, is the cache delay required for task computing request k; it is assumed that the cloud server contains most of the requested content; the content download request follows the Zipf distribution, and the content download request is the download content that the end user needs to obtain; the task computing request follows the Poisson distribution, and the task computing request is the task that the end user generates and needs to be computed.
[0085] Step 2: Use a dynamic time graph network based on node clustering and semantic virtual edges to predict popularity and features.
[0086] Step 2.1: Node clustering based on user characteristics;
[0087] The concept of similarity is used to weigh the similarity between users regarding multiple features, and D users with the smallest similarity are found and used as the center of the cluster. Then, the K-means algorithm is used to cluster the user set according to the characteristics of each user. When a new user set arrives, the new user set is clustered into the old user group according to the user characteristics. If the characteristics of the new user in the new user set do not meet the grouping characteristics of the old user group, it is clustered into a new user group according to the characteristics of the new user.
[0088] Assume that in the current time slot, the i-th edge node B i The user set at i∈[1,L], is the i-th edge node B i The Mth user at the same place; using the similarity concept sim(u x ,u y )=u x u y (||u x ||||u y ||) -1 Weighing two different users u x and u y The similarity between the two users about multiple features is calculated, and the D users with the smallest similarity are found and used as the center of the cluster. Then, the K-means algorithm is used to cluster the users according to the features of each user. Clustering is performed, and the user groups after clustering are D≤M, is the Dth user group node; the i-th edge node B i You can get the jth edge node B in advance j Get the next time slot to arrive at B i New user set is the jth edge node B j The Mth user at the location, and then according to the user characteristics Clustering into U group ;if There is a new user u n and u n The characteristics do not meet U group , then according to the grouping characteristics of the new user u n The characteristics of u n Clustered into new user groups, namely r represents the number of new user groups, r≤M.
[0089] Step 2.2, construct a request graph between request nodes and user group nodes based on semantic virtual edges;
[0090] The user group U after clustering group As user group node U, request content g as request node g. group When requesting content, a request relationship is generated with g, that is, the request edge e between U and g gU ; Based on sim(u x ,u y ) Calculate the Request Node and Request Node The semantic similarity between semantic , and pre-set the semantic similarity threshold. semantic When it is greater than the threshold, a semantic virtual edge is built between the requesting nodes. Represents and The semantic similarity between them is But I didn't request and and If the semantic similarity between them is high, then the user group node U requests The possibility is very high, that is, the user group node U and The probability of generating an edge between them is very high; at this time, based on the user group node U, the request node g, and the request edge e gU and semantic virtual edges The request graph is constructed. User group nodes U and request nodes g will generate new nodes over time. There are two situations in which new nodes are generated. One is when a new user arrives and the user characteristics do not match the characteristics of the old user group, the new user will form a new user group node; the other is when the request content is requested for the first time, a new request node will be added to the request graph.
[0091] Step 2.3: Predict popularity and node features based on the temporal graph network; input the request graph into the temporal graph network, and predict the probability of generating new edges between the node and the non-neighboring user group nodes based on the semantic virtual edges; predict the probability of generating old edges between the node and the neighboring user group nodes based on the node memory; and use the request node memory to predict the features of the request node;
[0092] Generate a request edge e between the user group node U and the request node g gU The probability of is defined as the popularity of the request. The request graph based on semantic virtual edges is a connected request graph. The request graph is input into the time graph network, and the time graph network predicts the request node g according to the semantic virtual edges. Semantic and non-neighbor user group node U Non-neighbours The popularity of the new edge generated between Semantic,U Non-neighbours )|t), based on the node memory prediction request node g Node and neighbor user group node U Neighbours The popularity of the old edge generated between Node ,U Neighbours )|t), according to the freshness of the information Select appropriate node information to update node memory, t is the current time, Is a node At the time of the last request, nodes whose freshness is greater than the freshness threshold are selected to update the node memory; the selected node information needs to be weighted, and the greater the freshness, the heavier the weight.
[0093] Using the time graph network to predict popularity can also predict the characteristics of the requesting node, including the predicted usage time. Predicted usage times and the number of prediction requests Assume the request node memory is in is the name of the requesting node g, T g is the historical usage time set of the requesting node g, N g is the historical request count set of the requesting node g, U g is the historical usage count set of the request node g, and then s g Input to the decoder to get the feature z of the requested node g(t) =∑ U∈(1,n) h(s U ,s g ,e gU ,v U (t),v g (t)), h is a learnable function, s U is the memory of user group node U, v U (t) and v g (t) are the features of U and g respectively, and n represents the number of neighbor user group nodes. After the temporal graph network outputs the predicted popularity and predicted node features at the same time, it needs to be compared with the true value and the loss function J is used. MSE =G -1 ∑ g∈G (p true -p g ) for back propagation, p g It is to request the predicted popularity of node g, update the parameters in the time graph network, such as node memory and features, so that the predicted value is close to the true value, and the true probability of generating an edge is p true , the actual number of requests to the requesting node is N true , the actual usage time of the requesting node is T true, the actual usage number of the request node is U true , calculate the difference between the true value and the predicted value. The smaller the difference, the closer the predicted value is to the true value.
[0094] Step 3: Construct a request cache placement strategy that maximizes cache benefits based on request semantic information.
[0095] Step 3.1: Build a cache benefit function based on request semantic information;
[0096] Based on the cache benefit function of predicted popularity and predicted request characteristics, the cache placement path is solved to cache the request content by maximizing the request cache benefit; and because the types of requests are different, the cache benefit function V g There are four different situations:
[0097] Assume that the predicted popularity of content download request f in the next time slot is p f ,Its caching benefits are divided into two types, one related to the predicted number of requests, and the other related to the predicted usage time;
[0098] Case 1: The content download request cache benefit function related to the content download request f and the predicted request number is
[0099]
[0100] Among them, ω p is the weighting factor for predicting popularity; T f is the minimum delay for downloading content request f; E f is the minimum energy consumption of downloading content request f; is the predicted number of requests for content download request f; ω T and ω E denote the weighting factors of traffic load and delay cost, ω T +ω E =1;
[0101] Case 2: The content download request cache benefit function related to the predicted usage time of the content download request f is
[0102]
[0103] in, is the predicted usage time of the content download request f; note that if the content download request is cached in the vehicle, the delay and energy consumption of downloading f directly from the vehicle are 0, at this time (ω T T f +ω E E f ) -1 =1;
[0104] Assume that the predicted popularity of task computation request k in the next time slot is p k ,Its cache benefits are also divided into two types, one related to the predicted number of requests, and the other related to the predicted number of uses;
[0105] Case 3: The task calculation request k is related to the number of predicted requests. The cache benefit function of the task calculation request is:
[0106]
[0107] in, is the predicted number of requests for task computation request k; T k is the minimum delay of the computing task; E k is the minimum energy consumption of the computing task;
[0108] Case 4: The task computing request k is related to the predicted usage times. The cache benefit function of the task computing request is:
[0109]
[0110] in, is the predicted number of times task computation request k is used; note that if the task computation request is cached in the vehicle or edge node, then the delay and energy consumption of directly downloading the task result from the vehicle or edge node is 0, at this time (ω T T k +ω E E k ) -1 =1.
[0111] Step 3.2: Construction of content download request process model;
[0112] Define the communication rate between vehicles as V v :
[0113]
[0114] Among them, b v is the channel bandwidth between vehicle v and vehicle v; p v is the transmission power between vehicle v and vehicle v; h v is the channel gain between vehicle v and vehicle v; is the distance between vehicle v and vehicle v; δ is the path loss index; σ 2 is the noise power;
[0115] Define the communication rate between vehicle v and edge node B as V Bv :
[0116]
[0117] Among them, b Bv is the channel bandwidth between vehicle v and edge node B, p Bv is the transmission power between vehicle v and edge node B; h Bv is the channel gain between vehicle v and edge node B; is the distance between vehicle v and edge node B;
[0118] The calculation process of the content download request process model is:
[0119] Step 3.2.1: When the terminal user sends a content download request f, first determine whether the content can be found in vehicle v. If so, then the vehicle cache hit decision If it is 1, the vehicle directly outputs f; if not, go to step 3.2.2 for judgment;
[0120] Step 3.2.2: Determine whether the content can be found at edge node B. If so, the edge node cache hit decision is made. is 1, vehicle v directly downloads f from edge node B. At this time, the request delay of edge node cache hit is The propagation load of edge node cache hits is β is the unit price of energy consumption; if not, proceed to step 3.2.3 for judgment;
[0121] Step 3.2.3: Determine whether request aggregation occurs. If so, first determine whether vehicle aggregation occurs (when content is found in adjacent vehicles, it is considered that vehicle aggregation occurs). If vehicle aggregation occurs, then the vehicle aggregation decision is 1, then the request delay of vehicle aggregation is The propagation load of vehicle aggregation is If vehicle aggregation does not occur, determine whether edge node aggregation occurs (when the adjacent edge node B neighbour When the content is found, it is considered that edge node aggregation occurs. If edge node aggregation occurs, the edge node aggregation decision is 1, then the request delay of edge node aggregation is The aggregated propagation load of edge nodes is is the vehicle v and the adjacent edge node B neighbour The communication rate between is vehicle v and B neighbour If edge node aggregation does not occur, the forwarding information base will forward f to the cloud server, and the forwarding decision h for is 1, and the forwarding download delay is T C =S f / V C, the forwarded propagation load is E C =βp C T C , V C is the communication rate between the vehicle and the cloud server, p C is the transmission power between vehicle v and the cloud server.
[0122] Step 3.3: Construction of task computing request process model;
[0123] The calculation process of the task calculation request process model is:
[0124] Step 3.3.1: The end user sends a task computation request k, and first determines whether the content can be found in the vehicle v. If so, the vehicle cache hit decision is made. If it is 1, the vehicle directly outputs k; if not, it goes to step 3.3.2;
[0125] Step 3.3.2: Determine whether the content can be found at edge node B. If so, the edge node cache hit decision is made. If it is 1, the edge node transmits the result to the vehicle; if not, the size of the task, the tolerance delay and other characteristics will be input into DDPG, and the calculation decision about k will be output. and caching decisions Then proceed to step 3.3.3;
[0126] Step 3.3.2, judgment If the value of k is calculated locally, and the local delay is The local energy consumption is ψ k is the allocated computing resources, ψ v is the computing resource allocated to vehicle v; if k is offloaded to the edge node for computation, and the offloading delay of k is The unloading energy consumption of k is S k Calculate the data size of request k for task, ψ B It is the computing resource allocated by edge node B.
[0127] Step 3.4: Design of responsive cache, delete the request content of historical cache, and then re-cache according to the real environment information;
[0128] If the end user cannot find the requested content in the vehicle or edge node, it means that the request prediction result is inaccurate. In this case, responsive caching will occur, that is, caching occurs when the request arrives. It needs to delete the historical cached request content and then re-cache it based on the real environment information. First, calculate the real popularity of the request content g in the current time slot. Ng is the number of times the requested content g is requested by the user, and G is the total number of requested contents. Then the cached contents in the cache space are sorted in descending order of popularity, and the cached contents are deleted starting from the minimum value until the popularity of the cached content is the same as the popularity of the requested content. Finally, according to the actual usage time T of the requested content, true 、Real usage times U true 、N number of actual requests true and real popularity The cache benefit is calculated based on formula (1), formula (2), formula (3) and formula (4), and the appropriate cache location is found by maximizing the request cache benefit function. The traffic load generated by the cache request content g is S g is the data size of the request content g, is the cache delay required to cache g.
[0129] Step 3.5: Determine the target optimization problem and solve it;
[0130] Combining the load, delay, and energy consumption of g during the cache process and the request process, we can summarize the total cost of g in one round T, which is the weighted sum of g's traffic load and delay cost after normalization. Calculate g's traffic load C E,g :
[0131]
[0132] in, Calculate the requested local energy consumption for the task; Calculate the requested offloading energy consumption for the task; The cache decision for request g; Traffic load generated by caching content g;
[0133] Calculate the delay cost C of g T,g :
[0134]
[0135] in, Calculate the local latency of the request for the task; Calculate the requested offload delay for the task;
[0136] Assume the original traffic load is The original delay cost is Then the normalized traffic load is C' E,g =C E,g / C E,θ , C E,g is the traffic load of request content g, and the normalized delay cost is C' T,g =CT,g / C T,θ , C T,g is the delay cost of requesting content g; the comprehensive weighted cost function of g is C g =ω E C' E,g +ω T C' T,g , in round T, the cost of all G requests is C T =∑ g∈G C g , the optimization goal is to minimize the long-term average cost of the system P1:
[0137]
[0138] Among them, T is the round set;
[0139] Based on the request cost and cache benefit function, a utility function is constructed to transform the problem of minimizing the request cost into the problem of maximizing the utility function, solve the optimal request cache placement path, and calculate the utility function U of the content download request. f :
[0140]
[0141] Among them, h f is the cache hit decision for content download request f; R f The cache benefit value of the content download request f being cache hit; Propagate load for edge node cache hits; Request latency for edge node cache hits; The propagation load aggregated for vehicles; Request latency for vehicle aggregation; Aggregated propagation load for edge nodes; Aggregated request latency for edge nodes; is the actual usage time of the content download request f; The actual number of requests for content download request f; Traffic load of download request f for cached content; caching decision for content download request f;
[0142] Compute the utility function U of the task calculation request k :
[0143]
[0144] Among them, h k Calculate the cache hit decision for task request k; R k Calculate the cache benefit value of request k being cache hit for task; Calculate the actual usage count of request k for the task; Calculate the local energy consumption of request k for task; Calculate the traffic load of request k for the cache task; Calculate the local latency of request k for task; Calculate the actual number of requests for task k; Compute the cache decision for task request k;
[0145] The final target optimization problem becomes to maximize the utility function P2:
[0146]
[0147] in, For U f or U k Select one of them. When g = f, the utility function U of the content download request corresponding to formula (10) is f , when g = k, the utility function U of the task calculation request corresponding to formula (11) k ;
[0148] Maximizing the utility function P2 requires satisfying the following conditions:
[0149]
[0150]
[0151] Among them, S g The data size of request g; For the vehicle v that is directly connected to the request connect Cache space; Edge Node B directly connected to the request connect Cache space; is the vehicle v adjacent to the request neighbour Cache space; The edge node B adjacent to the request neighbour Cache space; φ B is the total computing resources of edge node B; φ v is the total computing resources of vehicle v; Compute decision for task computation request k; Calculate the local latency of request k for task; Calculate the offloading delay of request k for task; Calculate the tolerable delay of request k for task; The request latency for requests that are hit by the edge node cache; Delay for requests to be aggregated by vehicles; h is the request latency of requests aggregated by edge nodes; for Make forwarding decisions for requests; is the tolerated delay of request g;
[0152] P2 is divided into two parts for solution. The first part is to maximize the utility function P3 of the content download request:
[0153]
[0154] The problem of maximizing the utility of content download requests is to satisfy conditions (13)-(16) and (20).
[0155] Assume h f represents the cache hit decision of the content download request f. To simplify the formula, let the intermediate variable X f =ω p p f , the cache location is divided into five cases:
[0156] Indicates that f is cached to the vehicle, and the benefit is
[0157] Indicates that f is cached to the edge node, and the benefit is
[0158] Indicates that f is cached to the adjacent vehicle, and the benefit is
[0159] Indicates that f is cached to the adjacent edge node, and the benefit is
[0160] Indicates that f is not cached. The benefit is Therefore, problem P3 is transformed into P4:
[0161]
[0162] in, represents a set of two decision variables; m∈{1,2,3,4,5} represents the cache location; Indicates that the content download request f is cached at location m; U m ∈{U1,U2,U3,U4,U5} represents the cache benefit of location m;
[0163] The conditions to be satisfied for question P4 are:
[0164]
[0165] Among them, S vis the cache space of vehicle v; V is the vehicle set; S B is the cache space of edge node B; B is the set of edge nodes; is the tolerable delay of content download request f;
[0166] Problem P4 is a nested dual binary nonlinear programming problem. Let the internal function U IL (h):
[0167]
[0168] Introduce function vector Q(h) = [Q(h1), Q(h2), Q(h3), Q(h4), Q(h5)] T , auxiliary variables z, vectors of binary variables y replace U IL ,in Q(h m ) is the cache benefit function set of the content download request f at position m, represents the cache benefit value of f being cached in cache location m, and W is the number of content download requests f. 1 ,z 2 ,…,z f ,…,z W ] T is the vector set of solutions to the content download request f, z f is the vector of solutions to f. y = [y1, y2, y3, y4, y5] is the set of location decision variables, The set of decision variables for all content download requests at position m = {1, 2, 3, 4, 5}, is the decision variable for content download request f at location m, is a binary decision variable that helps f find the position that maximizes the benefit. This converts P4 into an equivalent mixed integer nonlinear programming optimization problem P5:
[0169]
[0170] Question P5 must meet the following conditions:
[0171]
[0172] z f ∈R + ,f∈F(34);
[0173] in, is the tolerable delay of requesting content g; Indicates that the requested content g will only be cached in one location; R + is the set of positive real numbers;
[0174] Using the branch and bound algorithm, first replace all binary variables h of P5 at the root problem. f , and Relaxation is a continuous variable, The relaxed problem must satisfy conditions (29)-(34) and (35).
[0175]
[0176] The interior point method is used to solve the nonlinear continuous relaxation of the branching problem. An interior point subproblem is derived from the branching problem as an approximation problem with an additional logarithmic barrier function and nonnegative slack variables to eliminate the inequality operator. The Lagrangian expression of the interior point subproblem is then calculated, and the Lagrangian multipliers are obtained using the gradient descent method. Finally, the conjugate gradient technique is used to maximize the quadratic approximation of the approximation problem in each step to obtain the optimal solution.
[0177] The second part is to maximize the utility P6 of the task computation request:
[0178]
[0179] Because the problem form is similar, the solution to P3 can be used to solve P6.
[0180] Step 3.6, using the DDPG-based active caching method to select the most appropriate cache placement for the predicted request content;
[0181] Iterative training is performed based on the DDPG algorithm. Each iteration performs the following operations: the prediction results of the time graph network and the delay and energy consumption at different locations are used as state s t Input into DDPG, generate strategy μ, and then add exploration noise to select action a t , according to a t Place the request content. Execute a t The environment then returns a reward r t And the new state s for the next time slot will be obtained t+1 . t 、a t 、r t 、s t+1 Enter DDPG for training.
[0182] The training process of the DDPG algorithm network parameters is as follows: First, the agent obtains s in the interaction with the environment t 、a t 、r t 、s t+1 , store it as a four-tuple in the replay buffer, and delete the oldest four-tuple experience sample if the replay buffer is full. Then extract a sample of size The target value is calculated in turn using the empirical samples of the formula as follows:
[0183] y=r t +γQ'(s t+1 ,μ'(s t+1 |θ μ' )|θ Q' ) (37);
[0184] Where y is the target value of the experience sample; γ is the discount factor; Q' is the target evaluation neural network; μ' is the target action neural network; θ Q' Evaluate the weights of the neural network for the target; θ μ' is the weight of the target action neural network. Then the evaluation network Q(s,a|θ) is updated by one step of gradient descent. Q ), the formula is as follows:
[0185]
[0186] Among them, θ Q is the weight of the target network; α Q Represents the learning rate of the evaluation network; is the gradient descent; y b represents the target value of the bth experience sample drawn from the buffer; is the evaluation network of the bth sample extracted from the buffer. The action network is updated by a one-step sampling strategy gradient ascent, and the formula is as follows:
[0187]
[0188] Among them, θ μ To evaluate the weight of the network, α μ represents the learning rate of the action network; is the state of the bth sample extracted from the buffer; a is the action; is the action of the bth sample extracted from the buffer. Finally, the formula for updating the target network is:
[0189]
[0190] Among them, ξ Q represents the update rate of the evaluation network, ξ μ represents the update rate of the action network.
[0191] After a predetermined number of iterations, a value function network with good performance is finally trained, thereby obtaining the optimal cache placement solution.
[0192] First, use the branch and bound algorithm to relax the binary variables, then use the interior point method and Lagrange multipliers to solve the optimal solution, and finally use step 3.6 to perform simulation verification. Table 1 is a pseudo code table of the active cache decision algorithm driven by prior knowledge.
[0193] Table 1 Algorithm pseudo code table
[0194]
[0195] like Figure 3 As shown, the algorithm is mainly divided into the following steps:
[0196] ①The edge node obtains user and request information;
[0197] ② Input the request graph based on users and requests into the time graph network and output the predicted popularity and node features;
[0198] ③ Calculate cache interest function and benefit function;
[0199] ④Use the branch and bound algorithm and interior point method to obtain the optimal solution of the optimization problem;
[0200] ⑤ Use the DDPG algorithm for training to obtain the value function network parameters with good performance.
[0201] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. An active cache decision method based on prior knowledge in a connected vehicle network, characterized in that: The steps include: Step 1: Build a joint edge cache architecture model in the Internet of Vehicles consisting of vehicles, users, and edge nodes; Step 2: Predict popularity and features using a dynamic time graph network based on node clustering and semantic virtual edges; Step 3: Build a request cache placement strategy that maximizes cache benefits based on request semantic information; In the joint edge cache architecture model in the Internet of Vehicles, there are L edge nodes B all within the coverage of the cloud server. Each edge node contains a content-centric framework and an edge mobile computing server. The coverage of each edge node includes multiple vehicles v and multiple users u, and the vehicles and users are collectively referred to as end users. Assume that the end user generates a total of G request contents g, and the total request content set composed of G request contents g is G = {g1, g2, …, g G }, the G request contents include W content download requests f and J task computing requests k; the content download request set composed of W content download requests f is F = {f1,f2,…,f W }; The task computing request set consisting of J task computing requests k is K = {k1, k2, …k J }; Content download request Among them I f is the name of the content download request f, is the tolerable delay of content download request f, S f is the data size of the content download request f, is the cache delay required by the content download request f; task computing request Among them I k is the name of the task computation request k, is the tolerable delay of task computation request k, S k is the data size of task computation request k, ψ k is the computing resource required for task computing request k, is the cache delay required for task computation request k; The specific process of step 2 is as follows: Step 2.1: Assume that in the current time slot, the i-th edge node B i The user set at i∈[1,L], is the i-th edge node B i The Mth user at the location; use the similarity concept to weigh the similarity between two different users on multiple features, find the D users with the smallest similarity, take the D users with the smallest similarity as the center of the cluster, and then use the K-means algorithm to cluster according to the characteristics of each user. Clustering is performed, and the user groups after clustering are D≤M, is the Dth user group node; the i-th edge node B i In advance, from the jth edge node B j Get the next time slot to arrive at B i New user set i≠j, is the jth edge node B j The Mth user at the location, and then according to the user characteristics Clustering into U group ;if There is a new user u n And u n The characteristics do not meet U group , then according to the grouping characteristics of the new user u n The characteristics of u n Clustering into new user groups r represents the number of new user groups, r≤M; Step 2.2: The clustered user group is used as the user group node U, and the requested content g is directly used as the request node g; when the user group requests content, a request edge e is established between U and g. gU ; Calculate the Request Node and Request Node The semantic similarity between nodes is calculated and a semantic similarity threshold is pre-set. When the semantic similarity is greater than the threshold, a semantic virtual edge is constructed between the requesting nodes. Finally, based on the user group node U, the request node g, and the request edge e gU and semantic virtual edges Complete the construction of the request graph; Step 2.3: Input the request graph into the temporal graph network to predict popularity. The temporal graph network predicts the request node g according to the semantic virtual edge. Semantic and non-neighbor user group node U Non-neighbours The popularity of the new edge generated between Semantic ,U Non-neighbours )|t), based on the node memory prediction request node g Node and neighbor user group node U Neighbours The popularity of the old edge generated between Node ,U Neighbours )|t), update the node memory according to the freshness of the information. The calculation formula for freshness is: t is the current time, Is a node At the time of the last request, nodes with a freshness greater than the freshness threshold are selected to update the node memory; the selected node information is weighted, and the greater the freshness, the heavier the weight; At the same time, the time graph network is used to predict the characteristics of the request node, including the predicted usage time Predicted usage times and the number of prediction requests Assume the request node memory is in is the name of the requesting node g, T g is the historical usage time set of the requesting node g, N g is the historical request count set of the requesting node g, U g is the historical usage count set of the request node g, and then s g Input to the decoder to get the feature z of the requested node g(t) ; After the temporal graph network outputs the predicted popularity and predicted node features at the same time, it compares them with the true values, uses the loss function for back propagation, and updates the parameters in the temporal graph network; The specific process of step 3 is as follows: Step 3.1: Build a cache benefit function based on request semantic information; Step 3.2: Construct a content download request process model; Step 3.3, construct the task computing request process model; Step 3.4, delete the historical cached request content and re-cache it according to the real environment information; Step 3.5: Determine the target optimization problem and solve it; Step 3.6, using the DDPG-based active caching method to select the most appropriate cache placement for the predicted request content; In step 3.1, the cache benefit function is specifically divided into the following four cases: Case 1: The content download request cache benefit function related to the content download request f and the predicted request number is Among them, ω p is the weighting factor for predicting popularity; p f is the predicted popularity of content download request f in the next time slot; T f is the minimum delay for downloading content request f; E f is the minimum energy consumption of downloading content request f; is the predicted number of requests for content download request f; ω T and ω E denote the weighting factors of traffic load and delay cost respectively; Case 2: The content download request cache benefit function related to the predicted usage time of the content download request f is in, is the predicted usage duration of the content download request f; Case 3: The task calculation request k is related to the number of predicted requests. The cache benefit function of the task calculation request is: Among them, p k Calculate the predicted popularity of request k in the next time slot for task; is the predicted number of requests for task computation request k; T k is the minimum delay of the computing task; E k is the minimum energy consumption of the computing task; Case 4: The task computing request k is related to the predicted usage times. The cache benefit function of the task computing request is: in, is the predicted usage count of task computation request k; In step 3.2, the calculation process of the content download request process model is: Step 3.2.1: When the terminal user sends a content download request f, first determine whether the content can be found in vehicle v. If so, then the vehicle cache hit decision If it is 1, the vehicle directly outputs f; if not, go to step 3.2.2 for judgment; Step 3.2.2: Determine whether the content can be found at edge node B. If so, the edge node cache hit decision is made. is 1, vehicle v directly downloads f from edge node B. At this time, the request delay of edge node cache hit is The propagation load of edge node cache hits is V Bv is the communication rate between vehicle v and edge node B, p Bv is the transmission power between vehicle v and edge node B, β is the unit price of energy consumption; if not, proceed to step 3.2.3 for judgment; Step 3.2.3: Determine whether request aggregation occurs. If so, first determine whether vehicle aggregation occurs. If vehicle aggregation occurs, then make a vehicle aggregation decision. is 1, then the request delay of vehicle aggregation is The propagation load of vehicle aggregation is V v is the communication rate between vehicles, p v is the transmission power between vehicle v and vehicle v; if vehicle aggregation does not occur, it is determined whether edge node aggregation occurs; if edge node aggregation occurs, the edge node aggregation decision is 1, then the request delay of edge node aggregation is The aggregated propagation load of edge nodes is is the vehicle v and the adjacent edge node B neighbour The communication rate between is vehicle v and B neighbour If edge node aggregation does not occur, the forwarding information base will forward f to the cloud server, and the forwarding decision h for is 1, and the forwarding download delay is T C =S f / V C , the forwarded propagation load is E C =βp C T C , V C is the communication rate between the vehicle and the cloud server, p C is the transmission power between vehicle v and cloud server; In step 3.3, the calculation process of the task calculation request process model is: Step 3.3.1: The end user sends a task computation request k, and first determines whether the content can be found in the vehicle v. If so, the vehicle cache hit decision is made. If it is 1, the vehicle directly outputs k; if not, it goes to step 3.3.2; Step 3.3.2: Determine whether the content can be found at edge node B. If so, the edge node cache hit decision is made. If it is 1, the edge node transmits the result to the vehicle; if not, the size of the task, the tolerance delay and other characteristics will be input into DDPG, and the calculation decision about k will be output. and caching decisions Then proceed to step 3.3.3; DDPG is a deep deterministic policy gradient algorithm; Step 3.3.2, judgment If the value of k is calculated locally, and the local delay is The local energy consumption is ψ k is the allocated computing resources, ψ v is the computing resource allocated to vehicle v; if k is offloaded to the edge node for computation, and the offloading delay of k is The unloading energy consumption of k is S k Calculate the data size of request k for task, ψ B It is the computing resource allocated by edge node B; The specific process of step 3.4 is as follows: first, calculate the real popularity of the content g requested in the current time slot N g is the number of times the requested content g is requested by the user, and G is the total number of requested contents. Then the cached contents in the cache space are sorted in descending order of popularity, and the cached contents are deleted starting from the minimum value until the popularity of the cached content is the same as the popularity of the requested content. Finally, according to the actual usage time T of the requested content, true 、Real usage times U true 、N number of actual requests true and real popularity The request cache benefit is calculated based on formula (1), formula (2), formula (3) and formula (4), and the optimal cache location is found by maximizing the request cache benefit function; the traffic load generated by caching the request content g is S g is the data size of the request content g, is the cache delay required by cache g; In step 3.5, the target optimization problem is determined to maximize the utility function P2: Among them, T is the round set; T is a round; For U f or U k Select one, when g = f, the utility function U of the content download request f , when g = k, the utility function U of the task is calculated k ; P2 is divided into two parts for solution. The first part is to maximize the utility function P3 of content download request, and the second part is to maximize the utility function P6 of task calculation request. The formula for P3 is as follows: P3 is finally transformed into an equivalent mixed integer nonlinear programming optimization problem P5: in, represents a set of two decision variables; h f represents the cache hit decision of content download request f; Indicates that the content download request f is cached at position m; R f is the cache benefit value of the content download request f being cached; let the intermediate variable X f =ω p p f ; U m represents the cache benefit of location m; y is the set of location decision variables; z is the vector set of solutions to content download request f; U IL (h) is an internal function; The process of finding the optimal solution of P5 is as follows: first, use the branch and bound algorithm to replace all binary variables h of P5 at the root problem. f , and The relaxation is continuous variables, and then the nonlinear continuous relaxation of the branching problem is solved by the interior point method. An interior point subproblem is derived from the branching problem as an approximation problem with an additional logarithmic barrier function and non-negative slack variables. The Lagrangian expression of the interior point subproblem is then calculated, and the Lagrangian multiplier is obtained by the gradient descent method. Finally, the conjugate gradient technique is used to maximize the quadratic approximation of the approximation problem in each step to obtain the optimal solution. Decision variables for content download request f at location m; The formula for P6 is as follows: The optimal solution of P6 is obtained by using the same transformation and solution method as that of P3; In step 3.6, iterative training is performed based on the DDPG algorithm, and each iteration performs the following operations: the prediction results of the time graph network and the delay and energy consumption at different locations are used as state s t Input into DDPG, generate strategy μ, and then add exploration noise to select action a t , according to a t Place the request content; execute a t The environment then returns a reward r t And the new state s for the next time slot will be obtained t+1 ; will s t 、a t 、r t 、s t+1 Input DDPG for training; The training process of the DDPG algorithm network parameters is as follows: First, the agent obtains s in the interaction with the environment t 、a t 、r t 、s t+1 , store it as a four-tuple in the replay buffer, and delete the oldest four-tuple experience sample if the replay buffer is full; then extract a sample of size The target value is calculated in turn using the empirical samples of the formula as follows: y=r t +γQ'(s t+1 ,m'(s t+1 |θ μ' )|θ Q' ) (37); Where y is the target value of the experience sample; γ is the discount factor; Q' is the target evaluation neural network; μ' is the target action neural network; θ Q′ Evaluate the weights of the neural network for the target; θ μ′ is the weight of the target action neural network; Then the evaluation network Q(s,a|θ) is updated by one step of gradient descent Q ), the formula is as follows: Among them, θ Q is the weight of the target network; α Q Represents the learning rate of the evaluation network; is the gradient descent; y b represents the target value of the bth experience sample drawn from the buffer; is the evaluation network of the bth sample extracted from the buffer; the action network is updated by a one-step sampling strategy gradient ascent, and the formula is as follows: Among them, θ μ To evaluate the weight of the network, α μ represents the learning rate of the action network; is the state of the bth sample extracted from the buffer; a is the action; is the action of the bth sample extracted from the buffer; Finally, the formula for updating the target network is: i Q '→ξ Q i Q +(1-ξ Q )i Q ',i μ '→ξ μ i μ +(1-ξ μ )i μ ' (40); Among them, ξ Q represents the update rate of the evaluation network, ξ μ represents the update rate of the action network; After a predetermined number of iterations, a value function network with good performance is finally trained, thereby obtaining the optimal cache placement solution.
Citation Information
Patent Citations
Method and system for hplmn-based traffic control when UE is registered on different plmns
CN112438074A
Time delay optimal caching and routing method, device and system based on cloud edge collaboration
CN114205782A
Internet of vehicles content distribution method based on edge caching and immune cloning strategy
CN114449477A
Content distribution method integrating perception, communication and caching in Internet of Vehicles
CN114979145A
Method for assisting edge Internet of Vehicles service and content hybrid caching by unmanned aerial vehicle
CN115174481A
