Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am using mtr as a network diagnostic tool and i have a basic doubt that whether the intermediate switches or router ping the next switch/router on behalf of the original machine and report it back the route and corresponding response and packet loss to it or it itself identifies the route and pings the individual machines and get the response time and packet loss.
Are you just asking how traceroute works? The ttl is increased with each packet. So it gets as far as it can gefore the ttl expires. When it expires the router or switch it expired at responds back to you telling you it expired and of course uses its own IP there, identifying the route.
what i want to know is whether the host machine actually pings all the intermediate router/switches or the successive router/switch pings the next hop and report the time delay back to the initial host. Another part is whether it first computes the route and then pings the intermediate hops and then the result is obtained by the host.
Thanks for your patience and reply
Sahil
I already explained that. I'd really suggest referring to standard documentation for queries like this. I bet there's a good wikipedia page for traceroute.
A route is not calculated. it is just the next hop that any machine is aware about (save for heavy duty dynamic routing protocols which are not relevant here. your client system fundamentally never has a clue how a packet gets where is it going if it's not on the local network.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.