Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Autoconfiguration
The whole process In-Depth fully explained!
Version 2.0
IPv6AutoConfig2-1
Presentation Objectives
This presentation gives an in-depth explanation of the IPv6
Autoconfiguration process. It covers all the possible combinations to
configure and to maintain automatically the IPv6 nodes using all the
possible options currently available.
This presentation focuses on IPv6 Autoconfiguration but it also introduces
the Mobile IPv6 based applications.
At the end of the presentation you will fully understand how the IPv6
nodes initially get configured and how the network configuration may
be changed over time if needed. You will also understand the benefits
of running Mobile IPv6.
And you will deserve a good coffee break!
IPv6AutoConfig2-2
Meet me on:
Twitter: FredBovy
Skype: FredericBovy
Blogs: http://www.fredbovy.com/Go46/
LinkedIn, owner of 3 IPv6 Groups
Email me: fred@fredbovy.com
2011 Fred Bovy.
IPv6AutoConfig2-3
Introduction to Autoconfiguration
IPv6 Autoconfiguration
IPv6AutoConfig2-4
What is Autoconfiguration ?
With Autoconfiguration, a network node can
configure itself completely and modify its configuration
anytime needed.
Network Addresses, default route,
DNS and Others Servers addresses, domain name,
Dynamic DNS Updates
-
-
The home Address is the only address known by the end-user Application
A new Address (COA) acquired by Autoconfig is used for each visited network (Wifi, 3G)
Because the home address is the same, the same socket is used, there is no interruption, no
need to restart the applications
IPv6AutoConfig2-5
IPv6AutoConfig2-6
First, the Link local address is generated and tested to enable the interface for IPv6
The Link Local address is verified with Duplicate Address Detection (DAD)
The Link-Local address MUST be valid or Autoconfig exits and the Interface is disabled for
IPv6
Once the Link-Local passed DAD, the IPv6 Interface is Up and other addresses are also
generated from the RA or allocated by DHCPv6 and validated by DAD
Valid
Tentative
Preferred
Deprecated
Invalid
Preferred Lifetime
Valid Lifetime
IPv6AutoConfig2-7
Tentative
Preferred
Deprecated
Invalid
Preferred Lifetime
Valid Lifetime
2011 Fred Bovy.
IPv6AutoConfig2-8
Valid
Tentative
Preferred
Deprecated
Invalid
Preferred Lifetime
Valid Lifetime
2011 Fred Bovy.
IPv6AutoConfig2-9
Valid
Tentative
Preferred
Deprecated
Invalid
Preferred Lifetime
Valid Lifetime
2011 Fred Bovy.
IPv6AutoConfig2-10
Tentative
Preferred
Deprecated
Invalid
Preferred Lifetime
Valid Lifetime
IPv6AutoConfig2-11
IPv6AutoConfig2-12
Yes
Prefix
Information
present ?
No
Yes
NA received ?
Stop
No
Managed
Address
Configuration
Flag = 1 ?
No
Other
Configuration
Flag = 1 ?
Send RS
No
RA Received ?
Yes
Yes
Use DHCPv6
No
Use DHCPv6
Stop
Yes
2011 Fred Bovy.
IPv6AutoConfig2-13
fe80::202:b3ff:fe1e:8329
To As Solicited node address FF02::1:FF1E:8329
2011 Fred Bovy.
IPv6AutoConfig2-14
IPv6AutoConfig2-15
Neighbor
Solicitation
Dst address is the solicited
node multicast address:
ff02::1:ff30:3386
IPv6AutoConfig2-16
Yes
Prefix
Information
present ?
No
Yes
NA received ?
Stop
No
Managed
Address
Configuration
Flag = 1 ?
No
Other
Configuration
Flag = 1 ?
Send RS
No
RA Received ?
Yes
Yes
Use DHCPv6
No
Use DHCPv6
Stop
Yes
2011 Fred Bovy.
IPv6AutoConfig2-17
IPv6AutoConfig2-18
All-Routers: FF02::2
2011 Fred Bovy.
IPv6AutoConfig2-19
IPv6AutoConfig2-20
ISP 6RD RG RA
Router Solicitation and
Router Advertisement
Router Advertisement
MTU Option:
1480 bytes
Source Link Layer Address
Option
f4:ca:e5:44:10:ef
2011 Fred Bovy.
IPv6AutoConfig2-21
DHCPv6
Server
DHCPv6 Relay!
Relay-Forward
Solicit
to All_DHCP_Servers (FF05::1:3)
Dst:All_DHCP_Relay_Agents_and_Servers (FF02::1:2)
Relayreply
Advertize
Request
Dst: Server Dst:All_DHCP_Relay_Agents_and_Servers
(FF02::1:2)
Src: Client Link-local address
Reply
Relay-Forward
to All_DHCP_Servers (FF05::1:3)
Relay-reply
Dst: Client Link-local address
Src: Server Link-local address
If no RA Received,
Autoconfiguration ends here !
2011 Fred Bovy.
IPv6AutoConfig2-22
DHCPv6
2011 Fred Bovy.
Do not initialize
the stateless
address
NA
Received ?
No
Yes
On-Link Flag
=1?
Initialise the
Stateless
address
No
Autonomous
Flag = 1 ?
No
Other prefixes to
process
No
Yes
Yes
Derive the Stateless
Prefixe:[interface ID]
Go to next prefix
Send NS to the
derived address
IPv6AutoConfig2-24
IPv6AutoConfig2-25
IPv6AutoConfig2-26
IPv6AutoConfig2-27
IPv6AutoConfig2-28
IPv6AutoConfig2-29
O
R
00 90 59 FF FE 02 E0 F9
000000X0
On Mac OS X
sysctl net.inet6.ip6.use_tempaddr=1
On Linux
sysctl net.ip6.conf.if.use_tempaddr=2
2011 Fred Bovy.
IPv6AutoConfig2-30
Yes
Prefix
Information
present ?
No
Yes
NA received ?
Stop
No
Managed
Address
Configuration
Flag = 1 ?
No
Other
Configuration
Flag = 1 ?
Send RS
No
RA Received ?
Yes
Yes
Use DHCPv6
No
Use DHCPv6
Stop
Yes
2011 Fred Bovy.
IPv6AutoConfig2-31
IPv6AutoConfig2-32
IPv6AutoConfig2-33
IPv6AutoConfig2-34
IPv6AutoConfig2-35
IPv6AutoConfig2-36
IPv6AutoConfig2-37
Address and
Other parameters
are configured
from DHCPv6
IPv6AutoConfig2-38
IPv6AutoConfig2-39
Address
configuration
from the prefix
received in the
RA (SLAAC)
Other parameters
are given by a
DHCPv6 Server
IPv6AutoConfig2-40
Frdric Bovy 41
2011 Fred Bovy.
IPv6AutoConfig2-41
DHCPv6-PD
Client
E1
DHCP Client
Host
DHCP Server
AAA
2011 Fred Bovy.
DHCP
6. Host Configures
Addresses Based on
the Prefixes Received
in the RA. As the O-bit
Is on, It Sends a DHCP
Information-request
Message, with an
ORO = DNS
ND/DHCP
IPv6AutoConfig2-42
6rd
IPv4 + IPv6
IPv4 + IPv6
Core
IPv4 + IPv6
IPv4 + IPv6
BR
RG
IPv4
IPv6AutoConfig2-43
IPv6AutoConfig2-44
Each address has the two timers constantly updated from the
system clock: Preferred and Valid
As long as the derived Address is refreshed with RA Prefixes or the
allocated address is reniewed by DHCPv6, the address state will
remain Preferred!
Valid
Tentative
Preferred
Deprecated
Invalid
Preferred Lifetime
Valid Lifetime
IPv6AutoConfig2-45
IPv6AutoConfig2-46
nd
nd
nd
nd
nd
To Be used by SLAAC:
IPv6AutoConfig2-47
IPv6AutoConfig2-48
Unsolicited Periodic RA
1600
1400
200s
IPv6
Prefix: 2001:db8:4:1::/64
On-Link, Autonomous
Preferred:1800, Valid:2100
2001:db8:4:1::1/64
initial timers:
Preferred:1800, Valid: 2100
2001:db8:4:1::2/64
Preferred:1400, Valid:1900
Same Principle than other Workstation
IPv6AutoConfig2-49
preferred-lifetime
The preferred lifetime for the IPv6 address in the option, expressed in units of seconds.
valid-lifetime
The valid lifetime for the IPv6 address in the option, expressed in units of seconds.
2011 Fred Bovy.
IPv6AutoConfig2-50
IPv6AutoConfig2-51
Renumbering
IPv6 Autoconfiguration
IPv6AutoConfig2-52
IPv6AutoConfig2-53
Valid
interface Ethernet0
Preferred
Host
Preferred address: 2001:db8:cafe:2:1:4567:9f0:1
Deprecated address: 2001:db8:cafe:1:4567:9f0:1
RA
Frdric Bovy 54
IPv6AutoConfig2-54
IPv6AutoConfig2-55
IPv6AutoConfig2-56
IPv6AutoConfig2-57
Linux
Project NATISBAD
The KAME project ported to Linux
http://natisbad.org/MIPv6/#racoon
Windows
Very limited support with Windows 7
Only CN Mode w/o Route Optimization
netsh interface ipv6 set mobility correspondentnode=enabled
IPv6AutoConfig2-58
The router which forward the traffic to the Mobile Node (MN)
when the us is at home!
Mobile Node
Home Address
All the packets from the Mobile Node (MN) received by the
Corresponding Node (CN) come from this source address.
All the packets sent to the Mobile Node (MN) from the
Corresponding Node (CN) are sent to this destination
address.
Home Link
Care-Of-Address
Correspondant Node The fixed node (not mobile) communicating with the Mobile
Node (MN).
2011 Fred Bovy.
IPv6AutoConfig2-59
Mobile Node
acquires its Care of
Address from SLAAC
or DHCPv6
2011 Fred Bovy.
IPv6AutoConfig2-60
1
2
Mobile Node
2011 Fred Bovy.
IPv6AutoConfig2-61
HA
Mobile Node
Out Src
Out Dst
In Src
In Dst
MN IPv6
CoA
HA IPv6
@
MN IPv6
Home @
CN IPv6
@
Out Src
Out Dst
In Src
In Dst
HA IPv6 @
MN IPv6
CoA
CN IPv6
@
MN IPv6
Home @
Src @
Dst @
MN IPv6
Home @
CN IPv6
@
Src @
Dst @
CN IPv6
@
MN IPv6
Home @
IPv6AutoConfig2-62
ing
Bind
te
Upda
k
g Ac
in
Bind
Mobile Node
Mobile Node
Dst Opt
Src @
Dst @
MN IPv6
Home @
MN IPv6
CoA
CN IPv6
@
IPv6AutoConfig2-64
Mobile Node
The MN replaces the MN IPv6 CoA with the MN IPv6 Home @ from the Routing Option:
Datagram is sent to the MN Home @
Src @
Dst @
Routing
CN IPv6
@
MN IPv6
CoA
MN IPv6
Home @
IPv6AutoConfig2-65
IPv6AutoConfig2-66
1.
2.
3.
4.
Mobile
Access
Gateway
(MAG1)
Mobile Node
MN1
Authentication
IPv6 Network
Mobile
Access
Gateway
(MAG2)
Local
Mobility
Anchor
(LMA2)
Mobile
Access
Gateway
(MAG3)
Mobile Node
MN2
IPv6AutoConfig2-67
2.
For updating the LMA about the MN location, the MAG sends a
PBU (Proxy Binding Update) to the MNs LMA.
3.
4.
5.
PBU
Mobile
Access
Gateway
(MAG1)
Mobile Node
MN1
RS
RA
Local
Mobility
Anchor
(LMA1)
4
IPv6AutoConfig2-68
IPv6 Internet
Home Network
WLAN
3G Network
NEMO
Router
Bluetooth or WiFi
IPv4
IPv6
IPv6AutoConfig2-69
Wireless
Uplink
IPv6AutoConfig2-70
Possible Applications:
Localized weather monitoring
Structural Health monitoring (Earthquake prone areas)
Battlefield troop detection, movement
Intelligent Transportation Systems (ITS)
Green app: Building environment management
Lights, HVAC, Security Access, smart power outlets, etc.
Building demo - ~20% MRC cost savings
2011 Fred Bovy.
IPv6AutoConfig2-71
Fred Bovy
IPv6 Forum Gold Certified Engineer
IPv6 Forum Gold Certified Trainer
CISCO 15 years CCIE #3013
CISCO 18 years CCSI #33517 (before was #95003)
Meet me on
Twitter:
Skype:
Blog:
Email:
FredBovy
FredericBovy
http://www.fredbovy.com/Go46
fred@fredbovy.com