Summary of the invention
Purpose of the present invention just is according to above-mentioned network failure problem, thus the network fault node diagnosis method that provides a kind of diagnosis of finishing malfunctioning node automatically to test automatically.
Purpose of the present invention can realize by following measure:
The inventive method is as follows:
(1) surveys the purpose network connectivty according to selected agreement
Use transmission control protocol TCP or User Datagram Protoco (UDP) UDP, send transmission control protocol TCP handshaking information or User Datagram Protoco (UDP) UDP message to destination address and destination interface, and wait for that target device replys, by judging return information or overtimely judging whether network can be communicated with;
(2) if network can not be communicated with, at first internet usage control information agreement ICMP carries out route tracking; Find that network can not be communicated with, then the route that arrives destination address is followed the trail of in the route tracking order of internet usage control information agreement ICMP, if all devices is not all forbidden ICMP ICMP on the network, can find complete route;
(3) if internet usage control information agreement ICMP can find complete route, then carry out failure diagnosis
According to the complete routing iinformation that finds, from from the nearest device node of destination address, the connectedness of testing each node to source device node successively.If have a plurality of continuous or discontinuous nodes all can not be communicated with, think that then nearest node has problem; If all nodes can be communicated with, think that then destination device is a malfunctioning node;
(4) if internet usage control information agreement ICMP can not find complete route, then use User Datagram Protoco (UDP) UDP to carry out route tracking:
Internet usage control information agreement ICMP can't find complete routing iinformation, then uses the user datagram udp protocol instead and carries out route tracking operation, can find complete route as this step 1;
(5) find routing iinformation, then carry out failure diagnosis
After using User Datagram Protoco (UDP) UDP to find the routing iinformation of finishing, then can carry out the diagnosis of malfunctioning node, method is the same.
In the method for the present invention: when internet usage control information agreement ICMP searches route, also can find under the situation of complete route, use User Datagram Protoco (UDP) UDP to search route once more, and contrast the result who searches for twice, choose one of them and carry out failure diagnosis.
The present invention is owing to adopt said method, and this method is the detection network malfunctioning node automatically, and in the tracking route operating speed ICMP agreement faster at first, simultaneously the route tracking of UDP is backed up the most, guaranteed to find the probability of finishing route; Simultaneously the method for probe node connectedness is effective flexibly, effective auxiliary network Fault Diagnosis in real work.
Embodiment
The present invention does with detailed description below in conjunction with drawings and Examples:
Embodiment 1
The inventive method is as follows:
As shown in the figure
(1) surveys the purpose network connectivty according to selected agreement
Use transmission control protocol TCP or User Datagram Protoco (UDP) UDP, send transmission control protocol TCP handshaking information or User Datagram Protoco (UDP) UDP message to destination address and destination interface, and wait for that target device replys, by judging return information or overtimely judging whether network can be communicated with;
(2) if network can not be communicated with, at first internet usage control information agreement ICMP carries out route tracking
Find that network can not be communicated with, then the route that arrives destination address is followed the trail of in the route tracking order of internet usage control information agreement ICMP, if all devices is not all forbidden ICMP ICMP on the network, can find complete route;
(3) if internet usage control information agreement ICMP can find complete route, then carry out failure diagnosis
According to the complete routing iinformation that finds, from from the nearest device node of destination address, the connectedness of testing each node to source device node successively.If have a plurality of continuous or discontinuous nodes all can not be communicated with, think that then nearest node has problem; If all nodes can be communicated with, think that then destination device is a malfunctioning node;
(4) if internet usage control information agreement ICMP can not find complete route, then use User Datagram Protoco (UDP) UDP to carry out route tracking:
Internet usage control information agreement ICMP can't find complete routing iinformation, then uses the user datagram udp protocol instead and carries out route tracking operation, can find complete route as this step 1;
(5) find routing iinformation, then carry out failure diagnosis
After using User Datagram Protoco (UDP) UDP to find the routing iinformation of finishing, then can carry out the diagnosis of malfunctioning node, method is the same.
Embodiment 2
According to daily testing process, at first develop automatic testing software and can simulate and finish the detection network path to the whole process of seeking the network failure node according to specified protocol; Secondly, at each network equipment node, (TCP, UDP) finish automatic test: whole test process only need be filled in the purpose network address, just can finish the diagnosis of malfunctioning node according to network connectivty automatically can to adopt selected agreement.
Seek malfunctioning node and need experience following steps:
The inventive method is as follows:
(1) surveys the purpose network connectivty according to selected agreement
Use transmission control protocol TCP or User Datagram Protoco (UDP) UDP, send transmission control protocol TCP handshaking information or User Datagram Protoco (UDP) UDP message to destination address and destination interface, and wait for that target device replys, by judging return information or overtimely judging whether network can be communicated with;
(2) if network can not be communicated with, at first internet usage control information agreement ICMP carries out route tracking
Find that network can not be communicated with, then the route that arrives destination address is followed the trail of in the route tracking order of internet usage control information agreement ICMP, if all devices is not all forbidden ICMP ICMP on the network, can find complete route;
(3) if internet usage control information agreement ICMP can find complete route, then carry out failure diagnosis
According to the complete routing iinformation that finds, from from the nearest device node of destination address, the connectedness of testing each node to source device node successively.If have a plurality of continuous or discontinuous nodes all can not be communicated with, think that then nearest node has problem; If all nodes can be communicated with, think that then destination device is a malfunctioning node;
(4) if internet usage control information agreement ICMP can not find complete route, then use User Datagram Protoco (UDP) UDP to carry out route tracking:
Internet usage control information agreement ICMP can't find complete routing iinformation, then uses the user datagram udp protocol instead and carries out route tracking operation, can find complete route as this step 1;
(5) find routing iinformation, then carry out failure diagnosis
After using User Datagram Protoco (UDP) UDP to find the routing iinformation of finishing, then can carry out the diagnosis of malfunctioning node, method is the same.
The inventive method (4) in: when internet usage control information agreement ICMP searches route, also can find under the situation of complete route, use User Datagram Protoco (UDP) UDP to search route once more, and contrast the result who searches for twice, choose one of them and carry out failure diagnosis.