Beruflich Dokumente
Kultur Dokumente
IPv6:
The Protocol
Tim Martin
@bckcntryskr
#2020
Agenda
• Why IPv6, Why Now?
• IPv6 Addresses & Headers
• IPv6 Address Assignment
• IPv6 Link Operations
• IPv6 Host Address Review
• Conclusion
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
What IPv6 Can Do For You – Starting With Why
• Provide for much larger address space - IoT & growth
• Reduce the requirement for readdressing - M&A
• Reduce reliance on NAT - complexities & logging
• Better geolocation addressing - business analytics
• Knowledge of deployed technologies - assessment
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Agenda
• Why IPv6, Why Now?
• IPv6 Addresses & Headers
• IPv6 Address Assignment
• IPv6 Link Operations
• IPv6 Host Address Review
• Conclusion
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
IPv6 Node Types
• Node: Any device that implements an IPv6 protocol stack
• Host: A device with one or more interfaces participating in IPv6 network
• Router: A device that forwards packets and provides provisioning services
Link
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
IPv6 Addressing
IPv6 Address Family
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
IPv6 Unicast Address Types
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Global Address Assignment
• Provider Allocated (PA)
• From your ISP, single homed PA PI
• /48 - /60 2000::/3 2000::/3
IANA
• Provider Independent (PI)
• Multi home, Multi provider /12
Registries /12
RIR
• /32 - /48
/32
• Local Internet Registry (LIR) ISP Org
/32 /48
• Regional registry member
• Acquire & manage space
Subordinate /48
• /29 - /48 Entity
/48
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Explaining BIG Numbers With Math
• The standard LAN size has been set at a /64
• 18,446,744,073,709,600,000 IPv6 addresses
18,446,744,073,709,600,000
/ 315,360,000,000,000
Source: ©fotofabrika
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
IPv6 over Ethernet
• IPv6 has a specific Ether type id
• IPv6 relies heavily on Multicast
Destination Source
Ethernet Ethernet 0x0800 IPv4 Header and Payload
Address Address
Destination Source
Ethernet Ethernet 0x86DD IPv6 Header and Payload
Address Address
33 33 xx xx xx xx
0011 00UG 0 = Universal/unique
1 = Local/not unique
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Extension Headers (~ Layer 3.5)
Extension Header Type
• EH are daisy chained, processed in order Hop-by-Hop Options 0
Destination Options 60
• Length is variable, end on 64-bit boundary
Routing Header 43
• EHs have a Next Header field Fragment Header 44
Authentication Header 51
• All EHs must be in the initial fragment ESP Header 50
IPv6 Transport Destination Options 60
Data Mobility Header 135
Header Header
Experimental 253,254
IPv6 Extension Transport No Next Header 59
Data
Header Header Header
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
ICMPv6 Messages
• Neighbor or router discovery (133-137) • Destination Unreachable(1)
• Multicast Listener Discovery (130-132, 143) • Packet Too Big (2)
• Diagnostics using Ping, Traceroute (128, 129) • Time Exceeded (3)
• Parameter Problem (4)
IPv6 NH = 58
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Path MTU Discovery
Next Header Reserved Fragment Offset Res M
Identification
Source Destination
Link
MTU 1500 MTU 1400 MTU 1280
MTU 1500
Packet, MTU=1500
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
IPv6 Interface id Assignment
Similar to IPv4 New in IPv6
00 90 27 17 fc 0f
ff fe
00 90 27 ff fe 17 fc 0f
1 = Universal/unique
0000 00U0 U=
0 = Local/not unique
U bit must
be flipped
02 90 27 ff fe 17 fc 0f
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
IPv6 Privacy Extensions (RFC 4941)
• Generated on unique 802 using MD5, then stored for next iteration
• Enabled by default in Windows, Android, iOS, Mac OS/X, Linux
• Temporary or Ephemeral addresses for client application (web browser)
• RFC 7217
• Generate IID’s that are Stable/Constant for Each Network Interface
• IID’s Change As Hosts Move From One Network to Another
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
DHCPv6
• Source – fe80::1234, Destination - ff02::1:2 SOLICIT (any servers)
• Client UDP 546, Server UDP 547 ADVERTISE (want this address)
• DUID – Different from v4, used to identify clients REQUEST (I want that address)
DHCPv6 Relay
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
IPv6 Multicast Address (RFC 4291)
• Prefix ff00::/8
• Changes based on flag settings
• Typically the last 32 bits of host’s unicast address
Flags Scope
(S, G)
IPv6 Source fe80::a
IPv6 Destination ff0e::246:c001
ICMPv6 Type 131 (MLD report)
PIM Join
Group Address ff0e::246:c001
Hop-by-Hop Header
Router Alert Yes Multicast
source
ff0e::246:c001
© 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda
• Why IPv6, Why Now?
• IPv6 Addresses & Headers
• IPv6 Address Assignment
• IPv6 Link Operations
• IPv6 Host Address Review
• Conclusion
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Neighbor Discovery Protocol – (NDP) NUD
DAD
Unicast Unicast
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Solicited Node Multicast
• Required & special form of multicast used for neighbor resolution
• Every Unicast address must
• Create corresponding solicited node multicast (ff02::1:ff00:0/104)
• Any Layer 3 multicast must
• Map to corresponding Layer 2 multicast (33-33-xx-xx-xx-xx)
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Neighbor Solicitation & Advertisement
• Node A needs to resolve node B’s link address, Map’s L3 to L2
• Multicast for resolution (new), Unicast for reachability (cache)
• Node B will add node A to it’s neighbor cache during this process w/o sending NS
A NS NA
B
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Address, Which Address?
• Link Local (fe80::/10) is required for any device with IPv6 enabled
• At least 2 addresses per interface for global connectivity
• Majority of access layer devices will have LL as their Default Gateway
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Agenda
• Why IPv6, Why Now?
• IPv6 Addresses & Headers
• IPv6 Address Assignment
• IPv6 Link Operations
• IPv6 Host Address Review
• Conclusion
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Host Address Acquisition
C:\Documents and Settings\>netsh
netsh>interface ipv6
netsh interface ipv6>show address
Querying active state...
Interface 5: Local Area Connection
Addr Type DAD State Valid Life Pref. Life Address
--------- ---------- ------------ ------------ -----------------------------
Public Preferred 29d23h58m25s 6d23h58m25s 2001:db8:4646:1:4f02:8a49:41ad:a136
Temporary Preferred 6d21h48m47s 21h46m 2001:db8:4646:1:bd86:eac2:f5f1:39c1
Link Preferred infinite infinite fe80::4f02:8a49:41ad:a136
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
RFC 6724 – Source Address Selection
• IPv6 over IPv4, but which IPv6 first..
• Scope = Local, ULA, Global
• State = Preferred over Deprecated
• Interface = Assigned vs. another
• Type = Temporary over Public
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Dual Stack OS Considerations
IPv4
IPv6
www IN A 192.168.0.3
2001:db8:4646:1::1
www IN AAAA 2001:db8:4646:1::1
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Agenda
• Why IPv6, Why Now?
• IPv6 Addresses & Headers
• IPv6 Address Assignment
• IPv6 Link Operations
• IPv6 Host Address Review
• Conclusion
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Key Take Away
• Gain Operational Experience now
• Control IPv6 traffic as you would IPv4
• Lead your OT/LOB’s into the Internet
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Recommended Reading
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
http://www.ciscopress.com/store/ipv6-design-and-deployment-livelessons-
9780134655512
Code: MARTIN60
Offer: 60% off
ISBN: 9780134655512
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
More IPv6 Sessions
When Session Title
29 Jan 2019 / 11:00 BRKIP6-2191 IPv6: The Protocol
29 Jan 2019 / 14:15 LABSPG-3122 Advanced IPv6 Routing and services lab
29 Jan 2019 / 14:30 BRKIP6-2616 Beyond Dual-Stack: Using IPv6 like you’ve never imagined
30 Jan 2019 / 11:00 BRKSPG-2602 IPv4 Exhaustion: NAT and Transition to IPv6 for Service Providers
30 Jan 2019 / 14:30 BRKIP6-2301 Intermediate - Enterprise IPv6 Deployment
31 Jan 2019 / 11:00 BRKRST-2619 IPv6 Deployment: Developing an IPv6 Addressing Plan and Deploying IPv6
31 Jan 2019 / 11:00 BRKSEC-3200 Advanced IPv6 Security Threats and Mitigation
31 Jan 2019 / 14:00 LABSPG-3122 Advanced IPv6 Routing and services lab
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Cisco Webex Teams
Questions?
Use Cisco Webex Teams (formerly Cisco Spark)
to chat with the speaker after the session
How
1 Find this session in the Cisco Events Mobile App
2 Click “Join the Discussion”
3 Install Webex Teams or go directly to the team space
4 Enter messages/questions in the team space
cs.co/ciscolivebot#BRKIP6-2191
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Complete your online
session survey
• Please complete your Online Session
Survey after each session
• Complete 4 Session Surveys & the Overall
Conference Survey (available from
Thursday) to receive your Cisco Live T-
shirt
• All surveys can be completed via the Cisco
Events Mobile App or the Communication
Stations
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Continue Your Education
BRKIP6-2191 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Thank you