https://pansift.com/blog/is-ipv6-faster-than-ipv4/ Support Work From Anywhere with instant remote troubleshooting for you, your team, and your family. * How * Design * Pricing * macOS * Sign Up * Login * Live Demo Is IPv6 Faster Than IPv4? * Or is IPv4 slower than IPv6 :) TL;DR: IPv6 is faster than IPv4 ~39% of the time (locally anyway!).To answer this question we decided to look at anonymized data we had collected from a range of monitoring agents over a 30 day period. For simplicity, the data used only focused on the client's RTT (Round Trip Time) to their default gateway. TL;DR: IPv6 is faster than IPv4 ~39% of the time (locally anyway!). To answer this question we decided to look at anonymized data we had collected from a range of monitoring agents over a 30 day period. For simplicity, the data used only focused on the client's RTT (Round Trip Time) to their default gateway. This sub-path does not cover a full round trip to Internet based assets, it's just the first leg of a journey (often over Wi-Fi), which admittedly can suffer extreme variability. There are many nuances that may affect our initial results, including but not limited to, size of data set, differences in device, OS (Operating System) level, the medium, protocol, CoS type, etc. It is, however, precisely because of the complexity involved that we decided to look at one simple and comparable metric! We would love for you to leave a comment below if you have any ideas or suggestions regarding our data and results! The Approach To answer this speed question we began by using our Wi-Fi assurance and remote troubleshooting tool called PanSift (see a live demo). We started with 2.4 million network related gateway data points. These measurements were taken every 30 seconds from 16 randomly selected macOS agents (using our maximum data retention period of 30 days). Subsequently, the data points used were from agents when fully online with dualstack connectivity (i.e. can reach Internet based lighthouses), rather than just being locally_connected. This makes any comparison fairer such that there's the potential for ongoing traffic traversing connections and gateways. Additionally, it should be noted that PanSift does not normalize data and retains full fidelity metrics. This allows for fine grained analysis and even retrospective troubleshooting. After filtering data for agents with concurrent IPv4 and IPv6 Internet reachability, we were then left with 342,980 valid data points. Under The Hood The PanSift agent sends 3 ICMP echo_requests every 30 seconds using both IPv4 (ping) and IPv6 (ping6) while also explicitly setting the COS (Class of Service) to Best Effort . The options used with ping and ping6 (just to be explicit) are: * -c 3 = to send a count of 3 requests and then stop * -i 1 = explicitly wait 1 second between requests (default) * -k BE = Best Effort normal class (default) Note: We explicitly use and mention the above defaults as placeholders and reminders to ourselves for potential further tweaking. We also used a parent process timeout of 5 seconds for ICMP to the gateway. IPv4 requests went first, then IPv6, and we recorded the average latency of the 3 requests as the resulting data point (using a float value in milliseconds). With queries to our Influx backend (a Time Series Database), the data spanned macOS versions 10.11.x, 10.14.x, 10.15.x, 11.6.x, and 12.x with physical models ranging from iMAC to Mini but mostly Macbook Airs and MacBook Pros. We then used Influx's flux scripting language to do some simple comparisons on whether IPv4 or IPv6 was faster. Note: To simplify, we also rounded the (float) values to (integer) whole numbers so we could quickly and more fairly compare "ties" between IPv4 and IPv6. Results Response # IPv4 # IPv6 # Tied / N Type Faster Faster Same (sample Summary size) WLAN + 107,881 134,401 100,698 342,980 IPv6 Wired wins! Percentages 31.45% 39.18% 29.35% 100% IPv6 won ! Table 1.0 - IPv4 vs. IPv6 Total Latency Results [wAAACH5BAE] Image 1.0 - IPv4 Total Latency Results [wAAACH5BAE] Image 2.0 - IPv6 Total Latency Results Response # IPv4 # IPv6 # Tied / N Type Faster Faster Same (sample Summary size) WLAN 97,638 127,335 76,731 301,704 IPv6 (Wi-Fi) wins! Percentages 32.36% 42.20% 25.43% 100% IPv6 won ! Table 2.0 - IPv4 vs. IPv6 Latency By WLAN # IPv4 # IPv6 # Tied / N Response Type Faster Faster Same (sample Summary size) Not WLAN 10,243 7066 23,967 41,276 Tied / (Wired*) Same Percentages 24.81% 17.11% 58.06% 100% Tied / Same Table 3.0 - IPv4 vs. IPv6 Latency By Wired* * We require a wider data set as most agent data was from Wi-Fi / WLAN connected hosts. The types of wired hardware recorded were primarily, "USB LAN" and "USB-C LAN" types, some of which may have been synching at lower than gigabit (1000 Mbps) speeds. As such, we need to also start to grab the media output, however both IPv4 and IPv6 are traversing the same media! IPv4 and IPv6; Relevant Differences? What is IPv6 connectivity anyway? We've previously done a primer on IPv6 connectivity and troubleshooting here, so let's take a brief look at some of the fundamental differences between IPv4 and IPv6 in relation to our data. ICMPv4 and v6 The ICMPv6 format is described in RFC4443 whereas ICMP is described in RFC792, yet apart from the difference in Extension Headers (which are not relevant here), one wonders about why IPv6 might be faster than IPv4 (perhaps related to the gateway stack and utilization?). Next Steps? We now need to expand the above analysis to see if: * [*] there's any correlation with the MAC addresses (and thus the vendor OUIs) which show what type/make of device is acting as the gateway? * [*] perhaps this is related to certain client device types, operating system versions, or patch levels? * [*] a larger sample set of dualstack devices will result in the same outcomes Feedback Let us know what you think below, good or bad... and if you have suggestions or ideas as to why IPv6 (ICMPv6) seems faster over Wi-Fi... what are we missing? P.S. PanSift Tip Work From Anywhere requires reliable connectivity for all voice, video, and data. Inevitable issues cause individuals and teams to lose time and productivity while missing out on opportunities. Whether at home, in a coworking space, or in the office (and irrespective of network owner), forward thinking teams embrace smarter tools to save time and money. See how PanSift provides instant troubleshooting irrespective of location. How It Works Benefits 2 Free Agents ipv6 latency macos userops assurance remote_working work_from_anywhere End user experience monitoring tools for your team or tribe! macOS 2 x free macOS agents Live Demo No credit card, no registration, live demo! Quick Links * Blog * Pricing * Contact * Training About * Team * Research Topics * Defensible Ltd * CRO: 610070, TAX / VAT: IE 3490731JH [wAAACH5BAEAAAAALAA] Please enable JavaScript to view the comments powered by Disqus.