CN108234207B - Fault positioning method and device based on Content Delivery Network (CDN) - Google Patents

Fault positioning method and device based on Content Delivery Network (CDN) Download PDF

Info

Publication number
CN108234207B
CN108234207B CN201711485167.1A CN201711485167A CN108234207B CN 108234207 B CN108234207 B CN 108234207B CN 201711485167 A CN201711485167 A CN 201711485167A CN 108234207 B CN108234207 B CN 108234207B
Authority
CN
China
Prior art keywords
access
request
test
content delivery
access response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711485167.1A
Other languages
Chinese (zh)
Other versions
CN108234207A (en
Inventor
温源
黄莹
文启源
刘川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711485167.1A priority Critical patent/CN108234207B/en
Publication of CN108234207A publication Critical patent/CN108234207A/en
Application granted granted Critical
Publication of CN108234207B publication Critical patent/CN108234207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Abstract

The embodiment of the invention provides a fault positioning method and a device based on a Content Delivery Network (CDN), which comprises the following steps: receiving a fault test request sent by a client aiming at target data stored in a Content Delivery Network (CDN); sending a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN; receiving an access request and an access response sent by the CDN for the target data; generating a fault test result according to the access request and the access response; thereby improving the failure processing efficiency.

Description

Fault positioning method and device based on Content Delivery Network (CDN)
Technical Field
The invention relates to the technical field of computer processing, in particular to a fault positioning method based on a Content Delivery Network (CDN) and a fault positioning device based on the CDN.
Background
A website often uses a CDN (Content Delivery Network) to transmit data streams, where the CDN is configured with a plurality of nodes for caching data by adding a new Network structure to an existing Network, so that a user can transmit data to a nearby node or obtain required data from the nearby node, thereby providing a corresponding service.
If the CDN has a fault, the log files are required to be manually obtained from all nodes of the CDN at present, data in the log files are analyzed to carry out fault positioning, the operation is complex, a large amount of time is required to be consumed, the labor cost is high, the positioning period is long, and the fault processing efficiency is low.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a fault location method based on a content delivery network CDN and a corresponding fault location device based on a content delivery network CDN, which overcome or at least partially solve the above problems.
According to an aspect of the present invention, a fault location method based on a content delivery network CDN is provided, including:
receiving a fault test request sent by a client aiming at target data stored in a Content Delivery Network (CDN);
sending a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN;
receiving an access request and an access response sent by the CDN for the target data;
and generating a fault test result according to the access request and the access response.
Optionally, the method further comprises:
acquiring the address of a domain name system corresponding to the client and local network information;
and writing the address of the domain name system and the local network information into the fault test result.
Optionally, the sending a test instruction to the client according to the fault test request to access the target data to the content delivery network CDN includes:
generating a test identification aiming at the fault test request;
generating a test instruction aiming at the target data by adopting the test identification;
and sending the test instruction to the client to access the target data to the content delivery network CDN.
Optionally, the content delivery network CDN has a plurality of nodes;
the receiving of the access request and the access response sent by the content delivery network CDN for the target data includes:
receiving an access request which is sent by the node when the node receives the access request carrying the test identification and aiming at the target data;
and receiving the access response sent by the node when receiving the access response carrying the test identification and aiming at the target data.
Optionally, the plurality of nodes of the content delivery network CDN include a parent layer node and an edge node;
the parent layer nodes are communicated with each other, the source website and the edge node;
the edge node is used for communicating with a client;
the access request of the edge node comes from the client and the access response comes from the parent layer node;
the access request of the parent layer node comes from the edge node, and the access response comes from the source website.
Optionally, the generating a failure test result according to the access request and the access response includes:
and when the test identifier in the access request is the same as the test identifier in the access response, connecting the access request and the access response in series according to the access sequence to obtain a fault test result.
Optionally, the concatenating the access request and the access response according to the access order to obtain a failure test result includes:
extracting a timestamp from the access request and the access response;
and connecting the access request and the access response in series according to the sequence of the time stamps to obtain a fault test result.
Optionally, the generating a failure test result according to the access request and the access response further includes:
when the access request and the access response after the concatenation do not form a complete access link, querying missing access requests and/or access responses;
it is determined that the node to which the missing access request and/or access response belongs has failed.
According to another aspect of the present invention, there is provided a fault location device based on a content delivery network CDN, including:
the device comprises a fault test request receiving module, a fault test request sending module and a fault test request sending module, wherein the fault test request receiving module is used for receiving a fault test request sent by a client aiming at target data stored in a Content Delivery Network (CDN);
the test instruction sending module is used for sending a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN;
an access data receiving module, configured to receive an access request and an access response sent by the content delivery network CDN for the target data;
and the fault test result generation module is used for generating a fault test result according to the access request and the access response.
Optionally, the method further comprises:
the client information acquisition module is used for acquiring the address of the domain name system corresponding to the client and the local network information;
and the client information writing module is used for writing the address of the domain name system and the local network information into the fault test result.
Optionally, the test instruction sending module includes:
the test identifier generation submodule is used for generating a test identifier aiming at the fault test request;
the test instruction generation submodule is used for generating a test instruction aiming at the target data by adopting the test identification;
and the test instruction submodule is used for sending the test instruction to the client so as to access the target data to the content delivery network CDN.
Optionally, the content delivery network CDN has a plurality of nodes;
the access data receiving module includes:
the access request receiving submodule is used for receiving the access request which is sent by the node when receiving the access request carrying the test identification and aiming at the target data;
and the access response receiving submodule is used for receiving the access response which is sent when the node receives the access response carrying the test identification and aiming at the target data.
Optionally, the plurality of nodes of the content delivery network CDN include a parent layer node and an edge node;
the parent layer nodes are communicated with each other, the source website and the edge node;
the edge node is used for communicating with a client;
the access request of the edge node comes from the client and the access response comes from the parent layer node;
the access request of the parent layer node comes from the edge node, and the access response comes from the source website.
Optionally, the fault test result generating module includes:
and the access data serial submodule is used for serially connecting the access request and the access response according to the access sequence to obtain a fault test result when the test identifier in the access request is the same as the test identifier in the access response.
Optionally, the access data concatenation submodule includes:
a timestamp extraction unit for extracting a timestamp from the access request and the access response;
and the time series unit is used for connecting the access request and the access response in series according to the sequence of the timestamps to obtain a fault test result.
Optionally, the fault test result generating module further includes:
the access missing query submodule is used for querying the missing access request and/or the access response when the access request and the access response after the concatenation do not form a complete access link;
and the fault determining submodule is used for determining that the node to which the missing access request and/or the access response belong has a fault.
The method and the device for fault location in the content delivery network CDN receive a fault test request sent by a client aiming at target data stored in the content delivery network CDN, send a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN, receive an access request and an access response sent by the content delivery network CDN aiming at the target data, generate a fault test result according to the access request and the access response, automatically obtain data in an access process, do not need to manually obtain each node in the content delivery network CDN to obtain a log file, quickly locate faults in the access process, are simple and convenient to operate, greatly reduce consumed time, and are low in labor cost and high in fault processing efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating steps of an embodiment of a fault location method based on a content delivery network CDN according to an embodiment of the present invention;
fig. 2 shows a schematic structural diagram of a content delivery network CDN according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating steps of another embodiment of a method for fault location based on a CDN of the content delivery network according to an embodiment of the present invention; and
fig. 4 is a block diagram illustrating a schematic structure of an embodiment of a fault location device based on a content delivery network CDN according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a schematic step flow diagram of an embodiment of a fault location method based on a content delivery network CDN according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, receiving a fault test request sent by a client for target data stored in a Content Delivery Network (CDN).
In a content delivery network CDN, a plurality of nodes are generally provided for transmitting and caching data (e.g., live streaming, cache data, etc.), after a certain node receives data (e.g., live streaming, cache data, etc.) of a client and a source website, the data can be pushed to other nodes, when a user accesses the data (e.g., live streaming, cache data, etc.), a request of the user is routed or guided to a node closest to a user access network or having the best access effect by scheduling, and the node provides the data (e.g., live streaming, cache data, etc.) for the user; compared with the method of directly accessing the source website, the method shortens the network distance between the user and the data (such as live streaming, cache data and the like), thereby achieving the effect of acceleration.
It should be noted that, in different content delivery networks CDN, the topology may be different.
In one embodiment, the plurality of nodes of the content delivery network CDN include a central node, a parent level node, and an edge node.
In some cases, the central node is a super sink node of resources, which can communicate with the source website and sink a large amount of resources of the source website, which are generally less variable resources, such as videos, pictures, and the like.
In some cases, the central node only stores file information, such as a URL (Uniform Resource Locator), a size, and the like, and does not directly cache a file, and other nodes in the content delivery network CDN acquire file information of a file to be cached from the central node, and after finishing caching the file, report the file to the central node, and the central node counts files cached by other nodes.
It should be noted that, a central node may be deployed in some content delivery networks CDN, that is, the part of the content delivery networks CDN is a three-layer structure of a central node, a parent layer node, and an edge node, and a central node may not be deployed in some content delivery networks CDN, that is, the part of the content delivery networks CDN is a two-layer structure of a parent layer node and an edge node, which is not limited in this embodiment of the present invention.
The parent layer node is a secondary aggregation node of resources, on one hand, inside the content delivery network CDN, the nodes are generally communicated with each other by using a dedicated communication cable such as a bidirectional optical fiber, so that the communication quality between the central node and the parent layer node is guaranteed to be high, and on the other hand, when a resource with little change is acquired and the communication quality of an external source website is poor, the node can communicate with the central node to acquire the resource from the central node, and on the other hand, when a new resource is acquired and data operation (such as payment) is performed, the node can communicate with the source website to acquire the resource from the source website.
Furthermore, the nodes in the parent layer can communicate with each other, so that a transmission path between the node in the parent layer and the edge node is formed, namely, a path formed by nodes and communication cables which are transmitted from one node to another node in the middle is formed.
Specifically, there may be multiple ways of selecting the transmission path, and at least one of the following ways may be selected according to actual requirements:
1. and selecting a transmission path with transmission performance meeting the set requirement.
The transmission performance refers to the transmission capacity of a transmission path for transmitting streaming data, and the transmission performance of the transmission path can be determined according to the distance between nodes, the transmission speed, the data loss rate, the blocking condition and the like, and the transmission performance between every two nodes is periodically updated, and the transmission path with the transmission performance meeting the requirements or the transmission performance being the best is selected according to the transmission performance of each transmission path between the nodes.
2. And selecting the transmission path with the least number of the passed nodes.
And selecting the transmission path with the least number of nodes from the plurality of transmission paths, so that the transmission of data from one node to another node can be completed by occupying the least transmission resources.
3. Selecting a transmission path which has not been selected in a period of time.
If streaming data is transmitted from one node to another node historically, when new data is transmitted between the two nodes, one of the unselected transmission paths can be selected within a period of time, so as to avoid that the nodes on the transmission path are overloaded due to the fact that the same transmission path is selected all the time.
Of course, the selection manner of the transmission path is only an example, and when the embodiment of the present invention is implemented, other selection manners of the transmission path may be set according to an actual situation, which is not limited in the embodiment of the present invention. In addition, besides the above-mentioned selection method of the transmission path, a person skilled in the art may also adopt other selection methods of the transmission path according to actual needs, and the embodiment of the present invention is not limited thereto.
In addition, the parent layer node is generally deployed with machine rooms of a plurality of operators, the machine rooms are connected through a two-wire light and other proprietary communication cables, the edge node is generally deployed in a network of a certain operator, and the machine room of the parent layer node between the operator and the edge node can communicate with the edge node.
The edge nodes have the ability to communicate with each other, but generally do not communicate directly.
The edge node may access a client, for example, a mobile phone, a tablet computer, a television, and the like, for communicating with the client, such as acquiring a live stream captured by the client, or pushing the live stream to the client.
In order to make the embodiment of the present invention better understood by those skilled in the art, the content delivery network CDN in the embodiment of the present invention is described below by a specific example.
As shown in fig. 2, the father nodes are a1, a2, A3, a4, which may be deployed according to geographical locations, for example, a1 is deployed in beijing, a2 is deployed in shanghai, A3 is deployed in guangzhou, a4 is deployed in zheng, a1 may communicate with a2, a2 may communicate with A3, A3 may communicate with a4, a4 may communicate with a1, and cyclic communication between father nodes may constitute a ring-shaped father structure.
In addition, each parent level node may be connected to one or more edge nodes, the edge nodes may also be deployed according to geographical location, operator, and other factors, the edge nodes do not generally communicate directly, but transit through the parent level nodes, parent level node a1 connects edge nodes a11, a12, parent level node a2 connects edge nodes a21, a22, parent level node A3 connects edge nodes a31, a32, a33, and parent level node a4 connects edge nodes a41, a42, a 43.
An edge node access client, such as edge node a32 access client B1, for receiving data (e.g., a live stream) from the client or sending data (e.g., a live stream) to the client.
In the embodiment of the present invention, a processing center independent from the content delivery network CDN may provide a Web page to the outside, and a user who uses the content delivery network CDN to deliver data may log in the Web page using an account when finding that a fault exists in certain data, and send a fault test request to the processing center with the faulty data as target data.
Step 102, sending a test instruction to the client according to the fault test request, so as to access the target data to the content delivery network CDN.
In a specific implementation, after receiving a failure test request from a client, the processing center may return a test instruction to the client.
The client can access the target data to the content distribution network station according to the test instruction.
In one embodiment of the present invention, step 102 may include the following sub-steps:
and a substep S11 of generating a test identification for the failure test request.
And a substep S12 of generating test instructions for the target data using the test identification.
And a substep S13, sending the test instruction to the client to access the target data to the content delivery network CDN.
In the embodiment of the present invention, the processing center may generate a unique test identifier, such as a unique ID, for the current fault test request, generate a test instruction, carry the test identifier, and send the test instruction to the client, and the client may access the target data to the CDN for accessing the content delivery network according to the test identifier.
Step 103, receiving an access request and an access response sent by the content delivery network CDN for the target data.
In practical applications, after receiving an access from a client, if it is identified that the access is triggered based on a test instruction, the content delivery network CDN may upload the access request and the access response to a processing center for fault location, in addition to normally delivering the access request and the access response inside the content delivery network CDN.
In an embodiment of the present invention, the content delivery network CDN has a plurality of nodes, and in an embodiment of the present invention, step 103 may include the following sub-steps:
and a substep S21, receiving the access request sent by the node when receiving the access request carrying the test identifier and aiming at the target data.
And a substep S22, receiving the access response sent by the node when receiving the access response carrying the test identifier and aiming at the target data.
In the embodiment of the present invention, an access from a client may carry a test identifier issued by a processing center, and a node in a content delivery network CDN receives a test request of a downstream node or a client carrying the test identifier, on one hand, the access request may be uploaded to the processing center, and on the other hand, whether target data is locally stored may be ignored, and a source return operation is performed, that is, an access request carrying the test identifier is generated and sent to an upstream node or a source website, and the target data is obtained from the upstream node or the source website, so as to test the relevant node in the content delivery network CDN as much as possible.
The node in the content delivery network CDN receives an access response carrying the test identifier and the target data from an upstream node or a source website, and on one hand, the access response may be uploaded to the processing center, and on the other hand, an access response carrying the test identifier and the target data may be generated and sent to a downstream node or a client.
The topological structures in different content delivery networks CDN are different, and the structures of the client, the upstream node, the downstream node, and the source website are also different, which is not limited in this embodiment of the present invention.
For example, in the content delivery network CDN, an access request of an edge node comes from a client, and an access response comes from a parent node; the access request of the parent layer node comes from the edge node, and the access response comes from the source website.
And 104, generating a fault test result according to the access request and the access response.
The processing center receives each access request and each access response generated when the content delivery network CDN processes the access of the target data, and the access requests and the access responses carry information when the content delivery network CDN processes, so that the processing of the access requests and the access responses can be analyzed to obtain a fault test result.
In one embodiment of the present invention, step 104 may include the following sub-steps:
and a substep S31, when the test identifier in the access request is the same as the test identifier in the access response, connecting the access request and the access response in series according to the access sequence to obtain a fault test result.
And a substep S32, when the access request and the access response after the concatenation do not form a complete access link, querying the missing access request and/or access response.
Sub-step S33, determining that the node to which the missing access request and/or access response belongs has failed.
In the embodiment of the present invention, if the same test identifier is carried in both the access request and the access response, it can be indicated that the content delivery networks CDN process the same access for the target data, and therefore, the access request and the access response can be connected in series in the access sequence as one of the failure test results.
In one embodiment, the access request and the access response may be concatenated in the order of the time stamps to obtain the failure test result.
For an access (including an access request and an access response), the complete access link may originate from the client, pass through the content delivery network CDN, reach the source website, and pass through the content delivery network CDN, and return to the client.
For example, for the content delivery network CDN described above, the access process of the complete draft may be client → edge node → parent layer node → source website → parent layer node → edge node → client.
If there is a break in the access link and part of the nodes are missing, it means that there may be a failure in the missing nodes, and if the break is in the source website, that is, the source website may fail.
Of course, besides the node missing, other fault analysis may be performed based on the access request and the access response connected in series, for example, a time difference between adjacent accesses (including the access request and the access response) may be calculated to obtain a processing delay, so as to assist in analyzing a network problem or a node fault, and the like, which is not limited in the embodiment of the present invention.
The method and the device for fault location in the content delivery network CDN receive a fault test request sent by a client aiming at target data stored in the content delivery network CDN, send a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN, receive an access request and an access response sent by the content delivery network CDN aiming at the target data, generate a fault test result according to the access request and the access response, automatically obtain data in an access process, do not need to manually obtain each node in the content delivery network CDN to obtain a log file, quickly locate faults in the access process, are simple and convenient to operate, greatly reduce consumed time, and are low in labor cost and high in fault processing efficiency.
Referring to fig. 3, a schematic step flow diagram of another embodiment of a fault location method based on a content delivery network CDN according to an embodiment of the present invention is shown, which specifically includes the following steps:
step 301, receiving a fault test request sent by a client for target data stored in a content delivery network CDN.
Step 302, sending a test instruction to the client according to the fault test request, so as to access the target data to the content delivery network CDN.
Step 303, receiving an access request and an access response sent by the content delivery network CDN for the target data.
And 304, generating a fault test result according to the access request and the access response.
Step 305, acquiring the address of the domain name system and the local network information corresponding to the client.
Step 306, writing the address of the domain name system and the local network information into the fault test result.
In the embodiment of the present invention, when the client opens the page for sending the failure test request, the client may trigger to automatically detect the local network information of the client and the address of a Domain Name System (DNS), and send the failure test request to the processing center as another failure test result.
Among them, the DNS is a distributed database for TCP/IP (Transmission Control Protocol/Internet Protocol ) applications, which provides translation information between host names and IP addresses.
The DNS is divided into a Client and a Server, and the Client plays a role of asking the Server for a Domain Name, and the Server answers the Domain Name. Usually, the local DNS will look up its own database first, and if its own database does not have the real IP address of the Domain Name, it will query the DNS server installed on the DNS, so as to obtain the real IP address of the Domain Name, and then store the corresponding real IP address of the Domain Name, and answer the client.
In addition, the local network information may include an IP address or the like.
If the address of the DNS does not match the local network information, it indicates that resolution of the DNS may be in error.
If the address of the DNS matches the local network information, it indicates that the resolution of the DNS may be normal.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a schematic block diagram of a structure of an embodiment of a fault location apparatus based on a content delivery network CDN according to an embodiment of the present invention is shown, which may specifically include the following modules:
a failure test request receiving module 401, configured to receive a failure test request sent by a client for target data stored in a content delivery network CDN;
a test instruction sending module 402, configured to send a test instruction to the client according to the fault test request, so as to access the target data to the content delivery network CDN;
an access data receiving module 403, configured to receive an access request and an access response sent by the content delivery network CDN for the target data;
and a failure test result generating module 404, configured to generate a failure test result according to the access request and the access response.
In one embodiment of the present invention, further comprising:
the client information acquisition module is used for acquiring the address of the domain name system corresponding to the client and the local network information;
and the client information writing module is used for writing the address of the domain name system and the local network information into the fault test result.
In an embodiment of the present invention, the test instruction sending module 402 includes:
the test identifier generation submodule is used for generating a test identifier aiming at the fault test request;
the test instruction generation submodule is used for generating a test instruction aiming at the target data by adopting the test identification;
and the test instruction submodule is used for sending the test instruction to the client so as to access the target data to the content delivery network CDN.
In one embodiment of the invention, the content delivery network CDN has a plurality of nodes;
the access data receiving module 403 includes:
the access request receiving submodule is used for receiving the access request which is sent by the node when receiving the access request carrying the test identification and aiming at the target data;
and the access response receiving submodule is used for receiving the access response which is sent when the node receives the access response carrying the test identification and aiming at the target data.
In an embodiment of the present invention, the plurality of nodes of the content delivery network CDN include a parent layer node and an edge node;
the parent layer nodes are communicated with each other, the source website and the edge node;
the edge node is used for communicating with a client;
the access request of the edge node comes from the client and the access response comes from the parent layer node;
the access request of the parent layer node comes from the edge node, and the access response comes from the source website.
In an embodiment of the present invention, the failure test result generating module 404 includes:
and the access data serial submodule is used for serially connecting the access request and the access response according to the access sequence to obtain a fault test result when the test identifier in the access request is the same as the test identifier in the access response.
In one embodiment of the present invention, the access data concatenation submodule includes:
a timestamp extraction unit for extracting a timestamp from the access request and the access response;
and the time series unit is used for connecting the access request and the access response in series according to the sequence of the timestamps to obtain a fault test result.
In an embodiment of the present invention, the failure test result generating module 404 further includes:
the access missing query submodule is used for querying the missing access request and/or the access response when the access request and the access response after the concatenation do not form a complete access link;
and the fault determining submodule is used for determining that the node to which the missing access request and/or the access response belong has a fault.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a content delivery network CDN-based fault location device in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.

Claims (10)

1. A fault positioning method based on a Content Delivery Network (CDN) comprises the following steps:
receiving a fault test request sent by a client aiming at target data stored in a Content Delivery Network (CDN);
sending a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN;
receiving an access request and an access response sent by the CDN for the target data;
generating a fault test result according to the access request and the access response;
the sending a test instruction to the client according to the fault test request to access the target data to the content delivery network CDN includes:
generating a test identification aiming at the fault test request;
generating a test instruction aiming at the target data by adopting the test identification;
sending the test instruction to the client to access the target data to the Content Delivery Network (CDN);
the generating a fault test result according to the access request and the access response comprises:
when the test identification in the access request is the same as the test identification in the access response, the access request and the access response are connected in series according to the access sequence to obtain a fault test result;
the generating a fault test result according to the access request and the access response further comprises:
when the access request and the access response after the concatenation do not form a complete access link, querying missing access requests and/or access responses;
it is determined that the node to which the missing access request and/or access response belongs has failed.
2. The method of claim 1, further comprising:
acquiring the address of a domain name system corresponding to the client and local network information;
and writing the address of the domain name system and the local network information into the fault test result.
3. The method of claim 1, wherein the content delivery network CDN has a plurality of nodes;
the receiving of the access request and the access response sent by the content delivery network CDN for the target data includes:
receiving an access request which is sent by the node when the node receives the access request carrying the test identification and aiming at the target data;
and receiving the access response sent by the node when receiving the access response carrying the test identification and aiming at the target data.
4. The method of claim 3, wherein the plurality of nodes of the Content Delivery Network (CDN) comprise parent tier nodes, edge nodes;
the parent layer nodes are communicated with each other, the source website and the edge node;
the edge node is used for communicating with a client;
the access request of the edge node comes from the client and the access response comes from the parent layer node;
the access request of the parent layer node comes from the edge node, and the access response comes from the source website.
5. The method of claim 1, wherein said concatenating the access request with the access response in the access order to obtain a failure test result comprises:
extracting a timestamp from the access request and the access response;
and connecting the access request and the access response in series according to the sequence of the time stamps to obtain a fault test result.
6. A fault location device based on a Content Delivery Network (CDN) comprises:
the device comprises a fault test request receiving module, a fault test request sending module and a fault test request sending module, wherein the fault test request receiving module is used for receiving a fault test request sent by a client aiming at target data stored in a Content Delivery Network (CDN);
the test instruction sending module is used for sending a test instruction to the client according to the fault test request so as to access the target data to the content delivery network CDN;
an access data receiving module, configured to receive an access request and an access response sent by the content delivery network CDN for the target data;
the fault test result generation module is used for generating a fault test result according to the access request and the access response;
the test instruction sending module comprises:
the test identifier generation submodule is used for generating a test identifier aiming at the fault test request;
the test instruction generation submodule is used for generating a test instruction aiming at the target data by adopting the test identification;
the test instruction submodule is used for sending the test instruction to the client so as to access the target data to the content delivery network CDN;
the fault test result generation module comprises:
the access data serial submodule is used for serially connecting the access request and the access response according to an access sequence to obtain a fault test result when the test identifier in the access request is the same as the test identifier in the access response;
the fault test result generation module further comprises:
the access missing query submodule is used for querying the missing access request and/or the access response when the access request and the access response after the concatenation do not form a complete access link;
and the fault determining submodule is used for determining that the node to which the missing access request and/or the access response belong has a fault.
7. The apparatus of claim 6, further comprising:
the client information acquisition module is used for acquiring the address of the domain name system corresponding to the client and the local network information;
and the client information writing module is used for writing the address of the domain name system and the local network information into the fault test result.
8. The apparatus of claim 6, wherein the Content Delivery Network (CDN) has a plurality of nodes;
the access data receiving module includes:
the access request receiving submodule is used for receiving the access request which is sent by the node when receiving the access request carrying the test identification and aiming at the target data;
and the access response receiving submodule is used for receiving the access response which is sent when the node receives the access response carrying the test identification and aiming at the target data.
9. The apparatus of claim 8, wherein the plurality of nodes of the content delivery network CDN comprise a parent tier node, an edge node;
the parent layer nodes are communicated with each other, the source website and the edge node;
the edge node is used for communicating with a client;
the access request of the edge node comes from the client and the access response comes from the parent layer node;
the access request of the parent layer node comes from the edge node, and the access response comes from the source website.
10. The apparatus of claim 6, wherein the access data concatenation submodule comprises:
a timestamp extraction unit for extracting a timestamp from the access request and the access response;
and the time series unit is used for connecting the access request and the access response in series according to the sequence of the timestamps to obtain a fault test result.
CN201711485167.1A 2017-12-29 2017-12-29 Fault positioning method and device based on Content Delivery Network (CDN) Active CN108234207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711485167.1A CN108234207B (en) 2017-12-29 2017-12-29 Fault positioning method and device based on Content Delivery Network (CDN)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711485167.1A CN108234207B (en) 2017-12-29 2017-12-29 Fault positioning method and device based on Content Delivery Network (CDN)

Publications (2)

Publication Number Publication Date
CN108234207A CN108234207A (en) 2018-06-29
CN108234207B true CN108234207B (en) 2021-09-21

Family

ID=62646356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711485167.1A Active CN108234207B (en) 2017-12-29 2017-12-29 Fault positioning method and device based on Content Delivery Network (CDN)

Country Status (1)

Country Link
CN (1) CN108234207B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495319B (en) * 2018-12-24 2021-12-28 网易(杭州)网络有限公司 Method, device and equipment for determining fault information of CDN node
CN109640127A (en) * 2018-12-30 2019-04-16 北京奇艺世纪科技有限公司 The Fault Locating Method and device of content distributing network
CN111444081B (en) * 2019-01-17 2023-05-02 阿里巴巴集团控股有限公司 Determination, response and generation methods, client, server, device and medium
CN111628878A (en) * 2019-02-27 2020-09-04 北京奇虎科技有限公司 Fault positioning method, device and system based on multi-stage network nodes
CN110380890B (en) * 2019-06-03 2021-04-02 网宿科技股份有限公司 CDN system service quality detection method and system
CN110635958B (en) * 2019-11-05 2022-04-29 北京知道创宇信息技术股份有限公司 Network fault diagnosis method, device and storage medium
CN112202643B (en) * 2020-10-12 2022-03-29 成都知道创宇信息技术有限公司 Network detection method, device, test host and storage medium
CN112769643B (en) * 2020-12-28 2023-12-29 北京达佳互联信息技术有限公司 Resource scheduling method and device, electronic equipment and storage medium
CN114363151A (en) * 2022-01-07 2022-04-15 北京金山云网络技术有限公司 Fault detection method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7472178B2 (en) * 2001-04-02 2008-12-30 Akamai Technologies, Inc. Scalable, high performance and highly available distributed storage system for Internet content
CN100518105C (en) * 2007-07-27 2009-07-22 华为技术有限公司 Method, system and content distribution network for monitoring network
CN102142989A (en) * 2010-12-24 2011-08-03 华为技术有限公司 Failure positioning method and device for content delivery network
CN106130786B (en) * 2016-07-26 2019-05-07 腾讯科技(深圳)有限公司 A kind of detection method and device of network failure

Also Published As

Publication number Publication date
CN108234207A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108234207B (en) Fault positioning method and device based on Content Delivery Network (CDN)
US10715480B2 (en) Content node network address selection for content delivery
CN107395683B (en) Method for selecting return path and server
CN107493183B (en) Fault positioning method and device
CN103167044B (en) The method of the intelligently parsing of domain name system DNS, testing device and system
CN108737467B (en) Server log viewing method, device and system
US20130282890A1 (en) In-stream collection of analytics information in a content delivery system
CN108234319B (en) Data transmission method and device
US10795744B2 (en) Identifying failed customer experience in distributed computer systems
CN103825975A (en) Cdn node distribution server and system
CN106411629B (en) Method and equipment for monitoring state of CDN node
CN103716398A (en) Method and system for monitoring CDN server
CN105210339A (en) Method and apparatus for calculating distance in contents delivery network
EP3609134B1 (en) Bgp anycast cluster service quality detection method and detection apparatus
US10375195B2 (en) Content node selection using network performance profiles
CN103780714A (en) Method and apparatus for probing DNS server
CN105071989A (en) Video content distribution quality monitoring system and monitoring method therefor
EP3066575B1 (en) Server network address selection based on network characteristics of service providers
WO2017058276A1 (en) Persistent edge state of end user devices at cache nodes
CN104301415A (en) Global load balancing method based on HTTP redirection
CN107959704B (en) Data processing method and home gateway
EP3579526B1 (en) Resource file feedback method and apparatus
CN102291458B (en) Method for peer-to-peer (p2p) server framework
CN105357260B (en) Realize system, VDI data cache method and the VDI buffer memory device of virtual desktop
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant