Question
I don't need a layout just the code In this assignment you'll learn how to use UDP sockets to create a ping-like utility. This will
I don't need a layout just the code
In this assignment you'll learn how to use UDP sockets to create a ping-like utility. This will require the use of proper timeouts and computation of several statistics.
Your program should send 10 "pings" to the server (simplesmtp.thought.net, UDP port 8192). A response can be considered lost if no reply is received in 1 second. Your program should print the response received, compute/display the maximum, minimum, and average round trip time for received packets and the packet loss percentage.
The server responds to each message sent to it by just echoing what it receives. It has a maximum packet size of 100 bytes.
A skeleton is not available for this assignment, but the Socket Examples may prove useful.
Deliverables:
- source code for your program
- text log showing the output of your program
Rubric (25 points total):
- 5pts: correctly send a ping
- 5pts: correctly receive a ping message or timeout
- 5pts: send all 10 pings, and receive any responses
- 5pts: compute/display RTT for each ping
- 5pts: compute/display max RTT, min RTT, and average RTT for received packets, and packet loss percentage
- in java
If you're curious, the source for the server can be found on GitHub.
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