📐 Mathematical Formula & Derivation
N_{usable} = \max(0, \; 2^{(32 - \text{Prefix})} - R_{cloud}) 🔬 Engineering Methodology & Benchmark Analysis
Traditional on-premise networks reserve only 2 addresses per subnet (the network identifier at .0 and the broadcast address at .255). However, AWS VPC and Azure VNet reserve 5 IP addresses per subnet (.0, .1 VPC router, .2 DNS, .3 future use, and broadcast).
Furthermore, cloud-native Kubernetes CNI plugins (such as AWS VPC CNI) assign primary VPC IP addresses directly to every Pod, rapidly exhausting /24 subnets unless properly sized at /19 or /20.
🛠️ Step-by-Step Engineering Calculation Guide
- CIDR Prefix Length (/8 to /30): Configure "CIDR Prefix Length (/8 to /30)" (default benchmark: 20) or select an industry preset.
- Network / Cloud Provider Reserved IPs per Subnet: Configure "Network / Cloud Provider Reserved IPs per Subnet" (default benchmark: 5) or select an industry preset.
- Subdivide Block Into Equal Availability Zone Subnets: Configure "Subdivide Block Into Equal Availability Zone Subnets" (default benchmark: 4) or select an industry preset.
- Average IPs Consumed per Worker Node / K8s Host: Configure "Average IPs Consumed per Worker Node / K8s Host" (default benchmark: 16) or select an industry preset.