Are there any practical speed/latency gains from using IPv6, or is it just to make more room in the wild wild web?

link|improve this question

1  
there's other advantages though, like rendering NAT practically obsolete, and allowing pretty much anyone to have a static ip address – Journeyman Geek Aug 28 '10 at 1:36
Well I dunno if NAT is "obsolete", maybe unnecessary, but I could see benefits in having your network secured off from the rest of the world save for some basic entry points. Also I think most anyone who wants a static IP currently can have one, ISPs just find it easier to assign them dynamically. You still end up with the same amount of IPs given out. – Bob Aug 28 '10 at 17:49
@Bob Any real security (obscurity does not count) you got from NAT can be done in IPv6 with a stateful firewall. – Azendale Jan 1 at 4:08
That argument sounds a lot like "If you have a firewall you don't need a router to protect you online"; in theory it sounds good, but in practice... Well, I imagine we'll all find out soon ; ). – Bob Jan 2 at 3:44
feedback

4 Answers

up vote 11 down vote accepted

Practical impact? Not really. The effect is pretty small. Where you might run into it is in high latency links (think satellite) where the MTU (maximum transfer unit) is small, which magnifies the impact of the larger overhead IPv6 requires. That's an edge case. The other area where you'll see impacts is when you're doing 6 to 4 translations in the network path, as that always takes some time. But if you had a pure v6 path to that other v6 host such latencies won't be an issue.

In these days of TCP Offload Engines coming built in to more and more network stacks the impact is even less likely to be noticed. If any. In fact, it may even be faster in those cases.


Why is that larger header not as much of a factor as you think? That's because the designers of v6 took some of the lessons of v4 and built things better. Most importantly for cross-internet communications the address fields are handled much more efficiently in routers than in v4, which improves speed of v6 packets through routers as compared to their v4 cousins.

When it comes to same subnet communications where router tables aren't a concern, each packet requires less raw computation. There is one less checksum to validate (Ethernet checksum, no IP checksum for v6, but TCP/UDP checksum is still required) which saves small amounts of time. And on special networks, the ability to have VERY large packets can further save processing.

link|improve this answer
Maybe the word latency confuses what I meant, I was just wondering if using ipv6-ipv6 would be faster than ipv4-ipv4 in a noticeable way. Great info though, thanks! – Bob Aug 27 '10 at 23:45
feedback

You might see performance improvements with IPv6 if there is a slow router between you and your destination which would have fragmented IPv4 packets along that path. With IPv6, routers will no longer fragment packets for you. (the responsibility has been delegated to end nodes.)

Of course, this is an edge case. There is no reason to believe IPv6 will perform better than IPv4 in the general case.

Also, router vendors may also have optimized their IPv4 data paths more than their IPv6 data paths. So until IPv6 routers have equivalent optimizations, IPv6 may be slower. (For example, some routers may do IPv4 routing in hardware, but IPv6 in software. High-speed performance tests would have to be done to identify this.)

So you have to weigh the chances that there is a router that isn't optimized for IPv6 between you and your destination with the chances that there is a router doing fragmentation of IPv4 packets between you and your destination. ;-)

link|improve this answer
feedback

No, there would be no speed gains to speak of, although routing tables are certainly made simpler.

To say that IPv6 "just" makes more room on the net is like saying the Milky Way Galaxy "just" makes more room for dust grains. IPv6 essentially makes it so that it's literally impossible to run out of IP addresses. Even if we were to carpet the entire surface of the earth with CPUs, each with its own IP address, we'd still come nowhere near IP exhaustion. The number of IP addresses in v6 is totally incomprehensible.

link|improve this answer
Can I quote you on that? I'd like to bring it up when every toaster, refrigerator, oven, microwave, pencil sharpener, car, tractor, house, and human being has their own IP and we're looking to expand via IPv8. :P – Aeo Feb 10 '11 at 18:54
You sure can. If you wanted to, you could assign 2000 IPv6 addresses to every square meter of the disc of our galaxy. There are 2^128 possible IP addresses in this scheme, or over 3x10^38. This is more than a billion billion times the total number of IPv4 addresses. You could even assign IPs to every single component of every single household item ever made in the entire history of humanity, until the end of humanity itself. – Ernie Dunbar Feb 10 '11 at 20:25
But it is essentially just to add more IP's? ; ) That is a lot more than I imagined v6 adding, and I thought it added quite a bit. Still, the adage is every time you give someone a mile of rope they realize they needed ten, with double the weight capacity. IP's on a molecular level with nano-tech could eat them up, who knows. (Then again I suppose you could nat that to your local organism IP) – Bob Feb 11 '11 at 13:50
Oh don't worry. Before the end of this year, the whole world will see the value of IPv6. In spades. And on the front page of every newspaper. – Ernie Dunbar Feb 11 '11 at 16:44
Bob: There are a number of other advantages to IPv6. Some of them have been backported to IPv4, but often not quite as effective. The main driving force currently is v4 address exhaustion though. Check wikipedia: en.wikipedia.org/wiki/IPv6#Comparison_to_IPv4 – Martijn Heemels Jul 14 '11 at 9:42
feedback

OOps! I was answering another question... Is it useful to run IPv6 at Home there

When you run a server from home.... running IPv6 makes it easier... no need for static NAT translation as long as double NAT or DS-Lite is not used to connect your IPv4 host because static NAT translation will no more be possible... So ONLY IPv6 will allow you to run a Server at home...

Now IPv6 Faster and Safer?

Not at long as we are going to use transition tools doing some tunneling of ipv6 in ipv4 for instance.... http://www.fastlaneus.com/blog/2011/08/28/people-say-that-ipv6-is-safer-and-faster-than-ipv4-the-reality-can-be-very-different-why/

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.