Академический Документы
Профессиональный Документы
Культура Документы
IPv6 Refresher
Copyright 2011 National Advanced IPv6 (NAv6) Center, Universiti Sains Malaysia (USM)
Disclaimer
We wish to inform that this CNE6 course materials and its content is solely for the purpose of CNE6 examination and it shall not be made available to any other parties without our written consent. All material in this course material is, unless otherwise stated, the property of National Advanced IPv6 Centre (NAv6) and protected by Copyright Law. Reproduction or retransmission of the materials, in whole or in part, in any manner, without the prior written consent of NAv6, is a violation of copyright law.
Contents
Addressing architecture Packet structure and header formats Header extensions ICMPv6 Neighbor discovery Autoconfiguration Transition Mechanisms
ANYCAST
Identifies a set of interfaces (typically on different nodes) Packet sent to an anycast address is delivered to one of the interfaces identified by that address (normally the nearest)
MULTICAST
Identifies a set of interfaces (typically on different nodes) Packet sent to a multicast address is delivered to all interfaces identified by that address
2001 : DB8 : 0000 : B : 2AA : 0000 : 0000 : 5A 2. Consecutive fields of all zeros can be compressed using :: 2001 : DB8 : : B : 2AA : : 5A 3. Consecutive fields of all zeros can be compressed using :: (But can only be used once) 2001 : DB8 : 0 : B : 2AA : : 5A
Address Types
High order bits define IPv6 address type Current IPv6 prefix allocation
Special format addresses (0000::/8) (unspecified and loopback addresses) Link-local unicast addresses (FE800::/10) Site-local unicast addresses (FEC0::/10) Multicast addresses (FF00::/8) Aggregatable global unicast addresses (other) Anycast addresses are allocated from unicast space
Address Scope
First 3 bits set to 0 Last bit defines address type: 0000 = Permanent (or well-known) 0001 = Locally assigned (or transient)
Contents
Addressing architecture Packet structure and header formats Header extensions ICMPv6 Neighbor discovery Autoconfiguration IPv6 routing protocols
Contents
Addressing architecture Packet structure and header formats Header extensions ICMPv6 Neighbor discovery Autoconfiguration Transition Mechanisms
Available Options
Processed by hop-by-hop
Must be processed by every node on the packets path Must always appear immediately after IPv6 header Two Hop-by-hop options already defined:
1. 2. Router alert option Jumbo payload option
Processed by destination
Meant to carry information intended to be examined by the destination node Only options currently defined are padding options to fill out header on a 64-bit boundary if (future) options require it
Forwarding IPv6 Packets with Extension Headers other than Hop-by-Hop in the Absence of ACLs
Segments Left: Specifies the number of explicitly-named nodes remaining in the route until the destination. Reserved: Not used; set to zeroes. Addresses: A set of IPv6 addresses that specify the route to be used.
How it works
In this example, the packet is sent from Mobile Node A to Mobile Node B over the route optimized path [RFC3775], hence the use of the Routing EH (43) and the Destination Options EH (60). It is sent over a path that has an Maximum Transmission Unit (MTU) smaller than that of Mobile Nodes (MNs) access link, hence the use of the Fragmentation EH (44).
How it works
Contents
Addressing architecture Packet structure and header formats Header extensions ICMPv6 Neighbor discovery Autoconfiguration Transition Mechanisms
Neighbor Discovery
Tell
Ask question
Solicitation
Node Node
ARP
IGMP
D C A
RS RA
D C A
B
RA
RA Format
RA Options
NS Format
NS Option
Redirect
Default GW-List A B C
Sent data to Host 3 using Default GW "A" ICMP Redirect to Router B
D C A
Path used with Default Gateway "A" Redirect traffic via Router B
Host 3
Contents
Addressing architecture Packet structure and header formats Header extensions ICMPv6 Neighbor discovery Autoconfiguration IPv6 routing protocols
If soliciting node receives NA reply with target address set to the tentative IP address, the address must be duplicate
Contents
Addressing architecture Packet structure and header formats Header extensions ICMPv6 Neighbor discovery Autoconfiguration Transition Mechanisms
Transition Mechanisms
Myriad proposals
Coexistence
Dual IP stacks
All network devices run both IPv4 and IPv6 stacks
Dual IP layers
TCP/UDP layer is shared
Tunneling
Configured tunnels Automatic tunnels 6 to 4 tunnels 6 over 4 tunnels
Translation
SIIT Stateless IP/ICMP Translator NAT-Protocol Translation (NAT-PT)
Translation
Multiple forms of translation: Between semantically identical protocols
Not applicable in this case (nor most)
NAT-PT
Same packet translation as SIIT Different semantics (see following slides)
NAT-PT
Network Address TranslationProtocol Translation (NAT-PT) employs a stateful IPv4/IPv6 header translation.
NAT-PT uses a pool of IPv4 addresses for assignment to the IPv6 nodes on a dynamic basis No changes are required to existing hosts because all the NAT-PT translations are performed at the network-based NAT-PT device
NAT-PT
Semantically similar to (v4-to-v4) NAT v6-only hosts need to connect to v4 world DNS servers dynamically assign addresses from pool of global IPv4 addresses IP headers and addresses in applications are translated at NAT boxes NAT box must maintain state
Address mappings, TCP sequence number change, Data Unit ID, reassembly, etc..
NAT-PT
Translation for any one session must take place at the same NAT-PT router
Restricted topology NAT-PT is, like NAT, local to a domain This makes routing straightforward
Security is limited (end to end cant be translated, also no secure DNS) NAPT-PT extends maps TCP/UDP port #s (multiple v6 sessions use one v4 address)
Tunneling
Configured tunnels
Connects IPv6 hosts or networks over an existing IPv4 infrastructure Generally used between sites exchanging traffic regularly Static tunnels configured on point-to-point basis Examples: CCC, MPLS, GRE, IP-IP, IPSec
Automatic tunnels
Tunnel is created then removed after use Requires IPv4 compatible addresses
6 to 4 dynamically established
Desirable as no explicit tunnel configuration required
Tunnel broker
IPv6 hosts request v6 tunnel; obtain script to build tunnel
6to4
2002:IPV4ADDR:SubnetID::/64
ISATAP
Allow hosts that are multiple IPv4 hops away from an IPv6 router to participate in the IPv6 network by automatically tunneling IPv6 packets over IPv4
Teredo
provides address assignment & host-to-host automatic tunneling for unicast IPv6 traffic when IPv6/IPv4 hosts are located behind NATs
Types of NAT
Teredo Addressing
TheTeredo prefix is 2001::/32. The Teredo server IPv4 address is the public IPv4 address. The flag field indicates the type of NAT used by the Teredo client. The last two fields are the obscured mapped external IPv4 address and port of the Teredo client.
5. Client determines relay IPv4 address from the received packet send packets to the IPv6-only host via the Teredo relay. 6. The relay extracts the IPv6 packet and forwards to the IPonly host. Future communications can follow this same path.
This is included in RFC 2893 Transition Mechanisms for IPv6 Hosts and Routers (originally
proposed in RFC 1347)
Copyright 2011 National Advanced IPv6 (NAv6) Center, Universiti Sains Malaysia