01 - Introduction

Problem 1: Short Answer Questions

Problem 2: Circuit-Switched vs Packet-Switched Networks

Consider sending a file of $F = M \times L$ bits over a path of $N$ links. Each link transmits at $R$ bits/sec. The network is lightly loaded so that there are no queuing delays. When packet switching is used, the $M \times L$ bits are broken up into $M$ packets, each packet of $L$ bits. Also assume that the propagation delay is negligible.

Details on Multi-Hop Transmission

Multi-Hop Transmission:

When sending $M$ packets through a network with multiple hops (multiple links), it’s crucial to understand the pipelining effect:

  1. First packet establishes the delay: Calculate the total time for the first packet to traverse the entire path (all $N$ links). This includes all propagation delays and transmission delays across every hop.

  2. Remaining packets trail behind: Once the first packet is on the wire, the remaining $M-1$ packets follow behind it in a pipeline. They don’t add proportionally to the total time.

  3. Simplified formula: The total transmission time is:

    $T_{total} = T_{first\ packet\ through\ all\ hops} + (M-1) \times T_{last\ link}$

  4. Why this works: The bottleneck is typically the slowest (most congested) link. By the time the first packet completes transmission on the final link and arrives at the destination, the second packet is about to enter that final link. Thus, each additional packet only adds the time needed to traverse the last link.

This pipelined transmission is what makes packet switching efficient for multi-hop networks, allowing bandwidth to be utilized continuously rather than having idle time between packets.

Problem 3: RTT and Transmission Time Calculations

Suppose two nodes A and B are connected via a point-to-point link. The length of the link is 10,000 km and its bandwidth is $1$ Kbps. Assume the speed of signal on the wire is $3 \times 10^5$ km/sec.

Problem 4: Earth-Moon Communication Delays

Suppose a $100$ Mbps point-to-point link is being set up between the earth and a new lunar colony. The distance from the moon to the earth is approximately 390,000 km, and data travels over the link at the speed of light, i.e., $3 \times 10^5$ km/sec.

Problem 5: Propagation and Transmission Delay Analysis

Consider two hosts A and B connected by a single link of rate $R$ bps. Suppose that the two hosts are separated by $M$ meters and suppose the propagation speed along the link is $s$ m/sec. Host A is to send a packet of size $L$ bits to host B.

Problem 6: Bandwidth-Delay Product

Suppose two hosts A and B are separated by 10,000 kilometers and are connected by a direct link of $R=1$ Mbps. Suppose the propagation speed over the link is $2.5 \times 10^8$ m/sec.

Problem 7: Multi-Hop Network Delays

Consider the packet switched network shown below. The bandwidth of the link between the source and router R1 is $1$ Mbps and the length of the link is 1000 km. The bandwidth of the link between router R1 and the destination is $100$ Kbps and the length of the link is 10,000 km. Assume that the speed of light is $2 \times 10^5$ km/sec.

Consider the following network. Bandwidth of the link between A and R1 is $1$ Kbps. Bandwidth of the link between R1 and R2 is $2$ Kbps. Bandwidth of the link between R2 and B is $1$ Kbps. Assume that an application at A sends 10 packets each of size 1000 bytes. Assuming that the transmission starts at time 0, compute how long it takes for the last packet to arrive at B. Ignore the propagation, processing and queueing delays.

Solution

Analysis:

The bottleneck is the link with the minimum bandwidth. Here, both A→R1 and R2→B have 1 Kbps, while R1→R2 has 2 Kbps. So the bottleneck is 1 Kbps.

Packet Details:

Transmission Times:

Link A→R1 (1 Kbps): $t_{trans,1} = \frac{8,000}{1,000} = 8 \text{ seconds per packet}$ All 10 packets: $10 \times 8 = 80$ seconds

Link R1→R2 (2 Kbps): $t_{trans,2} = \frac{8,000}{2,000} = 4 \text{ seconds per packet}$ All 10 packets: $10 \times 4 = 40$ seconds

Link R2→B (1 Kbps): $t_{trans,3} = \frac{8,000}{1,000} = 8 \text{ seconds per packet}$ All 10 packets: $10 \times 8 = 80$ seconds

Timeline for Last Packet:

Answer: 92 seconds

Alternatively: Total transmission time = Time to transmit all packets through bottleneck (1 Kbps) + time through middle link + time through last bottleneck: $T = 80 + 0 + 0 + 12 = 80 + 12 = 92 \text{ seconds}$

or more directly: $80 + 4 + 8 = 92$ seconds (time through each link in sequence for the batch)