Answered You can hire a professional tutor to get the answer.
Exercise 4. how to write: TCP client and server socket program to send a file and measure the average round trip delay incurred.
Exercise 4. how to write: 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.
Perform the experiment using the "test.txt" file provided and plot the round trip delay. Also provide the average round trip delay.
Briefly explain any interesting observation you made.
Exercise 5. Perform Exercise 4 using UDP.