Hacker News new | ask | show | jobs
by cyberax 17 days ago
> What IPv6 does differently is that each interface is expected to have multiple addresses, but each of those addresses serves a different purpose.

Nope. IPv6 was designed from the beginning to support multiple Internet-connected routers. Even the earliest RFCs that defined protocols for router advertisement allowed for multiple routers and addresses.

Yet at the same time, TCP (and DNS) ended up stuck with the "one address, one host" model.

> So, there really isn't any reason to use more than one address for the same connection. > What it sounds like you're asking for is something like MPTCP, which was designed to solve a problem that didn't really exist when IPv6 was created.

There is. To support Happy Eyeballs natively in the OS.

Happy Eyeballs should have been standardized along with IPv6 in the 90-s, but it took 15 years for it to be deployed!

In the counter-factual world, the IPv6 TCP would have been standardized on something like MPTCP from the beginning. There would have been one call to establish a connection: "connect(const char *hostname, uint16_t port)".

It then would have raced IPv4 TCP and IPv6 TCP connections, the TCPv6 then would have treated the V4 connection as a subflow. With perhaps multiple TCPv6 flows going over different source-dest address pairs.

2 comments

It feels like you're anachronistically saying IPv6 was always meant to work the way (you think and I agree) that it ought to work today.

As you say, Happy Eyeballs deployment is relatively recent. So is RFC 8028. The original multiple router support did not mean multiple, redundant addresses for the same purpose, it meant failover to the same upstream network using the same addresses, and even that didn't always work that well.

I did not say that IPv6 was focusing on multi-homing (IETF didn't even want to add PI addresses for IPv6 initially), but on multiple paths to the same uplink. This was very much an intention from the beginning, and the privacy addresses were a fast follow.

And the late addition of Happy Eyeballs is _the_ reason IPv6 is still mostly vaporware.

> connect(const char *hostname, uint16_t port)

It would be `connect(const char *hostname, const char* servname)`, since it's a bit silly to take hostnames yet force the user to resolve the service name themselves.

So many programming languages have made that mistake in their socket APIs...

You will still need custom ports for unregistered services or for point-to-point communication. But yeah, definitely a good idea to have both versions!