How can you identify the intermediate nodes along the path using ping ONLY

This is a discussion on How can you identify the intermediate nodes along the path using ping ONLY within the Linux Networking forums, part of the Linux Forums category; Hi, Is this possible to identify intermediate nodes by using pin command olnly? Somebody told me that it is. Can ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-02-2006
aamircheema@gmail.com
 
Posts: n/a
Default How can you identify the intermediate nodes along the path using ping ONLY

Hi,

Is this possible to identify intermediate nodes by using pin command
olnly? Somebody told me that it is. Can anyone please elaborate how?

Thanks,
Aamir

Reply With Quote
  #2 (permalink)  
Old 08-02-2006
Dave Uhring
 
Posts: n/a
Default Re: How can you identify the intermediate nodes along the path using ping ONLY

On Wed, 02 Aug 2006 08:44:03 -0700, aamircheem wrote:

> Is this possible to identify intermediate nodes by using pin command
> olnly? Somebody told me that it is. Can anyone please elaborate how?


traceroute, or tracert on that Windose POS you are using.

Reply With Quote
  #3 (permalink)  
Old 08-02-2006
Allen Kistler
 
Posts: n/a
Default Re: How can you identify the intermediate nodes along the path usingping ONLY

aamircheema@gmail.com wrote:
> Hi,
>
> Is this possible to identify intermediate nodes by using pin command
> olnly? Somebody told me that it is. Can anyone please elaborate how?


You can set the "record route" option. Cooperating routers will add
their info to the packet and eventually all the info gets back to you.

There's no requirement for any router to cooperate, though.
Reply With Quote
  #4 (permalink)  
Old 08-03-2006
avasilev
 
Posts: n/a
Default Re: How can you identify the intermediate nodes along the path using ping ONLY


aamircheema@gmail.com wrote:
> Hi,
>
> Is this possible to identify intermediate nodes by using pin command
> olnly? Somebody told me that it is. Can anyone please elaborate how?
>
> Thanks,
> Aamir


Usually this is done with tracert (windows) or traceroute (*nix), but
what tracert actually does is pinging the host with TTL increasing from
1 with a step of one. When the TTL of the ping packet expires, the
router at which this happens reports to you "TTL expired in transit".
Since this reporting is done with an IP packet you know the address of
the router from the source IP field of the report packet. Then tracert
increases the TTL with 1 and repeats the procedure - thus the next
router will report that the TTL expired, and so on until the actual
host is reached. In this way you get the IP-s of routers on the way.
You can try this yourself with the ping command (and this directly
answers your question) - do a ping with setting the TTL of the packet
first to 1, and look who responds to it, then set TTL to 2 and so on.

Reply With Quote
  #5 (permalink)  
Old 08-03-2006
Lew Pitcher
 
Posts: n/a
Default Re: How can you identify the intermediate nodes along the path using ping ONLY

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


aamircheema@gmail.com wrote:
> Hi,
>
> Is this possible to identify intermediate nodes by using pin command
> olnly? Somebody told me that it is. Can anyone please elaborate how?


Yes, sort of.

You can ask for "route record" to be returned on the ping response
packet. Up to 9 nodes can be recorded, so if your target is more than 9
hops away, then you lose the record of some of the nodes.

See the ping(8) manpage for details...
-R Record route. Includes the RECORD_ROUTE option in
the ECHO_REQUEST packet and displays the route
buffer on returned packets. Note that the IP
header is only large enough for nine such routes.
Many hosts ignore or discard this option.


HTH
- --
Lew Pitcher

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12

iD8DBQFE0kz4agVFX4UWr64RAjCuAJ0ayymxZIrFPqKDpzXse7 K8Hqd0dQCfXiAP
Ux6htSaMWzzSUk53GDIErlU=
=+XkV
-----END PGP SIGNATURE-----

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0