A network 192.168.1.0/24 is divided into 4 subnets. Find the new subnet mask and number of hosts per subnet.
/26
11111111.11111111.11111111.11000000 = 255.255.255.192
Assignment 2 · 7 Problems · Subnetting, TCP Congestion Control, UDP/RTP & Throughput
A network 192.168.1.0/24 is divided into 4 subnets. Find the new subnet mask and number of hosts per subnet.
/26
11111111.11111111.11111111.11000000 = 255.255.255.192
The address of a Class B host is to be split into subnets with a 6-bit subnet number. What is the maximum number of subnets and the maximum number of hosts in each subnet?
Consider the effect of using slow start on a line with a 10 msec RTT and no congestion. The receiver window is 24 KB and the maximum segment size is 2 KB. How long does it take before the first full window can be sent?
| Time (ms) | RTT # | cwnd (MSS) | Window Sent (KB) |
|---|---|---|---|
| 0 | 0 | 1 | 2 KB |
| 10 | 1 | 2 | 4 KB |
| 20 | 2 | 4 | 8 KB |
| 30 | 3 | 8 | 16 KB |
| 40 | 4 | 12 (capped) | 24 KB (Full) |
Note: If an initial threshold of ssthresh = rwnd/2 = 6 MSS is assumed, cwnd grows 1 → 2 → 4 → 6 → 7 → 8 → 9 → 10 → 11 → 12 MSS (9 RTTs = 90 ms).
Consider an instance of TCP's Additive Increase Multiplicative Decrease (AIMD) algorithm where the window size at the start of slow start phase is 2 MSS and the threshold at the start of first transmission is 8 MSS. Assume that a timeout occurs during the fifth transmission. Find the congestion window size at the end of tenth transmission.
| Tx # | Start cwnd | Phase / Event | End cwnd | ssthresh |
|---|---|---|---|---|
| 1 | 2 MSS | Slow Start (×2) | 4 MSS | 8 |
| 2 | 4 MSS | Slow Start (×2) | 8 MSS | 8 |
| 3 | 8 MSS | Congestion Avoidance (+1) | 9 MSS | 8 |
| 4 | 9 MSS | Congestion Avoidance (+1) | 10 MSS | 8 |
| 5 | 10 MSS | Timeout → ssthresh = 10/2, cwnd = 1 | 1 MSS | 5 |
| 6 | 1 MSS | Slow Start (×2) | 2 MSS | 5 |
| 7 | 2 MSS | Slow Start (×2) | 4 MSS | 5 |
| 8 | 4 MSS | Slow Start (capped at ssthresh) | 5 MSS | 5 |
| 9 | 5 MSS | Congestion Avoidance (+1) | 6 MSS | 5 |
| 10 | 6 MSS | Congestion Avoidance (+1) | 7 MSS | 5 |
Suppose that the TCP congestion window is set to 18 KB and a timeout occurs. How big will the window be if the next four transmission bursts are all successful? Assume that the MSS is 1 KB.
| Burst | Sent (Start cwnd) | Rule | New cwnd |
|---|---|---|---|
| 1 | 1 KB | Slow Start (×2) | 2 KB |
| 2 | 2 KB | Slow Start (×2) | 4 KB |
| 3 | 4 KB | Slow Start (×2) | 8 KB |
| 4 | 8 KB | Capped at ssthresh (9 KB) | 9 KB |
A video application uses UDP to transmit packets of 1,200 bytes at 800 packets/sec. Sender: 192.168.10.15, port 5000; Receiver: 172.16.5.20, port 6000.
192.168.10.15:5000 · Destination = 172.16.5.20:6000
A TCP connection has RTT = 80 ms, receiver window = 64 KB, and segment size = 1,000 bytes (cumulative ACKs, no packet loss).