Question
Develop a UDP-based client-server socket program UNIX/Linux for transferring a large message. Here, the message transmitted from the client to server is read from a
Develop a UDP-based client-server socket program UNIX/Linux for transferring a large message. Here, the message transmitted from the client to server is read from a large file. The message is split into short data-units (DUs) which are sent and acknowledged in alternating batches of size 1 and 2 DUs. The sender sends one DU, waits for an acknowledgment (ACK); sends two DUs, waits for an acknowledgement; and repeats the above procedure until the entire file is sent. The receiver sends an ACK after receiving a DU; sends next ACK after receiving two DUs; and repeats the above procedure. Verify if the file has been sent completely and correctly by comparing the received file with the original file. Measure the message transfer time and throughput for various sizes of data-units and compare it with the stop-and-wait protocol where the batch size is always fixed to be 1.
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