IPv6 Flashcards
Name the benefits of IPv6
- Larger address space
- Simplified header, easier implementation
- Better Auto-config
- Better flow associativity
How are IPv6 addresses formatted?
Leading zeros can be removed
Largest group may be omitted (::)
Port: [2001:db8::1]:80
How large are address subnets for IPv6?
First N bits: global routing prefix
Next 64 - N bits: subnet ID
Last 64 bits: Interface ID
Name the 4 address scopes and the 4 Uniqueness levels of IPv6 addresses
Unicast: 1-1
Multicast: 1-all
Anycast: 1- 1 (in group)
Broadcast: unused
Global-Unique Address: globally addressable
Local-Unique Address: locally addressable; part of fc00::/7
Link-Local Address: addressable on the link; globally unique. Part of fe80::/10 subnet
Site-Local Address: unused
How are Multicast addresses constructed?
First 8 bits are only 1s
Next 4 bits as flag (permanent or transient addr
Next 4 bits as scope
Last 112 bits: GroupID
What scopes do exist for IPv6 Multicast addresses?
0000 reserved 0001 Interface local 0010 Link local 1000 Organization local 1110 Global 1111 reserved
What IPv6 Multicast addresses are pre-defined?
All nodes MC:
FF01::1 (iface local)
FF02::1 (link local)
All routers MC:
FF01::2 (iface local)
FF02::2 (link local)
How does address resolution work in ipv6?
- No ARP but NDP (Neighbour discovery protocol)
- SLAAC (stateless auto configuration)
- Stateful config (router decides if SLAAC should be used)
How does SLAAC address generation work?
Fe80::/64 as base
24 bit of iface identifier (first 24 bit of mac) - Invert 2. Bit of first octet (NW byte order - from right!)
Middle 16 bit: ff:fe
Last 24 bit: last 24 bit of MAC address
DAD (duplicate detection)
How does SLAAC configuration work?
Generate SLAAC Addr
Hosts join all-nodes mc address
Hosts communicate to routers using all-routers mc address
ICMPv6 router solicitation (from host)
ICMPv6 router advertisement (from all routers) - includes prefixes for site and global
How does NDP work?
Neighbor solicitation:
- Ask for MAC address of interface which has the IPv6 addr
- Dst IPv6 addr: ff02:0:0:0:0:1:ff:XX:XXXX.
Explain how Router Solicitation and Router Advertisement work
Router Solicitation:
- Sent when iface comes up; Prompt all routers to send a RA
Router Advertisement:
- All-nodes MC addr in fixed interval
- Information: Autoconfig methods (SLAAC, DHCPv6), Prefix info, Route info, MTU on link, Link-Layer address of router)
What is the Privacy Extension?
Uses a random 64bit into for host part which is changed regularly
What security problem arises with RS/RAs?
Everybody can claim to be a router.
- RA Guard to filter unauthorized RAs
- SEND unter development
Explain that possibilities exist to move from IPv4 to IPv6
Dual Stack: All hosts have both protocol until everythink uses IPv4
Tunneling: Encapsulate IPv6 into IPv4
Header translation:
- Stateless IP/ICMP translation
- Defines a class of IPv6 addresses which come from IPv4 addr
- use the ::ffff:0:0:0/96 subnet - ::ffff:0:a.b.c.d
- allows IPv6 only to IPv4 only