How to trace incorrect route in Internet

I am getting trouble to access some web sites without any error messages. It seems some packets being loss. I would like to identify the problem to fix it as soon as possible. The tool I used is not the classic traceroute because I can ping to the web site successfully. ICMP is not enough. I guess that the problem should be only effective to TCP or something in higher layer.

Instead, I use traceproto which comes with Ubuntu.

sudo apt-get install traceproto

You may try tcptraceroute if you like.

sudo apt-get install tcptraceroute

To trace the route between my host to the web site, I just simply call as follow.

traceproto www.google.com

If you have multiple interfaces, you might get error message as below.

error resolving source: libnet_get_ipaddr4(): ioctl(): Cannot assign requested address

It means some interfaces don't have been assigned an IP address. You have to specify an interface to trace.

traceproto -F eth1 www.google.com

Tags: , , ,

Post new comment