CGNAT Port Block Planner
Plan carrier-grade NAT: how many subscribers fit behind a public pool, how large each port block should be, and the logging volume it will generate.
Result
Port block size trade-off
| Ports/sub | Subs per IP | Pool capacity | Suitability |
|---|---|---|---|
| 512 | 126 | 32,004 | Aggressive - expect complaints from heavy users |
| 1024 | 63 | 16,002 | Tight but workable for light users |
| 2048 | 31 | 7,874 | Common industry choice |
| 4096 | 15 | 3,810 | Comfortable, lower density |
| 8192 | 7 | 1,778 | Comfortable, lower density |
Logging implications
- Deterministic logging
- one record per subscriber per block assignment - negligible volume
- Per-flow logging
- roughly 5.4 GB/day at 300 flows/subscriber/hour
- Recommendation
- deterministic or port-block allocation, so a legal request needs only the block map
About CGNAT Port Block Planner
CGNAT capacity is governed by ports, not addresses. Each public address has 65,536 TCP and UDP ports, and how many subscribers you fit behind it depends entirely on how large a port block each one gets - a decision that trades address efficiency directly against user experience.
What subscribers notice
CGNAT is invisible until it is not. Inbound connections and port forwarding stop working, so cameras, NAS boxes and self-hosted services break. Some peer-to-peer and console traffic degrades to relayed mode with higher latency. Shared addresses attract CAPTCHAs and occasional outright blocks when another subscriber behind the same address misbehaves. Publishing a static port-block map and offering an optional public address for customers who need one resolves nearly all of the support load.
Choosing a block size
A modern household opens far more concurrent connections than people expect: a browser with many tabs, several streaming devices, a games console and an assortment of IoT devices comfortably reach several hundred. Blocks of 1024-4096 ports are the usual range. Below 512 you will get intermittent failures that are almost impossible for support to diagnose, because they depend on what else the household is doing.
Common use cases
- Sizing a public pool before an IPv4 purchase or lease.
- Choosing a port block size for a new CGNAT deployment.
- Estimating whether per-flow NAT logging is storable at your scale.
Edge cases and gotchas
- Some applications and websites rate-limit or block shared addresses outright - CGNAT subscribers will hit CAPTCHAs more often.
- Inbound connections, port forwarding and some peer-to-peer protocols simply do not work behind CGNAT.