CN108566315B - A kind of detection method of faulty link, device and server - Google Patents
A kind of detection method of faulty link, device and server Download PDFInfo
- Publication number
- CN108566315B CN108566315B CN201810295066.6A CN201810295066A CN108566315B CN 108566315 B CN108566315 B CN 108566315B CN 201810295066 A CN201810295066 A CN 201810295066A CN 108566315 B CN108566315 B CN 108566315B
- Authority
- CN
- China
- Prior art keywords
- link
- test
- network
- tests
- faulty
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 51
- 238000012360 testing method Methods 0.000 claims abstract description 256
- 230000002159 abnormal effect Effects 0.000 claims abstract description 40
- 238000012545 processing Methods 0.000 claims abstract description 30
- 238000000034 method Methods 0.000 claims abstract description 7
- 238000013481 data capture Methods 0.000 claims description 17
- 239000000463 material Substances 0.000 abstract description 10
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 239000008186 active pharmaceutical agent Substances 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 238000013024 troubleshooting Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
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/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- 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/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- 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)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment provides a kind of detection method of faulty link, device and servers, it is related to field of communication technology, it solves in the prior art when carrying out fault location when there is no problem for the equipment for the network node being detected, whether abnormal network O&M personnel are needed to remove to detect the link between each network node manually, since the timeliness of artificial treatment is lower, operator needs to put into the problem of more man power and materials guarantee abnormal timely processing.This method includes obtaining the test index of network to be tested;Obtain the second network parameter of at least one the first test links;According to corresponding second network parameter of at least one the first test links, differentiate at least one the first test links with the presence or absence of abnormal;When determining that at least one the first test links deposit when abnormal, faulty link is determined according at least one the first corresponding first network parameters of test link.The embodiment of the present invention is used for the detection of faulty link.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of detection methods of faulty link, device and server.
Background technique
Emulation testing is that network occurs to change the committed step of laggard industry business verifying.By imitating user's internet behavior
The health that network service carries after test change, emulation testing can be to the full extent close to business reality, true reflection visitors
The online experience at family.
If obtaining abnormal test result, need to implement fault location with the specific network node of determination, to find and
Handling failure;However, existing Fault Locating Method rests on equipment level, i.e., in the prior art when carrying out fault location,
The equipment for being only capable of the network node that positioning is broken down;And in actual environment, the link failure probability between equipment, which is much larger than, to be set
Standby probability of malfunction itself;Therefore, when there is no problem for the equipment for the network node being detected, need network O&M personnel manual
Whether the link for going to detect between each network node is abnormal;Since the timeliness of artificial treatment is lower, operator needs
It puts into more man power and materials and guarantees abnormal timely processing, to guarantee the experience of user.
It can be seen from the above, in the prior art when carrying out fault location when the equipment for the network node being detected is not asked
When topic, need whether extremely network O&M personnel remove to detect manually the link between each network node, due to artificial treatment
Timeliness is lower, and operator needs to put into more man power and materials and guarantees abnormal timely processing.
Summary of the invention
The embodiment of the present invention provides detection method, device and the server of a kind of faulty link, solves the prior art
In when carrying out fault location when there is no problem for the equipment for the network node being detected, need network O&M personnel to go manually
Whether the link detected between each network node is abnormal, and since the timeliness of artificial treatment is lower, operator needs to put into more
More man power and materials guarantees the problem of abnormal timely processing.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
First aspect, the embodiment of the present invention provide a kind of detection method of faulty link, comprising: obtain network to be tested
Test index;Wherein, test index includes the corresponding first network parameter of at least one the first test links, first network ginseng
Number includes: source IP address, source port, purpose IP address and destination port;It is corresponding to obtain at least one the first test links
Second network parameter;Wherein, the second network parameter includes: TCP connection time delay, first byte arrival time delay, page browsing overall delay
With page-downloading speed;According to corresponding second network parameter of at least one the first test links, differentiate that at least one the first survey
Link is tried with the presence or absence of abnormal;When determining that at least one the first test links deposit when abnormal, according at least one the first tests
The corresponding first network parameter of link determines faulty link;Wherein, at least one the first test links include: at least two networks
Node;Faulty link includes: the link between adjacent network node;The failure chain determined according at least one the first test links
Road generates the testing result of network to be tested.
Optionally, according to corresponding second network parameter of at least one the first test links, differentiate that at least one the first survey
Link is tried with the presence or absence of abnormal, comprising: join according to discriminant function and at least one the first corresponding second networks of test link
Number calculates the judgment value of at least one the first test links;Wherein, discriminant function includes:
Wherein, P indicates judgment value, and T (TCP) indicates TCP connection time delay, and T (init) indicates that first byte reaches time delay, T
(total) representation page browses overall delay, S (Down) representation page speed of download, Tave1(TCP) it indicates and at least one the first
Test the average value that link has the second of the identical purpose IP address TCP connection time delay for testing link, Tave2(init) it indicates
With at least one the first test links there is the first byte of the second test link of identical purpose IP address to reach being averaged for time delay
Value, Tave3(total) indicate that there is the second of the identical purpose IP address page for testing link at least one the first test links
Face browses the average value of overall delay, Save(Down) it indicates at least one the first test links with identical purpose IP address
The average value of the page-downloading speed of second test link, A indicates the weight that TCP connection time delay accounts for, when B indicates that first byte reaches
Prolong the weight accounted for, the weight that C representation page browsing overall delay accounts for, the weight that D representation page speed of download accounts for, and A+B+C+D
=1, the first test link is different from the second test link;When judgment value is greater than preset threshold, at least one the first test chains
There is exception in road, wherein preset threshold is the constant greater than 0.
Optionally, faulty link is determined according to the corresponding first network parameter of at least one the first test links, comprising: root
According to the corresponding first network parameter of at least one the first test links, the network section that at least one the first test links pass through is determined
Point;It whether there is packet loss phenomenon by the link that ping is surveyed between detection adjacent network node;When detecting packet loss phenomenon, phase
There are failures for link between adjacent network node.
Optionally, this method further include: according to testing result, generate the information for carrying testing result;According to information, display
Testing result.
Second aspect, the embodiment of the present invention provide a kind of detection device of faulty link, comprising: data capture unit,
For obtaining the test index of network to be tested;Wherein, test index includes at least one the first test links corresponding first
Network parameter, first network parameter include: source IP address, source port, purpose IP address and destination port;Data acquisition list
Member is also used to obtain corresponding second network parameter of at least one the first test links;Wherein, the second network parameter includes: TCP
Connect time delay, first byte reaches time delay, page browsing overall delay and page-downloading speed;Data processing unit, for according to number
Corresponding second network parameter of at least one the first test links obtained according to acquiring unit differentiates at least one the first test chains
Road is with the presence or absence of abnormal;When determining that at least one the first test links deposit when abnormal, obtained extremely according to data capture unit
Few corresponding first network parameter of one first test link determines faulty link;Wherein, at least one the first test link packet
It includes: at least two network nodes;Faulty link includes: the link between adjacent network node;Data processing unit is also used to root
According to the faulty link that at least one the first test links determine, the testing result of network to be tested is generated.
Optionally, data processing unit, specifically for according at least the one of discriminant function and data capture unit acquisition
Item first tests corresponding second network parameter of link, calculates the judgment value of at least one the first test links;Wherein, judge letter
Number includes:
Wherein, P indicates judgment value, and T (TCP) indicates TCP connection time delay, and T (init) indicates that first byte reaches time delay, T
(total) representation page browses overall delay, S (Down) representation page speed of download, Tave1(TCP) it indicates and at least one the first
Test the average value that link has the second of the identical purpose IP address TCP connection time delay for testing link, Tave2(init) it indicates
With at least one the first test links there is the first byte of the second test link of identical purpose IP address to reach being averaged for time delay
Value, Tave3(total) indicate that there is the second of the identical purpose IP address page for testing link at least one the first test links
Face browses the average value of overall delay, Save(Down) it indicates at least one the first test links with identical purpose IP address
The average value of the page-downloading speed of second test link, A indicates the weight that TCP connection time delay accounts for, when B indicates that first byte reaches
Prolong the weight accounted for, the weight that C representation page browsing overall delay accounts for, the weight that D representation page speed of download accounts for, and A+B+C+D
=1, the first test link is different from the second test link;When judgment value is greater than preset threshold, at least one the first test chains
There is exception in road, wherein preset threshold is the constant greater than 0.
Optionally, data processing unit, specifically for at least one the first test chains obtained according to data capture unit
The corresponding first network parameter in road determines the network node that at least one the first test links pass through;Data processing unit is also used
It whether there is packet loss phenomenon in the link surveyed between detection adjacent network node by ping;When detecting packet loss phenomenon, phase
There are failures for link between adjacent network node.
Optionally, the detection device of faulty link further include: data display unit;Data processing unit is also used to basis
Testing result generates the information for carrying testing result;Data display unit, the information for being generated according to data processing unit,
Show testing result.
The third aspect, the embodiment of the present invention provide a kind of server, comprising: any one failure provided such as second aspect
The detection device of link
Detection method, device and the server of faulty link provided in an embodiment of the present invention, by differentiating network to be tested
In every first test link with the presence or absence of abnormal, there is the first abnormal test link in network to be tested to find out, so
Faulty link is determined by the corresponding first network parameter of the first test link afterwards;Wherein, at least one the first test link packet
It includes: at least two network nodes;Faulty link includes: the link between adjacent network node;Therefore, the embodiment of the present invention mentions
The link that the detection method of the faulty link of confession is not necessarily to manually go between detection adjacent network node whether there is failure, and
And the faulty link that can be determined according at least one the first test links, so that the testing result of corresponding test network is obtained,
The troubleshooting of network O&M personnel is facilitated while without increasing more man power and material;It solves and exists in the prior art
When progress fault location when there is no problem for the equipment for the network node being detected, network O&M personnel is needed to go to detect manually
Whether the link between each network node is abnormal, and since the timeliness of artificial treatment is lower, operator needs to put into more
Man power and material guarantees the problem of abnormal timely processing.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 provides a kind of flow diagram of the detection method of faulty link for embodiment;
Fig. 2 provides a kind of another flow diagram of the detection method of faulty link for embodiment;
Fig. 3 provides a kind of another flow diagram of the detection method of faulty link for embodiment;
Fig. 4 provides a kind of another flow diagram of the detection method of faulty link for embodiment;
Fig. 5 provides a kind of structural schematic diagram of the detection device of faulty link for embodiment.
Appended drawing reference:
Detection device -10;
Data capture unit -101;Data processing unit -102;Data display unit -103.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment one, the embodiment of the present invention provide a kind of detection method of faulty link, include: as shown in Figure 1
S101, the test index for obtaining network to be tested;Wherein, test index includes at least one the first test link pairs
The first network parameter answered, first network parameter include: the agreement (full name in English: Internet interconnected between source network
Protocol, referred to as: IP) IP address, source port, purpose IP address and destination port.
It should be noted that may include n network node, every two network in test network in actual application
Link between node may be occupied by different a plurality of first test links;It therefore, can be (English complete according to hash algorithm
Claim: HASH) algorithm, source IP address, source port, purpose IP address and destination port, obtained HASH functional value and to presence
N load balancing link modulus can obtain being mapped to specific which chain road;Wherein HASH algorithm includes:
S=HASH (SY (IP), SY (Port), DS (IP), DS (Port)), ModN;Wherein S indicates HASH functional value, SY
(IP) source address is indicated, SY (Port) indicates that source port, DS (IP) indicate that destination address, DS (Port) indicate destination port,
ModN is indicated to N modulus.
That is, if it is desired to test flow distribution can be fixed wherein 3 factors to N chain road, and continuously change
4th factor.Under prevailing network test condition, destination IP, destination port are fixed, and a large amount of network interface cards can be consumed by modifying source IP
Hardware resource and IP resource, comprehensively consider, and continuous modification source port is taken to realize each for treating test network in this patent
The traversal of first test link.
S102, corresponding second network parameter of at least one the first test links is obtained;Wherein, the second network parameter packet
It includes: transmission control protocol (full name in English: Transmission Control Protocol, referred to as: TCP) connection time delay, lead-in
Section reaches time delay, page browsing overall delay and page-downloading speed.
S103, according to corresponding second network parameter of at least one the first test links, differentiate at least one the first tests
Link is with the presence or absence of abnormal;When determining that at least one the first test links deposit when abnormal, according at least one the first test chains
The corresponding first network parameter in road determines faulty link;Wherein, at least one the first test links include: at least two network sections
Point;Faulty link includes: the link between adjacent network node.
S104, the faulty link determined according at least one the first test links, generate the testing result of network to be tested.
It should be noted that testing result includes that there are the first test chains of faulty link for each in the detection network
Road.
Optionally, the embodiment of the present invention as shown in Figure 2 is provided in a kind of detection method of faulty link according at least one
Item first tests corresponding second network parameter of link, differentiates at least one the first test links with the presence or absence of abnormal, comprising: root
It is judged that function and corresponding second network parameter of at least one the first test links, at least one the first test links are calculated
Judgment value;Wherein, discriminant function includes:
Wherein, P indicates judgment value, and T (TCP) indicates TCP connection time delay, and T (init) indicates that first byte reaches time delay, T
(total) representation page browses overall delay, S (Down) representation page speed of download, Tave1(TCP) it indicates and at least one the first
Test the average value that link has the second of the identical purpose IP address TCP connection time delay for testing link, Tave2(init) it indicates
With at least one the first test links there is the first byte of the second test link of identical purpose IP address to reach being averaged for time delay
Value, Tave3(total) indicate that there is the second of the identical purpose IP address page for testing link at least one the first test links
Face browses the average value of overall delay, Save(Down) it indicates at least one the first test links with identical purpose IP address
The average value of the page-downloading speed of second test link, A indicates the weight that TCP connection time delay accounts for, when B indicates that first byte reaches
Prolong the weight accounted for, the weight that C representation page browsing overall delay accounts for, the weight that D representation page speed of download accounts for, and A+B+C+D
=1, the first test link is different from the second test link;When judgment value is greater than preset threshold, at least one the first test chains
There is exception in road, wherein preset threshold is the constant greater than 0.
Specifically, this method further include: obtain and test link with identical destination IP with each at least one the first
The corresponding TCP connection time delay of the second test link, the first byte of address reach time delay, page browsing overall delay and page-downloading speed
Degree;
According to the first calculation formula, T is calculatedave1(TCP), whereinE1 is indicated and at least one the first
Testing link has the summation of the corresponding TCP connection time delay of the second test link of identical purpose IP address;N1 indicate at least
One first test link has the total number of the second test link of identical purpose IP address.
According to the second calculation formula, T is calculatedave2(init), whereinE2 is indicated and at least one the first
Test the summation that there is link the corresponding first byte of the second test link of identical purpose IP address to reach time delay;N1 indicate with extremely
Few one first test link has the total number of the second test link of identical purpose IP address.
According to third calculation formula, T is calculatedave3(total), whereinE3 is indicated and at least one the
One test link has the summation of the corresponding page browsing overall delay of the second test link of identical purpose IP address;N1 indicate with
At least one the first test links have the total number of the second test link of identical purpose IP address.
According to the 4th calculation formula, S is calculatedave(Down), whereinE4 is indicated and at least one the
One test link has the summation of the corresponding page-downloading speed of the second test link of identical purpose IP address;N1 indicate with extremely
Few one first test link has the total number of the second test link of identical purpose IP address.
It should be noted that TCP connection time delay is expressed as T (TCP) in actual application, unit is millisecond ms;Lead-in
Section reaches time delay and is expressed as T (init), and unit is millisecond ms;Page browsing overall delay is expressed as T (total), and unit is millisecond
ms;Page-downloading speed is expressed as S (Down), and unit is kilobytes/second kb/s.
Illustratively, it is equal to 0.25 with the weight A that TCP connection time delay accounts for, first byte reaches the weight B that time delay accounts for and is equal to
0.25, the weight C that page browsing overall delay accounts for are equal to 0.25, and the weight D that page-downloading speed accounts for is equal to 0.25, preset threshold and is
It is illustrated for 0.5, concrete implementation mode is as follows:
If P > 0.5, at least one the first tests link is abnormal, then according at least one the first test link pair
The second network parameter answered determines faulty link.
Optionally, the embodiment of the present invention as shown in Figure 3 is provided in a kind of detection method of faulty link according at least one
Item first tests the corresponding first network parameter of link and determines faulty link, comprising: according at least one the first test link pairs
The first network parameter answered determines the network node that at least one the first test links pass through;Detection adjacent net is surveyed by ping
Link between network node whether there is packet loss phenomenon;When detecting packet loss phenomenon, the link between adjacent network node is deposited
In failure.
It should be noted that detecting the link between two neighboring node in actual application with the presence or absence of abnormal side
There are many methods, this sentences for ping is surveyed and is illustrated, remaining detection mode is not repeating herein.
This can be determined extremely according to corresponding second network parameter of at least one the first test links in actual application
Whether few one first test link is abnormal, when determining at least one the first test link exception, needs basis at least one
Item first tests the corresponding first network parameter of link and determines corresponding faulty link;By way of circulation searching, such as 1 institute of table
Showing can be by changing source port, and the mode of fixed source IP address, purpose IP address and destination port forms different sources
Mouth is combined with source port, source IP address and destination port, determines that each first of the test network is tested link and be whether there is
It is abnormal, and there is the faulty link of the first abnormal test link.
Link information | Source port | Purpose IP address | Source IP address | Destination port |
First test link | 8001 | 172.132.2.9 | 168.158.2.99 | 8082 |
First test link | 8002 | 172.132.2.9 | 168.158.2.99 | 8082 |
First test link | ..... | ..... | ..... | ..... |
First test link | 8098 | 172.132.2.9 | 168.158.2.99 | 8082 |
First test link | 8099 | 172.132.2.9 | 168.158.2.99 | 8082 |
Table 1
Optionally, the embodiment of the present invention as shown in Figure 4 provides a kind of detection method of faulty link further include: according to inspection
It surveys as a result, generating the information for carrying testing result;According to information, testing result is shown.
It should be noted that in order to save hardware resource to the greatest extent under the premise of guarantee traverses all links,
After test stream issues can by way of network node equipment on inquired with this and go to the routing of test address, result
It is exactly the grade path between the equipment of the network node and the equipment of adjacent next-hop network node, it is hereby achieved that from survey
Examination source was being tested to grade path entry number and corresponding router port between test purpose between every two router
Cheng Zhong, it is every to issue test and flow, the equipment of each network node can according to its source IP address, mesh IP address, source port and
Four parameter queries of eye end mouth test stream can by the equipment of which network node which, according to known port information,
If test stream has covered all ports, then it is assumed that the detection to all outlet ports equal-cost link is completed in test stream.
The detection method of faulty link provided in an embodiment of the present invention, by differentiating every first test in network to be tested
There is the first abnormal test link with the presence or absence of exception, to find out in link, then test by first in network to be tested
The corresponding first network parameter of link determines faulty link;Wherein, at least one the first test links include: at least two networks
Node;Faulty link includes: the link between adjacent network node;Therefore, the faulty link that the embodiment of the present invention provides
Detection method is not necessarily to that the link between detection adjacent network node is manually gone to whether there is failure, and can be according at least
The faulty link that one first test link determines, so that the testing result of corresponding test network is obtained, without increasing more
The troubleshooting of network O&M personnel is facilitated while man power and material;It solves in the prior art when carrying out fault location
When there is no problem for the equipment for the network node being detected, need network O&M personnel go to detect manually each network node it
Between link it is whether abnormal, since the timeliness of artificial treatment is lower, operator needs to put into more man power and materials and guarantees
The problem of timely processing of exception.
Embodiment two, the embodiment of the present invention provide a kind of detection device 10 of faulty link, include: as shown in Figure 5
Data capture unit 101, for obtaining the test index of network to be tested;Wherein, test index includes at least one
Item first tests the corresponding first network parameter of link, and first network parameter includes: source IP address, source port, purpose IP address
And destination port.
Data capture unit 101 is also used to obtain corresponding second network parameter of at least one the first test links;Its
In, the second network parameter includes: TCP connection time delay, first byte arrival time delay, page browsing overall delay and page-downloading speed.
Data processing unit 102, at least one the first test link pairs for being obtained according to data capture unit 101 are answered
The second network parameter, differentiate at least one the first test links with the presence or absence of abnormal;When determining at least one the first test chains
Road is deposited when abnormal, the corresponding first network parameter of at least one the first test links obtained according to data capture unit 101
Determine faulty link;Wherein, at least one the first test links include: at least two network nodes;Faulty link includes: adjacent
Link between network node.
Data processing unit 102 is also used to the faulty link determined according at least one the first test links, generates to be measured
Try the testing result of network.
Optionally, data processing unit 102, specifically for what is obtained according to discriminant function and data capture unit 101
Corresponding second network parameter of at least one the first test links calculates the judgment value of at least one the first test links;Wherein,
Discriminant function includes:
Wherein, P indicates judgment value, and T (TCP) indicates TCP connection time delay, and T (init) indicates that first byte reaches time delay, T
(total) representation page browses overall delay, S (Down) representation page speed of download, Tave1(TCP) it indicates and at least one the first
Test the average value that link has the second of the identical purpose IP address TCP connection time delay for testing link, Tave2(init) it indicates
With at least one the first test links there is the first byte of the second test link of identical purpose IP address to reach being averaged for time delay
Value, Tave3(total) indicate that there is the second of the identical purpose IP address page for testing link at least one the first test links
Face browses the average value of overall delay, Save(Down) it indicates at least one the first test links with identical purpose IP address
The average value of the page-downloading speed of second test link, A indicates the weight that TCP connection time delay accounts for, when B indicates that first byte reaches
Prolong the weight accounted for, the weight that C representation page browsing overall delay accounts for, the weight that D representation page speed of download accounts for, and A+B+C+D
=1, the first test link is different from the second test link;When judgment value is greater than preset threshold, at least one the first test chains
There is exception in road, wherein preset threshold is the constant greater than 0.
Optionally, data processing unit 102, specifically for obtained according to data capture unit 101 at least one the first
The corresponding first network parameter of link is tested, determines the network node that at least one the first test links pass through;Data processing list
Member 102, the link for being also used to survey by ping between detection adjacent network node is with the presence or absence of packet loss phenomenon;When detecting packet loss
When phenomenon, there are failures for the link between adjacent network node.
Optionally, the detection device 10 of faulty link further include: data display unit 103;Data processing unit 102, also
For according to testing result, generating the information for carrying testing result;Data display unit 103, for according to data processing unit
102 information generated, show testing result.
It should be noted that data processing unit can also send this information to user terminal in actual application
It is shown, the long-range monitoring of more convenient user;Wherein, user terminal includes: PC, and mobile phone, tablet computer etc. can
With the equipment for carrying out data interaction by network.
The detection device of faulty link provided in an embodiment of the present invention, by differentiating every first test in network to be tested
There is the first abnormal test link with the presence or absence of exception, to find out in link, then test by first in network to be tested
The corresponding first network parameter of link determines faulty link;Wherein, at least one the first test links include: at least two networks
Node;Faulty link includes: the link between adjacent network node;Therefore, the faulty link that the embodiment of the present invention provides
Detection method is not necessarily to that the link between detection adjacent network node is manually gone to whether there is failure, and can be according at least
The faulty link that one first test link determines, so that the testing result of corresponding test network is obtained, without increasing more
The troubleshooting of network O&M personnel is facilitated while man power and material;It solves in the prior art when carrying out fault location
When there is no problem for the equipment for the network node being detected, need network O&M personnel go to detect manually each network node it
Between link it is whether abnormal, since the timeliness of artificial treatment is lower, operator needs to put into more man power and materials and guarantees
The problem of timely processing of exception.
Embodiment three, the embodiment of the present invention provide a kind of server, comprising: any one failure provided such as embodiment two
The detection device of link.Specific detection device may refer to the associated description in above-mentioned apparatus embodiment two, no longer superfluous herein
It states.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (9)
1. a kind of detection method of faulty link characterized by comprising obtain the test index of network to be tested;Wherein, institute
Stating test index includes the corresponding first network parameter of at least one the first test links, and the first network parameter includes: source
IP address, source port, purpose IP address and destination port;By modifying the source port, described at least one the first are traversed
Test link;
Obtain corresponding second network parameter of at least one the first tests link;Wherein, second network parameter includes:
TCP connection time delay, first byte reach time delay, page browsing overall delay and page-downloading speed;
According to corresponding second network parameter of at least one the first tests link, at least one the first test chain is differentiated
Road is with the presence or absence of abnormal;
When determining that at least one the first tests link deposits when abnormal, answered according at least one the first test link pair
First network parameter determine faulty link;Wherein, at least one the first tests link includes: at least two network sections
Point;The faulty link includes: the link between adjacent network node;
According to the faulty link that at least one the first tests link determines, the testing result of the network to be tested is generated.
2. the detection method of faulty link according to claim 1, which is characterized in that described according to described at least one the
One corresponding second network parameter of test link differentiates at least one the first test link with the presence or absence of abnormal, comprising:
According to discriminant function and corresponding second network parameter of at least one the first tests link, described at least one is calculated
The judgment value of the test link of item first;Wherein, the discriminant function includes:
Wherein, P indicates judgment value, and T (TCP) indicates TCP connection time delay, and T (init) indicates that first byte reaches time delay, T (total)
Representation page browses overall delay, S (Down) representation page speed of download, Tave1(TCP) it indicates to survey with described at least one the first
Try the average value that link has the second of the identical purpose IP address TCP connection time delay for testing link, Tave2(init) indicate with
There is at least one the first tests link first byte of the second test link of identical purpose IP address to reach the flat of time delay
Mean value, Tave3(total) indicate have the second of identical purpose IP address to test chain at least one the first tests link
The average value of the page browsing overall delay on road, Save(Down) it indicates at least one the first test link with identical mesh
IP address the second test link page-downloading speed average value, A indicates the weight that accounts for of TCP connection time delay, and B indicates first
The weight that byte arrival time delay accounts for, the weight that C representation page browsing overall delay accounts for, the weight that D representation page speed of download accounts for, and
And A+B+C+D=1, the first test link are different from the second test link;
When the judgment value is greater than preset threshold, at least one the first tests link exist it is abnormal, wherein described default
Threshold value is the constant greater than 0.
3. the detection method of faulty link according to claim 1, which is characterized in that described according to described at least one the
The corresponding first network parameter of one test link determines faulty link, comprising:
According to the corresponding first network parameter of at least one the first tests link, at least one the first test chain is determined
The network node that road is passed through;
It whether there is packet loss phenomenon by the link that ping is surveyed between detection adjacent network node;
When detecting packet loss phenomenon, there are failures for the link between the adjacent network node.
4. the detection method of faulty link according to claim 1, which is characterized in that the method also includes:
According to the testing result, the information for carrying the testing result is generated;
According to the information, the testing result is shown.
5. a kind of detection device of faulty link characterized by comprising
Data capture unit, for obtaining the test index of network to be tested;Wherein, the test index includes at least one the
The corresponding first network parameter of one test link, the first network parameter includes: source IP address, source port, purpose IP address
And destination port;By modifying the source port, at least one the first test link is traversed;
The data capture unit is also used to obtain corresponding second network parameter of at least one the first tests link;Its
In, second network parameter includes: TCP connection time delay, first byte arrival time delay, page browsing overall delay and page-downloading speed
Degree;
Data processing unit, at least one the first tests link for being obtained according to the data capture unit are corresponding
Second network parameter differentiates at least one the first test link with the presence or absence of abnormal;
When determine at least one the first tests link deposit when abnormal, according to the data capture unit obtain described in extremely
Few corresponding first network parameter of one first test link determines faulty link;Wherein, at least one the first tests chain
Road includes: at least two network nodes;The faulty link includes: the link between adjacent network node;
The data processing unit is also used to the faulty link determined according at least one the first tests link, generates institute
State the testing result of network to be tested.
6. the detection device of faulty link according to claim 5, which is characterized in that the data processing unit, specifically
For at least one the first tests link corresponding second according to discriminant function and data capture unit acquisition
Network parameter calculates the judgment value of at least one the first tests link;Wherein, the discriminant function includes:
Wherein, P indicates judgment value, and T (TCP) indicates TCP connection time delay, and T (init) indicates that first byte reaches time delay, T (total)
Representation page browses overall delay, S (Down) representation page speed of download, Tave1(TCP) it indicates to survey with described at least one the first
Try the average value that link has the second of the identical purpose IP address TCP connection time delay for testing link, Tave2(init) indicate with
There is at least one the first tests link first byte of the second test link of identical purpose IP address to reach the flat of time delay
Mean value, Tave3(total) indicate have the second of identical purpose IP address to test chain at least one the first tests link
The average value of the page browsing overall delay on road, Save(Down) it indicates at least one the first test link with identical mesh
IP address the second test link page-downloading speed average value, A indicates the weight that accounts for of TCP connection time delay, and B indicates first
The weight that byte arrival time delay accounts for, the weight that C representation page browsing overall delay accounts for, the weight that D representation page speed of download accounts for, and
And A+B+C+D=1, the first test link are different from the second test link;
When the judgment value is greater than preset threshold, at least one the first tests link exist it is abnormal, wherein described default
Threshold value is the constant greater than 0.
7. the detection device of faulty link according to claim 5, which is characterized in that the data processing unit, specifically
The corresponding first network parameter of at least one the first tests link for being obtained according to the data capture unit, determines
The network node that at least one the first tests link passes through;
The data processing unit, the link for being also used to survey by ping between detection adjacent network node are existing with the presence or absence of packet loss
As;
When detecting packet loss phenomenon, there are failures for the link between the adjacent network node.
8. the detection device of faulty link according to claim 5, which is characterized in that the detection device of the faulty link
Further include: data display unit;
The data processing unit is also used to generate the information for carrying the testing result according to the testing result;
The data display unit, the information for being generated according to the data processing unit, shows the testing result.
9. a kind of server characterized by comprising such as the detection device of the described in any item faulty links of claim 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810295066.6A CN108566315B (en) | 2018-03-30 | 2018-03-30 | A kind of detection method of faulty link, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810295066.6A CN108566315B (en) | 2018-03-30 | 2018-03-30 | A kind of detection method of faulty link, device and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108566315A CN108566315A (en) | 2018-09-21 |
CN108566315B true CN108566315B (en) | 2019-10-08 |
Family
ID=63534069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810295066.6A Active CN108566315B (en) | 2018-03-30 | 2018-03-30 | A kind of detection method of faulty link, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108566315B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109831359B (en) * | 2019-02-01 | 2021-04-02 | 维沃移动通信有限公司 | Method for detecting connection state of data network and terminal equipment thereof |
CN110740065B (en) * | 2019-10-29 | 2022-04-15 | 中国联合网络通信集团有限公司 | Method, device and system for identifying degradation fault point |
CN111367704A (en) * | 2020-03-23 | 2020-07-03 | 腾讯科技(深圳)有限公司 | Interactive usability detection method, device, server, test equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035691A (en) * | 2009-09-28 | 2011-04-27 | 中国移动通信集团公司 | Method and device for detecting quality of network link |
CN103139820A (en) * | 2013-03-12 | 2013-06-05 | 华为技术有限公司 | Link detection method and network elements |
JP5322987B2 (en) * | 2010-03-29 | 2013-10-23 | 東日本電信電話株式会社 | Failure detection device |
CN105656662A (en) * | 2014-12-08 | 2016-06-08 | 华为技术有限公司 | Fault locating method and apparatus |
CN105721184A (en) * | 2014-12-03 | 2016-06-29 | 中国移动通信集团山东有限公司 | Network link quality monitoring method and apparatus |
CN106789430A (en) * | 2016-12-26 | 2017-05-31 | 深圳市风云实业有限公司 | A kind of point-to-point link fault detection method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932191B (en) * | 2012-11-26 | 2015-08-19 | 赛特斯信息科技股份有限公司 | Realize the method for real time intelligent failure analysis based on dynamic link in IPTV network |
-
2018
- 2018-03-30 CN CN201810295066.6A patent/CN108566315B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035691A (en) * | 2009-09-28 | 2011-04-27 | 中国移动通信集团公司 | Method and device for detecting quality of network link |
JP5322987B2 (en) * | 2010-03-29 | 2013-10-23 | 東日本電信電話株式会社 | Failure detection device |
CN103139820A (en) * | 2013-03-12 | 2013-06-05 | 华为技术有限公司 | Link detection method and network elements |
CN105721184A (en) * | 2014-12-03 | 2016-06-29 | 中国移动通信集团山东有限公司 | Network link quality monitoring method and apparatus |
CN105656662A (en) * | 2014-12-08 | 2016-06-08 | 华为技术有限公司 | Fault locating method and apparatus |
CN106789430A (en) * | 2016-12-26 | 2017-05-31 | 深圳市风云实业有限公司 | A kind of point-to-point link fault detection method |
Also Published As
Publication number | Publication date |
---|---|
CN108566315A (en) | 2018-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108566315B (en) | A kind of detection method of faulty link, device and server | |
Chen et al. | An algebraic approach to practical and scalable overlay network monitoring | |
KR101893475B1 (en) | method of providing network status monitor based on artificial intelligence for multi-layer representation | |
Wu et al. | Internet routing resilience to failures: analysis and implications | |
CN102868553B (en) | Fault Locating Method and relevant device | |
CN106452930B (en) | A kind of fault diagnosis method and system of the service function chain based on detection | |
Chi et al. | Cyclops: the AS-level connectivity observatory | |
CN105721184A (en) | Network link quality monitoring method and apparatus | |
CN104486236B (en) | The method and routing device of load balancing | |
CN106034045A (en) | Ethernet link failure positioning method, device and system | |
CN108306747A (en) | A kind of cloud security detection method, device and electronic equipment | |
CN108809708A (en) | A kind of powerline network node failure detecting system | |
CN106302017A (en) | High concurrent low discharge network velocity-measuring system and method | |
CN114374626B (en) | Router performance detection method under 5G network condition | |
CN104518899A (en) | Network routing traffic simulation method and device | |
CN105357071B (en) | A kind of network complexity method for recognizing flux and identifying system | |
CN107579981A (en) | A kind of network flow monitoring method and system | |
Sapegin et al. | On the extent of correlation in BGP updates in the Internet and what it tells us about locality of BGP routing events | |
CN110474801A (en) | Powerline network fault simulation method based on service reliability | |
CN107438026A (en) | The failure recovery method and apparatus of inter-domain routing system | |
CN109088756A (en) | A kind of network topology complementing method based on network equipment identification | |
CN107925702B (en) | Method, apparatus, computer readable medium for detecting a broken binder | |
CN104917623A (en) | Method and device for realizing SDN network communication management | |
Yeganeh et al. | A view from the edge: A stub-as perspective of traffic localization and its implications | |
Wang | Computer network routing configuration based on intelligent algorithm |
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 |