Source station detection method and device, electronic equipment and readable storage medium

By using edge node reporting and parent server information retrieval, the problem of relay nodes being unable to obtain all origin servers is solved, thus achieving dynamic acceleration of the CDN network.

CN121864589APending Publication Date: 2026-04-14CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-05
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In a Content Delivery Network (CDN), relay nodes cannot obtain the origin servers of all edge nodes covered by the customer's accelerated domain name, resulting in poor dynamic acceleration performance and some origin servers may be missed.

Method used

Edge nodes report the parsed source information to the uplink relay nodes, which then add it to their memory regions. The parent server retrieves the source information from the memory regions of the relay nodes and triggers a probe task to ensure that all relay nodes obtain the source information parsed by region.

Benefits of technology

In this way, relay nodes can obtain the origin server information of all edge nodes by region, avoiding the omission of some origin servers and ensuring the dynamic acceleration effect of the CDN network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121864589A_ABST
    Figure CN121864589A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a source station detection method and device, electronic equipment and a readable storage medium. The method is applied to a CDN (Content Delivery Network) system, and comprises the following steps: after an edge server corresponding to any edge node analyzes source station information of a back-to-source domain name in a region to which the edge server belongs, reporting the source station information to an uplink transfer node corresponding to the edge node in the region; under the condition that any transfer node receives source station information, the source station information is added to a memory area corresponding to the transfer node; and any parent server obtains the source station information analyzed by each edge server from the memory area of each corresponding transfer node, and adds the source station information to a detection task so as to detect a source station represented by the source station information based on the detection task. And the dynamic acceleration effect of the CDN network is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a source station detection method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the development of computer technology, the application of Content Delivery Network (CDN) is becoming more and more widespread. CDN can improve access speed and reduce the pressure on the origin server by using different nodes.

[0003] However, some users currently use integrated CDNs, where the Content Delivery Network (IP) address of the origin server obtained after the node resolves the origin domain name is from an edge node of another CDN. This results in inconsistencies between the origin server IP addresses resolved by edge nodes and relay nodes in some regions. Relay nodes often only obtain the origin server resolved in their own region, and a relay node is often covered by edge nodes in many different regions. This means that relay nodes cannot obtain the origin server resolved by all edge nodes in the region covered by the customer's accelerated domain name, and some origin servers may be missed, resulting in poor dynamic acceleration performance. Summary of the Invention

[0004] The purpose of this invention is to provide a source station detection method, apparatus, electronic device, and readable storage medium to improve dynamic acceleration performance. The specific technical solution is as follows: In a first aspect of the present invention, an origin server detection method is provided, the method being applied to a CDN system, the CDN system including at least service nodes and a management server, the service nodes including edge nodes and relay nodes, the management server including edge servers and a parent server; the method includes: After the edge server corresponding to any of the edge nodes resolves the origin server information of the back-to-origin domain name within its region, it reports the origin server information to the uplink relay node corresponding to the edge node within the region. Upon receiving source station information, any of the aforementioned relay nodes adds the source station information to the memory area corresponding to the relay node. Each parent server obtains the source station information parsed by each edge server from the memory area of ​​its corresponding relay node, and adds the source station information to the probe task to probe the source station represented by the source station information based on the probe task.

[0005] Optionally, the CDN system further includes a decision center, and the method further includes: After executing the detection task and obtaining the detection results, any of the parent servers shall transmit the detection results to the decision center; Based on the detection results received from each of the parent servers, the decision center determines the transmission path from each edge node to the target origin station via a relay node. The target origin station is the origin station represented by the origin station information resolved by each edge node through the origin domain name.

[0006] Optionally, after reporting the source station information to the uplink relay node corresponding to the edge node in the region, the method further includes: The edge server probes the source station represented by the source station information and the uplink relay node, obtains the probe results, and transmits the probe results to the decision center.

[0007] Optionally, adding the origin station information to the memory area corresponding to the relay node includes: Obtain the union of the source station information and the stored source station information in the memory area corresponding to the relay node, and use it as the information to be stored; The information to be stored is rewritten to the memory area.

[0008] Optionally, the method further includes: The edge server corresponding to any of the edge nodes resolves the pre-set parent scheme domain name to obtain the relay node of the region to which the edge node belongs, and uses it as the uplink relay node.

[0009] Optionally, the CDN system includes at least two tiers of service nodes; the method further includes: After any of the parent servers obtains the source information parsed by each edge server from the memory area of ​​the corresponding relay node, it reports the source information to the upper-level relay node at the level of the parent server.

[0010] In a second aspect of the invention, an origin server detection device is also provided. The device is applied to a CDN system, the CDN system including at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. The device includes: The reporting module is used to report the origin information of the back-to-origin domain name to the uplink relay node corresponding to the edge node in the region after the edge server corresponding to any of the edge nodes resolves the origin information in its region. An add module is provided, which is used to add the source station information to the memory area corresponding to the relay node when any of the relay nodes receives the source station information; The detection module is used for any of the parent servers to obtain the source station information parsed by each edge server from the memory area of ​​each corresponding relay node, and to add the source station information to the detection task, so as to detect the source station represented by the source station information based on the detection task.

[0011] Optionally, the CDN system further includes a decision center, and the device further includes: A transmission module is used to transmit the detection results to the decision center after any of the parent servers obtains the detection results by performing the detection task; The path determination module is used by the decision center to determine the transmission path from each edge node to the target source station via a relay node, based on the detection results received from each of the parent servers. The target source station is the source station represented by the source station information resolved by each edge node through the origin domain name.

[0012] Optionally, the device further includes: The node detection module is used to detect the source station represented by the source station information and the uplink relay node corresponding to the edge node in the region after the reporting module reports the source station information to the uplink relay node in the region, obtain the detection results, and transmit the detection results to the decision center.

[0013] Optionally, the added module includes: The union acquisition submodule is used to acquire the union of the source station information and the stored source station information in the memory area corresponding to the relay node, as the information to be stored. The write submodule is used to rewrite the information to be stored into the memory area.

[0014] Optionally, the device further includes: The resolution module is used by the edge server corresponding to any of the edge nodes to resolve the pre-set parent scheme domain name, obtain the relay node of the region to which the edge node belongs, and use it as the uplink relay node.

[0015] Optionally, the CDN system includes at least two tiers of service nodes; the device further includes: The information reporting module is used to report the source information parsed by each edge server to the upper-level relay node at the level of the parent server after any parent server obtains the source information from the memory area of ​​each corresponding relay node.

[0016] In a third aspect of the present invention, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the method described in the first aspect above.

[0017] In a fourth aspect of the invention, a computer-readable storage medium is also provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the method described in the first aspect.

[0018] In a fifth aspect of the invention, a computer program product comprising instructions is also provided, which, when run on a computer, causes the computer to perform the method described in the first aspect above.

[0019] The origin server detection method provided in this invention is applied to a CDN system. The CDN system includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. After resolving the origin server information of the back-to-origin domain name within its region, any edge server corresponding to an edge node reports the origin server information to the uplink relay node corresponding to the edge node within the region. Upon receiving the origin server information, any relay node adds the origin server information to its corresponding memory area. Any parent server obtains the origin server information resolved by each edge server from the memory areas of its corresponding relay nodes and adds the origin server information to the detection task, so as to detect the origin server represented by the origin server information based on the detection task. In this embodiment of the invention, the relay node adds all received origin server information to its memory region, and the parent server retrieves the stored origin server information from the memory region. Even if the origin servers resolved by different regions are inconsistent, the parent server can still ultimately obtain the origin server of the edge server, simultaneously triggering origin server detection for both edge and relay nodes. In this way, all relay nodes can obtain the origin servers resolved by different regions for all edge nodes covered by the customer's accelerated domain name, preventing some origin servers from being missed by the parent server. Furthermore, if a relay node is simultaneously covered by edge nodes in different regions, through the method of this embodiment, the shared relay node can ultimately obtain the origin server information resolved by different regions for all edge nodes in different regions. Finally, its parent server triggers origin server detection for different regions for all edge nodes in different regions, ensuring the dynamic acceleration effect of the CDN network. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0021] Figure 1This is a flowchart illustrating the steps of a source station detection method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the operation of a CDN system according to an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the operation of another CDN system in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a source station detection device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

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

[0023] Figure 1 This is a flowchart illustrating the steps of an origin server detection method according to an embodiment of the present invention. This method can be applied to a CDN system, which includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. Figure 1 As shown, the method may include: Step 101: After resolving the origin server information of the back-to-origin domain name within its own region, the edge server corresponding to any of the edge nodes reports the origin server information to the uplink relay node corresponding to the edge node within the region.

[0024] Step 102: When any of the relay nodes receives the source station information, it adds the source station information to the memory area corresponding to the relay node.

[0025] Step 103: Any of the parent servers obtains the source station information parsed by each edge server from the memory area of ​​each corresponding relay node, and adds the source station information to the probe task, so as to probe the source station represented by the source station information based on the probe task.

[0026] Regarding steps 101-103 above, the CDN system in this embodiment of the invention can be any CDN network system, including converged CDNs and single CDNs; this embodiment of the invention does not impose any limitations on this. The service node refers to a CDN server cluster in the CDN network, composed of multiple cache servers arranged in a hierarchical manner, which can be used for content caching and distribution. The management server refers to a server deployed in the same data center as the cache hosts, used for cache host health checks and dynamic probing. The edge node refers to the service node in the CDN network closest to the user's access, i.e., the service node that initially receives the user's request; correspondingly, the relay node refers to any service node in the CDN network other than the edge node. The edge server refers to the management server covering the edge node; correspondingly, the parent server refers to the management server covering the relay node.

[0027] The aforementioned "region" refers to the area where the edge server is located. A region can contain one edge server, or multiple edge servers; this embodiment of the invention does not impose such limitations. The aforementioned region can be a geographical location region or a carrier region.

[0028] The aforementioned origin domain refers to the address of the origin server (origin server), which is often configured by the operator of the origin server. The origin server refers to the server where the operator actually runs the website application and stores data. Specifically, the operator can use a CDN network to accelerate user access to the origin server. In this case, the operator can configure accelerated domains and origin domains in the CDN network. When a user accesses the accelerated domain, the CDN network can accelerate the access, and the service nodes in the CDN network can access the origin server corresponding to the origin domain.

[0029] Accordingly, the aforementioned origin domain name can be determined based on the received channel configuration information. Specifically, operators can send configuration information to the CDN network through a configuration platform. This configuration information may include the accelerated domain name, the origin domain name, and the origin server's Internet Protocol Address (IP). The accelerated domain name refers to the domain name provided by the operator to users for actual access. The origin server refers to the server where the operator actually runs the website application and stores data; it can be a single server or a server cluster, and often, for security reasons, only CDN nodes are allowed to access it. The origin domain name refers to a dedicated domain name provided by the operator to the CDN network, used only for communication between the CDN network and the origin server. The origin server's IP can be obtained by resolving the origin domain name using the Domain Name System (DNS).

[0030] The origin server information mentioned above can be the origin server IP address. Of course, origin server information can also include a list of origin server IP addresses, origin domain name, primary and backup origin server information, origin port, origin protocol, origin server authority, origin server hierarchy, etc.

[0031] Furthermore, to further improve access efficiency, CDN networks often employ regional DNS resolution. Specifically, different origin server addresses can be assigned to different regions. In this case, the origin server information resolved by nodes in different regions can be different.

[0032] Furthermore, the edge server corresponding to any edge node can perform DNS resolution on the configuration information issued by the configuration platform to obtain the origin server information of the region where the edge node is located. Here, the aforementioned uplink relay node refers to a relay node within the region where the edge node is located. Specifically, the aforementioned uplink relay node can be obtained through the resolution of the parent scheme domain name of this region. Here, the aforementioned parent scheme domain name refers to the domain name of a predefined region composed of different service nodes.

[0033] Specifically, after the edge server obtains the source server information within its region through DNS resolution, it can upload this source server information to the uplink relay node corresponding to that edge node within that region. Specifically, within a region, one edge node can correspond to multiple uplink relay nodes. Step 101 above can involve reporting the source server information to the uplink relay node through a pre-defined Application Programming Interface (API).

[0034] The aforementioned memory region can be a shared memory region of the relay nodes, used to store the source station information received by the relay node. The source station information received by the relay node can be sent by upper-layer edge nodes or by the next higher-level relay node; this embodiment of the invention does not impose any limitations on this. Furthermore, upon receiving source station information, any relay node can add the source station information to its corresponding memory region. Specifically, this memory region can store multiple source station information entries, including source station information parsed from different edge nodes.

[0035] Optionally, the operation of adding the source station information to the memory area corresponding to the relay node described above may specifically include, in this embodiment of the invention: S21. Obtain the union of the source station information and the stored source station information in the memory area corresponding to the relay node, and use it as the information to be stored.

[0036] S22. Rewrite the information to be stored into the memory area.

[0037] Specifically, because edge servers at different edge nodes may resolve to the same origin server, the origin server information received by a relay node may be duplicated. In this case, if all the received origin server information is directly added to the memory area corresponding to the relay node, it will cause the memory area to store duplicate origin server information, resulting in unnecessary memory usage.

[0038] In this case, embodiments of the present invention can obtain the union of the received source station information and the source station information already stored in the memory area, and rewrite the union into the memory area to overwrite the previously stored information.

[0039] This allows the relay node's memory area to access the origin servers of all edge nodes covered by the customer's accelerated domain name while avoiding unnecessary memory usage.

[0040] Furthermore, any parent server can retrieve the origin server information parsed by edge servers in different edge regions from the memory region of the relay nodes it covers, and add this origin server information to the probe task to trigger origin server probe. Specifically, the parent management server can send a query request to the relay nodes it covers, and when the relay nodes receive the query request, they respond with the origin server information stored in their memory region to the parent server.

[0041] Specifically, the parent manager can first determine whether the current probe task contains source station information obtained from the relay node. If it already exists, it doesn't need to be added again; otherwise, it can add the source station information to the probe task to trigger the probe. Specifically, the parent server can periodically obtain source station information transmitted from edge servers in different regions from the relay nodes it covers according to a preset period. The preset period can be set according to the operator's needs, for example, it could be 2 minutes, 5 minutes, 3 minutes, etc., and this embodiment of the invention does not impose any limitations on this.

[0042] Specifically, the parent server's probing of each source station can be used to detect the source station's health status, communication performance, and communication performance to the source station through each relay node.

[0043] Furthermore, after obtaining the detection results, the detection results can be reported to the routing decision center, which will then select an optimal back-to-source link for the edge node.

[0044] It's important to note that in CDN dynamic acceleration, all user dynamic requests ultimately pass through the CDN network to the origin server. Current technology, to achieve fast and reliable origin server access for dynamic requests, uses DNS (Domain Name System) resolution on edge nodes and relay nodes based on the origin server domain name configured for the customer's accelerated domain name and the parent solution domain name. This process identifies the origin server and relay nodes to be probed, triggers periodic probes of these nodes, and reports the probe results to the routing decision center, which then selects the optimal origin server link. Currently, some customers use converged CDN access, where the origin server domain name is configured with regional DNS resolution. The resolved origin server IPs are edge nodes from other CDN providers. This leads to inconsistencies in the origin server IPs resolved by the origin server domain name on edge nodes in different regions. However, relay nodes often only obtain the origin server resolved within their own region. Since a single relay node is often covered by edge nodes from many different regions, it cannot obtain the origin server resolved by all edge nodes covered by the customer's accelerated domain name. This results in origin servers being missed during the probe process, leading to poor dynamic acceleration performance of the CDN network.

[0045] In summary, the origin server detection method provided in this embodiment of the invention is applied to a CDN system. The CDN system includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. After resolving the origin server information of the back-to-origin domain name within its region, any edge server corresponding to any edge node reports the origin server information to the uplink relay node corresponding to the edge node within the region. Upon receiving the origin server information, any relay node adds the origin server information to its corresponding memory area. Any parent server obtains the origin server information resolved by each edge server from the memory areas of its corresponding relay nodes and adds the origin server information to the detection task, so as to detect the origin server represented by the origin server information based on the detection task. In this embodiment of the invention, the relay node adds all received origin server information to its memory region, and the parent server retrieves the stored origin server information from the memory region. Even if the origin servers resolved by different regions are inconsistent, the parent server can still ultimately obtain the origin server of the edge server, simultaneously triggering origin server detection for both edge and relay nodes. In this way, all relay nodes can obtain the origin servers resolved by different regions for all edge nodes covered by the customer's accelerated domain name, preventing some origin servers from being missed by the parent server. Furthermore, if a relay node is simultaneously covered by edge nodes in different regions, through the method of this embodiment, the shared relay node can ultimately obtain the origin server information resolved by different regions for all edge nodes in different regions. Finally, its parent server triggers origin server detection for different regions for all edge nodes in different regions, ensuring the dynamic acceleration effect of the CDN network.

[0046] Optionally, the CDN system described above also includes a decision center, and the embodiments of the present invention may further include: S21. After executing the detection task and obtaining the detection result, any of the parent servers transmits the detection result to the decision center.

[0047] S22. Based on the detection results received from each of the parent servers, the decision center determines the transmission path from each edge node to the target source station via a relay node. The target source station is the source station represented by the source station information resolved by each edge node through the origin domain name.

[0048] The aforementioned decision center can be a routing decision center, which is used to make routing decisions based on the probe data of the source station and relay nodes reported by the management server, and select an optimal back-to-source link.

[0049] It should be noted that in the relevant technologies, because the origin stations detected by the edge nodes and relay nodes are different, after the data is reported to the routing decision center, when the routing decision center tries to splice the link back to the origin through the relay node based on the origin station detection data reported by the edge node (i.e., edge -> relay node -> edge node back to the origin station of the domain name resolved by region), it is ultimately impossible to splice the link back to the origin through the relay node. As a result, the routing decision center can only decide on the link that goes directly back to the origin from the edge, which affects the dynamic acceleration effect.

[0050] In this embodiment of the invention, after the parent server receives the probe results, it transmits them to the decision center. These probe results include origin server probes for edge nodes and relay nodes in different regions. Based on the received probe results, the decision center can determine the transmission path from each edge node to the target origin server via the relay node (i.e., edge -> relay node -> edge node returning to the origin server for regional domain name resolution). Thus, the decision center can ultimately construct the link back to the origin server via the relay node based on the origin server probe data reported by the edge nodes (i.e., edge -> relay node 1 -> relay node 2 -> ... -> relay node n -> edge node returning to the origin server for domain name resolution), thus avoiding direct edge-to-origin connections and ensuring the dynamic acceleration effect of the CDN network. It also allows edge nodes in different regions to return to their respective origin servers through this shared relay node.

[0051] Optionally, after the above-described operation of reporting the source station information to the uplink relay node corresponding to the edge node in the region, the embodiments of the present invention may further include: S31. The edge server probes the source station represented by the source station information and the uplink relay node, obtains the probe results, and transmits the probe results to the decision center.

[0052] Specifically, the edge server can probe the source station and its upstream relay nodes, and merge the probe results to transmit to the decision center.

[0053] In this way, the decision center can eventually piece together the link back to the corresponding regional origin station through the transit node based on the origin station detection data reported by the edge nodes of each region. This will eliminate the problem of inconsistent origin stations being resolved due to different regions of the edge and transit nodes, which would cause the link back to the transit node to be unable to be pieced together and thus directly return to the origin. This achieves dynamic acceleration in the scenario of regional resolution of the origin domain name.

[0054] Optionally, embodiments of the present invention may further include: S41. The edge server corresponding to any of the edge nodes resolves the pre-set parent scheme domain name to obtain the relay node of the region to which the edge node belongs, and uses it as the uplink relay node.

[0055] Here, the parent domain name refers to the domain name of a predefined region consisting of different service nodes. Specifically, the relay node of the region where the edge node is located can be obtained by resolving the parent domain name of the region, and then the obtained relay node can be identified as the upstream relay node (upstream relay node) corresponding to the edge node.

[0056] Optionally, the CDN system includes at least two levels of service nodes, and in specific embodiments of the present invention, it may further include: After any of the parent servers obtains the source information parsed by each edge server from the memory area of ​​the corresponding relay node, it reports the source information to the upper-level relay node at the level of the parent server.

[0057] Specifically, for a multi-layered parent CDN architecture (such as a two-layer parent), after the edge management server notifies the first-layer relay node of the origin server information resolved by the edge region, the first-layer parent management server obtains the origin server information resolved by the edge region from the parent cache host group it covers (the memory area of ​​the first-layer relay node), and then notifies the second-layer relay node. Finally, the second-layer parent management server obtains the origin server information resolved by the edge region from the parent cache host group it covers (the memory area of ​​the second-layer relay node). At the same time, the parent servers at each layer repeat the aforementioned step 103.

[0058] Figure 2 This is a schematic diagram of the operation of a CDN system according to an embodiment of the present invention. Figure 3 This is a schematic diagram of the operation of another CDN system in an embodiment of the present invention, such as... Figure 2 , 3As shown, regions 1 to n correspond to different CDN regions, and each region has edge nodes, relay nodes, edge management servers (edge ​​servers), and parent management servers (parent servers).

[0059] Specifically, after receiving the accelerated domain name configuration from the configuration platform, the edge management server performs channel-specific configuration resolution. Each region's edge management server performs DNS resolution on the configured origin domain name, obtains the origin server IP address of the region where the edge node is located, and then notifies its upstream relay node (upstream relay node) via API interface; that is, the relay node obtained from the parent scheme domain name resolution. One edge node can correspond to multiple upstream relay nodes, and one region can correspond to multiple parent scheme domain names. Simultaneously, it triggers origin server probing, and the edge management server merges and reports the probing results of the origin server and its upstream relay nodes to the path decision center.

[0060] After receiving the source station information from its upper-level node (edge ​​node or the next-level relay node), the relay node takes the union of this information with the source stations (from other edge nodes) currently stored in the shared memory, and then rewrites it into the shared memory. At this point, the shared memory simultaneously contains source stations resolved by edge management servers in n regions. When its parent management server receives a periodic query request, the relay node responds with the source station information stored in the shared memory.

[0061] Each parent management server periodically obtains the source station information transmitted by the edge management servers in different regions from the relay nodes it covers, and then determines whether there is an edge-carried source station probe in the current probe task. If it already exists, it will not be added to the probe task again; if it does not exist, it will be added to the probe task to trigger the probe.

[0062] After each parent management server completes the source site detection of the back-to-origin domain name resolved in its own region and the source site detection transmitted by the edge management servers of different regions, it merges the detection results (detection A, B, C, D, and) of the source site and its upstream relay node and reports them to the path decision center.

[0063] Accordingly, after receiving the probe data, the path decision center updates the Redis storage (which stores the probe data of each node, A to B, B to C, etc.), and recursively queries the Redis storage for the source site probe data of the edge nodes in this region reported by all relay nodes based on the source site probe data reported by the edge nodes. It then splices together the source site link through the relay nodes back to the edge of this region (i.e., edge -> relay node 1 -> relay node 2 -> ... -> relay node n -> edge node back to the source site of the origin domain name resolution), and makes routing decisions from this to find the optimal path back to the edge node of this region to resolve the source site.

[0064] In summary, this embodiment of the invention notifies upstream relay nodes of the origin server information of the back-to-origin domain name resolved by edge management servers in different regions. The upstream relay nodes then combine the origin server information carried by each edge management server in different regions and store it in shared memory. This data is then sent out when the parent management server periodically queries the origin server information. In this way, all relay nodes can obtain the origin servers resolved by edge nodes in all regions covered by the customer's accelerated domain name. After obtaining the origin servers resolved by all edge nodes in different regions, the relay nodes also resolve the origin servers of the back-to-origin domain name in their own region, combine all the obtained origin servers, trigger the detection of the combined origin servers, and report this to the routing decision center. The routing decision center can then construct the link back to the corresponding regional origin server through the relay nodes based on the origin server detection data reported by each edge node. This eliminates the problem of inconsistent origin servers resolved due to different regions of the edge and relay nodes, which could cause the link back to the relay node to be incomplete and directly return to the origin. This achieves dynamic acceleration in the scenario of regional resolution of the back-to-origin domain name.

[0065] Figure 4 This is a schematic diagram of an origin server detection device according to an embodiment of the present invention. The device is applied to a CDN system, which includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. Figure 4 As shown, the device 20 may include: The reporting module 201 is used to report the source information of the origin server of the back-to-origin domain name to the uplink relay node corresponding to the edge node in the region after the edge server corresponding to any edge node resolves the source server information in its region. Add module 202, which is used to write the source station information to the memory area corresponding to the relay node when any of the relay nodes receives the source station information; The detection module 203 is used for any of the parent servers to obtain the source station information parsed by each edge server from the memory area of ​​each corresponding relay node, and to add the source station information to the detection task, so as to detect the source station represented by the source station information based on the detection task.

[0066] Optionally, the CDN system further includes a decision center, and the device further includes: A transmission module is used to transmit the detection results to the decision center after any of the parent servers obtains the detection results by performing the detection task; The path determination module is used by the decision center to determine the transmission path from each edge node to the target source station via a relay node, based on the detection results received from each of the parent servers. The target source station is the source station represented by the source station information resolved by each edge node through the origin domain name.

[0067] Optionally, the device further includes: The node detection module is used to detect the source station represented by the source station information and the uplink relay node corresponding to the edge node in the region after the reporting module reports the source station information to the uplink relay node in the region, obtain the detection results, and transmit the detection results to the decision center.

[0068] Optionally, the added module includes: The union acquisition submodule is used to acquire the union of the source station information and the stored source station information in the memory area corresponding to the relay node, as the information to be stored. The write submodule is used to rewrite the information to be stored into the memory area.

[0069] Optionally, the device further includes: The resolution module is used by the edge server corresponding to any of the edge nodes to resolve the pre-set parent scheme domain name, obtain the relay node of the region to which the edge node belongs, and use it as the uplink relay node.

[0070] Optionally, the CDN system includes at least two tiers of service nodes; the device further includes: The information reporting module is used to report the source information parsed by each edge server to the upper-level relay node at the level of the parent server after any parent server obtains the source information from the memory area of ​​each corresponding relay node.

[0071] In summary, the origin server detection device provided in this embodiment of the invention is applied to a CDN system. The CDN system includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. After resolving the origin server information of the back-to-origin domain name within its region, any edge server corresponding to any edge node reports the origin server information to the uplink relay node corresponding to the edge node within the region. Upon receiving the origin server information, any relay node adds the origin server information to its corresponding memory area. Any parent server obtains the origin server information resolved by each edge server from the memory areas of its corresponding relay nodes and adds the origin server information to the detection task, so as to detect the origin server represented by the origin server information based on the detection task. In this embodiment of the invention, the relay node adds all received origin server information to its memory region, and the parent server retrieves the stored origin server information from the memory region. Even if the origin servers resolved by different regions are inconsistent, the parent server can still ultimately obtain the origin server of the edge server, simultaneously triggering origin server detection for both edge and relay nodes. In this way, all relay nodes can obtain the origin servers resolved by different regions for all edge nodes covered by the customer's accelerated domain name, preventing some origin servers from being missed by the parent server. Furthermore, if a relay node is simultaneously covered by edge nodes in different regions, through the method of this embodiment, the shared relay node can ultimately obtain the origin server information resolved by different regions for all edge nodes in different regions. Finally, its parent server triggers origin server detection for different regions for all edge nodes in different regions, ensuring the dynamic acceleration effect of the CDN network.

[0072] This invention also provides an electronic device, such as... Figure 5 As shown, it includes a processor 9001, a communication interface 9002, a memory 9003, and a communication bus 9004. The processor 9001, communication interface 9002, and memory 9003 communicate with each other via the communication bus 9004. The 9003 memory is used to store computer programs; The processor 9001, when executing the program stored in the memory 9003, implements the source station detection method provided in the above embodiments.

[0073] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0074] The communication interface is used for communication between the aforementioned terminal and other devices.

[0075] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0076] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0077] In another embodiment of the present invention, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform any of the source site detection methods described in the above embodiments.

[0078] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the source site detection methods described in the above embodiments.

[0079] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

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

[0081] It should be noted that the various data-related processes in the embodiments of this application are carried out in compliance with the relevant data protection laws and policies of the country where the location is located, and with the authorization granted by the owner of the corresponding device.

[0082] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0083] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A source station detection method, characterized in that, The method is applied to a CDN system, which includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. The method includes: After the edge server corresponding to any of the edge nodes resolves the origin server information of the back-to-origin domain name within its region, it reports the origin server information to the uplink relay node corresponding to the edge node within the region. Upon receiving source station information, any of the aforementioned relay nodes adds the source station information to the memory area corresponding to the relay node. Each parent server obtains the source station information parsed by each edge server from the memory area of ​​its corresponding relay node, and adds the source station information to the probe task to probe the source station represented by the source station information based on the probe task.

2. The method according to claim 1, characterized in that, The CDN system also includes a decision center, and the method further includes: After executing the detection task and obtaining the detection results, any of the parent servers shall transmit the detection results to the decision center; Based on the detection results received from each of the parent servers, the decision center determines the transmission path from each edge node to the target origin station via a relay node. The target origin station is the origin station represented by the origin station information resolved by each edge node through the origin domain name.

3. The method according to claim 2, characterized in that, After reporting the source station information to the uplink relay node corresponding to the edge node in the region, the method further includes: The edge server probes the source station represented by the source station information and the uplink relay node, obtains the probe results, and transmits the probe results to the decision center.

4. The method according to claim 1, characterized in that, Adding the source station information to the memory area corresponding to the relay node includes: Obtain the union of the source station information and the stored source station information in the memory area corresponding to the relay node, and use it as the information to be stored; The information to be stored is rewritten to the memory area.

5. The method according to claim 1, characterized in that, The method further includes: The edge server corresponding to any of the edge nodes resolves the pre-set parent scheme domain name to obtain the relay node of the region to which the edge node belongs, and uses it as the uplink relay node.

6. The method according to claim 1, characterized in that, The CDN system comprises at least two tiers of service nodes; the method further includes: After any of the parent servers obtains the source information parsed by each edge server from the memory area of ​​the corresponding relay node, it reports the source information to the upper-level relay node at the level of the parent server.

7. A source station detection device, characterized in that, The device is applied to a CDN system, which includes at least service nodes and a management server. The service nodes include edge nodes and relay nodes, and the management server includes edge servers and a parent server. The device includes: The reporting module is used to report the origin information of the back-to-origin domain name to the uplink relay node corresponding to the edge node in the region after the edge server corresponding to any of the edge nodes resolves the origin information in its region. An add module is used to add the source station information to the memory area corresponding to the relay node; The detection module is used for any of the parent servers to obtain the source station information parsed by each edge server from the memory area of ​​each corresponding relay node, and to add the source station information to the detection task, so as to detect the source station represented by the source station information based on the detection task.

8. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method of any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.

10. A computer program, characterized in that, The computer program is executed by a computer to implement the method as described in any one of claims 1-6.