Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I properly didn't understood the question. if not try to answer atleast provide me some resources to do it my own . Thanks in advance

image text in transcribed

I properly didn't understood the question. if not try to answer atleast provide me some resources to do it my own . Thanks in advance

In this assignment, you are to implement ping network utility running over UDP protocol. Ping application allows a client machine to send a packet of data to a remote machine (server), and have the remote machine (server) echo the data back to the client. In addition, ping application provides useful statistics about the network communication, such as segment round trip time, number of received and lost segments, and loss ratio. Tryping lotech.edu in command line (console) for a sample run. You are to submit code for two programs: ping application on client side (e.g. UPDPing Client.py) and ping application on server side (e.g, UPDPingServer.py). Requirements for server side code: 1. Listens for UDP segments on port 12000. 2. Receives message form client. 3. Sends message back to client with no changes. 4. Simulates random loss of messages (eg. 4 out of 10 received messages are not sent back to client). Requirements for client side code: 1. Sets socket timeout as 1 second. ".settimeout('" socket function is your friend. 2. Sends multiple (n) UDP segments with ping message to server with specified IP address and port number. Ping message format is provided below. 3. Receives message back from server and calculates message round trip time in milliseconds. 4. Displays server response if segment was received. Response format is provided below** 5. Displays "Request time out" string if segment was lost. Segment is considered lost if the timeout is up. 6. Displays ping statistics information (number of sent, received, lost segments, and loss percentage), 7. Displays approximate round trip times in milliseconds (minimum, maximum, and average RTT). 8. Gets server IP address, server port number and number (n) of ping packets to send as a command line arguments *Ping message format: "Ping 1 Fri Jan 10 09:00:00 2020". **Server response format: "Reply from 192.168.1.6: Ping1 Fri Jan 10 09:00:00 2020 time=2.0ms TTL=1". Please, note that parts in bold are hardcoded. Sample command to run client side code: python UOPPingClient.py 192.168.1.6 120005 Sample outputs of client code: at@at:-$ python UDPPangclient.FY 292.168.1.6 12000 5 Pinging 192.168.1.6: Reply from 192.168.1.6: Bing 1 Fr Jan ID 09:01:01 2020 time-3.0ms TTL=1 Reply from 192.168.1.6: Bing 2 Fr: Jan 30 09:01:01 2020 time=0.0ms TTL=1 Reply from 192.168.1.6: Ping 3 Fr: Jan 10 09:01:01 2020 time-1.0m2 TTL-1 Reply from 192.168.1.6. Ping 4 Fr: Jan 10 09:01:01 2020 time=1.0ms TTL=1 Request timed cut. Ping atatistics for 192.168.1.6 Segments: Sent: 5, Received: 4, Lost: 1 120.08 Loss Approximate round trip times in ms: Min2...mm - 0.Ome. Maximum - 3.Cms, Average - 1.25ms Server code does not require any outputs

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_2

Step: 3

blur-text-image_3

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

2. How will the team select a leader?

Answered: 1 week ago