EE4204-EE4204E/TEE4204 Computer Networks (Part 1) Socket Programming Assignment (Sem1, 2019-20) Lecturer : Assoc. Prof. Mohan Gurusamy, [email protected]
Instructions:
This lab assignment focuses on implementing a client server socket program with UDP transport protocols for transferring messages using a flow control protocol. Problems 1-3 are for your practice. Problem 4 is the assignment problem. Choose appropriate values for parameters such as data unit size. Repeat the experiment several times and plot the average values in a report with a brief description of results. The details of lab schedule, demo, and rubrics to be used for assessment will be announced separately.
Practice Problems:
1. Develop a socket program in UNIX/Linux that uses (i) TCP as the transport protocol and (ii) UDP as the transport protocol for transferring a short message between a client and server. The client sends a string (input by the user) to the server and the server prints the string on the screen after receiving it.
2. Develop a TCP-based client-server socket program for transferring a large message. Here, the message transmitted from the client to server is read from a large file. The entire message is sent by the client as a single data-unit. After receiving the file, the server sends an ACK message to the receiver. Verify if the file has been sent completely and correctly by comparing the received file with the original file (diff command could be used). Measure the message transfer time and throughput.
3. Develop a TCP-based client-server socket program 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 which are sent one by one without waiting for any acknowledgement between transmissions of two successive data-units. 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.
Assignment Problem
4. Develop a UDP-based client-server socket program 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. Choose appropriate values for data unit size and measure the performance. Repeat the experiment several times and plot the average values in a report with a brief description of results, assumptions made, etc.
[ALL THE BEST]
Programming
[SOLVED] socket network EE4204-EE4204E/TEE4204 Computer Networks (Part 1) Socket Programming Assignment (Sem1, 2019-20) Lecturer : Assoc. Prof. Mohan Gurusamy, [email protected]
$25
File Name: socket_network_EE4204-EE4204E/TEE4204_Computer_Networks_(Part_1)_Socket_Programming_Assignment_(Sem1,_2019-20)_Lecturer_:_Assoc._Prof._Mohan_Gurusamy,[email protected]
File Size: 1573.14 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.