Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please put your code and the makefile to compile. there are 3 pictures with each a continuation 3 You will write a C/C++ program for
Please put your code and the makefile to compile. there are 3 pictures with each a continuation
3 You will write a C/C++ program for the following task. Every System Administrator sooner or later has to write a program that needs to extract information from the output of the traceroute command. Your assignment is to determine the correct commands to extract the following 7 information from the output of the traceroute command on the various platforms we use 9 In particular, you should submit a C/C program (tracel.c program) that runs a traceroute command for a DNS 10 11 command. 12 13 (1) all IP addresses, all DNS names, time of 3 packets in the traceroute 14 (2) compute min, max, average time based on the routing times of 3 packets (each with round-trip time) to the host. 15 16 The following is the sample out of traceroute command with www.utdallas.edu. 17 18 calinuxi /cs3376 /trace traceroute www.utdallas edu. 19 traceroute to www.utdallas.edu 10.182 71.70 30 hops max, 60 byte packets 20 utdig 1-92. utdallas edu 129.110.92.1) 1.794 ms 1.82 1.773 ms 21 f2 o9.utdallas edu 129.110.83.42) 0.611 ms 1.314 ms 1.526 ms Coreph 22 o1.utdallas 129.110.83.65) 0.796 ms 0.992 ms 1.305 Coreph edu 23 129.110.83.54) 0.416 0.500 646 24 utdallas.edu (10.182 1.70 0.357 ms 0.370 ms 0.358 ms 25 calinuxi /cs3376 /trace 26 27 Your program should run the traceroute command in it (given the argument which is DNS name) For example, 28 29 calinu /tra cel www.utdallas .edu 30 read. traceroute to www. utdallas edu. 10.182.71.70) 30 hops max 60 byte packets 31 utdig 1-92. utdallas edu 129.110.92.1) 1.877 ms 1.886 ms 1.831 ms 32 Coreph f2 o9.utdallas edu 129.110.83.42) 0.650 ms 0.795 ms 0.902 ms 33 129.110.83.65 1.913 1.926 us. 1.909 34 corel-lo0 o4.ut dallas edu 129.110.83.54) 456 ms 0.491 ms vwn9k core2 35 loo-po4 utdallas.edu 129.110.83.68 0.463 ms 36 utdallas.edu (10.182.71.70 0.187 ms 0.190 ms 1.24 37 38 And program processes the output (each line) from traceroute command for the output as follows. 39 40 traceroute to www. utdallas.edu 10.182 71.70 30 hops max, 60 byte packets 41 DNS is www.utdallas edu. 42 ig is 10.182.71.70) 43 44 129.110.92.1) 1.877 1.886 1.831 45 DNS is ut dig 1-92. utdallas.edu 46 ig is 129.110.92.1) 47 time is 1.877 48 time is 1.886 49 time is 1.831 50 min is 1.831000 max is 1.886000 average is 1.864667 51 52 129.110.83.42) 0.650 0.795 0.902 53 DNS is core phy-12-po9.ut 54 ip is 129.110.83.42 55 is 0.650 time 56 time is 0.795 57 time is 0.902 58 min is 0.650000 max is 0.902000 average is 0.782333 59 60 129.110.83.65) 1.913 1.926 us. 1.909 61 DNS is corephy- m2-pol .utdallas.edu 3 You will write a C/C++ program for the following task. Every System Administrator sooner or later has to write a program that needs to extract information from the output of the traceroute command. Your assignment is to determine the correct commands to extract the following 7 information from the output of the traceroute command on the various platforms we use 9 In particular, you should submit a C/C program (tracel.c program) that runs a traceroute command for a DNS 10 11 command. 12 13 (1) all IP addresses, all DNS names, time of 3 packets in the traceroute 14 (2) compute min, max, average time based on the routing times of 3 packets (each with round-trip time) to the host. 15 16 The following is the sample out of traceroute command with www.utdallas.edu. 17 18 calinuxi /cs3376 /trace traceroute www.utdallas edu. 19 traceroute to www.utdallas.edu 10.182 71.70 30 hops max, 60 byte packets 20 utdig 1-92. utdallas edu 129.110.92.1) 1.794 ms 1.82 1.773 ms 21 f2 o9.utdallas edu 129.110.83.42) 0.611 ms 1.314 ms 1.526 ms Coreph 22 o1.utdallas 129.110.83.65) 0.796 ms 0.992 ms 1.305 Coreph edu 23 129.110.83.54) 0.416 0.500 646 24 utdallas.edu (10.182 1.70 0.357 ms 0.370 ms 0.358 ms 25 calinuxi /cs3376 /trace 26 27 Your program should run the traceroute command in it (given the argument which is DNS name) For example, 28 29 calinu /tra cel www.utdallas .edu 30 read. traceroute to www. utdallas edu. 10.182.71.70) 30 hops max 60 byte packets 31 utdig 1-92. utdallas edu 129.110.92.1) 1.877 ms 1.886 ms 1.831 ms 32 Coreph f2 o9.utdallas edu 129.110.83.42) 0.650 ms 0.795 ms 0.902 ms 33 129.110.83.65 1.913 1.926 us. 1.909 34 corel-lo0 o4.ut dallas edu 129.110.83.54) 456 ms 0.491 ms vwn9k core2 35 loo-po4 utdallas.edu 129.110.83.68 0.463 ms 36 utdallas.edu (10.182.71.70 0.187 ms 0.190 ms 1.24 37 38 And program processes the output (each line) from traceroute command for the output as follows. 39 40 traceroute to www. utdallas.edu 10.182 71.70 30 hops max, 60 byte packets 41 DNS is www.utdallas edu. 42 ig is 10.182.71.70) 43 44 129.110.92.1) 1.877 1.886 1.831 45 DNS is ut dig 1-92. utdallas.edu 46 ig is 129.110.92.1) 47 time is 1.877 48 time is 1.886 49 time is 1.831 50 min is 1.831000 max is 1.886000 average is 1.864667 51 52 129.110.83.42) 0.650 0.795 0.902 53 DNS is core phy-12-po9.ut 54 ip is 129.110.83.42 55 is 0.650 time 56 time is 0.795 57 time is 0.902 58 min is 0.650000 max is 0.902000 average is 0.782333 59 60 129.110.83.65) 1.913 1.926 us. 1.909 61 DNS is corephy- m2-pol .utdallas.eduStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started