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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started