Professional Documents
Culture Documents
ASSIGNMENT – I
COM-502 Computer Networks
Max Marks: 10
Submission Deadline: 28 Oct.2022
Q1. Station A uses 32byte packets to transmit messages to Station B using a sliding window protocol.
The roundtrip delay between A and B is 80 milliseconds and the bottleneckbandwidth on the
path between A and B is 128 kbps. What is the optimal window size that A should use? [3]
Q2. i) Solve the given CRC code example having message polynomial and generator polynomials
under. M(x) = 110011
P(x) = 11001
ii) The message 11001001 is to be transmitted using the CRC polynomial x^3 + 1 toprotect it
from errors. The message that should be transmitted is _. [2]
Q3. With the use of an appropriate example, describe how computer networks are structured using the
concept of layered approach in today's environment. [2]
Q4. As Hamming code is a set of error-correction codes that can be used to detect and correct the
errors that can occur when the data is moved or stored from the sender to thereceiver. And was
developed by R.W. Hamming for error correction.
Apply the following steps using python and place the screenshots as necessary forsimulation:
i. Enter the Data to be transmitted.
ii. Calculate the no of redundant bits required.
iii. Determine the parity bits.
iv. Create error data for testing.
v. Check for errors. [3]