Question: he program must be named TracerouteAnalysis.java, and needs to take the file name of the tcpdump trace as the first argument. For example, the program

he program must be named "TracerouteAnalysis.java", and needs to take the file name of the tcpdump trace as the first argument. For example, the program needs to run as $ javac TracerouteAnalysis.java $ java TracerouteAnalysis Project_1-example_traceroute_TCP_trace.txt and the results of the analysis must be written on standard output (basically, on screen). NOTE: project submissions that do not follow the guidelines will be discarded wihtout consideration (i.e., 0 points). Project Description: In this project, you are required to write a program that takes in input a textual tcpdump trace of traffic generated by Traceroute and computes the time between a TCP packet sent by the client and the related ICMP "Time exceeded in-transit" message. As an example, consider the two packet logs reported below: 1291654312.963163 IP (tos 0x0, ttl 1, id 9067, offset 0, flags [none], proto TCP (6), length 60) 128.192.76.177.47212 > 137.138.144.168.80: S, cksum 0xc4d6 (correct), 1135826272:1135826272(0) win 5840 1291654312.963644 IP (tos 0xc0, ttl 255, id 2503, offset 0, flags [none], proto ICMP (1), length 56) 128.192.76.129 > 128.192.76.177: ICMP time exceeded in-transit, length 36 IP (tos 0x0, ttl 1, id 9067, offset 0, flags [none], proto TCP (6), length 60) 128.192.76.177.47212 > 137.138.144.168.80: tcp 40 [bad hdr length 0 - too short, id 9067, TCP, 128.192.76.177.47212 > 137.138.144.168.80 Notice that these fields are replicated in the body of the ICMP message (in practice the IP ID field should be sufficient to correctly correlate the two packets). From the two packets above, the output should be: TTL 1 128.192.76.129 0.481 ms where 128.192.76.129 is the IP addresses of the router that generated the ICMP response, and 0.481 ms is computed as (1291654312.963644 - 1291654312.963163) * 1000 and rounding to obtain only three digits after the dot. As another example the output related to the following packets 1291654312.963267 IP (tos 0x0, ttl 3, id 9075, offset 0, flags [none], proto TCP (6), length 60) 128.192.76.177.56812 > 137.138.144.168.80: S, cksum 0x5834 (correct), 2778675862:2778675862(0) win 5840 1291654312.963655 IP (tos 0x0, ttl 62, id 47385, offset 0, flags [none], proto ICMP (1), length 56) 128.192.254.49 > 128.192.76.177: ICMP time exceeded in-transit, length 36 IP (tos 0x0, ttl 1, id 9075, offset 0, flags [none], proto TCP (6), length 60) 128.192.76.177.56812 > 137.138.144.168.80: tcp 40 [bad hdr length 0 - too short, TTL 3 128.192.254.49 0.388 ms Consecutive TCP-ICMP packet pairs related to the same ICMP source IP should be listed without repeating the TTL value and IP string. For example, if there are 3 consecutive TCP-ICMP packet pairs related to TTL=3 and with ICMP packets originating from 128.192.254.49, you should list them as TTL 3 128.192.254.49 0.388 ms 0.401 ms 0.398 ms

he program must be named "TracerouteAnalysis.java", and needs to take the file

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. Project Description: 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!