ipv6 performance

54
IPv6 Performance Geoff Huston APNIC Labs November 2015

Upload: apnic

Post on 13-Jan-2017

873 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: IPv6 performance

IPv6 Performance

Geoff Huston APNIC Labs

November 2015

Page 2: IPv6 performance

What are we looking at:

•  How“reliable”areIPv6connections?

•  How“fast”areIPv6connections?

Page 3: IPv6 performance

What are we looking at:

•  How“reliable”areIPv6connections?

•  How“fast”areIPv6connections?

Do all TCP connection attempts succeed?

Is V6 slower than V4?

Page 4: IPv6 performance

The Measurement Technique

•  Embedascriptinanonlinead•  HavethescriptgenerateasetofURLstofetch

•  ExaminethepacketsseenattheservertodeterminereliabilityandRTT

Page 5: IPv6 performance

Measurement Count

Page 6: IPv6 performance

Measurement Count

Yes, that’s 10 M measurements per day!

Page 7: IPv6 performance

Measurement Count Lo

g

Page 8: IPv6 performance

What are we looking at:

•  How“reliable”areIPv6connections?

•  How“fast”areIPv6connections?

Do all TCP connection attempts succeed?

Is V6 slower than V4?

Page 9: IPv6 performance

Outbound SYN

Busted SYN ACK Return path

Connection Failure

What the serv

er sees is a

n

incoming SYN, but n

o

matching inco

ming ACK

server client

Page 10: IPv6 performance

Compare two data sets

•  Thefirstdatasethasbeencollectedacross2011– Teredoand6to4werestillactiveasIPv6mechanisms

– LittleinthewayofotherIPv6services•  Theseconddatasethasbeencollectedacross2015– MissingcomparativeIPv4datafortheperiodSeptember–OctoberL

Page 11: IPv6 performance

2011 - Measuring Failure

Page 12: IPv6 performance

Why is this failure rate

for V6

so incredibly high?

2011 - Relative Connection Failure Rates

Page 13: IPv6 performance

And why is the V4 relative failure rate dropping over time?

What is this spike?

2011 - Relative Connection Failure Rates

Page 14: IPv6 performance

What is going on with IPv4?

Page 15: IPv6 performance

What is going on with IPv4?

ThefailurerateforV4decreasesasthevolumeofexperimentsincreases–whichimpliesthatthenumberof“nakedSYNs”beingsenttotheserversisnotrelatedtothenumberoftestsbeingperformed.AsidefromresidualIPv4failuresintheimagefetchduetodeviceresets,connectiondropouts,etc,thebulkoftherecordedfailureshereisprobablyattributabletoresearchersbotsdoingall-of-addressscanningonport80

Page 16: IPv6 performance

What is going on with IPv4?

Syn attacks?

bot scanning on port 80?

Page 17: IPv6 performance

What about IPv6?

Local Miredo Relay Failures

Why is the base failure rate of all IPv6 connections sitting at 40%? This is amazingly bad!

Page 18: IPv6 performance

V6 Failure Rate by Address Type

All V6 Average Teredo

6 to 4 Unicast

Page 19: IPv6 performance

6to4 Failure is Local Failure

6to4failureappearstoberelatedtotwofactors:

1.  Theclient’ssitehasaprotocol41firewallfilterruleforincomingtraffic(thisispossiblymoreprevalentinAsiaPacthaninEurope)

2.  Load/delay/reliabilityissuesintheserver’schosenoutbound6to4relay(notedinthedatagatheredattheUSserver)

Evenso,the10%to20%connectionfailureratefor6to4isunacceptablyhigh!

Page 20: IPv6 performance

V6 Unicast Failures January–March2012:

110,761successfulV6connectingendpoints6,227failuresThat’safailurerateof5.3%!7clientsusedfe80::linklocaladdresses7clientsusedfc00:/7ULAsourceaddresses2clientsusedfec0::/16deprecatedsitelocaladdresses16clientsused1f02:d9fc::/16Nobodyused3ffe::/16prefixes!

Page 21: IPv6 performance

Data Set 2: Connection Failure in 2015

January–November201524,212,563IPv6endpoints352,919Failurerate(4.1%)

Page 22: IPv6 performance

Daily IPv6 Failures

Page 23: IPv6 performance

Daily IPv6 Failures

RIP Flash!

HTML5 + TLS + Mobile Devices

Page 24: IPv6 performance

6to4

6,634,6606to4endpoints– 27%ofallIPv6used6to4– 9%failureratewithinthesetof6to4connections

This is still very high!

Page 25: IPv6 performance

Daily IPv6 Failures

Page 26: IPv6 performance

Daily IPv6 Failures

•  6to4failureratehasimprovedfrom15%-20%in2011to9%in2015

•  Teredohasallbutdisappeared•  Unicastfailurerateisbetween1.5%and4%in2015– Currentunicastfailurerateis2%

Page 27: IPv6 performance

Origin AS’s with High IPv6 Failure Rates

ASFailureSamplesASNameRateAS13679 99.69%318CentrosCulturalesdeMexico,A.C.,MXAS201986 94.74%133ARPINETArpinetLLC,AMAS5511 90.68%161OPENTRANSITOrangeS.A.,FRAS20880 72.56%962TELECOLUMBUSTeleColumbusAG,DEAS17660 57.06%1,041DRUKNET-ASDrukNetISP,BTAS21107 46.64%7,564BLICNET-ASBlicnetd.o.o.,BAAS4755 40.82%316TATACOMM-ASTATACommunicationsformerlyVSNLisLeadingISP,INAS37992 40.25%159THAMMASAT-BORDER-ASThammasatUniversityinthailand,THAS28580 39.64%1,158CILNETComunicacaoeInformaticaLTDA.,BRAS17412 35.58%163WOOSHWIRELESSNZWooshWireless,NZAS52207 33.62%931TULA-ASJSC"ER-TelecomHolding",RUAS4796 32.61%414BANDUNG-NET-AS-APInstituteofTechnologyBandung,IDAS30036 30.59%17,001MEDIACOM-ENTERPRISE-BUSINESS-MediacomCommunicationsCorp,USAS9329 29.35%184SLTINT-AS-APSriLankaTelecomInternet,LKAS7477 28.10%153TEREDONN-AS-APSkyMeshPtyLtd,AUAS52888 25.79%190UNIVERSIDADEFEDERALDESAOCARLOS,BRAS28343 24.52%681TPATELECOMUNICACOESLTDA,BRAS210 22.27%247WEST-NET-WEST-UtahEducationNetwork,USAS29632 19.25%239NASSIST-ASNetAssistLLC,UAAS20857 18.10%105TRANSIP-ASTransIPB.V.,NL

Page 28: IPv6 performance

Origin AS’s with Zero Failure Rates

AS3223 0.00%3,138VOXILITYVoxilityS.R.L.,ROAS16265 0.00%2,761LEASEWEB-NETWORKLeaseWebNetworkB.V.,NLAS24961 0.00%2,644MYLOC-ASmyLocmanagedITAG,DEAS39832 0.00%1,945NO-OPERAOperaSoftwareASA,NOAS2686 0.00%1,824ATGS-MMD-AS-AT&TGlobalNetworkServices,LLC,USAS33070 0.00%1,633RMH-14-RackspaceHosting,USAS55536 0.00%1,351PSWITCH-HKPACSWITCHGLOBALIPNETWORK,HKAS21191 0.00%1,210ASN-SEVERTTKClosedJointStockCompanyTransTeleCom,RUAS22584 0.00%1,165NTELOS-PCS-NtelosInc.,USAS32780 0.00%1,119HOSTINGSERVICES-INC-HostingServices,Inc.,USAS29854 0.00%1,039WESTHOST-WestHost,Inc.,USAS18144 0.00%974AS-ENECOMEnergiaCommunications,Inc.,JPAS12510 0.00%762SAP_AG_WDFSAPSE,DEAS21837 0.00%757OPERASOFTWARE-OperaSoftwareAmericasLLC,USAS13213 0.00%741UK2NET-ASUK2-Ltd,GBAS9619 0.00%672SSDSonyGlobalSolutionsInc.,JPAS19994 0.00%660RACKSPACE-RackspaceHosting,USAS32934 0.00%654FACEBOOK-Facebook,Inc.,USAS25513 0.00%639ASN-MGTS-USPDOJSMoscowcitytelephonenetwork,RUAS2614 0.00%608ROEDUNETAgentiadeAdminaReteleiNationaledeInformaticaEducatiesiCercetare,RO

Ranked by IPv6 measurement count

Page 29: IPv6 performance

Origin AS’s with Zero Failure Rates

AS3223 0.00%3,138VOXILITYVoxilityS.R.L.,ROAS16265 0.00%2,761LEASEWEB-NETWORKLeaseWebNetworkB.V.,NLAS24961 0.00%2,644MYLOC-ASmyLocmanagedITAG,DEAS39832 0.00%1,945NO-OPERAOperaSoftwareASA,NOAS2686 0.00%1,824ATGS-MMD-AS-AT&TGlobalNetworkServices,LLC,USAS33070 0.00%1,633RMH-14-RackspaceHosting,USAS55536 0.00%1,351PSWITCH-HKPACSWITCHGLOBALIPNETWORK,HKAS21191 0.00%1,210ASN-SEVERTTKClosedJointStockCompanyTransTeleCom,RUAS22584 0.00%1,165NTELOS-PCS-NtelosInc.,USAS32780 0.00%1,119HOSTINGSERVICES-INC-HostingServices,Inc.,USAS29854 0.00%1,039WESTHOST-WestHost,Inc.,USAS18144 0.00%974AS-ENECOMEnergiaCommunications,Inc.,JPAS12510 0.00%762SAP_AG_WDFSAPSE,DEAS21837 0.00%757OPERASOFTWARE-OperaSoftwareAmericasLLC,USAS13213 0.00%741UK2NET-ASUK2-Ltd,GBAS9619 0.00%672SSDSonyGlobalSolutionsInc.,JPAS19994 0.00%660RACKSPACE-RackspaceHosting,USAS32934 0.00%654FACEBOOK-Facebook,Inc.,USAS25513 0.00%639ASN-MGTS-USPDOJSMoscowcitytelephonenetwork,RUAS2614 0.00%608ROEDUNETAgentiadeAdminaReteleiNationaledeInformaticaEducatiesiCercetare,RO

Ranked by IPv6 measurement count

Page 30: IPv6 performance

IPv6 Failures – Q3 2015

279,116failingIPv6addresses143,3576to4addresses118teredoaddresses92fe80::localscopeaddresses709unallocatedaddresses1,358unannouncedaddresses133,482addressesfromunicastallocatedroutedspace102,826unique/64s

Page 31: IPv6 performance

What about IPv4 Connection Failures?

2011:failurerate0.2%

Page 32: IPv6 performance

What about IPv4 Connection Failures?

2011:failurerate0.2%2015: 334,957,192IPv4endpoints 1,197,903ConnectionFailures(0.3%)

Page 33: IPv6 performance

IPv4 Connection Failure

Missing PCAP data

Page 34: IPv6 performance

Comparison

Page 35: IPv6 performance

Comparison: Unicast

Page 36: IPv6 performance

Comparison: Unicast

9x

Page 37: IPv6 performance

It’s still not good!

IPv6UnicastFailurerate:1.8%(steady)IPv4Failurerate:0.2%(andfalling!)

Page 38: IPv6 performance

What are we looking at:

•  How“reliable”areIPv6connections?

•  How“fast”areIPv6connections?

Do all TCP connection attempts succeed?

Is V6 slower than V4?

Page 39: IPv6 performance

Let’s dive into SYNs!

Page 40: IPv6 performance

Why SYNs?

•  EveryTCPsessionstartswithaSYNhandshake

•  Itstypicallyakernelleveloperation,whichmeansthatthereislittleinthewayofapplicationlevelinteractionwiththeSYNexchange

•  Onthedownsidethereisonlyasinglesamplepointpermeasurement

Page 41: IPv6 performance

Generating a comparative RTT profile

•  Foreachsuccessfulconnectioncouplet(IPv4andIPv4)fromthesameendpoint,gatherthepairofRTTmeasurementsfromtheSYN-ACKexchanges•  Usetheserver’sweblogstoassociateacouplet

ofIPv4andIPv6addresses•  UsethepacketdumpstocollectRTT

informationfromtheSYN-ACKExchange•  PlotthedifferenceinRTTinbuckets

Page 42: IPv6 performance

2012 Data

Page 43: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Num

ber of sam

ples (lo

g scale

)

Teredo 6 to 4 Unicast

2012 Data

Page 44: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Num

ber of sam

ples (lo

g scale

)

Unicast

2015 Data – November 2015

Page 45: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Num

ber of sam

ples (lo

g scale

) 2015 Data – November 2015

6 to 4

Page 46: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Num

ber of sam

ples (lo

g scale

) 2015 Data – November 2015

6 to 4 Unicast

Page 47: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Proportio

n of sam

ples

2015 Data CDF (using 10ms resolution)

6 to 4 Unicast

Page 48: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Proportio

n of sam

ples

2015 Data CDF (using 10ms resolution)

6 to 4 Unicast

18% of samples unicast IPv6 is more than 1/100 sec faster than IPv4

24% of samples unicast IPv6 is more than 1/100 sec slower than IPv4

Page 49: IPv6 performance

IPv6 is slower IPv6 is faster

RTT Difference (in fractions of a second)

Proportio

n of sam

ples

2015 Data CDF (using 0.1 ms resolution)

6 to 4 Unicast

Page 50: IPv6 performance

Is IPv6 as “good” as IPv4?

Page 51: IPv6 performance

Is IPv6 as “good” as IPv4?

IsIPv6asfastasIPv4?Basically,yesIPv6isfasterabouthalfofthetimeFor70%ofunicastcases,IPv6iswithin10msRTTofIPv4SotheyperformatmuchthesamerateButthat’sjustforunicastIPv6Theuseof6to4makesthisawholelotworse!

Page 52: IPv6 performance

Is IPv6 as “good” as IPv4?

IsIPv6asrobustasIPv4?IPv4connectionreliabilitycurrentlysitsat0.2%ThebasefailurerateofUnicastV6connectionattemptsat1.8%ofthetotalV6unicastconnectionsisnotbrilliant.6to4isstillterrible!Itcouldbebetter.Itcouldbeawholelotbetter!

Page 53: IPv6 performance

Is IPv6 as “good” as IPv4?

Ifyoucanestablishaconnection,thenIPv4andIPv6appeartohavecomparableRTTmeasurementsacrossmostoftheInternetButtheoddsofestablishingthatconnectionarestillweightedinfavourofIPv4!

Page 54: IPv6 performance

That’s it!

Questions?