Question: Write a TCP client and server socket program to send a file and measure the average round trip delay incurred. The Client program should read

Write a TCP client and server socket program to send a file and measure the average round trip delay incurred. The Client program should read a file and send it in chunks of 1000 Bytes at a time one after the other. It should also add a timestamp with each chunk. The server program should receive these packets, store the data part to a file and echo the timestamp back to the client. The client program should receive these timestamps and calculate the round trip delay (current time - timestamp) and store it in another file (You will need this to make a plot). It should also calculate the average round trip delay.

1,Perform the experiment using the test.txt file provided and plot the round trip delay. Also provide the average round trip delay.

2,Briefly explain any interesting observation you made.

3,Perform using UDP.

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!