Request response method, related nodes, medium and program product
By generating and sending score acquisition requests in the content delivery network system, the resource configuration status of CDN nodes is dynamically evaluated, solving the problem that existing technologies cannot meet users' dynamic and ever-changing content acquisition needs, and achieving a match between the stability and smoothness of CDN nodes and terminal devices.
Patent Information
- Application Number
- CN202410711689.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing content delivery network systems cannot meet users' dynamic and ever-changing content acquisition needs. Single points of failure, performance issues, and scalability problems caused by central node decision-making, the inability of weight allocation to reflect changes in the network environment in real time, the high computational overhead of blockchain technology solutions, and the poor adaptability of neural network traffic prediction all make them unsuitable for content delivery scenarios with high real-time requirements.
The management node generates and sends score acquisition requests to CDN nodes to obtain their resource configuration status at the current moment. The target CDN node is determined based on the score ranking, realizing dynamic and real-time resource configuration status assessment and matching, and supporting dynamic registration and status updates of CDN nodes.
It improves the matching degree and stability of CDN nodes and terminal device content acquisition requests, meets the dynamic and ever-changing content acquisition needs of terminal devices, and realizes real-time, flexible and accurate evaluation of CDN resource configuration status.
Smart Images

Figure CN118827792B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of content distribution network, and particularly relates to a request response method, related nodes, a medium and a program product. BACKGROUND
[0002] A content distribution network system usually determines a target node from a plurality of content distribution network nodes based on the distance between the terminal device of a user and the content distribution network nodes or the weight parameters previously set for the content distribution network nodes, and the target node responds to the content acquisition request sent by the terminal device of the user. However, the target node determined by the above scheme cannot meet the dynamic and variable content acquisition requirements of the user. SUMMARY
[0003] To solve the above technical problems, the embodiments of the present application provide a request response method, related nodes, a medium and a program product.
[0004] The technical scheme provided by the embodiments of the present application is as follows:
[0005] The embodiments of the present application first provide a request response method, which is applied to a management node of a content distribution network system; the method comprises the following steps:
[0006] If a node determination request is received at the k th moment, a score acquisition request is generated and sent to an m th content distribution network node of the content distribution network system to trigger the m th content distribution network node to determine an m th score at the k th moment; wherein the node determination request is sent by a domain name resolution device in the content distribution network system in response to a content acquisition request sent by a terminal device; m is an integer greater than or equal to 1 and less than or equal to M; M is greater than 1 and is the number of content distribution network nodes in the content distribution network system; the m th score at the k th moment is at least associated with the resource configuration state of the m th content distribution network node at the k th moment; k is an integer greater than or equal to 1;
[0007] The target content distribution network node at the k th moment is determined from the content distribution network system based on the first score at the k th moment to the M th score at the k th moment, so that the target content distribution network node at the k th moment responds to the content acquisition request.
[0008] In some embodiments, the receiving and determining the target content distribution network node at the k th moment from the content distribution network system based on the first score at the k th moment to the M th score at the k th moment comprises:
[0009] The first score at the k th moment to the M th score at the k th moment are sorted to obtain a sorting result;
[0010] The content distribution network node in the content distribution network system corresponding to the maximum score in the k-th moment in the ranking result is determined as the target content distribution network node in the k-th moment.
[0011] In some embodiments, before the score acquisition request is generated and sent to the m-th content distribution network node in the content distribution network system, the method further comprises:
[0012] receiving a node registration request sent by the m-th content distribution network node; wherein the node registration request at least contains the node identifier and data processing resource parameter of the m-th content distribution network node;
[0013] In response to the node registration request, the m-th content distribution network node is registered to the content distribution network system.
[0014] In some embodiments, after the m-th content distribution network node is registered to the content distribution network system, the method further comprises:
[0015] receiving a node state update parameter sent by the m-th content distribution network node; wherein the node state update parameter at least includes the update parameter of the data processing resource and / or content type of the m-th content distribution network node;
[0016] Based on the node state update parameter, the node state of the m-th content distribution network node in the content distribution network system is updated.
[0017] Embodiments of the present application also provide a request response method, which is applied to a content distribution network node in a content distribution network system; the method comprises:
[0018] receiving a score acquisition request sent by a management node in the content distribution network system; wherein the score acquisition request is generated by the management node after receiving a node determination request at the k-th moment; the node determination request is sent by a domain name resolution device of the content distribution network system and is associated with a content acquisition request sent by the terminal device; k is an integer greater than or equal to 1;
[0019] In response to the score acquisition request, the score of the content distribution network node at the k-th moment is determined; wherein the score at the k-th moment is at least associated with the resource configuration state of the content distribution network node at the k-th moment;
[0020] sending the score of the kth moment to the management node, so that the management node determines a target content distribution network node of the kth moment from the content distribution network system based on the first score of the kth moment to the Mth score of the kth moment, wherein the target content distribution network node of the kth moment is used to respond to the content acquisition request; the Mth score of the kth moment corresponds to an Mth content distribution network node in the content distribution network system; M is the number of the content distribution network nodes in the content distribution network system; and M is an integer greater than 1.
[0021] In some embodiments, the resource configuration state of the kth moment includes a load state of the content distribution network node at the kth moment; and the determining the score of the content distribution network node at the kth moment includes:
[0022] obtaining a location parameter of the content distribution network node;
[0023] determining the score of the kth moment based on the location parameter and the load state of the kth moment.
[0024] In some embodiments, the determining the score of the kth moment based on the location parameter and the load state of the kth moment includes:
[0025] obtaining a historical running parameter of the content distribution network node;
[0026] determining the score of the kth moment based on the historical running parameter, the location parameter and the load state of the kth moment.
[0027] In some embodiments, before the receiving the score acquisition request sent by the management node in the content distribution network system, the method further includes:
[0028] obtaining a node identifier and a data processing resource parameter of the content distribution network node;
[0029] generating a node registration request based on the node identifier and the data processing resource parameter;
[0030] sending the node registration request to the management node to register the content distribution network node to the content distribution network system.
[0031] Embodiments of the present application also provide a management node, which is arranged in a content distribution network node system; the management node includes a first processor and a first memory; wherein the first memory stores a first computer program; when the first computer program is executed by the first processor, the request response method of the management node applied to the content distribution network system can be realized.
[0032] The application further provides a content distribution network node, which is arranged in a content distribution network node system; the content distribution network node comprises a second processor and a second memory; the second memory stores a second computer program; and the second computer program, when executed by the second processor, can implement the request response method of the content distribution network node applied to the content distribution network system as any one of the preceding application.
[0033] The application further provides a computer readable storage medium, which stores a third computer program; and the third computer program, when executed by a processor of an electronic device, can implement the request response method as any one of the preceding application.
[0034] The application further provides a computer program product, which comprises a fourth computer program; and the fourth computer program, when executed by a processor of an electronic device, can implement the request response method as any one of the preceding application.
[0035] The request response method applied to the management node of the content distribution network system provided by the embodiments of the present application, if the management node receives a node determination request at the kth moment, generates and sends a score acquisition request to the mth content distribution network node of the content distribution network system to trigger the mth content distribution network node to determine the mth score at the kth moment, and the mth score at the kth moment is at least associated with the resource configuration state of the mth content distribution network node at the kth moment, m is greater than or equal to 1 and less than or equal to the number of content distribution network nodes in the content distribution network system, in this way, through the above operation, the mth score at the kth moment obtained by the management node in the content distribution network system is associated with the resource configuration state of the mth content distribution network node at the kth moment, so that the mth score at the kth moment can reflect the instantaneous resource configuration state of any content distribution network node in the content distribution network system in real time and accurately; and the node determination request is sent by the domain name resolution device in the content distribution network system in response to the content acquisition request sent by the terminal device, in this way, the accurate control of the management node to generate and send the score acquisition request and obtain the mth score at the kth moment is realized; on this basis, the management node receives and determines the target content distribution network node at the kth moment from the content distribution network system based on the first score at the kth moment to the Mth score at the kth moment, so that the target content distribution network node at the kth moment responds to the content acquisition request, so that the process of the management node to determine the target content distribution network node at the kth moment can comprehensively evaluate the scores of each content distribution network node in the content distribution network system at the kth moment, thereby improving the matching degree between the resource configuration state of the target content distribution network node at the kth moment and the content acquisition request of the terminal device, improving the stability and smoothness of the target content distribution network node at the kth moment to provide content service request for the terminal device, so that the target content distribution network node at the kth moment can meet the actual content providing demand of the terminal device; on the other hand, since the above process of determining the target content distribution network node at the kth moment is associated with the real-time resource configuration state of each content distribution network node in the content distribution network system, so that the management node can evaluate the resource configuration state of all content distribution network nodes in the content distribution network system in real time, flexibly, comprehensively and accurately according to the content acquisition request sent by the terminal device, so that the resource configuration state of the finally determined target content distribution network node at the kth moment can meet the dynamic and changeable content acquisition demand of the terminal device. BRIEF DESCRIPTION OF DRAWINGS
[0036] Figure 1 The flowchart of the request response method applied to the management node of the content distribution network system provided by the embodiments of the present application;
[0037] Figure 2A flowchart of a request response method of a content delivery network node applied to a content delivery network system is provided for the embodiments of the present application;
[0038] Figure 3 A flowchart of a request response method is provided for the embodiments of the present application;
[0039] Figure 4 A structural diagram of a request response method is provided for the embodiments of the present application;
[0040] Figure 5 A structural diagram of a management node is provided for the embodiments of the present application;
[0041] Figure 6 A structural diagram of a content delivery network node is provided for the embodiments of the present application. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be clearly and completely described in connection with the drawings in the embodiments of the present application.
[0043] It should be understood that the specific embodiments described herein are merely intended to explain the present application, and are not intended to limit the present application.
[0044] A content delivery network (CDN) caches content through CDN nodes deployed in various locations, and provides fast, stable and efficient content providing services for user terminals through these CDN nodes. In actual applications, when a user terminal sends a content acquisition request, the CDN system usually selects a CDN node with the smallest distance from the user terminal, and provides content data for the user terminal through the node, so as to reduce the access load of a server storing source data, and improve the efficiency of content data access.
[0045] In CDN system content scheduling, the general CDN scheduling strategy includes parameters such as geographic location and the type of content provided by the CDN node. However, with the increase in the number of user terminals and the diversification of content types, the above CDN scheduling strategy may cause some CDN nodes to be overloaded, while other CDNs are in an idle state. Therefore, the above scheme cannot meet the complex and dynamic network environment and the content acquisition requirements of users.
[0046] Moreover, the decision of determining the target CDN node for responding to the content acquisition request of the user in the above scheme is determined by the center node in the CDN system, which may cause single point failure, performance problems and scalability problems; at the same time, with the continuous growth of the network scale of the CDN system, the center node may also have performance bottlenecks.
[0047] On the other hand, the above scheme has poor dynamic environment adaptability. In the above scheme, the center node needs to collect the state information of all CDN nodes in the network for determining the target CDN node. Thus, when the scheme is applied to a large distributed network, the collection of the state information may be delayed, which easily leads to insufficient real-time performance and accuracy of the decision on the target CDN node.
[0048] To solve the above technical problems, the related art further provides that weights are pre-assigned to CDN nodes, and the content acquisition request of a user is routed to the CDN node with the highest weight, and the weights are pre-determined based on parameters such as the load, performance and bandwidth of the CDN.
[0049] However, once the weights in the above scheme are assigned and determined, they may not meet the rapid changes in the network environment and user demand. For example, if the network where a certain CDN node is located suddenly fluctuates or is overloaded, but the weight of the CDN node cannot reflect the above situation in real time, which easily leads to delay in content data transmission and interruption of service of the CDN node; and the fixed weights pre-determined in the above scheme may lead to misjudgment of the data processing capacity of some CDN nodes, thus leading to unbalanced use of CDN node resources in the CDN system.
[0050] To solve the above technical problems, the related art further provides a decentralized network resource scheduling method based on blockchain technology in a CDN system. The method obtains configuration information sent by a first computing node, and distributes the configuration information to a secondary CDN node in an idle state in a scheduling network, obtains first data information fed back by the secondary CDN node, generates a target task list according to the first data information, and sends the target task list to a second computing node, so that the second computing node performs corresponding privacy computing processing according to the first data information, and further determines a primary CDN node.
[0051] Since the primary CDN node in the above scheme is elected by consensus of all CDN nodes in the CDN network, the scheduling network can be decentralized, and the method provides data security cross-domain sharing capability for each participant, and realizes collaborative management, collaborative scheduling, collaborative computing and collaborative evidence storage in the whole process.
[0052] However, the above method relies on a consensus mechanism, and the consensus mechanism needs to be realized by consensus of all CDN nodes in the CDN network, and the above process involves a consensus strategy including Proof-of-Work, which easily leads to a large amount of computing overhead; at the same time, the above scheme needs to set an election period and a preset time length, and the confirmation time of the optimal scheduling may be long to reach the scheduling consensus. Thus, the above scheme is not suitable for content distribution scenarios with high real-time requirements, including live streaming and on-demand streaming.
[0053] A method for predicting network traffic through a neural network is also provided in the related art. In the method, historical network traffic data needs to be first obtained from a source layer node as training data; then a middle layer node is controlled to perform calculation learning based on the training data to obtain a learning result of the middle layer; next, the learning result of the middle layer is transmitted to a destination layer node for the destination layer node to calculate an error value; finally, a prediction unit determines whether to perform network traffic prediction according to the size of the error value.
[0054] In the above scheme, the communication among the three layer nodes is based on a specific on-chip network protocol. Although the above scheme can efficiently predict network traffic, the above scheme has high requirements for the quality and quantity of training data. Although the above method can automatically identify data traffic to a certain extent, the identification model is relatively fixed, and it cannot meet the traffic prediction requirements of complex and variable network traffic environments, and therefore has poor adaptability. At the same time, the above method needs a large amount of training time for model training, so that the scheme cannot meet the CDN scene with high real-time requirements.
[0055] Based on the above technical problems, the embodiments of the present application provide a request response method, related nodes, a medium and a program product.
[0056] Figure 1 The flowchart of the request response method for the management node applied to the CDN system provided by the embodiments of the present application is shown in FIG. 1, which can include the following steps: Figure 1
[0057] Step 101: If a node determination request is received at the kth moment, generate and send a score acquisition request to the mth CDN node of the CDN system to trigger the mth CDN node to determine the mth score at the kth moment.
[0058] Wherein, the node determination request is sent by a domain name resolution device in the CDN system in response to a content acquisition request sent by a terminal device; m is an integer greater than or equal to 1 and less than or equal to M; M is greater than 1 and is the number of CDN nodes in the CDN system; the mth score at the kth moment is at least associated with the resource configuration state of the mth CDN node; k is an integer greater than or equal to 1.
[0059] For example, if no node determination request is received at the kth moment, no score acquisition request can be generated and sent to the mth CDN node of the CDN system.
[0060] In an embodiment, the terminal device can include a computer device, a tablet computer, a smart phone, and the like.
[0061] In an embodiment, the management node can include a device associated with a content providing platform or a content provider, for managing the CDN nodes in the CDN system, tracking the node status, and updating; exemplary, the management of the CDN nodes can include the node addition and deletion operations performed on the CDN nodes, the management operations of the running status and / or the running mode performed on the CDN nodes, and can also include the operations of managing the content types associated with the CDN nodes; exemplary, the tracking of the node status can include the tracking of the running status of the CDN nodes.
[0062] In an embodiment, the management node can include a physical machine device or a virtual machine device.
[0063] In an embodiment, the management node can perform the domain name resolution on the content acquisition request sent by the terminal device; exemplary, the management node can determine the CNAME corresponding to the content acquisition request.
[0064] In an embodiment, the m-th CDN node can be a physical machine device or a virtual machine device.
[0065] In an embodiment, the CDN system can include a plurality of CDN nodes and at least one management node, and can also include at least one domain name resolution device; exemplary, the domain name resolution device can be used for performing the domain name resolution on the network address carried in the content acquisition request sent by the terminal device; exemplary, the domain name resolution device can include a Domain Name System (DNS) device; exemplary, the domain name resolution device can include a Local DNS device associated with the terminal device, and can also include the intermediate level DNS devices between the Local DNS device and the management node.
[0066] In an embodiment, the content acquisition request can be sent by the terminal device, and can be used for requesting at least one of the pictures, the videos, and the live data.
[0067] In an embodiment, the node determination request can be determined in any of the following ways:
[0068] The terminal device can send the content acquisition request to the domain name resolution device, and perform the resolution on the content acquisition request by the domain name resolution device, to obtain the type of the content requested to be acquired by the terminal device and the network address of the requested content from the content acquisition request, and generate the node determination request based on the above-mentioned type of the content and the network address; exemplary, the network address can include an Internet Protocol (IP) address.
[0069] The terminal device sends a content acquisition request to the domain name resolution device, so that the domain name resolution device performs DNS resolution on the network address in the content acquisition request. If the domain name resolution device cannot determine the domain name corresponding to the network address, the domain name resolution device can generate a node determination request based on the content acquisition request by using the method.
[0070] In an embodiment, the resource configuration state at the kth moment can include a load state of the mth CDN node at the kth moment. Illustratively, the load state can be embodied by a remaining state of available data processing resources of the mth CDN node at the kth moment. Illustratively, the available data processing resources can include at least one of a remaining memory space, an available disk space, an available bandwidth, and a number of schedulable cores of the mth CDN node at the kth moment.
[0071] In an embodiment, the mth score at the kth moment can be determined by the following method:
[0072] After receiving the score acquisition request, the mth CDN node statistically integrates the resource configuration state thereof at the kth moment, and then quantitatively scores according to the statistical integration result, and determines the quantitatively scored result as the mth score at the kth moment.
[0073] In an embodiment, the statistical integration of the resource configuration state at the kth moment can be achieved by a pre-set statistical integration strategy. Illustratively, the statistical integration strategy can include an algorithm or model for statistically integrating the remaining state of the available data processing resources in the mth CDN node. Illustratively, the statistical integration strategy can be deployed in the mth CDN node.
[0074] In an embodiment, the process of receiving the node determination request and sending the score acquisition request by the management node can be a bidding process triggered by the management node and participated in by the M CDN nodes.
[0075] Step 102, receiving and determining a target CDN node at the kth moment from the CDN system based on the first score at the kth moment to the Mth score at the kth moment, so that the target CDN node at the kth moment responds to the content acquisition request.
[0076] In an embodiment, the mth score at the kth moment can correspond to the resource configuration state of the mth CDN node at the kth moment, that is, the mth score at the kth moment can correspond to the mth CDN node at the kth moment. For example, the first score at the kth moment can be the score of the first CDN node at the kth moment, the second score at the kth moment can be the score of the second CDN node at the kth moment, the third score at the kth moment can be the score of the third CDN node at the kth moment, and so on. The Mth score at the kth moment can be the score of the Mth CDN node at the kth moment.
[0077] In an embodiment, the target CDN node at the kth moment can be determined by the following way:
[0078] After receiving the first score at the kth moment to the Mth score at the kth moment, the management node can evaluate the above M scores to determine the health status of the M CDN nodes at the kth moment, and determine the CDN node with the best health status as the target CDN node at the kth moment.
[0079] In an embodiment, when the kth moment changes, the target CDN node at the kth moment determined by the above way can change accordingly, that is, the target CDN node at the kth moment can change with the change of the resource configuration state of each CDN node at the kth moment.
[0080] In an embodiment, after determining the target CDN node at the kth moment, the content acquisition request can be redirected to the target CDN node at the kth moment, so that the target CDN node at the kth moment sends the target content requested by the content acquisition request to the terminal device; for example, if the target CDN node at the kth moment caches the target content, the target content can be directly sent to the terminal device, if the target CDN node at the kth moment does not cache the target content, it can acquire and cache the target content from the platform or server for providing the target content, and send the target content to the terminal device.
[0081] From the above, the request response method applied to the management node of the CDN system provided by the embodiments of the present application, if the management node receives the node determination request at the kth moment, generates and sends a score acquisition request to the mth CDN node of the CDN system to trigger the mth CDN node to determine the mth score at the kth moment, and the mth score at the kth moment is at least associated with the resource configuration state of the mth CDN node at the kth moment, m is greater than or equal to 1 and less than or equal to the number of CDN nodes in the CDN system, in this way, through the above operation, the mth score at the kth moment obtained by the management node in the CDN system is associated with the resource configuration state of the mth CDN node at the kth moment, so that the mth score at the kth moment can reflect the instantaneous resource configuration state of any CDN node in the CDN system in real time and accurately; and the node determination request is sent by the domain name resolution device in the CDN system in response to the content acquisition request sent by the terminal device, in this way, the accurate control of the management node to generate and send the score acquisition request and obtain the mth score at the kth moment is realized; on this basis, the management node receives and determines the target CDN node at the kth moment from the CDN system based on the first score at the kth moment to the Mth score at the kth moment, so that the target CDN node at the kth moment responds to the content acquisition request, so that the process of determining the target CDN node at the kth moment by the management node can comprehensively evaluate the scores of each CDN node in the CDN system at the kth moment, thereby improving the matching degree between the resource configuration state of the target CDN node at the kth moment and the content acquisition request of the terminal device, improving the stability and smoothness of the target CDN node at the kth moment to provide content service request for the terminal device, so that the target CDN node at the kth moment can meet the actual content providing demand of the terminal device; on the other hand, since the above process of determining the target CDN node at the kth moment is associated with the real-time resource configuration state of each CDN node in the CDN system, so that the management node can evaluate the resource configuration state of all CDN nodes in the CDN system in real time, flexibly, comprehensively and accurately according to the content acquisition request sent by the terminal device, so that the resource configuration state of the finally determined target CDN node at the kth moment can meet the dynamic and changeable content acquisition demand of the terminal device.
[0082] Based on the foregoing embodiments, in the request response method applied to the management node of the CDN system provided by the embodiments of the present application, receiving and determining the target CDN node at the kth moment from the CDN system based on the first score at the kth moment to the Mth score at the kth moment can be achieved by the following steps:
[0083] Step A1, sorting the first score at the kth moment to the Mth score at the kth moment to obtain a sorting result.
[0084] In an embodiment, the mth score at the kth moment can be data greater than 0; at this time, the M scores at the kth moment can be sorted in ascending order to obtain a sorting result.
[0085] In an embodiment, the mth score at the kth moment can be in the form of a score interval; for example, the score interval can include a closed interval, an open interval, or a half-open half-closed interval, that is, the mth score at the kth moment can include two data, wherein the first data can include the lower limit value of the score interval, and the second data can include the upper limit value of the score interval.
[0086] For example, in the above case, the first data and the second data contained in the score interval can be evaluated to determine the dynamic change interval of the remaining data processing resources that can be configured by each CDN node at the kth moment, and the dynamic change interval of the remaining data processing resources that can be configured by each CDN node at the kth moment can be sorted to obtain a sorting result.
[0087] In an embodiment, after receiving the score determination request, the mth CDN node can evaluate the current running state and / or power consumption state, evaluate the upper limit value and the lower limit value of the resource configuration state, and determine the score interval according to the upper limit value and the lower limit value.
[0088] Step A2, determining the CDN node corresponding to the maximum score at the kth moment in the sorting result as the target CDN node at the kth moment in the CDN system.
[0089] In an embodiment, when the mth score at the kth moment is a numerical value, the CDN node corresponding to the maximum value in the M scores can be determined as the target CDN node at the kth moment.
[0090] In an embodiment, when the mth score at the kth moment is a score interval, the CDN node with the smallest dynamic change interval of the remaining data processing resources that can be configured at the kth moment in the M score intervals can be determined as the target CDN node at the kth moment.
[0091] From the above, the request response method applied to the management node of the CDN system provided by the embodiments of the present application sorts the first score at the kth moment to the Mth score at the kth moment to obtain a sorting result, and then determines the CDN node corresponding to the maximum score at the kth moment in the sorting result in the CDN system as the target CDN node at the kth moment. In this way, through the above sorting and screening of the M scores at the kth moment, dynamic screening of the M CDN nodes in the CDN system at the kth moment is realized, so as to improve the matching degree between the target CDN node at the kth moment and the content acquisition request of the terminal device, and also improve the stability of the CDN node at the kth moment in processing the content acquisition request of the terminal device.
[0092] Based on the foregoing embodiments, in the request response method applied to the management node of the CDN system provided by the embodiments of the present application, the following steps can be further performed before generating and sending the score acquisition request to the mth CDN node of the CDN system:
[0093] Step B1, receiving the node registration request sent by the mth CDN node.
[0094] The node registration request at least contains the node identifier and the data processing resource parameter of the mth CDN node.
[0095] In an implementation manner, the node identifier of the mth CDN node can include the node name, node number and network address of the mth CDN node; exemplarily, the network address can include any one of IP, Domain Name System (DNS) address, Media Access Control (MAC) address, and Uniform Resource Locator (URL) address.
[0096] In an implementation manner, the data processing resource parameter can include the software resource parameter and / or the hardware resource parameter of the mth CDN node.
[0097] Exemplarily, the software resource can include the operating system, database, system application and user application configured in the mth CDN node, etc.; correspondingly, the software resource parameter can include the type and version of the operating system, the type and version of the database, and the list of various system applications and user applications configured in the mth CDN node, etc.
[0098] Exemplarily, the hardware resource can include at least one of memory space, a processor, a disk, and a network interface; correspondingly, the hardware resource parameter can include at least one of size of the memory space, type and performance of the processor, size of the disk space, and number of the network interfaces and their configuration rates; exemplarily, the processor can include at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a Micro Controller Unit (MCU), and a microprocessor.
[0099] In an embodiment, the mth CDN node can collect its data processing resource parameters in response to a trigger of an administrator or a professional technician, and generate a node registration request based on its node identifier and the data processing resource parameters, and then send the node registration request to the management node.
[0100] Step B2, in response to the node registration request, register the mth CDN node to the CDN system.
[0101] In an embodiment, after receiving the node registration request, the management node can parse the node registration request to obtain the node identifier and the data processing resource parameters of the mth CDN node, and register the mth CDN to the CDN system in the case that the node identifier of the mth CDN node is not registered, and the data processing resource parameters represent that the type of the operating system of the mth CDN node is a specified type, and the number of the remaining available data processing resources is greater than or equal to a number threshold.
[0102] As can be seen from the above, in the request response method applied to the management node of the CDN system provided by the embodiments of the present application, after the management node receives the node registration request sent by the mth CDN node and containing the node identifier and the data processing resource parameters of the mth CDN node, the mth CDN node is registered to the CDN system in response to the node registration request. In this way, through the above operation, the dynamic registration management of the CDN nodes in the CDN system by the management node is realized, so that the dynamic expansion of the CDN nodes in the CDN system can be realized.
[0103] Based on the foregoing embodiments, in the request-response method for the management node of a CDN system provided in this application embodiment, after registering the m-th CDN node to the CDN network, the following operations can also be performed:
[0104] Step C1: Receive the node status update parameters sent by the m-th CDN node.
[0105] The node status update parameters include at least the update parameters for the data processing resources and / or content type of the m-th CDN node.
[0106] In one implementation, the update parameters of the data processing resources may include the remaining state of the software resources and / or hardware resources of the m-th CDN node at time n; wherein, time n may include the time adjacent to the time when the m-th CDN node sends the node state update parameters, and n is an integer greater than or equal to 1.
[0107] In one implementation, the content type update parameter may include the change in the type parameter of the content that the m-th CDN node can provide at time n.
[0108] In one implementation, the m-th CDN node can detect the change in the status of its data processing resources after detecting an update to its content type, and then generate and send node status update parameters to the management node based on the updated content type and the remaining availability of its data processing resources.
[0109] Step C2: Update the node status of the m-th CDN node in the CDN system based on the node status update parameters.
[0110] In one implementation, updating the node state of the m-th CDN node in the CDN system can be achieved in any of the following ways:
[0111] If the node state update parameter indicates that the remaining available resources of the m-th CDN node are greater than or equal to the resource threshold, then the remaining available resources of the m-th CDN node in the CDN system are updated based on the state update parameter.
[0112] If the node status update parameter indicates that the remaining available resources of the m-th CDN node are less than the resource threshold, the content type of the m-th CDN node can be updated, but the scheduling of the m-th CDN node will be temporarily suspended for a specified period of time. For example, the scheduling of the m-th CDN node may include the operation of obtaining the score of the m-th CDN node.
[0113] In one implementation, any CDN node in the CDN system can send node status update parameters to the management node at a specified time period, so that the management node can dynamically track and manage each CDN node based on the node status update parameters.
[0114] As described above, the request-response method for a management node in a CDN system provided in this application involves the management node receiving node status update parameters from the m-th CDN node, which at least include the data processing resources and / or content type of the m-th CDN node. Based on these node status update parameters, the management node updates the node status of the m-th CDN node in the CDN system. Thus, through the above operations, the management node in the CDN system can achieve dynamic, flexible, and real-time management of the data processing resources and content type dimensions of CDN nodes, thereby providing data basis for determining the target CDN node at any given time.
[0115] This application also provides a request-response method for CDN nodes in a CDN system. Figure 2 A flowchart illustrating a request-response method for CDN nodes in a CDN system, as provided in an embodiment of this application, is shown below. Figure 2 As shown, the process may include the following steps:
[0116] Step 201: Receive the score acquisition request sent by the management node in the CDN system.
[0117] The score acquisition request is generated by the management node after receiving the node confirmation request at time k; the node confirmation request is sent by the domain name resolution device of the CDN system and is associated with the content acquisition request sent by the terminal device; k is an integer greater than or equal to 1.
[0118] In one implementation, the CDN node can be the m-th CDN node in the foregoing embodiments.
[0119] Step 202: In response to the score acquisition request, determine the score of the CDN node at time k.
[0120] The score at time k is at least related to the resource configuration status of the CDN node at time k.
[0121] In one implementation, the score of a CDN node at time k can be the m-th score at time k in the aforementioned embodiment.
[0122] Step 203: Send the score at time k to the management node so that the management node can determine the target CDN node at time k from the CDN system based on the first score at time k to the Mth score at time k.
[0123] The target CDN node at the kth moment is used for responding to a content acquisition request; the mth score at the kth moment corresponds to the mth CDN node in the CDN system; M is the number of CDN nodes in the CDN system; and M is an integer greater than 1.
[0124] It can be seen from the above that the request response method of the CDN node applied to the CDN system provided in the embodiments of the present application, after the CDN node receives the score acquisition request sent by the management node, the CDN node determines the score of the CDN node at the kth moment in response to the score acquisition request, and the score at the kth moment is at least associated with the resource configuration state of the CDN node at the kth moment. In this way, through the above operation, the association and correspondence between the score of the CDN node at the kth moment and the resource configuration state of the CDN node at the kth moment are realized, so that the score at the kth moment can accurately reflect the real-time resource configuration state of the CDN node at the kth moment, thereby improving the accuracy of the score at the kth moment. Moreover, the score acquisition request is generated by the management node after receiving the node determination request at the kth moment, and the node determination request is sent by the domain name resolution device of the CDN system and is associated with the content acquisition request sent by the terminal device. In this way, through the above operation, the association between the score of the CDN node determined at the kth moment and the content acquisition request sent by the terminal device is realized, thereby improving the association degree between the operation of determining the score of the CDN node at the kth moment and the content acquisition request sent by the terminal device, and also improving the controllability of triggering the operation of determining the score of the CDN node at the kth moment. At the same time, by sending the score at the kth moment to the management node, the management node determines the target CDN node at the kth moment based on the first score at the kth moment to the Mth score at the kth moment, so that the target CDN node at the kth moment can be related to the scores of the M CDN nodes in the CDN system at the kth moment, thereby realizing accurate screening of the M CDN nodes, and further improving the stability of the finally determined target CDN node at the kth moment responding to the content acquisition request of the terminal device. On the other hand, since the process of determining the target CDN node at the kth moment is associated with the resource configuration state of the M CDN nodes in the CDN system at the kth moment, the resource configuration state of the target CDN node at the kth moment can dynamically, flexibly and in real time meet the content acquisition demand of the terminal device.
[0125] Based on the foregoing embodiments, in the request response method of the CDN node applied to the CDN system provided in the embodiments of the present application, the resource configuration state at the kth moment includes a load state of the CDN node at the kth moment.
[0126] In an embodiment, the load state at the kth moment can include a state of hardware resources and / or software resources of the CDN node being occupied at the kth moment; for example, the state of the hardware resources being occupied at the kth moment can include CPU utilization, hard disk occupancy, and network port bandwidth occupancy of the CDN node at the kth moment; for example, the state of the software resources being occupied at the kth moment can include at least one of a power consumption mode of an operating system of the CDN node at the kth moment, a running state of an application program, a number of concurrently running application programs, and a scheduling state of processes and / or threads.
[0127] Correspondingly, determining the score of the CDN node at the kth moment can be achieved by the following steps:
[0128] Step D1, obtaining a location parameter of the CDN node.
[0129] In an embodiment, the location parameter can include a set location of the CDN node.
[0130] Step D2, determining the score at the kth moment based on the location parameter and the load state at the kth moment.
[0131] In an embodiment, the score at the kth moment can be determined by the following manner:
[0132] The terminal location data of the terminal device and the target type of the content requested by the terminal device can be contained in the score obtaining request. After receiving the score obtaining request, the CDN node can parse the score obtaining request to obtain the terminal location data, then determine distance data between the CDN node and the terminal device based on the location data and the terminal location data, and comprehensively score based on the distance data and the load state at the kth moment, so as to obtain the score at the kth moment.
[0133] In an embodiment, the management node can filter the CDN nodes based on the target type of the content data requested by the terminal device, to determine the CDN nodes whose content type matches the target type, and then determine the scores of the CDN nodes whose content type matches the target type at the kth moment.
[0134] As can be seen from the above, the request response method of the CDN node applied to the CDN system provided by the embodiments of the present application can determine the score at the kth moment of the CDN node based on the location parameter and the load state at the kth moment after obtaining the location parameter of the CDN node. In this way, through the above process, the association between the score at the kth moment and the load state at the kth moment is improved, while the association between the score at the kth moment and the location parameter of the CDN node is also taken into account, so that the score at the kth moment can comprehensively and accurately reflect the data processing capability of the CDN node from the dimensions of location and real-time load state.
[0135] Based on the foregoing embodiments, the request response method for the CDN node of the CDN system provided by the embodiments of the present application can determine the score at the kth moment based on the location parameter and the load state at the kth moment, which can be achieved by the following steps:
[0136] Step E1, obtaining the historical running parameter of the CDN node.
[0137] In an implementation, the historical running parameter can include the running state of the CDN node in at least one historical period; for example, the running state in the at least one historical period can include at least one of whether the CDN node is stably running, the number of abnormal running, the duration of abnormal running, and the load state fluctuation of the CDN node when processing data of at least one content type in the at least one historical period.
[0138] In an implementation, the CDN node can collect its running parameter in real time during the running process, and integrate the above running parameter according to the time of the CDN node, so as to obtain the historical running parameter.
[0139] Step E2, determining the score at the kth moment based on the historical running parameter, the location parameter and the load state at the kth moment.
[0140] In an implementation, the score at the kth moment can be determined by the following way:
[0141] The historical running parameter is analyzed to determine the health condition of the CDN node and the historical data processing state of the CDN node for at least one content type, and the distance data is determined based on the location parameter, and then the health condition, the historical data processing state and the distance data are calculated according to the score calculation algorithm, so as to obtain the score at the kth moment; for example, the health condition can include the probability or possibility of stable running of the CDN node, and can also include the probability of network attack suffered by the CDN node.
[0142] For example, the score at the kth moment of the mth CDN node can be calculated by formula (1):
[0143]
[0144] wherein, is the kth score of the mth CDN at the kth moment; H k may be the health condition of the mth CDN node, and its value range is [0, 1], and the greater its value represents the higher probability of stable running of the mth CDN node; L kis distance data between the mth CDN node and the terminal device, and its value range is [0, 1], and the greater its value represents the smaller distance between the mth CDN node and the terminal device; B k may represent the remaining available state of the hardware resources and the software resources of the mth CDN node; D k may represent the historical data processing state of the mth CDN node; α, β, γ, δ and ε are coefficients corresponding to each of the above parameters, and the value of the above coefficients can correspond to the importance of the parameter corresponding to the coefficient for the score calculation process.
[0145] Exemplarily, the above calculation process can be implemented by a score evaluation function deployed in each CDN node of the CDN system; exemplarily, the score evaluation functions deployed in each CDN node can be the same or different; exemplarily, the score evaluation function can be the statistical integration strategy in the foregoing embodiments.
[0146] Exemplarily, in the actual calculation process, the current traffic, download rate and network delay of the CDN node can also be taken into account.
[0147] Exemplarily, the calculation process can be the process of the CDN node participating in the bidding process initiated by the management node, and formula (1) can be the auction algorithm of the CDN node, and may be the service score of the mth CDN node at the kth moment.
[0148] As can be seen from the above, the request response method of the CDN node applied to the CDN system provided by the embodiments of the present application, after obtaining the historical running parameters of the CDN node, determines the score at the kth moment based on the historical running parameters, the location parameters and the load state at the kth moment. In this way, through the above process, the score at the kth moment is not only associated with the load state of the CDN node at the kth moment, but also associated with the historical running state of the CDN node, so that the kth score can take into account the load state of the CDN node at the kth moment and its historical running state, and further make the kth score be able to comprehensively and comprehensively feedback the data processing capability of the CDN node from the time dimension; and since the process of determining the score at the kth moment also includes the factor of the location parameters of the CDN node, the score at the kth moment can take into account the historical running parameters of the CDN node, the real-time load state at the kth moment and the static factor of its location parameters, and further improve the accuracy and comprehensiveness of the score at the kth moment.
[0149] In the related art, by determining the target CDN node based on the weight set in advance for the CDN node, the network environment and the rapid change of user demand cannot be adapted.
[0150] The request-response method provided in this application embodiment allows CDN nodes to fully consider the CDN load status, geographical location, and actual content provision needs of terminal devices during the process of determining the k-th score. This enables the target CDN node at time k, determined by M k-th scores, to adapt to rapid changes in the network environment and user needs. It also enables the global optimal selection of M CDN nodes in the CDN system.
[0151] Based on the foregoing embodiments, in the request-response method for CDN nodes in a CDN system provided in this application embodiment, before receiving the score acquisition request sent by the management node in the CDN system, the following steps may also be performed:
[0152] Step F1: Obtain the node identifier and data processing resource parameters of the CDN node.
[0153] Step F2: Generate a node registration request based on the node identifier and data processing resource parameters.
[0154] Step F3: Send a node registration request to the management node to register the CDN node with the CDN system.
[0155] As described above, the CDN node request-response method for CDN systems provided in this application, after the CDN node obtains its node identifier and data processing resource parameters, generates and sends a node registration request to the management node based on the node identifier and data processing resource parameters to register the CDN node with the CDN system. Thus, through the above operations, the CDN node can proactively send a registration request to the management node, enabling the management node to dynamically manage the CDN nodes in the CDN system in real time, thereby improving the flexibility of CDN node expansion in the CDN system.
[0156] Figure 3 This is a flowchart illustrating the request-response method provided in an embodiment of this application, as shown below. Figure 3 As shown, the process may include the following steps:
[0157] Step 301: The CDN node sends a registration request.
[0158] For example, CDN nodes can register with the CDN system using the methods provided in the foregoing embodiments.
[0159] For example, CDN nodes can also periodically send node status update parameters to the management node of the CDN system to achieve real-time status updates of CDN nodes in the CDN system.
[0160] Step 302: The terminal device sends a content retrieval request.
[0161] Exemplarily, the terminal device can send a Hypertext Transfer Protocol (HTTP) or Hypertext Transfer Protocol Secure (HTTPS) request to the Local DNS device through an application or a browser.
[0162] Step 303, DNS resolution and sending a score acquisition request to the vendor DNS device.
[0163] Exemplarily, after the Local DNS device associated with the terminal device queries the local DNS cache, if the IP address in the content acquisition request cannot be resolved, an address resolution request can be generated and uploaded to the DNS device in the CDN system in stages, and a score acquisition request can also be generated and sent to the vendor DNS device.
[0164] Exemplarily, the vendor DNS device can include the management node in the foregoing embodiments.
[0165] Exemplarily, the vendor DNS device can resolve the IP address in the content acquisition request to obtain the CNAME corresponding to the IP address.
[0166] Step 304, the vendor DNS device starts the auction process.
[0167] Exemplarily, the vendor DNS device can trigger all CDN nodes in the CDN system to participate in the auction, and initialize the auction process at the current time, and can also determine the initial auction conditions according to the content acquisition requirements of the terminal device to trigger the auction process; Exemplarily, the content acquisition requirements can include bandwidth, region, and content type, etc.
[0168] Exemplarily, the vendor DNS device can group content acquisition requests in the same geographical area or content acquisition requests requesting similar content based on content acquisition requirements, and trigger an auction process for content acquisition requests in the same group.
[0169] Exemplarily, the operation of starting the auction process by the vendor device can be the same as the operation of sending the score acquisition request in the foregoing embodiments.
[0170] Step 305, the CDN node calculates a service score based on the evaluation algorithm and sends the service score to the vendor DNS device.
[0171] Exemplarily, the evaluation algorithm can be implemented by the formula (1) in the foregoing embodiments, that is, the evaluation algorithm can be implemented by the score evaluation function in the foregoing embodiments.
[0172] Exemplarily, the service score can include the m-th score at the k-th moment, such as the current moment, calculated by formula (1) in the foregoing embodiments.
[0173] Exemplarily, after determining the distance data between the CDN node and the terminal device, and obtaining the load status, health status and historical running status of the CDN node at the current moment, the CDN node can determine the score of the CDN node at the current moment by comprehensively evaluating the above data by means of the evaluation algorithm set in the CDN node, and send the score at the current moment to the vendor DNS device.
[0174] Step 306, service score sorting, determining the target DNS node at the current moment.
[0175] Exemplarily, after obtaining the scores at the k-th moment sent by all CDN nodes, the vendor DNS device can sort all the scores at the k-th moment to obtain a sorting result, and determine the CDN node corresponding to the highest score in the sorting result as the target CDN node at the current moment.
[0176] Exemplarily, the vendor DNS device can also determine the CDN nodes corresponding to the scores other than the highest score in the sorting result as candidate nodes or bottom nodes, and perform high-availability processing through the candidate nodes or bottom nodes; exemplarily, the high-availability processing can include disaster recovery and CDN node switching processing in emergency.
[0177] Step 307, the target CDN node responds to the content acquisition request.
[0178] Exemplarily, the target CDN node can be the best CDN node in the CDN system at the current moment that can respond to the content acquisition request of the terminal device.
[0179] Exemplarily, the vendor DNS device can return the address of the target CDN node to the Local DNS device associated with the terminal device, and trigger the target CDN node to respond to the content acquisition request to provide content service for the terminal device.
[0180] Through the above process, the vendor DNS device can flexibly and timely trigger the bidding process between CDN nodes based on the score, so as to realize accurate screening of CDN nodes, and also make the running status and resource configuration status of the target CDN node screened match the content acquisition demand corresponding to the content acquisition request of the terminal device, so that the target CDN node can meet diversified content acquisition demands.
[0181] Figure 4 The structure schematic diagram of the request response method provided by the embodiments of the present application is realized. As shown in Figure 4As shown, the content acquisition request sent by the terminal device 401 can be processed by the DNS devices at each level, a node determination request can be generated and sent, and then sent to the management node 402. After receiving the node determination request, the management node 402 can obtain the content type requested by the terminal device 401 and the location parameter of the terminal device therefrom, and trigger the bidding process in the foregoing embodiments or generate a score acquisition request based on the content type and the location parameter, so as to trigger the M CDN nodes in the CDN node cluster 403 to determine the score of each CDN node at the k th moment based on the evaluation algorithm 404 set therein, and send the M scores to the management node 402, so that the management node 402 determines the scheduling result 405 based on the ranking result of the M scores, and then responds to the content acquisition request of the terminal device 401 through the target CDN node corresponding to the scheduling result 405.
[0182] The scheduling result 405 can include the target CDN node at the k th moment corresponding to the highest score in the ranking result.
[0183] Through the above structure, the distributed decision-making autonomous ability of each CDN node is fully utilized, so that each CDN node can determine its score at the k th moment by itself. In addition, the M scores are ranked to obtain a ranking result, and the target CDN node at the k th moment is determined according to the ranking result, so that the M CDN nodes are accurately screened, thereby improving the probability that the target CDN node meets the actual content transmission demand of the terminal device.
[0184] Through the above process and structure, the vendor SDN device can initiate the scheduling bidding of the CDN nodes at any time according to the content acquisition request sent by the terminal device, and all CDN nodes can participate in the scheduling bidding based on their service scores, so that the vendor SDN device can select the target CDN node at the current moment according to the real-time load state of each CDN node and the physical distance between the CDN node and the terminal device, thereby improving the flexibility and stability of the target CDN node responding to the content acquisition request of the terminal device at the current moment.
[0185] In addition, each CDN node can determine the service score based on its current actual load state during the above scheduling bidding process, so that the service score of each CDN node can comprehensively and accurately reflect the availability of its resources such as load and bandwidth, and the efficiency of determining the service score can be improved. In this way, when the state of the CDN node changes, the service score of the CDN node can be independently and rapidly determined and fed back, thereby providing a data basis for determining the target CDN node and supporting the scheduling and load balancing among the CDN nodes in the CDN system.
[0186] Meanwhile, by participating in the above scheduling auction process in a decentralized manner through the CDN nodes, the manufacturer SDN device can realize the adjustment of the scale and traffic of the CDN nodes according to the service scores of the CDN nodes, thereby realizing the flexible regulation of various different service loads; the manufacturer SDN device can also acquire the service scores of the CDN nodes in real time, and realize the dynamic tracking of the CDN nodes according to the service scores, thereby improving the efficiency of load balancing and performance optimization in the CDN system, and also improving the disaster recovery capability of the CDN system, thereby reducing the probability of single-point failure, improving the ability of the CDN system to allocate resources to adapt to changes in the network environment, and improving the flexibility and stability of the CDN system.
[0187] The request response method provided by the embodiments of the present application can be applied to large Internet applications, video on demand, live broadcast and the like, can optimize the resource scheduling of the CDN nodes, and improve the efficiency of content data transmission; and can also be applied to the construction of an intelligent CDN system to improve the intelligent degree of resource scheduling and management of the CDN system.
[0188] During the execution of the request response method provided by the embodiments of the present application, the CDN system has the characteristics of decentralization, and can naturally have high flexibility and expansibility; and by setting the auction conditions, the number of CDN nodes participating in the auction can be flexibly regulated, thereby reducing the probability of overall modification of the CDN system, improving the self-organizing capability of the CDN system and the flexibility of adapting to different network data transmission requirements; meanwhile, by adjusting the values of the coefficients in the evaluation algorithm, the priority response and processing of high-priority content providing tasks or specific service quality can be realized, thereby realizing diversified customized content providing services; on the other hand, the service scores of the CDN nodes can be recorded and tracked, thereby providing data support for problem positioning and optimization of the CDN system.
[0189] Since the request response method provided by the embodiments of the present application fully learns from the advantages of the CDN system, the method can seamlessly connect with the CDN system in the related art, and by configuring the evaluation algorithm in the CDN nodes, the application and implementation of the above request response method can be realized, thereby reducing the difficulty and cost of popularization of the present application.
[0190] Based on the foregoing embodiments, the embodiments of the present application also provide a first request response device of a management node of a CDN system, which can include:
[0191] The first transceiving module is configured to generate and send a score acquisition request to the mth CDN node of the CDN system to trigger the mth CDN node to determine the mth score at the kth moment if a node determination request is received at the kth moment; the node determination request is sent by a domain name resolution device in the CDN system in response to a content acquisition request sent by a terminal device; m is an integer greater than or equal to 1 and less than or equal to M; M is greater than 1 and is the number of CDN nodes in the CDN system; the mth score at the kth moment is at least associated with a resource configuration state of the mth CDN node at the kth moment; k is an integer greater than or equal to 1;
[0192] The first transceiving module is further configured to receive the first score at the kth moment to the Mth score at the kth moment.
[0193] The first processing module is configured to determine a target CDN node at the kth moment from the CDN system based on the first score at the kth moment to the Mth score at the kth moment, so that the target CDN node at the kth moment responds to a content acquisition request.
[0194] In some embodiments, the first processing module is configured to sort the first score at the kth moment to the Mth score at the kth moment to obtain a sorting result, and determine the CDN node corresponding to the maximum score at the kth moment in the sorting result as the target CDN node at the kth moment.
[0195] In some embodiments, the first transceiving module is configured to receive a node registration request sent by the mth CDN node; the node registration request at least includes a node identifier and a data processing resource parameter of the mth CDN node.
[0196] The first processing module is configured to register the mth CDN node to the CDN system in response to the node registration request.
[0197] In some embodiments, the first transceiving module is configured to receive a node state update parameter sent by the mth CDN node; the node state update parameter at least includes an update parameter of a data processing resource and / or a content type of the mth CDN node.
[0198] The first processing module is configured to update the node state of the mth CDN node in the CDN system based on the node state update parameter.
[0199] Based on the foregoing embodiments, the embodiments of the present application further provide a second request response device arranged in a CDN node of a CDN system, the second request response device comprising:
[0200] The second transceiver module is used to receive score acquisition requests sent by the management node in the CDN system. The score acquisition request is generated by the management node after receiving the node confirmation request at time k. The node confirmation request is sent by the domain name resolution device of the CDN system and is associated with the content acquisition request sent by the terminal device. k is an integer greater than or equal to 1.
[0201] The second processing module is used to respond to the score acquisition request and determine the score of the CDN node at time k; wherein the score at time k is at least related to the resource configuration status of the CDN node at time k.
[0202] The second transceiver module is also used to send the score at time k to the management node, so that the management node can determine the target CDN node at time k from the CDN system based on the first score at time k to the Mth score at time k; wherein, the target CDN node at time k is used to respond to the content retrieval request; the mth score at time k corresponds to the mth CDN node in the CDN system; M is the number of CDN nodes in the CDN system; M is an integer greater than 1.
[0203] In some embodiments, the resource configuration status at time k includes the load status of the CDN node at time k;
[0204] The second processing module is used to obtain the location parameters of the CDN node; based on the location parameters and the load status at time k, the score at time k is determined.
[0205] In some embodiments, the second processing module is used to obtain the historical operating parameters of the CDN node; and determine the score at time k based on the historical operating parameters, location parameters, and load status at time k.
[0206] In some embodiments, the second processing module is used to obtain the node identifier and data processing resource parameters of the CDN node; and generate a node registration request based on the node identifier and data processing resource parameters.
[0207] The second transceiver module is used to send node registration requests to the management node in order to register CDN nodes with the CDN system.
[0208] Based on the foregoing embodiments, this application also provides a management node, which is configured in a CDN system. Figure 5 This is a schematic diagram of the structure of the management node provided in an embodiment of this application. Figure 5 As shown, the management node 402 may include a first processor 501 and a first memory 502; wherein, the first memory 502 stores a first computer program, and when the first computer program is executed by the first processor 501, it can implement the request-response method applied to the management node as described above.
[0209] Based on the foregoing embodiments, the embodiments of the present application further provide a CDN node, which is arranged in a CDN system, Figure 6 A structural schematic diagram of the CDN node provided by the embodiments of the present application is shown in FIG. 6. As shown in FIG. 6, the CDN node 6 comprises a second processor 601 and a second memory 602; wherein the second memory 602 stores a second computer program, and the second computer program, when executed by the second processor 601, can implement the request response method applied to the CDN node provided by any one of the foregoing embodiments. Figure 6
[0210] Based on the foregoing embodiments, the embodiments of the present application further provide a computer readable storage medium, which stores a third computer program, and the computer program, when executed by a processor of an electronic device, can implement the request response method provided by any one of the foregoing embodiments.
[0211] Based on the foregoing embodiments, the embodiments of the present application further provide a computer program product, which comprises a fourth computer program; and the fourth computer program, when executed by a processor of an electronic device, can implement the request response method provided by any one of the foregoing embodiments.
[0212] The above description of the various embodiments tends to emphasize the differences between the various embodiments, and the same or similar parts can be mutually referred to, and for the sake of brevity, will not be described herein.
[0213] The methods disclosed in the various method embodiments of the present application can be combined arbitrarily without conflict, to obtain new method embodiments.
[0214] The features disclosed in the various product embodiments of the present application can be combined arbitrarily without conflict, to obtain new product embodiments.
[0215] The features disclosed in the various method or device embodiments of the present application can be combined arbitrarily without conflict, to obtain new method or device embodiments.
[0216] It should be noted that the computer readable storage medium above can be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Ferromagnetic Random Access Memory (FRAM), a Flash Memory, a magnetic surface memory, an optical disc, or a Compact Disc Read-Only Memory (CD-ROM) memory, etc. It can also be various electronic devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0217] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0218] The above sequence numbers of the embodiments of the present application are only for description, not representing the advantages and disadvantages of the embodiments.
[0219] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by software plus necessary general hardware nodes, of course, it can also be realized by hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product in essence or in the form of a contribution to the prior art. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disc, optical disc), and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in various embodiments of the present application.
[0220] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.
[0221] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.
[0222] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.
[0223] The above merely provides the preferred embodiment of the present application, and is not intended to limit the patent scope of the present application, and any equivalent structure or equivalent flow transformation made by using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A request response method characterized by, The method is applied to a management node of a content distribution network system; the method comprises: if a node determination request is received at the kth moment, generating and sending a score acquisition request to an mth content distribution network node of the content distribution network system to trigger the mth content distribution network node to determine an mth score at the kth moment; wherein the node determination request is sent by a domain name resolution device in the content distribution network system in response to a content acquisition request sent by a terminal device; m is an integer greater than or equal to 1 and less than or equal to M; M is greater than 1 and is the number of content distribution network nodes in the content distribution network system; the mth score at the kth moment is at least associated with a resource configuration state of the mth content distribution network node at the kth moment; k is an integer greater than or equal to 1; receiving and determining a target content distribution network node at the kth moment from the content distribution network system based on the first score at the kth moment to the Mth score at the kth moment, so that the target content distribution network node at the kth moment responds to the content acquisition request; the mth score at the kth moment is in the form of a score interval; the mth score at the kth moment comprises first data and second data; wherein the first data comprises a lower limit value of the score interval, and the second data comprises an upper limit value of the score interval; after receiving the score determination request, the mth content distribution network node evaluates the upper limit value and the lower limit value of the resource configuration state based on the current running state and / or power consumption state, and determines the score interval according to the upper limit value and the lower limit value of the resource configuration state; the content distribution network node with the smallest dynamic change interval of the remaining data processing resources in the M score intervals that can be configured at the kth moment is determined as the target content distribution network node at the kth moment.
2. The method of claim 1, wherein, Before the method generates and sends the score acquisition request to the mth content distribution network node of the content distribution network system, the method further comprises: receiving a node registration request sent by the mth content distribution network node; wherein the node registration request at least contains the node identifier and the data processing resource parameter of the mth content distribution network node; in response to the node registration request, registering the mth content distribution network node to the content distribution network system.
3. The method of claim 2, wherein, After the method registers the mth content distribution network node to the content distribution network system, the method further comprises: receiving a node state update parameter sent by the mth content distribution network node; wherein the node state update parameter at least comprises the update parameter of the data processing resource and / or the content type of the mth content distribution network node; based on the node state update parameter, updating the node state of the mth content distribution network node in the content distribution network system.
4. A request response method characterized by, The method is applied to a content distribution network node in a content distribution network system; the method comprises: receiving a score obtaining request sent by a management node in the content distribution network system; wherein the score obtaining request is generated by the management node after receiving a node determination request at the kth moment; the node determination request is sent by a domain name resolution device of the content distribution network system and is associated with a content obtaining request sent by a terminal device; k is an integer greater than or equal to 1; in response to the score obtaining request, determining a score of the content distribution network node at the kth moment; wherein the score at the kth moment is at least associated with a resource configuration state of the content distribution network node at the kth moment; sending the score at the kth moment to the management node, so that the management node determines a target content distribution network node at the kth moment from the content distribution network system based on the first score at the kth moment to the Mth score at the kth moment; wherein the target content distribution network node at the kth moment is used to respond to the content obtaining request; the Mth score at the kth moment corresponds to the Mth content distribution network node in the content distribution network system; M is the number of content distribution network nodes in the content distribution network system; M is an integer greater than 1; the Mth score at the kth moment is represented in the form of a score interval; the Mth score at the kth moment includes first data and second data; wherein the first data includes the lower limit value of the score interval, and the second data includes the upper limit value of the score interval; after receiving the score determination request, the Mth content distribution network node determines the upper limit value and the lower limit value of the resource configuration state based on the current running state and / or power consumption state, and determines the score interval according to the upper limit value and the lower limit value of the resource configuration state; the content distribution network node with the smallest dynamic change interval of the remaining data processing resources in the M score intervals at the kth moment is determined as the target content distribution network node at the kth moment.
5. The method of claim 4, wherein, the resource configuration state at the kth moment includes the load state of the content distribution network node at the kth moment; the determination of the score of the content distribution network node at the kth moment includes: obtaining the location parameter of the content distribution network node; determining the score at the kth moment based on the location parameter and the load state at the kth moment.
6. The method of claim 5, wherein, obtaining the location parameter of the content distribution network node; determining the score at the kth moment based on the location parameter and the load state at the kth moment. the method further comprises, before receiving the score obtaining request sent by the management node in the content distribution network system:
7. The method of claim 4, wherein, obtaining the node identifier and the data processing resource parameter of the content distribution network node; generating a node registration request based on the node identifier and the data processing resource parameter; sending the node registration request to the management node to register the content distribution network node to the content distribution network system. 8. A management node, characterized by The management node is arranged in a content distribution network node system; the management node comprises a first processor and a first memory; wherein the first memory stores a first computer program; the first computer program, when executed by the first processor, can implement the request response method according to any one of claims 1 to 3.
9. A content distribution network node, characterized by, The content distribution network node is arranged in a content distribution network node system; the content distribution network node comprises a second processor and a second memory; wherein the second memory stores a second computer program; the second computer program, when executed by the second processor, can implement the request response method according to any one of claims 4 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a third computer program; the third computer program, when executed by the processor of the electronic device, can implement the request response method according to any one of claims 1 to 3 or 4 to 7.
11. A computer program product, characterised in that, The program product comprises a fourth computer program; the fourth computer program, when executed by the processor of the electronic device, can implement the request response method according to any one of claims 1 to 3 or 4 to 7.
Citation Information
Patent Citations
CDN node distribution method and device, electronic equipment, medium and program product
CN114268672A
Node access method and device and storage medium
CN117580128A