Network probing method and storage medium

CN114915570BActive Publication Date: 2026-10-09CHINANETCENT TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210557411.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2026-10-09
Estimated Expiration
2042-05-20

AI Technical Summary

Benefits of technology

[0008]The network probing method of this invention receives probe data packets sent by a client, disables the automatic response service for probe data packets, and rewrites the probe data packets into file data packets. Since the file data packets are data structures carrying the probe information in the probe data packets, the probe data packets can be transmitted in the content delivery network (CDN) without being automatically responded to by the servers within the CDN and thus unable to reach the origin server. The CDN initiates a probe to the origin server based on the file data packets. Upon receiving the probe results returned by the origin server, the CDN returns the probe results to the client. This allows network probing to be performed by sending probe data packets to the origin server, thereby obtaining the acceleration test results after CDN acceleration. This allows for comparison of the test results with the test results of directly probing the origin server without going through the CDN, achieving rapid detection of the CDN acceleration effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114915570B_ABST
    Figure CN114915570B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to the technical field of Internet, and discloses a network detection method and a storage medium.In the present application, the network detection method comprises the following steps: applied to a content distribution network, comprising: receiving a detection data packet sent by a client, closing an automatic reply service for the detection data packet, and rewriting the detection data packet into a file data packet; according to the file data packet, initiating detection to a source station, and when receiving a detection result returned by the source station, returning the detection result to the client; wherein the file data packet is a data structure carrying detection information in the detection data packet.The network detection method of the present application can realize rapid detection of CDN acceleration effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, and in particular to a network detection method and storage medium. Background Technology

[0002] A Content Delivery Network (CDN) is an intelligent virtual network built on top of the existing network infrastructure. It relies on edge servers deployed in various locations and uses the load balancing, content distribution, and scheduling functions of a central platform to enable users to obtain the content they need from the nearest location, reducing network congestion and improving user access response speed and hit rate.

[0003] After a customer purchases a CDN service, they need to test the CDN's access response speed, i.e., the acceleration effect. How to quickly detect the CDN acceleration effect is an urgent problem to be solved. Summary of the Invention

[0004] The purpose of this invention is to provide a network detection method and storage medium to achieve rapid detection of CDN acceleration effects.

[0005] To address the aforementioned technical problems, embodiments of the present invention provide a network probing method applied to a content delivery network, comprising: receiving a probe data packet sent by a client, disabling the automatic response service for the probe data packet, and rewriting the probe data packet into a file data packet; initiating a probe to the origin server based on the file data packet, and returning the probe result to the client upon receiving the probe result returned by the origin server; wherein, the file data packet is a data structure carrying the probe information in the probe data packet.

[0006] Embodiments of the present invention also provide an electronic device, comprising: at least one processor; a memory communicatively connected to the at least one processor; the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the network detection method described above.

[0007] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-described network detection method.

[0008] The network probing method of this invention receives probe data packets sent by a client, disables the automatic response service for probe data packets, and rewrites the probe data packets into file data packets. Since the file data packets are data structures carrying the probe information in the probe data packets, the probe data packets can be transmitted in the content delivery network (CDN) without being automatically responded to by the servers within the CDN and thus unable to reach the origin server. The CDN initiates a probe to the origin server based on the file data packets. Upon receiving the probe results returned by the origin server, the CDN returns the probe results to the client. This allows network probing to be performed by sending probe data packets to the origin server, thereby obtaining the acceleration test results after CDN acceleration. This allows for comparison of the test results with the test results of directly probing the origin server without going through the CDN, achieving rapid detection of the CDN acceleration effect.

[0009] Additionally, disabling the automatic response service for probe packets and rewriting the probe packets as file packets includes: the edge server of the content delivery network disabling the automatic response service for probe packets and rewriting the probe packets as file packets. In this application, since the edge server is the server connected to the client in the content delivery network, the probe packets are sent to the edge server. Disabling the automatic response service for probe packets and rewriting the probe packets as file packets on the edge server of the content delivery network can prevent the probe packets from failing to reach the origin server due to the server's automatic response during transmission within the content delivery network.

[0010] Furthermore, the process of initiating a probe towards the origin server based on the file data packet, and returning the probe result to the client upon receiving it from the origin server, includes: the edge server sending the file data packet to the origin server of the content delivery network; the origin server initiating a probe towards the origin server based on the file data packet; and the origin server returning the probe result to the edge server upon receiving it from the origin server, so that the edge server can return the probe result to the client. In this application, by having the edge server send the file data packet to the origin server of the content delivery network, and the origin server initiating a probe towards the origin server based on the file data packet, and returning the probe result to the edge server upon receiving it from the origin server, the probe information is transmitted within the content delivery network in the form of file data packets. This saves transmission time within the content delivery network and makes the probe results more accurate.

[0011] In addition, the edge server sends file data packets to the origin server of the content delivery network, including: determining a routing strategy based on the service information corresponding to the origin server; selecting the optimal path according to the routing strategy; and sending the file data packets to the origin server through the optimal path. In this application, determining the routing strategy based on the service information corresponding to the origin server, selecting the optimal path according to the routing strategy, and sending the file data packets to the origin server through the optimal path can meet the routing requirements of different customers through the selection of the routing strategy. Moreover, the method of using the optimal path during probing can match the acceleration process of the content delivery network for real data packets, making the probing results more accurate.

[0012] In addition, the service information corresponding to the origin server is obtained in the following way: the edge server obtains the length of the probe data packet and identifies the origin server based on the length; according to the pre-stored correspondence between origin servers and service information, the service information corresponding to the origin server is obtained. In this application, by identifying the origin server based on the length of the probe data packet, the destination origin server of the probe data packet can be quickly identified, reducing the time required for the edge server to identify the destination origin server from the probe data packet, quickly obtaining the service information corresponding to the origin server, and improving the transmission efficiency of the content delivery network.

[0013] In addition, the origin server has pre-defined corresponding probe domains, and the length of the probe data packet corresponds to the probe domain. After receiving the probe data packet sent by the client, the process further includes: obtaining the length of the probe data packet and identifying the probe domain based on the length. In this application, the origin server has pre-defined corresponding probe domains, and different probe domains correspond to different probe data packet lengths. In this way, the edge server can identify the origin server based on the length of the probe data packet and match the probe data packet to the acceleration service corresponding to the probe domain.

[0014] In addition, before receiving the probe data packet sent by the client, the process includes: the domain name resolution server receiving the resolution request containing the probe domain name sent by the client, returning the address information of the edge server, so that the client can send the probe data packet to the edge server according to the address information of the edge server. In this application, since the origin server has a corresponding probe domain name pre-set, the domain name resolution configuration of the probe domain name can be added, so that the domain name resolution server can directly perform the resolution of the probe domain name and return the address of the edge server to the client, without using the CNAME mechanism, thus saving resolution time. Attached Figure Description

[0015] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0016] Figure 1 This is a flowchart of a network detection method according to an embodiment of the present invention. Figure 1 ;

[0017] Figure 2 This is a schematic diagram of the detection transmission path provided according to an embodiment of the present invention;

[0018] Figure 3 This is a flowchart of a network detection method according to an embodiment of the present invention. Figure 2 ;

[0019] Figure 4 This is a schematic diagram of an electronic device structure according to an embodiment of the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details are presented in the various embodiments of the present invention to facilitate a better understanding of this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for ease of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with and referenced by each other without contradiction.

[0021] Embodiments of the present invention relate to a network detection method, such as... Figure 1 As shown, it includes:

[0022] Step 101: Receive the probe data packet sent by the client, disable the automatic reply service for the probe data packet, and rewrite the probe data packet into a file data packet;

[0023] Step 102: Based on the file data packet, initiate a probe to the source server, and when the probe results are received from the source server, return the probe results to the client;

[0024] The file data packet is a data structure that carries the probe information from the probe data packet.

[0025] The network probing method of this application is applied to a content delivery network (CDN), specifically any server within the CDN. The server is deployed as a node in the CDN, i.e., on the electronic devices that make up the CDN. The client connects to the origin server accessed by the user through the CDN. The CDN contains a large number of servers, where the server connected to the client is the edge server, and the server connected to the origin server is the origin server.

[0026] CDN network acceleration is achieved through protocols based on the Open Systems Interconnection Reference Model (OSI) at layers four (transport layer) or seven (application layer). Customers typically want to use a simple packet explorer (Ping) to compare latency and packet loss rates before and after acceleration, thus visually assessing the CDN's performance. However, the Internet Control Message Protocol (ICMP) is a layer three (network layer) protocol. When an ICMP-based Ping packet is sent to an edge server, the edge server automatically sends a response packet, preventing the Ping packet from reaching the origin server through the CDN network. Therefore, customers cannot use common Ping methods to test and understand the latency, packet loss rate, and other metrics after acceleration, thus hindering their ability to evaluate the CDN's acceleration effectiveness.

[0027] In this application, by receiving probe data packets sent by the client, the automatic response service for probe data packets is disabled, and the probe data packets are rewritten as file data packets. Since the file data packets are data structures carrying the probe information in the probe data packets, the probe data packets can be transmitted in the content delivery network (CDN) without being automatically responded to by the servers within the CDN and thus unable to reach the origin server. The CDN initiates a probe to the origin server based on the file data packets. When it receives the probe results returned by the origin server, it returns the probe results to the client. Thus, network probing can be performed by sending probe data packets to the origin server, i.e., obtaining the acceleration test results after CDN acceleration. This allows for comparison of the test results with the test results of directly probing the origin server without going through the CDN, achieving rapid detection of the CDN acceleration effect.

[0028] The following details the implementation of the network detection method in this application. The following content is only for the convenience of understanding and is not necessary for implementing this solution.

[0029] In step 101, the server in the content delivery network receives the probe data packet sent by the client, disables the automatic reply service for the probe data packet, and rewrites the probe data packet into a file data packet. The probe data packet can be a Ping packet. Ping is a service command operating at the application layer in the TCP / IP network architecture, primarily used to send ICMP Echo request messages to a specific destination host to test its reachability and obtain its status. Since servers in the network are configured with an automatic reply service for Ping packets (i.e., they automatically reply to Ping packets upon receipt), in this application, upon receiving a Ping packet from the client, the server instructs the kernel module to suppress the automatic reply service and rewrite the Ping packet's format. The relevant information from the ICMP packet, such as time, packet length, destination address, and source address, is recorded in a file data packet. In other words, the file data packet is a data structure carrying the probe information from the probe data packet. The file data packet can be transmitted using common data transmission protocols, such as TCP and UDP.

[0030] In this context, servers in the content delivery network can suppress or disable the automatic reply service for probe packets, avoiding automatic replies to Ping packets upon receipt. Instead, they can rewrite the probe packets into file packets and send them to the next hop for transmission by the device at the next hop.

[0031] In one example, an edge server in the content delivery network (CDN) can disable the automatic reply service for probe packets and rewrite the probe packets as file packets. Among the many servers in a CDN, the servers connecting to clients are edge servers, which are deployed in edge nodes. Since the edge servers are the servers connecting to clients in the CDN, Ping packets are sent to them. Therefore, by simply disabling the automatic reply service for probe packets on the edge servers and rewriting the Ping packets, automatic replies to client Ping packets from the edge servers and other servers in the CDN can be avoided, allowing probe packets to be transmitted smoothly within the CDN without automatic replies.

[0032] In this embodiment of the network probing method, the edge server of the content delivery network disables the automatic reply service for probe data packets and rewrites the probe data packets into file data packets. This can avoid the automatic reply of each server in the content delivery network to the probe data packets during the transmission of probe data packets within the content delivery network, which would prevent the probe data packets from reaching the source station.

[0033] In one example, the origin server has a pre-defined probe domain name, and the length of the probe data packet corresponds to the probe domain name. After the edge server receives the probe data packet sent by the client, the server in the content delivery network also obtains the length of the probe data packet and identifies the probe domain name based on the length.

[0034] In this embodiment, probe packets such as Ping packets typically do not contain application-layer data information, such as probe domain names, only network-layer information. Therefore, in order to match probe packets to the corresponding origin server, different probe packet lengths can be set to correspond to different probe domain names. In this way, the edge server can determine the origin server based on the length of the probe packet and match the probe packet to the acceleration service corresponding to the probe domain name, thereby achieving origin retrieval. In addition, after the edge server receives the probe packet sent by the client, it obtains the length of the probe packet. The kernel module determines that the probe data of the specified length is a probe of the probe domain name based on the rule that Ping packets of a specified length do not automatically reply, and therefore disables the automatic reply service for the probe packet.

[0035] Furthermore, before receiving the probe data packets sent by the client, the DNS server in the content delivery network receives the resolution request containing the probe domain name sent by the client, resolves the probe domain name, and returns the address information of the edge server as the resolution result to the client, so that the client can send the probe data packets to the edge server according to the address information of the edge server.

[0036] In this embodiment, since the origin server has a pre-defined probe domain name, the domain name resolution configuration for the probe domain name can be added. The domain name resolution server receives a resolution request containing the probe domain name from the client and can directly resolve the probe domain name, returning the edge server address to the client. This eliminates the need for the CNAME mechanism, meaning the probe domain name does not need to be resolved to the content delivery network via CNAME, saving resolution time. The CNAME mechanism is also known as a canonical name. This mechanism allows multiple names to be mapped to the same computer, thus requiring the identification of the actual mapping relationship from multiple mappings during domain name resolution.

[0037] In step 102, the server in the content delivery network (CDN) initiates a probe to the origin server based on the file data packet. Upon receiving the probe result from the origin server, the CDN server returns the probe result to the client. Before the file data packet is transmitted to the origin server, the CDN server needs to send a Ping packet to the origin server based on the probe information in the file data packet to probe the origin server. When the origin server receives the Ping packet, it automatically replies. The CDN server receives the data packet from the origin server's reply, obtains the probe result from it, and returns the probe result to the client so that the client can obtain the accelerated test result. Specifically, after receiving the file data packet, the CDN server initiates a probe to the origin server, thereby transmitting the probe information to the next hop until it receives the probe result returned by the origin server.

[0038] In one example, the origin server can initiate a probe against the origin server based on the file data packet. Upon receiving the probe result from the origin server, it returns the result to the client. Specifically, the edge server sends the file data packet to the origin server of the content delivery network; the origin server initiates a probe against the origin server based on the file data packet; upon receiving the probe result from the origin server, the origin server returns the result to the edge server, which then returns the result to the client. In other words, the file data packet can be transmitted arbitrarily within the content delivery network, and neither the edge server nor the origin server needs to rewrite the data packet structure; only the origin server initiates the probe against the origin server based on the file data packet.

[0039] The network probing method in this embodiment involves the edge server sending file data packets to the origin server of the content delivery network. The origin server then initiates a probe against the origin server based on the file data packets. Upon receiving the probe results from the origin server, the origin server returns the probe results to the edge server. In other words, the probe information is transmitted within the content delivery network in the form of file data packets, which can save the transmission time of the probe information within the content delivery network and make the probe results more accurate.

[0040] In one example, customers can personalize CDN acceleration services, such as configuring routing strategies. These strategies can be based on IP addresses or domain names, and can include priority choices like cost-priority, latency-priority, or packet loss rate-priority. When an edge server sends file data packets to the origin server of the content delivery network, it can determine the routing strategy based on the service information of the origin server, select the optimal path, and send the file data packets to the origin server via that path. The edge server can store service information for each origin server, reflecting the customer's requirements for deploying the origin servers. Alternatively, the service information for each origin server can be stored on a management server. The edge server identifies the origin server based on its identifier and retrieves the corresponding service information from the management server. Before retrieving the service information for the origin server, the edge server needs to identify it first. This can be done by parsing probe packets to obtain the destination origin server corresponding to the probe packets.

[0041] In this embodiment, a routing strategy is determined based on the service information corresponding to the origin server. Based on the routing strategy, the optimal path is selected, and the file data packet is sent back to the origin server through the optimal path. By selecting the routing strategy, the routing requirements of different customers can be met. Furthermore, the method of using the optimal path during the probe can match the acceleration process of the content delivery network for real data packets, making the probe results more accurate.

[0042] In one example, probe packets such as Ping typically do not contain application-layer data information, such as probe domain names, but only network-layer information. Therefore, in order to match probe packets to the corresponding origin server, the length of probe packets corresponding to different origin servers can be preset in the content delivery network. This allows the edge server to obtain the length of the probe packet after receiving it and identify the origin server based on the length. In other words, the destination origin server of the probe packet can be determined solely by the length of the probe packet.

[0043] Furthermore, the service information corresponding to the origin server can also be obtained in the following ways: the edge server obtains the length of the probe data packet and identifies the origin server based on the length; based on the pre-stored correspondence between origin servers and service information, it obtains the service information corresponding to the origin server. In the content delivery network, the length of the probe data packet corresponding to different origin servers is preset and unified with the client. Then, after receiving the probe data packet, the edge server can determine the destination origin server of the probe data packet based solely on its length, and perform routing and transmission accordingly.

[0044] In this embodiment, by probing the length of the data packet and identifying the source station based on the length, the destination source station of the probe data packet can be quickly identified, reducing the time required for the edge server to identify the destination source station from the probe data packet, quickly obtaining the service information corresponding to the source station, and improving the transmission efficiency of the content delivery network.

[0045] When the origin server returns the probe results to the edge server, it can select a route within the content delivery network and return the probe results according to the route selection result. In one example, the origin server can also obtain the optimal path based on the session information created when the edge server sends file data packets; and then return the probe results to the edge server along the optimal path.

[0046] In this embodiment, since the optimal round-trip path in the network is generally two transmission paths in opposite directions composed of the same nodes, the optimal path can be obtained through session information, and the return path can be reversed along the same path to quickly obtain a high-quality return path and save transmission time.

[0047] In a specific implementation example, the origin server initiates a probe against the origin server by reconstructing the file data packet into a probe data packet and then sending the probe data packet back to the origin server. When the probe data packet is a Ping packet, the origin server extracts the probe information from the received file data packet, reconstructs the file data packet into a Ping packet based on the probe information, and then sends the reconstructed Ping packet back to the origin server. The file data packet can carry transmission information during the transmission process, such as transmission time, so that the client's final probe result contains information about the entire probe path, ensuring the accuracy of the probe result.

[0048] In one example, the edge server and the origin server can be on the same node. In this case, the file data packet is sent from the edge server on this node to the origin server on the same node, and the origin server performs the return to the origin.

[0049] In another example, the edge server and the origin server can be on different nodes. In this case, the file data packet is sent from the node where the edge server is located, i.e., the edge node, to the node where the origin server is located, i.e., the origin node, and the origin server on the origin node performs the origin transfer of the file data packet.

[0050] In one example, the edge server and the origin server are located on different nodes, and the transmission process between the edge server and the origin server also needs to pass through other servers. Based on the structure of the content delivery network, the transmission path of the probe information in this embodiment is as follows: Figure 2As shown, starting from the client, the network passes through edge nodes, relay nodes, and origin nodes before reaching the origin server. The network probing methods performed by the content delivery network include, for example... Figure 3 As shown, it includes the following steps:

[0051] 1. When the client sends a Ping packet to a probe domain, in a multi-tenant scenario, the length of the Ping packet can be specified so that the edge node can identify the tenant (i.e., the client's origin server) based on the Ping packet length and match the corresponding acceleration channel. The acceleration channel refers to the acceleration service information corresponding to the client.

[0052] This allows customers to pre-set probe domains for the origin servers they need to probe, and configure domain name resolution for these probe domains. This enables the domain name resolution server to directly return the address information of the edge server when resolving the probe domain, without using the CDN's CNAME mechanism.

[0053] 2. Upon receiving a Ping packet, the kernel of the system hosting the edge node forwards it to the edge node and suppresses automatic response packets. Simultaneously, it rewrites the Ping packet into a file data packet. In multi-tenant scenarios, the length of the Ping packet can be used to match the corresponding service information of the customer. This service information includes the customer's origin server address information, such as IP or domain name, and routing strategies, such as cost priority, latency priority, and packet loss rate priority. Based on this service information, the routing strategy for probing the origin server is determined.

[0054] 3. Edge nodes select the optimal path according to the routing strategy and send data packets back to the source node through transmission protocols such as TCP and UDP.

[0055] 4. The origin node parses the contents of the data packet, restores the Ping packet, and forwards it to the origin server to initiate a probe request to the origin server.

[0056] 5. The origin server sends the results back to the origin node, which then returns the results to the client via the same path. The client can then obtain metrics such as latency and packet loss rate after acceleration, allowing it to compare the acceleration effect of the content delivery network with the latency and packet loss rate before acceleration. The origin node can determine the return route based on the session ID created by the edge node, ensuring the results are returned to the client via the same path.

[0057] For example, by pre-configuring the origin server IP corresponding to each customer in the acceleration channel, even in a multi-tenant scenario, the service information of each customer can be distinguished by setting different ping packet lengths for different customers.

[0058] When a client needs to test the acceleration effect, they can initiate a Ping packet targeting the probe domain. By specifying the Ping packet length on the client side, the client can ping the probe domain and obtain metrics such as latency and packet loss rate after acceleration via the Content Delivery Network (CDN) based on the response. The client can also obtain latency and packet loss rate without CDN acceleration by directly pinging the origin server IP from the public internet. By comparing the latency and packet loss rate with those without CDN acceleration, the acceleration effect of the CDN can be quickly and easily assessed.

[0059] This implementation suppresses the kernel's automatic response packets for Ping probes of a specific length on the edge server, while rewriting the Ping packets into file data packets of a specific format. Then, the acceleration platform configures and selects a path to transmit the data packets to the origin node via TCP. The origin node reads the contents of the data packets, probes the origin server to obtain the results, and returns the results to the client along the same path based on the session ID of the accelerated network. With this invention, users do not need to use other testing tools or deploy other business systems on the origin server; they can directly use Ping to obtain the latency of the origin server and view the acceleration effect.

[0060] Embodiments of the present invention also relate to an electronic device, such as... Figure 4 As shown, it includes: at least one processor 401; and a memory 402 communicatively connected to the at least one processor; wherein the memory 402 stores instructions executable by the at least one processor 401, the instructions being executed by the at least one processor 401 to perform the network probing method of any of the above embodiments.

[0061] The memory 402 and processor 401 are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors 401 and memory 402. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Information processed by processor 401 is transmitted over a wireless medium via an antenna, which further receives information and transmits it to processor 401.

[0062] Processor 401 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory 402 can be used to store information used by the processor during operation.

[0063] Embodiments of the present invention relate to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the above-described method embodiments.

[0064] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Claims

1. A network detection method, characterized in that, Applied to content delivery networks, including: In a content delivery network, a server connected to a client receives a probe data packet sent by the client, disables the automatic response service to the probe data packet, and rewrites the probe data packet into a file data packet. Based on the file data packet, a probe is initiated to the source server, and upon receiving the probe results returned by the source server, the probe results are returned to the client. The file data packet is a data structure that carries the detection information in the detection data packet.

2. The network detection method according to claim 1, characterized in that, The step of disabling the automatic response service to the probe data packets and rewriting the probe data packets into file data packets includes: The edge server of the content delivery network disables the automatic response service to the probe data packets and rewrites the probe data packets into file data packets.

3. The network detection method according to claim 2, characterized in that, The step of initiating a probe to the source server based on the file data packet, and returning the probe result to the client upon receiving the probe result from the source server, includes: The edge server sends the file data packet to the origin server of the content delivery network; The origin server initiates a probe to the origin server based on the file data packet; When the origin server receives the detection results returned by the origin server, it returns the detection results to the edge server, which then returns the detection results to the client.

4. The network detection method according to claim 3, characterized in that, The origin server initiates a probe to the origin server based on the file data packet, including: The origin server restores the file data packet to the probe data packet; The probe data packet is sent to the source station.

5. The network detection method according to claim 3, characterized in that, The edge server sends the file data packet to the origin server of the content delivery network, including: Based on the service information corresponding to the source station, a routing strategy is determined; Based on the routing strategy, select the optimal path; The file data packet is sent to the origin server via the optimal path.

6. The network detection method according to claim 5, characterized in that, The service information corresponding to the source station is obtained in the following ways: The edge server obtains the length of the probe data packet and identifies the source station based on the length. Based on the pre-stored correspondence between source stations and service information, obtain the service information corresponding to the source station.

7. The network detection method according to claim 5, characterized in that, Returning the detection results to the edge server includes: The optimal path is obtained based on the session information created when the edge server sends the file data packet; The detection results are then returned to the edge server along the optimal path in reverse.

8. The network detection method according to any one of claims 2 to 7, characterized in that, The source server has a pre-defined probe domain name, and the length of the probe data packet corresponds to the probe domain name. After receiving the probe data packet sent by the client, the method further includes: Obtain the length of the probe data packet, and identify the probe domain name based on the length.

9. The network detection method according to claim 8, characterized in that, Before receiving the probe data packet sent by the client, the method further includes: The domain name resolution server receives the resolution request containing the probe domain name sent by the client, and returns the address information of the edge server, so that the client can send the probe data packet to the edge server according to the address information of the edge server.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the network detection method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Data transmission path determination method, network node and content delivery network system

    CN103051709A

  • Method and apparatus for detecting return path

    CN105939232A