Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this program assignment, you will gain a better understanding of Internet Control Message Protocol (ICMP). You will learn to implement a Ping application using
In this program assignment, you will gain a better understanding of Internet Control Message Protocol (ICMP). You will learn to implement a Ping application using ICMP request and reply messages Ping is a computer network application used to test whether a particular host is reachable across an IP network. It is also used to self-test the network interface card of the computer or as a latency test. It works by sending ICMPecho reply" packets to the target host and listening for ICMP "echo reply" replies. The "echo reply" is sometimes called a pong. Ping measures the round-trip time, records packet loss, and prints a statistical summary of the echo reply packets received (the minimum, maximum, and the mean of the round-trip times and in some versions the standard deviation of the mean) Your task is to develop your own Ping application. Your application will use ICMP but, in order to keep it simple, will not exactly follow the official specification in RFC 1739. Note that you will only need to write the client side of the program, as the functionality needed on the server side is built into almost all operating systems You should complete the Ping application so that it sends ping requests to a specified host separated by approximately one second. Each message contains a payload of data that includes a timestamp. After sending each packet, the application waits up to one second to receive a reply. If one second goes by without a reply from the server, then the client assumes that either the ping packet or the pong packet was lost in the network (or that the server is down) Notes: You can implement your pinger in any language (eg. C, C++, Java, Python) you are familiar with Your program will need to report the minimum, maximum, and average RTTs at the end of . all pings from the client. In addition, calculate the packet loss rate (in percentage) Your program can detect timeouts in receiving ICMP echo responses This assignment requires the use of raw sockets. In some operating systems, you may need . administrator/root privileges to be able to run your Pinger program See the end of this programming assignment for more information on ICMP in Appendix. Tasks: 1. Complete the client code 2. Test your client by sending packets to localhost, that is, 127.0.0.1 3. See how your Pinger application communicates across the network by pinging servers in different continents and screenshots of your Pinger output for four target hosts, each on a different continent. Extra credits: Modify the Pinger program to parse the ICMP response error codes and display the corresponding error results to the user. Examples of ICMP response error codes are 0: Destination Network Unreachable, 1: Destination Host Unreachable. In this program assignment, you will gain a better understanding of Internet Control Message Protocol (ICMP). You will learn to implement a Ping application using ICMP request and reply messages Ping is a computer network application used to test whether a particular host is reachable across an IP network. It is also used to self-test the network interface card of the computer or as a latency test. It works by sending ICMPecho reply" packets to the target host and listening for ICMP "echo reply" replies. The "echo reply" is sometimes called a pong. Ping measures the round-trip time, records packet loss, and prints a statistical summary of the echo reply packets received (the minimum, maximum, and the mean of the round-trip times and in some versions the standard deviation of the mean) Your task is to develop your own Ping application. Your application will use ICMP but, in order to keep it simple, will not exactly follow the official specification in RFC 1739. Note that you will only need to write the client side of the program, as the functionality needed on the server side is built into almost all operating systems You should complete the Ping application so that it sends ping requests to a specified host separated by approximately one second. Each message contains a payload of data that includes a timestamp. After sending each packet, the application waits up to one second to receive a reply. If one second goes by without a reply from the server, then the client assumes that either the ping packet or the pong packet was lost in the network (or that the server is down) Notes: You can implement your pinger in any language (eg. C, C++, Java, Python) you are familiar with Your program will need to report the minimum, maximum, and average RTTs at the end of . all pings from the client. In addition, calculate the packet loss rate (in percentage) Your program can detect timeouts in receiving ICMP echo responses This assignment requires the use of raw sockets. In some operating systems, you may need . administrator/root privileges to be able to run your Pinger program See the end of this programming assignment for more information on ICMP in Appendix. Tasks: 1. Complete the client code 2. Test your client by sending packets to localhost, that is, 127.0.0.1 3. See how your Pinger application communicates across the network by pinging servers in different continents and screenshots of your Pinger output for four target hosts, each on a different continent. Extra credits: Modify the Pinger program to parse the ICMP response error codes and display the corresponding error results to the user. Examples of ICMP response error codes are 0: Destination Network Unreachable, 1: Destination Host Unreachable
Step 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