Data transmission method and device, electronic equipment, storage medium and program product

By using data transmission methods in the mobile Internet environment, multiple decision values ​​are obtained to determine cache decisions, the problem of insufficient response speed of HTTP/HTTPS protocol in the mobile Internet is solved, and faster response speed and better user experience are achieved.

CN119629240AActive Publication Date: 2025-03-14CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1

Patent Information

Application Number
CN202411826302.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-14
Estimated Expiration
2044-12-11

AI Technical Summary

Technical Problem

In the mobile Internet environment, the network instability and high latency of the HTTP/HTTPS protocol are difficult to meet users' needs for fast response. The existing CDN technology is limited by the TCP protocol, and the room for improvement in response speed is limited.

Method used

By applying a data transmission method on the central node, it obtains frequency decision values, timeliness decision values, spatial decision values ​​and pre-determined decision values ​​in response to the request of the edge node, and determines the cache decision based on these decision values ​​to decide whether to cache the requested data to the edge node.

Benefits of technology

It realizes the cache of popular request data to edge nodes, reduces unnecessary back-end queries, improves the utilization of edge node cache space, improves the overall performance of the system, and thus improves response speed and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629240A_ABST
    Figure CN119629240A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, electronic equipment, a storage medium and a program product, and relates to the technical field of data caching. The method comprises the following steps: in response to a request of an edge node, obtaining a frequency decision value, an aging decision value, a space decision value and a prefetching decision value, and determining a cache decision according to the frequency decision value, the aging decision value, the space decision value and the prefetching decision value; under the condition that the caching decision is the first result, caching the request data to the edge node, so that the edge node sends the request data to the terminal equipment; and when the cache decision is the second result, sending the request data to the terminal device. According to the method and the device, unnecessary back-end query can be reduced, the utilization rate of the edge node cache space can be improved, the overall performance of the system is improved, the response speed is further improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Currently, HTTP (Hypertext Transfer Protocol) / HTTPS (Secure Hypertext Transfer Protocol) is widely used in Internet content distribution. However, in the mobile Internet environment, due to network instability and high latency, it is difficult to meet users' demand for fast response.

[0003] In the related art, CDN (Content Distribution Network) technology is used to solve the above problems. However, CDN usually relies on the TCP protocol, which limits its performance improvement space to a certain extent, especially in terms of response speed.

[0004] How to improve response speed and user experience is an urgent problem to be solved. Summary of the invention

[0005] The present disclosure provides a data transmission method, device, electronic device, storage medium and program product, which can at least increase the response speed and improve the user experience to a certain extent.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, there is provided a data transmission method, which is applied to a central node, and includes: in response to a request from an edge node, obtaining a frequency decision value, a timeliness decision value, a space decision value, and a pre-fetch decision value, wherein the frequency decision value is used to determine whether to prioritize caching parameters of requested data, the timeliness decision value is used to determine whether to update the requested data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation in which the requested data will be requested, and the requested data is data requested to be obtained by a terminal device; determining a cache decision based on the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value; if the cache decision is a first result, caching the requested data to the edge node so that the edge node sends the requested data to the terminal device; if the cache decision is a second result, sending the requested data to the terminal device.

[0008] In one embodiment of the present disclosure, before obtaining the frequency decision value, the timeliness decision value, the space decision value and the prefetch decision value, the method also includes: determining the request frequency based on the number of requests for the requested data and the total number of requests for all data, and determining the frequency decision value based on the request frequency and the frequency threshold; determining the timeliness decision value based on the current time, the update time and the preset validity period; determining the cache space utilization based on the total space of the edge node and the used space of the edge node; determining the space decision value based on the cache space utilization and the space utilization threshold; determining the prefetch decision value based on the predicted request probability of the requested data and the prefetch threshold.

[0009] In one embodiment of the present disclosure, a cache decision is determined based on the frequency decision value, the timeliness decision value, the space decision value and the prefetch decision value, including: performing an AND operation on the frequency decision value, the timeliness decision value, the space decision value and the prefetch decision value to obtain a cache decision value, and determining the cache decision based on the cache decision value; or calculating an average value of the frequency decision value, the timeliness decision value, the space decision value and the prefetch decision value to obtain a cache decision value, and determining the cache decision based on the cache decision value.

[0010] In one embodiment of the present disclosure, the method also includes: monitoring performance indicators, the performance indicators including one or more of bandwidth utilization, request response time, cache hit rate, cache space utilization and network congestion; judging whether the performance indicators meet the requirements; and continuing to monitor the performance indicators if the performance indicators meet the requirements.

[0011] In one embodiment of the present disclosure, the method further includes: if the performance indicator does not meet the requirements, adjusting cache parameters, the cache parameters including cache size, elimination strategy parameters, pre-fetch threshold, frequency threshold and preset validity period.

[0012] In one embodiment of the present disclosure, after the cache parameters are adjusted, the method further includes: obtaining a performance indicator and comparing the performance indicator with the performance indicator before the cache parameters are adjusted; when the comparison result satisfies a preset condition, determining whether a preset effect is met; when the preset effect is met, continuing to monitor the performance indicator; when the preset effect is not met, adjusting the cache parameters until the preset effect is met; wherein the preset condition is that the performance indicator after adjusting the cache parameters is improved, and the preset effect is that the performance indicator meets a preset first target performance indicator threshold.

[0013] In one embodiment of the present disclosure, the method further includes: if the comparison result does not satisfy a preset condition, adjusting the cache parameter until the preset condition is satisfied.

[0014] According to another aspect of the present disclosure, a data transmission system is provided, including: a terminal device, configured to send a request to an edge node; the edge node, configured to receive the request sent by the edge node, and determine whether the local cache caches the requested data, and send a request to the central node if the requested data is not cached; the central node, configured to obtain a frequency decision value, a timeliness decision value, a space decision value, and a pre-fetch decision value in response to the request of the edge node, wherein the frequency decision value is used to determine whether to cache the requested data first, the timeliness decision value is used to determine whether to update the requested data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation where the requested data will be requested, and the requested data is the data requested by the terminal device; a cache decision is determined according to the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value; if the cache decision is a first result, the requested data is cached to the edge node so that the edge node sends the requested data to the terminal device; if the cache decision is a second result, the requested data is sent to the terminal device.

[0015] In one embodiment of the present disclosure, the terminal device establishes a connection with the edge node through the QUIC protocol, and the edge node establishes a connection with the central node through the QUIC protocol.

[0016] According to another aspect of the present disclosure, there is provided a data transmission device, comprising: an acquisition module, for acquiring a frequency decision value, a timeliness decision value, a space decision value and a pre-fetch decision value in response to a request from an edge node, wherein the frequency decision value is used to determine whether to cache the request data first, the timeliness decision value is used to determine whether to update the request data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation in which the request data will be requested, and the request data is the data requested to be acquired by a terminal device; a determination module, for determining a cache decision according to the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value; a sending module, for caching the request data to the edge node when the cache decision is a first result, so that the edge node sends the request data to the terminal device; the sending module is also used to send the request data to the terminal device when the cache decision is a second result.

[0017] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the above-mentioned data transmission methods by executing the executable instructions.

[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any of the above-mentioned data transmission methods is implemented.

[0019] According to another aspect of the present disclosure, a computer program product is provided, the computer program product comprising a computer program or computer instructions, the computer program or the computer instructions being loaded and executed by a processor so that a computer implements any of the above-mentioned data transmission methods.

[0020] In an embodiment of the present disclosure, the central node obtains a frequency decision value, a timeliness decision value, a space decision value, and a pre-fetch decision value in response to a request from an edge node, and determines a cache decision based on the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value; when the cache decision is a first result, the request data is cached to the edge node so that the edge node sends the request data to the terminal device; when the cache decision is a second result, the request data is sent to the terminal device. The present disclosure utilizes the frequency decision value, the timeliness decision value, the pre-fetch decision value of the request data, and the space decision value of the edge node to determine whether to cache the request data to the edge node, thereby caching popular request data to the edge node, reducing unnecessary backend queries, and improving the utilization rate of the edge node cache space, thereby improving the overall performance of the system, thereby improving the response speed, and improving the user experience.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0023] Figure 1 A schematic diagram showing a data transmission system architecture in an embodiment of the present disclosure.

[0024] Figure 2 A flow chart of a data transmission method in an embodiment of the present disclosure is shown.

[0025] Figure 3 A flow chart of a data transmission method in another embodiment of the present disclosure is shown.

[0026] Figure 4 A flow chart of a data transmission method in yet another embodiment of the present disclosure is shown.

[0027] Figure 5 A flow chart of a data transmission method in another embodiment of the present disclosure is shown.

[0028] Figure 6 A schematic diagram of a data transmission system in an embodiment of the present disclosure is shown.

[0029] Figure 7 A signaling diagram of the data transmission method according to an embodiment of the present disclosure is shown.

[0030] Figure 8 A schematic diagram of a data transmission device in an embodiment of the present disclosure is shown.

[0031] Fig. 9 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown.

[0032] Fig.10 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0034] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0035] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0037] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0038] It should be pointed out that, in the absence of conflict, the embodiments of the present disclosure and the technical features therein may be combined with each other.

[0039] For ease of understanding, several terms involved in the present disclosure are explained below:

[0040] Cloud-Edge Collaboration: A mode in which the central cloud (also known as the central node) and the edge cloud (also known as the edge node) jointly process tasks to improve system performance through resource allocation and scheduling.

[0041] CDN (Content Delivery Network): is a group of servers distributed in different geographical locations, whose purpose is to distribute Internet content to users more efficiently.

[0042] LRU (Least Recently Used): is a cache elimination strategy that eliminates the least recently used data items.

[0043] LFU (Least Frequently Used): LFU is a cache eviction strategy that evicts the data items with the lowest access frequency.

[0044] SASE (Secure Access Service Edge) is an emerging network architecture that aims to provide unified security and network services for modern enterprises, especially to meet the needs of cloud computing and distributed working environments.

[0045] TCP (Transmission Control Protocol) is a connection-oriented, reliable transport layer protocol that is responsible for providing end-to-end data transmission services in computer networks.

[0046] Congestion control: In network communications, a technology that dynamically adjusts the sending rate through an algorithm to avoid network congestion.

[0047] Selective retransmission: When packet loss is detected, only the lost packets are retransmitted instead of the entire message.

[0048] Path selection: In network communications, the technology of selecting the best path to transmit data based on the current network conditions.

[0049] Forward Error Correction: A technique that adds extra information to the transmitted data, allowing the receiver to correct errors under certain conditions.

[0050] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.

[0051] Figure 1 A schematic diagram of a data transmission system architecture in an embodiment of the present disclosure is shown, and the system can apply the data transmission method or data transmission device in each embodiment of the present disclosure.

[0052] like Figure 1 As shown, the system architecture 100 may include a terminal device 101 , an edge node 102 and a central node 103 .

[0053] The terminal device 101, the edge node 102 and the central node 103 are connected to each other through a network, which may be a wired network or a wireless network.

[0054] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.

[0055] Exemplarily, a connection is established between the terminal device 101 and the edge node 102 via the QUIC protocol. The edge node 102 and the central node 103 also communicate using the QUIC protocol or other efficient protocols.

[0056] The terminal device 101 (client device) can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc.

[0057] Optionally, the client of the application installed in different terminal devices 101 is the same, or the client of the same type of application based on different operating systems. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.

[0058] The edge node 102 is responsible for quickly responding to the request of the terminal device 101 and providing cache services, and can be deployed under the SASE architecture. The edge node 102 can be an edge cache server.

[0059] The central node 103 is a data center for storing original content and processing requests from the edge node 102 .

[0060] The edge node 102 and the central node 103 may be servers that provide various services, such as a background management server that provides support for devices operated by users using the terminal device 101. The background management server may analyze and process the received request data, and feed back the processing results to the terminal device.

[0061] Optionally, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0062] Those skilled in the art will know that Figure 1The number of terminal devices, edge nodes, and central nodes is only illustrative, and any number of terminal devices, edge nodes, and central nodes may be provided according to actual needs. This disclosure embodiment does not limit this.

[0063] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.

[0064] In one embodiment, if Figure 2 As shown, the data transmission method for user request data (such as browsing web pages) includes the following S202 to S209.

[0065] S201, the terminal device initiates a request.

[0066] S202: Establish a connection through a TCP three-way handshake. The connection may be a connection between a terminal device and an edge node, or a connection between a terminal device and a central node. This embodiment of the disclosure does not limit this.

[0067] S203, requesting resolution. For example, an edge node requests resolution. For another example, a central node requests resolution.

[0068] S204, the edge node performs a local cache check to determine whether the requested resource (ie, requested data) exists in the local cache. If so, S205 is executed. If not, S206 is executed.

[0069] S205, the edge node obtains metadata of the resource (such as last modification time, expiration time, etc.) from the local cache and returns the cached resource.

[0070] S206: The edge node sends a request to the central node.

[0071] S207, the central node responds, and the resources are returned to the edge node.

[0072] S208, the edge node stores the resource in the local cache and updates the cache metadata (such as the last modification time, expiration time, etc.).

[0073] S209: The edge node returns resources to the terminal device.

[0074] The handshake process of the TCP protocol in this embodiment is relatively long, which increases the waiting time for the first request. In addition, there is a lack of effective congestion control mechanism during data transmission, resulting in low bandwidth utilization. For frequently changing content, it is difficult to implement an efficient update strategy.

[0075] Based on this, the present disclosure provides a data transmission method that can be applied to large-scale distributed network environments, for example, in application scenarios such as mobile Internet and the Internet of Things that require low-latency and high-efficiency data transmission. The present disclosure uses the frequency decision value, timeliness decision value, pre-fetch decision value of the request data, and the spatial decision value of the edge node to determine whether to cache the request data to the edge node, thereby caching the popular request data to the edge node, reducing unnecessary back-end queries, and improving the utilization rate of the edge node cache space, improving the overall performance of the system, thereby improving the response speed, and improving the user experience. In addition, the strategy is updated through caching decisions to cope with frequently changing content.

[0076] A data transmission method is provided in an embodiment of the present disclosure. The method can be executed by any electronic device with computing and processing capabilities, for example, by a central node.

[0077] Figure 3 A flow chart of a data transmission method in another embodiment of the present disclosure is shown as follows: Figure 3 As shown, applied to a central node, the data transmission method provided in the embodiment of the present disclosure may include the following S301 to S304.

[0078] S301, in response to a request from an edge node, obtain a frequency decision value, a timeliness decision value, a space decision value, and a pre-fetch decision value, wherein the frequency decision value is used to determine whether to prioritize caching parameters of requested data, the timeliness decision value is used to determine whether to update the requested data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation in which the requested data will be requested, and the requested data is the data requested by the terminal device.

[0079] In the embodiment of the present disclosure, the request of the edge node is used to request the central node to send the data or resources requested by the terminal device to the terminal device.

[0080] S302, determining a cache decision according to a frequency decision value, a timeliness decision value, a space decision value, and a prefetch decision value.

[0081] In the disclosed embodiment, the cache decision may be to cache the request data to the edge node, or not to cache the request data on the edge node, directly send the request data to the terminal device, or forward the request data to the terminal device via the edge node.

[0082] S303: When the cache decision is the first result, cache the request data to the edge node, so that the edge node sends the request data to the terminal device.

[0083] S304: When the cache decision is the second result, the request data is sent to the terminal device.

[0084] In the embodiments of the present disclosure, there is no limitation on the form of expression of the cache decision. For example, when the cache decision is the first result (for example, the cache decision value is 1), it means that the request data has a high access frequency and meets the timeliness requirements, and the space on the edge node meets the requirements for caching the request data. Caching the request data to the edge node can improve the hit rate, ensure that popular content is always available, reduce unnecessary back-end queries, and improve the overall system performance. For another example, when the cache decision is the second result (for example, the cache decision value is 0), it means that the request data does not meet the cache conditions, and the request data is not cached at the edge node.

[0085] The disclosed embodiment utilizes the frequency decision value, timeliness decision value, pre-fetch decision value of request data and the space decision value of edge nodes to determine whether to cache request data to edge nodes, thereby caching popular request data to edge nodes, reducing unnecessary back-end queries, and improving the utilization rate of edge node cache space, thereby improving the overall performance of the system, thereby improving response speed and improving user experience.

[0086] The following describes how the present disclosure determines a cache decision through two exemplary embodiments.

[0087] In an exemplary embodiment, before obtaining the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value, the method provided by the embodiment of the present disclosure may further include the following steps A1 to A4.

[0088] Step A1, determining the request frequency according to the number of requests for the requested data and the total number of requests for all data, and determining the frequency decision value according to the request frequency and the frequency threshold.

[0089] In the disclosed embodiment, the number of requests for request data is the number of times the request data is requested within a period of time, and the total number of requests for all data is the total number of times all data is requested within a period of time. For example, within a month, the number of times the request data is requested is 5, and the total number of times all data is requested is 100.

[0090] The request frequency is calculated by the following formula 1.

[0091]

[0092] Among them, f i is the request frequency of the ith resource (request data), N i is the number of requests for data, n is the number of all resources (the total amount of data), N j is the number of requests for the jth resource, where j is an integer greater than 0 and less than or equal to n.

[0093] In the embodiment of the present disclosure, the frequency decision value is used to determine whether to cache the request data parameter first. It should be noted that when multiple request data need to be cached first, they can be sorted according to the time of determining the priority cache. The frequency threshold can be set according to the actual application scenario and application experience.

[0094] The frequency decision value can be calculated by the following formula 2.

[0095] x=Πf i >θ (2)

[0096] Among them, x is the frequency decision value, θ is the frequency threshold, and f i is the request frequency of requesting data, when f i >θ, the value of x is 1, otherwise the value of x is 0.

[0097] When the frequency decision value is 1, it means that the requested data is accessed many times by users, and it can be determined that it is data to be cached. When the frequency decision value is 0, it means that there is no need to cache the requested data.

[0098] Step A2, determining the timeliness decision value according to the current time, the update time and the preset validity period.

[0099] In the embodiment of the present disclosure, the preset validity period can be set according to the actual application scenario and application experience. For example, the preset validity period is 7 days (one week). The present disclosure sets a preset validity period for each request data (resource) and updates the request data according to the preset validity period.

[0100] The timeliness decision value is calculated by the following formula 3.

[0101] y=Πt current -t last_update ≤T valid (3)

[0102] Among them, y is the time-effectiveness decision value, t current is the current time, t last_update is the update time, T valid is the preset validity period. current -t last_update ≤T valid When t current -t last_update >T valid , the value of y is 0, and the resource needs to be updated.

[0103] It should be noted that the update time is the time recorded when the request data was last updated. When the validity decision value is 1, it means that the request data is within the validity period and there is no need to update the request data.

[0104] Step A3: determining the cache space utilization rate according to the total space of the edge node and the used space of the edge node; and determining the space decision value according to the cache space utilization rate and the space utilization rate threshold.

[0105] In the embodiment of the present disclosure, the total space is the total storage space used by the edge node for caching data, and the used space is the storage space occupied by the edge node for cached data.

[0106] The cache space utilization is calculated using the following formula 4.

[0107]

[0108] Among them, U is the cache space utilization, V 总 is the total space of edge nodes, V 占 It is the used space of edge nodes.

[0109] In one embodiment, if U>α, the old resources are eliminated using the LRU or LFU strategy, where α is a set space utilization threshold. It should be noted that the smaller the U value, the larger the available space of the edge node, and vice versa, the larger the U value, the smaller the available space of the edge node. When U is greater than α, the space is cleared using LRU or LFU.

[0110] The spatial decision value is calculated using the following formula 5.

[0111] z=ΠU≤α (5)

[0112] Where z is the spatial decision value. When U≤α is satisfied, the value of z is 1. When U>α is satisfied, the value of z is 0.

[0113] It should be noted that when the value of z is 1, it means that the space of the edge node is sufficient to cache the request data and does not affect the response speed of the system.

[0114] In another embodiment, before determining the space decision value, whether to use the LRU or LFU strategy to eliminate old resources is determined by using Formula 4 and Formula 5. For example, when U>α (indicating that the free space of the edge node is insufficient), the LRU or LFU strategy is used to eliminate old resources, and then the space decision value is calculated by using Formula 4 and Formula 5.

[0115] The disclosed embodiment eliminates old resources to accurately determine whether the space of the edge node is sufficient, thereby better caching the request data on the central node, caching the popular request data to the edge node, reducing unnecessary back-end queries, and improving the utilization rate of the edge node cache space, thereby improving the overall performance of the system, thereby improving the response speed and improving the user experience.

[0116] Step A4: determining a pre-fetch decision value according to the predicted request probability of the request data and the pre-fetch threshold.

[0117] In the disclosed embodiment, the predicted request probability of the request data can be predicted based on the historical access pattern. For example, the request probability (predicted request probability) of resource r is predicted using a heuristic algorithm P(r). For another example, the predicted request probability of the request data is predicted using a trained network model (such as a machine learning model).

[0118] The prefetch decision value is calculated using the following formula 6.

[0119] ρ=ΠP(r)>β (6)

[0120] Where ρ is the prefetch decision value, r is the request data, P(r) is the predicted request probability of the request data, and β is the prefetch threshold. When P(r)>β, the value of ρ is 1; when P(r)≤β, the value of ρ is 0.

[0121] When the prefetch decision value is 1, it means that the requested data may be hot data (data that users access more frequently) after prediction, and the requested data can be considered for caching. Whether to cache or not is determined by the frequency decision value, time decision value, space decision value and prefetch decision value.

[0122] The disclosed embodiment jointly determines whether to cache the requested data through frequency decision value, timeliness decision value, space decision value and pre-fetch decision value, and clears the data occupying space on the edge node through LRU or LFU, thereby optimizing cache utilization, improving hit rate, ensuring that popular content is always available, reducing unnecessary back-end queries, and improving overall system performance.

[0123] In another exemplary embodiment, determining a cache decision based on a frequency decision value, a timeliness decision value, a space decision value, and a prefetch decision value may include: performing an AND operation on the frequency decision value, the timeliness decision value, the space decision value, and the prefetch decision value to obtain a cache decision value, and determining the cache decision based on the cache decision value; or calculating an average of the frequency decision value, the timeliness decision value, the space decision value, and the prefetch decision value to obtain a cache decision value, and determining the cache decision based on the cache decision value.

[0124] Exemplarily, when the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value are all 1, the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value are ANDed, and the cache decision value is 1, and the cache decision for it is the first result, and the request data is cached on the edge node. It should be noted that if any one of the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value is not 1, the cache decision value is 0, and the request data is not cached.

[0125] Exemplarily, the decision value is cached by the following formula 7.

[0126] D=(Πf i >θ+Πt current -t last_update ≤T valid +ΠU≤α+ΠP(r)>β) / 4 (7)

[0127] Where D is the cache decision value, ∏f i >θ is the frequency decision value, ∏t current -t last_update ≤T valid is the time-effectiveness decision value, ∏U≤α is the space decision value, and ∏P(r)>β is the pre-fetching decision value.

[0128] The disclosed embodiment determines whether to cache request data to edge nodes by utilizing the frequency decision value, timeliness decision value, pre-fetch decision value and space decision value of the request data, thereby caching popular request data to edge nodes, reducing unnecessary back-end queries, and improving the utilization rate of the edge node cache space, thereby improving the overall performance of the system, thereby improving the response speed and improving the user experience.

[0129] The above describes whether to cache the requested data. The following describes how to update the cache strategy.

[0130] In an exemplary embodiment, if Figure 4 As shown, the method provided by the embodiment of the present disclosure may also include the following steps.

[0131] S401, monitoring performance indicators, where the performance indicators include one or more of bandwidth utilization, request response time, cache hit rate, cache space utilization, and network congestion.

[0132] In the embodiments of the present disclosure, the monitoring performance indicators may be acquired periodically or in real time, and the embodiments of the present disclosure do not specifically limit this.

[0133] In one embodiment, the present disclosure monitors key performance indicators, which may include but are not limited to: bandwidth utilization, request response time, cache hit rate, cache space utilization, network congestion, etc. The present disclosure embodiment may use real-time data analysis tools (such as log analysis, performance monitoring tools) to collect and record performance indicators.

[0134] S402, judging whether the performance index meets the requirement; if the performance index meets the requirement, executing S403.

[0135] Regarding how to judge whether each indicator in the performance indicators meets the requirements, a corresponding indicator threshold can be set for each indicator. When the bandwidth utilization, request response time, cache space utilization and network congestion are respectively less than their corresponding indicator thresholds, the bandwidth utilization, request response time, cache space utilization and network congestion meet the requirements; when the cache hit rate is greater than the corresponding indicator threshold, the cache hit rate meets the requirements; when all indicators in the performance indicators meet the requirements, the performance indicators meet the requirements.

[0136] Exemplarily, when the performance indicator includes request response time, the indicator threshold corresponding to the request response time is 0.1s (seconds). When the request response time is less than 0.1s, the request response time meets the requirement and the performance indicator also meets the requirement.

[0137] Exemplarily, when the performance indicators include request response time and cache space utilization, the indicator threshold corresponding to the request response time is 0.05s, and the indicator threshold corresponding to the cache space utilization is 60%. When the request response time is less than 0.05s and the cache space utilization is less than 60%, the performance indicators meet the requirements.

[0138] It should be noted that if any one of the above indicators (bandwidth utilization, request response time, cache hit rate, cache space utilization, and network congestion) does not meet the requirements, the performance indicator does not meet the requirements. The performance indicator can be an indicator of the edge node, an indicator of the central node, or a performance indicator of the system composed of the edge node and the central node. The cache hit rate can be the request frequency.

[0139] S403, continue to monitor the performance indicators.

[0140] In the disclosed embodiment, if the performance indicator meets the requirements, the performance indicator can continue to be monitored to form a closed-loop monitoring mechanism.

[0141] The embodiments of the present disclosure monitor the performance indicators and can obtain the performance indicators of the system in real time, thereby facilitating the adjustment of cache parameters and improving the overall performance of the system.

[0142] In another exemplary embodiment, Figure 4 As shown, the method provided by the embodiment of the present disclosure may further include S404.

[0143] S404, when the performance index does not meet the requirement, adjust the cache parameters, the cache parameters include cache size, parameters of elimination strategy, pre-fetch threshold, frequency threshold and preset validity period.

[0144] In the disclosed embodiment, the cache parameters are parameters related to the cache decision and parameters that affect the cache decision. The elimination strategy can be LRU and LFU, or other measures for clearing the cache.

[0145] The embodiments of the present disclosure adjust cache parameters so that performance indicators meet requirements, thereby improving the overall performance of the system, increasing response speed, and improving user experience.

[0146] In yet another exemplary embodiment, Figure 4 As shown, after adjusting the cache parameters, the method provided by the embodiment of the present disclosure may further include the following S405 to S407.

[0147] S405, obtaining a performance indicator, and comparing the performance indicator with the performance indicator before the cache parameter adjustment.

[0148] In the disclosed embodiment, by comparing the performance indicators before and after the cache parameter adjustment, the change of the performance indicators can be determined, for example, whether the performance indicators change in a positive direction (good) or a negative direction (bad).

[0149] S406, if the comparison result meets the preset condition, determine whether the preset effect is met. If so, execute S407; if not, execute S404, that is, if the preset effect is not met, adjust the cache parameters until the preset effect is met. The preset condition is that the performance index is improved after adjusting the cache parameters, and the preset effect is that the performance index meets the preset first target performance index threshold.

[0150] In the embodiment of the present disclosure, if the comparison result changes in a positive direction, that is, the performance index is improved after the cache parameter is adjusted, then the preset condition is met. Otherwise, the preset condition is not met.

[0151] In the embodiment of the present disclosure, the judgment method is similar to that in step S402, except that the condition for judging whether the preset effect is met is more stringent, that is, the first target performance indicator threshold has higher requirements on the performance indicator than the indicator threshold. For example, the indicator threshold corresponding to the request response time is 0.1s, and the first target performance indicator threshold corresponding to the request response time is 0.04s.

[0152] S407, when the preset effect is met, continue to monitor the performance indicators.

[0153] The disclosed embodiment can adapt to different types of traffic demands by dynamically adjusting the cache strategy (adjusting cache parameters by monitoring performance indicators), increase the scope of application of data transmission, and improve the overall service quality.

[0154] In addition, by comparing the performance indicators before and after the cache parameter adjustment to adjust the cache parameters, it is equivalent to introducing a feedback mechanism to continuously adjust and optimize the cache strategy according to the actual effect. In order to further optimize the system, the embodiment of the present disclosure performs effect evaluation (i.e., determines whether the preset effect is met) under the premise of the feedback mechanism, so that the performance indicators are significantly improved and reach or exceed the preset standards, thereby maintaining the stability of system performance while maximizing resource utilization.

[0155] In yet another exemplary embodiment, the method provided by the embodiment of the present disclosure may further include S408.

[0156] S408: When the comparison result does not satisfy the preset condition, adjust the cache parameter until the preset condition is satisfied.

[0157] In the embodiment of the present disclosure, if the comparison result changes in a negative direction, that is, the performance index is not improved after adjusting the cache parameters, then the preset condition is not met.

[0158] The embodiment of the present disclosure continuously adjusts the cache parameters until the preset conditions are met, thereby achieving adaptive conditions of the cache parameters and ensuring that the performance indicators are improved.

[0159] Based on the same inventive concept, the present disclosure also provides a data transmission system, as described in the following embodiments. Since the principle of solving the problem in the system embodiment is similar to that in the above method embodiment, the implementation of the system embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0160] Figure 6 A schematic diagram of a data transmission system in an embodiment of the present disclosure is shown. Figure 6As shown, an embodiment of the present disclosure provides a data transmission system, including a terminal device 61, an edge node 62 and a central node 63. The terminal device 61 can be used to send a request to the edge node 62; the edge node 62 can be used to receive the request sent by the edge node 62, and determine whether the local cache caches the requested data. If the requested data is not cached, the request is sent to the central node 63; the central node 63 can be used to respond to the request of the edge node 62, obtain the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value, wherein the frequency decision value is used to determine whether to cache the requested data first, the timeliness decision value is used to determine whether to update the requested data, the space decision value is used to determine whether the cache space of the edge node 62 is sufficient, and the pre-fetch decision value is used to predict the situation where the requested data will be requested, and the requested data is the data requested by the terminal device 61; the cache decision is determined according to the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value; if the cache decision is the first result, the request data is cached to the edge node 62, so that the edge node 62 sends the request data to the terminal device 61; if the cache decision is the second result, the request data is sent to the terminal device 61.

[0161] In one embodiment, if Figure 6 As shown, the terminal device 61 establishes a connection with the edge node 62 through the QUIC protocol, and the edge node 62 establishes a connection with the central node 63 through the QUIC protocol.

[0162] In the disclosed embodiment, the QUIC protocol is applied between the terminal device 61 and the edge node 62 and between the edge node 62 and the central node 63, which can realize functions such as fast connection establishment, multiplexing characteristics, 0-RTT (Zero Round-Trip Time Support, a network protocol optimization technology) support, congestion control, selective retransmission, path selection, and forward error correction.

[0163] In the disclosed embodiments, fast connection establishment can significantly reduce the waiting time for the initial request. Multiplexing can improve concurrent processing capabilities and bandwidth utilization. Congestion control can dynamically adjust the sending rate through an algorithm to avoid network congestion. Selective retransmission, which only retransmits lost data packets, can improve transmission efficiency. Path selection can select the best path to transmit data based on the current network conditions. Forward error correction can add additional information to the sent data, allowing the receiver to correct errors under certain conditions.

[0164] The disclosed embodiment uses the QUIC protocol to quickly establish a connection between the client and the edge node, realizes multiplexed data transmission, and improves bandwidth utilization. The disclosed embodiment solves the connection establishment delay problem inherent in the TCP protocol, improves data transmission efficiency and user experience. The disclosed embodiment caches the request data to the edge node, reduces the pressure on the core network, and improves the overall service quality.

[0165] Figure 7 The signaling diagram of the data transmission method according to the embodiment of the present disclosure is shown as follows: Figure 7 As shown, the data transmission method provided by the embodiment of the present disclosure includes the following S701 to S710.

[0166] S701, the terminal device initiates a request to the edge node. It should be noted that the terminal device and the edge node establish a connection through the QUIC fast handshake, which can significantly reduce the waiting time for the initial request.

[0167] S702: The edge node parses the request of the terminal device.

[0168] S703, check whether the requested data (requested resources) exists in the local cache. If yes, execute S704, if not, execute S705.

[0169] S704, return the requested data.

[0170] S705: The edge node initiates a request to the central node.

[0171] S706, determine the cache decision according to the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value. If the cache decision is the first result, execute S707; if the cache decision is the second result, execute S710.

[0172] S707: When the cache decision is the first result, the central node sends the request data to the edge node.

[0173] S708: The edge node caches the requested data.

[0174] S709: The edge node returns the request data to the terminal device.

[0175] S710: When the cache decision is the second result, the central node returns the requested data to the terminal device.

[0176] The disclosed embodiments can also monitor system performance indicators in real time, such as bandwidth utilization, request response time, cache hit rate, etc. If the performance indicators do not meet the requirements, the cache parameters are adjusted, and the cache parameters include cache size, parameters of elimination strategy, pre-fetch threshold, frequency threshold and preset validity period. In addition, the disclosed embodiments can also introduce a feedback mechanism to continuously adjust and optimize the cache strategy according to the actual effect. For example, if it is found that the cache hit rate of certain resources is low, its cache priority or pre-fetch strategy can be adjusted.

[0177] The disclosed embodiment can also evaluate the effect of the new cache strategy after adjusting its cache priority or pre-fetch strategy to ensure stable and efficient system performance. The disclosed embodiment continues to monitor system performance after adjusting cache parameters to form a closed-loop optimization mechanism.

[0178] The application scenarios of the present disclosure are described in detail below.

[0179] The present disclosure is applicable to large-scale distributed network environments, especially application scenarios such as mobile Internet and Internet of Things that require low-latency and high-efficiency data transmission.

[0180] In one embodiment, the present disclosure is applied to mobile Internet scenarios. For example, it is applied to video streaming. For example, online video platforms (such as YouTube, Netflix) and live broadcast platforms (such as Twitch). The disclosed embodiment can significantly reduce video loading time and improve playback fluency through the fast connection establishment and multiplexing characteristics of the QUIC protocol. Cache decisions can pre-load popular video clips to further enhance the user experience. For another example, it is applied to mobile applications. For example, social media applications (such as WeChat, Facebook), news applications, e-commerce applications, etc. The disclosed embodiment can significantly reduce data transmission delays and provide faster response speeds through efficient cache management and dynamic adjustment strategies. This not only improves the user experience, but also reduces the data traffic consumption of mobile devices.

[0181] In another embodiment, the present disclosure is applied to cloud computing and data centers. For example, it is applied to content distribution networks. For example, global content distribution, including websites, applications, video streaming, etc. The embodiments of the present disclosure can significantly reduce the delay in user access to content and improve the access experience of global users by deploying an efficient caching system at the edge nodes. Caching decisions can be optimized according to the access patterns of different regions to ensure that hot content is always available. For another example, it is applied to a hybrid cloud environment. For example, an enterprise-level hybrid cloud solution combines public cloud and private cloud resources. Through edge caching, the present disclosure can cache commonly used data and services at edge nodes close to users, reduce cross-cloud communication requirements, and improve the performance and response speed of the overall system. At the same time, dynamic caching policy adjustment can ensure maximum resource utilization and reduce operating costs.

[0182] The present disclosure can significantly reduce the user's waiting time and provide a faster response speed through the fast connection establishment and multiplexing characteristics of the QUIC protocol. It can also ensure that the content frequently accessed by users is always available through the adjustment of cache decisions and cache parameters, further improving the user experience.

[0183] The present disclosure can also reduce requests to central nodes and relieve pressure on the core network by adjusting cache decisions and cache parameters, thereby improving the throughput and stability of the overall system. The advanced congestion control and selective retransmission mechanism of the QUIC protocol ensures that high data transmission efficiency can be maintained even in network congestion.

[0184] The present disclosure can also reduce operating costs. By caching decisions and reducing unnecessary data transmission, bandwidth and storage costs can be significantly reduced. Dynamic adjustment of cache parameters ensures maximum resource utilization and reduces resource waste. In addition, the QUIC protocol provides stronger security, including the ability to encrypt transmission and prevent man-in-the-middle attacks, protecting the security of user data.

[0185] In addition, the disclosed embodiments are highly scalable and flexible and are applicable to network environments of various sizes and types, including mobile Internet, Internet of Things, etc. The cache parameter adjustment mechanism enables the system to adapt to different network conditions and user needs and provide more flexible services.

[0186] Based on the same inventive concept, the present disclosure also provides a data transmission device in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0187] Figure 8 A schematic diagram of a data transmission device in an embodiment of the present disclosure is shown. Figure 8As shown, the data transmission device may include: an acquisition module 81, a determination module 82 and a sending module 83. The acquisition module 81 may be used to obtain a frequency decision value, a timeliness decision value, a space decision value and a pre-fetch decision value in response to a request from an edge node, wherein the frequency decision value is used to determine whether to cache the request data first, the timeliness decision value is used to determine whether to update the request data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation in which the request data will be requested, and the request data is the data requested by the terminal device; the determination module 82 may be used to determine the cache decision according to the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value; the sending module 83 may be used to cache the request data to the edge node when the cache decision is the first result, so that the edge node sends the request data to the terminal device; the sending module 83 may also be used to send the request data to the terminal device when the cache decision is the second result.

[0188] In one embodiment, before obtaining the frequency decision value, the timeliness decision value, the space decision value and the prefetch decision value, the acquisition module 81 may also determine the request frequency based on the number of requests for the requested data and the total number of requests for all data, and determine the frequency decision value based on the request frequency and the frequency threshold; determine the timeliness decision value based on the current time, the update time and the preset validity period; determine the cache space utilization based on the total space of the edge node and the used space of the edge node; determine the space decision value based on the cache space utilization and the space utilization threshold; determine the prefetch decision value based on the predicted request probability of the requested data and the prefetch threshold.

[0189] In one embodiment, the determination module 82 can also be used to perform an AND operation on the frequency decision value, the time decision value, the space decision value and the pre-fetch decision value to obtain a cache decision value, and determine the cache decision based on the cache decision value; or, calculate the average of the frequency decision value, the time decision value, the space decision value and the pre-fetch decision value to obtain a cache decision value, and determine the cache decision based on the cache decision value.

[0190] In one embodiment, the data transmission device may further include a monitoring module, which can be used to monitor performance indicators, including one or more of bandwidth utilization, request response time, cache hit rate, cache space utilization, and network congestion; determine whether the performance indicators meet the requirements; and continue to monitor the performance indicators if the performance indicators meet the requirements.

[0191] In one embodiment, the monitoring module can also be used to adjust cache parameters when the performance indicators do not meet the requirements. The cache parameters include cache size, parameters of the elimination strategy, pre-fetch threshold, frequency threshold and preset validity period.

[0192] In one embodiment, after adjusting the cache parameters, the monitoring module can also be used to obtain performance indicators and compare them with the performance indicators before the cache parameters are adjusted; when the comparison result meets the preset conditions, determine whether the preset effect is met; when the preset effect is met, continue to monitor the performance indicators; when the preset effect is not met, adjust the cache parameters until the preset effect is met; wherein the preset condition is that the performance indicator is improved after adjusting the cache parameters, and the preset effect is that the performance indicator meets the preset first target performance indicator threshold.

[0193] In one embodiment, the monitoring module may also be used to adjust cache parameters when the comparison result does not meet the preset conditions until the preset conditions are met.

[0194] The data transmission device disclosed in the embodiment of the present disclosure utilizes the frequency decision value, timeliness decision value, pre-fetch decision value of the request data and the space decision value of the edge node to determine whether to cache the request data to the edge node, thereby caching the popular request data to the edge node, reducing unnecessary back-end queries, and improving the utilization rate of the edge node cache space, thereby improving the overall performance of the system, thereby improving the response speed and improving the user experience.

[0195] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0196] Refer to the following Fig. 9 The electronic device 900 according to this embodiment of the present disclosure is described. Fig. 9 The electronic device 900 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0197] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

[0198] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present disclosure.

[0199] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .

[0200] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0201] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0202] The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0203] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0204] In the disclosed exemplary embodiments, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. Fig.10 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. Fig.10 As shown, the computer-readable storage medium 1000 stores a program product capable of implementing the above method of the present disclosure.

[0205] In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary implementations of the present disclosure described in the above "Specific Implementation" section of this specification.

[0206] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0207] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0208] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0209] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0210] The embodiments of the present disclosure provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data transmission method provided in various optional ways in any embodiment of the present disclosure.

[0211] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0212] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0213] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0214] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.

Claims

1. A data transmission method, characterized in that: Applied to the central node, including: In response to a request from an edge node, a frequency decision value, a timeliness decision value, a space decision value, and a pre-fetch decision value are obtained, wherein the frequency decision value is used to determine whether to give priority to caching parameters of the requested data, the timeliness decision value is used to determine whether to update the requested data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation in which the requested data will be requested, and the requested data is the data requested by the terminal device; Determine a cache decision according to the frequency decision value, the timeliness decision value, the space decision value and the prefetch decision value; When the cache decision is a first result, cache the request data to the edge node, so that the edge node sends the request data to the terminal device; When the cache decision is the second result, the request data is sent to the terminal device.

2. The method according to claim 1, characterized in that Before obtaining the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value, the method further includes: Determine the request frequency according to the number of requests for the requested data and the total number of requests for all data, and determine the frequency decision value according to the request frequency and the frequency threshold; Determine the timeliness decision value according to the current time, the update time and the preset validity period; Determine the cache space utilization rate according to the total space of the edge node and the used space of the edge node; determine the space decision value according to the cache space utilization rate and the space utilization rate threshold; The prefetch decision value is determined according to the predicted request probability of the request data and a prefetch threshold.

3. The method according to claim 1, characterized in that Determining a cache decision according to the frequency decision value, the timeliness decision value, the space decision value, and the prefetch decision value includes: Performing an AND operation on the frequency decision value, the timeliness decision value, the space decision value, and the prefetch decision value to obtain a cache decision value, and determining the cache decision according to the cache decision value; or, An average value of the frequency decision value, the timeliness decision value, the space decision value, and the pre-fetch decision value is calculated to obtain a cache decision value, and the cache decision is determined according to the cache decision value.

4. The method according to claim 1, characterized in that: The method further comprises: Monitoring performance indicators, wherein the performance indicators include one or more of bandwidth utilization, request response time, cache hit rate, cache space utilization, and network congestion; Determine whether the performance indicators meet the requirements; When the performance indicator meets the requirement, continue to monitor the performance indicator.

5. The method according to claim 4, characterized in that The method further comprises: When the performance indicator does not meet the requirement, the cache parameters are adjusted, and the cache parameters include cache size, parameters of elimination strategy, pre-fetch threshold, frequency threshold and preset validity period.

6. The method according to claim 5, characterized in that After adjusting the cache parameters, the method further includes: Obtaining performance indicators and comparing them with the performance indicators before the cache parameter adjustment; When the comparison result meets the preset conditions, determine whether the preset effect is met; When the preset effect is met, continue to monitor the performance indicators; If the preset effect is not met, adjusting the cache parameters until the preset effect is met; The preset condition is that the performance indicator is improved after adjusting the cache parameter, and the preset effect is that the performance indicator meets a preset first target performance indicator threshold.

7. The method according to claim 6, characterized in that The method further comprises: When the comparison result does not satisfy the preset condition, the cache parameter is adjusted until the preset condition is satisfied.

8. A data transmission system, characterized in that: include: A terminal device, used to send requests to edge nodes; The edge node is used to receive the request sent by the edge node, and determine whether the local cache caches the requested data, and send the request to the central node if the requested data is not cached; The central node is used to obtain a frequency decision value, a timeliness decision value, a space decision value and a pre-fetch decision value in response to a request from the edge node, wherein the frequency decision value is used to determine whether to cache the request data first, the timeliness decision value is used to determine whether to update the request data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict the situation in which the request data will be requested, and the request data is the data requested by the terminal device; a cache decision is determined according to the frequency decision value, the timeliness decision value, the space decision value and the pre-fetch decision value; when the cache decision is a first result, the request data is cached to the edge node so that the edge node sends the request data to the terminal device; when the cache decision is a second result, the request data is sent to the terminal device.

9. The data transmission system according to claim 8, characterized in that: The terminal device establishes a connection with the edge node through the QUIC protocol, and the edge node establishes a connection with the central node through the QUIC protocol.

10. A data transmission device, characterized in that: include: an acquisition module, configured to acquire a frequency decision value, a timeliness decision value, a space decision value, and a pre-fetch decision value in response to a request from an edge node, wherein the frequency decision value is used to determine whether to cache the requested data first, the timeliness decision value is used to determine whether to update the requested data, the space decision value is used to determine whether the cache space of the edge node is sufficient, and the pre-fetch decision value is used to predict a situation in which the requested data will be requested, and the requested data is data requested to be obtained by a terminal device; A determination module, configured to determine a cache decision according to the frequency decision value, the timeliness decision value, the space decision value, and the prefetch decision value; a sending module, configured to cache the request data to the edge node when the cache decision is a first result, so that the edge node sends the request data to the terminal device; The sending module is further configured to send the request data to the terminal device when the cache decision is a second result.

11. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the data transmission method according to any one of claims 1 to 7 by executing the executable instructions.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 7 is implemented.

13. A computer program product, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and when the computer instructions are executed by a processor, they implement the operation instructions of the data transmission method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data transmission method and device based on Internet of Vehicles, and computer readable storage medium

    CN110324389A

  • Bidirectional cache placement method based on deep reinforcement learning in cellular-free network

    CN116321307A

  • Data pre-caching query method, device and equipment and computer storage medium

    CN118820298A

  • Front-end resource loading intelligent scheduling strategy method

    CN118916096A

  • Method and system for improving caching performance of online transaction platform

    CN119106060A

Cited By

  • Large model operation method and device based on edge device, equipment and medium

    CN120196449A