logoalt Hacker News

bombcaryesterday at 5:58 PM3 repliesview on HN

IPv4 was evolved, it is now a 48 bit address, signified by IP:PORT.


Replies

lxgryesterday at 6:20 PM

There are many things wrong with this analogy, but the most important ones seem to be:

- NAT gateways are inherently stateful (per connection) and IP networks are stateless (per host, disregarding routing information). So even if you only look at the individual connection level, disregarding the host/connection layering violation, the analogy breaks.

- NAT gateways don't actually route/translate by (IP, port) as you imply, but rather by (source IP, source port, destination IP, destination port), as otherwise there simply would not be enough ports in many cases.

show 1 reply
nine_kyesterday at 6:14 PM

Routing of this additional /16 is more tricky and non-uniform though. NAT, hole-punching, all that.

show 1 reply
themafiayesterday at 6:23 PM

You're thinking of TCP or UDP. IP does not have ports.

show 1 reply