CN111106976B - Detection method and device for CDN network, electronic equipment and readable storage medium - Google Patents

Detection method and device for CDN network, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111106976B
CN111106976B CN201811259182.9A CN201811259182A CN111106976B CN 111106976 B CN111106976 B CN 111106976B CN 201811259182 A CN201811259182 A CN 201811259182A CN 111106976 B CN111106976 B CN 111106976B
Authority
CN
China
Prior art keywords
task
detection
logic
probing
executed
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
CN201811259182.9A
Other languages
Chinese (zh)
Other versions
CN111106976A (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 Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811259182.9A priority Critical patent/CN111106976B/en
Publication of CN111106976A publication Critical patent/CN111106976A/en
Application granted granted Critical
Publication of CN111106976B publication Critical patent/CN111106976B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • H04L41/5012Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF] determining service availability, e.g. which services are available at a certain point in time
    • H04L41/5016Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF] determining service availability, e.g. which services are available at a certain point in time based on statistics of service availability, e.g. in percentage or over a given time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a detection method, a detection device, electronic equipment and a readable storage medium of a CDN (content delivery network), wherein the method comprises the following steps: acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks; determining a second detection task to be executed according to preset detection task logic and a detection result; and sending the second detection task to be executed to an edge node for executing the second detection task to be executed. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.

Description

CDN network detection method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a CDN network, an electronic device, and a readable storage medium.
Background
A Content Delivery Network (CDN) Network is a Network that adds a new Network architecture to the existing internet, and a basic idea of the CDN Network is to avoid bottlenecks and links on the internet that may affect data transmission speed and stability as much as possible, so that Content transmission is faster and more stable. By placing node servers at each position of the network to form a layer of intelligent virtual network on the basis of the existing internet, the CDN can redirect the request of a user to a service node closest to the user in real time according to the network flow, the connection of each node, the load condition, the distance to the user, the response time and other comprehensive information. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user in accessing the website.
In order to ensure efficient and effective operation of the CDN network, a device or a link in the CDN network may be detected to detect whether the device or the link fails, for example, to perform Domain Name detection or DNS (Domain Name System) detection.
However, in the related art, only one probing task can be executed each time a probing task is executed, and after the one probing task is executed, the service personnel needs to determine the next probing task according to the result of the execution of the probing task. The workload of the service personnel is increased.
Disclosure of Invention
The embodiment of the invention aims to provide a detection method and device of a CDN network, electronic equipment and a readable storage medium, so as to reduce the workload of workers. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for detecting a CDN network, where the method includes:
acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
determining a second detection task to be executed according to preset detection task logic and a detection result;
and sending the second detection task to be executed to an edge node for executing the second detection task to be executed.
Optionally, in the preset probing task logic, the first probing task corresponds to a plurality of second probing tasks to be executed; each second detection task has a corresponding preset condition, and the second detection task to be executed is determined according to preset detection task logic and a detection result, and the method comprises the following steps:
analyzing the detection result to obtain an analysis result;
and determining a second detection task to be executed corresponding to the analysis result from the plurality of second detection tasks according to the analysis result and a preset condition corresponding to the plurality of second detection tasks.
Optionally, the obtaining a detection result of a first detection task in the preset detection task logic includes:
and acquiring a detection result reported by the edge node executing the first detection task within a preset validity period.
Optionally, before obtaining a detection result of a first detection task of a preset detection task logic, the method for detecting a CDN network according to the embodiment of the present invention further includes:
receiving parameter information of the probe task logic, wherein the parameter information comprises: detecting identification information and task parameters of task logic;
creating an instance corresponding to the detection task logic according to the parameter information;
a container is created for the instance that runs the probe task logic.
Optionally, after creating a container for running a probing task logic for the instance, the method for probing a CDN network according to the embodiment of the present invention further includes:
determining an edge node for executing the first detection task according to the parameter information through the created container;
and sending the parameter information of the first detection task to the determined edge node.
In a second aspect, an embodiment of the present invention further provides a device for detecting a CDN network, where the device includes:
the acquisition module is used for acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
the first determining module is used for determining a second detection task to be executed according to preset detection task logic and a detection result;
and the first sending module is used for sending the second detection task to be executed to the edge node used for executing the second detection task to be executed.
Optionally, in the preset probing task logic, the first probing task corresponds to a plurality of second probing tasks to be executed; wherein each second probing task has a corresponding predetermined condition, the first determining module comprising:
the analysis submodule is used for analyzing the detection result to obtain an analysis result;
and the determining submodule is used for determining a second detection task to be executed corresponding to the analysis result from the plurality of second detection tasks according to the analysis result and the preset conditions corresponding to the plurality of second detection tasks.
Optionally, the obtaining module is specifically configured to:
and acquiring a detection result reported by the edge node executing the first detection task within a preset validity period.
Optionally, the apparatus for detecting a CDN network according to the embodiment of the present invention further includes:
a receiving module, configured to receive parameter information of a probe task logic, where the parameter information includes: detecting identification information and task parameters of task logic;
the instance creating module is used for creating an instance corresponding to the detection task logic according to the parameter information;
a container creation module to create a container for the instance to run the probe task logic.
Optionally, the apparatus for detecting a CDN network according to the embodiment of the present invention further includes:
the second determining module is used for determining edge nodes for executing the first detection task according to the parameter information through the created container;
and the second sending module is used for sending the parameter information of the first detection task to the determined edge node.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor is caused by the machine-executable instructions to: the steps of the method for detecting the CDN network provided by the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for detecting a CDN network provided in the first aspect are implemented.
In a fifth aspect, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the steps of the method for detecting a CDN network provided in the first aspect.
In a sixth aspect, an embodiment of the present invention further provides a computer program, which when running on a computer, causes the computer to execute the steps of the method for detecting a CDN network provided in the first aspect.
According to the detection method, the detection device, the electronic device and the readable storage medium for the CDN network provided by the embodiments of the present invention, after a detection result of a first detection task in a preset detection task logic is obtained, a second detection task to be executed can be determined according to the preset detection task logic and the detection result, and then the second detection task to be executed can be sent to an edge node for executing the second detection task to be executed, so that the edge node executes the second detection task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a first implementation manner of a detection method for a CDN network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a detection task logic preset in a detection method for a CDN network according to an embodiment of the present invention;
fig. 3 is a flowchart of a second implementation manner of a detection method for a CDN network according to an embodiment of the present invention;
fig. 4 is a flowchart of a third implementation manner of a detection method for a CDN network according to an embodiment of the present invention;
fig. 5 is a flowchart of a fourth implementation manner of a method for detecting a CDN network according to an embodiment of the present invention;
fig. 6 is a flowchart of a fifth implementation manner of a detection method for a CDN network according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a detection device of a CDN network according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a detection method and apparatus for a CDN network, an electronic device, and a readable storage medium, so as to implement a combined detection task according to task logic sent by service personnel, avoid the service personnel configuring the detection task multiple times, and reduce the workload of the service personnel.
Next, a method for detecting a CDN network according to an embodiment of the present invention is first described, as shown in fig. 1, which is a flowchart of a first implementation manner of the method for detecting a CDN network according to the embodiment of the present invention, and in fig. 1, the method may be applied to a server, and the method may include:
s110, acquiring a detection result of a first detection task in preset detection task logic.
In some examples, the preset probing task logic may be a task logic that is previously input into the application server by a service person.
For example, the service personnel may transmit the detection task logic to the server in advance through a terminal device deployed at a remote end, may input the detection task logic into the server in advance through a USB interface card provided locally at the server, and may input the detection task logic into the detection device through an input device provided locally at the server.
Wherein the probe task logic describes an execution order of the plurality of probe tasks.
For example, the probe task logic may be an execution order of the DNS probe task, the delay probe task, and the HTTP probe task, where the execution order is the DNS probe task, the delay probe task, and the HTTP probe task in turn; but not limited to this, for example, the DNS probe task may be executed first, and then the latency probe task and the HTTP probe task may be executed.
When the detection result obtained by the server is a detection result of a DNS detection task, the first detection task is the DNS detection task, and when the detection result obtained by the server is a delay detection task, the first detection task is an HTTP detection task.
In some examples, the server may send the first probe task to the edge node, so that the edge node performs a probe according to the first probe task, and after the edge node performs the probe task, a probe result may be obtained, and then the probe result may be sent to the server, so that the server may obtain the probe result of the first probe task.
The edge node may be a small-sized low-cost smart device, such as a computer, a smart phone, or the like.
In some examples, the first probe task may include a task ID, a task type, a task execution period, a number of task executions, and the like of the first probe task.
And S120, determining a second detection task to be executed according to the preset detection task logic and the detection result.
Specifically, after receiving the detection result of the first detection task, the server may determine, according to a preset detection task logic and the detection result, a second detection task to be executed, in order to determine whether to continue to execute the detection task.
In some examples, the preset probe task logic may further include execution conditions of any two probe tasks, for example, it is assumed that the execution order of the probe tasks in the preset probe task logic is: a DNS probe task, a time delay probe task and an HTTP probe task; or the execution sequence of the detection tasks is to execute the DNS detection task first and then execute the delay detection task and the HTTP detection task, where the execution condition of the delay detection task may be that the detection success rate of the DNS detection task is greater than or equal to a success rate threshold, that is, when the detection success rate of the DNS detection task is greater than or equal to the success rate threshold, the delay detection task may be determined to be the second detection task to be executed.
And S130, sending the second detection task to be executed to the edge node for executing the second detection task to be executed.
After determining the second probing task to be executed, the server may send the second probing task to be executed to the edge node for executing the second probing task to be executed, so that the edge node executes the probing task according to the second probing task.
In the detection method for the CDN network provided by the embodiment of the present invention, after a detection result of a first detection task in preset detection task logic is obtained, a second detection task to be executed may be determined according to the preset detection task logic and the detection result, and then the second detection task to be executed may be sent to an edge node for executing the second detection task to be executed, so that the edge node executes the second detection task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.
In some examples, in the preset probe task logic, the first probe task corresponds to a plurality of second probe tasks, where each of the second probe tasks has a corresponding predetermined condition, for example, as shown in fig. 2, which is a schematic diagram of the probe task logic preset in a probing method for a CDN network according to an embodiment of the present invention, in fig. 2, the task logic may include: the system comprises a DNS probe task 310, a delay probe task 320 and an HTTP probe task 330, wherein the DNS probe task 310 corresponds to the delay probe task 320 and the HTTP probe task 330 respectively, the delay probe task 320 can also correspond to the HTTP probe task 330, the HTTP probe task 330 can also correspond to the delay probe task 320, the delay probe task 320 has a corresponding first predetermined condition, and the HTTP probe task 330 has a corresponding second predetermined condition.
To this end, on the basis of the detection method for the CDN network shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 3, which is a flowchart of a second implementation manner of the detection method for the CDN network according to the embodiment of the present invention, and referring to fig. 3 and S120, determining a second detection task to be executed according to preset detection task logic and a detection result may include:
and S121, analyzing the detection result to obtain an analysis result.
In some examples, the server may send the first probing task to a plurality of edge nodes, and thus, the server may receive a plurality of probing results sent by the plurality of edge nodes. In order to determine the second detection task to be executed, the server may analyze the plurality of detection results to obtain an analysis result.
For example, if the plurality of detection results are a plurality of detection success rates, the server may calculate an average value of the plurality of detection success rates to obtain an average detection success rate, and the analysis result is the average detection success rate.
And S122, determining a second detection task to be executed corresponding to the analysis result from the plurality of second detection tasks according to the analysis result and the preset conditions corresponding to the plurality of second detection tasks.
After the server obtains the analysis result, the server may determine, according to the analysis result and the predetermined conditions corresponding to the plurality of second detection tasks, a second detection task to be executed corresponding to the analysis result.
Specifically, the server may first determine a predetermined condition corresponding to the analysis result, and then determine a probe task corresponding to the predetermined condition, where the probe task corresponding to the predetermined condition is a second probe task to be executed corresponding to the analysis result.
For example, if the first predetermined condition is that the detection success rate of the DNS probe task is greater than or equal to 50%, and the second predetermined condition is that the detection success rate of the DNS probe task is less than 50%, when the average detection success rate is 45%, the analysis result corresponds to the second predetermined condition, and the probe task corresponding to the second predetermined condition is an HTTP probe task, it may be determined that the second probe task to be executed is an HTTP probe task.
On the basis of the detection method for the CDN network shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 4, which is a flowchart of a third implementation manner of the detection method for the CDN network according to the embodiment of the present invention, and in fig. 4, S110 obtains a detection result of a first detection task in a preset detection task logic, where the obtaining may include:
s111, acquiring a detection result reported by the edge node executing the first detection task in a preset validity period.
In some examples, the edge node may be a plurality of edge nodes, and the server may send the first probing task to the plurality of edge nodes.
When the edge node has no fault, the detection result of executing the first detection task can be fed back to the server in time, however, when the edge node has a fault, the detection result of executing the first detection task cannot be fed back in time. Therefore, if the second probing task to be executed is determined using the probing result sent by the edge node with the fault and the probing result sent by the edge node without the fault, the accuracy of determining the second probing task to be executed will be reduced.
For this reason, in order to improve the accuracy of determining the second probe task to be executed, in a possible implementation manner of the probe method for the CDN network according to the embodiment of the present invention, after sending the first probe task to the edge node, the server may start timing by using a timer, where a duration of the timing by the timer may be the predetermined validity period. The predetermined validity period may be a time period set empirically in advance.
When the server finishes the timing and does not receive the detection result of the edge node, it may indicate that the edge node has a failure or that the link between the server and the edge node has a failure. When the second detection task to be executed is determined, the detection result fed back by the edge node with the fault is not used, so that the accuracy of determining the second detection task to be executed can be improved.
In some examples, the server may record the identification information of the edge node that does not feed back the detection result within a predetermined validity period.
By recording the identification information of the edge node which does not feed back the detection result within the preset validity period, the detection task can be prevented from being sent to the edge node when the detection task is sent subsequently.
On the basis of the detection method for the CDN network shown in fig. 1, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 5, which is a flowchart of a fourth implementation manner of the detection method for the CDN network according to the embodiment of the present invention, and in fig. 5, before obtaining a detection result of a first detection task of a preset detection task logic in S110, the detection method for the CDN network according to the embodiment of the present invention may further include:
and S140, receiving parameter information of the detection task logic.
Wherein the parameter information includes: and detecting identification information and task parameters of the task logic.
In some examples, the server may be provided with a task configuration library in advance, and the preset task configuration library stores running instances of each task. Therefore, the service personnel can input the parameter information of the detection task logic into the server so as to generate the corresponding detection task according to the parameter information.
In some examples, the task parameters may include: the task parameters may further include an execution condition corresponding to each probe task in some examples.
And S150, creating an instance corresponding to the detection task logic according to the parameter information.
After the server acquires the parameter information, an operation instance corresponding to the detection task logic can be created according to the parameter information and the preset task configuration library.
In some examples, the running instance may be a computer program that the edge node performs the probing task.
S160, a container for running the detection task logic is created for the example.
Specifically, after the server creates the instance corresponding to the probing task logic, in order to enable the edge node to execute the probing task, the server may determine the edge node that executes the probing task. Also, in order to be able to analyze the detection result fed back by the edge node, here, a container may be created for the instance. The container may include identification information of the edge node, may receive a detection result fed back by the edge node, and may analyze the detection result fed back by the edge node.
By creating a container, each probe task logic can have a corresponding container, and when analyzing a probe result, data analysis can be performed in units of the container. That is, the detection task logic corresponding to each container has a corresponding analysis result, so that subsequent data sorting can be facilitated. The efficiency of follow-up arrangement data is improved.
On the basis of the detection method for the CDN network shown in fig. 5, an embodiment of the present invention further provides a possible implementation, as shown in fig. 6, which is a flowchart of a fifth implementation of the detection method for the CDN network according to the embodiment of the present invention, and in fig. 6, after creating a container for running a detection task logic for an instance in S160, the detection method for the CDN network according to the embodiment of the present invention may further include:
and S170, determining edge nodes for executing the first detection task according to the parameter information through the created container.
Specifically, the container may include identification information of the edge node, and the container may determine the edge node according to the identification information of the edge node.
In some examples, different edge nodes may perform different probing tasks, and therefore, the container may further include a task type of the probing task that each edge node can perform. After creating the container, the server may determine, according to the task type in the parameter information, an edge node that can execute the task of the task type.
That is, by the container, according to the task type in the parameter information of the first probe task, the edge node that can execute the first probe task may be determined.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a detection apparatus for a CDN network, as shown in fig. 7, which is a schematic structural diagram of a first implementation manner of the detection apparatus for a CDN network according to the embodiment of the present invention, and in fig. 7, the apparatus may include:
an obtaining module 710, configured to obtain a detection result of a first detection task in a preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
a first determining module 720, configured to determine a second probe task to be executed according to a preset probe task logic and a probe result;
a first sending module 730, configured to send the second probe task to be executed to an edge node for executing the second probe task to be executed.
In the detection device for the CDN network provided by the embodiment of the present invention, after a detection result of a first detection task in preset detection task logic is obtained, a second detection task to be executed may be determined according to the preset detection task logic and the detection result, and then the second detection task to be executed may be sent to an edge node for executing the second detection task to be executed, so that the edge node executes the second detection task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.
Specifically, in the preset probing task logic, the first probing task corresponds to a plurality of second probing tasks, where each of the second probing tasks has a corresponding predetermined condition, and the first determining module 720 includes:
the analysis submodule is used for analyzing the detection result to obtain an analysis result;
and the determining submodule is used for determining a second detection task to be executed corresponding to the analysis result from the plurality of second detection tasks according to the analysis result and the preset conditions corresponding to the plurality of second detection tasks.
Specifically, the obtaining module 710 is specifically configured to:
and acquiring a detection result reported by the edge node executing the first detection task within a preset validity period.
Specifically, the detection apparatus for a CDN network according to the embodiment of the present invention may further include:
a receiving module, configured to receive parameter information of a probe task logic, where the parameter information includes: detecting identification information and task parameters of task logic;
the instance creating module is used for creating an instance corresponding to the detection task logic according to the parameter information;
a container creation module to create a container for the instance to run the probe task logic.
Specifically, the detection apparatus for a CDN network according to the embodiment of the present invention may further include:
the second determining module is used for determining edge nodes for executing the first detection task according to the parameter information through the created container;
and the second sending module is used for sending the parameter information of the first detection task to the determined edge node.
An electronic device is further provided, as shown in fig. 8, and is a schematic structural diagram of the electronic device to which the method for detecting a CDN network according to the embodiment of the present invention is applied, where the electronic device may include a processor 810 and a machine-readable storage medium 820, where the machine-readable storage medium 820 stores machine-executable instructions capable of being executed by the processor 810, and the processor 810 is caused by the machine-executable instructions to: the method for detecting the CDN network includes the following steps, which may be implemented in one embodiment of the present invention:
acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
determining a second detection task to be executed according to preset detection task logic and a detection result;
and sending the second detection task to be executed to an edge node for executing the second detection task to be executed.
The machine-readable storage medium 820 may include a Random Access Memory (RAM) and may also include a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor 820 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
According to the electronic device provided by the embodiment of the invention, after the detection result of the first detection task in the preset detection task logic is obtained, the second detection task to be executed can be determined according to the preset detection task logic and the detection result, and then the second detection task to be executed can be sent to the edge node for executing the second detection task to be executed, so that the edge node executes the second detection task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the method for detecting a CDN network, where in an embodiment of the present invention, the following steps may be implemented:
acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
determining a second detection task to be executed according to preset detection task logic and a detection result;
and sending the second detection task to be executed to an edge node for executing the second detection task to be executed.
In the computer-readable storage medium provided in the embodiment of the present invention, after a detection result of a first detection task in preset detection task logic is obtained, a second detection task to be executed may be determined according to the preset detection task logic and the detection result, and then the second detection task to be executed may be sent to an edge node for executing the second detection task to be executed, so that the edge node executes the second detection task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.
An embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, causes the computer to execute the steps of the method for detecting a CDN network, where in an embodiment of the present invention, the following steps may be implemented:
acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
determining a second detection task to be executed according to preset detection task logic and a detection result;
and sending the second detection task to be executed to an edge node for executing the second detection task to be executed.
According to the computer program product including the instruction provided by the embodiment of the invention, after the detection result of the first detection task in the preset detection task logic is obtained, the second detection task to be executed can be determined according to the preset detection task logic and the detection result, and then the second detection task to be executed can be sent to the edge node for executing the second detection task to be executed, so that the edge node executes the second detection task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.
An embodiment of the present invention further provides a computer program, which when running on a computer, causes the computer to execute the steps of the detection method for the CDN network, where in an embodiment of the present invention, the following steps may be implemented:
acquiring a detection result of a first detection task in a preset detection task logic; wherein the probe task logic describes an execution order of the plurality of probe tasks;
determining a second detection task to be executed according to preset detection task logic and a detection result;
and sending the second detection task to be executed to an edge node for executing the second detection task to be executed.
In the computer program provided in the embodiment of the present invention, after a probe result of a first probe task in preset probe task logic is obtained, a second probe task to be executed may be determined according to the preset probe task logic and the probe result, and then the second probe task to be executed may be sent to an edge node for executing the second probe task to be executed, so that the edge node executes the second probe task. By the embodiment of the invention, the service personnel can only set the detection task logic, and the server can determine the detection task to be executed according to the detection task logic and the detection result, so that the condition that the service personnel sends the detection task to the server for multiple times when carrying out multiple detection tasks can be avoided, and the workload of the service personnel can be reduced.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A detection method of a CDN network is applied to a server, and the method comprises the following steps:
acquiring a detection result of a first detection task in a preset detection task logic; wherein the probe task logic describes an execution order of a plurality of probe tasks; the first detection task comprises a task ID, a task type, a task execution period and/or task execution times;
determining a second detection task to be executed according to the preset detection task logic and the detection result;
and sending the second detection task to be executed to an edge node for executing the second detection task to be executed.
2. The method according to claim 1, wherein in the preset probing task logic, the first probing task corresponds to a plurality of second probing tasks; wherein each second probing task has a corresponding predetermined condition, and determining the second probing task to be executed according to the preset probing task logic and the probing result includes:
analyzing the detection result to obtain an analysis result;
and determining a second detection task to be executed corresponding to the analysis result from the plurality of second detection tasks according to the analysis result and a preset condition corresponding to the plurality of second detection tasks.
3. The method according to claim 1, wherein the obtaining the probing result of the first probing task in the preset probing task logic comprises:
and acquiring the detection result reported by the edge node executing the first detection task within a preset validity period.
4. The method of claim 1, wherein prior to the obtaining the probing result of the first probing task of the preset probing task logic, the method further comprises:
receiving parameter information of the probe task logic, wherein the parameter information includes: the identification information of the detection task logic and the task parameters;
creating an instance corresponding to the detection task logic according to the parameter information;
creating a container for the instance to run the probe task logic.
5. The method of claim 4, wherein after the creating a container for the instance to run the probe task logic, the method further comprises:
determining, by the created container, the edge node for performing the first probing task according to the parameter information;
and sending the parameter information of the first detection task to the determined edge node.
6. A detection device of a CDN network, the device comprising:
the acquisition module is used for acquiring a detection result of a first detection task in preset detection task logic; wherein the probe task logic describes an execution order of a plurality of probe tasks; the first detection task comprises a task ID, a task type, a task execution period and/or task execution times;
the first determining module is used for determining a second detection task to be executed according to the preset detection task logic and the detection result;
and the first sending module is used for sending the second detection task to be executed to the edge node used for executing the second detection task to be executed.
7. The apparatus according to claim 6, wherein in the preset probing task logic, the first probing task corresponds to a plurality of second probing tasks, each of the second probing tasks to be executed has a corresponding predetermined condition, and the determining module includes:
the analysis submodule is used for analyzing the detection result to obtain an analysis result;
and the determining submodule is used for determining a second detection task to be executed corresponding to the analysis result from the plurality of second detection tasks according to the analysis result and the preset conditions corresponding to the plurality of second detection tasks.
8. The apparatus of claim 6, wherein the obtaining module is specifically configured to:
and acquiring the detection result reported by the edge node executing the first detection task within a preset validity period.
9. The apparatus of claim 6, further comprising:
a receiving module, configured to receive parameter information of the probe task logic, where the parameter information includes: identification information of the detection task logic and task parameters;
the instance creating module is used for creating an instance corresponding to the detection task logic according to the parameter information;
and the container creating module is used for creating a container for running the detection task logic for the example.
10. The apparatus of claim 9, further comprising:
a second determining module, configured to determine, according to the parameter information, the edge node for executing the first probing task through the created container;
and the second sending module is used for sending the parameter information of the first detection task to the determined edge node.
11. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the process steps of any one of claims 1 to 5.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 5.
CN201811259182.9A 2018-10-26 2018-10-26 Detection method and device for CDN network, electronic equipment and readable storage medium Active CN111106976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811259182.9A CN111106976B (en) 2018-10-26 2018-10-26 Detection method and device for CDN network, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811259182.9A CN111106976B (en) 2018-10-26 2018-10-26 Detection method and device for CDN network, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111106976A CN111106976A (en) 2020-05-05
CN111106976B true CN111106976B (en) 2022-09-02

Family

ID=70418639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811259182.9A Active CN111106976B (en) 2018-10-26 2018-10-26 Detection method and device for CDN network, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111106976B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165517B (en) * 2020-09-22 2022-09-20 成都知道创宇信息技术有限公司 Return source detection method and device, storage medium and electronic equipment
CN112671830B (en) * 2020-12-02 2023-05-30 武汉联影医疗科技有限公司 Resource scheduling method, system, device, computer equipment and storage medium
CN113242327B (en) * 2021-04-23 2023-06-02 北京汇钧科技有限公司 Scheduling analysis method, scheduling analysis device, computer equipment and storage medium
CN114024877B (en) * 2021-10-29 2023-02-17 恒安嘉新(北京)科技股份公司 Host survival detection method and device, computer equipment and storage medium
CN114584485B (en) * 2022-01-30 2023-10-31 阿里巴巴(中国)有限公司 Method, apparatus, device and computer readable storage medium for detecting edge network quality

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136969A (en) * 2011-02-17 2011-07-27 北京蓝汛通信技术有限责任公司 Method, device and system for probing link quality
CN106533826A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Network state detection method and system
CN108270634A (en) * 2016-12-30 2018-07-10 中移(苏州)软件技术有限公司 A kind of method and system of heartbeat detection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517228B (en) * 2016-06-15 2021-03-05 阿里巴巴集团控股有限公司 Dynamic acceleration method and device in content distribution network
CN106549827A (en) * 2016-10-21 2017-03-29 乐视控股(北京)有限公司 The detection method and device of network state

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136969A (en) * 2011-02-17 2011-07-27 北京蓝汛通信技术有限责任公司 Method, device and system for probing link quality
CN106533826A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Network state detection method and system
CN108270634A (en) * 2016-12-30 2018-07-10 中移(苏州)软件技术有限公司 A kind of method and system of heartbeat detection

Also Published As

Publication number Publication date
CN111106976A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111106976B (en) Detection method and device for CDN network, electronic equipment and readable storage medium
US20190394233A1 (en) Method and apparatus for analyzing cyberattack
US9451017B2 (en) Method and system for combining trace data describing multiple individual transaction executions with transaction processing infrastructure monitoring data
US10904112B2 (en) Automatic capture of detailed analysis information based on remote server analysis
RU2017111477A (en) Methods and systems for determining non-standard user activity
US11200086B1 (en) Asynchronous transactions reported as critical path
US10382298B2 (en) Automatic web page load detection
KR101904436B1 (en) Machine learning based identification of broken network connections
US20200327045A1 (en) Test System and Test Method
US20160080267A1 (en) Monitoring device, server, monitoring system, monitoring method and program recording medium
CN109560976B (en) Message delay monitoring method and device
CN111611140B (en) Report verification method and device for buried point data, electronic equipment and storage medium
US20180095819A1 (en) Incident analysis program, incident analysis method, information processing device, service identification program, service identification method, and service identification device
US10534685B2 (en) Application monitoring
US20210383059A1 (en) Attribution Of Link Selection By A User
CN111008109A (en) Monitoring data processing method and device, electronic equipment and storage medium
US8326973B2 (en) Techniques for gauging performance of services
US20150281037A1 (en) Monitoring omission specifying program, monitoring omission specifying method, and monitoring omission specifying device
CN115271736A (en) Method, device, equipment, storage medium and product for verifying transaction consistency
CN112653736B (en) Parallel source returning method and device and electronic equipment
Lee et al. ATMSim: An anomaly teletraffic detection measurement analysis simulator
CN103731315A (en) Server failure detecting method
CN108664493B (en) Method and device for counting validity of URL (Uniform resource locator), electronic equipment and storage medium
WO2015195407A1 (en) Method and apparatus for monitoring and determining page load times
US20190068736A1 (en) Push control

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