CN108965066B - Method and device for detecting transmission path - Google Patents

Method and device for detecting transmission path Download PDF

Info

Publication number
CN108965066B
CN108965066B CN201811206588.0A CN201811206588A CN108965066B CN 108965066 B CN108965066 B CN 108965066B CN 201811206588 A CN201811206588 A CN 201811206588A CN 108965066 B CN108965066 B CN 108965066B
Authority
CN
China
Prior art keywords
interval
network
detection
task
network detection
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
CN201811206588.0A
Other languages
Chinese (zh)
Other versions
CN108965066A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201811206588.0A priority Critical patent/CN108965066B/en
Publication of CN108965066A publication Critical patent/CN108965066A/en
Application granted granted Critical
Publication of CN108965066B publication Critical patent/CN108965066B/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
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

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

Abstract

The invention discloses a method and a device for detecting a transmission path, and belongs to the technical field of data transmission. The method comprises the following steps: when receiving data traffic pointing to a destination address, judging whether a network detection task aiming at the destination address exists locally; if yes, adding one to the recorded receiving times of the data flow pointing to the destination address, otherwise, creating the network detection task; and when the receiving times are larger than a preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task. The invention can reduce the detection frequency of the destination address with low heat degree, increase the detection frequency of the destination address with high heat degree, reduce the occupation of bandwidth resources and ensure the network acceleration effect of data transmission.

Description

Method and device for detecting transmission path
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method and an apparatus for detecting a transmission path.
Background
An application acceleration network is a network deployed between a sending end and a receiving end for accelerating data transmission. When the sending end transmits data to a destination address (namely, a receiving end address) through the application acceleration network, the sending end can send the data to an entrance acceleration node of the application acceleration network, and the entrance acceleration node can transmit the data to the receiving end through an optimal transmission path reaching the receiving end in the application acceleration network.
In the specific processing, each time the entry acceleration node receives data traffic directed to the destination address, a network detection task for the destination address may be newly added, and corresponding task parameters (including duration, detection interval, and the like) are configured, so as to obtain network states (including transmission delay, transmission packet loss rate, acceleration node load, path bandwidth utilization rate, and the like) of multiple transmission paths from the entry acceleration node to the destination address, thereby determining an optimal transmission path for subsequent data transmission. In the network detection process, if the data traffic pointing to the destination address is received again, the entry acceleration node can reset the duration of the network detection task and continue to perform network detection according to the original detection interval. For example, if the duration is 90 seconds and the probing interval is 30 seconds, the network probing task is triggered every 30 seconds for a total of four times.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
when network detection is carried out, if the detection frequency of a network detection task is too high, the service performance of a receiving end is influenced, even the network detection task is determined as attack, and meanwhile, more bandwidth resources are occupied; if the detection frequency of the network detection task is too low, the real-time performance and accuracy of the detected network state are poor, and the network acceleration effect during data transmission is influenced with a high probability.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for detecting a transmission path. The technical scheme is as follows:
in a first aspect, a method for probing a transmission path is provided, the method including:
when receiving data traffic pointing to a destination address, judging whether a network detection task aiming at the destination address exists locally;
if yes, adding one to the recorded receiving times of the data flow pointing to the destination address, otherwise, creating the network detection task;
and when the receiving times are larger than a preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task.
Optionally, after the network probing task is executed, the method further includes:
counting the receiving times of the data flow pointing to the destination address in the single detection interval duration of the network detection task;
and adjusting the detection interval of the network detection task according to the receiving times of the data traffic and a preset interval adjustment threshold value.
Optionally, the adjusting the detection interval of the network detection task according to the number of times of receiving the data traffic and a preset interval adjustment threshold includes:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
if the receiving times are equal to the interval adjustment threshold, keeping the detection interval of the network detection task unchanged;
and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times.
Optionally, the adjusting the detection interval of the network detection task according to the number of times of receiving the data traffic and a preset interval adjustment threshold includes:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
Optionally, the method further includes:
and at the starting moment of each detection interval of the network detection task, adjusting the interval adjustment threshold according to the receiving times of the data traffic pointing to the destination address counted in the duration of a plurality of historical detection intervals.
Optionally, the method further includes:
and if the data transmission state between the local address and the destination address is detected to be abnormal, immediately triggering network detection, and resetting the duration and the detection interval of the network detection task.
Optionally, the method further includes:
and adjusting the hot address threshold according to the time difference between the current time and the execution time of the last network detection.
In a second aspect, there is provided an apparatus for probing a transmission path, the apparatus comprising:
the receiving module is used for judging whether a network detection task aiming at the destination address exists locally or not when receiving the data traffic pointing to the destination address;
the judging module is used for adding one to the recorded receiving times of the data traffic pointing to the destination address if the network detection task exists, or else, the network detection task is created;
and the execution module is used for executing the network detection task and resetting the duration of the network detection task when the receiving times are greater than a preset hot address threshold value.
Optionally, the apparatus further includes an adjusting module, configured to:
counting the receiving times of the data flow pointing to the destination address in the single detection interval duration of the network detection task;
and adjusting the detection interval of the network detection task according to the receiving times of the data traffic and a preset interval adjustment threshold value.
Optionally, the adjusting module is specifically configured to:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
if the receiving times are equal to the interval adjustment threshold, keeping the detection interval of the network detection task unchanged;
and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times.
Optionally, the adjusting module is specifically configured to:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
Optionally, the adjusting module is further configured to:
and at the starting moment of each detection interval of the network detection task, adjusting the interval adjustment threshold according to the receiving times of the data traffic pointing to the destination address counted in the duration of a plurality of historical detection intervals.
Optionally, the execution module is further configured to:
and if the data transmission state between the local address and the destination address is detected to be abnormal, immediately triggering network detection, and resetting the duration and the detection interval of the network detection task.
Optionally, the apparatus further includes an adjusting module, configured to:
and adjusting the hot address threshold according to the time difference between the current time and the execution time of the last network detection.
In a third aspect, there is provided an entry acceleration node comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the method of probing transmission paths according to the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the method of probing transmission paths as described in the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when data traffic pointing to a destination address is received, whether a network detection task aiming at the destination address exists locally is judged; if yes, adding one to the recorded receiving times of the data flow pointing to the destination address, otherwise, creating a network detection task; and when the receiving times are more than the preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task. Therefore, the heat degree of the destination address can be judged and identified by counting the data transmission times of the destination address, and the detection frequency of the network detection task for the destination address is adjusted based on the heat degree, so that the detection frequency of the destination address with low heat degree can be reduced, the detection frequency of the destination address with high heat degree can be increased, the occupation of bandwidth resources is reduced, and the network acceleration effect of data transmission is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a network framework diagram of an application acceleration network according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for detecting a transmission path according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for detecting a transmission path according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for detecting a transmission path according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an entry acceleration node according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for detecting a transmission path, wherein an execution main body of the method can be an entrance acceleration node of an application acceleration network, a network framework of the application acceleration network can be shown in figure 1, the application acceleration network can be composed of a plurality of acceleration nodes, and the acceleration nodes can be mainly divided into an entrance acceleration node, a middle acceleration node and an exit acceleration node.
The entry acceleration node may be configured to receive a data flow sent by the sending end to the receiving end, transmit the data flow to a last-hop acceleration node (i.e., an exit acceleration node) connected to the receiving end through one or more stages of intermediate acceleration nodes (no intermediate acceleration node may exist in a transmission path) in the application acceleration network according to a preset transmission path, and send the data flow to the receiving end by the exit acceleration node.
The entrance acceleration node can also detect all transmission paths reaching a receiving end in the application acceleration network while transmitting the data traffic, and select or modify a preset transmission path according to a detection result so as to ensure that the preset transmission path is always the path with the optimal transmission quality.
The entry acceleration node may include a processor, a memory, and a transceiver, where the processor may be configured to perform a process of performing network probing on the transmission path in the following process, the memory may be configured to store data required in the process and generated data, such as the number of times of receiving data traffic, task parameters of a network probing task, and the like, and the transceiver may be configured to receive and transmit related data in the process, such as receiving data traffic, transmitting a probe message, and the like. It is understood that one acceleration node may implement the functions of an ingress acceleration node, an intermediate acceleration node, or an egress acceleration node, respectively, during different data transmission processes.
The process flow shown in fig. 2 will be described in detail below with reference to the specific embodiments, and the contents may be as follows:
step 201, when receiving data traffic pointing to a destination address, determining whether a network probing task for the destination address exists locally.
In implementation, when the sending end sends data traffic to the receiving end through the application acceleration network, the entry acceleration node connected to the sending end in the application acceleration network may receive the data traffic pointing to the receiving end, and determine the network address (i.e., the destination address) of the receiving end based on information carried in the data traffic, and then the entry acceleration node may locally search a preset transmission path to the destination address, and may further transmit the data traffic to the receiving end through the transmission path. Meanwhile, when determining the destination address based on the data traffic, the entry acceleration node may also determine whether a network detection task for the destination address already exists locally.
Specifically, the network probing task may include probing network transmission performance such as a network transmission rate, a packet loss rate, and a bandwidth utilization rate.
And step 202, if the network probe task exists, adding one to the recorded receiving times of the data traffic pointing to the destination address, otherwise, creating the network probe task.
In an implementation, the entry acceleration node may, after creating a network probe task for a certain destination address, temporarily not immediately execute the network probe task, but first record the number of times of receiving data traffic directed to the destination address. Therefore, if the network detection task aiming at the destination address exists locally, the entrance acceleration node can add one to the recorded receiving times of the data traffic pointing to the destination address; if the network detection task aiming at the destination address does not exist locally, the network detection task aiming at the destination address can be established, corresponding task parameters such as detection interval, duration and the like are set, and meanwhile, the receiving times of the data traffic pointing to the destination address can be recorded.
And step 203, when the receiving times are larger than a preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task.
In implementation, after the entry acceleration node modifies the number of times of receiving the data traffic directed to the destination address each time, the entry acceleration node may determine a size relationship between the number of times of receiving and a preset hot address threshold. When the receiving times are greater than a preset hot address threshold, it can be stated that the heat of the destination address reaches a degree worth detecting, the network probing task can be executed, and the duration of the network probing task is reset, where the duration of the network probing task refers to a duration that can exist continuously after the network probing task is created, that is, a duration from creation to logout, and during the duration, the execution of the network probing task can be triggered based on the judgment of the hot address threshold, that is, the network probing task is in a waiting execution state after being created, if the network probing task is triggered within the duration, the probing is executed, and if the network probing task is not triggered within the duration, the probing will not be executed.
It should be noted that, after triggering the execution of the network probing task, the ingress acceleration node will continue to execute the network probing task based on the probing interval that the network probing task already has, during which, when the ingress acceleration node receives the data traffic directed to the destination address, the duration of the network probing task may be reset.
For example, the entry acceleration node creates a network probe task pointing to the destination address at 10 min 00 s, and sets the duration of the network probe task to be 90 s and the probe interval to be 30 s, that is, normally, the network probe task will be logged off at 11 min 30 s.
At 10 minutes and 20 seconds, the entry acceleration node determines that the number of times of receiving the data traffic directed to the destination address is greater than a preset hot address threshold, immediately triggers the execution of the network probing task, that is, executes the network probing task once at 10 minutes and 20 seconds, wherein the time for executing the network probing task once is about 3 seconds, and executes the network probing task based on the probing interval of 30 seconds within the duration of the network probing task, that is, before 11 minutes and 30 seconds, that is, executes the network probing task once at two time points of 10 minutes and 50 seconds and 11 minutes and 20 seconds, respectively.
Before 11 minutes and 30 seconds, each time data traffic directed to the destination address is received, the ingress acceleration node may reset the duration of the network probing task, where the resetting is specifically to reset the duration of the network probing task by using the time point of receiving the data traffic directed to the destination address as a starting point and by using 90 seconds as an extension length, that is, if the ingress acceleration node receives the data traffic directed to the destination address at 10 minutes and 50 seconds, the duration of the network probing task is extended by 90 seconds, that is, the network probing task is to be cancelled at 12 minutes and 20 seconds.
Optionally, in the process of executing the network probing task, the probing interval of the network probing task may be adjusted in real time according to the heat of the destination address, and accordingly, the following processing may be performed after step 203: counting the receiving times of data flow pointing to a destination address within a single detection interval duration of a network detection task; and adjusting the detection interval of the network detection task according to the receiving times of the data flow and a preset interval adjustment threshold value.
In implementation, after the network probe task is executed, the entry acceleration node may trigger the execution of the network probe task according to an initial probe interval, and may count the number of times of receiving the data traffic directed to the destination address in each probe interval duration of the network probe task by using the probe interval as a unit. Then, when each detection interval is finished, the detection interval of the network detection task is adjusted according to the counted receiving times of the data traffic and a preset interval adjustment threshold, the network detection task is executed according to the adjusted detection interval, the receiving times are counted according to the adjusted detection interval duration, and then the detection interval is adjusted when the adjusted detection interval is finished. Therefore, the heat degree of the destination address can be judged according to the receiving times of the data flow, so that different detection intervals can be flexibly set for the destination addresses with different heat degrees. Specifically, for a destination address with high heat, the detection frequency can be increased by shortening the detection interval, so that the real-time performance of the detection result can be ensured, and for a destination address with low heat, the detection frequency can be reduced by enlarging the detection interval, so that the resource for network detection is saved.
Alternatively, the above mechanism for adjusting the sounding interval may be various, and two possible mechanisms are given as follows:
one is as follows: if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times; if the receiving times are equal to the interval adjustment threshold, keeping the detection interval of the network detection task unchanged; and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times.
In implementation, in the process of adjusting the detection interval by the ingress acceleration node at the end of each detection interval, it may be determined that the number of times of receiving the data traffic directed to the destination address within the duration of the current detection interval is equal to the preset interval adjustment threshold. If the receiving times are smaller than the interval adjustment threshold, the detection interval of the network detection task can be expanded based on the numerical value of the receiving times; if the receiving times are equal to the interval adjustment threshold, the detection interval of the network detection task can be kept unchanged; and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times. For example, if the interval adjustment threshold is 5, the sounding interval is 30 seconds, and the number of receptions is 4, the sounding interval may be increased by (5-4)/5 times, and if the number of receptions is 6, the sounding interval may be decreased by (6-5)/5 times. The above description only exemplarily shows one possible scheme for adjusting the sounding interval, and the present embodiment does not limit a specific scheme for adjusting the sounding interval based on the value of the number of times of reception.
The second step is as follows: if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times; and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
In implementation, in the process of adjusting the detection interval by the ingress acceleration node at the end of each detection interval, it may be determined that the number of times of receiving the data traffic directed to the destination address within the duration of the current detection interval is equal to the preset interval adjustment threshold. If the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times; and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
It is worth mentioning that, in order to avoid the detection interval of the network detection task from being infinitely increased or infinitely decreased, the detection interval is ensured to be within a controllable range, the detection interval of the network detection task may be set to a maximum value and a minimum value, that is, no matter what value the receiving times is, the adjusted detection interval is not greater than the maximum value or less than the minimum value, if the adjusted detection interval is greater than the maximum value, the value is the maximum value, and similarly, if the adjusted detection interval is less than the minimum value, the value is the minimum value.
Optionally, in the process of adjusting the detection interval, the interval adjustment threshold may be adjusted according to the counted receiving times, and the corresponding processing may be as follows: and at the starting moment of each detection interval of the network detection task, adjusting the interval adjustment threshold according to the receiving times of the data traffic pointing to the destination address counted in the plurality of historical detection interval durations.
In implementation, in the process of executing the network probing task, the entry acceleration node may obtain, at the start time of each probing interval of the network probing task, the number of times of receiving data traffic pointing to the destination address counted within a plurality of historical probing interval durations, and then adjust the interval adjustment threshold according to the number of times of receiving the data traffic.
Specifically, different historical detection intervals corresponding to different addition weights can be set, a difference obtained by subtracting the receiving times from the interval adjustment threshold in each historical detection interval is calculated, and the difference of each historical detection interval is multiplied by the addition weight and then accumulated with the default interval adjustment threshold, so that a new interval adjustment threshold can be obtained. If 3 historical detection intervals are taken, the corresponding addition weights are 0.1, 0.3 and 0.5 in sequence, the corresponding interval adjustment thresholds are 3, 4 and 3 in sequence, the corresponding receiving times are 2, 5 and 4 in sequence, the default interval adjustment threshold is 3, and then the adjusted interval adjustment threshold is 2. It is easy to understand that the receiving times of the historical statistics are combined, the cold and hot degree of the destination address is measured integrally and is embodied in the form of interval adjustment threshold, so that the situation that the detection interval is too large and the entrance acceleration node cannot update the optimal transmission path in time due to the sudden reduction of data flow in a certain detection interval can be avoided.
Optionally, when a preset optimal transmission path fails, network detection may be performed immediately, and corresponding processing may be as follows: and if the data transmission state between the local address and the destination address is detected to be abnormal, immediately triggering network detection, and resetting the duration and the detection interval of the network detection task.
In implementation, the ingress network node may continuously detect a data transmission state between the local and the destination address, that is, detect a network state of a transmission path that is preset locally and reaches the destination address. When the data transmission state is detected to be abnormal, one-time network detection can be immediately triggered, and the duration and the detection interval of the network detection task are reset, so that an available transmission path can be timely reselected, and the problem that data flow cannot be transmitted for a long time due to the fault of the optimal transmission path is avoided. It should be noted that the data transmission status referred to herein is abnormal, including the case where the transmission path to the destination address is not preset locally.
Alternatively, if the network probing task for the destination address is not executed for a long time, the hot address threshold may be appropriately reduced, and the corresponding processing may be as follows: and adjusting the hot address threshold according to the time difference between the current time and the execution time of the last network detection.
In implementation, the entry acceleration node may start timing after each network probe is executed, and after a certain time period elapses, the hot address threshold may be adjusted according to a time difference between a current time and an execution time of a last network probe. For example, if the time difference between the current time and the execution time of the last network probe is 5min, the hot address threshold may be decreased by 1, and if the time difference is 7min, the hot address threshold may be decreased by 1 again. Therefore, under the condition that the data flow is not received for a long time, the preset transmission path can be ensured to have better data transmission quality to a certain extent, and the situation that the transmission path cannot be replaced in time when the data transmission quality of the preset transmission path greatly slides down due to the fact that the thermal address threshold is set to be too high and the network detection task is not executed for a long time is avoided.
In the embodiment of the invention, when data traffic pointing to a destination address is received, whether a network detection task aiming at the destination address exists locally is judged; if yes, adding one to the recorded receiving times of the data flow pointing to the destination address, otherwise, creating a network detection task; and when the receiving times are more than the preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task. Therefore, the heat degree of the destination address can be judged and identified by counting the data transmission times of the destination address, and the detection frequency of the network detection task for the destination address is adjusted based on the heat degree, so that the detection frequency of the destination address with low heat degree can be reduced, the detection frequency of the destination address with high heat degree can be increased, the occupation of bandwidth resources is reduced, and the network acceleration effect of data transmission is ensured.
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for detecting a transmission path, as shown in fig. 3, the apparatus includes:
a receiving module 301, configured to determine whether a network probing task for a destination address exists locally when receiving data traffic directed to the destination address;
a judging module 302, configured to add one to the recorded receiving times of the data traffic pointing to the destination address if the data traffic exists, and otherwise, create the network probing task;
an executing module 303, configured to execute the network probing task and reset a duration of the network probing task when the receiving number is greater than a preset hot address threshold.
Optionally, as shown in fig. 4, the apparatus further includes an adjusting module 304, configured to:
counting the receiving times of the data flow pointing to the destination address in the single detection interval duration of the network detection task;
and adjusting the detection interval of the network detection task according to the receiving times of the data traffic and a preset interval adjustment threshold value.
Optionally, the adjusting module 304 is specifically configured to:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
if the receiving times are equal to the interval adjustment threshold, keeping the detection interval of the network detection task unchanged;
and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times.
Optionally, the adjusting module 304 is specifically configured to:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
Optionally, the adjusting module 304 is further configured to:
and at the starting moment of each detection interval of the network detection task, adjusting the interval adjustment threshold according to the receiving times of the data traffic pointing to the destination address counted in the duration of a plurality of historical detection intervals.
Optionally, the executing module 303 is further configured to:
and if the data transmission state between the local address and the destination address is detected to be abnormal, immediately triggering network detection, and resetting the duration and the detection interval of the network detection task.
Optionally, as shown in fig. 4, the apparatus further includes an adjusting module 304, configured to:
and adjusting the hot address threshold according to the time difference between the current time and the execution time of the last network detection.
In the embodiment of the invention, when data traffic pointing to a destination address is received, whether a network detection task aiming at the destination address exists locally is judged; if yes, adding one to the recorded receiving times of the data flow pointing to the destination address, otherwise, creating a network detection task; and when the receiving times are more than the preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task. Therefore, the heat degree of the destination address can be judged and identified by counting the data transmission times of the destination address, and the detection frequency of the network detection task for the destination address is adjusted based on the heat degree, so that the detection frequency of the destination address with low heat degree can be reduced, the detection frequency of the destination address with high heat degree can be increased, the occupation of bandwidth resources is reduced, and the network acceleration effect of data transmission is ensured.
It should be noted that: in the apparatus for detecting a transmission path according to the above embodiment, when the transmission path is detected, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for detecting a transmission path and the method for detecting a transmission path provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 5 is a schematic structural diagram of an entry acceleration node according to an embodiment of the present invention. The entry acceleration node 500 may vary significantly due to configuration or performance differences and may include one or more central processors 522 (e.g., one or more processors) and memory 532, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 542 or data 544. Memory 532 and storage media 530 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the ingress acceleration node 500. Still further, central processor 522 may be configured to communicate with storage medium 530 to execute a series of instruction operations in storage medium 530 on ingress acceleration node 500.
The entry acceleration node 500 may also include one or more power supplies 529, one or more wired or wireless network interfaces 550, one or more input-output interfaces 558, one or more keyboards 556, and/or one or more operating systems 541, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
The entry acceleration node 500 may include a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the probing of the transmission path as described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A method of probing a transmission path, the method comprising:
when receiving data traffic pointing to a destination address, judging whether a network detection task aiming at the destination address exists locally;
if yes, adding one to the recorded receiving times of the data flow pointing to the destination address, otherwise, creating the network detection task;
and when the receiving times are larger than a preset hot address threshold value, executing the network detection task and resetting the duration of the network detection task.
2. The method of claim 1, wherein after the performing the network probing task, further comprises:
counting the receiving times of the data flow pointing to the destination address in the single detection interval duration of the network detection task;
and adjusting the detection interval of the network detection task according to the receiving times of the data traffic and a preset interval adjustment threshold value.
3. The method according to claim 2, wherein the adjusting the probing interval of the network probing task according to the number of times of receiving the data traffic and a preset interval adjustment threshold comprises:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
if the receiving times are equal to the interval adjustment threshold, keeping the detection interval of the network detection task unchanged;
and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times.
4. The method according to claim 2, wherein the adjusting the probing interval of the network probing task according to the number of times of receiving the data traffic and a preset interval adjustment threshold comprises:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
5. The method according to any one of claims 2-4, further comprising:
and at the starting moment of each detection interval of the network detection task, adjusting the interval adjustment threshold according to the receiving times of the data traffic pointing to the destination address counted in the duration of a plurality of historical detection intervals.
6. The method of claim 1, further comprising:
and if the data transmission state between the local address and the destination address is detected to be abnormal, immediately triggering network detection, and resetting the duration and the detection interval of the network detection task.
7. The method of claim 1, further comprising:
and adjusting the hot address threshold according to the time difference between the current time and the execution time of the last network detection.
8. An apparatus for probing a transmission path, the apparatus comprising:
the receiving module is used for judging whether a network detection task aiming at the destination address exists locally or not when receiving the data traffic pointing to the destination address;
the judging module is used for adding one to the recorded receiving times of the data traffic pointing to the destination address if the network detection task exists, or else, the network detection task is created;
and the execution module is used for executing the network detection task and resetting the duration of the network detection task when the receiving times are greater than a preset hot address threshold value.
9. The apparatus of claim 8, further comprising an adjustment module to:
counting the receiving times of the data flow pointing to the destination address in the single detection interval duration of the network detection task;
and adjusting the detection interval of the network detection task according to the receiving times of the data traffic and a preset interval adjustment threshold value.
10. The apparatus of claim 9, wherein the adjustment module is specifically configured to:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
if the receiving times are equal to the interval adjustment threshold, keeping the detection interval of the network detection task unchanged;
and if the receiving times are larger than the interval adjusting threshold, reducing the detection interval of the network detection task based on the numerical value of the receiving times.
11. The apparatus of claim 9, wherein the adjustment module is specifically configured to:
if the receiving times are smaller than the interval adjustment threshold, expanding the detection interval of the network detection task based on the value of the receiving times;
and if the receiving times are not less than the interval adjustment threshold, adjusting the detection interval of the network detection task to an initial value.
12. The apparatus according to any one of claims 9-11, wherein the adjusting module is further configured to:
and at the starting moment of each detection interval of the network detection task, adjusting the interval adjustment threshold according to the receiving times of the data traffic pointing to the destination address counted in the duration of a plurality of historical detection intervals.
13. The apparatus of claim 8, wherein the execution module is further configured to:
and if the data transmission state between the local address and the destination address is detected to be abnormal, immediately triggering network detection, and resetting the duration and the detection interval of the network detection task.
14. The apparatus of claim 8, further comprising an adjustment module to:
and adjusting the hot address threshold according to the time difference between the current time and the execution time of the last network detection.
15. An entry acceleration node, characterized in that it comprises a processor and a memory, in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement the method of probing transmission paths according to any of claims 1 to 7.
16. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of probing a transmission path as claimed in any one of claims 1 to 7.
CN201811206588.0A 2018-10-17 2018-10-17 Method and device for detecting transmission path Active CN108965066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811206588.0A CN108965066B (en) 2018-10-17 2018-10-17 Method and device for detecting transmission path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811206588.0A CN108965066B (en) 2018-10-17 2018-10-17 Method and device for detecting transmission path

Publications (2)

Publication Number Publication Date
CN108965066A CN108965066A (en) 2018-12-07
CN108965066B true CN108965066B (en) 2020-06-05

Family

ID=64480969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811206588.0A Active CN108965066B (en) 2018-10-17 2018-10-17 Method and device for detecting transmission path

Country Status (1)

Country Link
CN (1) CN108965066B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099139B (en) * 2019-04-26 2021-09-10 新华三信息安全技术有限公司 Address detection method and device
CN113345478B (en) * 2020-03-02 2022-07-05 海信视像科技股份有限公司 Player time acquisition method, device, storage medium and player
CN111654418A (en) * 2020-06-11 2020-09-11 中国人民解放军军事科学院军事科学信息研究中心 Self-adaptive real-time detection method for available bandwidth of wireless network
CN117176612B (en) * 2023-10-30 2024-02-09 腾讯科技(深圳)有限公司 Network quality detection method, device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307122A (en) * 2011-09-06 2012-01-04 北京傲天动联技术有限公司 Ethernet over Coax (EoC) link failure detection system and method
CN102752774A (en) * 2012-07-06 2012-10-24 大唐移动通信设备有限公司 Non-real-time service flow monitoring time setting method and system
CN102984786A (en) * 2005-08-05 2013-03-20 艾利森电话股份有限公司 Communication system
CN106162739A (en) * 2016-09-27 2016-11-23 京信通信技术(广州)有限公司 Method for controlling network congestion and system
CN106557407A (en) * 2016-11-14 2017-04-05 腾讯科技(深圳)有限公司 A kind of monitoring method and device of apparatus of load
CN106997314A (en) * 2016-01-22 2017-08-01 广州市动景计算机科技有限公司 Abnormality eliminating method, apparatus and system for distributed system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7099643B2 (en) * 2003-05-27 2006-08-29 Broadcom Corporation Analog open-loop VCO calibration method
JP4816323B2 (en) * 2006-08-16 2011-11-16 ソニー株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN102118279B (en) * 2011-02-23 2013-04-10 北京蓝汛通信技术有限责任公司 Method, device and system for link quality detection
CN102438181A (en) * 2011-08-18 2012-05-02 中兴通讯股份有限公司 Method and system for adjusting time for sending heartbeat message in Internet protocol television (IPTV) system
CN104244302B (en) * 2013-06-19 2018-11-02 中国移动通信集团公司 A kind of detection method and equipment of asymmetry link
CN103729241B (en) * 2013-12-12 2016-08-31 华中科技大学 A kind of optimization method of OpenMP task parallelism under multi-core environment
CN107436835B (en) * 2017-06-21 2020-09-08 北京星选科技有限公司 Access control method and device
CN108616429B (en) * 2018-05-14 2019-12-13 平安科技(深圳)有限公司 reconnection method and device for push service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984786A (en) * 2005-08-05 2013-03-20 艾利森电话股份有限公司 Communication system
CN102307122A (en) * 2011-09-06 2012-01-04 北京傲天动联技术有限公司 Ethernet over Coax (EoC) link failure detection system and method
CN102752774A (en) * 2012-07-06 2012-10-24 大唐移动通信设备有限公司 Non-real-time service flow monitoring time setting method and system
CN106997314A (en) * 2016-01-22 2017-08-01 广州市动景计算机科技有限公司 Abnormality eliminating method, apparatus and system for distributed system
CN106162739A (en) * 2016-09-27 2016-11-23 京信通信技术(广州)有限公司 Method for controlling network congestion and system
CN106557407A (en) * 2016-11-14 2017-04-05 腾讯科技(深圳)有限公司 A kind of monitoring method and device of apparatus of load

Also Published As

Publication number Publication date
CN108965066A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965066B (en) Method and device for detecting transmission path
CN109302346B (en) Method and device for transmitting data flow
JP6306741B2 (en) Multi-master selection in software-defined networks
US4707829A (en) CSMA-CD with channel capture
CN110247856B (en) Server resource release method and device
CN109067571B (en) Electronic device, network configuration method thereof and storage medium
CN112104562B (en) Congestion control method and device, communication network and computer storage medium
JPH11338836A (en) Load distribution system for computer network
KR20130108169A (en) Reducing headroom
CN111314240B (en) Congestion control method and device, network equipment and storage medium
JP2020080059A (en) Evaluation device, evaluation method and evaluation program
CN116320011A (en) Request processing method and device
US7301916B2 (en) Network access control technique in a CDMA system
CN112737940A (en) Data transmission method and device
CN110677358A (en) Message processing method and network equipment
US11570266B2 (en) Real-time detection of completion of sensor wrap completion in GNMI telemetry of a network device
CN110177060B (en) Active defense method for time sequence side channel attack of SDN network
CN109274546B (en) Timer scheduling method and device
CN116501465A (en) Automatic driving task execution method and device, electronic equipment and storage medium
CN115022227A (en) Data transmission method and system based on circulation or rerouting in data center network
EP3886495A1 (en) Ng-ran based proactive performance calculations
CN109862115B (en) Automatic processing method of web request and BGP routing system
FI127540B (en) Communications resource control by a network node
EP3757781A1 (en) Data processing method and system
CN114221896B (en) BGP route oscillation suppression method and device

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