CN103874105B - A kind of route tracing method, system and a kind of gateway device - Google Patents
A kind of route tracing method, system and a kind of gateway device Download PDFInfo
- Publication number
- CN103874105B CN103874105B CN201210529534.4A CN201210529534A CN103874105B CN 103874105 B CN103874105 B CN 103874105B CN 201210529534 A CN201210529534 A CN 201210529534A CN 103874105 B CN103874105 B CN 103874105B
- Authority
- CN
- China
- Prior art keywords
- detection
- destination host
- host
- gateway device
- direct
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of route tracking method, system and a kind of gateway device.Specific method is:According to the destination host address in the detection data from source host received, when the mode for detecting linking objective main frame is direct-connected mode, data link layer path tracing is sent to ask, to the destination host, to obtain the MAC Address for being located at equipment in data link layer path;The timeout packet for carrying the MAC Address is sent to source host;Source host sends detection data to destination host according to the timeout packet of the carrying MAC Address received.Source host receives the unreachable response message in port of destination host transmission, and confirmation has detected that destination host.End-to-end direct path detection can be achieved, solves the problem of any one detective path instrument all can not realize path testing end to end in the prior art, path data can be more accurately provided, effective support is provided for network O&M.
Description
Technical field
The present invention relates to moving communicating field, more particularly to a kind of route tracing method, system and a kind of gateway device.
Background technology
With developing rapidly for ICT, computer network has become indispensable one of people's life
Point.Once network communication is broken down, work may be caused to paralyse state, the work and life of people is sustained a loss.
When network failure, usually the generation position of failure problems is positioned using route Traceroute instruments are followed the trail of.Specifically
It is from source host to destination host paths traversed, to check whether network connection is reachable, and tentatively using message detection
Position the position of network failure;And using Internet to follow the trail of route Traceroute IP instruments, detection is in different segment
The path identified with IP address from source host to destination host;Route Traceroute MAC are followed the trail of using data link layer
Instrument, detects the path identified with MAC Address from source host to destination host in the same network segment.So to realize that Internet is arrived
Source host between data link layer is to all path tracings between destination host, it is necessary to use Traceroute IP instruments
With Traceroute MAC instruments.
Prior art is when realizing path detection end to end, it is necessary to first using Traceroute IP instruments to Internet
Path is detected, then data link layer path is detected using Traceroute MAC instruments, could be realized end-to-end
Path detection, and individually use Traceroute IP instruments when, can only obtain the IP address information of gateway device, it is impossible to visit
Measure the presence of data link layer switch equipment;And when individually using Traceroute MAC instruments, but can not be to different nets
The source host and destination host of section are detected, and road is through being confined among the same network segment, when to belonging to two of different segment
When path between main frame is detected, detection will report an error, therefore both exclusive uses can not complete path spy end to end
Survey.And the method in existing this tracking path is complicated in control management, it is impossible to detective path directly is passed into source host,
So that source host control initiative is poor.
The content of the invention
In order to solve the above problems, present invention aims at provide a kind of route tracing method, system and a kind of gateway to set
It is standby, can be implemented separately between Internet and data link layer, end to end path detection, this method and device can, quickly
Detective path, and active transfer detective path is to source host, so that source host is controlled management, safeguards and provides for the network operation
More reliable guarantee.
The invention provides a kind of route tracing method, including:
According to the destination host address in the detection data from source host received, linking objective main frame is detected
When mode is direct-connected mode, sends data link layer path tracing and ask, to the destination host, to obtain and be located at data link layer
The MAC Address of equipment in path;
The timeout packet for carrying the MAC Address is sent to source host.
It is preferred that, after the timeout packet for sending the carrying MAC Address is to source host, in addition to:
Source host sends detection data to destination host according to the timeout packet of the carrying MAC Address received;
Source host receives the unreachable response message in port of destination host transmission, and confirmation has detected that destination host.
It is preferred that, it is characterised in that destination host in the detection data from source host that the basis is received
Location, the mode for detecting linking objective main frame is direct-connected mode, including:
Obtain the address information of gateway device and the address information of destination host;
Gateway device and destination host are recognized whether in the same network segment, if in the same network segment, for direct-connected mode.
It is preferred that, in addition to:
According to the destination host address in the detection data from source host received, linking objective main frame is detected
When mode is not direct-connected mode, then timeout packet is sent to source host, so that source host sends next detection data.
Present invention also offers a kind of gateway device, including:
Detection module, for the destination host address in the detection data from source host received, detection connects
Whether the mode for connecing destination host is direct-connected mode;
First processing module, for when detection module is detected as direct-connected mode, then sending data link layer path tracing
Ask, to the destination host, to obtain the MAC Address for being located at equipment in data link layer path, send and carry the MAC Address
Timeout packet to source host.
It is preferred that, the detection module, including:
Acquisition submodule, for obtaining the address information of gateway device and the address information of destination host;
Submodule is recognized, for whether recognizing gateway device and destination host in the same network segment, if in the same network segment,
It is then direct-connected mode.
It is preferred that, in addition to:
Second processing module, for when detection module detection is not direct-connected mode, sending timeout packet to source host, with
Just source host sends next detection data.
Present invention also offers a kind of path tracing system, including:
Detecting devices, target device and gateway, the gateway include at least one gateway device;
The gateway device, including:Detection module and first processing module,
Detection module, for the destination host in the detection data received, detects the mode of linking objective main frame
Whether it is direct-connected mode;
First processing module, for when detection module is detected as direct-connected mode, then sending data link layer path tracing
Ask, to the destination host, to obtain the MAC Address for being located at equipment in data link layer path, send and carry the MAC Address
Timeout packet to source host.The detecting devices, for initiating detective path request;
The target device, is handled for the detection data to reception.
It is preferred that, the detecting devices, including:
Sending submodule, for timeout packet of the detecting devices according to the carrying MAC Address received, sends detection
Data are to target device;
Receiving submodule, the unreachable response message in port for receiving target device transmission, confirmation has detected that target
Equipment.
It is preferred that, the target device, including:
Detection sub-module, for sending the detection data received to corresponding upper layer application according to port numbers;
Submodule is fed back, for the inaccessible response message in port to be fed back into detecting devices.
It is preferred that, in addition to:
Second processing module, for when detection module detection is not direct-connected mode, sending timeout packet to source host, with
Just source host sends next detection data.
It is preferred that, the detection module, including:
Acquisition submodule, for obtaining the address information of gateway device and the address information of destination host;
Submodule is recognized, for whether recognizing gateway device and destination host in the same network segment, if in the same network segment,
It is then direct-connected mode.
It can be seen from above-described embodiment that a kind of path detection method, system and a kind of gateway that the present invention is provided are set
It is standby, according to the destination host address in the detection data from source host received, detect the mode of linking objective main frame
When being direct-connected mode, it is the gateway where destination host to show now gateway device, then sending data link layer path tracing please
Ask to the destination host, obtain the MAC Address for being located at equipment in data link layer path;Send and carry the MAC Address
Timeout packet is to source host so that source host directly obtained between destination host through the two-layer equipment in path and three layers
The routing information of equipment, is finally completed path detection end to end, therefore the method provided using the present invention is realized end to end
Path detection, it is to avoid caused by being converted when carrying out cross-layer path detection between two three-layer networks using different instruments
Problem, solves the problem of any one detective path instrument all can not realize path testing end to end in the prior art, can
More accurately to provide path data, effective support is provided for network O&M.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of route tracing method flow chart that the embodiment of the present invention one is disclosed;
Fig. 2 is a kind of path tracing scene graph that the embodiment of the present invention two is disclosed;
Fig. 3 A are the first path detection processing method flow chart that the embodiment of the present invention two is disclosed;
Fig. 3 B are the second path detection process flow figure that the embodiment of the present invention two is disclosed;
Fig. 3 C are the 3rd path detection process flow figure that the embodiment of the present invention two is disclosed;
Fig. 3 D are that the final path that the embodiment of the present invention two is disclosed confirms detection method flow chart;
Fig. 4 is a kind of structural representation for gateway device that the embodiment of the present invention three is disclosed;
Fig. 5 is a kind of path tracing system framework figure that the embodiment of the present invention four is disclosed.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention
Embodiment is described in detail.
Embodiment one
Referring to Fig. 1, it is a kind of route tracing method flow chart that the embodiment of the present invention one is disclosed, including following step
Suddenly:
Step 101:According to the destination host address in the detection data from source host received, connection mesh is detected
When the mode for marking main frame is direct-connected mode, sends data link layer path tracing and ask, to the destination host, to obtain and be located at number
According to the MAC Address of equipment in link layer path;
Step 102:The timeout packet for carrying the MAC Address is sent to source host.
It is preferred that, methods described, in addition to:
Source host sends detection data to destination host according to the timeout packet of the carrying MAC Address received;
Source host receives the unreachable response message in port of destination host transmission, and confirmation has detected that destination host.
It is preferred that, the step 101 includes:
Obtain the address information of gateway device and the address information of destination host;
Gateway device and destination host are recognized whether in the same network segment, if in the same network segment, for direct-connected mode.
It is preferred that, the detection data can be control protocol ICMP request messages between User Agreement datagram or net,
It can certainly be that by detecting any data mode of purpose, it is specific and be not construed as limiting.
Method by being provided in above-described embodiment one, can be detected whether itself is in destination host by gateway device
The same network segment, if it is, the MAC of the two-layer equipment such as interchanger in the path from gateway device to destination host can be obtained
Address, is then back to a timeout packet to source host, the timeout packet includes the MAC Address of all two-layer equipments, so as to
Source host, according to the timeout packet received, sends detection data to destination host, obtain the inaccessible response message in port from
And confirm to detect destination host.
, can with the path of direct detection to three-layer equipment and two-layer equipment, it is to avoid cross-layer when realizing that end communicates with end
The problem of detection is caused using different instruments, path data can be more accurately provided, effective branch is provided for network O&M
Support.
Embodiment two
For the method that the more detailed description present invention is provided, it is described with specific scene, scene graph such as Fig. 2 institutes
Show a kind of path tracing scene graph, in the communication path between source host and destination host, include three three-layer equipments and two
Individual two-layer equipment, three three-layer equipments are three gateway devices, and two two-layer equipments are two interchangers.Specific method is as schemed
The first path detection processing method flow chart that is described respectively in 3A, Fig. 3 B, Fig. 3 C and Fig. 3 D, the second path detection processing method
Flow chart, the 3rd path detection process flow figure and final path confirm detection method flow chart, whole path detection side
Method includes:First path detection processing, the processing of the second path detection, the processing of the 3rd path detection and final path confirm detection,
Specially:
First path detection is handled:
Step 1A:First gateway device receives the detection data that source host is sent, and TTL is 1;
Step 1B:By the processing that subtracts 1 of the life span ttl value in the detection data, obtained difference is 0, abandons the spy
Survey data;
Step 1C:The mode of linking objective main frame is detected, is not direct-connected mode, then sends timeout packet, so as to source host
Resend the detection data that ttl value plus 1;
The processing of second path detection:
Step 2A:The detection data that the TTL that first gateway device receives source host transmission is 2, then carry out the processing that subtracts 1,
It is not 0 to obtain difference, and TTL is passed into the second gateway device for 1 detection data;
Step 2B:Second gateway device will receive the detection data that TTL is 1, processing that progress TTL subtracts 1, and obtaining difference is
0, abandon the detection data;
Step 2C:Second gateway device detects the mode of linking objective main frame, is not direct-connected mode, then sends time-out report
Text, so that source host resends the detection data that ttl value plus 1;
The processing of 3rd path detection:
Step 3A:The detection data that the TTL that first gateway device receives source host transmission is 3, then carry out the processing that subtracts 1,
It is not 0 to obtain difference, and TTL is passed into the second gateway device for 2 detection data;
Step 3B:Second gateway device will receive the detection data that TTL is 2, processing that progress TTL subtracts 1, and obtaining difference is
1, TTL is passed into the 3rd gateway device for 1 detection data;
Step 3C:3rd gateway device is by the detection data that the TTL received is 1, and processing that progress TTL subtracts 1 obtains difference
For 0, discarding detection data;
Step 3D:3rd gateway device detects the mode of linking objective main frame, is direct-connected mode, sends data link layer road
Request is followed the trail of to the destination host in footpath;
Step 3E:3rd gateway device, which is obtained, is located at all devices, the first interchanger and second in data link layer path
Switch mac address, and the timeout packet for carrying all switch mac address is sent to source host, so that source host enters
The final path of row confirms;
Final path confirms detection:
Step 4A:Source host sends TTL according to the timeout packet of the described two switch mac address of carrying received
User data for 4 and the non-serviceable user data port numbers 33333 of carrying offers destination host;
Step 4B:Source host obtains the unreachable response message in port that destination host is sent, and confirms path detection success.
It is preferred that, the detection data is:Control protocol ICMP request messages between User Agreement datagram or net.
It is preferred that, the step 1C, including:Obtain the address information of the first gateway device and the address letter of destination host
Breath;The first gateway device and destination host are recognized whether in the same network segment, if in the same network segment, for direct-connected mode, if
It is inconsistent, then it is not direct-connected mode.
It is preferred that, the step 2C, including:Obtain the address information of the second gateway device and the address letter of destination host
Breath;The second gateway device and destination host are recognized whether in the same network segment, if in the same network segment, for direct-connected mode,
It is not direct-connected mode if inconsistent.
It is preferred that, the step 3D, including:Obtain the address information of the 3rd gateway device and the address letter of destination host
Breath;The 3rd gateway device and destination host are recognized whether in the same network segment, if in the same network segment, for direct-connected mode, if
It is inconsistent, then it is not direct-connected mode.
Whether specific identification gateway device and destination host, can be by contrasting in two network address in the same network segment
Former positions, with judge both whether in the same network segment, specifically judge that several have different requirements according to specific agreement,
This is not construed as limiting, naturally it is also possible to be made whether in other way in the judgement of the same network segment or by it
His mode come judge gateway device whether be target device gateway.
It is preferred that, the detection data can be control protocol ICMP request messages between User Agreement datagram or net,
It can certainly be that by detecting any data mode of purpose, not limit specifically.
And in first path detection processing of the present invention, the processing of the second path detection and the processing of the 3rd path detection
's:Processing that progress TTL subtracts 1, it is 0 to obtain difference, abandons detection data, is intended merely to judge the net for receiving this detection data
It is last gateway device to close equipment, in specific application scenarios, using can specifically realize the data of detection purpose, this
Individual judgement processing procedure can be different, and the present embodiment only provides a kind of this form, and other forms are not limited herein.
Because the present embodiment is to be directed to specific application scenarios, as shown in Figure 2, first gateway device and described the
Two gateway devices, with destination host not in the same network network segment, so not being direct-connected mode.And the 3rd gateway device
Then it is direct-connected mode with destination host in the same network network segment.It is preferred that, methods described, in addition to:Destination host, connects
Receive after user datagram, detect the destination slogan numerical value of datagram to determine the corresponding upper layer application of datagram, due to
The destination slogan position 33333 of datagram, port numbers super large, any one application program of destination host does not all use the end
Mouthful, destination host will produce the inaccessible response message in a port, and be sent to source host.
It is preferred that, methods described, in addition to:Destination host, receives control protocol ICMP request messages, purpose master between net
Machine will produce ICMP response messages, and be sent to source host.It is preferred that, the final path confirms detection, can also include:
Step 4C:Source host sends TTL according to the timeout packet of the described two switch mac address of carrying received
It is control protocol ICMP request messages between 4 net to destination host;
Step 4D:Source host obtains the ICMP response messages that destination host is sent, and confirms path detection success.
By above-described embodiment two as can be seen that sending detection data by source host, three gateway devices are being connected to spy
Survey after data, do corresponding processing, and detect whether that with destination host be direct-connected mode, finally detect source host to target
Between main frame in end-to-end communication link all two-layer equipment MAC Address and three-layer equipment IP address, realize road end to end
Footpath is detected, and solves the problem of any one detective path instrument all can not realize path testing end to end in the prior art,
Certain the present embodiment simply show in a kind of situation, practical application can exist between source host and destination host it is a variety of multiple
Gateway device is not only three, implements the principle progress that principle is provided according to the present embodiment.
Embodiment three
Present invention also offers the structural representation institute of a kind of gateway device, specifically a kind of gateway device as disclosed in Fig. 4
Show, specifically include:Detection module 301 and first processing module 302,
Detection module 301, for the destination host address in the detection data from source host received, detection
Whether the mode of linking objective main frame is direct-connected mode;
First processing module 302, is chased after for when detection module is detected as direct-connected mode, then sending data link layer path
Track asks, to the destination host, to obtain the MAC Address for being located at equipment in data link layer path, sends with carrying the MAC
The timeout packet of location is to source host.
It is preferred that, the detection module 301 includes:Acquisition submodule 301A, the address information for obtaining gateway device
With the address information of destination host;
Submodule 301B is recognized, for whether recognizing gateway device and destination host in the same network segment, if same
The network segment, then be direct-connected mode.
It is preferred that, described device also includes:
Second processing module, for when detection module detection is not direct-connected mode, sending timeout packet to source host, with
Just source host sends next detection data.
Whether specific identification submodule, can unanimously be carried out according to former positions of the network address of gateway device and destination host
Judge, illustrate that current gateway device is the gateway of destination host if consistent, be direct-connected mode, if inconsistent, be not
Direct-connected mode;Certainly specific several judge it is according to as defined in agreement, herein and to be not construed as limiting, furthermore, it is also possible to be by it
His any one mode, if can judge current gateway equipment whether be destination host gateway mode.
By above-described embodiment three, the gateway device can avoid using when realizing end-to-end path detection
Two kinds of different prospecting tools, the judgement by gateway device to the network address and own net address of destination host, if
The network segment belonged to where destination host, is if it is asked, you can obtain and destination host by transmission link layer path detection
Communication path in, such as the MAC Address of all two-layer equipments such as interchanger, then by carry MAC Address timeout packet it is anti-
Feed source host, so that source host carries out last confirmation detection processing.
Example IV
Present invention also offers a kind of path tracing system, the system it is specific as shown in figure 5, comprising:
Detecting devices 401, gateway 402 and target device 403;
The detecting devices 401, for initiating detective path request;
The gateway 402, comprising at least one gateway device, the gateway device, including:Detection module and the first processing
Module,
The detection module, for the destination host in the detection data received, detection linking objective main frame
Whether mode is direct-connected mode;
The detection module, including:
Acquisition submodule, for obtaining the address information of gateway device and the address information of destination host;
Submodule is recognized, for whether recognizing gateway device and destination host in the same network segment, if in the same network segment,
It is then direct-connected mode.
The first processing module, for when detection module is detected as direct-connected mode, then sending data link layer path
Request is followed the trail of to the destination host, the MAC Address for being located at equipment in data link layer path is obtained, sends and carry the MAC
The timeout packet of address is to source host.
The gateway device, in addition to:Second processing module, for when detection module detection is not direct-connected mode, sending out
Timeout packet is sent to source host, so that source host sends next detection data.
The target device 403, is handled for the detection data to reception.
It is preferred that, the detection data is:
Control protocol ICMP request messages between User Agreement datagram or net.
It is preferred that, when the detection data is User Agreement datagram, then the detecting devices 401, including:
Sending submodule 401A, for the timeout packet according to the carrying MAC Address received, sends ttl value and adds 1
And the detection data of non-serviceable user data port numbers is carried to destination host;
Receiving submodule 401B, the unreachable response message in port for receiving target device transmission, confirms to have detected that
Destination host.
It is preferred that, when the detection data is control protocol ICMP request message between net, then the detecting devices 401,
Including:
Sending submodule 401C, for the timeout packet according to the carrying MAC Address received, sends ttl value and adds 1
Net between control protocol ICMP request messages to destination host;
Receiving submodule 401D, the ICMP response messages for receiving target device transmission, confirmation has detected that purpose master
Machine.
It is preferred that, the detection data can be control protocol ICMP request messages between User Agreement datagram or net,
It can certainly be that by detecting any data mode of purpose, it is specific and be not construed as limiting.
It is preferred that, the target device 403, including:
Detection sub-module 403A, for sending the detection data received to corresponding upper layer application according to port numbers;
Submodule 403B is fed back, for the inaccessible response message in port to be fed back into detecting devices.
It is preferred that, when the detection data is control protocol ICMP request message between net, then the target device, is wrapped
Include:
Detection sub-module 403C, for sending the detection data received to corresponding upper layer application according to port numbers;
Submodule 403D is fed back, for ICMP response messages to be fed back into detecting devices.
System described in example IV, can send detection data by detecting devices, and the detection data is user
Control protocol ICMP request messages between protocol datagram or net, are handled, detecting devices is obtained and mesh by gateway device
The routing information of the communication link of marking device, according to the routing information of acquisition, detection data, target device are sent to target device
By processing, the inaccessible response message in port or ICMP response messages are fed back into detecting devices, then detecting devices confirms
Target device is detected;Path detection end to end, convenient use can be realized by said system, while saving network money
Source.
A kind of route tracing method provided by the present invention and a kind of gateway device are described in detail above, herein
In apply specific embodiment to the present invention principle and embodiment be set forth, the explanation of above example is only intended to
Help to understand method and its core concept of the invention;Simultaneously for those of ordinary skill in the art, the think of according to the present invention
Think, will change in specific embodiments and applications, in summary, this specification content should not be construed as pair
The limitation of the present invention.
Claims (12)
1. a kind of route tracing method, it is characterised in that applied to gateway device, methods described includes:
According to the destination host address in the detection data from source host received, the mode of linking objective main frame is detected
When being direct-connected mode, send data link layer path tracing and ask, to the destination host, to obtain and be located at data link layer path
The MAC Address of middle equipment;
The timeout packet for carrying the MAC Address is sent to source host.
2. according to the method described in claim 1, it is characterised in that it is described send carry the timeout packet of the MAC Address to
After source host, in addition to:
Source host sends detection data to destination host according to the timeout packet of the carrying MAC Address received;
Source host receives the unreachable response message in port of destination host transmission, and confirmation has detected that destination host.
3. according to the method described in claim 1, it is characterised in that the detection data from source host that the basis is received
In destination host address, the mode for detecting linking objective main frame is direct-connected mode, including:
Obtain the address information of gateway device and the address information of destination host;
Gateway device and destination host are recognized whether in the same network segment, if in the same network segment, for direct-connected mode.
4. according to the method described in claim 1, it is characterised in that also include:
According to the destination host address in the detection data from source host received, the mode of linking objective main frame is detected
When being not direct-connected mode, timeout packet is sent to source host, so that source host sends next detection data.
5. a kind of gateway device, it is characterised in that including:
Detection module, for the destination host address in the detection data from source host received, detection connection mesh
Whether the mode for marking main frame is direct-connected mode;
First processing module, for when detection module is detected as direct-connected mode, then sending the request of data link layer path tracing
To the destination host, the MAC Address for being located at equipment in data link layer path is obtained, sends and carries the super of the MAC Address
When message to source host.
6. gateway device according to claim 5, it is characterised in that the detection module, including:
Acquisition submodule, for obtaining the address information of gateway device and the address information of destination host;
Submodule is recognized, for whether recognizing gateway device and destination host in the same network segment, if in the same network segment, for
Direct-connected mode.
7. gateway device according to claim 5, it is characterised in that also include:
Second processing module, for when detection module detection is not direct-connected mode, timeout packet being sent to source host, so as to source
Main frame sends next detection data.
8. a kind of path tracing system, it is characterised in that including:
Detecting devices, target device and gateway, the gateway include at least one gateway device;
The gateway device includes:Detection module and first processing module, the detection module, for according to coming from for receiving
Destination host address in the detection data of source host, whether the mode of detection linking objective main frame is direct-connected mode;Described
One processing module, is asked to described for when detection module is detected as direct-connected mode, then sending data link layer path tracing
Destination host, obtains the MAC Address for being located at equipment in data link layer path, sends the timeout packet for carrying the MAC Address
To source host;
The detecting devices, for initiating detective path request;
The target device, is handled for the detection data to reception.
9. system according to claim 8, it is characterised in that the detecting devices, including:
Sending submodule, for timeout packet of the detecting devices according to the carrying MAC Address received, sends detection data
To target device;
Receiving submodule, the unreachable response message in port for receiving target device transmission, confirmation has detected that target device.
10. system according to claim 8, it is characterised in that the target device, including:
Detection sub-module, for sending the detection data received to corresponding upper layer application according to port numbers;
Submodule is fed back, for the inaccessible response message in port to be fed back into detecting devices.
11. system according to claim 8, it is characterised in that the gateway device, in addition to:
Second processing module, for when detection module detection is not direct-connected mode, timeout packet being sent to source host, so as to source
Main frame sends next detection data.
12. the system according to claim 8 or 11, it is characterised in that the detection module, including:
Acquisition submodule, for obtaining the address information of gateway device and the address information of destination host;
Submodule is recognized, for whether recognizing gateway device and destination host in the same network segment, if in the same network segment, for
Direct-connected mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210529534.4A CN103874105B (en) | 2012-12-10 | 2012-12-10 | A kind of route tracing method, system and a kind of gateway device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210529534.4A CN103874105B (en) | 2012-12-10 | 2012-12-10 | A kind of route tracing method, system and a kind of gateway device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103874105A CN103874105A (en) | 2014-06-18 |
CN103874105B true CN103874105B (en) | 2017-09-08 |
Family
ID=50912148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210529534.4A Active CN103874105B (en) | 2012-12-10 | 2012-12-10 | A kind of route tracing method, system and a kind of gateway device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103874105B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301991B (en) * | 2015-06-11 | 2019-10-18 | 华为技术有限公司 | A kind of method of path detection, routing device and system |
CN107623629B (en) * | 2016-07-15 | 2020-03-10 | 华为技术有限公司 | Restoration method and device for stream forwarding path |
CN112822198B (en) * | 2021-01-15 | 2021-11-12 | 中国电子科技集团公司第十五研究所 | Multi-layer protocol network beacon implantation detection method for tracing application |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101931565B (en) * | 2009-06-23 | 2012-07-18 | 中兴通讯股份有限公司 | Network segment detection method and device |
CN102045190B (en) * | 2009-10-21 | 2013-01-02 | 杭州华三通信技术有限公司 | Network topology discovery method and device |
WO2012103694A1 (en) * | 2011-06-20 | 2012-08-09 | 华为技术有限公司 | Method, apparatus and system for tracing layer-2 multicast path |
-
2012
- 2012-12-10 CN CN201210529534.4A patent/CN103874105B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103874105A (en) | 2014-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103401726B (en) | Network path detection method and device, system | |
CN101247321B (en) | Method, device and system for routing diagnosis in network based on diameter protocol | |
JP4598462B2 (en) | Provider network providing an L2-VPN service and edge router | |
CN104601394B (en) | A kind of method, apparatus and system of business chain detection of connectivity | |
CN106412046A (en) | One-station-multi-machine control method, apparatus and system | |
CN113595897B (en) | Path detection method and device | |
CN104683187B (en) | A kind of method for realizing router two-layer VPN business physical interface end-to-end measurement | |
CN105743752B (en) | The signal acquisition of radio gang meshed network, data transmission method and its internal node device | |
CN101304345B (en) | Interposition type measurement node for self-organization network and measurement method thereof | |
CN106936661A (en) | A kind of network monitoring method, apparatus and system | |
CN103581025B (en) | Method and system for processing routing information and equipment | |
CN103166852B (en) | The route tracing method of LSP and routing device in MPLS network | |
CN105432039B (en) | A kind of network detection method, network and redirection node | |
CN104468205A (en) | Performing path-oriented systems management | |
CN106464447B (en) | Error code information transmitting methods and the network equipment and communication system | |
CN103746881B (en) | Neighbor state detection method and device in EVI networks | |
CN103354509B (en) | The acquisition methods of a kind of link connection information and equipment | |
CN107925629A (en) | The sending method and device of data message in a kind of IPv6 networks | |
CN103874105B (en) | A kind of route tracing method, system and a kind of gateway device | |
CN106656643A (en) | Measuring method of segmental calculation of network delay | |
CN104539902A (en) | IPC remote access method and system | |
CN105577273A (en) | Method for testing ONU data forwarding function in batches | |
CN108322391A (en) | Data transferring method based on flow table | |
CN109379760A (en) | A kind of MEC bypath system and method | |
CN101540772A (en) | DPI (deep packet inspection) equipment and communication method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |