Resource acquisition method, device, equipment, storage medium and program product

By setting up a cache area on the home cloud gateway and using the scheduling service to generate redirect response information, the problem of heavy server backhaul pressure during live broadcasting was solved, and the speed and efficiency of resource access were improved.

CN118803292BActive Publication Date: 2025-09-19CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410288234.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2025-09-19
Estimated Expiration
2044-03-13

AI Technical Summary

Technical Problem

During the live broadcast process, existing technologies have problems such as high server back-to-source pressure, performance degradation, and even failure when processing live broadcast hot resources. In particular, when multiple servers do not store the target resources, frequent requests for resources from the source server cause excessive back-to-source pressure.

Method used

By setting up a cache area in the home cloud gateway, receiving the resource request of the set-top box and using the scheduling service to generate a redirection response message, it is checked whether the target resource exists in the cache area. If it exists, it is sent directly. Otherwise, the target resource is obtained and cached through the home cloud gateway to reduce public network requests.

Benefits of technology

It effectively reduces the time it takes for resource requests to obtain target resources from public network servers, reduces the pressure on multiple servers to return to the source server, and improves the speed and efficiency of resource access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803292B_ABST
    Figure CN118803292B_ABST
Patent Text Reader

Abstract

The present application discloses a resource acquisition method, apparatus, device, storage medium and program product. The method comprises: receiving a first resource request sent by a set-top box; sending the first resource request to a scheduling service to obtain a redirection response message; receiving the redirection response message returned by the scheduling service; sending the redirection response message to the set-top box; receiving a second resource request sent by the set-top box, the second resource request including resource information, reset server network address information and reset server port information; when the reset server network address information is the preset server network address information and the reset server port information satisfies the preset port and channel mapping relationship, querying the cache area for a target resource that matches the resource information; when the target resource that matches the resource information exists in the cache area, sending the target resource to the set-top box. The embodiment of the present application effectively reduces the back-to-source pressure of the source server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a resource acquisition method, device, equipment, storage medium and program product. Background Art

[0002] Live streaming hotspots typically refer to video content or channels that attract a high level of viewer attention and generate high traffic within live streaming services. These resources attract a large number of viewers within a specific time period, generating high popularity within a short period of time.

[0003] Internet TV service providers typically implement a global load balancing strategy to handle live streaming hotspot resources. This strategy distributes user requests for hotspot resources to different servers based on real-time traffic conditions. This approach leverages horizontal scaling, dynamically scheduling traffic at the global level and distributing requests to different server nodes to prevent performance issues caused by hotspot resources on a single node.

[0004] However, if the resource information requested by the user is not cached on the distributed servers, the server must return to the origin server to obtain the target resource that matches the resource information to satisfy the user request. When multiple servers request the same target resource from the origin server for the same resource information, this back-to-origin pressure is amplified, potentially causing performance degradation or even failure of the origin server. Summary of the Invention

[0005] Embodiments of the present invention provide a resource acquisition method, apparatus, device, storage medium, and program product, which can reduce the time required for resource requests to obtain target resources from public network servers, while effectively avoiding the back-to-source pressure on the source server caused by multiple servers that do not store the target resources frequently requesting the target resources from the source server.

[0006] In a first aspect, an embodiment of the present application provides a resource acquisition method, which is applied to a home cloud gateway, wherein the home cloud gateway is provided with a cache area, and the method includes:

[0007] receiving a first resource request sent by a set-top box, where the first resource request includes resource information, server network address information, and server port information;

[0008] Sending the first resource request to the scheduling service, so that the scheduling service resets the server network address information and the server port information according to a preset load balancing strategy, a scheduling algorithm, and a channel and port mapping relationship, and obtains redirection response information for the resource information, the redirection response information including the reset server network address information and the reset server port information;

[0009] Receive the redirect response information returned by the scheduling service;

[0010] Sending a redirection response message to the set-top box;

[0011] receiving a second resource request sent by the set-top box, where the second resource request includes resource information, reset server network address information, and reset server port information;

[0012] If the reset server network address information is the preset server network address information and the reset server port information satisfies the preset mapping relationship between the port and the channel, query the cache area to see whether there is a target resource that matches the resource information;

[0013] When the target resource matching the resource information exists in the buffer area, the target resource is sent to the set-top box.

[0014] As an optional implementation, the resource acquisition method further includes:

[0015] If there is no target resource matching the resource information in the cache, determining a target port of a target server capable of acquiring the target resource based on the reset server network address information and the reset server port information;

[0016] Sending a second resource request to the target port of the target server to obtain the target resource;

[0017] Receive the target resource returned by the target port of the target server;

[0018] Associate the target resource with the resource information and cache it in the cache area;

[0019] Send target resources to the set-top box.

[0020] As an optional implementation, the cache area in the aforementioned resource acquisition method includes a first cache area for storing the target resource and a second cache area for storing the resource request. Before sending the second resource request to the target port of the target server to acquire the target resource, the method further includes:

[0021] querying whether there is a third resource request in the second cache area that is consistent with the resource information of the second resource request, where the third resource request includes third resource information, third server network address information, and third server port information;

[0022] Sending a second resource request to the target port of the target server to obtain the target resource, including:

[0023] If there is no third resource request in the second cache that is consistent with the resource information of the second resource request, create an empty request queue in the second cache and add the second resource request to the empty request queue to obtain a new request queue;

[0024] Copying the second resource request to obtain a copied second resource request;

[0025] The copied second resource request is sent to the target port of the target server to obtain the target resource.

[0026] As an optional implementation, the resource acquisition method further includes:

[0027] If a third resource request having resource information consistent with the second resource request exists in the second buffer area, determining a target request queue in which the third resource request is located;

[0028] Adding the second resource request to the target request queue, and not sending the second resource request to the target port of the target server;

[0029] In a case where a target resource matching the third resource information of the third resource request exists in the first buffer area, the target resource is sent to the set-top box.

[0030] As an optional implementation manner, before querying the cache whether there is a target resource matching the resource information, the resource acquisition method further includes:

[0031] Sending a detection request to the cache to trigger a response from the cache;

[0032] In the case of receiving the target response information returned by the cache area in response to the detection request, the second resource request is sent to the cache area, where the target response information is information indicating that the current state of the cache area is normal operation.

[0033] As an optional implementation, the resource acquisition method further includes:

[0034] When the reset server network address information is not the preset server network address information and / or the reset server port information does not satisfy the preset mapping relationship between the port and the channel, the second resource request is sent to the target port of the target server.

[0035] In a second aspect, an embodiment of the present application provides a resource acquisition device, which is applied to a home cloud gateway and includes:

[0036] A first receiving module is configured to receive a first resource request sent by a set-top box, wherein the first resource request includes resource information, server network address information, and server port information;

[0037] a first sending module, configured to send the first resource request to the scheduling service, so that the scheduling service resets the server network address information and the server port information according to a preset load balancing policy, a scheduling algorithm, and a channel and port mapping relationship, and obtains redirection response information for the resource information, the redirection response information including the reset server network address information and the reset server port information;

[0038] The second receiving module is used to receive the redirection response information returned by the scheduling service;

[0039] A second sending module, configured to send redirection response information to the set-top box;

[0040] A third receiving module is used to receive a second resource request sent by the set-top box, where the second resource request includes resource information, reset server network address information, and reset server port information;

[0041] A first query module is configured to query a cache area for a target resource matching the resource information when the reset server network address information is the preset server network address information and the reset server port information satisfies a preset mapping relationship between the port and the channel;

[0042] The third sending module is configured to send the target resource to the set-top box if the target resource matching the resource information exists in the buffer area.

[0043] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;

[0044] When the processor executes the computer program instructions, it implements the resource acquisition method as described in any one of the first aspects.

[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the resource acquisition method according to any one of the first aspects is implemented.

[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the resource acquisition method of any one of the first aspects when the computer program is processed and executed.

[0047] The embodiments of the present application provide a resource acquisition method, apparatus, device, storage medium and program product. Among them, the resource acquisition method can generate redirection response information for resource information through a scheduling service, so that the set-top box can generate a second resource request based on the redirection response information and the resource information, and send the second resource request to the home cloud gateway. The home cloud gateway can then judge the second resource request, and when it is determined that the resource information corresponding to the second resource request is within the range that can be stored in the cache area, it searches for the target resource that matches the resource information from the cache area, and sends the target resource in the cache area to the set-top box, thereby reducing the communication path for the second resource request to be sent to the server node through the public network to request the target resource, and effectively saving the communication resource consumption caused by multiple resource requests repeatedly applying for the same target resource. In addition, by caching the target resource in the cache area, the time for the resource request to obtain the target resource from the public network server can be reduced, while effectively avoiding the back-to-source pressure on the source server caused by multiple servers that do not store the target resource frequently applying for the target resource from the source server. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0049] Figure 1 A schematic diagram showing a flow chart of a resource acquisition method provided by an embodiment of the present application is shown;

[0050] Figure 2 A schematic diagram showing a flow chart of a resource acquisition method provided by another embodiment of the present application is shown;

[0051] Figure 3 A schematic diagram showing a flow chart of a resource acquisition method provided by another embodiment of the present application is shown;

[0052] Figure 4 A schematic diagram showing a flow chart of a resource acquisition method provided in yet another embodiment of the present application is shown;

[0053] Figure 5 A schematic diagram showing a flow chart of a resource acquisition method provided by another embodiment of the present application is shown;

[0054] Figure 6 A schematic diagram of the structure of a resource acquisition device provided by an embodiment of the present application is shown;

[0055] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0056] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.

[0057] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0058] To facilitate those skilled in the art to better understand the present application, the concepts involved in the present application are explained below:

[0059] A Content Delivery Network (CDN) is a large-scale edge distribution network that extends edge nodes to prefectures, cities, and counties. It is an intelligent virtual network built on top of the existing internet. By deploying server nodes throughout the network, content from the source server is distributed to all server nodes. This allows users to directly access their desired content from the nearest CDN server node, reducing the distance and time of data transmission, alleviating the burden of data transmission on the network, and thus reducing network congestion.

[0060] Over-the-Top (OTT) refers to high-volume video services that deliver a variety of applications to users via the internet. Essentially, OTT utilizes a unified content management and distribution platform to deliver high-definition videos, games, and applications to users via the open internet. For example, videos transmitted over the internet are transmitted to end devices, such as televisions, computers, set-top boxes, and smartphones. The complete video stream distribution process includes encoding, slicing, stream pulling / pushing from content centers, and distribution to end devices via intermediate CDN server nodes. After receiving the video stream, the end device decodes and plays it.

[0061] Back-to-origin: refers to the process in which the CDN server node obtains data from the origin server and returns it to the terminal device.

[0062] A home cloud gateway is a device located at the end of an optical line in a fiber-optic access network. It converts optical signals into electrical signals and outputs them through an Ethernet port, enabling two-way communication between the user and the server. The home cloud gateway can connect to digital TVs, computers, set-top boxes, mobile phones, and other devices, enabling users to access a variety of services, including high-speed internet access, VoIP, and IPTV.

[0063] Microcache: refers to a small cache plug-in used in the home cloud gateway, whose main function is to provide cache services.

[0064] Broadband Remote Access Server (BRAS): Its main function is to handle users' broadband access and network address translation services.

[0065] Point-to-Point Protocol over Ethernet (PPPoE): This is a protocol for point-to-point communication over an Ethernet connection. It is widely used in broadband access and networking, providing a simple and standardized method for establishing and terminating point-to-point connections. In home broadband networks, PPPoE is used to establish a connection between users and a broadband access server, allowing them to access the internet.

[0066] Destination Network Address Translation (DNAT): refers to a network address translation technology used to modify the destination IP address and destination port of a data packet at the network layer.

[0067] With the development of internet technology, live streaming has become an integral part of people's lives. However, during live streaming, users may experience a sudden influx of traffic. For example, when a celebrity or trending topic appears, user traffic can increase rapidly. This sudden traffic can cause a single CDN server node to experience a surge in load, exceeding its processing capacity. Existing OTT vendors typically use a global scheduling load balancing strategy to handle live streaming hotspot resources, distributing them across different CDN server nodes to achieve horizontal scalability and avoid overloading a single CDN server node.

[0068] This approach can alleviate the problem of CDN server node overload to a certain extent, but it still faces some challenges in practice. First, while load balancing can distribute requests based on real-time traffic conditions, hotspot diffusion may still fail if the traffic exceeds the processing capacity of the dispersed CDN server nodes. Furthermore, since the dispersed CDN server nodes need to obtain data from the source server, this will result in a large number of instantaneous return trips, placing pressure on the source server. More seriously, if the CDN server node is paralyzed due to the pressure of hotspot resources, it may cause widespread user access failures.

[0069] The resource acquisition method in the embodiment of the present application can be applied to a scenario where a terminal device sends a resource request to a resource node to request resource data corresponding to the resource information in the resource request. Such application scenarios may include live video broadcasting scenarios, multimedia file on-demand scenarios, and the like. Taking the live video broadcasting scenario as an example, a user selects a specific live channel to watch a live broadcast. When the terminal device triggers a resource request for the live channel, the set-top box sends a resource request to the scheduling service. The scheduling service selects target servers that meet the preset conditions based on the content information of the resource request and the node information of each CDN server node. These target servers can efficiently meet the resource requests of the terminal device.

[0070] In order to reduce the back-to-source pressure on the source server caused by multiple users applying for the same resource data through multiple different user terminal devices at the same time, the embodiment of the present application sinks the user's resource request to the home cloud gateway side through the scheduling service, and sets a cache area for storing resource data in the home cloud gateway, so that the user terminal device can directly obtain the corresponding resource data in the cache area of ​​the home cloud gateway, without having to send the resource request to the CDN server node to re-acquire the resource data, greatly reducing the number and path of resource requests, and thus effectively reducing the request pressure borne by the CDN server node and the back-to-source pressure borne by the source server.

[0071] To address the problems of the prior art, embodiments of the present application provide a resource acquisition method, apparatus, device, storage medium, and program product. The resource acquisition method provided in embodiments of the present application is applied to a home cloud gateway, which is provided with a cache. For example, the cache functionality can be implemented by enabling a microcache plug-in installed on the home cloud gateway.

[0072] The following first introduces the resource acquisition method provided in the embodiment of the present application.

[0073] Figure 1 FIG. 1 shows a flow chart of a resource acquisition method 100 provided by an embodiment of the present application. Figure 1 As shown, the method may include: S101 to S107.

[0074] S101, receiving a first resource request sent by a set-top box, where the first resource request includes resource information, server network address information, and server port information;

[0075] S102: Send the first resource request to the scheduling service, so that the scheduling service resets the server network address information and the server port information according to a preset load balancing policy, a scheduling algorithm, and a channel-port mapping relationship, and obtains redirection response information for the resource information, where the redirection response information includes the reset server network address information and the reset server port information.

[0076] S103, receiving redirection response information returned by the scheduling service;

[0077] S104, sending redirection response information to the set-top box;

[0078] S105, receiving a second resource request sent by the set-top box, where the second resource request includes resource information, reset server network address information, and reset server port information;

[0079] S106, if the reset server network address information is the preset server network address information and the reset server port information satisfies the preset mapping relationship between the port and the channel, querying the cache whether there is a target resource that matches the resource information;

[0080] S107 : If the target resource matching the resource information exists in the buffer area, the target resource is sent to the set-top box.

[0081] The embodiment of the present application generates redirection response information for resource information through a scheduling service, so that the set-top box can generate a second resource request based on the redirection response information and the resource information, and send the second resource request to the home cloud gateway. The home cloud gateway can then judge the second resource request, and when it is determined that the resource information corresponding to the second resource request is within the range that can be stored in the cache area, it searches the cache area for the target resource that matches the resource information, and sends the target resource in the cache area to the set-top box, thereby reducing the communication path for the second resource request to be sent to the server node through the public network to request the target resource, and effectively saving the communication resource consumption caused by multiple resource requests repeatedly applying for the same target resource. In addition, by caching the target resource in the cache area, the time for the resource request to obtain the target resource from the public network server can be reduced, and at the same time, the pressure on the source server to return to the source caused by multiple servers that do not store the target resource frequently applying for the target resource from the source server can be effectively avoided.

[0082] In S101, a set-top box is a device that connects a client electronic device to an external signal source, and can convert compressed digital signals into content that can be displayed on the electronic device and display it on the supported electronic device. The electronic device may include a mobile phone, a television, an audio system, and other household appliances. The first resource request may be triggered by a user through an electronic device, which is usually done through an application, a browser, or other interface. In one implementation scenario, when the user performs certain operations or inputs certain instructions on the electronic device, these actions may trigger a request for a specific resource.

[0083] In some embodiments, resource information refers to reference information related to a specific resource, which may include resource name, resource type, resource description, and other related information. Server network address information includes the IP address or domain name of the server. Server port information includes the port number used to transmit data. Among them, each resource information should have corresponding server network address information and server port information so that the required resources can be accurately located. Typically, the server network address information and server port information are configured on the server by the network administrator to ensure that each application or channel uses the correct port number and that each resource request can be correctly routed to the corresponding server.

[0084] In S102, the scheduling service is a redirection strategy used to handle traffic distribution for client requests. When a client requests resources from a CDN server node, it first enters the scheduling service. The scheduling service redirects the client request based on a series of policies, such as geographic location, server health, and preset load balancing strategies, to distribute the client request to a CDN server node that is closer to the client, has better network connectivity, and is more reliable. This effectively ensures that the client receives the best service quality and fastest resource access speed.

[0085] Preset load balancing strategies may include round-robin, weighted round-robin, least connections, and weighted least connections. These strategies select the next CDN server node to receive a request based on factors such as the CDN server's performance, current load, and response time. Scheduling algorithms involve sorting or selecting tasks or requests, determining which requests are processed first or how to allocate requests to available server resources, i.e., determining a reset server network address. For example, scheduling algorithms may include first-in, first-out, shortest working time first, and shortest remaining time first.

[0086] In some embodiments, a channel-to-port mapping relationship refers to a mapping relationship in a digital television system that associates specific channels with specific transmission ports, enabling digital television signals to be transmitted through specific transmission ports. This mapping relationship determines how the digital television signal is routed to the corresponding server port based on the specific attributes of the request. Each set-top box has a corresponding channel list, and users can select different channels in the set-top box menu to watch TV programs. By establishing a channel-to-port mapping relationship, it is possible to ensure that the digital television signal is correctly transmitted to the corresponding receiving device.

[0087] As an example, the channel-port mapping relationship can be implemented by creating a channel-port mapping table. The port range can be 4000-5000, which can map 1000 channels. The channel-port mapping table is sent to the scheduling service, which associates each channel with the corresponding port. When a resource request arrives at the scheduling service, the scheduling service can identify the resource information in the resource request and determine the corresponding channel based on the resource information. It then reads the channel-port mapping table and searches for the corresponding port based on the channel, obtaining the reset server port information.

[0088] In one embodiment, the format of the redirection response information (Uniform Resource Locator, URL) is as follows:

[0089] http: / / dip:intlport / liveid / path? realip=dip:dport.

[0090] Among them, http is the abbreviation of Hypertext Transfer Protocol, which is a protocol used to transmit hypertext.

[0091] dip:intlport represents the server address. "dip" is the server's domain name or IP address, and "intlport" is the server's port number. A colon (:) separates the domain name and port number.

[0092] " / liveid / path" indicates the specific resource location of the request, specifically the "path" file or directory under the "liveid" folder.

[0093] "?realip=dip:dport" refers to a query parameter, a key-value pair appended to the end of a URL to pass additional information to the server. In this example, "realip" is the parameter name, and "dip:dport" is the parameter value. Specifically, when the client sends a request to the server, it tells the server its real IP address, "dip," and its port number, "dport."

[0094] In summary, this URL represents a request sent via HTTP to the server "dip" on port "intlport", requesting access to the path "liveid / path", and includes a query parameter "realip" with the value "dip:dport".

[0095] In S103, the scheduling service sends the redirection response information to the home cloud gateway. Then, in S104, the home cloud gateway sends the redirection response information to the set-top box, so that the set-top box can re-issue a resource request for the resource information through the redirection response information to obtain resource data.

[0096] After this, in S105, the set-top box regenerates a second resource request for the resource information based on the redirect response information. Obtaining the reset server network address and port information through the scheduling service effectively ensures that the set-top box receives optimal service and achieves load balancing for the server nodes. When the client sends the second resource request to obtain the target resource corresponding to the resource information, the sending path, sending address, and sending port of the second resource request can be modified based on the network endpoint of the cache area in the home cloud gateway to send the second resource request to the cache area.

[0097] In S106, it should be noted that although the delay and path length of obtaining resources from the server nodes of the public network can be reduced by storing the target resources in the cache area in the home cloud gateway, the cache capacity of the cache area in the home cloud gateway is prioritized and cannot store all resources indefinitely. Therefore, caching some resources in the cache area can ensure that the limited cache area space is used more efficiently, thereby improving the cache hit rate. As an example, the cache area can store target resources with high access frequency. For popular resources with high access frequency but short timeliness, such as hot news, it can be set to cache only during the popular period, and then updated and replaced. This ensures that the cached content is always up to date and does not waste cache space to store outdated information.

[0098] In some embodiments, the channels, servers, and ports corresponding to the types and contents of the resource information cached in the cache area can be planned, and then based on the planning results, a mapping relationship between preset ports and channels can be established so that the cache area can determine whether the second resource request is a resource request within the processing range of the cache area through the reset server network address information, reset server port information, path or other identifiers in the URL.

[0099] As an example, the mapping relationship between ports and channels can be implemented by creating a mapping table of ports and channels. The mapping table can include channel names and corresponding port numbers. When the second resource request arrives in the cache area, it is queried whether the reset server port information is in the mapping table. When it is determined that the reset server port information is in the mapping table, and the reset server network address is in the preset server network address, it is determined that the second resource request is a resource request within the processing range of the cache area. Next, it is queried whether there is a target resource in the cache area that matches the resource information.

[0100] In S107, when the target resource is found in the cache area, the target resource is sent to the set-top box that issued the second resource request. There is no need to send the second resource request to the public network to obtain the target resource, which effectively reduces the path of the second resource request, effectively avoids unnecessary network transmission and delays, and improves the speed and efficiency of resource access.

[0101] In a specific implementation scenario, this resource acquisition method can be applied to Internet TV services. First, a set of preset OTT live CDN node server IP address information, port information, and a mapping table representing the preset port-channel mapping relationship are distributed to the home cloud gateway through the configuration management module. Furthermore, the mapping table representing the channel-port mapping relationship is distributed to the scheduling service. The home broadband user's set-top box is connected to the Internet via a fiber optic cable network and establishes a connection with the BRAS via PPPoE, enabling the client to access the OTT live CDN service and scheduling service deployed on the public network.

[0102] Figure 2 FIG. 2 shows a flow chart of a resource acquisition method 200 provided in another embodiment of the present application. Figure 2 As shown, the method may include: S201 to S205.

[0103] S201 : When there is no target resource matching the resource information in the cache, determine a target port of a target server capable of acquiring the target resource according to the reset server network address information and the reset server port information.

[0104] The target port of the target server refers to the location where the target resource can be obtained by the reallocation of the scheduling service.

[0105] S202: Send a second resource request to a target port of a target server to acquire a target resource.

[0106] The second resource request includes redirection response information. When the second resource request is sent to the target port of the target server, the second resource request carries a redirection identifier. When passing through the home cloud gateway, the home cloud gateway will recognize the redirection identifier in the second resource request and will not send the second resource request to the scheduling service. Instead, it will be sent directly to the target port of the target server, effectively avoiding the need to schedule the second resource acquisition request again. The corresponding target resource is obtained through the target port of the target server, or if the target resource does not exist on the target server, the target resource acquisition request is sent to the source server to achieve the target resource acquisition.

[0107] S203: Receive the target resource returned by the target port of the target server.

[0108] S204: Associating the target resource with the resource information and caching them in a cache area.

[0109] S205: Send the target resource to the set-top box.

[0110] In some embodiments, after receiving the target resource returned by the target port of the target server, in order to improve the convenience of obtaining resources in the cache area for the same resource request in the future, the target resource is associated with the corresponding resource information and then cached in the cache area. After associating the target resource and resource information, the cache area can identify the stored data by data content rather than by address or location, effectively reducing the time required to find the target resource stored in the cache area, further improving the efficiency of data processing and access. In addition, the stability and consistency of the data can be maintained in scenarios where the data is frequently accessed and updated.

[0111] Based on this, it should be noted that, in one embodiment, the resource acquisition method provided in the embodiment of the present application may further include:

[0112] When the reset server network address information is not the preset server network address information and / or the reset server port information does not satisfy the preset mapping relationship between the port and the channel, the second resource request is sent to the target port of the target server.

[0113] In a specific implementation scenario, when the set-top box accesses the target resource corresponding to the resource information through the redirection rul, after passing through the PPPoE interface (sip:sport, dip:intlport). Among them, sip (Source IP): represents the source IP address of the second resource request. sport (Source Port): represents the source port number of the second resource request. dip (Destination IP): represents the target IP address of the second resource request. intlport (Internal Port): represents the target port number of the second resource request. Determine whether dip is the OTT live CDN server node address and whether the intlport port is recorded in the mapping table representing the mapping relationship between the preset port and the channel to determine whether the resource is an OTT hot spot live resource. If the target resource is not directly obtained from the public network through the PPPoE interface, network efficiency and resource utilization can be improved to ensure that the live resources are properly processed and distributed.

[0114] Through the technology of accurately identifying OTT live channels at the fourth network layer of the home cloud gateway, through the cooperation of the scheduling service and the home cloud gateway, and the mapping and conversion of channels and server ports, the OTT live channels can be quickly identified in the home cloud gateway through the destination IP address and target port number, and the live stream can be deduplicated efficiently and accurately.

[0115] In one embodiment, the aforementioned cache area may further include a first cache area and a second cache area. The first cache area is used to store target resources. By caching resources in the first cache area, requests to the server can be reduced, thereby alleviating the processing pressure on the server. The second cache area is used to store resource requests. Based on this, before the aforementioned S202, the method may further include:

[0116] The second cache area is queried to determine whether there is a third resource request that is consistent with the resource information of the second resource request, where the third resource request includes third resource information, third server network address information, and third server port information.

[0117] In one implementation scenario, although the target resource corresponding to the resource information of the second resource request does not exist in the first cache area, a third resource request consistent with the resource information of the second resource request may be being processed. If at this time, the second resource request is forwarded to the public network to apply for the target resource, it is possible that the target resource corresponding to the resource information of the third resource request has been cached in the first cache area, but the second resource request is making a target resource acquisition request for the same resource information. In this case, it may result in two resource requests being initiated for the same resource information, which may cause unnecessary bandwidth consumption. Therefore, before sending the second resource request to the target port of the target server to acquire the target resource, querying the resource request in the second cache area can further reduce bandwidth consumption.

[0118] Figure 3 FIG. 3 is a flow chart showing a resource acquisition method 300 provided in another embodiment of the present application. Figure 3 As shown, the aforementioned S202 may further include: S301 to S303.

[0119] S301: When there is no third resource request in the second cache area that is consistent with the resource information of the second resource request, create an empty request queue in the second cache area and add the second resource request to the empty request queue to obtain a new request queue.

[0120] In some embodiments, an empty request queue refers to a queue specifically used to store resource requests. When a resource request arrives, if the resource request requires processing of a target resource acquisition request, and the second cache does not include a request queue containing the resource information, an empty request queue is created, and the resource request is added to the empty request queue to obtain a new request queue. This new request queue is used to store resource requests with the same resource information, and each request queue only sends one resource request with the corresponding resource information, thereby merging multiple resource requests with the same resource information, reducing the repeated consumption of public network bandwidth resources and server node connections by multiple resource requests with the same resource information, and thus reducing the access pressure on the source server.

[0121] By placing multiple resource requests into the same queue, resource sharing and reuse can be achieved. This allows the target resource to be shared across multiple resource requests, avoiding repeated acquisition and storage of the same data.

[0122] S302: Copy the second resource request to obtain a copied second resource request.

[0123] S303: Send the copied second resource request to the target port of the target server to acquire the target resource.

[0124] In some embodiments, after the second resource request is added to the request queue, it is used to wait for the return of the target resource and send the returned target resource to the corresponding set-top box. Therefore, the resource requests in the request queue need to wait for the corresponding target resource. Therefore, it is necessary to duplicate the second resource request to obtain two second resource requests, so that one second resource request is used to wait for the return of the target resource in the second buffer area, and the other second resource request is used to send to the target port of the target server to obtain the target resource.

[0125] Figure 4 FIG. 4 is a flow chart showing a resource acquisition method 400 provided in another embodiment of the present application. Figure 4 As shown, the resource acquisition method 400 may further include: S401 to S403.

[0126] S401 : When a third resource request having resource information consistent with the second resource request exists in the second cache area, determine a target request queue where the third resource request is located.

[0127] The target request queue includes a request queue where a resource request having resource information consistent with the resource information of the second resource request exists.

[0128] S402: Add the second resource request to the target request queue, and do not send the second resource request to the target port of the target server.

[0129] In some embodiments, after the target request queue is determined, the second resource request is added to the target request queue to achieve the merging of resource requests for the same resource information. At this time, there are resource requests that are already being processed in the target request queue. In order to achieve the merging of resource requests for the same resource information, after the target request queue is determined, the second resource request is only added to the target request queue, waiting for the target resources to be acquired by other resource requests being processed, without making an acquisition request for the corresponding target resource for the second resource request. Specifically, when a resource request is placed in the target request queue, the resource request will wait to be processed. In order to avoid repeatedly processing requests that have already been processed, a second cache area can be used to track requests that have already been processed.

[0130] S403: If a target resource matching the third resource information of the third resource request exists in the first buffer area, send the target resource to the set-top box.

[0131] As a possible implementation, the same resource information can be identified by comparing the resource identifiers carried in the resource request information. Once it is confirmed that the target resource exists in the first buffer, a suitable message or data packet is constructed to send the target resource to the set-top box.

[0132] In one embodiment, because target resource already exists in the first buffer zone, therefore can by querying target resource, it is sent to set-top box rapidly, reduce the access to original resource location, thereby alleviate network load, particularly when having a large amount of set-top boxes to request identical resources.Avoided the delay of obtaining resource from original resource location, thereby improved response speed.When a resource request in the target request queue is processed, can be removed from the target request queue, and resource request and corresponding target resource are added in the first buffer zone.Like this, when new resource request enters buffer zone, can earlier check the first buffer zone, to check whether identical request has been handled.If so, can avoid duplicate processing, and directly use the matching item in the first buffer zone.

[0133] By adding the second resource request to the target request queue, the embodiment of the present application can fully utilize the resource requests already in progress and avoid repeatedly acquiring the same target resource. This can reduce unnecessary network or computing overhead and improve the overall efficiency of resource acquisition.

[0134] Furthermore, in some embodiments, in order to reduce resource waste, after a resource request in the target request queue is processed, it may be considered to update the second buffer area to remove the processed resource request to reduce the space occupied.

[0135] Figure 5 FIG. 5 is a flow chart showing a resource acquisition method 500 provided in another embodiment of the present application. Figure 5 As shown, the resource acquisition method 500 may further include: S501 and S502.

[0136] S501, sending a detection request to the cache to trigger a response from the cache;

[0137] S502 : Upon receiving target response information returned by the cache area in response to the detection request, send a second resource request to the cache area, where the target response information is information indicating that the current state of the cache area is normal operation.

[0138] Sending a check request to the cache checks its operating status to ensure it's functioning properly. When the cache is functioning properly, new resource requests are sent to the cache to speed up processing. If a cache malfunctions or anomalies occur, it may not function properly. Checking the cache's operating status allows users to troubleshoot and repair cache issues.

[0139] In an implementation scenario, you can determine whether the Microcache service is available and configure DNAT accordingly by following these steps:

[0140] Step 1: Send a TCP probe packet to the Microcache service, for example, using a response order probe.

[0141] Step 2: Based on the characteristics of the returned TCP probe data packet, determine whether the Microcache service is available. If available, proceed to step 3; if not, jump to step 4.

[0142] Step 3: Modify the destination address and destination port of the live broadcast request to the address and port of the Microcache service. This can be achieved by performing DNAT (Source Address Translation) on the sending end. Specifically, the source IP address and source port of the sending end are replaced with the address and port of the Microcache service, completing the DNAT configuration.

[0143] Step 4: Change the destination port of the live broadcast request to the specified port based on your pre-defined rules or configuration files. This modification can be configured on the network device, performing port forwarding before transmitting the request, thus completing the DNAT configuration.

[0144] Step 5: Send a live broadcast request: After completing the DNAT configuration, send a live broadcast request to obtain the target resource and forward the live stream to the target user according to the configuration.

[0145] Through the above steps, we can implement TCP detection and DNAT configuration for the Microcache service, ensuring that live broadcast requests can successfully reach the target users. In practice, to improve the accuracy of detection and configuration, you can consider using automated tools to complete these tasks.

[0146] Based on the resource acquisition method provided in the above embodiment, the present application also provides a specific implementation of a resource acquisition device. Please refer to the following embodiment.

[0147] See first Figure 6 The resource acquisition device 600 provided in the embodiment of the present application is applied to a home cloud gateway, and the home cloud gateway is provided with a cache area. The device may include the following modules:

[0148] A first receiving module 601 is configured to receive a first resource request sent by a set-top box, where the first resource request includes resource information, server network address information, and server port information;

[0149] A first sending module 602 is configured to send the first resource request to the scheduling service, so that the scheduling service resets the server network address information and the server port information according to a preset load balancing policy, a scheduling algorithm, and a channel-port mapping relationship, and obtains redirection response information for the resource information, where the redirection response information includes the reset server network address information and the reset server port information;

[0150] The second receiving module 603 is used to receive the redirection response information returned by the scheduling service;

[0151] The second sending module 604 is used to send redirection response information to the set-top box;

[0152] The third receiving module 605 is configured to receive a second resource request sent by the set-top box, where the second resource request includes resource information, reset server network address information, and reset server port information;

[0153] A first query module 606 is configured to query the cache for a target resource matching the resource information if the reset server network address information is the preset server network address information and the reset server port information satisfies the preset mapping relationship between the port and the channel;

[0154] The third sending module 607 is configured to send the target resource to the set-top box if the target resource matching the resource information exists in the buffer area.

[0155] In the embodiment of the present application, a first receiving module 601 receives a first resource request and sends it to the scheduling service via a first sending module 602 to generate a redirection response message for the resource information. After receiving the redirection response message, a second receiving module 603 sends the redirection response message to the set-top box via a second sending module 604. Next, a second resource request is received via a third receiving module 605 and sent to the home cloud gateway. After this, the home cloud gateway can judge the second resource request via a first query module 606 and, if it determines that the resource information corresponding to the second resource request is within the storable range of the cache, search the cache for a target resource that matches the resource information and send the target resource in the cache to the set-top box via a third sending module 607. This reduces the communication path required for the second resource request to be sent to the server node via the public network to request the target resource, effectively saving the communication resource consumption caused by multiple resource requests repeatedly applying for the same target resource.

[0156] In addition, by caching the target resources in the cache area, the time it takes for resource requests to obtain the target resources from the public network server can be reduced, while effectively avoiding the back-to-source pressure on the source server caused by multiple servers that do not store the target resources frequently requesting the target resources from the source server.

[0157] As an implementation of the present application, in order to improve the convenience of querying target resources from the home cloud gateway for resource requests, the above-mentioned device may further include:

[0158] A first determining module is configured to determine, when there is no target resource matching the resource information in the cache area, a target port of a target server that can acquire the target resource based on the reset server network address information and the reset server port information;

[0159] A fourth sending module is used to send a second resource request to a target port of a target server to obtain a target resource;

[0160] A fourth receiving module is used to receive the target resource returned by the target port of the target server;

[0161] A cache module is used to associate target resources with resource information and cache them in a cache area;

[0162] The fifth sending module is used to send the target resource to the set-top box.

[0163] As an implementation of the present application, the cache includes a first cache for storing target resources and a second cache for storing resource requests. In order to reduce resource waste caused by multiple requests for the same resource information and improve system response speed, the above-mentioned device may also include:

[0164] A second query module is used to query whether there is a third resource request in the second cache area that is consistent with the resource information of the second resource request, where the third resource request includes third resource information, third server network address information, and third server port information;

[0165] As an implementation of the present application, the fourth sending module may include:

[0166] a creating unit, configured to, if no third resource request having resource information consistent with the second resource request exists in the second cache, create an empty request queue in the second cache and add the second resource request to the empty request queue to obtain a new request queue;

[0167] a copying unit, configured to copy the second resource request to obtain a copied second resource request;

[0168] The sending unit is configured to send the copied second resource request to the target port of the target server to acquire the target resource.

[0169] As an implementation of the present application, in order to integrate and optimize multiple identical resource requests and improve system response efficiency, the above-mentioned apparatus may further include:

[0170] A second determining module is configured to determine a target request queue in which the third resource request is located when a third resource request having resource information consistent with the second resource request exists in the second buffer area;

[0171] A first adding module is used to add the second resource request to the target request queue and not send the second resource request to the target port of the target server;

[0172] The sixth sending module is configured to send the target resource to the set-top box if the target resource matching the third resource information of the third resource request exists in the first buffer area.

[0173] As an implementation of the present application, in order to monitor the status of the cache area in real time and improve data access speed and system performance, the above-mentioned device may further include:

[0174] a seventh sending module, configured to send a detection request to the buffer area to trigger a response from the buffer area;

[0175] The eighth sending module is configured to send the second resource request to the cache area upon receiving target response information returned by the cache area in response to the detection request, wherein the target response information is information indicating that the current state of the cache area is normal operation.

[0176] As an implementation of the present application, in order to communicate with the server and obtain the required target resources, the above-mentioned device may further include:

[0177] The ninth sending module is used to send the second resource request to the target port of the target server when the reset server network address information is not the preset server network address information and / or the reset server port information does not satisfy the preset mapping relationship between the port and the channel.

[0178] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0179] The electronic device may include a processor 701 and a memory 702 storing computer program instructions.

[0180] Specifically, the processor 701 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0181] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 702 may include removable or non-removable (or fixed) media. Where appropriate, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.

[0182] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure. The processor 701 implements any one of the resource acquisition methods in the above-mentioned embodiments by reading and executing the computer program instructions stored in the memory 702.

[0183] In one example, the electronic device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.

[0184] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0185] Bus 710 includes hardware, software or both, and the parts of online data flow metering equipment are coupled to each other. For example, but not limitation, bus can include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 can include one or more buses. Although the present application embodiment describes and shows specific bus, the application considers any suitable bus or interconnection.

[0186] The electronic device can execute the resource acquisition method in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 6 Described resource acquisition method and device.

[0187] In addition, in conjunction with the resource acquisition method in the above embodiments, the present application embodiment may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the resource acquisition methods in the above embodiments is implemented.

[0188] An embodiment of the present application may provide a computer program product, which includes a computer program. When the computer program is processed and executed, the aforementioned resource acquisition method is implemented.

[0189] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.

[0190] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0191] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or they can be different from the order in the embodiment, or several steps can be performed simultaneously. The above reference is made to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of the boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart, and combinations of boxes in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0192] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A resource acquisition method, applied to a home cloud gateway, characterized in that: The home cloud gateway is provided with a cache area, and the method further includes: receiving a first resource request sent by a set-top box, wherein the first resource request includes resource information, server network address information, and server port information; Sending the first resource request to a scheduling service, so that the scheduling service resets the server network address information and the server port information according to a preset load balancing policy, a scheduling algorithm, and a channel-port mapping relationship, and obtains redirection response information for the resource information, the redirection response information including the reset server network address information and the reset server port information; Receive the redirect response information returned by the scheduling service; Sending the redirection response information to the set-top box; receiving a second resource request sent by the set-top box, where the second resource request includes the resource information, the reset server network address information, and the reset server port information; In a case where the reset server network address information is the preset server network address information and the reset server port information satisfies the preset mapping relationship between the port and the channel, querying the cache area whether there is a target resource matching the resource information; In a case where a target resource matching the resource information exists in the buffer area, the target resource is sent to the set-top box.

2. The resource acquisition method according to claim 1, characterized in that: The method further comprises: If there is no target resource matching the resource information in the cache, determining a target port of a target server capable of acquiring the target resource according to the reset server network address information and the reset server port information; Sending the second resource request to the target port of the target server to acquire the target resource; Receive the target resource returned by the target port of the target server; Associating the target resource with the resource information and caching them in the cache area; The target resource is sent to the set-top box.

3. The resource acquisition method according to claim 2, characterized in that: The cache area includes a first cache area for storing target resources and a second cache area for storing resource requests. Before sending the second resource request to the target port of the target server to obtain the target resource, the method further includes: querying whether there is a third resource request in the second cache area that is consistent with the resource information of the second resource request, wherein the third resource request includes third resource information, third server network address information, and third server port information; The sending the second resource request to the target port of the target server to acquire the target resource includes: If there is no third resource request in the second buffer area that is consistent with the resource information of the second resource request, creating an empty request queue in the second buffer area and adding the second resource request to the empty request queue to obtain a new request queue; copying the second resource request to obtain a copied second resource request; The copied second resource request is sent to the target port of the target server to acquire the target resource.

4. The resource acquisition method according to claim 3, characterized in that: The method further comprises: If a third resource request having resource information consistent with the second resource request exists in the second buffer area, determining a target request queue in which the third resource request is located; Adding the second resource request to the target request queue, and not sending the second resource request to the target port of the target server; In a case where a target resource matching the third resource information of the third resource request exists in the first buffer area, the target resource is sent to the set-top box.

5. The resource acquisition method according to any one of claims 1 to 4, characterized in that: Before querying the cache whether there is a target resource matching the resource information, the method further includes: Sending a detection request to the cache area to trigger a response from the cache area; In a case where target response information returned by the cache area in response to the detection request is received, the second resource request is sent to the cache area, where the target response information is information indicating that the current state of the cache area is normal operation.

6. The resource acquisition method according to any one of claims 2 to 4, characterized in that: The method further comprises: When the reset server network address information is not the preset server network address information, and / or the reset server port information does not satisfy the preset mapping relationship between the port and the channel, the second resource request is sent to the target port of the target server.

7. A resource acquisition device, applied to a home cloud gateway, characterized in that: The home cloud gateway is provided with a cache area, and the device further comprises: A first receiving module is configured to receive a first resource request sent by a set-top box, wherein the first resource request includes resource information, server network address information, and server port information; a first sending module, configured to send the first resource request to a scheduling service, so that the scheduling service resets the server network address information and the server port information according to a preset load balancing policy, a scheduling algorithm, and a channel-port mapping relationship, and obtains redirection response information for the resource information, the redirection response information including the reset server network address information and the reset server port information; A second receiving module is configured to receive the redirection response information returned by the scheduling service; A second sending module, configured to send the redirection response information to the set-top box; a third receiving module, configured to receive a second resource request sent by the set-top box, where the second resource request includes the resource information, the reset server network address information, and the reset server port information; a first query module, configured to query the cache whether there is a target resource matching the resource information, if the reset server network address information is the preset server network address information and the reset server port information satisfies a preset mapping relationship between the port and the channel; The third sending module is configured to send the target resource to the set-top box if the target resource matching the resource information exists in the buffer area.

8. An electronic device, characterized in that: The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the resource acquisition method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the resource acquisition method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is processed and executed, the resource acquisition method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Authorization code flow for in-browser applications

    CN108234448A

  • HLS-based on-demand flow control method, device, equipment and a storage medium

    CN113891176A