r/ipv6•
HumanToaster

I keep hearing IPv6 reduces the size of routing tables by letting the ISPs aggregate their customers prefixes. How does this differ from route summarization in IPv4?

Question / Need Help

I keep hearing it as an advantage over IPv4, but as far as I'm aware, there's the same functionality in most IPv4 capable routers in the form of summarization. I've read a ton of blogs mentioning this point, but on one has as of yet explained how it differs from the IPv4 equivalent.

edit: thanks for the responses everyone! Hawk7000 really hit the nail with "I think it's not so much a theoretical difference but a practical one.".

Posted Jun 7, 2021, 8:25 PM UTC · edited

1126
Kilobyte22•

The main reason is the incredible amount of fragmentation in IPv4. It is unlikely that any customer or ISP has multiple prefixes with V6, but it is the norm with v4 (especially for ISPs)

22
profmonocle•

It is unlikely that any customer or ISP has multiple prefixes with V6, but it is the norm with v4 (especially for ISPs)

Some do, but I think it's more due to different blocks being for different purposes (perhaps controlled by different organizational units) than due to exhaustion issues. I.E. Google has 2607:f8b0::/32 for their own infrastructure, but uses 2600:1900::/28 for Google Cloud customers (so far only for load balancers - still no IPv6 to VMs :-/ )

I've also noticed Comcast uses a different prefix for customer allocations (2601::/20) than on their routers. (2001:558::/29)

7
pdp10Internetwork Engineer (former SP)•

The three biggest clouds all gave up IPv6 in their mad rush to secure marketshare.

AWS even heavily regressed from their original IPv6 support, which was pretty good for the time. When I started using EC2 in 2010, AWS Elastic Load Balancers were dual-stacked by default, and that was actually rather impressive. At some point they stopped making them dual-stacked by default -- maybe 2011 or 2012.

But when EC2 implemented VPCs, then later forced all new accounts to use VPCs, things went downhill. The ELB available to VPC users didn't support IPv6 at all, under any circumstances. The irony is that VPC was forced on all new accounts because without segregated VPC networks, EC2 ran out of RFC 1918 address space.

The three major clouds have been slowly adding back in the IPv6 features since then. They honestly would have saved themselves a lot of time and trouble if they'd embraced IPv6 from the start.

10
nmeyerhans•

(Disclosure: I work for AWS, but don't speak for them)

AWS even heavily regressed from their original IPv6 support, which was pretty good for the time. When I started using EC2 in 2010, AWS Elastic Load Balancers were dual-stacked by default, and that was actually rather impressive. At some point they stopped making them dual-stacked by default -- maybe 2011 or 2012.

I worked on the EC2 network back when the original dual-stack ELB was a thing. The technology that made that thing work was not scalable, and IPv4 address inefficiency was only a small part of it. By moving away from that network technology to VPC, AWS was able to provide customers with features that they needed, while simultaneously laying the groundwork for proper IPv6 support. While v6 is not as universally supported across AWS as it eventually could be, the EC2 IPv6 experience is quite a bit more advanced than it was back in the 2011 era, and the underlying technology is capable of extending v6 support further than would have been possible in the EC2 Classic network.

Here's some documentation on how IPv6 works today within VPC networks and with load balancers in AWS:

https://docs.aws.amazon.com/vpc/latest/userguide/get-started-ipv6.html

https://aws.amazon.com/premiumsupport/knowledge-center/elb-configure-with-ipv6/

6
pdp10Internetwork Engineer (former SP)•

I appreciate the first-hand insight. We weren't negatively affected by the changes at the time, but I still see it as loss.

By moving away from that network technology to VPC, AWS was able to provide customers with features that they needed, while simultaneously laying the groundwork for proper IPv6 support.

But let's be honest: that translates to "VPCs provide more support for lift-and-shift customers, while being a very large regression for anyone serving over IPv6".

EC2 has changed a lot over the years. Very few people know how unfriendly original EC2 was to lifting-and-shifting enterprise workloads into it. I guess Amazon just gave up trying to get most new customers to rearchitect anything, because it's clear now that that's not what they want to do. They want to treat AWS like an outsourced datacenter, but with a more well-defined API and no hardware management.

1
Kilobyte22•

There is a provider (forgot which, can see if I find them again if there is interest) who actually gives you v6 only (v4 costs extra) but they give you a TLS Proxy which uses SNI (which is sent unencrypted) to forward traffic to the correct box. So if you set the correct A record and tell them your domain, you can still connect using v4. The encryption is also still terminated on your server, so they can't decrypt any traffic. For ssh they have a proxy where every customer just gets a different port

3
[deleted]•

[deleted]

3
nmeyerhans•

It will be interesting to see how this proxy solution holds up when Encrypted Client Hello becomes widely deployed.

2
innocuous-user•

When you receive an IPv6 allocation from one of the RIRs, the address space immediately following yours is also reserved for your future use in case you need to expand. For instance if Arin allocates you a /48, they actually reserve /36 for you.

With IPv4 this is not possible, as there simply isn't enough address space to leave large blocks reserved for future use, so if you need more address space in future you're likely to get a completely different block.

Similarly while large blocks are typically allocated to each RIR, IPv4 resale has caused many blocks to move around different regions.

5
hawk7000•

I think it's not so much a theoretical difference but a practical one.

IPv4 address allocations are massively fragmented and can't practically be defragmented as there is no way to give each entity bigger contiguous address space to match their needs. And without contiguous address space, they will need however many route table entries that cannot be aggregated/summarized.

​

Now, how big of a problem the size of the IPv4 routing table actually is can of course be discussed as well... but I believe the above is what your question boils down to.

14
pdp10Internetwork Engineer (former SP)•

there is no way to give each entity bigger contiguous address space to match their needs.

Speaking hypothetically, you could defrag it like a hard drive. But the investment of labor and bugfixing to do that would be immense.

On bugfixing: I'm looking forward to the way IPv6 causes everyone to rethink their static IP ACL policies.

There are some organizations who've had their Provider Allocated IPv4 addresses hardcoded into various outbound and inbound ACLs by their partners or customers, and now find it difficult to change providers. Strangely, their rates keep getting increased....

7
farnz•

For a practical look at this, look up your favourite ISP's ASN and feed it into bgp.tools - for example, Comcast USA originates 567 IPv4 prefixes, and 6 IPv6 prefixes.

Not all ASNs are that obviously IPv6 biased - for example Facebook's corporate ASN (not their main ASN, the one they use for their offices and the like) originates 10 IPv4 prefixes and 11 IPv6 prefixes. However, when you look at the prefixes, there are 2 non-overlapping IPv4 prefixes, and 1 IPv6 prefix, and the remaining 8 IPv4 and 10 IPv6 prefixes are used for traffic engineering.

You can do similar analyses for any network whose ASN you can find - for example, the Cloudflare CDN that's commonly used to speed up websites by doing as much traffic as possible via local caches has 957 IPv4 prefixes advertised, and 860 IPv6 prefixes. That's almost certainly because they're doing huge amounts of traffic engineering to keep you coming to the "local" Cloudflare network, so need lots of adverts to avoid traffic entering Cloudflare and then being transported on Cloudflare's network instead of yours.

3
beersykins•

Realistically just the opportunity for larger, more contiguous chunks. Route table a little reduced in comparison to an org say who bought a few separate/disparate /24 blocks at different times and aren’t summarized. Given the massive volume of addressing and general availability to buy enormous blocks inexpensively, it’s a lot easier to just get a fresh contiguous allocation out of the v6 pool.

Otherwise it’s all conceptually the same.

5
gerdesj•

An ISP could be allocated say a /32: 2001:4040::/32 - that refers to them and a customer base of 48 - 32 = 16, ie 2^16 ~= 65500 customers. When the customers exceeds 65K, get another prefix or get a smaller one with more space in it.

A customer could be given /48: 2001:4040:1234::/48 with a /112 for the P2P link. Each customer has enough space for 256 sites with 256 /64 VLANs.

If an ISP mostly deals with residential and small business then /56 might be better. You get 16M of those out of a /32. You can of course play around with prefixes to get the best mix for the use case.

The point is that IPv6 lends itself to route aggregation better because the address space is huge and its built in.

Where it all falls down and this will get worse, is multi-link internet connections. If you have say four internet connections for your office, how do you get it all to hang together? With IPv4 you NAT anyway so crack on. With IPv6 you can do NAT prefix translation - hooray! Your other option is PI ie get your own allocation from the RIR and then get your ISPs to route it. That costs quite a lot and of course adds fragmentation to the global routing tables.

4
basondole•

It’s actually recommended to use /127 or /126 on P2P links even though you should assign a /64 for each P2P. One of the reason is to remove a security risk; neighbor exhaustion attack

3
LSD13G00D4U•

Just to remind everyone that splitting up address space is also used for inbound traffic engineering. When you need to balance your inbound traffic across several links and providers and BGP attribute manipulations are not enough. Sometimes we are forced to use longer prefix lengths on specific links to force traffic into this link.

It should not happen a lot, but it does happen.

1