A method for automatic machine caching
By introducing the machine automatic cache method in a wireless communication environment, using the content detection module and the content download module to determine whether the content to be forwarded by the base station is needed, the problem of machine cache waste in a wireless communication environment is solved, and resource and space saving is achieved. Improved cache performance and intelligence.
Patent Information
- Application Number
- CN202211008995.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2025-02-25
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN115474241B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communications, and in particular to a machine automatic caching method in a wireless communication environment. Background Art
[0002] As smart terminals become more ubiquitous, mobile service demands have greatly increased, and wireless network caching is also facing huge challenges. The basic principle of CDN (Content Delivery Network) is to widely use various cache servers and set up more cache servers in areas with high user activity. When users access content, the content is dispatched to the nearest server to respond to the request. The purpose is to solve the problem of network congestion and improve user access speed. Due to the limited communication resources and cache space, invalid data caching will cause resource waste.
[0003] The hardware performance of computer systems varies greatly. To solve the problem of inconsistent data transmission, many cache strategies have been developed. Caches improve the hit rate of cache content by designing algorithms such as data segmentation, prefetching, sequential prefetching, and cache replacement. The main cache strategies of storage systems include cache strategies based on access time, cache strategies based on access frequency, and so on. Traditional cache strategies include specifying which data needs to be cached, when to perform cache storage operations, and which content to discard when the cache space is full.
[0004] The basic working principle of Web caching is as follows:
[0005] The basic cache processing steps for HTTP GET messages are as follows:
[0006] 1. Receive - the cache reads the request message arriving from the network;
[0007] 2. Parsing - The cache parses the message and extracts the URL (Uniform Resource Locator) and various headers;
[0008] Query - the cache checks to see if a local copy is available, and if not, gets a copy and saves it locally.
[0009] 4. Freshness check - the cache checks whether the cached copy is fresh enough. If not, it asks the server if there are any updates.
[0010] 5. Create Response - The cache constructs a response message using the new header and the cached body.
[0011] 6. Send - The cache sends the response back to the client over the network;
[0012] 7. Log - The cache optionally creates a log file entry describing the transaction.
[0013] A large amount of content appears every day. If a user device, i.e. a machine, is cached every time it enters the forwarding range of a base station, there is a high possibility that the cached content is not needed by the machine, which will cause a waste of network bandwidth and cache space. Summary of the invention
[0014] In view of the problem that existing machine cache wastes network bandwidth and cache space, the present invention proposes a method for automatic machine caching in a wireless communication environment, which solves the problem of whether the machine needs to download the content locally when discovering the content, and can reduce the waste of network resources and cache space to a certain extent.
[0015] The present invention provides a method for automatic machine caching, which is applied in a wireless communication environment. The machine has downloaded an initial version of content. When the machine enters the forwarding range of the base station, the machine executes the method of the present invention to automatically update the content cache.
[0016] The method of the present invention comprises the following steps:
[0017] Step 1: When the machine enters the forwarding range of the base station, the machine determines whether its own storage content is consistent with the content to be forwarded by the base station. If they are consistent, the content to be forwarded by the base station is ignored and not downloaded; if they are inconsistent, it goes to step 2;
[0018] Step 2: The machine determines whether the content to be forwarded by the base station is needed based on current needs. If necessary, it is automatically cached locally without request. Otherwise, the content to be forwarded by the base station is ignored and not downloaded.
[0019] In the step 1, summary information of the content to be forwarded by the base station is obtained, including the unique code of the object or area, the update date, the content size, etc.; the obtained summary information is compared with the content stored in itself, and if the update date and content size of the same object or area are consistent, it is determined that the content stored in itself is consistent with the content to be forwarded by the base station.
[0020] In the step 2, whether the content to be forwarded by the base station is needed is determined, including: obtaining the unique code and location of the object or area involved in the current user demand, and determining whether the location of the object or area in the content to be forwarded by the base station is within the machine coverage area of the location involved in the user demand. If so, it means it is needed, otherwise it is not needed.
[0021] Compared with the prior art, the advantages and positive effects of the present invention are: the method of the present invention enables the machine to automatically determine whether the content is needed, and automatically cache it locally after determining that it is needed. If it is not needed, it will not be cached. Compared with the prior art, there is no need to download all the content to be forwarded by the base station, and the needs of the machine itself are guaranteed, saving network resource consumption and storage space consumption, and there is no need for manual confirmation whether to download, which is more intelligent and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is an overall flow chart of the machine automatic caching method of the present invention;
[0023] Figure 2 Schematic diagram of the machine not entering and entering the forwarding range of the base station, (a) is the case of not entering, (b) is the case of entering;
[0024] Figure 3 A schematic diagram of the situation where the machine coverage area does not intersect with the target content;
[0025] Figure 4 A schematic diagram showing the intersection of the machine coverage area and the target content. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0027] The embodiment of the present invention is combined with the question of whether the navigation passing nearby needs to perform cache update after the name of a street on the map is updated. The present invention implements a method for automatic machine caching in a wireless communication environment, which mainly includes: detecting that the content has not been cached after entering the forwarding range of the base station; determining whether the content is needed, and if so, downloading it to the local computer. Figure 1 As shown, the embodiment of the present invention is described below in two steps.
[0028] The machine automatic caching method implemented by the present invention has two components installed on the user equipment: a content detection module and a content download module. The functions implemented by the two modules are described in the following steps.
[0029] Step 1: The content detection module first detects whether the machine has entered the forwarding range of the base station. Figure 2 As shown in (a), if the machine does not enter the forwarding range of the base station, no judgment will be made. Figure 2 As shown in (b), when the machine enters the forwarding range of the base station, the content detection module starts to judge whether its existing content is consistent with the content to be forwarded by the base station. If they are consistent, it is ignored; if they are inconsistent, it goes to step 2.
[0030] In the prior art, the machine directly downloads the content to be forwarded by the base station. The downloaded content may not be needed by the machine or may already be on the machine but does not need to be updated, which will waste network traffic and storage space of the machine. Different from the prior art, in step 1 of the present invention, a content detection module is set to perform a pre-judgment before downloading to determine whether the machine has already stored the content to be forwarded by the base station locally. If so, it will not be downloaded, thus reducing the waste of network traffic and storage space.
[0031] In an embodiment of the present invention, a content detection module detects whether there is an update for a navigation application opened by a user device, and determines whether there is an update by judging whether its own existing content is consistent with the content to be forwarded by the base station. If they are consistent, it indicates that there is no update and no download is required. Otherwise, it indicates that there is an update and the content download module is triggered.
[0032] The content detection module of this machine needs to obtain the summary of the content to be forwarded by the base station, which records the name, code, location, update date, content size and other information of the object involved in the update. The summary of the content to be forwarded by the base station in the embodiment of the present invention includes the road name, road number, address, update date, update content size, etc.; the existing content of the machine obtained by the embodiment of the present invention includes the area, road name, number, update date, etc. The embodiment of the present invention can judge whether it is consistent according to the area, road number, update date, update content size, etc.
[0033] Step 2: The content download module determines whether the content to be forwarded by the base station is needed based on the machine's own needs. If it is needed, it is useful information and is automatically cached locally without request. If it is not needed, it is useless information and is directly ignored and not downloaded.
[0034] The content download module determines whether the content to be forwarded by the base station needs to be downloaded. The judgment process is as follows: obtain the current user demand, determine the intersection between the demand and the content to be forwarded, if there is an intersection, it is determined to be needed, if there is no intersection, it is determined not to be needed.
[0035] In the embodiment of the present invention, the content download module determines whether there is an intersection with the content to be forwarded based on the path that the current user navigates. Figure 3 As shown in , the current machine's demand is a solid line track. The circle in the figure represents the area covered by the machine. This area does not cover the updated road, that is, the content to be forwarded does not intersect with the demand, so it is judged as not needed and the content to be forwarded can be ignored. Figure 4 As shown, the current machine's demand is a solid line trajectory, and the circle represents the machine's coverage area. This area covers the updated roads, and the content to be forwarded intersects with the demand. At this time, it is judged to be needed. At this time, no request confirmation is required, and the machine automatically downloads the content to be forwarded to the local.
[0036] Because the existing technology covers a wide range of user needs, it does not adopt a technical solution such as the present invention that determines whether it is necessary to update resources on the base station by analyzing user needs. The present invention analyzes user needs in advance, obtains the unique code and location of the object or area involved based on the resource information of the application involved in the user needs, and then compares it with the summary of the content to be forwarded by the base station to determine whether there is an intersection. As in the embodiment of the present invention, the location point closest to the navigation path of this machine is found based on the road number (unique code) updated in the summary, and it is determined whether the updated road is within the machine coverage of the nearest location point. The machine coverage range is set according to the user device, and a fixed value can also be set in advance.
[0037] Through experiments, it is found that although the judgment time is increased by adopting the solution of the present invention, it can greatly improve the cache performance, save network performance, and does not require human intervention, which is more intelligent, convenient and fast.
[0038] Except for the technical features described in the specification, all of them are known technologies to those skilled in the art. The present invention omits the description of known components and known technologies to avoid redundancy and unnecessary limitation of the present invention. The implementation methods described in the above embodiments do not represent all implementation methods consistent with the present application. On the basis of the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative labor are still within the protection scope of the present invention.
Claims
1. A method for automatic machine caching, characterized in that: In a wireless communication environment, the machine has downloaded the initial version of the navigation application. When the machine enters the forwarding range of the base station, the machine performs the following steps to automatically update the content cache: Step 1: When the machine enters the forwarding range of the base station, the machine determines whether the content stored in itself is consistent with the content to be forwarded by the base station. If they are consistent, the content to be forwarded by the base station is ignored and not downloaded; if they are inconsistent, go to step 2; The machine obtains summary information of the content to be forwarded by the base station, including the unique code of the object or area, the road name, the road number, the update date and the content size; compares the obtained summary information with the content stored in the machine to determine whether the same content has been stored; Step 2: The machine determines whether the content to be forwarded by the base station is needed according to the current demand. If necessary, the content to be forwarded is automatically cached to the local machine without requesting; Otherwise, the content to be forwarded by the base station is ignored and not downloaded; The machine determines whether the content to be forwarded by the base station is needed, including: obtaining the unique code and position of the object or area involved in the current user demand, judging whether the position of the object or area in the content to be forwarded by the base station is within the machine coverage area of the location involved in the user demand, if so, it means it is needed, otherwise it means it is not needed; the current user demand is the path traveled by the current user navigation; wherein, judging whether it is within the machine coverage area of the location involved in the user demand means: obtaining the road code updated in the summary, finding the location point closest to the navigation path of this machine, and judging whether the updated road is within the machine coverage range of the nearest location point.
Citation Information
Patent Citations
File transmission method and system in instant communication process
CN107018068A
Method and device for supporting data transmission
CN113473567A