by fintler · 5y ago · 0 comments
Once you dig into the details, you come to the realization that it's a nearly complete reinvention of IPv4. Network planning looks quite different (especially when it comes to subnets) when you plan them with only IPv6 in mind.
Earlier this year, I was like:
"Wow, Comcast gives me a /60! That should be more address space than I could ever want or use."
Now, I'm thinking:
"A /60 is way too limited, I wish I had a /52 or a /56 instead -- why is Comcast so restrictive with giving out address space?"
I'm currently reading the IPv6 for IPv4 Experts book to try to fill in more details:
https://sites.google.com/site/yartikhiy/home/ipv6book
The more I read about it, the more I feel like I have a long way to go before I really get an intuitive understanding.
The first 64 bits therefore identify the network. If your ISP routes a /60 to you then you get to split that into 16x /64s.
That’s probably fine, but the IETF recommendation is to dish out a /56 to small sites and give them a /48 if they ask for it. ISPs usually have multiple /32s at their disposal.
It’s not about number of available addresses or networks. The joy of IPv6 is the addresses are so wide you can bring back hierarchical addressing. No internal routing chicanery is needed.
If your site has 64 buildings then a /56 lets you assign a /62 to each, with 4x VLANs in each building eg for printers, guest net, phones, lighting, admin, with even a subnet for each business function in the building.
Router Advertisements propagate the subnet information (prefix, dns server, etc.) to clients in the network. Prefix delegation allows downstream routers to request subnets from upstream routers. MDNS lets network devices announce their services to the subnet.
The good riddance part of IPv4 DHCP is the server maintained state. The broadcast-config thing is still there. RADVD is the standard Linux daemon for this.
Not necessarily, there could be a flawed SLAAC implementation where the programmer just hard coded the default address after getting the PD. Or other some such silliness.
Yes it breaks spec. But there's enough devices out there that break the link local configuration spec that I would not be surprised one but if someone pushed out a broken implementation of SLAAC on a commercial product.
Also, remember, NAT is highly discouraged, so you'll (maybe) eat up another subnet if you run something like Minikube on a laptop.
More generally, a big difference in v6 is that you no longer have to plan subnet sizes at all. Whereas previously you'd carefully choose the next available address to minimize address waste, with v6 you can just assign the addresses in whatever way makes sense to you.
I'd love a book that gives me everything i need to know about IPv6. From justifications, to things to know when working with it, implementing it, using it in my local network, etc.
I don't perhaps need or care to learn it at a super low level, but i do want a complete understanding of it for my specific use cases. Applications and home networks, i imagine. For a novice in networks, to be clear.
Thoughts?
For applications programming you'll want to have a feel for the above, IPv4-mapped IPv6 addresses, and review link local again to in particular note how to encode the interface in a socket call (useful for configurationless cluster communication).
Most every other detail of IPv6 changes should only matter to those that write networking stacks or make routers.
For all of the above info I'd recommend just reading the Wikipedia article on IPv6. Most of these are straightforward wrote memorization of best practices or background reasoning things so it's not "read a book" worthy if you're not trying to do this for a living IMO (coming from someone who does networking for a living).
Honestly, if your first thought isn't "oh wow, I would love to learn how to plan out IPv6 networks", it might not be worthwhile.
Or really done the reinvent - there were some interesting ideas especially for folks with lots of link handoffs (ie cell phones driving down a road etc) - can't find the write-up quickly.
But what doesn't make much sense for me is when you're given a subnet many IPv4 address spaces worth addresses on a single network interface on something like a server. Sure you could use that for a VPN, and I did set one up like that, but are there any more use cases? Surely there must be a good explanation why everyone is doing that?