Resource access method, program product, caching device, network element and storage medium

By caching the communication addresses of hot resources in the UPF network element, the problem of high CDN bandwidth pressure is solved, achieving the effects of reducing bandwidth costs and improving the stability of OTT services.

CN121125685APending Publication Date: 2025-12-12CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510293720.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

In existing CDN solutions, users need to access the origin CDN when accessing each OTT content, resulting in huge bandwidth pressure and failing to effectively alleviate network congestion and reduce bandwidth costs.

Method used

The communication addresses of hot resources are cached in the UPF network element and filled into the response message of the domain name resolution request, so that the terminal can directly obtain resource files from the caching device and reduce the dependence on CDN.

Benefits of technology

It reduced the bandwidth pressure on CDN, saved domain name query latency, and improved the stability of OTT services and the delivery capability of high-definition services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125685A_ABST
    Figure CN121125685A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is applicable to the technical field of communication, and provides a resource access method, a program product, a caching device, a network element and a storage medium, the resource access method is applied to the UPF network element, the method comprises the following steps: analyzing a domain name analysis request sent by a terminal to obtain a resource address, the terminal initiates a domain name resolution request according to a resource address returned when the resource server is accessed, determines whether the resource address contains a set domain name, if the resource address contains the set domain name, fills a response message of the domain name resolution request with the communication address of the cache device, and sends the response message to the terminal; the terminal obtains the resource file corresponding to the set domain name from the cache device according to the communication address of the cache device, the set domain name corresponds to the hotspot resource, and the resource file corresponding to the set domain name is cached in the cache device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network technology, and in particular to a resource access method, program product, caching device, network element, and storage medium. Background Technology

[0002] Content Delivery Networks (CDNs) deploy multiple edge servers to distribute data content in areas or networks where users frequently access it. By using global load balancing technology, users can access content from the nearest location, which can alleviate network congestion.

[0003] Over-the-Top (OTT) video and data services require high-definition and low-latency capabilities to boost profitability. However, pushing high-definition content results in high bandwidth costs, making bandwidth cost balancing a key consideration for OTT services. In existing CDN solutions, users need to access the origin CDN for each OTT content access, leading to significant bandwidth pressure during peak periods. Summary of the Invention

[0004] To address the aforementioned issues, embodiments of the present invention provide a resource access method, a program product, a caching device, a network element, and a storage medium.

[0005] The technical solution of this invention is implemented as follows:

[0006] On one hand, embodiments of the present invention provide a resource access method applied to a UPF network element, the method comprising:

[0007] The domain name resolution request sent by the terminal is resolved to obtain the resource address; the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed;

[0008] Determine whether the resource address contains the specified domain name;

[0009] If the resource address contains the set domain name, then the communication address of the caching device is filled into the response message of the domain name resolution request, and the response message is sent to the terminal, so that the terminal can obtain the resource file corresponding to the set domain name from the caching device according to the communication address of the caching device. The set domain name corresponds to a hot resource, and the caching device caches the resource file corresponding to the set domain name.

[0010] In the above scheme, the method further includes:

[0011] If a malfunction is detected in the caching device, the response message carrying the communication address of the caching device will not be sent to the terminal, and the domain name resolution request will be sent to the domain name server instead.

[0012] In the above scheme, the cache device is co-located with the UPF.

[0013] In the above scheme, the method further includes:

[0014] The receiving terminal sends a resource acquisition request to the caching device based on the communication address of the caching device; the resource acquisition request is used to acquire the resource file corresponding to the set domain name;

[0015] Based on the specified domain name, the corresponding resource file is searched in the caching device;

[0016] The resource file corresponding to the set domain name is sent to the terminal.

[0017] In the above scheme, the method further includes:

[0018] If the resource file corresponding to the set domain name is not found in the cache device, the resource file corresponding to the set domain name is obtained from the content delivery network.

[0019] The resource file corresponding to the set domain name is cached in the caching device, and the resource file corresponding to the set domain name is sent to the terminal.

[0020] On the other hand, embodiments of the present invention provide a resource access method applied to a caching device, the method comprising:

[0021] The receiving terminal sends a resource acquisition request based on the communication address of the caching device; the communication address of the caching device is carried in the response message sent by the UPF network element to the terminal; the response message is constructed by the UPF network element based on the communication address of the caching device when the resource address obtained by resolving the domain name resolution request sent by the terminal contains a set domain name; the set domain name corresponds to a hot resource, and the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed;

[0022] The resource file corresponding to the resource acquisition request is obtained from the cache device and sent to the terminal.

[0023] In the above scheme, the resource acquisition request includes the set domain name, and the caching device caches the resource file corresponding to the set domain name; the step of retrieving the resource file corresponding to the resource acquisition request from the caching device includes:

[0024] Based on the set domain name, the corresponding resource file is searched in the caching device.

[0025] In the above scheme, the method further includes:

[0026] If the resource file corresponding to the set domain name is not found in the cache device, the resource file corresponding to the set domain name is obtained from the content delivery network.

[0027] The resource files corresponding to the specified domain name are cached in the caching device;

[0028] Send the resource file corresponding to the set domain name to the terminal.

[0029] In the above scheme, obtaining the resource file corresponding to the set domain name from the content delivery network includes:

[0030] Based on the specified domain name, a domain name resolution request is sent to the domain name server;

[0031] Receive the network address of the content distribution network returned by the domain name server based on the domain name resolution request;

[0032] Based on the network address of the content delivery network, obtain the resource file corresponding to the set domain name from the content delivery network.

[0033] In the above scheme, the cache device is co-located with the UPF.

[0034] On the other hand, embodiments of the present invention provide a network element including a processor and a memory, the processor and the memory being interconnected, wherein the memory is used to store a computer program, the computer program including program instructions, and the processor is configured to call the program instructions to execute the steps of the resource access method corresponding to the UPF of the present invention.

[0035] On the other hand, embodiments of the present invention provide a caching device, including a processor and a memory, which are interconnected. The memory is used to store a computer program, which includes program instructions. The processor is configured to invoke the program instructions to execute the steps of the resource access method corresponding to the caching device of the present invention.

[0036] On the other hand, embodiments of the present invention provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described resource access method.

[0037] On the other hand, embodiments of the present invention provide a computer-readable storage medium, comprising: the computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of the above-described resource access method.

[0038] In this embodiment of the invention, the UPF network element parses the domain name resolution request sent by the terminal to obtain the resource address. The terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed, determines whether the resource address contains the specified domain name, and if so, fills the communication address of the caching device into the response message of the domain name resolution request and sends the response message to the terminal. This allows the terminal to retrieve the resource file corresponding to the specified domain name from the caching device based on the communication address of the caching device. The specified domain name corresponds to a hot resource, and the caching device caches the resource file corresponding to the specified domain name. This embodiment of the invention stores hot resources in the caching device. By filling the communication address of the caching device into the response message, users can retrieve hot resources from the caching device. This eliminates the need for users to access hot resources via the origin CDN; they can directly retrieve hot resources from the caching device, reducing CDN bandwidth pressure and saving domain name query latency. This contributes to stable OTT streaming and increases the proportion of high-definition services. Attached Figure Description

[0039] Figure 1 This is a schematic diagram of a 5G network architecture provided in an embodiment of the present invention;

[0040] Figure 2 This is a schematic diagram of a CDN distribution structure provided in an embodiment of the present invention;

[0041] Figure 3 This is a schematic diagram illustrating the implementation process of a resource access method provided in an embodiment of the present invention;

[0042] Figure 4 This is a schematic diagram of another 5G network architecture provided by an embodiment of the present invention;

[0043] Figure 5 This is a schematic diagram of a resource access process provided in an embodiment of the present invention;

[0044] Figure 6 This is a schematic diagram illustrating the implementation process of another resource access method provided in an embodiment of the present invention;

[0045] Figure 7 This is a schematic diagram of another resource access process provided by an embodiment of the present invention;

[0046] Figure 8 This is a schematic diagram of a network element provided in an embodiment of the present invention;

[0047] Figure 9 This is a schematic diagram of a caching device provided in an embodiment of the present invention. Detailed Implementation

[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] Figure 1 This is a schematic diagram of a 5G network architecture provided by an embodiment of the present invention. The 5G network architecture includes: a Network Slice Selection Function (NSSF) network element, an Authentication Server Function (AUSF) network element, a Unified Data Management (UDM) network element, an Access and Mobility Management Function (AMF) network element, a Service Management Function (SMF) network element, a Policy Control Function (PCF) network element, an Application Function (AF) network element, a User Equipment (UE), a Radio Access Network (R)AN, a User Plane Function (UPF) network element, and a Data Network (DN).

[0050] The interface between the UPF and DN is the N6 interface. The N6 interface is used to transmit uplink and downlink user data streams between the UPF and DN, and communicates with the DN network based on IP and routing protocols.

[0051] like Figure 2 As shown, in traditional methods, users directly access OTT servers to obtain resource files, which can easily cause network congestion and slow response times. CDNs, on the other hand, deploy multiple edge servers to distribute data content in regions or networks where users frequently access it. Using global load balancing technology, user requests are redirected to the nearest CDN service node based on real-time network traffic, node connections, load status, distance to the user, and response time. Users obtain content from the nearest node, alleviating network congestion and improving website response speed.

[0052] Currently, OTT services require high-definition and low-latency capabilities to boost profitability. However, the delivery of high-definition services leads to high bandwidth costs, making balancing bandwidth costs a key consideration for OTT providers. In existing CDN solutions, users need to access the origin CDN for each OTT content access, resulting in significant bandwidth pressure during peak periods.

[0053] To address the shortcomings of the aforementioned related technologies, embodiments of the present invention provide a resource access method that can improve and reduce the bandwidth pressure on CDNs. To illustrate the technical solution described in this invention, specific embodiments are provided below.

[0054] Figure 3 This is a schematic diagram illustrating the implementation process of a resource access method provided in an embodiment of the present invention. The resource access method is applied to a User Plane Function (UPF) network element. (Reference) Figure 3 Resource access methods include:

[0055] S301, the domain name resolution request sent by the terminal is resolved to obtain the resource address; the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed.

[0056] For example, after a user goes online, a user plane connection tunnel is established with the OTT server through the UPF. The user accesses the OTT APP page, plays popular video content, and the OTT pushes videos. For popular content, the OTT returns a URL to the user, and the UE initiates a domain name resolution request to the DNS based on the URL.

[0057] The resource address can be a Uniform Resource Locator (URL). When a user accesses a resource server, the resource server returns a resource address. The terminal then sends a domain name resolution request to the DNS based on the resource address. Normally, this domain name resolution request is first sent to the UPF, and the UPF then sends the domain name resolution request to the DNS.

[0058] UPF receives a domain name resolution request from the terminal, performs a 7-layer resolution on the domain name resolution request, and obtains the URL.

[0059] S302, determine whether the resource address contains the set domain name.

[0060] In one embodiment, a domain name is set to correspond to a hot resource. The OTT server modifies the domain name of the hot resource. For example, the original domain name of the hot resource is www.yuming.com. Because it is a hot resource, the OTT modifies the domain name to www.yuming123.com. The original domain name does not need to be deleted. That is, the original domain name and the modified domain name are stored in the OTT server at the same time.

[0061] The set domain name is the modified domain name. If the user accesses a popular resource, the resource address returned by the OTT server will include the set domain name.

[0062] S303, if the resource address contains the set domain name, then the communication address of the caching device is filled into the response message of the domain name resolution request, and the response message is sent to the terminal, so that the terminal can obtain the resource file corresponding to the set domain name from the caching device according to the communication address of the caching device, the set domain name corresponding to a hot resource; the caching device caches the resource file corresponding to the set domain name.

[0063] UPF can store all the configured domain names. If UPF detects that a resource address contains a configured domain name, it fills the communication address of the cache device into the response message of the domain name resolution request and sends the response message to the terminal.

[0064] The caching device stores the resource files corresponding to the designated domain name, i.e., it stores frequently accessed content. The communication address of the caching device can be its Internet Protocol address (IP address).

[0065] The UPF preemptor fills the IP address of the caching device into the DNS response message and returns it to the UE. In this way, the UE establishes a connection with the caching device based on the IP address of the caching device in the received response message and obtains the resource file corresponding to the set domain name from the caching device.

[0066] In existing technologies, the UPF sends a domain name resolution request to the DNS, and the DNS returns a response message carrying the CDN IP address, from which the UE obtains the resource files. However, in this embodiment, the UPF preemptively fills the DNS response message with the IP address of the caching device, allowing the terminal to directly obtain the resource files from the caching device without accessing the CDN. Therefore, this reduces the bandwidth pressure on the CDN.

[0067] In this embodiment of the invention, the UPF network element parses the domain name resolution request sent by the terminal to obtain the resource address. The terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed, determines whether the resource address contains the specified domain name, and if so, fills the communication address of the caching device into the response message of the domain name resolution request and sends the response message to the terminal. This allows the terminal to retrieve the resource file corresponding to the specified domain name from the caching device based on the communication address of the caching device. The specified domain name corresponds to a hot resource, and the caching device caches the resource file corresponding to the specified domain name. This embodiment of the invention stores hot resources in the caching device. By filling the communication address of the caching device into the response message, users can retrieve hot resources from the caching device. This eliminates the need for users to access hot resources via the origin CDN; they can directly retrieve hot resources from the caching device, reducing CDN bandwidth pressure and saving domain name query latency. This contributes to stable OTT streaming and increases the proportion of high-definition services.

[0068] In some embodiments, the method further includes:

[0069] If a malfunction is detected in the caching device, the response message carrying the communication address of the caching device will not be sent to the terminal, and the domain name resolution request will be sent to the domain name server instead.

[0070] If the caching device malfunctions, the UPF will not intercept DNS resolution requests. After the UE establishes a connection with the caching device, if the caching device fails to respond, the UE's connection times out and it assumes a CDN failure, then it re-initiates the DNS domain name resolution request. When the UPF receives the DNS resolution request message from the UE, the UPF detects the caching device failure, does not attempt to respond to the UE, returns the network address of the caching device, and does not intercept the DNS resolution request. The UPF successfully sends the DNS resolution request to the DNS server, which returns the CDN IP address of the hot resource, allowing the UE to obtain the hot resource from the CDN.

[0071] In some embodiments, the caching device is co-located with the UPF.

[0072] When the caching device is co-located with the UPF, the UPF can upgrade its content caching capabilities by adding relay boards.

[0073] In some embodiments, the method further includes:

[0074] The receiving terminal sends a resource acquisition request to the caching device based on the communication address of the caching device; the resource acquisition request is used to acquire the resource file corresponding to the set domain name;

[0075] Based on the specified domain name, the corresponding resource file is searched in the caching device;

[0076] The resource file corresponding to the set domain name is sent to the terminal.

[0077] The terminal sends a resource acquisition request to the cache device based on the cache device's communication address. The UPF can receive the resource acquisition request sent by the terminal. The UPF searches for the corresponding resource file in the cache device based on the domain name specified in the resource acquisition request. If the corresponding resource file is found, it sends the resource file corresponding to the specified domain name to the terminal.

[0078] In some embodiments, the method further includes:

[0079] If the resource file corresponding to the set domain name is not found in the cache device, the resource file corresponding to the set domain name is obtained from the content delivery network.

[0080] The resource file corresponding to the set domain name is cached in the caching device, and the resource file corresponding to the set domain name is sent to the terminal.

[0081] If the UPF cannot find the corresponding resource file in the caching device, it means that the caching device does not cache the resource file locally. In this case, the UPF initiates a DNS resolution request to the DNS server based on the configured domain name. After the DNS server resolves the domain name, it returns the CDN IP of the resource file to the UPF. The UPF then obtains the resource file corresponding to the configured domain name from the CDN based on the CDN IP, caches the resource file in the caching device, and sends the resource file to the terminal.

[0082] like Figure 4 As shown, Figure 4 This is a schematic diagram of another 5G network architecture provided by an embodiment of the present invention, wherein Relay is a caching device co-located with the upgrade UPF, the upgrade UPF is connected to the CDN, and the CDN is connected to the OTT.

[0083] UE1 goes online, connects to the upgraded UPF, plays popular OTT content, obtains popular content through the origin CDN, and caches the popular resources in the Relay in the UPF.

[0084] When UE2 goes online and connects to the upgraded UPF, it plays OTT hot content. During the process of returning to the origin CDN, the UPF intercepts its DNS resolution request and returns the Relay IP to UE2. UE2 establishes a connection with the Relay and accesses the hot resources cached in the Relay without having to return to the origin CDN again.

[0085] like Figure 5 As shown, Figure 5 This is a schematic diagram of a resource access process provided by an embodiment of the present invention, including:

[0086] 1. Once the user is online, a user plane connection tunnel is established with the OTT through the upgrade of the UPF.

[0087] Users who sign up for the relay service will be assigned to the upgrade UPF when they go online. The upgrade UPF can also connect to ordinary users.

[0088] 2. The user accesses the OTT APP page and plays popular resources.

[0089] 3. OTT returns URLs containing special domain names.

[0090] OTT push video, for popular resources, returns a URL containing a special domain name to the user, the special domain name corresponding to the domain name set above.

[0091] This URL containing a special domain name is also a real URL and can access the video file.

[0092] 4. The UE initiates a DNS domain name resolution request.

[0093] The UE initiates a domain name resolution request to the DNS based on a URL containing a special domain name.

[0094] 5. UPF resolves the domain name resolution request to the seventh layer and finds that the URL contains a special domain name.

[0095] UPF performs Layer 7 resolution on the DNS resolution request message from the UE, resolves its URL, and finds that it contains a special domain name.

[0096] 6. The UPF fills the Relay IP address into the DNS response message and returns it to the UE.

[0097] 7. The UE and Relay have successfully established a connection.

[0098] If the relay fails, the UPF will not intercept DNS resolution requests, and the process is as follows:

[0099] i. After the UE establishes a connection with the Relay, if the Relay fails and becomes unresponsive, the UE connection times out and it re-initiates a DNS domain name resolution request to the DNS server.

[0100] ii. When the UPF receives a DNS resolution request message from the UE, the UPF board detects the relay fault, does not preemptively return the relay IP to the UE, and does not intercept the DNS resolution request.

[0101] iii. UPF successfully initiated a DNS resolution request, and the DNS returned the CDN IP of the hot resource.

[0102] iv.UE obtains trending content from CDN.

[0103] Figure 6 This is a schematic diagram illustrating the implementation flow of another resource access method provided in an embodiment of the present invention, wherein the resource access method is applied to a caching device. (Reference) Figure 6 Resource access methods include:

[0104] S601, the receiving terminal sends a resource acquisition request based on the communication address of the caching device; the communication address of the caching device is carried in the response message sent by the UPF network element to the terminal; the response message is constructed by the UPF network element based on the communication address of the caching device when the resource address obtained by resolving the domain name resolution request sent by the terminal contains a set domain name; the set domain name corresponds to a hot resource, and the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed.

[0105] The terminal initiates a domain name resolution request based on the resource address returned when the resource server is accessed. The UPF network element parses the domain name resolution request sent by the terminal to obtain the resource address. The UPF determines whether the resource address contains the specified domain name. If the resource address contains the specified domain name, it fills the communication address of the caching device into the response message of the domain name resolution request and sends the response message to the terminal, so that the terminal can establish a connection with the caching device based on the communication address of the caching device.

[0106] After the terminal establishes a connection with the cache device based on the cache device's communication address, it can send a resource acquisition request to the cache device.

[0107] S602, retrieve the resource file corresponding to the resource retrieval request from the cache device and send it to the terminal.

[0108] The caching device caches resource files corresponding to a set domain name. The caching device searches for the corresponding resource file based on the set domain name and sends the found resource file to the terminal.

[0109] In some embodiments, the caching device is co-located with the UPF.

[0110] When the caching device is co-located with the UPF, the UPF can upgrade its content caching capabilities by adding relay boards.

[0111] In some embodiments, the resource acquisition request includes the designated domain name, and the caching device caches resource files corresponding to the designated domain name; acquiring the resource file corresponding to the resource acquisition request from the caching device includes:

[0112] Based on the set domain name, the corresponding resource file is searched in the caching device.

[0113] The caching device caches resource files corresponding to a set domain name. The caching device searches for the corresponding resource file based on the set domain name and sends the found resource file to the terminal.

[0114] In some embodiments, the method further includes:

[0115] If the resource file corresponding to the set domain name is not found in the cache device, the resource file corresponding to the set domain name is obtained from the content delivery network.

[0116] The resource files corresponding to the specified domain name are cached in the caching device;

[0117] Send the resource file corresponding to the set domain name to the terminal.

[0118] If the caching device cannot find the resource file corresponding to the specified domain name locally, it needs to obtain the resource file from the CDN. The caching device caches the resource file obtained from the CDN locally and then pushes the resource file to the UE.

[0119] In some embodiments, obtaining the resource file corresponding to the designated domain name from the content delivery network includes:

[0120] Based on the specified domain name, a domain name resolution request is sent to the domain name server;

[0121] Receive the network address of the content distribution network returned by the domain name server based on the domain name resolution request;

[0122] Based on the network address of the content delivery network, obtain the resource file corresponding to the set domain name from the content delivery network.

[0123] Specifically, if the caching device cannot find the resource file corresponding to the set domain name locally, it initiates a DNS resolution request to the DNS server based on the set domain name. After the DNS server resolves the domain name, it returns the CDNIP of the resource file corresponding to the set domain name to the caching device. The caching device then obtains the resource file corresponding to the set domain name from the CDN.

[0124] like Figure 7 As shown, Figure 7 This is a schematic diagram of another resource access process provided by an embodiment of the present invention, including:

[0125] 1. UE establishes connection with Relay

[0126] The Relay is a buffer device co-located with the UPF. The UE establishes a connection with the Relay based on the Relay IP.

[0127] 2. The UE obtains hot resources in the Relay based on the domain name.

[0128] 3. Relay can query hot resources locally.

[0129] The discussion will focus on two scenarios: locally found and not found.

[0130] 4a. Once found locally, the Relay pushes hotspot resources to the UE.

[0131] 4b. If not found locally, initiate DNS resolution based on the domain name.

[0132] 5. After DNS resolution, return the CDN IP of the hot resources to the Relay.

[0133] 6. Relay obtains hot resources from CDN.

[0134] 7. CDN pushes hot resources to Relay.

[0135] 8. Hot resources are cached in Relay, and the resource list in Relay is updated by +1.

[0136] 9. The Relay pushes hot resources to the UE.

[0137] OTT services leverage high-definition and low-latency technology to boost user numbers, viewing time, and profitability, but this also creates extremely high bandwidth requirements. Bandwidth costs account for up to 70% of OTT network costs, highlighting the strong need for OTT providers to reduce these costs. They aim to achieve a high-definition experience and increase revenue through content relay technology. Simultaneously, reducing the number of content sources helps OTT providers stabilize streaming, increase the proportion of high-definition content, stimulate traffic, mitigate the risk of declining DOU (data usage per user), and stabilize DOU growth.

[0138] This application embodiment can pull OTT hot resources to the relay cache in UPF, so that users do not need to go back to the origin CDN when accessing hot resources, reducing bandwidth pressure, saving DNS query latency, helping OTT to push streams stably, and increasing the proportion of high-definition services.

[0139] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0140] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0141] It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily without conflict.

[0142] In addition, in the embodiments of the present invention, "first," "second," etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0143] This invention provides a resource access device, corresponding to the resource access method on the UPF side described above. The device includes:

[0144] The resolution module is used to resolve the domain name resolution request sent by the terminal to obtain the resource address; the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed;

[0145] The determination module is used to determine whether the resource address contains a specified domain name;

[0146] The filling module is used to fill the communication address of the caching device into the response message of the domain name resolution request if the resource address contains the set domain name, and send the response message to the terminal so that the terminal can obtain the resource file corresponding to the set domain name from the caching device according to the communication address of the caching device. The set domain name corresponds to a hot resource, and the caching device caches the resource file corresponding to the set domain name.

[0147] In one embodiment, the device further includes:

[0148] The sending module is configured to, if it detects a malfunction in the caching device, not send a response message carrying the communication address of the caching device to the terminal, and instead send the domain name resolution request to the domain name server.

[0149] In one embodiment, the cache device is co-located with the UPF.

[0150] Another resource access device provided in this embodiment of the invention corresponds to the resource access method on the cache device side described above. This device includes:

[0151] A receiving module is used to receive a resource acquisition request sent by a terminal based on the communication address of the caching device; the communication address of the caching device is carried in a response message sent by the UPF network element to the terminal; the response message is constructed by the UPF network element based on the communication address of the caching device when the resource address obtained by resolving the domain name resolution request sent by the terminal contains a set domain name; the set domain name corresponds to a hot resource, and the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed;

[0152] The acquisition module is used to acquire the resource file corresponding to the resource acquisition request from the cache device and send it to the terminal.

[0153] In one embodiment, the resource acquisition request includes the specified domain name, and the caching device caches the resource file corresponding to the specified domain name; the acquisition module is specifically used for:

[0154] Based on the set domain name, the corresponding resource file is searched in the caching device.

[0155] In one embodiment, the device further includes:

[0156] The lookup module is used to retrieve the resource file corresponding to the set domain name from the content delivery network if the resource file corresponding to the set domain name is not found in the cache device.

[0157] The resource files corresponding to the specified domain name are cached in the caching device;

[0158] Send the resource file corresponding to the set domain name to the terminal.

[0159] In one embodiment, the search module is specifically used for:

[0160] Based on the specified domain name, a domain name resolution request is sent to the domain name server;

[0161] Receive the network address of the content distribution network returned by the domain name server based on the domain name resolution request;

[0162] Based on the network address of the content delivery network, obtain the resource file corresponding to the set domain name from the content delivery network.

[0163] In one embodiment, the cache device is co-located with the UPF.

[0164] In practical applications, the parsing module, determination module, and filling module can be implemented by processors in the network element, such as central processing unit (CPU), digital signal processor (DSP), microcontroller unit (MCU), or field-programmable gate array (FPGA).

[0165] It should be noted that the resource access device provided in the above embodiments is only illustrated by the division of the modules described above when performing resource access. In actual applications, the above processing can be assigned to different modules as needed, that is, the internal structure of the device can be divided into different modules to complete all or part of the processing described above. In addition, the resource access device and the resource access method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0166] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide a network element. Figure 8 This is a schematic diagram of the hardware composition structure of the network element in an embodiment of this application, as shown below. Figure 8 As shown, the network elements include:

[0167] The communication interface 801 enables information exchange with other devices, such as network devices.

[0168] The processor 802 is connected to the communication interface 801 to enable information interaction with other devices and, when running a computer program, executes the methods provided by one or more of the aforementioned network element-side technical solutions. The computer program is stored in the memory 803.

[0169] Of course, in practical applications, the various components in a network element are coupled together through a bus system 804. It can be understood that the bus system 804 is used to implement communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 8 The general labeled all buses as Bus System 804.

[0170] The memory 803 in this embodiment is used to store various types of data to support the operation of the network element. Examples of such data include any computer program used to operate on the network element.

[0171] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide a caching device. Figure 9 This is a schematic diagram of the hardware composition structure of the caching device according to an embodiment of this application, as shown below. Figure 9 As shown, the cache device includes:

[0172] The communication interface 901 enables information exchange with other devices, such as network devices.

[0173] The processor 902 is connected to the communication interface 901 to enable information interaction with other devices and, when running a computer program, executes the methods provided by one or more technical solutions on the cache device side. The computer program is stored in the memory 903.

[0174] Of course, in practical applications, the various components in the cache device are coupled together via bus system 904. It can be understood that bus system 904 is used to implement communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 9 The general labeled all buses as Bus System 904.

[0175] The memory 903 in this embodiment is used to store various types of data to support the operation of the cache device. Examples of such data include any computer program used to operate on the cache device.

[0176] It is understood that memory can be volatile or non-volatile, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.

[0177] The methods disclosed in the embodiments of this application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory. The processor reads the program from the memory and, in conjunction with its hardware, completes the steps of the aforementioned method.

[0178] Optionally, when the processor executes the program, it implements the corresponding processes implemented by the network element in the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.

[0179] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a first memory storing a computer program, which can be executed by a processor of a network element to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.

[0180] In the several embodiments provided in this application, it should be understood that the disclosed devices, network elements, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0181] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0182] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0183] In an exemplary embodiment, this application also provides a computer program product, including a computer program that can be executed by a processor of a network element to complete the steps described in the UPF resource query method of this application embodiment. Alternatively, the computer program can be executed by a processor of a caching device to complete the steps described in the caching device resource query method of this application embodiment.

[0184] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

[0185] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

[0186] It should be noted that the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.

[0187] In addition, in this application example, terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0188] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A resource access method applied to a user plane function (UPF) network element, comprising: The method includes: The domain name resolution request sent by the terminal is resolved to obtain the resource address; the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed; Determine whether the resource address contains the specified domain name; If the resource address contains the set domain name, then the communication address of the caching device is filled into the response message of the domain name resolution request, and the response message is sent to the terminal, so that the terminal can obtain the resource file corresponding to the set domain name from the caching device according to the communication address of the caching device. The set domain name corresponds to a hot resource, and the caching device caches the resource file corresponding to the set domain name.

2. The method of claim 1, wherein, The method further includes: If a malfunction is detected in the caching device, the response message carrying the communication address of the caching device will not be sent to the terminal, and the domain name resolution request will be sent to the domain name server instead.

3. The method of claim 1, wherein, The cache device is co-located with the UPF.

4. The method according to claim 1, characterized in that, The method further includes: The receiving terminal sends a resource acquisition request to the caching device based on the communication address of the caching device; the resource acquisition request is used to acquire the resource file corresponding to the set domain name; Based on the specified domain name, the corresponding resource file is searched in the caching device; The resource file corresponding to the set domain name is sent to the terminal.

5. The method according to claim 4, characterized in that, The method further includes: If the resource file corresponding to the set domain name is not found in the cache device, the resource file corresponding to the set domain name is obtained from the content delivery network. The resource file corresponding to the set domain name is cached in the caching device, and the resource file corresponding to the set domain name is sent to the terminal.

6. A resource access method applied to a caching device, characterized in that, The method includes: The receiving terminal sends a resource acquisition request based on the communication address of the caching device; the communication address of the caching device is carried in the response message sent by the UPF network element to the terminal; the response message is constructed by the UPF network element based on the communication address of the caching device when the resource address obtained by resolving the domain name resolution request sent by the terminal contains a set domain name; the set domain name corresponds to a hot resource, and the terminal initiates the domain name resolution request based on the resource address returned when the resource server is accessed; The resource file corresponding to the resource acquisition request is obtained from the cache device and sent to the terminal.

7. The method according to claim 6, characterized in that, The resource acquisition request includes the specified domain name, and the caching device caches the resource file corresponding to the specified domain name; the step of acquiring the resource file corresponding to the resource acquisition request from the caching device includes: Based on the set domain name, the corresponding resource file is searched in the caching device.

8. The method according to claim 7, characterized in that, The method further includes: If the resource file corresponding to the set domain name is not found in the cache device, the resource file corresponding to the set domain name is obtained from the content delivery network. The resource files corresponding to the specified domain name are cached in the caching device; Send the resource file corresponding to the set domain name to the terminal.

9. The method according to claim 8, characterized in that, The step of obtaining the resource file corresponding to the set domain name from the content delivery network includes: Based on the specified domain name, a domain name resolution request is sent to the domain name server; Receive the network address of the content distribution network returned by the domain name server based on the domain name resolution request; Based on the network address of the content delivery network, obtain the resource file corresponding to the set domain name from the content delivery network.

10. The method according to claim 6, characterized in that, The cache device is co-located with the UPF.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the resource access method according to any one of claims 1 to 5, or the steps of the resource access method according to any one of claims 6 to 10.

12. A network element, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor performs the steps of the resource access method according to any one of claims 1 to 5.

13. A caching device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor performs the steps of the resource access method according to any one of claims 6 to 10.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the steps of the resource access method as described in any one of claims 1 to 5, or to perform the steps of the resource access method as described in any one of claims 6 to 10.