Title: Automatic Tunnels and Relays
1Automatic Tunnels and Relays
2Outline
- Reasons for IPv6 in IPv4 Tunnels
- General IPv6 Tunnel Types
- 6to4 Tunnel Implementation Scenarios
- 6to4 Security Issues
3Possible Reasons for IPv6 in IPv4 Tunnels
- Networks in the path between an IPv6-capable host
and WAN dont support IPv4/IPv6 dual-stack
environment - Local network support organizations dont support
dual-stack environment
4Configured Tunnels
- Configured tunnels connect IPv4/IPv6 dual-stack
hosts or networks to larger IPv6 networks. - Local network administrators arrange for a tunnel
between IPv6 networks across IPv4-only networks. - This was default dual-stack architecture on
Abilene until 2002 and there are still some
configured tunnels supported by the Abilene NOC
5Automatic IPv6 in IPv4 tunnel
- A dual-stack host or network automatically
creates tunnel across a IPv4-only network - Tunnel Types
- 6to4 Most commonly deployed automatic tunnel
format. - ISATAP Intranet automatic tunnel format not
designed for public networks - Toredo Promising, but still in early discussions
in IETF
66to4 Tunnel IPv4 Packet Format
- 0 1 2
3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
2 3 4 5 6 7 8 9 0 1 - ----------------------
---------- - Version IHL Type of Service
Total Length - ----------------------
---------- - Identification Flags
Fragment Offset - ----------------------
---------- - Time to Live Protocol 41
Header Checksum - ----------------------
---------- - Source Address
- ----------------------
---------- - Destination Address
- ----------------------
---------- - Options
Padding - ----------------------
---------- - IPv6 header and payload ...
/ - ---------------------------------------
-------- - Source RFC3056, Connection of IPv6 Domains via
IPv4 Clouds
7IPv6 Address Format in 6to4
For example, a Windows XP system with IPv4
address 207.75.164.119 would have a 6to4 IPv6
address of 2002cf4ba477cf4ba477
86to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
IPv4-only LAN
IPv4-only LAN
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
96to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
Host A creates IPv6 packet with destination
address 2002c0a811011 and encapsulates it in
IPv4 packet with destination address 192.168.17.1
IPv4-only LAN
IPv4-only LAN
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
106to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
IPv4-only LAN
IPv4-only LAN
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
116to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
IPv4-only LAN
IPv4-only LAN
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
126to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
IPv4-only LAN
IPv4-only LAN
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
136to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
IPv4-only LAN
IPv4-only LAN
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
146to4 Implementation Scenarios (1 of 2)
- Both host A and host B are on IPv4-only networks
and both are capable of IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
IPv6
IPv4-only LAN
IPv4-only LAN
Host B decapsulates IPv6 packet from IPv4 packet
and processes IPv6 packet
Host A 192.168.15.1/24 2002c0a80f011
Host B 192.168.17.1/24 2002c0a811011
156to4 Implementation Scenarios (1 of
2)Observations
- Encapsulated IPv6 packets travel IPv4 routing
path. - No tunneling equipment or IPv6 infrastructure
required between hosts
166to4 Implementation Scenarios (2 of 2)
- Host A is on a native IPv6 network and host B is
on an IPv4-only network, but is itself capable of
IPv6 6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
176to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A creates IPv6 packet to 2002c0a811011
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
186to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
Relay router advertises IPv6 route 2002/16
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
196to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
206to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
216to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
226to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Relay router encapsulates IPv6 packet in IPv4
packet and sends IPv4 packet to dest. address
192.168.17.1
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
236to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
246to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
256to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
266to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host B decapsulates IPv6 packet from IPv4 packet
and processes IPv6 packet
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
276to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
286to4 Implementation Scenarios (2 of 4)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
Host B creates IPv6 packet with dest. addr.
2001468142025 and encapsulates it in IPv4
packet with dest. addr. 192.88.99.1
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
296to4 Implementation Scenarios (2 of 2)
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
Relay router advertises anycast IPv4 route
192.88.99.0/24
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
306to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
316to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
326to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
336to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
Relay router decapsulates IPv6 packet and
forwards packet to IPv6 destination address
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
346to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
356to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
366to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
376to4 Implementation Scenarios (2 of 2)Reverse
Direction
- Host A is on native IPv6 network, host B is on
IPv4-only network, but is itself capable of IPv6
6to4 tunneling
IPv4/IPv6 dual-stack Internet
IPv4
6to4 Relay Router
IPv6
IPv4/IPv6 dual-stack LAN
IPv4-only LAN
Host A processes IPv6 Packet
Host A 192.168.15.1/24 2001468142025/64
Host B 192.168.17.1/24 2002c0a811011
386to4 Implementation Scenarios (2 of
2)Observations
- Asymmetric routes common
- Placement of 6to4 relay routers can have
significant impact on 6to4 tunnel performance
39Alternate 6to4 Scenario
- An edge router could be utilitized instead of a
host computer for any of 6to4 tunnel endpoints. - Edge router can provide a /48 IPv6 subnet for
each IPv4 address
40Alternate 6to4 Scenario
IPv4/IPv6 dual-stack WAN
IPv4-only dual-stack LAN
Edge Router with 6to4 tunnel IPv4 interface
address 192.168.17.1 IPv6 address block
2002C0A811011/48
IPv4/IPv6 dual-stack LAN
IPv4/IPv6 dual-stack LAN
Host A 192.168.15.1 200146814201500
Host B 192.168.17.5 2002c0a8110115
41Supported 6to4 Environments
- Client
- Windows XP automatically enabled if IPv6 is
enabled - Linux, FreeBSD, MacOS X Supported by not
enabled by default - Server
- Cisco IOS releases that support IPv6
- Linux
- FreeBSD
426to4 Security Issues
- See
- http//www.ietf.org/internet-drafts/draft-savola-v
6ops-6to4-security-02.txt - Recommends access lists
- Relays use process-switching, which impact
performance and limit potential DoS attacks - A conclusion can be made that although 6to4
relays have security issues, they are not
significant. DoS attacks would appear to be as
easy using other network devices.