CN108965066A - The method and apparatus that a kind of pair of transmission path is detected - Google Patents
The method and apparatus that a kind of pair of transmission path is detected Download PDFInfo
- Publication number
- CN108965066A CN108965066A CN201811206588.0A CN201811206588A CN108965066A CN 108965066 A CN108965066 A CN 108965066A CN 201811206588 A CN201811206588 A CN 201811206588A CN 108965066 A CN108965066 A CN 108965066A
- Authority
- CN
- China
- Prior art keywords
- network detection
- interval
- receive number
- detection task
- destination address
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/103—Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold 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 the method and apparatus that a kind of pair of transmission path is detected, and belong to technical field of data transmission.The described method includes: judging the local network detection task with the presence or absence of for destination address when receiving the data traffic for being directed toward destination address;If it is present the receive number of the data traffic of the direction destination address of record is added one, the network detection task is otherwise created;When the receive number is greater than preset hot address threshold, the network detection task is executed, and reset the duration of the network detection task.Using the present invention, the look-in frequency for lower grade destination address can be reduced, increases the look-in frequency of the destination address high for temperature, had both reduced the occupancy of bandwidth resources, in turn ensures the network acceleration effect of data transmission.
Description
Technical field
The method and dress detected the present invention relates to technical field of data transmission, in particular to a kind of pair of transmission path
It sets.
Background technique
Using accelerate network be it is a kind of be deployed between transmitting terminal and receiving end, for accelerate data transmit network.
Transmitting terminal can send data to and answer when accelerating network to transmit data to destination address (i.e. receiving end address) by application
With the entry accelerated node for accelerating network, entry accelerated node can accelerate the optimal biography that receiving end is reached in network by application
Defeated path sends data to receiving end.
In specific processing, when entry accelerated node often receives the primary data traffic for being directed toward destination address, it can increase newly
One is directed to the network detection task of destination address, and configures corresponding task parameters (including duration and probe interval
Deng), with obtain entry accelerated node to destination address a plurality of transmission path network state (including propagation delay time, transmission lose
Packet rate accelerates node load and path bandwidth utilization rate etc.), so that it is determined that optimal transmission paths, to be passed for subsequent data
It is defeated.During network detection, if receiving the data traffic for being directed toward destination address again, entry accelerated node if, can be weighed
The duration of network detection task is set, and continues network detection by original probe interval.For example, duration is 90
Second, probe interval is 30 seconds, then triggering in network detection task every 30 seconds is primary, is triggered four times in total.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
When carrying out network detection, if the look-in frequency of network detection task is excessively high, the service of receiving end will affect
Performance, or even be identified as attacking, while can also occupy more bandwidth resources;And if the look-in frequency of network detection task
Too low, then the real-time and accuracy of the network state detected are poor, and network when very maximum probability will affect data transmission adds
Effect.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides the methods that a kind of pair of transmission path is detected
And device.The technical solution is as follows:
In a first aspect, providing the method that a kind of pair of transmission path is detected, which comprises
When receiving the data traffic for being directed toward destination address, judge that the local network with the presence or absence of for destination address is visited
Survey task;
If it is present the receive number of the data traffic of the direction destination address of record is added one, otherwise create
The network detection task;
When the receive number is greater than preset hot address threshold, the network detection task is executed, and described in resetting
The duration of network detection task.
Optionally, after the execution network detection task, further includes:
In the single probe interval duration of the network detection task, statistics is directed toward the data traffic of the destination address
Receive number;
Threshold value is adjusted according to the receive number of the data traffic and preset interval, the spy to the network detection task
Interval is surveyed to be adjusted.
Optionally, described that threshold value is adjusted according to the receive number of the data traffic and preset interval, to the network
The probe interval of detection mission is adjusted, comprising:
If the receive number, which is less than the interval, adjusts threshold value, based on the numerical value of the receive number, expand institute
State the probe interval of network detection task;
If the receive number, which is equal to the interval, adjusts threshold value, the probe interval of the network detection task is kept
It is constant;
If the receive number, which is greater than the interval, adjusts threshold value, based on the numerical value of the receive number, institute is reduced
State the probe interval of network detection task.
Optionally, described that threshold value is adjusted according to the receive number of the data traffic and preset interval, to the network
The probe interval of detection mission is adjusted, comprising:
If the receive number, which is less than the interval, adjusts threshold value, based on the numerical value of the receive number, expand institute
State the probe interval of network detection task;
If the receive number adjusts threshold value not less than the interval, by the probe interval of the network detection task
It is adjusted to initial value.
Optionally, the method also includes:
At the beginning of each probe interval of the network detection task, according in multiple history probe interval durations
The receive number of the data traffic of the direction destination address of statistics is adjusted interval adjustment threshold value.
Optionally, the method also includes:
If detecting that the local data transmission state between the destination address is abnormal, network is triggered immediately and is visited
It surveys, and resets the duration and probe interval of the network detection task.
Optionally, the method also includes:
According to the time difference at current time and the execution moment of last network detection, the hot address threshold is adjusted
It is whole.
Second aspect, provides the device that a kind of pair of transmission path is detected, and described device includes:
Receiving module, it is local with the presence or absence of for mesh for judging when receiving the data traffic for being directed toward destination address
Address network detection task;
Judgment module, for if it is present by the receive number of the data traffic of the direction destination address of record
Add one, otherwise creates the network detection task;
Execution module, for executing the network detection and appointing when the receive number is greater than preset hot address threshold
Business, and reset the duration of the network detection task.
Optionally, described device further includes adjustment module, is used for:
In the single probe interval duration of the network detection task, statistics is directed toward the data traffic of the destination address
Receive number;
Threshold value is adjusted according to the receive number of the data traffic and preset interval, the spy to the network detection task
Interval is surveyed to be adjusted.
Optionally, the adjustment module, is specifically used for:
If the receive number, which is less than the interval, adjusts threshold value, based on the numerical value of the receive number, expand institute
State the probe interval of network detection task;
If the receive number, which is equal to the interval, adjusts threshold value, the probe interval of the network detection task is kept
It is constant;
If the receive number, which is greater than the interval, adjusts threshold value, based on the numerical value of the receive number, institute is reduced
State the probe interval of network detection task.
Optionally, the adjustment module, is specifically used for:
If the receive number, which is less than the interval, adjusts threshold value, based on the numerical value of the receive number, expand institute
State the probe interval of network detection task;
If the receive number adjusts threshold value not less than the interval, by the probe interval of the network detection task
It is adjusted to initial value.
Optionally, the adjustment module, is also used to:
At the beginning of each probe interval of the network detection task, according in multiple history probe interval durations
The receive number of the data traffic of the direction destination address of statistics is adjusted interval adjustment threshold value.
Optionally, the execution module, is also used to:
If detecting that the local data transmission state between the destination address is abnormal, network is triggered immediately and is visited
It surveys, and resets the duration and probe interval of the network detection task.
Optionally, described device further includes adjustment module, is used for:
According to the time difference at current time and the execution moment of last network detection, the hot address threshold is adjusted
It is whole.
The third aspect, provides a kind of entry accelerated node, and the entry accelerated node includes processor and memory, institute
It states and is stored at least one instruction, at least one section of program, code set or instruction set in memory, at least one instruction, institute
At least one section of program, the code set or instruction set is stated to be loaded by the processor and executed to realize as described in relation to the first aspect
The method that transmission path is detected.
Fourth aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium
Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or
Instruction set is loaded by processor and is executed to realize the method detected to transmission path as described in relation to the first aspect.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, when receiving the data traffic for being directed toward destination address, judge that local whether there is is directed to
The network detection task of destination address;If it is present the receive number of the data traffic of the direction destination address of record is added
One, otherwise create network detection task;When receive number is greater than preset hot address threshold, network detection task is executed, and
Reset the duration of network detection task.In this way, being counted by the data transmission times to destination address, can sentence
Break, identify the temperature of the destination address, is then based on temperature and carrys out detection of the metering needle to the network detection task of destination address
Frequency increases the spy of the destination address high for temperature so as to reduce the look-in frequency for lower grade destination address
Measured frequency had both reduced the occupancy of bandwidth resources, in turn ensured the network acceleration effect of data transmission.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the network frame figure that a kind of application provided in an embodiment of the present invention accelerates network;
Fig. 2 is the method flow diagram that a kind of pair of transmission path provided in an embodiment of the present invention is detected;
Fig. 3 is the apparatus structure schematic diagram that a kind of pair of transmission path provided in an embodiment of the present invention is detected;
Fig. 4 is the apparatus structure schematic diagram that a kind of pair of transmission path provided in an embodiment of the present invention is detected;
Fig. 5 is a kind of structural schematic diagram of entry accelerated node provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the invention provides the method that a kind of pair of transmission path is detected, the executing subject of this method be can be
It, can be as shown in Figure 1, application accelerates network can using the network frame of acceleration network using the entry accelerated node for accelerating network
To be made of multiple acceleration nodes, accelerates node to can be mainly divided into entry accelerated node, intermediate acceleration node and outlet and accelerate
Node.
Wherein, entry accelerated node can be used for receiving the data traffic that transmitting terminal is sent to receiving end, then according to pre-
If transmission path pass through that application accelerates in network one or more levels intermediate node is accelerated (may also to be not present in transmission path
Centre accelerates node), data traffic is transmitted to the final jump being connected with receiving end and accelerates node (i.e. outlet accelerates node)
Place, then accelerate node that data traffic is sent to receiving end by outlet.
Entry accelerated node can also accelerate the institute that receiving end is reached in network while transmitting data stream amount to application
There is transmission path to be detected, and select according to detection result or modify preset transmission path, to guarantee preset transmission road
Diameter is always the optimal path of transmission quality.
Entry accelerated node may include processor, memory, transceiver, and processor can be used for carrying out in following processes
The processing that network detection is carried out to transmission path is executed, memory can be used for storing the data and production needed in treatment process
Raw data, such as the receive number of data traffic, the task parameters etc. of network detection task, transceiver can be used for receiving and sending out
The related data in treatment process is sent, data traffic is such as received, sends probe message etc..It is appreciated that an acceleration node can
To realize entry accelerated node, the intermediate function for accelerating node or outlet acceleration node respectively in different data transmission procedures
Energy.
Below in conjunction with specific embodiment, process flow shown in Fig. 2 is described in detail, content can be as
Under:
Step 201, when receiving the data traffic for being directed toward destination address, judge local with the presence or absence of for destination address
Network detection task.
In an implementation, when transmitting terminal accelerates network to send data traffic to receiving end by application, using in acceleration network
The entry accelerated node being connected with transmitting terminal can receive the data traffic of above-mentioned direction receiving end, and based in data traffic
Entrained information determines the network address (i.e. destination address) of receiving end, and then entry accelerated node can be in local lookup
Transmission path that is preset, arriving at the destination location, and then the data traffic can be transmitted to receiving end by the transmission path.Together
When, entry accelerated node can also judge locally whether existing be directed to is somebody's turn to do when determining destination address based on data traffic
The network detection task of destination address.
The networks such as network transmission speed, packet loss, bandwidth availability ratio are passed specifically, network detection task may include
The detection of defeated performance.
Step 202, if it is present the receive number of the data traffic of the direction destination address of record is added one, otherwise
Create network detection task.
In an implementation, entry accelerated node can be after creating the network detection task for some destination address, temporarily
It is not immediately performed the network detection task, but the first receive number of the data traffic of the record direction destination address.So such as
Fruit detects the local existing network detection task for destination address, and entry accelerated node then can be by the direction mesh of record
The receive number of data traffic of address add one;And if detecting the local network detection times not existed for destination address
Business, then can create the network detection task for destination address, and the tasks such as corresponding probe interval, duration ginseng is arranged
Number, while the receive number of the data traffic of destination address can be directed toward with start recording.
Step 203, when receive number is greater than preset hot address threshold, network detection task is executed, and reset network
The duration of detection mission.
It in an implementation, can after entry accelerated node has modified the receive number for the data traffic for being directed toward destination address every time
To judge the size relation of the receive number and preset hot address threshold.When receive number is greater than preset hot address threshold
When, it can be said that the temperature of bright destination address has reached the degree for being worth being detected, then network detection task can be executed, and
The duration of the network detection task is reset, wherein the duration of network detection task refers to that network detection task is created
Afterwards, sustainable existing duration can be based on hot address threshold that is, from being created to the duration being canceled, and during this continues
Judgement, to trigger the execution of network detection task, that is to say, that network detection task after being created, can in etc. it is pending
State executes detection if being triggered in duration, if not being triggered in duration, will not execute detection.
It should be noted that entry accelerated node will be visited based on network after the execution for triggering network detection task
The existing probe interval of survey task, continues to execute network detection task, during this period, is somebody's turn to do when entry accelerated node receives direction
When the data traffic of destination address, the duration of network detection task can be reset.
For example, entry accelerated node created the network detection task for being directed toward destination address at 10 points and 00 second, and
The duration that the network detection task is arranged is 90 seconds, and probe interval is 30 seconds, that is to say, that under normal circumstances, which visits
Survey task will be canceled at 11 points and 30 seconds.
At 10 points and 20 seconds, it is default that entry accelerated node determines that the receive number for the data traffic for being directed toward destination address is greater than
Hot address threshold, immediately trigger network detection task execution, i.e., 10 points 20 seconds, execute primary network detection mission,
The middle time for executing primary network detection mission about at 3 seconds or so, and in the duration of the network detection task, i.e., 11
Before points 30 seconds, will be based on probe interval 30 seconds, and execute network detection task, that is to say, that 10 points 50 seconds, 11 points 20 seconds this two
A time point will execute primary network detection mission respectively.
And at 11 points before 30 seconds, when receiving the data traffic for being directed toward the destination address every time, entry accelerated node then may be used
To reset the duration of the network detection task, the concrete mode of resetting is to receive and be directed toward the destination address
Data traffic time point is starting point, with 90 seconds for extending length, to reset the duration of network detection task, that is,
It says, if at 10 points and 50 seconds, it, can be by the network detection after entry accelerated node receives the data traffic of the direction destination address
The duration of task extends 90 seconds, i.e. the network detection task will be canceled at 12 points and 20 seconds.
It optionally, can be according to the real-time regulating networks of temperature of destination address during executing network detection task
The probe interval of detection mission, correspondingly, can have following processing after step 203: in the single detection of network detection task
It is spaced in duration, statistics is directed toward the receive number of the data traffic of destination address;According to the receive number of data traffic and preset
Interval adjust threshold value, the probe interval of network detection task is adjusted.
In an implementation, entry accelerated node, can be according to initial probe interval after performing network detection task
The execution of network detection task is triggered, while can be as unit of probe interval, in each probe interval of network detection task
In duration, statistics is directed toward the receive number of the data traffic of destination address.Then can at the end of each probe interval, according to
The receive number of the data traffic of statistics and preset interval adjust threshold value, adjust to the probe interval of network detection task
It is whole, and network detection task is executed according to probe interval adjusted, and according to probe interval duration adjusted, statistically
Receive number is stated, then at the end of probe interval after the adjustment, probe interval is adjusted.In this way, can be according to data flow
The receive number of amount judges the temperature of destination address, and so as to the destination address to different temperatures, flexible setting is different
Probe interval.Specifically, the destination address high for temperature can improve detection frequency by way of shortening probe interval
Rate thereby may be ensured that the real-time of detection result, for lower grade destination address, can pass through the side of expansion probe interval
Formula reduces look-in frequency, to save the resource for being used for network detection.
Optionally, the above-mentioned mechanism to probe interval adjustment can be varied, gives two kinds of feasible mechanism as follows:
First, the numerical value based on receive number expands network detection and appoints if receive number is less than interval adjustment threshold value
The probe interval of business;If receive number is equal to interval adjustment threshold value, keep the probe interval of network detection task constant;Such as
Fruit receive number is greater than interval adjustment threshold value and reduces the probe interval of network detection task then based on the numerical value of receive number.
In an implementation, entry accelerated node can be sentenced during adjusting probe interval at the end of each probe interval
In disconnected current probe interval duration, the receive number and preset interval for being directed toward the data traffic of destination address adjust the big of threshold value
It is small.If receive number is less than interval adjustment threshold value, the spy of network detection task can be expanded based on the numerical value of receive number
Survey interval;If receive number is equal to interval adjustment threshold value, the probe interval of network detection task can be kept constant;If
Receive number is greater than interval adjustment threshold value and reduces the probe interval of network detection task then based on the numerical value of receive number.Example
Such as, adjustment threshold value in interval is 5, and probe interval is 30 seconds, when receive number is 4, then probe interval can be expanded (5-4)/5
Times, when receive number is 6, then probe interval can be reduced into (6-5)/5 times.It is above-mentioned exemplarily only to give a kind of adjustment spy
The feasible program at interval is surveyed, the present embodiment does not limit the concrete scheme of the adjustment probe interval of the numerical value based on receive number.
Second, the numerical value based on receive number expands network detection and appoints if receive number is less than interval adjustment threshold value
The probe interval of business;If the probe interval of network detection task is adjusted to by receive number not less than interval adjustment threshold value
Initial value.
In an implementation, entry accelerated node can be sentenced during adjusting probe interval at the end of each probe interval
In disconnected current probe interval duration, the receive number and preset interval for being directed toward the data traffic of destination address adjust the big of threshold value
It is small.If receive number is less than interval adjustment threshold value, the numerical value based on receive number, between the detection for expanding network detection task
Every;If the probe interval of network detection task is adjusted to initial value not less than interval adjustment threshold value by receive number.
It is noted that guaranteeing to visit in order to avoid the probe interval of network detection task infinitely increases or infinitely reduces
Interval is surveyed in controlled range, maximum value and minimum value has can be set in the probe interval of network detection task, no matter connecing
Receive why number is worth, probe interval adjusted is not more than the maximum value or is less than the minimum value, if spy adjusted
It surveys interval and is greater than maximum value, then value is maximum value, similarly, if probe interval adjusted is less than the minimum value, value
For minimum value.
Optionally, during adjusting probe interval, can according to statistics receive number to interval adjustment threshold value into
Row adjustment, corresponding processing can be such that at the beginning of each probe interval of network detection task, according to multiple history
The receive number of the data traffic of the direction destination address counted in probe interval duration is adjusted interval adjustment threshold value.
In an implementation, entry accelerated node, can be in network detection task during executing network detection task
At the beginning of each probe interval, the data traffic of the direction destination address counted in multiple history probe interval durations is obtained
Receive number, then according to these receive numbers come to interval adjustment threshold value be adjusted.
Specifically, can set different history probe intervals corresponds to different addition weights, each history probe interval is calculated
Interior interval adjustment threshold value subtracts the difference that receive number obtains, then respectively by the difference of each history probe interval and addition weight phase
It is cumulative with the interval adjustment threshold value of default after multiplying, threshold value is adjusted so as to obtain new interval.Between such as taking 3 history to detect
Every corresponding addition weight is followed successively by 0.1,0.3,0.5, and corresponding interval adjustment threshold value is followed successively by 3,4,3, corresponding reception time
Number is followed successively by 2,5,4, and the interval adjustment threshold value of default is 3, then adjustment threshold value in interval adjusted is 2.It can be appreciated that in conjunction with going through
The receive number of history statistics, the whole cold and hot degree for measuring destination address, and embody in the form of interval adjusts threshold value, this
Sample, can to avoid in some probe interval data traffic burst reduce, cause probe interval excessive, entry accelerated node can not and
The case where Shi Gengxin optimal transmission paths.
Optionally, when preset optimal transmission paths break down, network detection can be carried out at once, it is corresponding to handle
It can be such that if detecting that the data transmission state between local and destination address is abnormal, trigger network detection immediately, and
Reset the duration and probe interval of network detection task.
In an implementation, Ingress Network node can continue the data transmission state between detection local and destination address, namely
The network state of the local preset transmission path for arriving at the destination location of detection.When detecting that it is different that above-mentioned data transmission state occurs
Chang Shi can then trigger primary network detection immediately, and reset the duration and probe interval of network detection task, in order to
More to reselect out available transmission path in time, avoid causing data traffic long due to optimal transmission paths failure
Time can not transmit.It should be noted that signified data transmission state is abnormal herein, including local do not preset arrives at the destination
The case where transmission path of location.
Optionally, if being not carried out the network detection task for destination address for a long time, can suitably reduce thermally
Location threshold value, corresponding processing can be such that the time difference at the execution moment according to current time and last network detection, to heat
Address threshold is adjusted.
In an implementation, entry accelerated node can start timing after executing network detection each time, by certain
After duration, hot address threshold can be adjusted according to the time difference at current time and the execution moment of last network detection
It is whole.For example, the time difference at current time and the execution moment of last network detection is 5min, then hot address threshold can be subtracted
1, when the time difference is 7min, then hot address threshold can be subtracted 1 again.In this way, in the feelings for not receiving data traffic for a long time
It under condition, can guarantee that preset transmission path has preferably data transmission quality to a certain extent, avoid due to thermally location threshold
Value setting is excessively high, does not execute network detection task for a long time, and cause the data transmission quality of preset transmission path substantially under
When sliding, transmission path can not be replaced in time.
In the embodiment of the present invention, when receiving the data traffic for being directed toward destination address, judge that local whether there is is directed to
The network detection task of destination address;If it is present the receive number of the data traffic of the direction destination address of record is added
One, otherwise create network detection task;When receive number is greater than preset hot address threshold, network detection task is executed, and
Reset the duration of network detection task.In this way, being counted by the data transmission times to destination address, can sentence
Break, identify the temperature of the destination address, is then based on temperature and carrys out detection of the metering needle to the network detection task of destination address
Frequency increases the spy of the destination address high for temperature so as to reduce the look-in frequency for lower grade destination address
Measured frequency had both reduced the occupancy of bandwidth resources, in turn ensured the network acceleration effect of data transmission.
Based on the same technical idea, the embodiment of the invention also provides the device that a kind of pair of transmission path is detected,
As shown in figure 3, described device includes:
Receiving module 301, for when receiving the data traffic for being directed toward destination address, judging that local whether there is is directed to
The network detection task of destination address;
Judgment module 302, for if it is present by the reception time of the data traffic of the direction destination address of record
Number plus one, otherwise creates the network detection task;
Execution module 303, for executing the network detection when the receive number is greater than preset hot address threshold
Task, and reset the duration of the network detection task.
Optionally, it as shown in figure 4, described device further includes adjustment module 304, is used for:
In the single probe interval duration of the network detection task, statistics is directed toward the data traffic of the destination address
Receive number;
Threshold value is adjusted according to the receive number of the data traffic and preset interval, the spy to the network detection task
Interval is surveyed to be adjusted.
Optionally, the adjustment module 304, is specifically used for:
If the receive number, which is less than the interval, adjusts threshold value, based on the numerical value of the receive number, expand institute
State the probe interval of network detection task;
If the receive number, which is equal to the interval, adjusts threshold value, the probe interval of the network detection task is kept
It is constant;
If the receive number, which is greater than the interval, adjusts threshold value, based on the numerical value of the receive number, institute is reduced
State the probe interval of network detection task.
Optionally, the adjustment module 304, is specifically used for:
If the receive number, which is less than the interval, adjusts threshold value, based on the numerical value of the receive number, expand institute
State the probe interval of network detection task;
If the receive number adjusts threshold value not less than the interval, by the probe interval of the network detection task
It is adjusted to initial value.
Optionally, the adjustment module 304, is also used to:
At the beginning of each probe interval of the network detection task, according in multiple history probe interval durations
The receive number of the data traffic of the direction destination address of statistics is adjusted interval adjustment threshold value.
Optionally, the execution module 303, is also used to:
If detecting that the local data transmission state between the destination address is abnormal, network is triggered immediately and is visited
It surveys, and resets the duration and probe interval of the network detection task.
Optionally, it as shown in figure 4, described device further includes adjustment module 304, is used for:
According to the time difference at current time and the execution moment of last network detection, the hot address threshold is adjusted
It is whole.
In the embodiment of the present invention, when receiving the data traffic for being directed toward destination address, judge that local whether there is is directed to
The network detection task of destination address;If it is present the receive number of the data traffic of the direction destination address of record is added
One, otherwise create network detection task;When receive number is greater than preset hot address threshold, network detection task is executed, and
Reset the duration of network detection task.In this way, being counted by the data transmission times to destination address, can sentence
Break, identify the temperature of the destination address, is then based on temperature and carrys out detection of the metering needle to the network detection task of destination address
Frequency increases the spy of the destination address high for temperature so as to reduce the look-in frequency for lower grade destination address
Measured frequency had both reduced the occupancy of bandwidth resources, in turn ensured the network acceleration effect of data transmission.
It should be understood that the device provided by the above embodiment detected to transmission path is carried out to transmission path
When detection, only the example of the division of the above functional modules, in practical application, it can according to need and by above-mentioned function
It can distribute and be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, more than completing
The all or part of function of description.In addition, the device provided by the above embodiment that transmission path is detected with to transmission
The embodiment of the method that path is detected belongs to same design, and specific implementation process is detailed in embodiment of the method, no longer superfluous here
It states.
Fig. 5 is the structural schematic diagram of entry accelerated node provided in an embodiment of the present invention.The entry accelerated node 500 can be because
Configuration or performance are different and generate bigger difference, may include one or more central processing units 522 (for example, one
A or more than one processor) and memory 532, storage Jie of one or more storage application programs 542 or data 544
Matter 530 (such as one or more mass memory units).Wherein, memory 532 and storage medium 530 can be of short duration deposit
Storage or persistent storage.The program for being stored in storage medium 530 may include one or more modules (diagram does not mark), often
A module may include to the series of instructions operation in entry accelerated node 500.Further, central processing unit 522 can
To be set as communicating with storage medium 530, the series of instructions behaviour in storage medium 530 is executed on entry accelerated node 500
Make.
Entry accelerated node 500 can also include one or more power supplys 529, one or more wired or nothings
Wired network interface 550, one or more input/output interfaces 558, one or more keyboards 556, and/or, one
Or more than one operating system 541, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD etc..
Entry accelerated node 500 may include having memory and one or more than one program, one of them or
More than one program of person is stored in memory, and be configured to be executed by one or more than one processor it is one or
More than one program of person includes for carrying out the above-mentioned instruction detected to transmission path.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (16)
1. the method that a kind of pair of transmission path is detected, which is characterized in that the described method includes:
When receiving the data traffic for being directed toward destination address, judge that the local network detection with the presence or absence of for destination address is appointed
Business;
If it is present the receive number of the data traffic of the direction destination address of record is added one, otherwise described in creation
Network detection task;
When the receive number is greater than preset hot address threshold, the network detection task is executed, and reset the network
The duration of detection mission.
2. the method according to claim 1, wherein after the execution network detection task, further includes:
In the single probe interval duration of the network detection task, statistics is directed toward connecing for the data traffic of the destination address
Receive number;
Threshold value is adjusted according to the receive number of the data traffic and preset interval, between the detection of the network detection task
Every being adjusted.
3. according to the method described in claim 2, it is characterized in that, the receive number according to the data traffic and default
Interval adjust threshold value, the probe interval of the network detection task is adjusted, comprising:
If the receive number, which is less than interval adjustment threshold value, expands the net based on the numerical value of the receive number
The probe interval of network detection mission;
If the receive number, which is equal to the interval, adjusts threshold value, the probe interval of the network detection task is kept not
Become;
If the receive number, which is greater than interval adjustment threshold value, reduces the net based on the numerical value of the receive number
The probe interval of network detection mission.
4. according to the method described in claim 2, it is characterized in that, the receive number according to the data traffic and default
Interval adjust threshold value, the probe interval of the network detection task is adjusted, comprising:
If the receive number, which is less than interval adjustment threshold value, expands the net based on the numerical value of the receive number
The probe interval of network detection mission;
If the receive number adjusts threshold value not less than the interval, the probe interval of the network detection task is adjusted
For initial value.
5. according to the described in any item methods of claim 2-4, which is characterized in that the method also includes:
At the beginning of each probe interval of the network detection task, according to being counted in multiple history probe interval durations
The direction destination address data traffic receive number, threshold value is adjusted to the interval and is adjusted.
6. the method according to claim 1, wherein the method also includes:
If detecting that the local data transmission state between the destination address is abnormal, network detection is triggered immediately, and
Reset the duration and probe interval of the network detection task.
7. the method according to claim 1, wherein the method also includes:
According to the time difference at current time and the execution moment of last network detection, the hot address threshold is adjusted.
8. the device that a kind of pair of transmission path is detected, which is characterized in that described device includes:
Receiving module, it is local with the presence or absence of for destination for judging when receiving the data traffic for being directed toward destination address
The network detection task of location;
Judgment module, for if it is present the receive number of the data traffic of the direction destination address of record is added one,
Otherwise the network detection task is created;
Execution module, for executing the network detection task when the receive number is greater than preset hot address threshold, and
Reset the duration of the network detection task.
9. device according to claim 8, which is characterized in that described device further includes adjustment module, is used for:
In the single probe interval duration of the network detection task, statistics is directed toward connecing for the data traffic of the destination address
Receive number;
Threshold value is adjusted according to the receive number of the data traffic and preset interval, between the detection of the network detection task
Every being adjusted.
10. device according to claim 9, which is characterized in that the adjustment module is specifically used for:
If the receive number, which is less than interval adjustment threshold value, expands the net based on the numerical value of the receive number
The probe interval of network detection mission;
If the receive number, which is equal to the interval, adjusts threshold value, the probe interval of the network detection task is kept not
Become;
If the receive number, which is greater than interval adjustment threshold value, reduces the net based on the numerical value of the receive number
The probe interval of network detection mission.
11. device according to claim 9, which is characterized in that the adjustment module is specifically used for:
If the receive number, which is less than interval adjustment threshold value, expands the net based on the numerical value of the receive number
The probe interval of network detection mission;
If the receive number adjusts threshold value not less than the interval, the probe interval of the network detection task is adjusted
For initial value.
12. according to the described in any item devices of claim 9-11, which is characterized in that the adjustment module is also used to:
At the beginning of each probe interval of the network detection task, according to being counted in multiple history probe interval durations
The direction destination address data traffic receive number, threshold value is adjusted to the interval and is adjusted.
13. device according to claim 8, which is characterized in that the execution module is also used to:
If detecting that the local data transmission state between the destination address is abnormal, network detection is triggered immediately, and
Reset the duration and probe interval of the network detection task.
14. device according to claim 8, which is characterized in that described device further includes adjustment module, is used for:
According to the time difference at current time and the execution moment of last network detection, the hot address threshold is adjusted.
15. a kind of entry accelerated node, which is characterized in that the entry accelerated node includes processor and memory, described to deposit
Be stored at least one instruction, at least one section of program, code set or instruction set in reservoir, at least one instruction, it is described extremely
Few one section of program, the code set or instruction set are loaded by the processor and are executed to realize such as any institute of claim 1 to 7
The method that transmission path is detected stated.
16. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction
Collection is loaded by processor and is executed to realize the method detected to transmission path as described in claim 1 to 7 is any.
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 true CN108965066A (en) | 2018-12-07 |
CN108965066B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099139A (en) * | 2019-04-26 | 2019-08-06 | 新华三信息安全技术有限公司 | A kind of address snoop method and device |
CN111654418A (en) * | 2020-06-11 | 2020-09-11 | 中国人民解放军军事科学院军事科学信息研究中心 | Self-adaptive real-time detection method for available bandwidth of wireless network |
CN113345478A (en) * | 2020-03-02 | 2021-09-03 | 海信视像科技股份有限公司 | Player time acquisition method, device, storage medium and player |
CN117176612A (en) * | 2023-10-30 | 2023-12-05 | 腾讯科技(深圳)有限公司 | Network quality detection method, device and computer readable storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040242175A1 (en) * | 2003-05-27 | 2004-12-02 | Tsung-Hsien Lin | Analog open-loop VCO calibration method |
US20080043773A1 (en) * | 2006-08-16 | 2008-02-21 | Akihiro Ihori | Communication Device, Communication Method and Program |
CN102118279A (en) * | 2011-02-23 | 2011-07-06 | 北京蓝汛通信技术有限责任公司 | Method, device and system for link quality detection |
CN102307122A (en) * | 2011-09-06 | 2012-01-04 | 北京傲天动联技术有限公司 | Ethernet over Coax (EoC) link failure detection system and method |
CN102438181A (en) * | 2011-08-18 | 2012-05-02 | 中兴通讯股份有限公司 | Method and system for adjusting time for sending heartbeat message in Internet protocol television (IPTV) system |
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 |
CN103729241A (en) * | 2013-12-12 | 2014-04-16 | 华中科技大学 | Optimizing method for OpenMP task parallelism under multi-core environment |
CN104244302A (en) * | 2013-06-19 | 2014-12-24 | 中国移动通信集团公司 | Method and device for detecting asymmetric link |
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 |
CN107436835A (en) * | 2017-06-21 | 2017-12-05 | 北京小度信息科技有限公司 | Access control method and device |
CN108616429A (en) * | 2018-05-14 | 2018-10-02 | 平安科技(深圳)有限公司 | A kind of reconnection method and equipment of Push Service |
-
2018
- 2018-10-17 CN CN201811206588.0A patent/CN108965066B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040242175A1 (en) * | 2003-05-27 | 2004-12-02 | Tsung-Hsien Lin | Analog open-loop VCO calibration method |
CN102984786A (en) * | 2005-08-05 | 2013-03-20 | 艾利森电话股份有限公司 | Communication system |
US20080043773A1 (en) * | 2006-08-16 | 2008-02-21 | Akihiro Ihori | Communication Device, Communication Method and Program |
CN102118279A (en) * | 2011-02-23 | 2011-07-06 | 北京蓝汛通信技术有限责任公司 | 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 |
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 |
CN104244302A (en) * | 2013-06-19 | 2014-12-24 | 中国移动通信集团公司 | Method and device for detecting asymmetric link |
CN103729241A (en) * | 2013-12-12 | 2014-04-16 | 华中科技大学 | Optimizing method for OpenMP task parallelism under multi-core environment |
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 |
CN107436835A (en) * | 2017-06-21 | 2017-12-05 | 北京小度信息科技有限公司 | Access control method and device |
CN108616429A (en) * | 2018-05-14 | 2018-10-02 | 平安科技(深圳)有限公司 | A kind of reconnection method and equipment of Push Service |
Non-Patent Citations (2)
Title |
---|
DIMITRI PAPADIMITRIOU,DAVIDE CAREGLIO,FABIEN TARISSAN: "Internet routing paths stability model and relation to forwarding paths", 《2013 9TH INTERNATIONAL CONFERENCE ON THE DESIGN OF RELIABLE COMMUNICATION NETWORKS (DRCN)》 * |
路大勇: "复杂信息网络中的故障诊断与定位技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099139A (en) * | 2019-04-26 | 2019-08-06 | 新华三信息安全技术有限公司 | A kind of address snoop method and device |
CN110099139B (en) * | 2019-04-26 | 2021-09-10 | 新华三信息安全技术有限公司 | Address detection method and device |
CN113345478A (en) * | 2020-03-02 | 2021-09-03 | 海信视像科技股份有限公司 | Player time acquisition method, device, storage medium and player |
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 |
CN117176612A (en) * | 2023-10-30 | 2023-12-05 | 腾讯科技(深圳)有限公司 | Network quality detection method, device and computer readable storage medium |
CN117176612B (en) * | 2023-10-30 | 2024-02-09 | 腾讯科技(深圳)有限公司 | Network quality detection method, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108965066B (en) | 2020-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965066A (en) | The method and apparatus that a kind of pair of transmission path is detected | |
WO2020082522A1 (en) | Data traffic transmission method and apparatus | |
CN110247856B (en) | Server resource release method and device | |
CN109246229A (en) | A kind of method and apparatus of distribution resource acquisition request | |
CN109936514B (en) | Message processing method and device | |
CN109167812B (en) | Method for evaluating service quality and determining adjustment strategy, server and storage medium | |
CN110417650A (en) | Multilink data distribution method, device and electronic equipment | |
KR20110081911A (en) | Link band estimating apparatus | |
CN103384410B (en) | Mobile terminal is redirected to the method, apparatus and system of objective network | |
CN105992307A (en) | Wireless sensor network and association request transmission method | |
CN114357495B (en) | Prediction machine under-chain aggregation method, device, equipment and medium based on block chain | |
CN108933631A (en) | Light power control method, device and the optical network system of optical network unit | |
US7729266B2 (en) | Network load detection system, method, apparatus, and program | |
EP3295567B1 (en) | Pattern-based data collection for a distributed stream data processing system | |
Bai et al. | RNN-based approach to TCP throughput prediction | |
US9477736B2 (en) | Apparatus and method for active and passive data gathering using stochastic model in control network | |
KR101234816B1 (en) | Congestion detection apparatus, congestion control apparatus, and congestion control method thereof | |
CN104580006A (en) | Mobile network sending rate control method, device and system | |
CN108600308A (en) | Data uploading method, device, storage medium and server | |
CN116764235A (en) | Data processing method and related device | |
CN105281832B (en) | Neighbor discovering method in a kind of ultraviolet optical-fiber network | |
CN114510338A (en) | Task scheduling method, task scheduling device and computer readable storage medium | |
CN106921701A (en) | The method and apparatus that monitored results are transmitted between platform of internet of things and internet of things equipment | |
US10523469B2 (en) | Relay device and communication system | |
CN105830513A (en) | Method, apparatus and system for measuring signal quality of cell |
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 |