51
Ch 6: IPv6 Deployment Last modified 11-7-12

Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Embed Size (px)

Citation preview

Page 1: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Ch 6: IPv6 Deployment

Last modified 11-7-12

Page 2: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Topics

• 6.3 Transition Mechanisms

• 6.4 Dual Stack IPv4/IPv6 Environments

• 6.5 Tunneling

Page 3: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.3 Transition Mechanisms

• IPv6 is not backwards-compatible with IPv4• So while both protocols are in use, we need

transition mechanisms to connect them• Three types of transition mechanisms

– Dual Stack– Tunneling– Translation

Page 4: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Early Stages

• Islands of IPv6 Connected via IPv4

Page 5: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Middle Stages

• Core is IPv6 or Dual-Stack– Some tunnels are no longer needed– Translation mechanisms will be needed to

allow legacy IPv4 devices to access IPv6 services

Page 6: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Last Stage

• Most equipment and services are IPv6-only– Only isolated islands of IPv4 legacy services

remain– IPv4 tunnels over IPv6– Translation devices allow IPv6-only devices to

access IPv4 services

Page 7: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.4 Dual Stack IPv4/IPv6 Environments

• Each host uses both IPv4 and IPv6

• Reduces need for tunnels

Page 8: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.4.1 Deployment of a Dual Stack Environment

• Consider the following issues– Shared infrastructure

• Must route and switch both IPv4 & IPv6

– Need for more resources• Details on next slide

– Application protocol preference

Page 9: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Need for more resources

• Each protocol stack must share the available network bandwidth• Routers need to:

– Maintain forwarding tables for both IPv4 and IPv6– Run routing protocols for both protocols– Implement packet filtering for both protocols– Provide for congestion control for both protocols– Handle special cases (IPv4 Router Alerts and IPv6 Hop-by-Hop

Options) for both– Forward packets for both protocols.

• Hosts must devote resources to both protocol stacks (for example, processing, memory, and network infrastructure traffic)

• Administrative and security staff must maintain concurrent environments as well

Page 10: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Applications in a Dual-Stack Environment

• Some applications are IPv4-only

• Some are IPv6-only

• Some are dual-stack

• DNS record order can be used to control preference for A or AAAA records on each resource– IPv6 should be first when possible (preferred)

Page 11: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.4.2 Addressing in a Dual Stack Environment

• If you use static addresses, you must provide both IPv4 and IPv6 addresses

• If you use DHCP, you must provide both a DHCPv4 and DHCPv6 server

Page 12: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.4.3 Security Implications of a Dual Stack Environment

• Each dual-stack node is exposed to the vulnerabilities of both IPv4 and IPv6

• Security Details– Consistent security policy for both IPv4 & IPv6– Account for new IPv6 functionality

• Mobility• Stateless address autoconfiguration• Neighbor discovery• Privacy addresses• End-to-end encryption with IPsec

Page 13: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Security Details (continued)

• Unexpected tunneling between hosts may violate security policies

• Organizations must upgrade– Intrusion detection or intrusion prevention

systems– Firewalls– Monitoring, logging, and auditing

• to provide IPv6 protection equivalent to what was available for IPv4.

Page 14: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Security Details (continued)

• If tunneled packets are allowed to enter the network, the firewall or IDS/IPS system must be able to perform deep packet inspection.

• The performance of security systems may degrade when handling IPv6 (when using the same resources compared to IPv4)

Page 15: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.5 Tunneling

Page 16: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Configured v. Automatic Tunnels

• Configured tunnels– Require system administrators to configure

the endpoints of the tunnel

• Automatic tunnels– The nodes configure the endpoints

themselves

Page 17: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Configured Tunnels

• SIT = 6in4, uses protocol 41– Hurricane Electric Tunnel Broker– Sixxs

• Freenet6 can use many different tunnel types

Page 18: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling
Page 19: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Tunnels Bypassing Firewalls

Page 20: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

iClicker Questions

Page 21: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these upgrades is not needed to convert a router from IPv4 to dual-stack?

A.Two routing tables

B.Two routing protocols

C.Twice as many network interfaces

D.Two Access Control Lists

E.Two congestion control mechanisms

Page 22: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which protocol does not need to be changed to move from IPv4 to dual-stack?

A.DHCP

B.DNS

C.RIP

D.Ethernet

E.ICMP

Page 23: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which devices do not need to be upgraded to convert from IPv4 to dual-stack?

A.Firewalls

B.Intrusion Detection Systems

C.Routers

D.Switches

E.Servers

Page 24: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these features does not create new security risks when moving from IPv4 to dual-stack?

A.Broadcast packets

B.Mobility

C.Neighbor discovery

D.SLAAC

E.Tunnels

Page 25: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these features allows unauthorized traffic to bypass firewalls?

A.Multicast

B.Mobility

C.Neighbor discovery

D.SLAAC

E.Tunnels

Page 26: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Automatic Tunneling Mechanisms

• 6over4 – requires IPv4 multicast, rarely used

• 6to4 and 6rd – requires public IPv4 addresses, widely implemented

• ISATAP – does not work across NAT• Teredo - UDP encapsulation intended

for tunneling through IPv4 NATs

Page 27: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.5.4 6over4 Protocol

• Old and simple

• Relies on IPv4 multicast

• Has not been widely deployed

• Hosts use their IPv4 address as an Interface ID

Page 28: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6over4 Example

• Network: 2001:5c0:1000:b::/64• Gateway: 2001:5c0:1000:b::1• Host Addresses:

– IPv4 (dotted-decimal): 192.168.1.101– IPv4 (hex): c0 a8 1 65– Public IPv6: 2001:5c0:1000:b::c0a8:165– Link-Local IPv6: fe80::c0a8:165

Page 29: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.5.5 6to4 and 6rd Protocols

• 6to4– Allows IPv6 sites to connect to one another

over an IPv4 network– IPv4 address is embedded in IPv6 prefix– Useful when your ISP does not offer an IPv6

prefix

Page 30: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6rd (Rapid Deployment)

• Allows IPv4 ISPs to offer IPv6 to customers quickly and easily

• Uses the same system as 6to4, but with the provider’s IPv6 prefix

Page 31: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.5.5.1 Using 6to4 and 6rd

• Each 6to4 border router needs a public IPv4 address: w.x.y.z

• The IPv6 network connected to that router uses the IPv6 prefix 2002:w.x.y.z/48– Example: CCSF uses: 147.144.0.1– In hexadecimal: 93 90 0 1– Our 6to4 IPv6 prefix is:2002:9390:1::/48

Page 32: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6to4 Relays

• Each 6to4 domain must have at least one relay router

• Relay router has an (IPv4) anycast address: 192.88.99.1

Page 33: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling
Page 34: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.5.6 Intra-Site Automatic Tunnel Addressing Protocol (ISATAP)

• ISATAP allows isolated IPv6 hosts within a site running IPv4 to construct an automatic IPv6-in-IPv4 tunnel

• Does not use IPv4 multicast, as required with 6over4

• All hosts using ISATAP must be dual stack IPv4/IPv6

• ISATAP hosts communicate by tunneling IPv6 packets over IPv4 using protocol 41

Page 35: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

IPv4 Packet Header

Page 36: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Protocol Numbers

• 6 TCP

• 17 UDP

• 41 IPv6 (encapsulation)

Page 37: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Protocol 41 is Blocked by Most Home Routers

Page 38: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

ISATAP Addresses

• A host with an IPv4 address w.x.y.z performs autoconfiguration with interface ID = ::0:5EFE:w.x.y.z.

Page 39: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling
Page 40: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

ISATAP Limitations

• All IPv6 hosts run dual stack IPv4/IPv6 with support for ISATAP

• Each ISATAP host must know at least one dual stack IPv4/IPv6 router

• All traffic is constrained to a single administrative domain

• There is no need for IPv4 NAT traversal

Page 41: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

6.5.7 Teredo Protocol

• Tunneling IPv6 over UDP through Network Address Translations (NATs)

• Developed by Microsoft

• Has a high overhead

• Detects NAT, then starts with a UDP packet sent from inside the NAT

• A Teredo server listens to UDP port 3544

Page 42: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Teredo Addresses

• IPv6 addresses for Teredo clients are comprised of the following five parts:– Prefix: the 32-bit Teredo service prefix 2001:0000::/32– Server IPv4: the 32-bit IPv4 address of a Teredo server– Flags: 16 bits set to 8000 for cone NATs and 0000

otherwise– Port: The Teredo client’s 16-bit UDP port number,

inverted bit by bit– Client IPv4: The Teredo client’s 32-bit IPv4 address

(behind the NAT), inverted bit by bit

Page 43: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Figure 6-5. Teredo Address• +-------------+-------------+-------+------+-------------+ • | Prefix | Server IPv4 | Flags | Port | Client IPv4 |• +-------------+-------------+-------+------+-------------+

Page 44: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

To Disable Them

• From http://www.cellstream.com/intranet/networking-and-computing-tips-and-tricks/249-disabling-ipv6-communications.html

Page 45: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

iClicker Questions

Page 46: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these techniques works through Network Address Translation?

A.6over4

B.6to4 or 6rd

C.ISATAP

D.Teredo

E.More than one of the above

Page 47: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these techniques requires IPv4 multicast?

A.6over4

B.6to4 or 6rd

C.ISATAP

D.Teredo

E.More than one of the above

Page 48: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these techniques was developed by Microsoft?

A.6over4

B.6to4 or 6rd

C.ISATAP

D.Teredo

E.More than one of the above

Page 49: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these techniques embeds an IPv4 address inside an IPv6 address?

A.6over4

B.6to4 or 6rd

C.ISATAP

D.Teredo

E.More than one of the above

Page 50: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these techniques embeds a layer 4 port number inside an IPv6 address?

A.6over4

B.6to4 or 6rd

C.ISATAP

D.Teredo

E.More than one of the above

Page 51: Ch 6: IPv6 Deployment Last modified 11-7-12. Topics 6.3 Transition Mechanisms 6.4 Dual Stack IPv4/IPv6 Environments 6.5 Tunneling

Which of these techniques uses relays at 192.88.99.1?

A.6over4

B.6to4 or 6rd

C.ISATAP

D.Teredo

E.More than one of the above