Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Organizational Behaviour Concepts Controversies Applications

Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward

6th Canadian Edition

132310317, 978-0132310314

More Books

Students also viewed these Programming questions

Question

What are the factors that lead organizations to resist change?

Answered: 1 week ago