Better HN
topnewbestaskshowjobs
Log inSign up

Dagger2

684 karma · joined Jun 6, 2012 (14y ago) · 820 submissions

Submissions

comment 4d ago · link · parent

Oh, did you come around on the idea of extension headers?

Last time, it was "There's EVERYTHING wrong with IPv6. It's a recursively bad protocol. From the basic header design (extension headers, wtf)" [1] and "No, they are not fine. Their design means that the router needs to know all possible extension headers to just be able to route the packets" [2].

If using extension headers is bad, and not using them is bad too, WTF were they supposed to do? At some point I have to conclude you're calling the design bad/stupid not because any aspect of the design is bad or stupid, but purely because it's what v6 did.

[1] https://news.ycombinator.com/item?id=50122261 [2] https://news.ycombinator.com/item?id=50123409

comment 4d ago · link · parent

> 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...

comment 6d ago · link · parent

It's more convenient if there's a standard layer available. It means you can introduce new things at L1/L2 and they'll still work with all existing software, and also you can introduce new things at L4+ and they'll work with any L1/2 tech, so long as you make your new thing map to L3 in the middle.

AKA: https://en.wikipedia.org/wiki/Hourglass_model

> (this reminds of the opposite direction: people stuffing IPv6 into sensor networks.. your frames are 32/64 _bytes_ and you want IPv6 headers in there???)

You mean like in 6LoWPAN, which uses header compression to get them down to 2 bytes? While still working with regular TCP- or UDP-using software?

comment 6d ago · link · parent

I'm one of the lucky ~83, apparently.

comment 1w ago · link · parent

Except not seriously, because actually it uses randomness for that. If the 1-in-2^40 statistical guarantee of uniqueness isn't good enough for you, use GUAs. Note that this is significantly better than v4, where there's only one range with 16 bits of subnets available, and you have a 1-in-1 chance of it colliding with other networks.

I think the most we could say is that, like everything in v6, people have some really weird ideas about how bad it is that don't match reality.

comment 1w ago · link · parent

I was anticipating a response along the lines of "where's the evidence that those pictures are real and not AI-generated?".

The source I have handily available is [1], which shows an increase of 38 TWh generated from solar in June from 2024 to 2025 and 30 TWh from 2025 to 2026. That's a mean of 52 GW and 41.7 GW respectively, which (at a capacity factor of 0.17, apparently around the average in China) is about 307 and 245 GW of installed capacity -- which roughly agrees with the original claim.

[1] https://ourworldindata.org/grapher/electricity-mix?time=2025...

comment 1w ago · link · parent

v4 is such a mess at this point that even dual stack is simpler. But actually v6-only works well enough these days, especially if you go the v6-mostly route.

comment 1w ago · link · parent

In pictures like the ones in https://www.admiddleeast.com/story/worlds-biggest-solar-farm...?

If you don't trust those (which is somewhat fair these days, given how easy it's become to generate fake imagery), you can always go there and see them for yourself. Or, since they're visible from space, launch a satellite to take your own photos.

comment 1w ago · link · parent

I'd argue that China has done far more work than the US have on reducing emissions. It's just that they also have a large rural population that's rapidly modernizing at the same time, and the increased energy use per capita from that is overlapping with their emissions reduction. The EU and US both went through that stage decades earlier, and it seems unfair to hold it against China for doing the same.

For example, there's been a massive drop in overall poverty in China over the past two or three decades [1]. Two decades ago they had tens of millions of people that didn't even have access to electricity [2], and half a billion people without access to clean cooking fuels [3]. They've had a 3.4x increase in car ownership [4] in the same period that the US had a 1.2x increase [5], a significant and growing share of which are electric [6] compared to the small and not growing share in the US.

On the energy generation side, China has built 5x as much low-carbon generation the US has over the past decade [7] despite the latter's economy being 50% bigger, and their CO2 per kWh is dropping faster [8] (especially over the past two years...).

It looks to me that the bulk of the US's emission reduction has come from switching from coal to gas, which is happening purely due to their relative costs. I guess it is a real reduction in emissions, but it's not decarbonizing. What happens when they run out of coal plants to convert? I feel like the US has just got lucky with timing and the cost of coal vs gas, whereas China has got unlucky with the timing of their standard of living improvements.

The top level "x% change in emissions" figure is too simple to capture any of this detail. I think it's mostly a coincidence that the figure is about the same for the three groups at the moment -- at some point China will finish raising its standard of living to western levels everywhere and, if nothing else changes, their emissions will start heading downwards faster then everyone else's. People will probably be surprised but the indications are that it's already happening, it's just being hidden for now.

[1] https://ourworldindata.org/explorers/poverty-explorer?countr... [2] https://ourworldindata.org/grapher/share-of-the-population-w... [3] https://ourworldindata.org/grapher/access-to-clean-fuels-and... [4] https://www.statista.com/statistics/285306/number-of-car-own... [5] https://www.statista.com/statistics/183505/number-of-vehicle... [6] https://ourworldindata.org/grapher/electric-car-sales-share?... [7] https://ourworldindata.org/grapher/electricity-mix?tab=line&... [8] https://ourworldindata.org/grapher/electricity-mix?tab=line&...

(As for the EU, I didn't really look at many of their stats. My general feel is that they've spent a reasonable amount of effort, but a lot of it has been on efficiency improvements -- which are welcome, and they benefit everybody which means that some of their effort unfairly shows up under other people's figures, but which might actually have been counter-productive [9] without the associated actual decarbonization of electricity generation.)

[9] https://en.wikipedia.org/wiki/Jevons_paradox

comment 2w ago · link · parent

> NAT only drops unsolicited inbound packets because it doesn’t know where to take them.

NAT does not drop unsolicited inbound packets. That's your firewall. If NAT doesn't know what to do with a packet, it just ignores it. Your router will then route it based on whatever dest IP is in the packet.

If v6 was the thing that made you realize you needed a firewall, then v4 was less understandable to you than v6 is.

comment 3w ago · link · parent

If only they would do NAT64, so you could drop v4 without losing the ability to connect out to v4-only hosts. That would be sufficient in a lot of cases.

(Oh, and fix their stupid "on-link /56 but we lie to you and claim it's your /64" setup while they're at it.)

comment 3w ago · link · parent

Then it sounds like it should not have been so mysterious to you after all.

comment 3w ago · link · parent

Are you talking about CVE-2025-68260? That involved code in an `unsafe {}` block.

Rust doesn't guarantee that code in `unsafe {}` blocks is safe. This is also covered in the manual.

comment 3w ago · link · parent

That's such a bizarre claim to make. The Rust manual explicitly says that it doesn't prevent race conditions.

comment 3w ago · link · parent

Every v4 address is a valid address in v6 too, so it seems it may be you that's lacking an understanding of v6.

comment 3w ago · link · parent

Wasn't "dual-stack hosts talking over a v4 network" what you wanted?

v4 routers don't understand and can't route v6 packets, so you can't use the same route for both of them. v6 packets have to go to a router that understands v6, and v4 packets have to go to a router that understands v4.

I have no idea what "or a superset in the later stages (shared down to /32, v6-only in deeper subnets)." is trying to say.

It's perfectly possible to turn v6 on without changing anything at all about your networking. When e.g. Windows Vista came out, hundreds of millions of people did exactly that.

Why can't the service just set up NAT64 to accept your v6 connections on their v4 servers?

comment 3w ago · link · parent

I've seen that draft. It's not backwards compatible in any ways that v6 isn't.

The people designing v6 knew from the start that interoperability with v4 was a requirement. It's written right into the list of requirements for v6[1], right in the same place that they say that a flag day is never going to happen.

Why do you believe otherwise? The RFC is right there for anybody, including you, to read.

[1] https://datatracker.ietf.org/doc/html/rfc1726#section-5.5

comment 3w ago · link · parent

But v6 did most of what you're asking for there??

It has "IPv4-compatible IPv6 address"es: https://datatracker.ietf.org/doc/html/rfc2373#section-2.5.4, and then a way to get them over networks where not every hop supports v6: https://datatracker.ietf.org/doc/html/rfc2893#section-5. You don't need new DNS or DHCP to use these, or SLAAC. There's no anycast relay. They can go over v4 hops.

Why spend all this energy complaining about v6 not doing something that it did do?

> The later stage of migration should just be that people start using longer addresses given that both ends are v6 and DNS etc supports it then

It seems your only real problem is that you completely missed the early part of the transition. We've been in what you're calling the later stage for twenty or so years now.

comment 3w ago · link · parent

Google publish a per-country latency comparison[1]. Typically v6 is slightly faster. (Also, usage is in fact 50% on average.)

But in general, it's mostly because v4 and v6 can end up taking different routes. If an ISP has any BGP peers that are v4-only or v6-only then they can end up sending packets for the same host to different peers. In the worst cases, one of them can go to another country and back again. It's usually harder to get ISPs to fix this on v6 than it is on v4, because the problem is visible to fewer people (in part due to happy eyeballs itself).

For smaller websites, DNS caching can play a role. If there are fewer clients requesting AAAA records than there are clients requesting A records, there's a chance that a client requesting both will get a cached A record back quickly but have to wait for full resolution of the AAAA record. This is unlikely to happen for the most popular sites (because another client will probably have triggered the caching) or for the least popular sites (because the A record will also fall out of cache for those), but there'll be a band somewhere in the middle that's affected by this. There's enough v6-capable clients around these days that I doubt this has a major impact now, but it's interesting that caches can cause unfairness like this.

[1] https://www.google.co.uk/intl/en/ipv6/statistics.html#tab=pe...

comment 3w ago · link · parent

NAT is something you use when you're not managing.

The spec minimum is more like /56, so maybe you're forced to use slightly more than 48, but not all 128 bits.

comment 3w ago · link · parent

No? It wouldn't be taking this long if they could do that.

The problem in this thread stems entirely from v4: they're being moved onto CGNAT (which is NATed v4), because the v4 address space is exhausted, and this is only a problem because the hospital relies completely on v4. None of these problems were created by "IPv6 people". The IPv6 people created the thing that solves these problems.

This hospital has had twenty years to gradually move things over to v6 which would have rendered the CGNAT a non-issue, but instead they've done zero work towards that and are completely unprepared to deal with the realities of v4 running out. Had they been forced to use v6, they would've be fine.

> when a network with IPv4 has an IP related problem, IPv6 folk will blame it on IPv4 even if it's entirely unrelated, even if the infrastructure isn't even at dual-stack phase.

Another opposite. What usually happens is that IPv6 gets blamed for any network problems, even on networks that don't use it.

I've seen people run software that failed to connect to a server's v4 address over a v4-only network due to broken v4, that have then blamed v6 for the problem. The error message from the software was somewhat misleading (it only prints the last connection failure instead of all of them), but even so.

It's usually the people not doing v6 that are delusional about it. Even on HN there's a steady stream of people complaining that v6 didn't do <thing that v6 did do> or that it's impossible to do <thing that's possible to do in v6>.

I do realize that you're likely to hit bugs or lacking support or something somewhere or another, but that's what the past twenty years of gradual transition were for. We've all put a ton of effort into buying you more time to figure this stuff out in. If you squandered all that time and then need to deal with everything after it becomes a big emergency, that's not v6's fault.

> get walmart to run their website on IPv6 before you push it to a hospital in southamerica who is having downtime.

If you wanted a nice orderly transition, you needed to start doing it earlier. Instead everybody is fighting to be the last person to transition, and you probably won't be able to beat Walmart on that fight.

comment 3w ago · link · parent

It's one of the ways to do backwards compatibility. One of the most compatible ways, even.

comment 3w ago · link · parent

I do! But then I ask those people to explain how to go about doing v6 in a way that isn't rubbish, and the only answers I get to that are a) impossible, b) no answer/refuse to answer, or c) they start reinventing v6 but with weird names for everything. Or some combination of the above ("just add two octets and have a flag day" is a common one, combining (c) with (a)).

I've more or less come to the conclusion that the people who think v6 is bad don't know what they're talking about. If none of these people can come up with a better approach than v6, that suggests that v6 really is more or less the best approach available.

> after almost 3 decades and so much the adoption at 50%

I think we all wish it had been faster, but the v4->v6 transition is the first time humanity has ever done a transition like this, on this scale, involving so many disparate networks controlled by so many people in so many countries. How do you know that 50% at 3 decades is slow? Maybe this is just the par time for this kind of thing.

comment 3w ago · link · parent

https://doc.didww.com/voice/outbound-trunks/outbound-sip-inf...?

comment 3w ago · link · parent

1 trillion addresses isn't anywhere near enough[1]. Remember that we're not talking about L2 here. (...I don't think 1 trillion MACs would even be enough if we want to ensure they're unique, and it seems the IEEE agree with me since they expanded MACs to 64 bits, but that's a different conversation.)

And you already don't have to use all 128 bits in v6. You're forced to use about 48 of them, but the rest is your choice. You can just... not use some of them. It's fine.

[1] https://www.rfc-editor.org/info/rfc1715/

comment 3w ago · link · parent

Some of those locations probably did feel more exotic back in the early 90s than they do today... but they're also sensible places to hold international conferences. Where are you supposed to do them, if not there?

comment 3w ago · link · parent

2002:47b1:11ab::/48 will go to your router if you announce it in BGP. It only goes to a 6to4 relay if there's no more-specific route.

(On home Internet you'll probably need your ISP to handle the announcements, like they already do for your v4 address.)

comment 3w ago · link · parent

> The main issue with IPv6 seems to be IPv6 proponents that try to kill IPv4, no one will migrate if you force them to, if you propose, we will consider.

My experience is more the opposite. I keep seeing people say things like "I don't do v6 at home because I don't need it". These people are outright telling us that they're not going to start using v6 unless we make them need it.

Note that I didn't say "migrate to" v6. They're not even willing to do the first step of that ("start using v6"), even with no pressure to do the last step ("stop using v4").

I read an anecdote from Facebook that they had huge trouble getting their developers to stop writing v4-only code. Eventually they ended up removing v4 from their developer machines, who all of a sudden were able to write v6-capable code -- and it didn't take long for them to start asking when they could drop support for v4.

People will moan and moan and moan about v6 until you make them use it, at which point they discover that it was never as bad as they imagined it being.

comment 3w ago · link · parent

Or perhaps we should be distributing the land more fairly.

comment 3w ago · link · parent

Wasn't it from academics in their ivory towers? That's kind of the opposite of flying out to exotic locales.

Of course, back here in the real world you can look at the RFCs yourself and see that they're credited to places like Ipsilon Networks, Xerox and Sun Microsystems. Boring corporate network companies.

12345
28