(E-Mail Removed) 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.