Questions tagged [traceroute]

traceroute traces the route taken by packets over a TCP/IP network. It is used as a network debugging tool to show where packets are being lost along the route.

268 questions
3
votes
1 answer

Which router port address should respond with time to live exceeded in transit message?

Given the following situation: PC --- |aa RTR1 bb| --- |aa RTR2 bb| --- |aa RTR3 bb| etc Each of the |aa rtr bb| is meant to be a router with two ports aa and bb. When I do a trace route from my PC, which router port address should respond…
dbasnett
  • 11,334
  • 2
  • 25
  • 33
3
votes
0 answers

can't receive ICMP TTL exceeded packet for a UDP packet with small TTL in virtual machine

I wrote a program which uses raw socket to send UDP packets with TTL=1, when I run this program on my local host, I can receive ICMP packets. but when I run it on a Planetlab node, it can't receive ICMP packets. On planetlab node, each node is…
misteryes
  • 2,167
  • 4
  • 32
  • 58
3
votes
1 answer

Implementing UDP traceroute in Python without root

I'm trying to implement a UDP traceroute solution in Python 2.6, but I'm having trouble understanding why I need root privileges to perform the same-ish action as the traceroute utility that comes with my operating system. The environment that this…
jooks
  • 1,247
  • 10
  • 17
3
votes
1 answer

Calculate average Round Trip Time?

I have used the traceroute command and pinged my Amazon INstance. This is the result I got back: traceroute to 10.250.19.146 (10.250.19.146), 30 hops max, 60 byte packets 1 ip-10-8-145-1.us-west-2.compute.internal (10.8.145.1) 0.996 ms 1.234 ms …
user2241637
  • 43
  • 1
  • 1
  • 5
3
votes
2 answers

Find fastest mirror from a list or mirrors

The title already tells what I want. Think about this example. I want to download ubuntu ISO. I go to Ubuntu site and get the list of mirrors. There I found my neighbor country has a mirror hosted. So I select that mirror which is geographically…
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
3
votes
2 answers

how to run traceroute command through your application?

I want to run traceroute command through my application. How do I do this? Runtime.getRuntime().exec("traceroute google.com") not working. java.io.IOException: Error running exec(). Command: [traceroute, -4, google.com] Working Directory: null…
Raga
  • 43
  • 1
  • 1
  • 5
3
votes
4 answers

How can I perform a ping or traceroute in python, accessing the output as it is produced?

Earlier, I asked this question: How can I perform a ping or traceroute using native python? However because python is not running as root it doens't have the ability to open the raw ICMP sockets needed to perform the ping/traceroute in native…
Dave Forgac
  • 3,146
  • 7
  • 39
  • 54
2
votes
1 answer

Detect ARP Spoofing using traceroute

I'm making application that can detact arp spoofing :] My idea is that if there is attacker in subnet, and he tried to MITM using arp poisoning, then I exec traceroute to default gateway(or changed arp cache entry, whatever). Cuz all my packets go…
Minsu Kim
  • 21
  • 1
  • 2
2
votes
3 answers

how to fetch domain names from a tracert/traceroute result in php without using 'http://' and 'www.' as needle?

My motive is to get the hosting provider of a domain name using php. When tracert/traceroute to any domain name (yahoo.com), it gives: traceroute to 72.30.2.43 (72.30.2.43), 30 hops max, 40 byte packets 1 c1.25.78ae.static.theplanet.com…
Aamir Siddique
  • 334
  • 3
  • 15
2
votes
2 answers

Is it still impossible to perform traceroute from a VM in Azure

Is it still impossible today in 2022 to perform traceroutes from a Linux VM in Azure ? I've configured NSG so that ICMP and UDP traffic is allowed.
thierryn
  • 21
  • 1
  • 3
2
votes
1 answer

Is it possible to send an ICMP echo request from a swf?

ActionScript 3 can send UDP packets via flash.net.DatagramSocket. Is their any way to send an ICMP packet? I'd also like to set the TTL flag so I can implement traceroute in an SWF.
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
2
votes
2 answers

Tracerouting in UDP protocal

I am using UDP network protocol to send message from various clients to a root server. The message from client to server may not be sent directly and may be sent via other clients. I want to know the clients via which the message is sent by looking…
Vishal
  • 989
  • 2
  • 11
  • 19
2
votes
1 answer

DNS issue on macOS

I'm encountering a weird DNS issue on macOS Catalina 10.15.4: traceroute google.com and ping google.com both returned unknown host. However, nslookup google.com and dig google.com returned correct results with correct DNS servers (I'm using 8.8.8.8…
Qi Xi
  • 63
  • 2
  • 9
2
votes
0 answers

Is there a possible method to implement traceroute on Android utilizing Ping function?

I am now developing an Android network diagnosis application (in Java) with my friends. We've implemented the Ping function and now want to implement traceroute function using Ping, this is what happened in Windows cmd: Tracert in Windows Then I…
Momomoom
  • 21
  • 2
2
votes
2 answers

Find the closest server in the network

Given a list of servers & a list of clients, how to find a server that is closest to a particular host using "traceroute"? The program should be in java.
user65457
  • 237
  • 1
  • 3
  • 10