Download presentation
1
Lesson 3 IPv4/v6 Addressing
2
Lesson Objectives IPv6/v4 address space IPv6 address syntax
Unicast IPv6 addresses Multicast IPv6 addresses Anycast IPv6 addresses IPv6 interface identifiers IPv4 addresses and IPv6 equivalents
3
IPv4 addressing
4
IP v4 addressing IP 網址 32 位元長度,分為四組,每組以 10 進位表示
dec3.dec2.dec1.dec0 (如 ) 分為網路位址 (Network Address) 與主機位址 (Host Address) 【Network Number, Host Number 】 如 IP 位址為 則 網路位址 = 主機位址 = Netmask: 無次網: 次網: ?
5
IP v4 addressing IPv4 網址分級
6
保留位址: 預定閘門 (Default Router):0.0.0.0 回繞位址 (Loopback Address) :127.0.0.0
回繞主機 (Loopback Host) : 廣播位位 (Broadcast Address0 所有主機: 某一網路: ( 網路ID)
7
Private Networks Class Netids Total A 10. 1 B 172.16 to 172.31 16 C
類別 網路 位址 主機 最多主機 數量 可分配的 組織數 A 8位元 24位元 16,777,214 128 B 16位元 65,534 16,384 C 254 2,097,152 Addresses for private network Class Netids Total A 10. 1 B to 16 C to 256
8
網址不分級 網址不分級 (CIDR, Classless Inter-Domain Routing)
a four-part dotted-decimal address, followed by a slash, then a number from 0 to 32: 格式: A.B.C.D/N. 例如: /16 CIDR subnet 網域: /16 次網: /19 問分成幾個次網? /27
9
IPv4 網址使用狀況 32 at 2009/1/28
10
IPv6 addressing
11
The IPv6 Address Space 128-bit address space 2128 possible addresses
340,282,366,920,938,463,463,374,607,431,768,211,456 addresses (3.4 x 1038) Why 128 bits allow multiple levels of hierarchy and flexibility in designing hierarchical addressing and routing Typical unicast IPv6 address: 64 bits for subnet ID, 64 bits for interface ID 64 位元之 Subnet ID 64 位元之interface ID
12
Allocation 前置(prefix) 所佔比率(Fraction) Reversed 1/256 (0000:…/8) NSAP Allocation 1/128 (0200:…/7) Aggregatable Global Unicast 001 1/8 (2000:…./3, 3000:…./3) Link-Local Unicast 1/1024 (FE80:…./10) Site-Local Unicast 1/1024 (FEC0:…./10) Multicast 1/256 (FF…./8)
13
IPv6 Address Syntax IPv6 Syntax IPv6 address in binary form:
Divided along 16-bit boundaries: Each 16-bit block is converted to hexadecimal and delimited with colons: 21DA:00D3:0000:2F3B:02AA:00FF:FE28:9C5A Suppress leading zeros within each 16-bit block: 21DA:D3:0:2F3B:2AA:FF:FE28:9C5A
14
Compressing Zeros Some IPv6 addresses contain long sequences of zeros
A single contiguous sequence of 16-bit blocks set to 0 can be compressed to “::” (double-colon) Example: FE80:0:0:0:2AA:FF:FE9A:4CA2 FE80::2AA:FF:FE9A:4CA2 FF02:0:0:0:0:0:0:2 FF02::2 Cannot use zero compression to include part of a 16-bit block FF02:30:0:0:0:0:0:5 does not become FF02:3::5.
15
IPv6 Prefixes (CIDR) IPv6 subnets or routes always uses address/prefix-length notation CIDR notation Examples: 21DA:D3::/48 for a route 21DA:D3:0:2F3B::/64 for a subnet No more dotted decimal subnet masks as in IPv4
16
Types of IPv6 Addresses Unicast Multicast Anycast
Address of a single interface One-to-one delivery to single interface Multicast Address of a set of interfaces One-to-many delivery to all interfaces in the set Anycast One-to-one-of-many delivery to a single interface in the set that is closest No more broadcast addresses
17
Unicast IPv6 Addresses 類別
Aggregatable global unicast addresses Link-local addresses Site-local addresses Special addresses Compatibility addresses NSAP addresses
18
Aggregatable Global Unicast Addresses
Top-Level Aggregation ID (TLA ID) Next-Level Aggregation ID (NLA ID) Site-Level Aggregation ID (SLA ID) Interface ID 13 bits 8 bits 24 bits 16 bits 64 bits 001 TLA ID Res NLA ID SLA ID Interface ID
19
Topologies Within Global Addresses
Public Topology Site Topology Interface ID 001 TLA ID Res NLA ID SLA ID Interface ID 48 bits 16 bits 64 bits Public Topology Site Topology Interface Identifier
20
Local-Use Unicast Addresses
Link-local addresses Used between on-link neighbors and for Neighbor Discovery Site-local addresses Used between nodes in the same site
21
Link-Local Addresses Format Prefix 1111 1110 10
FE80::/64 prefix Used for local link only Single subnet, no router Address autoconfiguration Neighbor Discovery 10 bits 54 bits 64 bits Interface ID
22
Site-Local Addresses Format Prefix 1111 1110 11
FEC0::/48 prefix for site Used for local site only Replacement for IPv4 private addresses Intranets not connected to the Internet Routers do not forward site-local traffic outside the site 10 bits 38 bits 16 bits 64 bits Subnet ID Interface ID
23
Special IPv6 Addresses Unspecified address Loopback address
0:0:0:0:0:0:0:0 or :: Indicate the absence of an address. Typical used as a source addr. When a unique addr. has not yet been determined. Loopback address 0:0:0:0:0:0:0:1 or ::1 Identify a loopback interface, enabling a node to send packets to itself.
24
Compatibility Addresses
IPv4-compatible address 0:0:0:0:0:0:w.x.y.z or ::w.x.y.z IPv4-mapped address 0:0:0:0:0:FFFF:w.x.y.z or ::FFFF:w.x.y.z 6over4 address [64-bit prefix]:0:0 :WWXX:YYZZ (WWXX:YYZZ is the hexadecimal value of w.x.y.z ) 6to4 address Prefix of 2002:WWXX:YYZZ::/48 ISATAP address [64-bit prefix]: 0:5EFE:w.x.y.z
25
NSAP Addresses Provide a way of mapping Open System Interconnect (OSI) NSAP (Network Service Access Point)addresses to IPv6 address. [RFC 1888] NSAP addresses are used in the following OSI-based network technologies: ATM switched virtual circuit networks X.25 (see ITU-T X.121 for addressing in public data networks) Frame relay IS-IS SDH & SONET networks. 7 bits 121 bits NSAP-mapped address
26
Multicast IPv6 Addresses
Flags (4 bits, only last bit is defined, 0 mean permanently, 1, mean transient) Scope (4 bits, value: 0, reserved, 1, Node-local scope, 2 Link-local scope, 5 site-local scope, 8 organization-local scope, E Global scope, F Reversed) Defined multicast addresses All-Nodes addresses FF01::1 (Node Local), FF02::1 (Link Local) All-Routers addresses FF01::2 (Node Local), FF02::2 (Link Local), FF05::2 (Site Local) Group ID 8 bits 112 bits Flags 4 bits Scope
27
Recommended Multicast IPv6 Addresses
Only 32 bits are used to indicate the Group ID Single IPv6 multicast address maps to a single Ethernet multicast MAC address 8 bits 4 bits 4 bits 80 bits 32 bits Flags Scope 000 … 000 Group ID
28
Solicited-Node Address
64 bits 64 bits Unicast prefix Interface ID 24 bits FF02: 0:0:0:0 :1:FF Example: Node A link-local is FE80::2AA:FF:FE28:9C5A, listening to the corresponding solicited-node address FF02::1:FF28:9C5A Acts as a pseudo-unicast address for very efficient address resolution
29
Anycast IPv6 Addresses Not associated with any prefix
Summary and host routes are used to locate nearest anycast group member Subnet router anycast address: n bits 128 - n bits Subnet Prefix
30
IPv6 Addresses for a Host
Unicast addresses: A link-local address for each interface Unicast addresses for each interface (site-local or global addresses) A loopback address (::1) Listening to the Multicast addresses: The node-local scope all-nodes multicast address (FF01::1) The link-local scope all-nodes multicast address (FF02::1) The solicited-node address for each unicast address The multicast addresses of joined groups
31
IPv6 Addresses for a Router
Unicast addresses: A link-local address for each interface Unicast addresses for each interface Loopback address (::1) Anycast addresses Subnet-router anycast address Additional anycast addresses (optional) Listening to the Multicast addresses: The node-local scope all-nodes multicast address (FF01::1) The node-local scope all-routers multicast address (FF01::2) The link-local scope all-nodes multicast address (FF02::1) The link-local scope all-routers multicast address (FF02::2) The site-local scope all-routers multicast address (FF05::2) The solicited-node address for each unicast address The multicast addresses of joined groups
32
Subnetting the IPv6 Address Space
Subdividing by using high-order bits that do not already have fixed values to create subnetted network prefixes Two-step process: 1. Determine the number of bits to be used for the subnetting 2. Enumerate the new subnetted network prefixes
33
[16-bit prefix]:00 :: Subnetting for NLA IDs Hexadecimal method
34
[48-bit prefix]: :: Subnetting for SLA IDs Hexadecimal method
35
IPv6 Interface Identifiers
The last 64 bits of unicast IPv6 addresses Interface identifier based on: Extended Unique Identifier (EUI)-64 address Either assigned to a network adapter card or derived from IEEE 802 addresses Temporarily assigned, randomly generated value that changes over time A value assigned by a stateful address configuration protocol A value assigned during a Point-to-Point Protocol connection establishment A manually configured value
36
MAC 48, EUI-48, EUI-64 Company ID Extension ID U/L bit (u) U/G bit (g)
Universally (=0)/Locally (=1) Administered U/G bit (g) Unicast (=0)/Group (=1) Address 24 bits 24 bits ccccccug cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx IEEE-administered company ID Manufacturer-selected extension ID
37
IEEE EUI-64 Addresses Extended Unique Identifier Company ID
Extension ID ccccccug cccccccc cccccccc 24 bits 40 bits xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx IEEE-administered company ID Manufacturer-selected extension ID
38
Conversion of an IEEE 802 Address to an EUI-64 Address
IEEE-administered company ID Manufacturer-selected extension ID 24 bits 24 bits ccccccug cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx IEEE 802 Address ccccccug cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx EUI-64 Address 0xFF 0xFE
39
Conversion of an EUI-64 Address to an IPv6 Interface ID
ccccccug cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx Complement the universally/locally administered (U/L) bit ccccccUg cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx IPv6 Interface Identifier
40
Conversion of an IEEE 802 Address to an IPv6 Interface ID
IEEE-administered company ID Manufacturer-selected extension ID 24 bits 24 bits cccccc00 cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx IEEE 802 Address EUI-64 Address cccccc00 cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx 0xFF 0xFE cccccc10 cccccccc cccccccc xxxxxxxx xxxxxxxx xxxxxxxx IPv6 Interface Identifier 64 bits
41
IEEE 802 Address Conversion Example
Host A has the MAC address of 00-AA-00-3F-2A-1C 1. Convert to EUI-64 format 00-AA-00-FF-FE-3F-2A-1C 2. Complement the U/L bit The first byte in binary form is When the seventh bit is complemented, it becomes (0x02). Result is 02-AA-00-FF-FE-3F-2A-1C 3. Convert to colon hexadecimal notation 2AA:FF:FE3F:2A1C Link-local address for node with the MAC address of 00-AA- 00-3F-2A-1C is FE80::2AA:FF:FE3F:2A1C.
42
Temporary Address Interface Identifiers
Random IPv6 interface identifier Prevent identification of traffic regardless of the prefix Initial value based on random number Future values based on MD5 hash of history value and EUI-64-based interface identifier Result is a temporary address Generated from public address prefixes using stateless address autoconfiguration Changes over time
43
Mapping IPv6 Multicast Addresses to Ethernet Addresses
8 16 24 32 FF...: 33-33- Ethernet For example: an host with MAC address of 00-AA-00-3F-2A-1C (i.e., link-local IPv6 address is FE80::2AA:FF:FE3F:2A1C) adds the following Multicast MAC addresses to the table of interesting destination MAC addresses On the Ethernet adaptor: The address of , which corresponding to FF02::1 the address of FF-3F-2A-1C, which corresponds to the solicited-node address of FF02::1:FF3F:2A1C. (Remember that the solicited address is the Prefix FF02::1:FF00:0/104 and the last 24 bits of the unicast IPv6 address.
44
IPv4 Addresses and IPv6 Equivalents
IPv4 Address IPv6 Address Internet address classes N/A Multicast addresses ( /4) IPv6 multicast addresses (FF00::/8) Broadcast addresses N/A Unspecified address is Unspecified address is :: Loopback address is Loopback address is ::1 Public IP addresses Aggregatable global unicast addresses Private IP addresses Site-local addresses (FEC0::/48) APIPA addresses [RFC 3927] Link-local addresses (FE80::/64) Dotted decimal notation Colon hexadecimal format Subnet mask or prefix length Prefix length notation only
45
Review IPv6 address space IPv6 address syntax Unicast IPv6 addresses
Multicast IPv6 addresses Anycast IPv6 addresses IPv6 interface identifiers IPv4 addresses and IPv6 equivalents
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.