WO2022206529A1 - Procédé et appareil de traitement de demande de ressource, dispositif informatique et support - Google Patents

Procédé et appareil de traitement de demande de ressource, dispositif informatique et support Download PDF

Info

Publication number
WO2022206529A1
WO2022206529A1 PCT/CN2022/082667 CN2022082667W WO2022206529A1 WO 2022206529 A1 WO2022206529 A1 WO 2022206529A1 CN 2022082667 W CN2022082667 W CN 2022082667W WO 2022206529 A1 WO2022206529 A1 WO 2022206529A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
edge node
client
resource request
request
Prior art date
Application number
PCT/CN2022/082667
Other languages
English (en)
Chinese (zh)
Inventor
刘竞超
徐贵荣
Original Assignee
贵州白山云科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 贵州白山云科技股份有限公司 filed Critical 贵州白山云科技股份有限公司
Publication of WO2022206529A1 publication Critical patent/WO2022206529A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Definitions

  • the embodiments of the present disclosure relate to, but are not limited to, a method, an apparatus, a computer device, and a medium for processing a resource request.
  • CDN Content Delivery Network
  • CDN is an intelligent virtual network built on the basis of the existing network, relying on edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform, so that users can obtain the desired content nearby and reduce network congestion.
  • the CDN hit rate refers to the probability of hitting the cache when a user accesses it.
  • the architecture of CDN is a multi-layer cache aggregation structure. The first layer is the edge node, the middle layer is composed of one or more layers of parent nodes, and the last layer is the origin site.
  • the client randomly accesses the CDN edge node through DNS resolution.
  • the edge node forwards the request to the upper-level parent node, which increases the cost of returning to the parent, resulting in high CDN return rate, internal bandwidth consumption, and network performance. Problems such as poor performance and large delay directly affect the overall performance of the CDN, resulting in poor user experience.
  • the present disclosure provides a method, apparatus, computer equipment and medium for processing a resource request.
  • a method for processing a resource request, applied to a first edge node of a content distribution network comprising:
  • the first edge node receives the resource request from the client
  • the first edge node judges whether the resource requested by the resource request exists in the first edge node
  • the first edge node judges the type of the resource
  • the first edge node determines a second edge node, the first edge node returns a first response message for the resource request to the client, the first edge node The response message is used to instruct the client to send the adjusted resource request to the second edge node, wherein the first response message returned by the first edge node to the client for the resource request includes the first response message. address information of the second edge node;
  • the first edge node acquires the resource from an upper node or an origin station and returns it to the client.
  • the first edge node determines the type of the resource, including:
  • the access times of the resource within a preset time is less than the first preset threshold corresponding to the address information included in the resource request, it is determined that the resource is a first type of resource;
  • the number of times of accessing the resource within the preset time includes:
  • the access times of the resource at the first edge node within the preset time, and/or the total access times of the resource in the edge node group in the area where the client is located within the preset time are the access times of the resource at the first edge node within the preset time, and/or the total access times of the resource in the edge node group in the area where the client is located within the preset time.
  • the first preset threshold is set according to historical access conditions of the address information included in the resource request on the first edge node, and/or according to the location of the client in the area where the client is located. On the edge node group, the historical access situation of the address information included in the resource request is set.
  • the first edge node determines the second edge node, including:
  • the first edge node performs consistent hash calculation on the resource identifier to generate a hash value of the resource, where the resource identifier includes a uniform resource locator or a domain name;
  • the first edge node calculates the hash value of all or part of the edge nodes in the area where the first edge node is located, and allocates the hash value of each edge node on the consistent hash ring;
  • the first edge node determines the corresponding second edge node on a consistent hash ring according to the hash value of the resource.
  • the method further includes:
  • the first edge node records the second edge node, and when the resource request for accessing the same resource is received again and the resource is of the first type, the first edge node returns the information to the client.
  • the first response message of the resource request includes the recorded address information of the second edge node.
  • the first edge node determines the second edge node, further comprising:
  • the second edge node is determined according to the load situation of each edge node in the edge node group where the first edge node is located.
  • the method before the first edge node determines the type of the resource, the method further includes:
  • the first edge node determines whether its own load is greater than or equal to a second preset threshold
  • the first edge node judges the resource type of the resource.
  • the method further includes:
  • the first edge node determines a third edge node, and the first edge node returns a second response message for the resource request to the client;
  • the second response message is used to instruct the client to send the adjusted resource request to the third edge node.
  • the method further includes:
  • the resource is directly returned to the client.
  • the first response message is used to instruct the client to send an adjusted resource request to the second edge node, so that the second edge node returns to the client
  • the adjusted resource requests the requested resource, where the resource is a resource whose starting position is the key frame position closest to the system time at which the adjusted resource request arrives at the second edge node.
  • an apparatus for processing a resource request which is applied to a first edge node of a content distribution network, the apparatus comprising:
  • the receiving module is set to receive the resource request of the client
  • a judgment module configured to judge whether the resource requested by the resource request exists in the first edge node; when the resource does not exist, the judgment module judges the type of the resource;
  • a determining module configured to determine the second edge node by the determining module when the determining module determines that the resource is the first type of resource
  • a response module configured to return a first response message of the resource request to the client when the determination module determines that the resource is a first type resource, where the first response message is used to indicate
  • the client sends the adjusted resource request to the second edge node, wherein the first response message that the response module returns to the client for the resource request includes address information of the second edge node;
  • the response module is further configured to, when the judgment module judges that the resource is a resource of the second type, the response module obtains the resource from the upper-layer node or the source station and returns it to the client.
  • the judging module is specifically set as:
  • the access times of the resource within a preset time is less than the first preset threshold corresponding to the address information included in the resource request, it is determined that the resource is a first type of resource;
  • the number of times of accessing the resource within the preset time includes:
  • the access times of the resource at the first edge node within the preset time, and/or the total access times of the resource in the edge node group in the area where the client is located within the preset time are the access times of the resource at the first edge node within the preset time, and/or the total access times of the resource in the edge node group in the area where the client is located within the preset time.
  • the first preset threshold is set according to historical access conditions of the address information included in the resource request on the first edge node, and/or according to the location of the client in the area where the client is located. On the edge node group, the historical access situation of the address information included in the resource request is set.
  • the determining module is further configured to:
  • the determining module determines a resource identifier according to the resource request
  • the determining module performs consistent hash calculation on the resource identifier to generate a hash value of the resource, wherein the resource identifier includes a uniform resource locator or a domain name;
  • the determining module calculates the hash value of all or part of the edge nodes in the area where the first edge node is located, and allocates the hash value of each edge node on the consistent hash ring;
  • the determining module determines the corresponding second edge node on a consistent hash ring according to the hash value of the resource.
  • the response module is further configured to:
  • the response module records the second edge node, and when the resource request for accessing the same resource is received again and the resource is of the first type, the response module returns the resource request to the client.
  • the first response message includes the recorded address information of the second edge node.
  • the determining module is further configured to:
  • the determining module determines the second edge node according to the load situation of each edge node in the edge node group where the first edge node is located.
  • the judging module is further configured to:
  • the judgment module judges whether the load of the first edge node is greater than or equal to a second preset threshold
  • the judgment module judges the resource type of the resource.
  • the determining module is further configured to determine a third edge node
  • the response module is further configured to, when the judgment module judges yes, the response module returns a second response message of the resource request to the client; the second response message is used to indicate the client
  • the terminal sends the adjusted resource request to the third edge node.
  • the response module is configured to:
  • the response module directly returns the resource to the client.
  • the first response message is used to instruct the client to send an adjusted resource request to the second edge node, so that the second edge node returns to the client
  • the adjusted resource requests the requested resource, where the resource is a resource whose starting position is the key frame position closest to the system time at which the adjusted resource request arrives at the second edge node.
  • a computer device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions in the memory to achieve The method of any one of the first aspects.
  • a non-transitory computer-readable storage medium having executable instructions stored thereon, the executable instructions implementing the method of the first aspect when executed by a processor.
  • the technical solutions provided by the present disclosure may include the following beneficial effects: by using the resource request processing method of the present disclosure, the hit rate of resource requests at edge nodes can be improved, the cost of returning to the parent can be effectively reduced, the internal consumption bandwidth can be reduced, and the CDN edge node can be improved. utilization efficiency.
  • FIG. 1 is a schematic flowchart of a method for processing a resource request according to an exemplary embodiment
  • FIG. 2 is a block diagram of an apparatus for processing a resource request according to an exemplary embodiment
  • Fig. 3 is a block diagram of a computer device according to an exemplary embodiment.
  • FIG. 1 is a schematic flowchart of a method for processing a resource request provided by an exemplary embodiment of the present application.
  • the method for processing a resource request according to the present disclosure is applicable to a first edge node of a content distribution network, including:
  • Step 101 the first edge node receives the resource request sent by the client
  • the client may be a terminal device such as a desktop computer, a notebook computer, a smart phone, or an IOT device, or a server device such as a conventional server, a cloud server, or a server array. programs running on the machine.
  • the scheduling center node in the content distribution network will schedule the request to the first edge node in the content distribution network.
  • the edge node that receives the resource request from the client will be defined. is the first edge node.
  • the resource request received by the first edge node includes at least a resource identifier and a client identifier.
  • the resource identifier may be a uniform resource locator, a domain name, a resource name, etc., and the resource requested by the client can be determined according to the resource identifier.
  • the client identifier may be client address information, client type, client ID, and the like.
  • Step 102 the first edge node judges whether the resource requested by the resource request exists in the first edge node
  • the first edge node when receiving a resource request from a user, the first edge node obtains the resource identifier in the resource request, and the first edge node queries whether the resource requested by the client exists locally, and if it exists (hit), The first edge node directly returns resources to the client.
  • Step 103 when the resource does not exist, the first edge node judges the type of the resource
  • the first edge node determines the type of the resource.
  • the types of resources can be distinguished according to the resource format, the protocol type of the resource request, the size of the resource file, the channel to which the resource belongs, the popularity of resource access, etc.; It can meet different customer needs. For example, customers can divide resources into popular channel resources and general channel resources according to the needs of content operation. Through this distinction, CDN manufacturers can more accurately grasp the processing methods of different content.
  • a resource type matching table may be deployed on an edge node in advance, and/or a preset threshold may be preset for judging the resource type.
  • resource types can be distinguished by resource access heat, a preset first preset threshold used to determine resource access heat, and the number of resource accesses is compared with the first preset threshold. Threshold comparison to judge the resource type.
  • the resource when the number of accesses to the resource within the preset time is less than the first preset threshold corresponding to the address information included in the resource request, it is determined that the resource is of the first type; If the number of accesses is greater than or equal to the first preset threshold corresponding to the address information included in the resource request, it is determined that the resource is of the second type.
  • the address information included in the resource request may be information such as domain name, IP, and URL associated with the resource carried in the resource request, and the first preset threshold includes at least the following two setting methods:
  • Method 1 Perform manual estimation settings according to the business characteristics of the domain name
  • Mode 2 Set according to the historical access status of the domain name carried in the resource request on the first edge node, and/or, according to the historical access status of the domain name carried in the resource request on the edge node group in the area where the client is located. set up;
  • the resource type By counting the number of visits of edge nodes to different domain names in historical time, and calculating the first preset thresholds for different domain names based on the experience of those skilled in the art and any well-known algorithm or through machine learning, the resource type The classification is more accurate, and more fine-grained bandwidth control is achieved at the edge nodes.
  • the first predictions for different domain names are obtained by calculating the total number of visits to different areas by the edge node group in the area where the client is located in historical time, and based on the experience of those skilled in the art and any well-known algorithm or by machine learning. Setting a threshold can control the number of resources in the area where the client is located to return to the upper-layer node or source station, so that a certain type of resources can be aggregated or dispersed based on the characteristics of a certain area, reducing the overall bandwidth consumption.
  • the corresponding preset thresholds are respectively set, the two preset thresholds are compared, and the smaller preset threshold is selected as the first preset threshold, so as to simultaneously take into account more fine-grained bandwidth control and control resources on the client.
  • the period of the historical time may be manually set according to the actual situation, and may specifically be the past month, the past half year, the past one year, or the past entire time period, which is not limited in this embodiment.
  • Step 104 when judging that the resource is the first type of resource, the first edge node determines the second edge node, and the first edge node returns a first response message for the resource request to the client, where the first response message is used to instruct the client to send the The second edge node sends the adjusted resource request, wherein the first response message that the first edge node returns to the client for the resource request includes address information of the second edge node.
  • the first edge node determines the second edge node, including: the first edge node obtains the resource corresponding to the area to which the client belongs.
  • the edge node group and the resource identifier in the resource request the first edge node determines the second edge node in the edge node group based on the resource identifier, and the first edge node sends a response message to the client for the resource request, wherein the first edge node
  • the response message that returns the resource request to the client includes the address information of the second edge node and/or the identification information of the second edge node, so that the client can send the adjusted resource request to the second edge node, and then start from the second edge node.
  • the second edge node obtains the resources requested by the client.
  • Step 105 when the resource is the second type of resource, the first edge node obtains the resource from the upper node or the source station and returns it to the client.
  • the first edge node determines that the resource is the second type of resource, that is, in this embodiment, when the resource requested by the client is a resource with high access popularity, the first edge node obtains the resource from the upper-layer node by , when the upper-layer node does not have the resource, or there is no upper-layer node, the first edge node obtains the resource to the client through back-to-source.
  • the method further includes: the first edge node determines whether its own load is greater than or equal to a second preset threshold; if the determination is yes , the first edge node determines that there is a third edge node of the resource requested by the resource request in its area according to the resource identifier of the resource request, and returns the second response message of the resource request to the client, so that the client sends the third edge node to the third edge node.
  • the first edge node determines that there is a third edge node of the resource requested by the resource request in its area according to the resource identifier of the resource request, and sends a second response message containing the address information of the third edge node to the client, so that the client The adjusted resource request may be sent to the third edge node according to the second response information.
  • the load of the first edge node itself is less than the second preset threshold, it indicates that the load of the first edge service itself is small and can quickly respond to the user's resource request, and then the first edge node continues to judge the resource type of the resource.
  • the first edge node determines the type of the resource by counting the number of accesses to the resource within a preset time, wherein the number of accesses to the resource within the preset time includes: : the number of times the resource is accessed on the first edge node within the preset time, and/or the total number of times the resource is accessed on the edge node group in the area where the client is located within the preset time, as follows:
  • Manner 1 Obtain the resource identifier in the resource request; according to the resource identifier, determine the total number of accesses to the resource on the first edge node within a preset time;
  • Method 2 Determine the region to which the client belongs and the resource identifier in the resource request, and obtain the edge node group corresponding to the region to which the client belongs based on the region to which the client belongs; and obtain the total amount of resources on the edge node group within a preset time according to the resource identifier.
  • the number of visits, where the total number of visits is the sum of the times of visits to resources on each edge node in the edge node group within a preset time.
  • the edge node can determine the resource requested by the user according to the resource identifier in the resource request, and then can obtain all resource requests for the resource. It should be noted that each edge node in each area can be locally The access times of the resource are counted according to a preset collection period (for example, 1 minute), and further, the respective access times are uploaded to the scheduling center node, or the scheduling center node obtains from each edge node regularly.
  • a preset collection period for example, 1 minute
  • the first edge node when it receives the resource request from the user, it can locally count the total number of accesses to the resource within a preset time, for example, it can count the total number of accesses to the resource by the first edge node within 5 minutes.
  • the preset time can be the first 5 minutes, the first 10 minutes, etc., ending at the current moment when the user resource request is received.
  • the collection period and the duration of the preset time are not specifically limited here.
  • the first edge node obtains the client identifier of the resource request, determines the area to which the client belongs by using the client identifier, and then obtains the edge node group corresponding to the area to which the client belongs.
  • the first edge node can query the edge node group corresponding to the area to which the client belongs according to the client identifier or information about the area to which the client belongs.
  • the first edge node can obtain the total access times of the resource by the edge node group through statistics by itself, or directly obtain from the scheduling center node.
  • the scheduling center node obtains the number of accesses to the resource in each edge node, and the scheduling center node counts the number of accesses to the resource by all edge nodes in each area according to a preset statistical period (for example, 1 minute), and then according to The preset synchronization period (for example, 1 minute) synchronizes the access times of all edge nodes to the resource to each edge node in the corresponding area.
  • a preset statistical period for example, 1 minute
  • the preset synchronization period for example, 1 minute
  • the first edge node only needs to summarize the access times synchronized by the scheduling center node, that is, through the first An edge node locally counts the total access times of the edge node group to the resource within a preset time, for example, summing the access times of each edge node in the edge node group to the resource within 5 minutes, so that the edge node can pass its own
  • the total number of visits to the resource by the edge node group is obtained by statistics.
  • the scheduling center node obtains the number of accesses to the resource in each edge node, and can count the number of accesses to the resource by all edge nodes in each area according to a preset statistical period (for example, 1 minute), and report to the corresponding All edge nodes in the region synchronize data.
  • the edge node instead of synchronizing data to each edge node in the corresponding area, the edge node directly sends query information to obtain the total number of accesses to the resource by the edge node group to the scheduling center node, and the query information at least includes the duration of the preset time, the client The identifier (or the area to which the client belongs) and the resource identifier.
  • the dispatch center node determines the edge node group corresponding to the area to which the client belongs according to the client identifier (or the area to which the client belongs) in the query information, and counts the edge node group within a preset time. The sum of the access times of each edge node to the resource is sent to the edge node, so that the edge node can obtain the total access times of the resource by the edge node group from the scheduling center node.
  • the preset time may be the first 5 minutes, the first 10 minutes, etc., ending at the current moment when the user resource request is received, and the duration of the statistical period, the synchronization period, and the preset time is not specifically limited here.
  • the first edge node determines the second edge node, including: the first edge node determines the resource identifier according to the resource request; the first edge node matches the resource identifier The first edge node calculates the hash value of all or part of the edge nodes in the area where the first edge node is located, and assigns each edge The hash value of the node is allocated on the consistent hash ring; the first edge node determines the corresponding second edge node on the consistent hash ring according to the hash value of the resource.
  • the first edge node can obtain the resource identifier in the resource request, and the resource identifier can be a uniform resource locator URL or a domain name.
  • the hash value corresponding to the resource identifier is calculated by a consistent hash algorithm. , that is, the hash value corresponding to the resource.
  • different hash values can usually be calculated. Therefore, there can be a one-to-one correspondence between resource identifiers and hash values.
  • the hash value of the IP address of some edge nodes calculate the hash value corresponding to each edge node, that is, the hash value of each edge node, and assign the hash value of each edge node on the consistent hash ring; On the consistent hash ring, starting from the location of the hash value of the resource, search along the preset direction to find the location corresponding to the hash value of the IP address of each edge node, and use the hash value of the IP address of the first edge node to be searched.
  • the edge node represented at the location is determined to be the second edge node.
  • the resource request on the edge node can be more concentrated through the consistent hashing algorithm.
  • the client sends the adjusted resource request to the second edge node determined according to the resource identifier, and when the second edge node has resources, returns the resources to the client; when the second edge node does not have resources, sends the resource to the upper node or The origin site obtains resources.
  • the second edge node by locating the second edge node through a consistent hash algorithm, it can be ensured that the same first type resource can be accessed to the second edge node every time the resource is accessed, so that the resource is on the edge
  • the high hit rate of the node effectively reduces the back-to-source rate and makes the access of edge nodes more concentrated, which not only reduces the bandwidth for returning to the parent, but also provides a better user experience.
  • the first edge node may also record the second edge node, when a resource request for accessing the same resource is received again and the resource is the first edge node
  • the first edge node may directly return to the client a response message containing the recorded address information of the second edge node according to the recorded information.
  • the first edge node in step 104, returns a first response message of the resource request to the client, including: obtaining the resource identifier in the resource request and the address information of the second edge node ; The first edge node generates a first response message for the resource request according to the resource identifier and address information, and returns the first response message to the client.
  • the first edge node when it determines that the resource requested by the user is the first type of resource, it can construct a first response message according to the obtained uniform resource locator URL and the address information of the second edge node.
  • the first edge node Send the first response message to the client, so that the client sends the adjusted resource request to the second edge node after receiving the first response message, so that the client can obtain the resource requested by the user through the second edge node
  • the address information of the second edge node may be the IP address of the second edge node, wherein the first response message may carry the HTTP status code 30X, when the status code is 30X, it indicates that the client is instructed to resend a request, and the first response message may carry the HTTP status code 30X.
  • the edge node sends a response header Location, specifying the URL address of the new request.
  • the second edge node and the first edge node belong to the same logical area, which may be, for example, a geographic area or an operator.
  • the first edge node receives the resource request from the client, and when judging that the resource requested by the user does not exist (misses) in the first edge node, according to the resource request, determine the resource type of the resource requested by the user, when it is determined that the resource requested by the user is the first type of resource, determine the second edge node according to the resource identifier of the resource, and then send a response message to the client for the resource request, and the client sends a response message to the client according to the response message.
  • the second edge node sends the adjusted resource request, so that the client can obtain the resource requested by the user through the second edge node in the same geographical area, which can realize that when the resource requested by the user belongs to the access heat in the first edge node
  • the first type resource it instructs the client to send the adjusted resource request to other edge nodes that are most likely to have the resources requested by the user, which reduces the cost of returning to the parent and improves the hit rate of cold resources on edge nodes. It reduces the access delay caused by the internal bandwidth consumption and the performance of the parent node, and at the same time, enables the resources in the edge nodes that belong to the same area as the first edge node to be accessed, and improves the utilization rate of resources in other edge nodes in the same area. access rate.
  • the first edge node determines the second edge node, which further includes determining the second edge node according to the load situation of each edge node in the edge node group where the first edge node is located .
  • the first edge node selects the edge node with lower load according to the load situation of each edge node in the edge node group, and determines it as the second edge node, and the first edge node sends the response information carrying the address information of the second edge node to the client , the client sends a resource request according to the address information of the second edge node, the first edge node can quickly respond to the user's resource request by screening the second edge node with lower load, improve the response speed and success rate of the user's request for resources, and improve the User experience.
  • the second edge node obtains the resource by returning to the upper-layer node or the source station, and sends it to the client.
  • the edge node can also judge the bandwidth of the machine, CPU, IO, packet loss rate and other quality data instead of the load to judge and screen the target edge node.
  • the first response message is used to instruct the client to send the adjusted resource request to the second edge node, so that the second edge node returns the resource requested by the adjusted resource request to the client. That is, after the client sends the adjusted resource request to the second edge node according to the first response message, the client receives the resource requested by the adjusted resource request returned by the second edge node, and the resource is the resource after distance adjustment The resource that requests the starting position of the key frame position that reaches the second edge node with the closest system time. In the live broadcast scenario, after the host starts the live broadcast, the host will push the live video data to the edge node in real time.
  • the second edge node When the user's resource request reaches the second edge node, in order to ensure that the user can accurately obtain the corresponding information when the request arrives Time video resources, the second edge node will push the key frame position closest to the system time when the resource request reaches the second edge node as the resource at the starting position to the client, so that the user can watch the clear live streaming content in time. Does not produce blur and freeze.
  • the method provided by the embodiments of the present disclosure is used to perform resource requests, so that the probability of the edge node being missed is low.
  • the first edge When the node is not hit, the first edge node will return to the parent or the source N times at most, effectively reducing the bandwidth of returning to the parent or the source by 15-20%.
  • the processing method of different resource type requests is determined by judging and deciding on the edge node. Reallocating and adjusting edge nodes that process requests can also greatly improve the utilization efficiency of CDN edge nodes.
  • FIG. 2 exemplarily shows a block diagram of an apparatus for resource request processing according to the present disclosure.
  • an apparatus for processing a resource request is provided, which is applied to a first edge node of a content distribution network, and the apparatus includes:
  • the receiving module 201 is configured to receive the resource request of the client
  • the judging module 202 is configured to judge whether the resource requested by the resource request exists in the first edge node; when the resource does not exist, the judging module 202 judges the type of the resource;
  • the determining module 203 is configured to determine the second edge node when the determining module 202 determines that the resource is the first type of resource;
  • the response module 204 is configured to, when the determination module 202 determines that the resource is the first type of resource, the response module 204 returns a first response message of the resource request to the client, and the first response message is set to instruct the client to send the adjustment to the second edge node
  • the response module 204 is further configured to, when the determination module 202 determines that the resource is the second type of resource, the response module 204 obtains the resource from the upper-layer node or the source station and returns it to the client.
  • the judging module 202 is specifically set as:
  • the resource is determined to be of the second type.
  • the number of accesses to the resource within the preset time period includes:
  • the first preset threshold is set according to the historical access situation of the address information included in the resource request on the first edge node, and/or according to the address included in the resource request on the edge node group in the area where the client is located Set the historical access to information.
  • the determining module 203 is also set to:
  • the determining module 203 determines the resource identifier according to the resource request
  • the determination module 203 performs consistent hash calculation on the resource identifier, and generates a hash value of the resource, wherein the resource identifier includes a uniform resource locator or a domain name;
  • the determination module 203 calculates the hash values of all or part of the edge nodes in the area where the first edge node is located, and allocates the hash values of each edge node on the consistent hash ring;
  • the determining module 203 determines the corresponding second edge node on the consistent hash ring according to the hash value of the resource.
  • response module 204 is also set to:
  • the response module 204 records the second edge node, and when the resource request for accessing the same resource is received again and the resource is the first type of resource, the response module 204 returns the first response message of the resource request to the client including the recorded second edge node. Address information.
  • the determining module 203 is also set to:
  • the determining module 203 determines the second edge node according to the load situation of each edge node in the edge node group where the first edge node is located.
  • the judging module 202 is also set to:
  • the judgment module 202 judges whether the load of the first edge node is greater than or equal to the second preset threshold
  • the judgment module 202 judges the resource type of the resource.
  • the determining module 203 is further configured to determine the third edge node
  • the response module 204 is further configured to, when the judgment module 202 judges as yes, the response module 204 returns a second response message of the resource request to the client; the second response message is used to instruct the client to send the adjusted resource to the third edge node ask.
  • response module 204 is set to,
  • the response module 204 directly returns the resource to the client.
  • the first response message is used to instruct the client to send the adjusted resource request to the second edge node, so that the second edge node returns the resource requested by the adjusted resource request to the client, and the resource is the resource after distance adjustment
  • the resource that requests the starting position of the key frame position that reaches the second edge node with the closest system time.
  • An embodiment of the present disclosure provides a computer device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the executable instructions in the memory to implement the above method for processing a resource request.
  • FIG. 3 is a block diagram of a computer device 300 for a method for processing a resource request according to an exemplary embodiment.
  • computer device 300 may be provided as a server.
  • the computer device 300 includes a processor 301, and the number of the processors can be set to one or more as required.
  • Computer device 300 also has memory 302 for storing instructions executable by processor 301, such as application programs. The number of memories can be set to one or more as required. It can store one or more applications.
  • the processor 301 is configured to execute instructions to perform the steps of the above-mentioned resource request processing method.
  • Embodiments of the present disclosure also provide a non-transitory computer-readable storage medium including instructions, on which executable instructions are stored, and when the executable instructions are executed by a processor, the above-mentioned method for processing a resource request is implemented.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • embodiments of the present disclosure may be provided as a method, an apparatus (apparatus), or a computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein.
  • Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data , including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may be used for Any other medium that stores desired information and can be accessed by a computer, etc.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the means implements the functions specified in one or more of the flowcharts and/or one or more blocks of the block diagrams
  • the terms “comprising”, “comprising” or any other variation thereof are intended to encompass a non-exclusive inclusion such that an article or device comprising a list of elements includes not only those elements, but also elements not expressly listed. other elements, or elements inherent to the article or equipment. Without further limitation, an element defined by the phrase “comprising” does not preclude the presence of additional identical elements in the article or device comprising said element.
  • using the resource request processing method of the present disclosure can improve the hit rate of resource requests at edge nodes, effectively reduce the cost of returning to the parent, reduce the internal consumption bandwidth, and improve the utilization efficiency of CDN edge nodes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

La présente divulgation concerne un procédé de traitement de demande de ressource, et est appliqué à un premier nœud périphérique d'un réseau de distribution de contenu. Le procédé consiste : à recevoir une demande de ressource d'un client ; à déterminer si la ressource demandée par la demande de ressource est dans le premier nœud périphérique ; quand il n'y a pas de ressource, à déterminer le type de la ressource ; quand la ressource est un premier type de ressource, à déterminer, par le premier nœud périphérique, un second nœud périphérique, à renvoyer, par le premier nœud périphérique, un premier message de réponse de la demande de ressource au client, le premier message de réponse servant à donner l'instruction au client d'envoyer une demande de ressource ajustée au second nœud périphérique, et le premier nœud périphérique renvoyant le premier message de réponse de la demande de ressource au client comprenant des informations d'adresse du second nœud périphérique ; quand la ressource est un second type de ressource, à obtenir, par le premier nœud périphérique, la ressource d'un nœud de couche supérieure ou d'une station source et à renvoyer, par le premier nœud périphérique, ladite ressource au client.
PCT/CN2022/082667 2021-03-29 2022-03-24 Procédé et appareil de traitement de demande de ressource, dispositif informatique et support WO2022206529A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110332154.0 2021-03-29
CN202110332154.0A CN115208955B (zh) 2021-03-29 2021-03-29 一种资源请求处理的方法、装置、计算机设备及介质

Publications (1)

Publication Number Publication Date
WO2022206529A1 true WO2022206529A1 (fr) 2022-10-06

Family

ID=83457973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082667 WO2022206529A1 (fr) 2021-03-29 2022-03-24 Procédé et appareil de traitement de demande de ressource, dispositif informatique et support

Country Status (2)

Country Link
CN (1) CN115208955B (fr)
WO (1) WO2022206529A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389593B (zh) * 2023-04-17 2024-01-23 阿里巴巴(中国)有限公司 资源的配置方法、系统和电子设备
CN117041260B (zh) * 2023-10-09 2024-01-02 湖南快乐阳光互动娱乐传媒有限公司 一种控制处理方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888270A (zh) * 2017-03-30 2017-06-23 网宿科技股份有限公司 回源选路调度的方法和系统
CN107172186A (zh) * 2017-06-12 2017-09-15 中国联合网络通信集团有限公司 内容获取方法及系统
CN110430286A (zh) * 2019-08-30 2019-11-08 杭州领智云画科技有限公司 Cdn系统中获取资源的方法、装置、设备及存储介质
CN112422702A (zh) * 2020-08-10 2021-02-26 上海哔哩哔哩科技有限公司 Cdn回源方法、系统及计算机设备

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626385B (zh) * 2009-08-10 2016-03-30 中兴通讯股份有限公司 媒体服务方法及系统
CN102447712B (zh) * 2012-01-20 2015-07-08 华为技术有限公司 内容分发网络中节点互联的方法、系统及节点
CN106385426B (zh) * 2015-07-30 2020-01-21 中兴通讯股份有限公司 节点内容的命中方法及装置
CN106790519A (zh) * 2016-12-19 2017-05-31 中国联合网络通信集团有限公司 服务调度方法及边缘节点
CN108696895B (zh) * 2017-04-07 2020-10-09 华为技术有限公司 资源获取方法、装置及系统
CN108833468B (zh) * 2018-04-27 2021-05-11 广州西麦科技股份有限公司 基于移动边缘计算的视频处理方法、装置、设备及介质
CN112218100B (zh) * 2019-07-09 2023-05-26 阿里巴巴集团控股有限公司 内容分发网络、数据处理方法、装置、设备及存储介质
CN110572687A (zh) * 2019-08-09 2019-12-13 北京达佳互联信息技术有限公司 直播回源聚合的方法、装置、系统、设备及存储介质
CN111614736A (zh) * 2020-04-30 2020-09-01 北京金山云网络技术有限公司 网络内容资源调度方法、域名调度服务器及电子设备
CN112287259B (zh) * 2020-10-20 2024-04-30 上海七牛信息技术有限公司 一种冷访问回源调度系统及其处理方法
CN112256495A (zh) * 2020-10-20 2021-01-22 平安科技(深圳)有限公司 数据传输方法、装置、计算机设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888270A (zh) * 2017-03-30 2017-06-23 网宿科技股份有限公司 回源选路调度的方法和系统
CN107172186A (zh) * 2017-06-12 2017-09-15 中国联合网络通信集团有限公司 内容获取方法及系统
CN110430286A (zh) * 2019-08-30 2019-11-08 杭州领智云画科技有限公司 Cdn系统中获取资源的方法、装置、设备及存储介质
CN112422702A (zh) * 2020-08-10 2021-02-26 上海哔哩哔哩科技有限公司 Cdn回源方法、系统及计算机设备

Also Published As

Publication number Publication date
CN115208955B (zh) 2024-04-19
CN115208955A (zh) 2022-10-18

Similar Documents

Publication Publication Date Title
EP3595268B1 (fr) Procédé de distribution de ressources multimédias de diffusion en continu, système, noeud périphérique et système de distribution central
WO2022206529A1 (fr) Procédé et appareil de traitement de demande de ressource, dispositif informatique et support
WO2021004384A1 (fr) Réseau de distribution de contenu, procédé, appareil et dispositif de traitement de données et support de stockage
US10757037B2 (en) Method and system for dynamic scheduling and allocation of network traffic
CN107395683B (zh) 一种回源路径的选择方法及服务器
US20180205976A1 (en) Method and apparatus of obtaining video fragment
WO2018001144A1 (fr) Station de base, procédé, appareil et système pour répondre à une demande d'accès
US20140089454A1 (en) Method for managing content caching based on hop count and network entity thereof
US9854062B2 (en) Data relay apparatus and method, server apparatus, and data sending method
CN108566370B (zh) 一种数据回源的方法以及装置
WO2011157173A2 (fr) Procédé de sélection de trajet, appareil de fourniture de contenu et système d'interconnexion de réseaux de fourniture de contenu
CN112769976B (zh) 一种域名解析方法及系统
WO2013075578A1 (fr) Système et procédé de téléchargement hors ligne d'un fichier de ressource de réseau
CN113296924B (zh) 一种内容分发方法、设备、系统及存储介质
US20220272392A1 (en) Burst traffic processing method, computer device and readable storage medium
CN110445723B (zh) 一种网络数据调度方法及边缘节点
WO2012075970A1 (fr) Procédé, dispositif et système pour obtenir un contenu multimédia
KR20170103255A (ko) D2d 기반의 콘텐츠 캐싱 방법, 이를 수행하는 컴퓨터 프로그램 및 프로그램을 기록한 기록매체
WO2020024445A1 (fr) Procédé et appareil de stockage de données, dispositif informatique et support de stockage informatique
US11206302B2 (en) Method and device for feeding back a resource file
US20200236056A1 (en) Controlling Data Rate Based on Domain and Radio Usage History
CN112311826B (zh) 内容分发系统中访问请求的处理方法、装置及系统
CN107888388B (zh) 一种网络加速服务的计费方法和系统
CN106533760B (zh) 一种在cm网络中构建cdn系统的方法及装置
WO2022001480A1 (fr) Procédé d'identification d'application populaire, système de réseau, dispositif de réseau et support de stockage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22778712

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22778712

Country of ref document: EP

Kind code of ref document: A1