CN Assignment A3

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CS-4015 – Computer Networks

Assignment 3 – Spring 2024


Deadline: Thursday, June 5, 2024 Last Saved by: Mustahsan Hammad Naqvi
Instructions:
1. Type your name and Student ID at the places mentioned Student ID:
2. Save the document with your student ID
3. Upload your assignment through Class Room Name:
4. No marks would be awarded if
a. Assignment is copied Batch:
b. File is corrupt/does not open
Program:
c. Submitted through email/in-person

Attempt each question. Marks are specified with each question. (CLO-2, PLO-2)
20 – Marks
Question 1: Error Detection using CRC
Given a data stream of 1101011011 and a divisor polynomial 1011, perform the following tasks:
a) Append the necessary zeros to the data stream.
b) Calculate the CRC code using the divisor polynomial.
c) Verify the CRC code by demonstrating the division process at the receiver end.
Question 2: Framing Techniques
Consider a network where frames are transmitted between two computers using the character
count framing method. If the following data frames are transmitted: 5HELLO, 7WORLD12, and
8NETWORKS, decode the received frames and identify any errors if present. Assume that each
frame's length count is transmitted accurately.
Question 3: Flow Control with Stop-and-Wait ARQ
A sender transmits a series of frames to a receiver using the Stop-and-Wait ARQ protocol. If the
sender sends frames at a rate of 1000 frames per second, and each acknowledgment takes 1
millisecond to reach the sender, calculate the maximum throughput of the system. Explain the
impact of acknowledgment delay on the overall efficiency of the transmission.
Question 4: Sliding Window Protocol
Consider a sliding window protocol with a window size of 4. The sender has to send a sequence
of 10 frames to the receiver. If frames 3 and 6 are lost during transmission, explain how the
sliding window protocol handles retransmission and acknowledgment. Illustrate the process with
a diagram showing the sender and receiver windows at different stages.
CS-4015 – Computer Networks

Assignment 3 – Spring 2024

You might also like