Computer Networking Formula Sheet

IPv4 CIDR subnet sizing, usable host counts, serialization delay, protocol overhead efficiency, and TCP Bandwidth-Delay Product (BDP).

Core Equations & Variable Definitions

IPv4 Usable Hosts per CIDR Prefix

N_{\text{hosts}} = 2^{32 - p} - 2 \quad (p \le 30)

Subtracts the all-zeros network ID and all-ones broadcast address.

Bandwidth-Delay Product (BDP)

\mathrm{BDP} = \text{Bandwidth} \times \mathrm{RTT}

Minimum TCP receive window needed to keep a high-latency link fully saturated.

Total Packet Transfer Latency

T_{\text{total}} = \frac{\text{Data Size}}{\text{Effective Throughput}} + \text{Propagation Delay}

Account for bits vs bytes (1 Byte = 8 bits) and header framing overhead.

Subnet Block Size (Magic Number)

\text{Increment} = 256 - \text{Mask Octet}

Gives the step between consecutive subnet network addresses in the interesting octet.

Interactive Networking & Subnetting Calculators

Common Exam Questions

How many usable hosts are in a /24 or /26 subnet?

A /24 has 2^8 - 2 = 254 usable host addresses, and a /26 has 2^6 - 2 = 62 usable host addresses.

Why does a 1 Gbps link sometimes transfer much slower than 125 MB/s?

Small TCP window sizes relative to Bandwidth-Delay Product, packet loss, and Ethernet/IP/TCP header overhead reduce effective application goodput below raw line rate.

What is the difference between Mbps and MB/s?

Mbps measures megabits per second (10^6 bits/s), while MB/s measures megabytes per second (8 times larger). Divide Mbps by 8 to estimate theoretical MB/s.