SlideShare une entreprise Scribd logo
1  sur  44
IPv6 
Prepared by: 
ydrugalya@gmail.com
Agenda 
• IPv6 features overview 
• IPv6 addressing 
• Integration and co-existing strategies 
• IPv6 application development 
• A Big Picture 
• References
History 
• 1974 Cerf and Kahn developed TCP/IP for 
ARPA. 
• NSF (end of 70-th) 
• 1992 – RFC 1550. 21 response. 7 left. CLNP. 
• 1993. 3 proposals left (Deering, Francis, Katz 
and Ford). SIPP. 
• SIPP  IPv6 (IPv5 – already allocated)
NAT 
192.168.0.100 ->.. -> 74.125.87.99(google.com) 
192.168.0.100 (5043, 80)  
192.168.0.1 / 157.55.1.10 (666, 80)  
74.125.87.99(google.com)
NAT
Why NAT is bad 
• This was a temporary solution from the beginning 
• NAT keep us away from transparent connection 
• NAT violates security and principle of packets 
consistency 
• NAT was blocking development of transparent 
applications 
• Double/triple NAT translation is very ugly thing
Requirements 
• Larger address space 
• Simpler protocol for faster routing processing 
• Better security 
• Better QoS 
• Extensibility 
• Auto configuration 
• Better Multicast and Anycast abilities 
• Better support for mobile devices 
• Coexisting
New Header Format(RFC 2460 )
IPv6 Header Fields 
• Version – always 6 for IPv6 
• Traffic class – similar to ToS in IPv4. Each traffic class 
can be managed differently, ensuring preferential 
treatment for higher-priority traffic on the network. 
Not widely used. 
• Flow label. Experimental. Idea reserve throughput for 
flow between two hosts. Virtual channel. 
• Next header – tells which one from 6 extension 
headers follows 
• HOP Limit – ex TTL. 
• Source/Destination addresses
Comparing IPv4 and IPv6 headers 
• IHL – removed 
• Protocol – removed 
• Removed all fields related to fragmentation 
• TTL replaced by Hop limit field. 
• Header checksum - deprecated (upper level checksum can do it).
Extension Headers*
Extension Headers 
Header Type Purpose 
Hop-By-Hop Optional data that each host must examine(Deprecated) 
Routing Causes packet to visit specific hosts on its way to destination 
Fragment Contains fragment identification, offset flags 
Destination Options Processed only by destination host 
Authentication Sender verification 
Encapsulating Security 
Indicates that the rest of payload is encrypted 
Payload
Stateless and Stateful Address 
Configuration 
• Statefull address configuration 
– DHCP for IPv6 
• Stateless address configuration 
– No DHCP server 
– Automatic link-local address configuration
IPv6 Address format 
RFC 2373 
2001:05c0:1000:000b:0000:0000:0000:9eaf 
 
2001:5c0:1000:b::9eaf 
http://[2620:0:1cfe:face:b00c::3]
IPv6 address types 
- Unicast – address for single interface 
- Global 
- Site-local 
- Link-local 
- Anycast – address of set of interfaces 
- Multicast – scoped address of group of 
interfaces 
RFC 4291
Global Unicast address format 
2620:0:1cfe:face:b00c::7
Site-Local address format 
FEC0::3:260:8FF:FE52:F9D8
Link-local format 
EUI-64(RFC 2373) VS Random number
Multicast address format 
• ff02::1 - all nodes in local segment 
• ff02::2 - all routers in local network segment 
• FF01::2 - node local scope all routers 
• FF02::2 - link-local scop all-routers
IPv4 compatible IPv6 address 
deprecated
IPv4 mapped IPv6 address 
RFC 4038
Integration and co-existing strategies 
• Dual-stack 
• IPv6 over IPv4 tunnels 
• Dedicated data links
Dual-stack
Popular transition technologies 
• Static 6 over 4 tunnels 
• Automatic 6to4 Tunnel. 
– 6to4 
– Teredo 
– ISATAP 
– go6.net 
– SixXS 
IPv6 Transition Technologies
IPv6 over IPv4 tunnels
6to4* 
Idea: 
- Encapsulate IPv6 packet into IPv4 packet 
Example: 
IPv4 address: 16.24.244.69 --> 
2002:1018:f445::1018:f445
Teredo* 
Idea: 
- encapsulate IPv6 into UDP 
- encapsulate UDP port and ipv4 into ipv6 
address 
RFC 4380 . Example 
2001:0:5ef5:79fd:34a0:3750:e0e0:8ed1
ISATAP 
RFC 4214
IPv6 Application development
IPv6 Application development 
IPv6 Guide for Windows Sockets Applications 
Checkv4.exe 
Main idea: make your application dual stack 
- use agnostic data structures 
- change function calls 
- remove hardcoded addresses 
- change UI 
RFC 4038
IPv6 Application development 
Data structures 
Data structures 
sockaddr_in  sockaddr_storage 
Shims: getPort, getSockAddrBytes, getAddrLen, etc. 
int getPort(sockaddr_storage& addr) { 
switch(addr.ss_family) { 
case AF_INET: 
return ntohs ( reinterpret_cast<sockaddr_in*>(&addr)->sin_port ); 
case AF_INET6: 
return ntohs ( reinterpret_cast<sockaddr_in6*>(&addr)->sin6_port ); 
default: 
throw exception; 
}
IPv6 Application development 
Function calls 
#if !defined(IPV6_V6ONLY) 
# define IPV6_V6ONLY 27 
#endif 
setsockopt(sockfd, PPROTO_IPV6, IPV6_V6ONLY, 
(char *)&off, sizeof(off) ); 
gethostbyname  getaddrinfo 
gethostbyaddr getnameinfo
Troubleshooting 
netsh interface ipv6 show address 
netsh interface ipv6 show neighbors 
netsh interface ipv6 delete neighbors 
netsh interface ipv6 show destinationcache 
netsh interface ipv6 delete destinationcache
Troubleshooting
BIG PICTURE
IPv6 deployment status
Necessity vs Inertness
References 
• IPv6 Learning Roadmap 
• IPv6 Guide for Windows Sockets Applications 
• www.ipv6.com 
• Test your IPv6 connectivity 
• Google IPv6 Conference 2008: What will the IPv6 
Internet look like? 
• SixXS - IPv6 Deployment & Tunnel Broker 
• Cool IPv6 stuff 
• icmpv6x
Ipv6
Ipv6
Ipv6
Ipv6
Ipv6
Ipv6

Contenu connexe

Tendances

Tendances (20)

Upcoming internet challenges
Upcoming internet challengesUpcoming internet challenges
Upcoming internet challenges
 
Using PerfDHCP tool to scale DHCP in OpenStack Neutron
Using PerfDHCP tool to scale DHCP in OpenStack NeutronUsing PerfDHCP tool to scale DHCP in OpenStack Neutron
Using PerfDHCP tool to scale DHCP in OpenStack Neutron
 
OARC 26: Scoring the Root Server System
OARC 26: Scoring the Root Server SystemOARC 26: Scoring the Root Server System
OARC 26: Scoring the Root Server System
 
Getting started with IPv6
Getting started with IPv6Getting started with IPv6
Getting started with IPv6
 
Day 20.i pv6 lab
Day 20.i pv6 labDay 20.i pv6 lab
Day 20.i pv6 lab
 
Things I wish I had known about IPv6 before I started
Things I wish I had known about IPv6 before I startedThings I wish I had known about IPv6 before I started
Things I wish I had known about IPv6 before I started
 
Layer-3 BFD Optimization Proposals for Enterprise and Campus Networks
Layer-3 BFD Optimization Proposals for Enterprise and Campus NetworksLayer-3 BFD Optimization Proposals for Enterprise and Campus Networks
Layer-3 BFD Optimization Proposals for Enterprise and Campus Networks
 
IPv6 in cellular networks - Jordi Palet
IPv6 in cellular networks - Jordi PaletIPv6 in cellular networks - Jordi Palet
IPv6 in cellular networks - Jordi Palet
 
IPv6 transition and coexistance - Jordi Palet
IPv6 transition and coexistance - Jordi PaletIPv6 transition and coexistance - Jordi Palet
IPv6 transition and coexistance - Jordi Palet
 
Leveraging IPv6 extension header for traffic engineering, by Eric Vyncke [APN...
Leveraging IPv6 extension header for traffic engineering, by Eric Vyncke [APN...Leveraging IPv6 extension header for traffic engineering, by Eric Vyncke [APN...
Leveraging IPv6 extension header for traffic engineering, by Eric Vyncke [APN...
 
Introduction of ipv6
Introduction of ipv6Introduction of ipv6
Introduction of ipv6
 
IPv6 deployment planning Jordi Palet
IPv6 deployment planning Jordi PaletIPv6 deployment planning Jordi Palet
IPv6 deployment planning Jordi Palet
 
Compiling P4 to XDP, IOVISOR Summit 2017
Compiling P4 to XDP, IOVISOR Summit 2017Compiling P4 to XDP, IOVISOR Summit 2017
Compiling P4 to XDP, IOVISOR Summit 2017
 
Ipv6 introduction - MUM 2011 presentation
Ipv6 introduction - MUM 2011 presentationIpv6 introduction - MUM 2011 presentation
Ipv6 introduction - MUM 2011 presentation
 
6421 b Module-04
6421 b Module-046421 b Module-04
6421 b Module-04
 
Transitioning IPv4 to IPv6
Transitioning IPv4 to IPv6Transitioning IPv4 to IPv6
Transitioning IPv4 to IPv6
 
Introduction to DPDK RIB library
Introduction to DPDK RIB libraryIntroduction to DPDK RIB library
Introduction to DPDK RIB library
 
464XLAT Tutorial
464XLAT Tutorial464XLAT Tutorial
464XLAT Tutorial
 
IPv6 How To Set Up a Linux IPv6 Lan
IPv6 How To Set Up  a Linux IPv6 LanIPv6 How To Set Up  a Linux IPv6 Lan
IPv6 How To Set Up a Linux IPv6 Lan
 
Update on IPv6 activity in CERNET2
Update on IPv6 activity in CERNET2Update on IPv6 activity in CERNET2
Update on IPv6 activity in CERNET2
 

Similaire à Ipv6

How You Will Get Hacked Ten Years from Now
How You Will Get Hacked Ten Years from NowHow You Will Get Hacked Ten Years from Now
How You Will Get Hacked Ten Years from Now
julievreeland
 
Cisco presentation2
Cisco presentation2Cisco presentation2
Cisco presentation2
ehsan nazer
 
6lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp016lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp01
mrmr2010i
 
2012 11-09 facex - i pv6 transition planning-
2012 11-09 facex - i pv6 transition planning-2012 11-09 facex - i pv6 transition planning-
2012 11-09 facex - i pv6 transition planning-
Eduardo Coelho
 

Similaire à Ipv6 (20)

Tutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoTutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demo
 
IPv4aaS tutorial and hands-on
IPv4aaS tutorial and hands-onIPv4aaS tutorial and hands-on
IPv4aaS tutorial and hands-on
 
APNIC Update
APNIC Update APNIC Update
APNIC Update
 
Robert Raszuk - Technologies for IPv4/IPv6 coexistance
Robert Raszuk - Technologies for IPv4/IPv6 coexistanceRobert Raszuk - Technologies for IPv4/IPv6 coexistance
Robert Raszuk - Technologies for IPv4/IPv6 coexistance
 
How You Will Get Hacked Ten Years from Now
How You Will Get Hacked Ten Years from NowHow You Will Get Hacked Ten Years from Now
How You Will Get Hacked Ten Years from Now
 
IPv6 on the Interop Network
IPv6 on the Interop NetworkIPv6 on the Interop Network
IPv6 on the Interop Network
 
Cisco presentation2
Cisco presentation2Cisco presentation2
Cisco presentation2
 
Cisco Connect Montreal 2017 - Segment Routing - Technology Deep-dive and Adva...
Cisco Connect Montreal 2017 - Segment Routing - Technology Deep-dive and Adva...Cisco Connect Montreal 2017 - Segment Routing - Technology Deep-dive and Adva...
Cisco Connect Montreal 2017 - Segment Routing - Technology Deep-dive and Adva...
 
Apnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshopApnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshop
 
IPv6_Quick_Start_Guide
IPv6_Quick_Start_GuideIPv6_Quick_Start_Guide
IPv6_Quick_Start_Guide
 
L6 6 lowpan
L6 6 lowpanL6 6 lowpan
L6 6 lowpan
 
4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet
4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet
4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet
 
IPv6 Security - Workshop mit Live Demo
IPv6 Security - Workshop mit Live DemoIPv6 Security - Workshop mit Live Demo
IPv6 Security - Workshop mit Live Demo
 
Rapid IPv6 Deployment for ISP Networks
Rapid IPv6 Deployment for ISP NetworksRapid IPv6 Deployment for ISP Networks
Rapid IPv6 Deployment for ISP Networks
 
6lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp016lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp01
 
Fedv6tf-IPv6-new-friends
Fedv6tf-IPv6-new-friendsFedv6tf-IPv6-new-friends
Fedv6tf-IPv6-new-friends
 
Is IPv6 Security Still an Afterthought?
Is IPv6 Security Still an Afterthought?Is IPv6 Security Still an Afterthought?
Is IPv6 Security Still an Afterthought?
 
IPv6
IPv6IPv6
IPv6
 
2012 11-09 facex - i pv6 transition planning-
2012 11-09 facex - i pv6 transition planning-2012 11-09 facex - i pv6 transition planning-
2012 11-09 facex - i pv6 transition planning-
 
Improved Applications with IPv6: an overview
Improved Applications with IPv6: an overviewImproved Applications with IPv6: an overview
Improved Applications with IPv6: an overview
 

Dernier

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Dernier (20)

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

Ipv6

  • 1. IPv6 Prepared by: ydrugalya@gmail.com
  • 2. Agenda • IPv6 features overview • IPv6 addressing • Integration and co-existing strategies • IPv6 application development • A Big Picture • References
  • 3. History • 1974 Cerf and Kahn developed TCP/IP for ARPA. • NSF (end of 70-th) • 1992 – RFC 1550. 21 response. 7 left. CLNP. • 1993. 3 proposals left (Deering, Francis, Katz and Ford). SIPP. • SIPP  IPv6 (IPv5 – already allocated)
  • 4. NAT 192.168.0.100 ->.. -> 74.125.87.99(google.com) 192.168.0.100 (5043, 80)  192.168.0.1 / 157.55.1.10 (666, 80)  74.125.87.99(google.com)
  • 5. NAT
  • 6. Why NAT is bad • This was a temporary solution from the beginning • NAT keep us away from transparent connection • NAT violates security and principle of packets consistency • NAT was blocking development of transparent applications • Double/triple NAT translation is very ugly thing
  • 7. Requirements • Larger address space • Simpler protocol for faster routing processing • Better security • Better QoS • Extensibility • Auto configuration • Better Multicast and Anycast abilities • Better support for mobile devices • Coexisting
  • 9. IPv6 Header Fields • Version – always 6 for IPv6 • Traffic class – similar to ToS in IPv4. Each traffic class can be managed differently, ensuring preferential treatment for higher-priority traffic on the network. Not widely used. • Flow label. Experimental. Idea reserve throughput for flow between two hosts. Virtual channel. • Next header – tells which one from 6 extension headers follows • HOP Limit – ex TTL. • Source/Destination addresses
  • 10. Comparing IPv4 and IPv6 headers • IHL – removed • Protocol – removed • Removed all fields related to fragmentation • TTL replaced by Hop limit field. • Header checksum - deprecated (upper level checksum can do it).
  • 12. Extension Headers Header Type Purpose Hop-By-Hop Optional data that each host must examine(Deprecated) Routing Causes packet to visit specific hosts on its way to destination Fragment Contains fragment identification, offset flags Destination Options Processed only by destination host Authentication Sender verification Encapsulating Security Indicates that the rest of payload is encrypted Payload
  • 13. Stateless and Stateful Address Configuration • Statefull address configuration – DHCP for IPv6 • Stateless address configuration – No DHCP server – Automatic link-local address configuration
  • 14. IPv6 Address format RFC 2373 2001:05c0:1000:000b:0000:0000:0000:9eaf  2001:5c0:1000:b::9eaf http://[2620:0:1cfe:face:b00c::3]
  • 15. IPv6 address types - Unicast – address for single interface - Global - Site-local - Link-local - Anycast – address of set of interfaces - Multicast – scoped address of group of interfaces RFC 4291
  • 16. Global Unicast address format 2620:0:1cfe:face:b00c::7
  • 17. Site-Local address format FEC0::3:260:8FF:FE52:F9D8
  • 18. Link-local format EUI-64(RFC 2373) VS Random number
  • 19. Multicast address format • ff02::1 - all nodes in local segment • ff02::2 - all routers in local network segment • FF01::2 - node local scope all routers • FF02::2 - link-local scop all-routers
  • 20. IPv4 compatible IPv6 address deprecated
  • 21. IPv4 mapped IPv6 address RFC 4038
  • 22. Integration and co-existing strategies • Dual-stack • IPv6 over IPv4 tunnels • Dedicated data links
  • 24. Popular transition technologies • Static 6 over 4 tunnels • Automatic 6to4 Tunnel. – 6to4 – Teredo – ISATAP – go6.net – SixXS IPv6 Transition Technologies
  • 25. IPv6 over IPv4 tunnels
  • 26. 6to4* Idea: - Encapsulate IPv6 packet into IPv4 packet Example: IPv4 address: 16.24.244.69 --> 2002:1018:f445::1018:f445
  • 27. Teredo* Idea: - encapsulate IPv6 into UDP - encapsulate UDP port and ipv4 into ipv6 address RFC 4380 . Example 2001:0:5ef5:79fd:34a0:3750:e0e0:8ed1
  • 30. IPv6 Application development IPv6 Guide for Windows Sockets Applications Checkv4.exe Main idea: make your application dual stack - use agnostic data structures - change function calls - remove hardcoded addresses - change UI RFC 4038
  • 31. IPv6 Application development Data structures Data structures sockaddr_in  sockaddr_storage Shims: getPort, getSockAddrBytes, getAddrLen, etc. int getPort(sockaddr_storage& addr) { switch(addr.ss_family) { case AF_INET: return ntohs ( reinterpret_cast<sockaddr_in*>(&addr)->sin_port ); case AF_INET6: return ntohs ( reinterpret_cast<sockaddr_in6*>(&addr)->sin6_port ); default: throw exception; }
  • 32. IPv6 Application development Function calls #if !defined(IPV6_V6ONLY) # define IPV6_V6ONLY 27 #endif setsockopt(sockfd, PPROTO_IPV6, IPV6_V6ONLY, (char *)&off, sizeof(off) ); gethostbyname  getaddrinfo gethostbyaddr getnameinfo
  • 33. Troubleshooting netsh interface ipv6 show address netsh interface ipv6 show neighbors netsh interface ipv6 delete neighbors netsh interface ipv6 show destinationcache netsh interface ipv6 delete destinationcache
  • 38. References • IPv6 Learning Roadmap • IPv6 Guide for Windows Sockets Applications • www.ipv6.com • Test your IPv6 connectivity • Google IPv6 Conference 2008: What will the IPv6 Internet look like? • SixXS - IPv6 Deployment & Tunnel Broker • Cool IPv6 stuff • icmpv6x

Notes de l'éditeur

  1. Picture taken from: http://www.twcableuntangled.com/2011/02/ipv4-ipv6-and-world-ipv6-day-the-asteroid-is-coming-but-well-blow-it-up-together/
  2. History RFC 1550. 21 PROPOSAL. INTERESTING proposal CLNP – 160 BIT ADDRESS. 7 LEFT 3 LEFT
  3. 48-bit global routing prefix 16-bit subnet id
  4. Higher 10 bits of first two 2 bytes used to identify message purpose 16 bits of the subnet id field are available to the network administrator to define subnets within the given network 64 bit is automatically generated based on MAC, randomly generated or assigned by DHCPv6 Used to restrict communication in specific domain
  5. The 54 zeroes that follow make the total network prefix the same for all link-local addresses, rendering them non-routable Used in in the neighbor discover protocol and stateless auto configuration process Nodes on the same link can communicate each with other without router. Router does not forward packet with link-local addresses
  6. Dual stack host serving IPV4 and ipv6 clients Receiving datalink looks at Ethernet type field and pass packet to the appropriate IP module The IPv4 client calls gethostbyname and finds an A record for the server (Fig- ure 9.5). The server host will have both an A record and a AAAA record, since it supports both protocols but the lPv4 client asks for only an A record.