CS313_Assignment2_AugDec2024
CS313_Assignment2_AugDec2024
Assignment 2
Submission is optional. You may submit if you wish to get feedback on your
answeres. Write your answers by hand on plain paper, scan and submit on Moodle.
1. What do the terms data encapsulation and decapsulation mean? Why are they
needed in a layered protocol stack?
2. What layers in the protocol stack does a router process? Which layers does a
link-layer switch process? Why the difference?
3. You send a stream of packets of size 1000 bits each across a network path from
Delhi to Chennai. You find that the one-way delay varies between 40 ms (in
the absence of queueing) and 125 ms (full queue), with an average of 65 ms.
The transmission rate at the sender is 1 mbit/s; the receiver gets packets at the
same rate without any packet loss. What is the mean number of packets in the
queue at the bottleneck link along the path (assume that queueing happens at
just one switch).
5. What services does the transport layer offer to a process running in the appli-
cation layer?