Chapter 26 IPv 6 Addressing Kyung Hee University

  • Slides: 27
Download presentation
Chapter 26 IPv 6 Addressing Kyung Hee University 1

Chapter 26 IPv 6 Addressing Kyung Hee University 1

26. 1 Introduction q An IPv 6 address is 128 bits or 16 bytes

26. 1 Introduction q An IPv 6 address is 128 bits or 16 bytes (octet) long as shown in Figure 26. 1. The address length in IPv 6 is four times of the length address in IPv 4. Kyung Hee University 2

Introduction (cont’) q Notation Dotted-Decimal Notation 221. 14. 65. 11. 105. 45. 170. 34.

Introduction (cont’) q Notation Dotted-Decimal Notation 221. 14. 65. 11. 105. 45. 170. 34. 12. 234. 18. 0. 14. 0. 115. 255 Colon Hexadecimal Notation l To make address more readable 128 bits are divided into eight sections, each two bytes in length (4 hexadecimal digits) Therefore, the address consists of 32 hexadecimal digits l Zero compression l l Kyung Hee University 3

Introduction (cont’) Mixed representation FDEC: 14 AB: 2311: BBFE: AAAA: BBBB: 130. 24. 18

Introduction (cont’) Mixed representation FDEC: 14 AB: 2311: BBFE: AAAA: BBBB: 130. 24. 18 CIDR (Classless Inter-Domain Routing) Notation Kyung Hee University 4

Address Space q. The address space of IPv 6 contains 2128 addresses 340, 282,

Address Space q. The address space of IPv 6 contains 2128 addresses 340, 282, 366, 920, 938, 463, 374, 607, 431, 768, 211, 456 296 times of the IPv 4 address Kyung Hee University 5

26. 2 Address Space Allocation q. The address space of IPv 6 is divided

26. 2 Address Space Allocation q. The address space of IPv 6 is divided into several blocks of varying size and each block is allocated for special purpose Kyung Hee University 6

Prefix for IPv 6 Address Kyung Hee University 7

Prefix for IPv 6 Address Kyung Hee University 7

Address Space Allocation (cont’) q. Algorithm for finding the allocated blocks Kyung Hee University

Address Space Allocation (cont’) q. Algorithm for finding the allocated blocks Kyung Hee University 8

Address Space Allocation (cont’) q. IPv 4 compatible address l l Part of address

Address Space Allocation (cont’) q. IPv 4 compatible address l l Part of address that use the prefix (0000) is used to define some IPv 4 compatible address In CIDR notation, this block can be defined as 0000: : /8 Unspecified address Kyung Hee University l Subblock containing only one single address l This address is used during bootstrap l CIDR notation is : : /128 9

Address Space Allocation (cont’) Loopback address Kyung Hee University l This subblock also consists

Address Space Allocation (cont’) Loopback address Kyung Hee University l This subblock also consists of one single address l This address is used by a host to test itself l The CIDR notation for this one-address is : : 1/128 10

Address Space Allocation (cont’) Embedded IPv 4 address l l During the transition from

Address Space Allocation (cont’) Embedded IPv 4 address l l During the transition from IPv 4 to IPv 6, host can use their IPv 4 address embedded in IPv 6 address A compatible address is an address of 96 bits of zero followed by 32 bits of IPv 4 address – l A mapped address comprise 80 bits of zero, followed by 16 bits of one, followed by 32 -bit IPv 4 address – Kyung Hee University Used when a computer using IPv 6 wants to send a message to another computer using IPv 6 via IPv 4 network Used when a computer that has migrated to IPv 6 wants to send a packet to a computer still using IPv 4 11

Address Space Allocation (cont’) q Global Unicast Block Main block used for unicast communication

Address Space Allocation (cont’) q Global Unicast Block Main block used for unicast communication between hosts in the Internet q Unique Local Unicast Block IPv 6 uses two large blocks for private addressing Unique local unicast block can be privately created and used by a site The block identifier is 1111 110, the next bit can be 0 or 1 to define how the address is selected (locally or by an authority) Kyung Hee University 12

Address Space Allocation (cont’) q. Link Local Block The second block designed for private

Address Space Allocation (cont’) q. Link Local Block The second block designed for private address Block identifier is 111111 1010 The next 54 bits are set to zero The last 64 bits can be changed to define the interface for each computer Kyung Hee University 13

Address Space Allocation (cont’) q. Multicast Block In IPv 6, a large block of

Address Space Allocation (cont’) q. Multicast Block In IPv 6, a large block of addresses are assigned for multicasting Prefix is 1111 The second field is flag field that defines the group address as either permanent or transient The third field defines the scope of the group address Kyung Hee University 14

26. 3 Global Unicast Address q. Used for unicast (one-to-one) communication between two hosts

26. 3 Global Unicast Address q. Used for unicast (one-to-one) communication between two hosts in the Internet q. CIDR notation for the block is 2000: : /3 The three leftmost bits are the same for all addresses in this block (001) q. The size of this block is 125 bits, which is more than enough for the Internet expansion in the many years to come Kyung Hee University 15

Global Unicast Address (cont’) q. Three Levels of Hierarchy Recommended length of different parts

Global Unicast Address (cont’) q. Three Levels of Hierarchy Recommended length of different parts in unicast addressing Kyung Hee University 16

Global Unicast Address (cont’) Global routing prefix l l Used to route the packet

Global Unicast Address (cont’) Global routing prefix l l Used to route the packet through the Internet to organization site such as ISP The first three bits is 001, the rest of 45 bits can define up to 245 sites Subnet identifier l Define a subnet in an organization l Organizations can have up to 216 = 65, 535 subnets Interface identifier Kyung Hee University l The last 64 bits define the interface identifier l EUI-64 and Ethernet MAC 17

Global Unicast Address (cont’) Mapping for EUI-64 Mapping for Ethernet MAC Kyung Hee University

Global Unicast Address (cont’) Mapping for EUI-64 Mapping for Ethernet MAC Kyung Hee University 18

Example 26. 11 Find the interface identifier if the physical address in the EUI

Example 26. 11 Find the interface identifier if the physical address in the EUI is (F 5 -A 9 -23 -EF-07 -14 -7 A-D 2)16 using the format we defined for Ethernet addresses. Solution We only need to change the seventh bit of the first octet from 0 to 1 and change the format to colon hex notation. The result is F 7 A 9: 23 EF: 0714: 7 AD 2. Kyung Hee University 19

Example 26. 12 Find the interface identifier if the Ethernet physical address is (F

Example 26. 12 Find the interface identifier if the Ethernet physical address is (F 5 -A 9 -23 -14 -7 A-D 2)16 using the format we defined for Ethernet addresses. Solution We only need to change the seventh bit of the first octet from 0 to 1, insert two octet FFFE 16 and change the format to colon hex notation. The result is F 7 A 9: 23 FF: FE 14: 7 AD 2 in colon hex. Kyung Hee University 20

Example 26. 14 An organization is assigned the block 2000: 1456: 2474/48. What is

Example 26. 14 An organization is assigned the block 2000: 1456: 2474/48. What is the IPv 6 address of an interface in the third subnet if the IEEE physical address of the computer is (F 5 -A 9 -23 -14 -7 A-D 2)16. Solution The interface identifier is F 7 A 9: 23 FF: FE 14: 7 AD 2 (see Example 26. 12). If we add this identifier to the global prefix and the subnet identifier, we get: Kyung Hee University 21

26. 4 Autoconfiguration q. One of the interesting features of IPv 6 addressing q.

26. 4 Autoconfiguration q. One of the interesting features of IPv 6 addressing q. DHCP protocol can still be used to allocate an IPv 6 address to a host, but a host can also configure itself. 1. The host first creates link local address for itself l 10 -bit link local prefix(1111 1110 10), adding 54 zeros, and adding the 64 -bit interface identfier 2. The host then tests to see if this link local address is unique and not used by other hosts 3. If the link local address is unique, the host stores this address as its link-local address Kyung Hee University 22

Example 26. 15 Assume a host with Ethernet address (F 5 -A 9 -23

Example 26. 15 Assume a host with Ethernet address (F 5 -A 9 -23 -119 B-E 2)16 has joined the network. What would be its global unicast address if the global unicast prefix of the organization is 3 A 21: 1216: 2165 and the subnet identifier is A 245: 1232. Solution The host first creates its interface identifier as F 7 A 9: 23 FF: FE 11: 9 BE 2 using the Ethernet address read from its card. The host then creates its link-local address as Kyung Hee University 23

Example 26. 15 (cont’) q. Assuming that this address is unique, the host sends

Example 26. 15 (cont’) q. Assuming that this address is unique, the host sends a router solicitation message and receives the router advertisement message that announces the combination of global unicast prefix and the subnet identifier as 3 A 21: 1216: 2165: A 245: 1232. The host then appends its interface identifier to this prefix to find and store its global unicast address as: Kyung Hee University 24

26. 5 Renumbering q. Allow sites to change the service provider q. If the

26. 5 Renumbering q. Allow sites to change the service provider q. If the site changes the provider, the address prefix needs to be changed A router to which the site is connected can advertise a new prefix and let the site use the old prefix for a short time before disabling it Kyung Hee University 25

Summary q IPv 6, the latest version of the Internet Protocol, has a 128

Summary q IPv 6, the latest version of the Internet Protocol, has a 128 -bit address space. IPv 6 uses hexadecimal colon notation with abbreviation methods available. There are three types of addresses: unicast, anycast, and multicast. The variable-type prefix field defines the address type or purpose. q To make addresses more readable, IPv 6 specifies colon hexadecimal notation. In this notation, 128 bits are divided into eight sections, each 2 bytes (four hexadecimal digits) in length. To abbreviate an address, the leading zeros of a section can be omitted. Zero compression, can also be applied. IPv 6 also allows CIDR notation. q In IPv 6, a destination address can belong to one of the three categories: unicast, anycast, and multicast. A unicast address defines a single interface. An anycast address defines a group of computers only one copy of a packet is sent to one of the computer in the group. A multicast address also defines a group of computers; each member of the group receives a copy of the packet. Kyung Hee University 26

Summary q The address space of IPv 6 is divided into several blocks of

Summary q The address space of IPv 6 is divided into several blocks of varying size and each block is allocated for a special purpose. Most of the blocks are still unassigned and have been left aside for future use. Some block are used for reserved addressed. The most important block is the one with prefix 001, which is used for global unicast addressing (similar to class A, B, C in IPv 4 addressing) q Two interesting features of IPv 6 addressing are autoconfiguration and numbering. In IPv 6, a host can be autoconfigured itself in addition to using DHCP. Renumbering allows a site to change its connectivity to another provider and automatically receive a new prefix. Kyung Hee University 27