HomeCybersecurityNAT Port Table 2D: Address Translation & Exhaustion

NAT Port Table 2D: Address Translation & Exhaustion

2D schematic NAT / Port Address Translation simulator: a live node-link diagram of hosts, router and destinations, a port-pool grid, and a strip chart comparing measured vs Erlang-B theoretical port-exhaustion blocking probability.

Cybersecurity2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-network-security-basics ↗ Open standalone

Behind almost every home and office firewall sits a Network Address Translation router quietly rewriting outbound packets and keeping a table of who is talking to whom. This 2D companion renders that table as a flat schematic diagram: internal hosts on the left fire connections along straight lines through a NAT router, which allocates external ports from a finite pool drawn as a grid of cells, and a rolling strip chart tracks the measured connection-loss ratio against the Erlang-B theoretical prediction in real time. Push the connection rate and hold time up and the pool runs out — exactly as the two curves on the chart predict — while a stream of unsolicited inbound packets shows the flip side: without a matching table entry, the router drops them before they ever reach a host, the mechanism that makes NAT double as an implicit firewall.

⚙ Under the hood

A flat schematic diagram of a NAT router: hosts, port pool grid and destinations connected by animated packet lines, with a live strip chart comparing measured connection-loss ratio against the Erlang-B theoretical blocking probability as pool size, arrival rate and hold time change.

NATport address translationnetwork securityErlang-Bstateful firewallnetworking

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)