Assignment 2 Solution
Assignment 2 Solution
3. Packet Switching
• Packet switching divides data into small packets, each routed independently.
• Unlike circuit switching, it is more efficient as it does not require a dedicated path.
• Delays like transmission delay, propagation delay, queuing delay, and processing
delay impact performance.
• Since packets can take different routes, reassembly delays can occur.
4. Flow Control Methods
(a) Stop-and-Wait
• Sender sends one packet, waits for an acknowledgment (ACK).
• Inefficient when delay is high since it waits for each packet’s acknowledgment.
(b) Sliding Window (Go-Back-N and Selective Repeat)
• Go-Back-N: Sender transmits N frames before needing an ACK. If an error occurs,
retransmit from the last unacknowledged frame.
• Selective Repeat: Only retransmits the erroneous frame, increasing efficiency.
Example Calculation:
Assume a window size of 4 and RTT = 50 ms.
• Stop-and-Wait Throughput:
Frame Size
Throughput = RTT&Transmission Delay