Question: Create a UDP client, in python, that will do all of the below requirements. udp_client.py: Your UDP client should be able to conduct multiple measurements

Create a UDP client, in python, that will do all of the below requirements.

udp_client.py:

Your UDP client should be able to conduct multiple measurements to the UDP server and report RTT and loss rate values. The UDP server provided to you will randomly delay the UDP responses and drop responses. You should conduct 100 measurements to compute average RTT and loss rate.

Measuring RTT: You can measure the RTT in terms of the time it takes to send a message to the server and receive the response back from the server. To conduct multiple RTT measurements, your UDP client should send multiple messages to the server (and receive multiple responses back).

Measuring loss rate: You can expect the RTT values to be less than 5 seconds. Thus, you can use timeouts to mark a UDP message as lost if you do not receive the response from the server within 5 seconds.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!