Ipv6 - Addressing Scheme
Ipv6 - Addressing Scheme
Ipv6 - Addressing Scheme
Agenda
OSI & TCP/IP Model IPv4 Addressing IPv6 Addressing
OSI Model
TRANSPORT NETWORK
TCP/IP Model
DATA LINK
PHYSICAL
Data Encapsulation
Application Data
TPT Layer
Data Data
TCP Segment
IP Datagram
Data Link Frame Head IP Header TCP-UDP Frame Data Trailer
T N D ICMP IGMP
TCP
UDP
IP
ARP
RARP
IP Header..
Octet +0 Octet +1 Octet +2 Octet +3 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
VER
HLEN
TOS
DM F F
TOTAL LENGTH
FRAGMENT OFFSET HEADER CHECKSUM
OPTIONS
PADDING
ARP Operation
Give me MAC address of 129.1.1.4 Here is my MAC address
129.1.1.1
129.1.1.4
Request Ignored
Request Ignored
129.1.1.3 08-00-5A-21-A7-22
Thats Me
08-00-10-99-AC-54
RARP Operation
Give me my IP address RARP Response
RARP Server
IPv4 Header
Version (4) Header Length (4)
Total Length (16) Fragment offset (13) Header checksum (16) 20 Bytes
Removed
Changed
IPv6 Header
Version (4)
Flow Label(20)
Hop Limit(8) 40
Payload Length(16)
Bytes
New
Extension Header
New way of doing options Added after the basic IPv6 header Daisy chained
IPv6 Header Next Header = TCP IPv6 Header Next Header = Routing IPv6 Header Next Header = Routing
8/6/2013
Routing Header Next Header = TCP Routing Header Next Header = ESP
14
Summary
Comparison of IPv4 and IPv6 headers shows a longer header, but less number of fields Header processing is simpler Options are handled by extension headers Routing header for source routing changes the destination address in the IP header
8/6/2013
18
IPv4 Addressing
8 Bits
172 .
8 Bits
16
8 Bits
8 Bits
. 122 . 204
ALTTC/DX/SC/IPADDRESSING
19
Host Address
110
1110
1111
ALTTC/DX/SC/IPADDRESSING
Networks Vs Hosts
In Classless environment we can have 232=4294967296 Hosts Class Networks Hosts/Network A 126 16777214 B 16384 65354 C 2097152 254
ALTTC/DX/SC/IPADDRESSING
24
IPv6 Addressing
IPv6 addresses Format Unicast Multicast Anycast Required Node Addresses Address Selection Addressing Architecture
8/6/2013
26
Addresses
IPv4 = 32 bits IPv6 = 128 bits
This is not 4 times the number of addresses This is 4 times the number of bits ~3,4 * 1038 possible addressable nodes 1030 addresses per person on the planet Well, as with any numbering scheme, we will be using only a portion of the full address space
8/6/2013
27
Address Format
x:x:x:x:x:x:x:x Where x is a 16 bits hexadecimal field
2001:0000:1234:0000:0000:C1C0:ABCD:0876
Case insensitive
2001:0000:1234:0000:0000:c1c0:abcd:0876
8/6/2013
28
Address format
Successive fields of 0 are represented as ::, but only once in an address:
2001:0:1234::C1C0:ABCD:876 Not valid: 2001::1234::C1C0:ABCD:876
Other examples:
FF02:0:0:0:0:0:0:1 => FF02::1 0:0:0:0:0:0:0:1 => ::1 0:0:0:0:0:0:0:0 => ::
8/6/2013
29
Addresses in URL
In a URL, it is enclosed in brackets
http://[2001:1:4F3A::206:AE14]:8080/index.html URL parsers have to be modified Cumbersome for users
Mostly for diagnostic purposes Should use Fully Qualified Domain Names (FQDN)
8/6/2013
30
Address Types
Unicast
Unspecified Loopback Scoped addresses:
Link-local Site-local (Deprecated now) Unique-Local
Aggregatable Global:
Multicast
Broadcast: none in IPv6
Anycast
31
Unspecified
Used as a placeholder when no address available
Initial DHCP request Duplicate Address Detection (DAD)
8/6/2013
32
Loopback
Identifies self Localhost Like 127.0.0.1 in IPv4 0:0:0:0:0:0:0:1 or ::1 To find if your IPv6 stack works: Ping6 ::1
8/6/2013
33
Link-Local
Scoped address (new in IPv6) Scope = local link (i.e. VLAN, subnet)
Can only be used between nodes of the same link Cannot be routed
Format:
FE80:0:0:0:<interface identifier>
8/6/2013
34
8/6/2013
35
8/6/2013
36
Aggregatable Global
Generic use. Globally reachable. Allocated by IANA
To Regional Registries Then to Tier-1 Providers
Called Top-level Aggregator (TLA)
8/6/2013
37
Aggregatable Global
Structure:
TLA RES NLAs SLA Interface ID
48 bits
16 bits
64 bits
128 bits as the total 48 bits prefix to the site 16 bits for the subnets in the site 64 bits for host part
8/6/2013
38
Aggregatable Global
Consists of the following (left to right):
3 bits: 001 (10% of the total address space reserved) 13 bits for the TLA
213 TLAs ~ 8K TLAs
8/6/2013
39
Multicast
Multicast = one-to-many No broadcast in IPv6. Multicast is used instead, mostly on local links Scoped addresses:
Node, link, site, organisation, global No TTL as in IPv4
Format:
FF<flags><scope>::<multicast group>
8/6/2013
40
FF01::1
FF01::2 FF02::1 FF02::2
Interface-local
Interface-local Link-local Link-local
All Nodes
All Routers All Nodes All Routers
FF05::2
Site-local
All Routers
Solicited-Node
FF02::1:FFxx:xxxx Link-local
8/6/2013
41
Anycast
One-to-nearest: great for discovery functions Anycast addresses are indistinguishable from unicast addresses
Allocated from the unicast addresses space Some anycast addresses are reserved for specific uses
Few uses:
Router-subnet MobileIPv6 home-agent discovery discussions for DNS discovery
8/6/2013
42
8/6/2013
43
Thanks
8/6/2013
44