Remix.run Logo
▲ theamk 9 hours ago

> Maybe something else would've been slightly nicer, but what exactly?

My personal preference would be dots + ".v6" suffix, "fe80.x.1.ipv6". Simple to parse, 100% backwards compat (apps which don't know how to handle this treat it as a hostname).

If not, there are also underscores (which are incidentally prohibited in DNS) and dashes which have no conflicts. Also commas, parenthesis, carets - yes those are weird, but they'd still be better than the mess that was chosen instead.

"this is impure" you say? Then enjoy not having your system deployed for 20+ years.

> [IPv4-mapped IPv6 addresses is] a giant security risk, and no IPv4 host knows how to respond to it anyway.

You are thinking about the wire-side, I am talking about app-side. App creates a single, AF_INET6 socket, and only uses ipv6 structs with it. If it uses it to talk to ::ffff: address, the IPv4 packets go out, else it's IPv6! This exists already, and could have simplified so many porting efforts. Imagine your whole userland already using IPv6 sockets, despite packets on the wire being IPv4 only.

Except this was always discouraged, and OpenBSD outright disabled this functionality. So no one popular app could take advantage of that.

> How else would you've done it? Require DHCPv6? Ew. SLAAC is so much nicer.

That argument would have been much stronger if the initial design did not require DHCPv6. RDNSS only got added decades later.

> They thought a lot about us and built something truly pleasant to use. It's simpler in just about every way and works great.

I am not sure what your background is, but they built "something truly pleasant to use" only if you are either super basic (user) or manage huge networks (1000's of machines). For application developers and small-to-medium sized network administrators, things got simply worse.

(Preemptive answer to "but with no NAT, I, an application developer, can now do P2P and hosts things easily!" No, you can't, enough routers still have "default deny" policy that you can't just give out address and hope people could reach you.)

A recent example: upstream address changes, something that's pretty common in small-to-medium sites (who doesn't have a spare cell modem or two so that if your cable goes down you can seamlessly switch to a working network with a single cable replug?). Are you saying that things like IPv6 Delegation [0] is "simpler in every way" than equivalent IPv4 setup (changing IP on NAT box)? And note that his iPhone is still taking few minutes to pick up new address, and there is nothing protocol-level that can fix it. Maybe in another ten years IPv6 folks will come up with something.

[0] https://news.ycombinator.com/item?id=50509141

▲kstrauser 7 hours ago | parent [-]

> My personal preference would be dots + ".v6" suffix, "fe80.x.1.ipv6". Simple to parse, 100% backwards compat (apps which don't know how to handle this treat it as a hostname).

That's not awful, I'll grant, but I'm not in love with forcing that extra info into an IP address. I'd hate to have to `ping 127.0.0.1.ipv4`, for instance.

> This exists already, and could have simplified so many porting efforts.

It's a mixed bag. Itojun raised some serious concerns[0] about the idea. Those could be fixed, but could also become an endless stream of security vulnerabilities were extra-complex kernel and library codepaths get knocked down one at a time.

> That argument would have been much stronger if the initial design did not require DHCPv6.

SLAAC came out in '95. DHCPv6 was standardized in '03. Now I'll grant you that DNS was a PITA until RDNSS came along. We completely agree on that.

My background's more in the tens to many hundreds of machines, neither home lab nor hyperscalar. I still think it's quite pleasant, and the bonus of never having to jump through hoops to connect RFC-1918 networks is lovely.

> you can't just give out address and hope people could reach you.

Yeah, you'll always have to configure a firewall, but that's way simpler when you don't also have to involve NAT. Quick example: you want to run 2 webservers behind the same on-premise router. With IPv6, you just open those ports. With IPv4, first decide which one's going to run on a non-standard port, or build a public-facing reverse proxy you can put them both behind or...

> Are you saying that things like IPv6 Delegation [0] is "simpler in every way" than equivalent IPv4 setup (changing IP on NAT box)?

No. I'm saying that configuring ULA is simpler. Use ULA for internal addressing and it stays put, no matter what happens to your publicly routable subnet.

[0] https://datatracker.ietf.org/doc/draft-itojun-v6ops-v4mapped...