News for hackers. Stuff that matters.
Re:India is leading IPv6 migration with 61.67% adoption by citrin_ru on Sunday August 15, 2021 @10:43AM (#28189131)
IPv6 is a bad technical standard to begin with (which is on of the reasons behind slow adoption). Forcing it with legislation would only make everyone involved to hate it more.
Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Sunday August 15, 2021 @10:47AM (#28189182)
> IPv6 is a bad technical standard to begin with

Can you expound on why you think this is the case?

Re:India is leading IPv6 migration with 61.67% adoption by snuxoll on Sunday August 15, 2021 @11:02AM (#28189301)
Not GP, but I think IPv6 is generally fine. The big issue is around mid sized enterprises, where multi homing becomes a need and for so long PI address space was reserved for peering-sizes entities. This makes sense from the perspective of reducing routing table size, but to date there’s no good way to do multihoming with multiple PA blocks (there are ways, but they all suck).

The IETF really needs to fix this issue in particular, it’s the last big hurdle in seeing adoption IMO.

Re:India is leading IPv6 migration with 61.67% adoption by magila on Sunday August 15, 2021 @02:33PM (#28191160)
What would a good solution to that even look like? Giving every mid-sized company it's own PI block would massively bloat the routing table so that's not going to happen. The solution space that's left basically comes down to some form of NAT/NPT or multi-home support at the endpoints. The IETF's preferred solution is the latter which seems reasonable to me.
Re:India is leading IPv6 migration with 61.67% adoption by snuxoll on Sunday August 15, 2021 @04:00PM (#28191996)
I fully agree that giving PI blocks out like candy is not the ideal solution - but the solutions for dealing with multiple PA spaces are woefully inadequate right now. I’d really like to see the IETF step in here and come up with some workable proposals before we ruin IPv6 while it’s still possible to fix these issues.
Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Sunday August 15, 2021 @11:30AM (#28189554)
> but to date there’s no good way to do multihoming with multiple PA blocks (there are ways, but they all suck).

Is using ULA and NPTv6 any worse than using NAT44?

Re:India is leading IPv6 migration with 61.67% adoption by snuxoll on Sunday August 15, 2021 @12:50PM (#28190253)
It’s not - but that doesn’t mean it’s a good solution. Clients should be able to know their globally routable address and ULA with NPTv6 seriously fucks with that, so I’m not a fan.
Re:India is leading IPv6 migration with 61.67% adoption by ikiris on Sunday August 15, 2021 @02:20PM (#28190996)
PI was never reserved for peering sized entities... just get PI space.
Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Monday August 16, 2021 @10:30AM (#28198547)
Depending on the tech skills of the organizations, your ISP(s) may have to run BGP on your behalf--even if the IPv6 is yours. (Not sure if that's even a thing.)
Re:India is leading IPv6 migration with 61.67% adoption by magpi3 on Sunday August 15, 2021 @11:02AM (#28189306)
I'm not the person you are responding to, but from what I understand the main issues are:

ipv6 is not backwards compatible with ipv4.

Consequently adding support for ipv6 requires a dual stack solution (since supporting ipv4 is a must).

An alternative solution to the problem of the limited number of ipv4 addresses has been reliance on NATs. This is much simpler than supporting ipv6 and is already widely adopted everywhere, and so that's what people are choosing to do.

The obvious conclusion (from a casual observer like myself): the successor to ipv4 has to be backwards compatible with it, similar to how UTF-8 is backwards compatible with ASCII.

EDIT: I should note that I am not a network engineer, so if anything I have written is incorrect, I hope someone corrects me.

Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Sunday August 15, 2021 @11:29AM (#28189534)
> ipv6 is not backwards compatible with ipv4.

I've seen this objection, and I do not see how it could be otherwise.

If all the code out there was for 32-bit-only addresses (of IPv4), then expanding the addresses space to something >32 bits would entailed updating every single IP-capable code. Which is exactly that needed to be done for IPv6: every device needed to have code updated (and this included 'hardware code' of things like ASICs).

Re:India is leading IPv6 migration with 61.67% adoption by magpi3 on Sunday August 15, 2021 @12:00PM (#28189818)
Again, I am not a network engineer and so I am a little of my depth. But I will respond in the hopes someone will educate me if I am wrong.

While UTF-8 is backwards compatible with ASCII, it did of course require programmers to add support for it just like you are suggesting any successor to IPV4 would. But once that support was added, ASCII could be treated as part of UTF-8 standard.

From what I understand, this is not the case with IPV6 and IPV4. The former requires its own software stack and the IPV6 standard was written (from what I have read) without any attempt to make it possible for IPV4 and IPV6 addresses to coexist in the same software stack easily.

Re:India is leading IPv6 migration with 61.67% adoption by magicalhippo on Sunday August 15, 2021 @12:10PM (#28189899)
The problem is packets flow both ways in a network.

It's not like an actual pipe where one end doesn't care where the other end is. The recipient of a packet has to know where to send the reply.

So while a host with a larger address could easily talk to a legacy host with an older, smaller address, the legacy host couldn't reply because it wouldn't know how to address it.

Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Sunday August 15, 2021 @12:33PM (#28190123)
Yes, and all software had to be rewritten to use UTF-8. If you tried sending UTF-8 bits through an ASCII-only system, you'd display a bunch of garbage and even cause larger issues (as some bit sequences could have been interpreted as control/escape characters).

So, just like expanding address space (IP: 32-bit to 128-bit; ASCII: 8-bit/1-byte to multi-byte), you had to rewrite all the software to handle things.

Re:India is leading IPv6 migration with 61.67% adoption by betterunix2 on Sunday August 15, 2021 @12:59PM (#28190310)
Actually, IPv4 address can be mapped to the IPv6 address space and routed across an IPv6-only network; you have stateless NAT gateways at the edges. That allows network operators to manage a single-stack network while still giving users an IPv4 network. 464XLAT adds one more component to the picture, which is a stateful NAT gateway that allows a network operator to provide limited IPv4 service without giving each user a public IPv4 address. For reference:

https://en.wikipedia.org/wiki/IPv4_mapped_address#IPv4-mappe...

Re:India is leading IPv6 migration with 61.67% adoption by citrin_ru on Sunday August 15, 2021 @12:03PM (#28189839)
It's too late to discuss alternatives to IPv6, so I haven't spend time collecting what I think wrong with it (and below just random thoughts).

The main reason I don't like it - it is much more complex than IPv4 and this complexity provides from little to now real benefits (but a lot of advertised by IPv6 evangelists). The only reason networks migrate to IPv6 is the scarcity of IPv4 addresses, not other features which was envisioned as improvements over IPv4, but on practice turned out to be not very useful.

128bit per address from which usable only 64bit looks like a waste of resources (CPU/RAM) to me. Idea was to embed MAC-address in lower 64bit, but it turned out to be a bad idea because of privacy implications and for most end-user devices lower 64bit are now random. Given that /64 prefix in most cases used by single host a 64bit address would be sufficient. If we had 64bit addresses we would save RAM for routers and OS kernels and simplify implementation (64bit integers are available in practically all modern programming languages and 64bit operations are fast, while 128bit is a slower extension which is not universally available).

For me IPv6 is an example of the second-system effect: https://en.wikipedia.org/wiki/Second-system_effect

Re:India is leading IPv6 migration with 61.67% adoption by betterunix2 on Sunday August 15, 2021 @12:47PM (#28190232)
In my experience IPv6 is much simpler to deal with than IPv4; in fact the large address space with a 64-bit prefix as the network number greatly simplifies management and configuration and theoretically improves the CPU performance of routers by allowing allowing more aggressive route aggregation. When ISPs give /56 prefixes to users, users can easily set up subnets according to their own needs without requiring extra coordination and without breaking end-to-end connectivity. You are wrong that /64 prefixes are usually assigned to a single host; in fact the number of Internet-connected devices in a typical home has grown over time and can easily be a dozen or more.

If I were running an ISP, I would migrate the backbone network to IPv6 and just use embedded IPv4 addresses to avoid the headaches that come with router-to-router IPv4 links. With IPv6 you always have a link-local address on every port that can be used by routing protocols without relying on proprietary solutions that are not interoperable between vendors or having to assign an IPv4 address (and hoping that you assigned a large enough subnet for future growth). It is much easier to scale up an IPv6-only network and much easier to connect one IPv6-only network to another.

Of course IPv6 is not perfect. SLAAC did not really work out as planned and now we are stuck with an annoying mix of SLAAC and DHCPv6. Reverse-DNS is still a bit of a pain. IPSec is not what it should have been and too many IPv6 standards rely on IPSec for security/authentication. Even so, the core of IPv6 is a huge improvement over IPv4 for individual users, small network operators, large network operators, and the Internet as a whole.

Re:India is leading IPv6 migration with 61.67% adoption by magicalhippo on Sunday August 15, 2021 @05:16PM (#28192596)
> In my experience IPv6 is much simpler to deal with than IPv4

My experience is the complete opposite. Lot of software is still very immature when it comes to IPv6. A prime example is that I had to abandon pfSense because it just didn't handle prefix delegation. And no, switching ISP is not an option for me.

I'm now on OpenWRT which is miles better, but getting IPv6 to play nice is still lot more work. For example there were a lot more steps to getting split-horizon DNS working compared to regular IPv4.

> Even so, the core of IPv6 is a huge improvement over IPv4 for individual users, small network operators, large network operators, and the Internet as a whole.

Maybe in another decade or two when IPv6 and the ecosystem around it has matured a bit. Though it still seems to have a lot of moving parts compared to IPv4, thus requiring more to keep track of.

Re:India is leading IPv6 migration with 61.67% adoption by Dagger2 on Wednesday August 18, 2021 @03:15AM (#28218443)
It shouldn't be any harder to get split-horizon DNS working on v6... and in fact v6 should eliminate the need for it in the first place, since the IP of a computer is just its IP.
Re:India is leading IPv6 migration with 61.67% adoption by Dagger2 on Sunday August 15, 2021 @12:58PM (#28190303)
All 128 bits are usable, it's not limited to just 64.

A total length of 64 bits would be too small for the eventual size of the internet. Our choice was between deploying something with too many addresses or something with too few addresses, and the former is by far better than the latter. We do not want to be going through another IP family transition to increase the bit length again, so we need to get it right the first time.

v6 mostly just took v4 and made the addresses longer, so I'm not sure it's reasonable to describe it as bloated. About the only thing it actually adds over v4 is SLAAC (and IPsec, but that was immediately backported to v4).

Re:India is leading IPv6 migration with 61.67% adoption by tsimionescu on Sunday August 15, 2021 @01:24PM (#28190522)
> A total length of 64 bits would be too small for the eventual size of the internet.

Even home consumers are getting at least a /64. Unless you're expecting consumers to start having ~2^64 devices, it doesn't seem like anyone is concerned with the public internet needing more than ~2^64 addresses.

Re:India is leading IPv6 migration with 61.67% adoption by Dagger2 on Sunday August 15, 2021 @02:33PM (#28191154)
Don't think in terms of addresses. In a hierarchically-allocated and aggregated space like IP addresses, there's a massive difference between 64 bits of address space and 2^64 usable addresses.

By the time you've gone through six levels of allocations (IANA -> RIR -> ISP -> Customer -> Network -> Device) the vast majority of the total address space will be unused -- or rather: used for the purpose of aggregation, but not used for end machines. A 64-bit address space might only reasonably be able to handle something like 2^40-2^48 devices in total, which isn't that much more than we already have today.

> Unless you're expecting consumers to start having ~2^64 devices

You'd definitely need something longer than 64 bits long, long before this point.

Re:India is leading IPv6 migration with 61.67% adoption by tsimionescu on Tuesday August 17, 2021 @04:36AM (#28207549)
If ISPs are allocating /64s or more to end consumers, how is this different from a 64 bit address space where they handed out a single address to each consumer?
Re:India is leading IPv6 migration with 61.67% adoption by Dagger2 on Wednesday August 18, 2021 @04:03AM (#28218708)
In terms of rate of consumption of the overall address space, it's not. But consumers have started to have more than one device at home -- in fact almost everybody has an entire network with multiple machines these days, so a single address isn't sufficient.

v6 has enough space to give everybody multiple networks, not just multiple addresses (and those networks are always big enough for however many devices you end up attaching to them).

Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Sunday August 15, 2021 @05:33PM (#28192725)
To illustrate the scale, 2^32:

* is roughly equal to 4 300 000 000 (4e9, 4B)

* it is also the maximum number of IPv4 addresses

Going back to math class:

* 2^64 = 2^(32+32) = 2^32 * 2^32 = (4B) * (IPv4 Internet)

So a single /64 IPv6 subnet can hold four billion IPv4 Internets worth of systems.

Re:India is leading IPv6 migration with 61.67% adoption by tsimionescu on Tuesday August 17, 2021 @04:33AM (#28207533)
The point was whether 128 bit addresses are actually required - someone was claiming that 64 bit addresses would have also been exhausted, and I pointed out that the current strategy for handing out IPv6 is anyway using up the address space at a similar pace to the situation where we had a 64 bit address and were handing out /64 addresses to individual consumers. There were even some comments claiming certain ISPs are handing out /56 spaces to end consumers.
Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Tuesday August 17, 2021 @01:59PM (#28212858)
Ethernet MACs have 48-bit addresses, and I don't think we've run out of those, and I also don't think is anyone is even worrying about running out of those, so 64-bit IP addresses probably would have been sufficient.

But given all the drama with IPv6, I think it was reasonable to go with 128-bit addresses just so we don't have to go through all of this again.

On a related note, messing up the assignment of IPv6 address was actually accounted for. If you look at any unicast address that's currently live, you'll see that it begins with a "2". This is because addresses are only being assigned from 2000::/3:

* https://www.iana.org/assignments/ipv6-address-space/ipv6-add...

If, for some reason, we realize there's a mistake in how things were done with that space, it will be declared legacy/deprecated, and IANA will start over with addresses from 4000::/3. If that is screwed up, then 6000::/3 will be next, then 8000::/3, a000::/3, and finally c000::/3.

So the Internet community has six tries to get IPv6 addressing correct.

Re:India is leading IPv6 migration with 61.67% adoption by throw0101a on Sunday August 15, 2021 @04:50PM (#28192418)
> 128bit per address from which usable only 64bit looks like a waste of resources (CPU/RAM) to me.

I would recommend you check out Tom Coffeen, who wrote a book on IPv6 address planning for O'Reilly. Even with half the bits going to the subnet, there is a astronomical amount of addresses available:

* https://www.youtube.com/watch?v=7Tnh4upTOC4&t=27m