Cache resource deployment method and system of Internet of Vehicles
By combining real-time and historical cache profits and using a greedy search algorithm to select cache resource deployment nodes in the Internet of Vehicles system, the problem of cache resource deployment being limited by storage space and computing resources in the Internet of Vehicles system is solved, and reasonable caching resources are achieved. Deploy and maximize caching profits.
Patent Information
- Application Number
- CN202410930158.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-11
AI Technical Summary
In the Internet of Vehicles system, cache resource deployment is limited by storage space and computing resources. It is difficult to design an efficient cache deployment strategy to optimize the rationality of cache resources with existing technology.
By determining the resources and deployment nodes to be cached, combined with real-time cache profits and historical cache profits, a greedy search algorithm is used to select target deployment nodes, and the sum of real-time cache profits and historical cache profits is calculated to guide cache deployment and improve the rationality of cache resource deployment.
It effectively improves the rationality of cache resource deployment, maximizes cache profits, reduces data transmission delays in vehicle task requests, and optimizes content delivery delays.
Smart Images

Figure CN118740931A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of Internet of Vehicles, and in particular, to a cache resource deployment method and system for Internet of Vehicles. Background Art
[0002] In the Internet of Vehicles system, when a vehicle initiates a task request, caching the cache resources in the appropriate deployment node (vehicle, edge system) can effectively shorten the data transmission chain of the vehicle task request and reduce content delivery delay. Cache deployment is not only limited by the storage space size of the deployment node, but also affected by the storage space and computing resource size, so it is urgent to design a cache deployment strategy with excellent performance. Summary of the invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The main purpose of the embodiments of the present invention is to propose a method and system for deploying cache resources in an Internet of Vehicles, so as to improve the rationality of the deployment of resources to be cached.
[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present invention provides a method for deploying cache resources in an Internet of Vehicles, the method comprising:
[0006] Determine the resources to be cached and the deployment nodes in the Internet of Vehicles system;
[0007] According to the network status of the Internet of Vehicles system, taking the call delay of the resource to be cached as a standard, predicting the real-time cache profit generated when the corresponding resource to be cached is deployed on the corresponding deployment node;
[0008] If the resource to be cached has a historical deployment, the historical cache profit generated in the process of deploying the resource to be cached with a historical deployment in the corresponding deployment node is calculated based on the call delay of the resource to be cached.
[0009] According to the real-time cache profit and the historical cache profit, a greedy search algorithm is adopted to select a target deployment node for the resource to be cached.
[0010] Advantages of this embodiment:
[0011] This embodiment calculates the real-time cache profit of each deployment node through the current network status, and simultaneously calculates the historical cache profit of the corresponding cached resources deployed at the deployment node in the past period of time. The two parts constitute the total cache profit. The total cache profit is used as a reference to guide how to deploy the cached resources at the cache deployment node, thereby improving the rationality of the deployment of the cached resources.
[0012] In some implementations, the calculating of the historical cache profit generated during the process of deploying the to-be-cached resources with historical deployment on the corresponding deployment nodes includes:
[0013] Obtaining a historical task of calling the resource to be cached cached on the deployment node;
[0014] The historical cache profit is calculated based on the call delay generated by the historical task.
[0015] In some implementations, the selecting a target deployment node for the resource to be cached using a greedy search algorithm according to the real-time cache profit and the historical cache profit includes:
[0016] Sorting the resources to be cached;
[0017] Each of the resources to be cached is traversed in order to determine the target deployment node selected corresponding to each of the resources to be cached, wherein the process of determining the target deployment node selected corresponding to any one of the resources to be cached includes:
[0018] Determine a plurality of deployment nodes capable of deploying the resources to be cached;
[0019] Calculate the sum of the real-time cache profit and the historical cache profit when the resource to be cached is deployed on each of the multiple deployment nodes;
[0020] A deployment node corresponding to the maximum value of the sum of the real-time cache profit and the historical cache profit is selected as the target deployment node.
[0021] In some implementations, the calculation function of the sum of the real-time cache profit and the historical cache profit includes:
[0022] R(t)=λ j r j,k (t)+(1-λ j )v j,k (t)
[0023] Among them, R(t) represents the number of nodes deployed at time t. j Deploy the cached resources q k The sum of the real-time cache profit and the historical cache profit; r j,k (t) represents the time when node v is deployed j Deploy the cached resources q k The real-time cache profit, v j,k (t) indicates the resource to be cached q k Deployed on deployment node v j The historical cache profit generated onj Represents the weight coefficient.
[0024] In some embodiments, r j,k The calculation functions of (t) include:
[0025]
[0026] Among them, T i,k (t) represents the vehicle v at time t i On the deployment node v j The resource to be cached on q k The cache call delay, δ represents the discount factor, u k is 0 or 1. When the task request is a computing task request, u k =0, F j Indicates the deployment node v j computing power.
[0027] In some implementations, the cache resource deployment method for the Internet of Vehicles further includes:
[0028] Preset cycle;
[0029] Each time a cycle is cycled, the historical cache profit v is updated according to the following method j,k (t):
[0030]
[0031]
[0032] in, represents the learning rate, γ represents the time discount coefficient, Indicates t ′ Resources to be cached at all times k Deployed on deployment node v j The cache profit, T L Indicates the preset period, t ′ The value range of time is [tT L +1,t],T i,k (t ′ ) indicates t ′ Resources to be cached at all times k Deployed on deployment node v j On, by vehicle v i The task completion delay of the historical task call.
[0033] In some implementations, sorting the resources to be cached includes:
[0034] Calculating the heat of the resource to be cached and the size of the resource to be cached;
[0035] The resources to be cached are sorted according to the ratio of the heat of the resources to be cached to the size of the resources to be cached.
[0036] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present invention provides a cache resource deployment system for an Internet of Vehicles, the cache resource deployment system for the Internet of Vehicles comprising:
[0037] A data determination unit, used to determine the resources to be cached and the deployment nodes in the Internet of Vehicles system;
[0038] A real-time cache profit calculation unit, configured to predict the real-time cache profit generated when the corresponding resource to be cached is deployed on the corresponding deployment node according to the network status of the Internet of Vehicles system and the call delay of the resource to be cached as a standard;
[0039] A historical cache profit calculation unit, used for, if the resource to be cached has a historical deployment, taking the call delay of the resource to be cached as a standard, calculating the historical cache profit generated in the process of deploying the resource to be cached with a historical deployment in the corresponding deployment node;
[0040] The node determination unit is used to select a target deployment node for the resource to be cached by adopting a greedy search algorithm according to the real-time cache profit and the historical cache profit.
[0041] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present invention provides an electronic device, comprising: at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the above-mentioned cache resource deployment method for the Internet of Vehicles.
[0042] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned method for deploying cache resources in a connected vehicle network. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1It is a flowchart of a method for deploying cache resources in an Internet of Vehicles provided by an embodiment of the present application;
[0045] Figure 2 It is a structural diagram of a cache resource deployment system for an Internet of Vehicles provided by an embodiment of the present application;
[0046] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0050] Reference Figure 1 An embodiment of the present application provides a method for deploying cache resources in an Internet of Vehicles, the method for deploying cache resources in an Internet of Vehicles comprising:
[0051] Step S100: Determine the resources to be cached and the deployment nodes in the Internet of Vehicles system.
[0052] Normally, the Internet of Vehicles system includes base stations, cloud servers, edge servers and vehicles, and the subject of the task request is the vehicle. During the off-peak period of the system, the cache resources required for the task request initiated by the vehicle user can be deployed in the vehicle or edge server that is closer to the vehicle that initiated the task request, so that the user can avoid high uplink latency when making the request. For example: when the task request is a computing task request, the vehicle needs to offload the task to the corresponding node (vehicle or edge server). If the offloaded node has the corresponding cache resources for the task in advance (such as video programs, service models, etc.), then the offloaded node can directly perform the calculation without calling resources.
[0053] In step S100, it is assumed that the task request has multiple types of task requests, one is a computing task request, and the other is a content task request. If the task request is a computing task request, then the resources to be cached may include but are not limited to video processing programs, service models, etc., which are specifically related to the computing task request. If the task request is a content task request, then the resources to be cached may include but are not limited to web pages, videos, pictures, etc.
[0054] Step S200: According to the network status of the Internet of Vehicles system, taking the call delay of the resources to be cached as a standard, predicting the real-time cache profit generated when the corresponding resources to be cached are deployed on the corresponding deployment nodes.
[0055] In step S200, when calculating the real-time cache profit, the network status of the Internet of Vehicles system needs to be considered. The network status here includes but is not limited to: the remaining cache capacity of the deployment node, the distance between the vehicle and the deployment node, the communication environment (affecting the data transmission delay), etc.
[0056] In some embodiments, assuming there are M deployment nodes, use v j represents the jth deployment node, with L vehicles (which can be the initiator of the task request or the deployment node), and v i Indicates that the i-th vehicle has K resources to be cached, and q k Indicates the kth resource. j,k (t) indicates the deployment node v at the current time t j Deploy the cached resources q k Real-time cache profit:
[0057]
[0058] Among them, T i,k (t) represents the vehicle v corresponding to the current time t i Treat cached resources q k The cache call delay, δ represents the discount factor, u k is 0 or 1. When the task request is a computing task request, u k =0; F j Indicates the deployment node v j The cache call delay is related to the communication environment, communication distance, and resource size of both parties. The higher the δ value, the greater the reward for considering the computing task request part.
[0059] Compared with the existing solution, this embodiment considers multiple types of task requests, one of which is a computing task request u k =0, the other is content task request u k= 1, using the average cache call latency at time t as a reference, and also considering the computing capacity of the node that the computing task requests, calculate the current time t on the deployment node v j Deploy the cached resources q k Real-time cache profit.
[0060] Step S300: If there is a historical deployment of the resource to be cached, the historical cache profit generated in the process of deploying the resource to be cached with a historical deployment in the corresponding deployment node is calculated based on the call delay of the resource to be cached.
[0061] Step S300 includes:
[0062] Step S310: Obtain historical tasks for invoking the cached resources on the deployment node.
[0063] Step S320: Calculate the historical cache profit according to the task completion delay generated by the historical tasks.
[0064] Since it is impossible to determine the task requests of future vehicle users, it is impossible to determine the specific benefits of the cache resource deployment, so the future benefits are predicted based on the historical data of task requests initiated by past vehicle users. This embodiment uses the task completion delays requested by past vehicle users as a reference for calculating the historical cache profits.
[0065] Step S400: According to the real-time cache profit and the historical cache profit, a greedy search algorithm is used to select a target deployment node for the resource to be cached.
[0066] In step S400, this embodiment calculates the real-time cache profit of each deployment node through the network status, and simultaneously calculates the historical cache profit of the corresponding cache resources deployed at the deployment node in the past period of time. The two parts constitute the total cache profit. According to the greedy deployment plan, the total cache profit can be used as a reference to guide how to deploy the resources to be cached at the deployment node, while also improving the rationality of the deployment of the resources to be cached.
[0067] In some embodiments of the present application, step S400 is specifically as follows:
[0068] Step S410: sort the resources to be cached.
[0069] Step S420: traverse each resource to be cached in order to determine the target deployment node selected by each resource to be cached:
[0070] Step S421: Determine multiple deployment nodes that can deploy resources to be cached.
[0071] Step S422: Calculate the sum of the real-time cache profit and the historical cache profit when the resource to be cached is deployed on each of the multiple deployment nodes.
[0072] Step S423: Select a deployment node corresponding to the maximum value of the sum of the real-time cache profit and the historical cache profit as the target deployment node.
[0073] In some embodiments of the present application, the calculation function of the sum of the real-time cache profit and the historical cache profit includes:
[0074] R(t)=λ j r j,k (t)+(1-λ j )v j,k (t)
[0075] Among them, R(t) represents the number of nodes deployed at the current time t. j Deploy the cached resources q k The sum of the real-time cache profit and the historical cache profit; r j,k (t) indicates the deployment node v at the current time t j Deploy the cached resources q k Real-time cache profit; v j,k (t) indicates the resource to be cached q k Deployed on deployment node v j The historical cache profit generated on j represents the weight coefficient, λ j Changes with the deployment node.
[0076] Because in the Internet of Vehicles system, due to the mobility of the vehicle, it may go out of the communication range of the base station. As a deployment node, it is necessary to maintain the v j,k (t) is unstable. Therefore, when deploying cache resources on mobile vehicle nodes, it is necessary to pay more attention to the current state of the vehicle, that is, to increase the weight of the real-time gain of the vehicle cache and reduce v j,k Therefore, this embodiment introduces a discriminative real-time weight factor λ j , and can adjust the proportion of real-time cache profit and historical cache profit in real time. j Can be set based on experience.
[0077] In some embodiments of the present application, the cache resource deployment method of the Internet of Vehicles further includes:
[0078] Step S500: preset period.
[0079] Step S600: Every time a cycle is repeated, the historical cache profit v is updated according to the following method: j,k (t):
[0080]
[0081]
[0082] in, represents the learning rate, γ represents the time discount coefficient, Indicates t ′ Resources to be cached at all times k Deployed on deployment node v j The cache profit, T L Indicates the preset period, t ′ The value range of time is [tT L +1,t],T i,k (t ′ ) indicates t ′ Resources to be cached at all times k Deployed on deployment node v j On, by vehicle v i The task completion delay of the historical task call.
[0083] Because in real scenarios, the heat of cached resources is often updated slowly compared to changes in the network environment under edge computing, so the formulation of cache deployment strategies has a certain timeliness, and the frequent update of historical cache profits will lead to a heavier computing load. Therefore, in order to adapt to the replacement of cache heat of cached resources and the occurrence of task requests from vehicle users, as well as the difference in change frequency, the above steps set a cycle to update the historical cache profit on a large time scale.
[0084] Since the task completion delay of the user's task request is known in the past, according to the Bellman update principle, the task completion delay of the known task request in the last large time scale is used as a reward for updating the historical cache profit, and the historical cache profit can be updated in a multi-step manner.
[0085] The present application also provides an embodiment as shown below:
[0086]
[0087]
[0088] The total cache profit consists of two parts: historical cache profit and real-time cache profit.
[0089] Lines 7 and 8 of the code calculate the total cache revenue. First, based on the p of the resource to be cached k / y k , sort by the ratio of popularity to size; k / yk Larger resources to be cached are placed at the head of the queue. After the queue is completed, the total cache benefits of the cache resources deployed on each deployment node are calculated in turn, and the node with the largest total cache benefit is selected for placement. After a round, the storage space of the deployment node is updated until the last resource to be cached in the queue is placed.
[0090] Output corresponding cache deployment results.
[0091] The present application also provides an application embodiment of a cache resource deployment method for an Internet of Vehicles:
[0092] For the Internet of Vehicles system, setting up the resources to be cached on the deployment nodes in advance can save the time of offloading calculations. Given the limited storage capacity of the deployment nodes, an effective cache placement strategy for the resources to be cached can greatly reduce the calculation time delay of vehicle tasks. In the Internet of Vehicles system, each vehicle and edge system can be used as a deployment node. For the resources to be cached, in order to maximize the cache profit, this method is applied to calculate the real-time cache profit of each deployment node through the current network status, and at the same time calculate the historical cache profit of the corresponding resources to be cached deployed on the deployment node in the past period of time. The two parts constitute the total cache profit. Using the total cache profit as a reference to guide how to deploy the resources to be cached on the cache deployment nodes can maximize the cache profit and thus improve the rationality of the deployment of the resources to be cached.
[0093] like Figure 3 The embodiment of the present application further provides an electronic device, the electronic device comprising:
[0094] at least one memory;
[0095] at least one processor;
[0096] at least one program;
[0097] The programs are stored in the memory, and the processor executes at least one program to implement the super-resolution reconstruction method of the sea surface height described above in the present disclosure.
[0098] The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a vehicle-mounted computer, etc.
[0099] The electronic device according to the embodiment of the present application is described in detail below.
[0100] The processor 1600 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0101] The memory 1700 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1700 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the program code is stored in the memory 1700, and the processor 1600 calls and executes the super-resolution reconstruction method of the sea surface height in the embodiment of the present application.
[0102] Input / output interface 1800, used to implement information input and output;
[0103] The communication interface 1900 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0104] Bus 2000 , which transmits information between various components of the device (e.g., processor 1600 , memory 1700 , input / output interface 1800 , and communication interface 1900 );
[0105] The processor 1600 , the memory 1700 , the input / output interface 1800 , and the communication interface 1900 are connected to each other in communication within the device via the bus 2000 .
[0106] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned super-resolution reconstruction method of sea surface height.
[0107] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0108] The embodiments described in this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0109] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0110] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0112] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0113] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] 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.
[0116] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs.
[0118] The above is a specific description of the preferred implementation of the embodiments of the present application, but the embodiments of the present application are not limited to the above-mentioned implementation methods. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.
Claims
1. A cache resource deployment method for an Internet of Vehicles, It is characterized in that The cache resource deployment method of the Internet of Vehicles includes: Determine the resources to be cached and the deployment nodes in the Internet of Vehicles system; According to the network status of the Internet of Vehicles system, taking the call delay of the resource to be cached as a standard, predicting the real-time cache profit generated when the corresponding resource to be cached is deployed on the corresponding deployment node; If the resource to be cached has a historical deployment, the historical cache profit generated in the process of deploying the resource to be cached with a historical deployment in the corresponding deployment node is calculated based on the call delay of the resource to be cached. According to the real-time cache profit and the historical cache profit, a greedy search algorithm is adopted to select a target deployment node for the resource to be cached.
2. A method for deploying cache resources in an Internet of Vehicles according to claim 1, It is characterized in that The historical cache profit generated in the process of deploying the to-be-cached resources with historical deployment on the corresponding deployment nodes includes: Obtaining a historical task of calling the resource to be cached cached on the deployment node; The historical cache profit is calculated based on the call delay generated by the historical task.
3. A method for deploying cache resources in an Internet of Vehicles according to claim 2, It is characterized in that The step of selecting a target deployment node for the resource to be cached by using a greedy search algorithm according to the real-time cache profit and the historical cache profit includes: Sorting the resources to be cached; Each of the resources to be cached is traversed in order to determine the target deployment node selected corresponding to each of the resources to be cached, wherein the process of determining the target deployment node selected corresponding to any one of the resources to be cached includes: Determine a plurality of deployment nodes capable of deploying the resources to be cached; Calculate the sum of the real-time cache profit and the historical cache profit when the resource to be cached is deployed on each of the multiple deployment nodes; A deployment node corresponding to the maximum value of the sum of the real-time cache profit and the historical cache profit is selected as the target deployment node.
4. A method for deploying cache resources in an Internet of Vehicles according to claim 3, It is characterized in that The calculation function of the sum of the real-time cache profit and the historical cache profit includes: R(t)=λ j r j,k (t)+(1-λ j )v j,k (t) Among them, R(t) represents the number of nodes deployed at time t. j Deploy the cached resources q k The sum of the real-time cache profit and the historical cache profit; r j,k (t) represents the time when node v is deployed j Deploy the cached resources q k Real-time cache profit, v j,k (t) indicates the resource to be cached q k Deployed on deployment node v j The historical cache profit generated on j Represents the weight coefficient.
5. A method for deploying cache resources in an Internet of Vehicles according to claim 4, It is characterized in that r j,k The calculation functions of (t) include: Among them, T i,k (t) represents the vehicle v at time t i On the deployment node v j The resource to be cached on q k The cache call delay, δ represents the discount factor, u k is 0 or 1. When the task request is a computing task request, u k =0, F j Indicates the deployment node v j computing power.
6. A method for deploying cache resources in an Internet of Vehicles according to claim 5, It is characterized in that The cache resource deployment method of the Internet of Vehicles also includes: Preset cycle; Each time a cycle is cycled, the historical cache profit v is updated according to the following method j,k (t): in, represents the learning rate, γ represents the time discount coefficient, Indicates the resource q to be cached at time t′ k Deployed on deployment node v j The cache profit, T L represents the preset period, and the value range of time t′ is [tT L +1,t],T i,k (t′) represents the resource q to be cached at time t′ k Deployed on deployment node v j On, by vehicle v i The task completion delay of the historical task call.
7. A method for deploying cache resources in an Internet of Vehicles according to claim 3, It is characterized in that Sorting the resources to be cached includes: Calculating the heat of the resource to be cached and the size of the resource to be cached; The resources to be cached are sorted according to the ratio of the heat of the resources to be cached to the size of the resources to be cached.
8. A cache resource deployment system for Internet of Vehicles, It is characterized in that The cache resource deployment system of the Internet of Vehicles includes: A data determination unit, used to determine the resources to be cached and the deployment nodes in the Internet of Vehicles system; A real-time cache profit calculation unit, configured to predict the real-time cache profit generated when the corresponding resource to be cached is deployed on the corresponding deployment node according to the network status of the Internet of Vehicles system and the call delay of the resource to be cached as a standard; A historical cache profit calculation unit, used for, if the resource to be cached has a historical deployment, taking the call delay of the resource to be cached as a standard, calculating the historical cache profit generated in the process of deploying the resource to be cached with a historical deployment in the corresponding deployment node; The node determination unit is used to select a target deployment node for the resource to be cached by adopting a greedy search algorithm according to the real-time cache profit and the historical cache profit.
9. An electronic device, It is characterized in that include: at least one control processor and a memory for communicatively coupling with the at least one control processor; The memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the cache resource deployment method for the Internet of Vehicles described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the cache resource deployment of the Internet of Vehicles as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Content cache deployment method in mobile edge cloud
CN112020103A
Latency in edge computing
US11695646B1
Joint Routing And Caching Method For Content Delivery With Optimality Guarantees for Arbitrary Networks
US20200137192A1
Optimal Admission Control For Caches
US20210390104A1
Heterogeneous network cache decision-making method based on user preference prediction
WO2021253835A1
