A resource pushing method and device, electronic equipment and storage medium

By acquiring the vehicle's travel route and real-time location, the pre-caching server is determined and the target data is cached, which solves the problem of business interruption when the vehicle switches between edge servers, and achieves fast data transmission and improved user experience.

CN118200390BActive Publication Date: 2025-12-16CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410226491.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2025-12-16
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

The business interruption caused when vehicles switch between edge servers, especially when frequently switching edge servers during high-speed movement, can lead to problems such as video freezes and video dizziness, affecting the virtual reality user experience.

Method used

By acquiring the vehicle's travel route and real-time location, the pre-caching server and adjacent edge servers are identified. The target data is cached and pushed when the vehicle connects to the pre-caching server, avoiding repeated caching processes and improving data transmission efficiency.

Benefits of technology

This reduced caching time, improved the performance of vehicle-related services, prevented service interruptions caused by excessive caching time, and enhanced the virtual reality user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118200390B_ABST
    Figure CN118200390B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of information transmission, and provides a resource pushing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a travel route of a current vehicle and a real-time position of the current vehicle; determining a pre-caching server corresponding to the current vehicle according to the travel route and the real-time position, wherein an edge server connected with the pre-caching server and the current vehicle is an adjacent server; determining target data corresponding to the current vehicle, and caching the target data on the pre-caching server; if the current vehicle is connected with the pre-caching server, the target data is pushed to the current vehicle, and the target data is cached on the pre-caching server; when the current vehicle is connected with the pre-caching server in the future, the pre-caching server can directly transmit the target data to the current vehicle, thereby avoiding the problem that the current vehicle service stagnates due to the fact that the pre-caching server and the current vehicle are connected and then start to cache the target data, and the caching time is too long.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of information transmission, and particularly relates to a resource pushing method and device, electronic equipment and a storage medium. BACKGROUND

[0002] With the rapid development of intelligent vehicles and vehicle terminal technologies, people no longer simply use vehicles as a means of transportation when driving, but gradually enjoy life in vehicles. The entertainment system on the vehicle enables the driver and passengers to enjoy movies, music, etc. while driving, thereby relieving fatigue, and the application of the entertainment system in vehicles is becoming more and more popular.

[0003] With the development of technologies, users can enjoy the functions and experiences brought by different devices during vehicle travel, thereby relieving fatigue. However, when the vehicle is moving at high speed, the vehicle inevitably frequently switches between edge servers, so that the vehicle obtains different data from different edge servers, thereby causing additional communication overhead and delay, and leading to business stagnation of the entertainment system on the vehicle. For example, virtual reality technology (VR) is widely used in the automotive industry. When the vehicle switches between different edge servers, the vehicle needs to obtain different segments of VR video from different edge servers, which easily causes video stagnation, video dizziness, and the like, thereby affecting the quality of experience (QoE) of VR users. How to reduce the business stagnation on the vehicle has become a problem to be solved. SUMMARY

[0004] In view of this, the embodiments of the present application provide a resource pushing method and device, electronic equipment and a storage medium to solve the problem that the vehicle switches between edge servers during travel, thereby causing business stagnation.

[0005] The first aspect of the embodiments of the present application provides a resource pushing method, which comprises: obtaining a travel route of a current vehicle and a real-time position of the current vehicle; determining a pre-caching server corresponding to the current vehicle according to the travel route and the real-time position, the edge server connected with the pre-caching server and the current vehicle being adjacent servers; determining target data corresponding to the current vehicle, and caching the target data on the pre-caching server; and pushing the target data to the current vehicle if the current vehicle is connected with the pre-caching server.

[0006] In a second aspect, the embodiment of the present application provides a resource pushing device, which comprises: an acquisition module, configured to acquire a travel route of a current vehicle and a real-time position of the current vehicle; a determination module, configured to determine a pre-cache server corresponding to the current vehicle according to the travel route and the real-time position, and determine that an edge server connected with the pre-cache server is a neighboring server; a cache module, configured to determine target data corresponding to the current vehicle, and cache the target data on the pre-cache server; and a pushing module, configured to push the target data to the current vehicle if the current vehicle is connected with the pre-cache server.

[0007] In a third aspect, the embodiment of the present application provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.

[0008] In a fourth aspect, the embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the above method when executed by a processor.

[0009] Compared with the prior art, the embodiment of the present application has the beneficial effects that: in the embodiment of the present application, the travel route of the current vehicle and the real-time position of the current vehicle are acquired; the pre-cache server corresponding to the current vehicle is determined according to the travel route and the real-time position, and the edge server connected with the pre-cache server is determined as the neighboring server; the target data corresponding to the current vehicle is determined, and the target data is cached on the pre-cache server; if the current vehicle is connected with the pre-cache server, the target data is pushed to the current vehicle, and the target data is cached on the pre-cache server, so that the pre-cache server can directly transmit the target data to the current vehicle when the current vehicle is connected with the pre-cache server in the future, thereby saving the cache time of the pre-cache server in caching the target data, enabling the pre-cache server to quickly transmit the target data to the current vehicle, improving the service experience of the current vehicle in executing the service, and avoiding the problem that the current vehicle is stagnant due to the long cache time of the pre-cache server in caching the target data after the pre-cache server is connected with the current vehicle. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0011] Figure 1is a flowchart of a resource pushing method provided by an embodiment of the present application;

[0012] Figure 1 a is a basic communication diagram of an edge server and a vehicle provided by an embodiment of the present application;

[0013] Figure 2 is a flowchart of another resource pushing method provided by an embodiment of the present application;

[0014] Figure 3 is a flowchart of another resource pushing method provided by an embodiment of the present application;

[0015] Figure 4 is a flowchart of another resource pushing method provided by an embodiment of the present application;

[0016] Figure 5 is a flowchart of another resource pushing method provided by an embodiment of the present application;

[0017] Figure 6 is a flowchart of another optional resource pushing method provided by an embodiment of the present application;

[0018] Figure 6a is a basic diagram of two videos having the same data block provided by an embodiment of the present application;

[0019] Figure 7 is a flowchart of another optional resource pushing method provided by an embodiment of the present application;

[0020] Figure 8 is a structural diagram of a resource pushing device provided by an embodiment of the present application;

[0021] Figure 9 is a structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following description, for the purposes of explanation and not limitation, specific details are set forth, such as particular sequences of acts, in order to thoroughly understand the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0023] A resource pushing method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0024] Figure 1 is a flowchart of a resource pushing method provided by an embodiment of the present application, asFigure 1 The resource pushing method comprises the following steps of:

[0025] S101, acquiring a travel route of a current vehicle and a real-time position of the current vehicle;

[0026] S102, determining a pre-caching server corresponding to the current vehicle according to the travel route and the real-time position, and determining that an edge server connected with the pre-caching server is a neighboring server;

[0027] S103, determining target data corresponding to the current vehicle, and caching the target data on the pre-caching server;

[0028] S104, if the current vehicle is connected with the pre-caching server, pushing the target data to the current vehicle.

[0029] Specifically, the resource pushing method provided by the embodiment is applied to a resource pushing system, the resource pushing system is connected with a plurality of edge servers, and each edge server has caching resources and computing resources, so that each edge server can cache and compute data required by a vehicle. It can be understood that the vehicle includes a vehicle with automatic driving or intelligent driving (including a vehicle with a passenger function (such as a car, a bus, a minibus, etc.), a vehicle with a cargo function (such as a general truck, a van, a drop trailer, a closed truck, a tank truck, a flatbed truck, a container truck, a self-unloading truck, a special structure truck), a special vehicle (such as a logistics distribution vehicle, an automatic guided vehicle AGV, a patrol vehicle, a crane, a crane, an excavator, a bulldozer, a shovel truck, a road roller, a loader, an off-road engineering vehicle, an armored engineering vehicle, a sewage treatment vehicle, a sanitation vehicle, a dust suction vehicle, a washing vehicle, a watering vehicle, a sweeping robot, a delivery robot, a shopping guide robot, a mower, a golf cart, etc.), a vehicle with entertainment function (such as an entertainment vehicle, an amusement park automatic driving device, a balance car, etc.), a rescue vehicle (such as a fire truck, an ambulance, a power repair truck, an engineering rescue truck, etc.), etc.

[0030] In some examples, the resource pushing system can acquire the travel route of the current vehicle and the real-time position of the current vehicle in various ways; for example, the resource pushing system acquires the travel route of the current vehicle through a navigation system of the current vehicle, the resource pushing system acquires the real-time position of the current vehicle through a global positioning system (GPS) of the current vehicle; for another example, the resource pushing system acquires the travel route of the current vehicle through historical data of the current vehicle. The present embodiment is not used to limit the specific way of acquiring the travel route of the current vehicle and the real-time position of the current vehicle, and relevant personnel can flexibly select the acquisition method according to actual needs.

[0031] In some examples, after obtaining the travel route and the real-time position, the resource pushing system further determines a pre-caching server corresponding to the current vehicle according to the travel route and the real-time position, and the pre-caching server and the edge server connected by the current vehicle are adjacent servers; specifically, as shown in Figure 1 a Figure 1 a There are several edge servers and several vehicles in the figure, and the current vehicle is taken as the vehicle a. The vehicle a moves along the travel route g, and there are b edge server, c edge server, e edge server and d edge server on the route g. When the vehicle a moves along the route g and the vehicle a is connected with the b edge server, the resource pushing system takes the c edge server or the e edge server as the pre-caching edge server. It will be described in detail later how to determine the edge server according to the travel route and the real-time position, and it will not be described here.

[0032] In some examples, the edge server is deployed on the base station, that is, each edge server corresponds to a base station, and each base station is provided with an edge server. In some examples, the edge server can also be separately provided. Preferably, the edge server and the base station are an integral whole (that is, each base station is provided with an edge server).

[0033] In some examples, the current vehicle corresponding target data is further determined in the example, and the target data is cached on the pre-caching server. Specifically, the target data is the data required by the current vehicle to perform the service after connecting the pre-caching server. The target data is cached on the pre-caching server, and then the pre-caching server can directly transmit the target data to the current vehicle when the current vehicle is connected with the pre-caching server, thereby avoiding the problem that the pre-caching server caches the target data from the beginning, the cache time is too long, and the service is stagnant. For example, taking the target data as VR data as an example, the VR device is provided on the current vehicle, and the user accesses the VR video through the VR device. It is determined that the target data is the VR video, and after the VR video is determined, the VR video is further cached on the pre-caching server, so that the pre-caching server can directly send the cached VR video to the VR device when the VR device is connected with the pre-caching server.

[0034] ​In some examples, the edge server and the base station are integrated as a whole, each base station has a corresponding coverage range, and the current vehicle performs base station switching according to the real-time position (a person skilled in the art can know the method of base station switching). If the current vehicle is connected to the base station corresponding to the pre-caching server, it is determined that the current vehicle is connected to the pre-caching server. At this time, the pre-caching server pushes the target data to the current vehicle, thereby saving the caching time, enabling the pre-caching server to quickly transmit the target data to the current vehicle, improving the service experience of the current vehicle in executing the service, and avoiding the problem that the current vehicle service is stagnant due to the long caching time of the target data after the pre-caching server is connected to the current vehicle. If the current vehicle is not connected to the base station corresponding to the pre-caching server, the target data is continuously cached (the cached target data is updated in this process).

[0035] According to the technical scheme provided by the embodiment of the application, the travel route of the current vehicle and the real-time position of the current vehicle are obtained. According to the travel route and the real-time position, the pre-caching server corresponding to the current vehicle is determined, and the edge server connected to the pre-caching server and the current vehicle is the adjacent server. The target data corresponding to the current vehicle is determined, and the target data is cached on the pre-caching server. If the current vehicle is connected to the pre-caching server, the target data is pushed to the current vehicle, and the target data is cached on the pre-caching server. When the current vehicle is connected to the pre-caching server in the future, the pre-caching server can directly transmit the target data to the current vehicle, thereby saving the caching time of the pre-caching server in caching the target data when the current vehicle is connected to the pre-caching server, enabling the pre-caching server to quickly transmit the target data to the current vehicle, improving the service experience of the current vehicle in executing the service, and avoiding the problem that the current vehicle service is stagnant due to the long caching time of the target data after the pre-caching server is connected to the current vehicle.

[0036] In some embodiments, as shown in Figure 2 determining the pre-caching server corresponding to the current vehicle according to the travel route and the real-time position includes:

[0037] S201, determining the connection probability of the current vehicle and each edge server according to the travel route and the real-time position.

[0038] S202, if the connection probability of the current vehicle and any edge server exceeds a preset probability threshold, and the edge server connected to the current vehicle is the adjacent server, the edge server is taken as the pre-caching server.

[0039] Specifically, taking the binding of each edge server to a base station as an example, relevant technicians can obtain the probability of the current vehicle switching to the base station based on the distance between the base station and the current vehicle; specifically, based on the current vehicle's travel route, they can accurately obtain the edge servers that the current vehicle can connect to on the travel route, and through the real-time location of the current vehicle, they can know the distance between the current vehicle and each edge server, and thus determine the connection probability of the current vehicle connecting to each edge server.

[0040] Continuing from the previous example, such as Figure 1 a As shown, Figure 1 a There are several edge servers (b, c, d, e, and f) and several vehicles. Taking vehicle a in the diagram as an example, vehicle a moves along route g, and there are edge servers b, c, e, and d on route g. Therefore, edge servers b, c, e, and d are the edge servers that the current vehicle can connect to. Then, the real-time position of the current vehicle is obtained. Based on the real-time position of the current vehicle and the positions of edge servers b, c, e, and d, the distance between the current vehicle and edge servers b, c, e, and d is obtained. The distance between the current vehicle and edge servers b, c, e, and d is then determined (the closer the distance, the higher the connection probability; the specific ratio can be flexibly set by relevant personnel according to actual needs).

[0041] Continuing the previous example, if the probability of the current vehicle connecting to any edge server exceeds a preset probability threshold, and that edge server is an adjacent server to the one connected to the current vehicle, then that edge server is designated as a pre-caching server. It is understood that the aforementioned probability threshold is a value set by relevant personnel based on actual circumstances. Specifically, for example... Figure 1 a As shown, vehicle a is connected to edge server b. If the connection probabilities of edge servers e and d with the current vehicle both exceed a probability threshold, then determine the relationship between edge servers e and d and edge server b. Figure 1 a As can be seen, edge server e and edge server b are adjacent, while edge server d and edge server b are not adjacent. Therefore, edge server e will be used as a pre-caching server. Figure 1 a As shown, since edge server d and edge server b are not adjacent, the current vehicle must connect to other edge servers before connecting to edge server d. Therefore, this example will not use edge server d as a pre-caching server.

[0042] In some examples, when each edge server is bound with a base station, the base station to be switched can also be determined based on the coverage of each base station, the capability of each base station, and the real-time position of the current vehicle together, and the edge server on the base station to be switched is taken as the pre-caching server.

[0043] According to the technical scheme provided by the embodiment of the application, the pre-caching server corresponding to the current vehicle is determined according to the route and the real-time position, including: determining the connection probability of the current vehicle and each edge server according to the route and the real-time position; if the connection probability of the current vehicle and any edge server exceeds a preset probability threshold, and the edge server connected with the current vehicle is an adjacent server, the edge server is taken as the pre-caching server, thereby realizing accurate determination of the pre-caching server.

[0044] In some embodiments, as shown in Figure 3 The target data corresponding to the current vehicle is determined, including:

[0045] S301, obtaining an execution service of a current vehicle, and determining service data corresponding to the current vehicle according to the execution service;

[0046] S302, determining usage data contained by the current vehicle, and determining target data according to the usage data and the service data.

[0047] Specifically, the execution service of the current vehicle is obtained, and the execution service of the current vehicle can be an execution service corresponding to an entertainment system (for example, a car entertainment system) on the current vehicle, and can also be an execution service corresponding to an entertainment device (for example, a VR device on the current vehicle) on the current vehicle, and the execution service includes but is not limited to one of a movie and music.

[0048] In the above example, the service data corresponding to the current vehicle is further determined according to the execution service in this example, for example, the execution service of the current vehicle is a movie service, and the data corresponding to the movie service is taken as the service data corresponding to the current vehicle, for example, the execution service of the current vehicle is to play a movie A, and the current vehicle requests the data of the movie A, and the data of the movie A is taken as the service data corresponding to the current vehicle.

[0049] In some examples, by determining usage data contained by the current vehicle, target data is determined according to the usage data and the service data, wherein the usage data is data in the service data that has been transmitted to the current vehicle, and the target data is data in the service data that has not been transmitted to the current vehicle; for example, the execution service of the current vehicle is playing a movie A, and data of the movie A is taken as the service data corresponding to the current vehicle. Since the service data corresponding to the movie A is continuously transmitted to the current vehicle, rather than instantaneously transmitted, the service data corresponding to the movie A is recorded as X, data in the service data X that has been transmitted to the current vehicle is recorded as usage data Y, and the target data remaining to be transmitted can be determined by X-Y.

[0050] According to the technical scheme provided by the embodiment of the application, the execution service of the current vehicle is obtained, and the service data corresponding to the current vehicle is determined according to the execution service. The usage data contained by the current vehicle is determined, and the target data is determined according to the usage data and the service data, thereby accurately determining the target data.

[0051] In some embodiments, the manner of caching the target data includes a first caching manner and a second caching manner. The caching resource used by the first caching manner to cache the target data is greater than the caching resource used by the second caching manner to cache the target data, and the computing resource used by the caching manner to cache the target data is lower than the computing resource used by the second caching manner to cache the target data, as shown in the following table. Figure 4 As shown in the table, the target data is cached on the pre-caching server, including:

[0052] S401, determining the caching resource and the computing resource corresponding to the pre-caching server;

[0053] S402, cutting the target data according to the caching resource and the computing resource corresponding to the pre-caching server, to obtain first target data and second target data;

[0054] S403, directly caching the first target data by the first caching manner, and compressing the second target data by the second caching manner, and caching the compressed second target data.

[0055] Specifically, the first caching manner is to directly cache the target data to the pre-caching server after obtaining the target data, and the pre-caching server does not need to calculate or only needs a small amount of calculation, thereby saving the computing resource of the pre-caching server. The second caching manner is to compress the target data by the computing resource of the pre-caching server after obtaining the target data, and then cache the compressed target data to the pre-caching server. In subsequent use, the compressed target data still needs to be restored by using the computing resource. Since the compressed target data is smaller than the original target data, the caching resource of the pre-caching server is saved.

[0056] Continuing the previous example, the present example can directly cache all target data in the pre-cache server through the first caching mode; the present example can also directly cache all target data in the pre-cache server through the second caching mode; when all target data uses the first caching mode, it will cause the use of too much cache resource and too little computing resource of the pre-cache server; similarly, when all target data uses the second caching mode, it will cause the use of too much computing resource and too little cache resource of the pre-cache server, therefore, in some examples, the first caching mode and the second caching mode can be used to cache target data at the same time, so as to balance the use of computing resource and cache resource of the pre-cache server.

[0057] Specifically, the present example first determines the cache resource and computing resource corresponding to the pre-cache server, wherein the cache resource and computing resource of each pre-cache server are limited resources, therefore, before caching the target data, the present example will obtain the cache resource and computing resource corresponding to the pre-cache server, and subsequently, based on the cache resource and computing resource, how to cache the target data will be determined.

[0058] Continuing the previous example, after determining the cache resource and computing resource corresponding to the pre-cache server, the present example further cuts the target data according to the cache resource and computing resource corresponding to the pre-cache server, to obtain first target data and second target data, wherein the first target data and the second target data can compose complete target data; specifically, if the cache resource of the pre-cache server is more and the computing resource is less, then the first target data after cutting is more and the second target data is less; on the contrary, if the cache resource of the pre-cache server is less and the computing resource is more, then the first target data after cutting is less and the second target data is more. Wherein, how to cut and divide the target data, and the proportion of the first target data and the second target data in the target data can be flexibly set by relevant personnel according to actual needs, and the present embodiment does not limit this.

[0059] In some examples, after obtaining the first target data and the second target data, the first target data is directly cached through the first caching mode, the second target data is compressed through the second caching mode, and the compressed second target data is cached, so as to balance the cache resource and computing resource of the pre-cache server; it can be understood that the above compression mode includes but is not limited to format conversion.

[0060] For example, taking the target data as VR video data, under the condition that the pre-caching server contains limited cache and computing resources, the example uses two cache modes (first cache mode and second cache mode), wherein the first cache mode is to directly cache the original VR video (the original VR video is a 3D video), and the second cache mode is to compress the original VR video into a 2D VR video, and then cache the compressed VR video to the pre-caching server. Specifically, first, download the original VR video from the cloud server of the VR video provider, and then cut the original VR video (the original VR video is a 3D video), wherein x i.j ∈[0,1] represents the proportion of the size of the cached 2D VR video file to the total storage space allocated by the base station j for the user i, based on the above proportion, the VR video data is cut to obtain a first VR video and a second VR video, and then the first cache mode is used to cache the first VR video in the pre-caching server. The first cache mode avoids the need for subsequent transmission of VR video by the pre-caching server to perform the calculation and rendering operation from 2D perspective to 3D perspective of the stored VR video, thereby reducing the consumption of computing resources. Similarly, the second cache mode is used to cache the second VR video in the pre-caching server (the second VR video is cached in the pre-caching server after being converted to 2D perspective), compared with the first cache mode, the second cache mode reduces at least more than half of the cache resources required for caching the VR video, but the subsequent transmission still consumes computing resources to convert the 2D VR video to 3D VR video.

[0061] It can be understood that in some examples, the example also considers the channel capacity provided for the current vehicle. Specifically, taking the example of binding each base station with each pre-caching server (the base station is represented as Each base station deploys an edge server, and the vehicles within the coverage range of the base station (pre-caching server) are represented as Each vehicle sends a service request to the base station (pre-caching server), and the VR content directory that can be requested is represented as The channel capacity calculation method of the vehicle is as follows:

[0062]

[0063] wherein w i,j represents the bandwidth resource amount allocated by the base station j to the vehicle i, P j represents the transmission power of the base station j, represents the channel gain between the base station j and the vehicle i, σ 2 represents the Gaussian white noise power.

[0064] In some examples, when the vehicle is preparing to enter or leave the coverage range of the edge server currently connected, the requested target data will be pre-cached or pre-cached and calculated on the next connected pre-caching server under the constraint of available computing and storage resources, and the bandwidth for the vehicle will also be pre-allocated on the base station of the pre-caching server according to the capacity of the vehicle requesting the target data, which will cause the change of the system state in terms of computing and storage resources. It can be found that the next state of the pre-caching server, i.e. the remaining amount of each resource after the resource allocation, only depends on the resource remaining amount of the current pre-caching server and the resource allocation action, which conforms to the Markov property. Therefore, in some examples, the allocation of cache resources and computing resources can be performed by a Markov decision model, which contains three elements: state space, action space and reward value.

[0065] The state space includes the allocated cache resources and computing resources of the pre-caching server and the switching state of the vehicle and the pre-caching server, and is specifically as follows.

[0066]

[0067] wherein S is the state space, is the allocated cache resources of the pre-caching server j for the vehicle i at time t, x is the allocated computing resources of the pre-caching server j for the vehicle i at time t, x represents the connection state between the pre-caching server j and the vehicle i.

[0068] The action space includes the proportion of the second target data cached, the size of the allocated cache resources, and the size of the allocated computing resources, and is specifically as follows.

[0069]

[0070] wherein A is the action space, is the proportion of the second target data cached by the pre-caching server j+1 for the vehicle i at time t, x is the size of the allocated cache resources of the pre-caching server j+1 for the vehicle i at time t, x is the size of the allocated computing resources of the pre-caching server j+1 for the vehicle i at time t. x

[0071] The reward value is specifically as follows.

[0072]

[0073] wherein​​​​​ is represented by a reward value, represents a target data size that the pre-caching server j+1 actively caches for the vehicle i, represents a duration of a persistent connection between the vehicle i and the pre-caching server j+1.

[0074] It can be understood that the Markov decision process can adopt a reinforcement learning algorithm such as Q-learning, but in practice, the update of the Q value faces the challenge of the "dimension curse", and the large-scale action space makes the efficiency of exploration and utilization slow. Therefore, quantum computing will be introduced in the solving algorithm to solve the high complexity of calculation, that is, a quantum reinforcement learning method. Specifically, first, the above action space and state space are initialized; then in each training round, the execution policy of the action space is determined based on the state change of the state space; the target action is executed based on the execution policy, and the target state and the target reward value are obtained; whether to update the execution policy is determined based on the target reward value; finally, the caching policy and the scheduling policy are obtained in the case where it is determined that the convergence condition is reached. In this way, the quantum operator can quickly improve the probability of "good" actions, and the reinforcement learning converges faster, shortens the time, and can obtain a better caching resource and computing resource allocation strategy in less time.

[0075] According to the technical scheme provided in the embodiments of the present application, the caching resource and the computing resource corresponding to the pre-caching server are determined; the target data is cut based on the caching resource and the computing resource corresponding to the pre-caching server, to obtain first target data and second target data; the first target data is directly cached through the first caching manner, and the second target data is compressed through the second caching manner, and the compressed second target data is cached, wherein the first target data is cached through the first caching manner, which achieves the effect of saving the computing resource of the pre-caching server, the second target data is cached through the second caching manner, which achieves the effect of saving the caching resource of the pre-caching server, the target data is divided into the first target data and the second target data and is cached through the first caching manner and the second caching manner, which achieves the effect of balancing the caching resource and the computing resource of the pre-caching server, avoiding the problem that the use of the first caching manner alone causes the use of only the caching resource of the pre-caching server, resulting in excessive pressure on the caching resource, and simultaneously avoiding the problem that the use of the second caching manner alone causes the use of only the computing resource of the pre-caching server, resulting in excessive pressure on the computing resource.

[0076] In some embodiments, as shown in FIG. 5, Figure 5 the target data is pushed to the current vehicle, including:

[0077] S501, the first target data is directly pushed to the current vehicle;

[0078] S502, restore the second target data compressed and cached to obtain original second target data, and push the original second target data to the current vehicle.

[0079] Specifically, when the current vehicle is connected with the pre-caching server and the current vehicle continues to request target data, the pre-caching server sends the first target data and the second target data to the current vehicle; since the first target data is original and uncompressed data, when the current vehicle is connected with the pre-caching server, the pre-caching server directly sends the first target data to the current vehicle, thereby realizing fast sending of the first target data to the current vehicle and avoiding business stagnation caused by the pre-caching server needing to cache the first target data before sending the first target data to the current vehicle when the current vehicle is connected with the pre-caching server, thereby improving business fluency of executing a business.

[0080] Since the second target data is compressed and cached data, the pre-caching server needs to restore the second target data compressed and cached to obtain original second target data, and push the original second target data to the current vehicle, for example, taking target data as VR video data, the second target data compressed is 2d VR video data, the pre-caching server needs to render and restore the 2d VR video data to obtain original 3D VR video data, and then send the 3D VR video data to the current vehicle.

[0081] According to the technical scheme provided in the embodiments of the present application, the first target data is directly pushed to the current vehicle, the second target data compressed and cached is restored to obtain original second target data, and the original second target data is pushed to the current vehicle, thereby achieving the effect of quickly pushing original target data to the current vehicle, avoiding the problem of business stagnation caused by the pre-caching server needing to cache target data before sending the target data to the current vehicle when the current vehicle is connected with the pre-caching server, and improving business fluency of executing a business.

[0082] In some examples, as shown in Figure 6 The restoring of the second target data compressed and cached to obtain original second target data includes:

[0083] S601, comparing the second target data compressed and cached with resources compressed and cached in the pre-caching server;

[0084] S602, if the similarity of the second target data compressed and cached and the resources compressed and cached in the pre-caching server exceeds a similarity threshold, and the resources compressed and cached in the pre-caching server are in a restored state, directly taking the restored resources compressed and cached in the pre-caching server as original second target data.

[0085] Specifically, the data cached by different vehicles in the same pre-cache server can be the same, and for the same part, the pre-cache server only restores once and returns the restored data to all vehicles, thereby reducing the amount of calculation and reducing the consumption of computing resources. Therefore, the second target data compressed in the cache is compared with the compressed resources in the pre-cache server in this example. If the similarity of the second target data compressed in the cache and the compressed resources in the pre-cache server exceeds the similarity threshold, and the compressed resources in the pre-cache server are in a restored state, the restored compressed resources in the pre-cache server are directly used as the original second target data, thereby avoiding restoring the same second target data again, thereby reducing the amount of calculation and reducing the consumption of computing resources. If the similarity of the second target data compressed in the cache and the compressed resources in the pre-cache server does not exceed the similarity threshold, the second target data compressed in the cache can be directly restored.

[0086] For example, taking the second target data as VR video data as an example, there can be repeated parts in the video view angle of different vehicles, such as Figure 6a As shown, there are the same parts in the data blocks of the VR video data requested by vehicle 1 and vehicle 2. For the same part, the pre-cache server only needs to calculate once to provide to vehicle 1 and vehicle 2, wherein S1 represents the size of VR video data 1, S2 represents the size of VR video data 2, and C 1,2 represents the content similarity coefficient between VR video data 1 and 2. Then the data size of the same part between VR video data S1 and S2 can be represented as S1C 1,2 Each pre-cache server j serves multiple vehicles i, so the amount of data that each pre-cache server needs to calculate is:

[0087]

[0088] where K=∑ v∈V y i,v

[0089] where C k represents a set of content correlation coefficients, for example Figure 6a In the above example, the same parts are (2, 2), (3, 2), and (4, 2), and the content similarity coefficient is Then the data size of the same part is 3 data blocks. Compared with the need to calculate 12 blocks for each video block, only 9 blocks need to be calculated after considering the content similarity, thereby reducing the consumption of computing resources.

[0090] According to the technical scheme provided in the embodiment of the present application, the second target data in the compressed cache is compared with the resource in the compressed cache in the pre-cache server; if the similarity of the second target data in the compressed cache and the resource in the compressed cache in the pre-cache server exceeds a similarity threshold, and the resource in the compressed cache in the pre-cache server is in a restored state, the restored resource in the compressed cache in the pre-cache server is directly taken as the original second target data; for the same part, the pre-cache server only restores once and returns the restored data to all vehicles, thereby reducing the calculation amount and consumption of the calculation resource, and further avoiding the problem that the same data content is restored, resulting in waste of the calculation resource.

[0091] In some examples, as shown in FIG. 7, Figure 7 After the target data is pushed to the current vehicle, the method further includes:

[0092] S701, re-determining the pre-cache server corresponding to the current vehicle and re-determining the target data corresponding to the current vehicle;

[0093] S702, caching the re-determined target data in the re-determined pre-cache server.

[0094] Specifically, if the current vehicle is in a traveling state, the position of the current vehicle will change in real time, and the execution business of the current vehicle can also change. Therefore, the present example repeatedly determines the pre-cache server and the target data after the pre-cache server and the target data are determined. If the pre-cache server and / or the target data change, the target data is re-cached in the pre-cache server.

[0095] Specifically, if the pre-cache server and the target data are both updated, the re-determined target data is cached in the re-determined pre-cache server; if the pre-cache server is updated and the target data is not updated, the target data is re-cached in the re-determined pre-cache server; if the pre-cache server is not updated and the target data is updated, the re-determined target data is re-cached in the determined pre-cache server.

[0096] According to the technical scheme provided in the embodiment of the present application, the pre-cache server corresponding to the current vehicle is re-determined, and the target data corresponding to the current vehicle is re-determined; the re-determined target data is cached in the re-determined pre-cache server, so that the pre-cache server and the target data can be updated to meet the demand of the execution business of the current vehicle.

[0097] All the optional technical schemes described above can be combined to form optional embodiments of the present application, which will not be described herein again.

[0098] The following is an embodiment of the device of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the method embodiment of the present application.

[0099] The embodiment also provides a resource pushing device, as shown in the figure, the resource pushing device is applied to a vehicle, the device comprises: Figure 8

[0100] The acquisition module 801 is configured to acquire a travel route of the current vehicle and a real-time position of the current vehicle.

[0101] The determination module 802 is configured to determine a pre-caching server corresponding to the current vehicle according to the travel route and the real-time position, and determine that an edge server connected with the current vehicle is a neighboring server.

[0102] The caching module 803 is configured to determine target data corresponding to the current vehicle, and cache the target data on the pre-caching server.

[0103] The pushing module 804 is configured to push the target data to the current vehicle if the current vehicle is connected with the pre-caching server.

[0104] In some examples, the determination module 802 is further configured to determine a connection probability of the current vehicle connecting with each edge server according to the travel route and the real-time position, and determine the edge server as the pre-caching server if the connection probability of the current vehicle connecting with any edge server exceeds a preset probability threshold, and the edge server is the neighboring server of the edge server connected with the current vehicle.

[0105] In some examples, the caching module 803 is further configured to acquire an execution service of the current vehicle, determine service data corresponding to the current vehicle according to the execution service, determine usage data contained in the current vehicle, and determine the target data according to the usage data and the service data.

[0106] In some examples, the caching mode of the target data comprises a first caching mode and a second caching mode, the caching resource used by the target data in the first caching mode is greater than the caching resource used by the target data in the second caching mode, the computing resource used by the target data in the caching mode is lower than the computing resource used by the target data in the second caching mode, the caching module 803 is further configured to determine the caching resource and the computing resource corresponding to the pre-caching server, cut the target data according to the caching resource and the computing resource corresponding to the pre-caching server to obtain first target data and second target data, directly cache the first target data by the first caching mode, compress the second target data by the second caching mode, and cache the compressed second target data.

[0107] ​In some examples, the push module 804 is also used to directly push the first target data to the current vehicle; restore the compressed cached second target data to obtain the original second target data, and push the original second target data to the current vehicle.

[0108] In some examples, the push module 804 is also used to compare the second target data of the compressed cache with the resources of the compressed cache in the pre-caching server; if the similarity between the second target data of the compressed cache and the resources of the compressed cache in the pre-caching server exceeds the similarity threshold, and the resources of the compressed cache in the pre-caching server are in a restored state, then the restored resources of the compressed cache in the pre-caching server are directly used as the original second target data.

[0109] In some examples, the push module 804 is also used to redetermine the pre-cache server corresponding to the current vehicle and redetermine the target data corresponding to the current vehicle; and cache the redetermined target data in the redetermined pre-cache server.

[0110] According to the technical solution provided in the embodiments of this application, the above-mentioned device obtains the current vehicle's travel route and real-time location; determines the pre-caching server corresponding to the current vehicle based on the travel route and real-time location, and the pre-caching server and the edge server connected to the current vehicle are adjacent servers; determines the target data corresponding to the current vehicle and caches the target data on the pre-caching server; if the current vehicle is connected to the pre-caching server, the target data is pushed to the current vehicle and cached on the pre-caching server. Subsequently, when the current vehicle connects to the pre-caching server, the pre-caching server can directly transmit the target data to the current vehicle. This saves the caching time of the pre-caching server when it connects to the pre-caching server, enabling the pre-caching server to quickly transmit the target data to the current vehicle, improving the business experience of the current vehicle's business, and avoiding the problem of the current vehicle's business being interrupted due to the long caching time caused by the pre-caching server starting to cache the target data after connecting to the current vehicle.

[0111] Figure 9 This is a schematic diagram of the electronic device 9 provided in an embodiment of this application. Figure 9 As shown, the electronic device 9 of this embodiment includes a processor 901, a memory 902, and a computer program 903 stored in the memory 902 and executable on the processor 901. When the processor 901 executes the computer program 903, it implements the steps in the various method embodiments described above. Alternatively, when the processor 901 executes the computer program 903, it implements the functions of each module / unit in the various device embodiments described above.

[0112] The electronic device 9 can be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 9 can include, but is not limited to, a processor 901 and a memory 902. Those skilled in the art can understand that Figure 9 The electronic device 9 is merely an example and does not constitute a limitation on the electronic device 9, and can include more or fewer components or different components than those shown.

[0113] The processor 901 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like.

[0114] The memory 902 can be an internal storage unit of the electronic device 9, for example, a hard disk or a memory of the electronic device 9. The memory 902 can also be an external storage device of the electronic device 9, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, or the like. The memory 902 can also include both the internal storage unit and the external storage device of the electronic device 9. The memory 902 is used to store computer programs and other programs and data required by the electronic device.

[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of functional units and modules is exemplified, and in actual applications, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0116] The integrated modules / units, if implemented in the form of software functional units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can be executed by a processor to implement the steps of the above-mentioned various method embodiments. The computer program can include computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electric carrier signals and telecommunication signals.

[0117] The above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A resource push method, characterized in that, The method includes: Obtain the current vehicle's route and its real-time location; Based on the travel route and the real-time location, the pre-cache server corresponding to the current vehicle is determined, and the pre-cache server and the edge server connected to the current vehicle are adjacent servers; The target data corresponding to the current vehicle is determined, and the target data is cached on the pre-caching server; the target data is the remaining data in the business data corresponding to the current vehicle's execution business that has not yet been transmitted to the current vehicle. If the current vehicle is connected to the pre-caching server, the target data is pushed to the current vehicle; The methods for caching the target data include a first caching method and a second caching method. The first caching method uses more cache resources than the second caching method, and the first caching method uses fewer computing resources than the second caching method. Cache the target data on the pre-caching server, including: Determine the cache resources and computing resources corresponding to the pre-caching server; The target data is segmented according to the cache resources and computing resources corresponding to the pre-caching server to obtain the first target data and the second target data. The first target data is directly cached using the first caching method, and the second target data is compressed using the second caching method, and the compressed second target data is cached. Pushing the target data to the current vehicle includes: The first target data is directly pushed to the current vehicle; The second target data in the compressed cache is compared with the resources in the compressed cache within the pre-cached server; If the similarity between the second target data in the compressed cache and the resource in the compressed cache in the pre-cache server exceeds the similarity threshold, and the resource in the compressed cache in the pre-cache server is in a restored state, then the restored resource in the compressed cache in the pre-cache server is directly used as the original second target data, and the original second target data is pushed to the current vehicle.

2. The method according to claim 1, characterized in that, Determining the pre-caching server corresponding to the current vehicle based on the travel route and the real-time location includes: Based on the travel route and the real-time location, determine the connection probability between the current vehicle and each edge server; If the connection probability between the current vehicle and any edge server exceeds a preset probability threshold, and the edge server connected to the current vehicle is an adjacent server, then the edge server is used as the pre-caching server.

3. The method according to claim 1, characterized in that, Determining the target data corresponding to the current vehicle includes: Obtain the currently executed business of the vehicle, and determine the business data corresponding to the current vehicle based on the executed business; The usage data contained in the current vehicle is determined, and the target data is determined based on the usage data and the business data.

4. The method according to claim 1, characterized in that, After pushing the target data to the current vehicle, the method further includes: The pre-cache server corresponding to the current vehicle is re-determined, and the target data corresponding to the current vehicle is re-determined; The redefined target data is cached in the redefined pre-caching server.

5. A resource delivery device, characterized in that, The device includes: The acquisition module is used to acquire the current vehicle's travel route and the current vehicle's real-time location; The determination module is used to determine the pre-cache server corresponding to the current vehicle based on the travel route and the real-time location, wherein the pre-cache server and the edge server connected to the current vehicle are adjacent servers; A caching module is used to determine the target data corresponding to the current vehicle and cache the target data on the pre-caching server; the target data is the remaining data in the business data corresponding to the current vehicle's execution business that has not been transmitted to the current vehicle. The push module is used to push the target data to the current vehicle if the current vehicle is connected to the pre-caching server. The method of caching the target data includes a first caching method and a second caching method. The first caching method uses more cache resources than the second caching method, and the first caching method uses less computing resources than the second caching method. The caching module is specifically used to: determine the cache resources and computing resources corresponding to the pre-caching server; segment the target data according to the cache resources and computing resources corresponding to the pre-caching server to obtain first target data and second target data; directly cache the first target data using the first caching method; compress the second target data using the second caching method; and cache the compressed second target data. The push module is specifically used for: directly pushing the first target data to the current vehicle; comparing the compressed cached second target data with the compressed cached resources in the pre-cache server; if the similarity between the compressed cached second target data and the compressed cached resources in the pre-cache server exceeds a similarity threshold, and the compressed cached resources in the pre-cache server are in a restored state, then the restored compressed cached resources in the pre-cache server are directly used as the original second target data, and the original second target data is pushed to the current vehicle.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Cross-edge service migration method, device and equipment and computer readable medium

    CN114489976A