In this programming assignment, you will write a program that takes in input a
textual tcpdump trace of traffic generated by Traceroute. You specify each router
address on the path to the destination and also the time taken to send and receive
data to each router on the path by analyzing ICMP messages.
Please submit the source code, your tcpdump file and your output as a zip file on elc
to the Drop Box.
you can generate your tcpdump and run traceroute by running two commands on
two terminals. You write the tcpdump messages in a text file. In Windows, you
need to install Windump and use tracert.
Trace route command will start to send packets with TTL=1 three times to first
router. You need to find id of message and find the ICMP respond for that packet.
Subtract the time between these messages and also IP address of the router.
As an example, consider the two packet logs reported below:
1296181912.313218 IP (tos 0x0, ttl 1, id 42733, offset 0, flags [none], proto TCP
(6), length 60)
126.96.36.199.53560 > 188.8.131.52.80: Flags [SEW], cksum 0x6cb7
(correct), seq 4193307588, win 5840, options [mss 1460,sackOK,TS val
3644222371 ecr 0,nop,wscale 2], length 0
1296181912.313237 IP (tos 0x0, ttl 1, id 42734, offset 0, flags [none], proto TCP