+ All Categories
Home > Documents > Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong...

Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong...

Date post: 03-Oct-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
27
1 Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBC
Transcript
Page 1: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

1

Cpsc527 - Lecture 3 IPv6 (RFC1883)

Dr. Son Vuong UBC

Page 2: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

2

Limitations of current Internet Protocol (IP)How many addresses do we need?Features of new IP

Address AllocationProvider selectionMobilityAutoconfiguration

Overview

Page 3: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

3

IP AddressesIP AddressesIP AddressesExample: 164.107.134.5= 1010 0100 : 0110 1011 : 1000 0110 : 0000 0101= A4:6B:86:05 (32 bits)Maximum number of address = 232 = 4 BillionClass A Networks: 15 Million nodesClass B Networks: 64,000 nodes or lessClass C Networks: 250 nodes or less

Page 4: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

4

IP AddressIP AddressIP AddressClass A: Network Local0

71 24 bits

Network Local10142 16 bits

Class B:

Network Local110213 8 bits

Class C:

Local = Subnet + Host (Variable length)

Router Router

Subnet

Host Group (Multicast)1110284 bits

Class D:

Page 5: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

5

Three Possible IP Death ScenarioThree Possible IP Death ScenarioThree Possible IP Death Scenario

No more addressesNo more network numbersToo big routing tables and routing messagesBand-aids for mobility, integrated services, securityIn 12/1987: Network number shortage [Callon]

Year Networks Computers1980 10 102

1990 103 105

1997 106 108

Page 6: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

6

How Many AddressesHow Many AddressesHow Many AddressesDo We Need?Do We Need?Do We Need?

10 Billion people by 2020Each person will be served by more than one computerAssuming 100 computers per person ⇒ 1012 computersMore addresses may be required since

Multiple interfaces per nodeMultiple addresses per interface

Some believe 26 to 28 addresses per hostSafety margin ⇒ 1015 addressesIPng Requirements ⇒ 1012 end systems and 109 networksDesirable 1012 to 1015 networks

Page 7: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

7

IPv6 AddressesIPv6 AddressesIPv6 Addresses128-bit long. Fixed size2128 = 3.4×1038 addresses⇒ 665×1021 addresses per sq. m of earth surfaceIf assigned at the rate of 106/µs, it would take 20 yearsExpected to support 8×1017 to 2×1033 addresses8×1017 ⇒ 1,564 addresses per sq. mAssigned to Interfaces. Allows multiple interfaces per host.Allows multiple addresses per interfaceAllows unicast, multicast, anycastAllows provider based, site-local, link-local85% of the space is unassigned

Page 8: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

8

Colon-Hex NotationColon-Hex NotationColon-Hex NotationDot-Decimal: 127.23.45.88Colon-Hex: FEDC:0000:0000:0000:3243:0000:0000:ABCD

Can skip leading zeros of each wordCan skip one sequence of zero words, e.g.,FEDC::3243:0000:0000:ABCD::3243:0000:0000:ABCD3243:0000:0000:ABCD::Can leave the last 32 bits in dot-decimal, e.g., ::127.23.45.88Can specify a prefix by /length, e.g., 2345:BA23:7000::/40

Page 9: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

9

Initial IPv6 Prefix AllocationInitial IPv6 Prefix AllocationInitial IPv6 Prefix AllocationAllocation Prefix Allocation PrefixReserved 0000 0000 Unassigned 101Unassigned 0000 0001 Unassigned 110NSAP 0000 001 Unassigned 1110IPX 0000 010 Unassigned 1111 0Unassigned 0000 011 Unassigned 1111 10Unassigned 0000 1 Unassigned 1111 110Unassigned 0001 Unassigned 1111 1110Unassigned 001 Unassigned 1111 1110 0Provider-based 010 Link-Local 1111 1110 10Unassigned 011 Site-Local 1111 1110 11Geographic 100 Multicast 1111 1111

Page 10: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

10

Provider-based Unicast AddressesProvider-based Unicast AddressesProvider-based Unicast Addresses

5-bit Registry: 18 hex ⇒ InterNIC, 8 ⇒ RIPNIC,14 hex ⇒ APNIC, 10 hex ⇒ IANAVariable size partitions (n=5, m=16, 0=24, p=32, Interface=48) Multiple subnets per subscriber (physical link)One subnet cannot span multiple subscribers (physical links)

Provider IDSubscriber ID Subnet ID Interface IDRegistry ID0103 n bits m bits o bits p bits 125-m-n-o-p

Page 11: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

11

Local-Use AddressesLocal-Use AddressesLocal-Use AddressesLink Local: Not forwarded outside the link (LAN), FE:80::xxx

0 Interface ID1111 1110 1010 bits n bits 118-n

Site Local: Not forwarded outside the site (LANs), FE:C0::xxx

Provides plug and play

0 Subnet ID1111 1110 1110 bits n bits m bits

Interface ID118-n-m bits

Page 12: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

12

Multicast AddressesMulticast AddressesMulticast Addresses

T = 0 ⇒ Permanent (well-known) multicast address,1 ⇒ TransientScope:

1 Node-local2 Link-local5 Site-local8 Organization-localE Global (0,F: reserved)

Predefined: 1 ⇒ All nodes, 2 ⇒ Routers, 1:0 ⇒ DHCP servers

8 bits 4 bits 4 bits 112 bitsFlags Scope1111 1111 Group ID

0 0 0 T

Page 13: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

13

Multicast Addresses (Cont)Multicast Addresses (Cont)Multicast Addresses (Cont)Example: 43 ⇒ Network Time Protocol Servers

FF01::43 ⇒ All NTP servers on this nodeFF02::43 ⇒ All NTP servers on this linkFF05::43 ⇒ All NTP servers in this siteFF08::43 ⇒ All NTP servers in this organizationFF0E::43 ⇒ All NTP servers in the Internet

Page 14: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

n14

IP Version NumbersIP Version NumbersIP Version NumbersAssigned by Internet Assigned Number Authority (IANA)Version 1-3 were never formally assignedIPv4: Current IPIPv5: STIPv6: IP - The Next Generation (based on a TV show)IPv7: Initial next generation (One of the IAB documentsincorrectly reported current version as 6)

Page 15: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

15

HeaderHeaderHeader

Version Priority Flow LabelPayload Length Next Header Hop Limit

Source Address

Destination Address

Version IHL Type of Service Total LengthIdentification Flags Fragment Offset

Time to Live Protocol Header ChecksumSource Address

Destination AddressPaddingOptions

IPv6:

IPv4:

Page 16: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

16

IPv6 vs IPv4IPv6 vs IPv4IPv6 vs IPv41995 vs 1975IPv6 only twice the size of IPv4 headerOnly version number has the same position and meaning asin IPv4Removed: header length, type of service, identification,flags, fragment offset, header checksumRedefined: length, protocol type, time to liveAdded: Priority and flow labelAll fixed size fields.No optional fields. Replaced by extension headers.8-bit hop limit = 255 hops max (Limits looping)Next Header = 6 (TCP), 17 (UDP),

Page 17: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

17

Protocol and Header TypesProtocol and Header TypesProtocol and Header TypesDecimal Keyword Header Type0 HBH Hop-by-hop (IPv6)1 ICMP Internet Control Message 2 IGMP Internet Group Management (IPv4)3 GGP Gateway-to-Gateway4 IP IP in IP (IPv4 Encaptulation)5 ST Stream6 TCP17 UDP29 ISO-TP443 RH Routing Header (IPv6)44 FS Fragmentation Header (IPv6)45 IDRP Interdomain Routing51 AH Authentication header (IPv6)52 ESP Encrypted Security Payload59 Null No next header60 ISO-IP CLNP88 IGRP89 OSPF Open Shortest Path First

Page 18: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

18

Extension HeadersExtension HeadersExtension Headers

Most extension headers are examined only at destinationRouting: Loose or tight source routingFragmentation: All IPv6 routers can carry 536 Byte payloadAuthenticationSecurity Encaptulation: ConfidentialityHop-by-Hop Option: Special options that require processingat every node, e.g., jumbogram option for packets longerthan 64 kB - upto 4GB (32-bit length)Destination Options:

BaseHeader

ExtensionHeader 1

ExtensionHeader n Data

Page 19: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

19

Routing HeaderRouting HeaderRouting Header

Strict ⇒ Discard if Address[Next-Address] ≠ neighborType = 0 ⇒ Current source routingType > 0 ⇒ Policy based routing (later)New Functionality: Provider selection, Host mobility, Auto-readdressing (route to new address)

Next Header Routing Type Num. AddressReserved Strict/Loose bit mask

Address 1

Address 2

Address n

Next Address

Page 20: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

20

Address AutoconfigurationAddress AutoconfigurationAddress AutoconfigurationAllows plug and playBOOTP and DHCP are used in IPv4DHCPng will be used with IPv6Two Methods: Stateless and StatefulStateless:

A system uses link-local address as source andmulticasts to "All routers on this link"Router replies and provides all the needed prefix infoAll prefixes have an associated lifetimeSystem can use link-local address permanently if norouter

Page 21: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

21

Address Autoconfiguration (Cont)Address Autoconfiguration (Cont)Address Autoconfiguration (Cont)Two lifetimes: Valid > preferredPrefix cannot be used after valid lifetime expiresPrefix can be used after preferred lifetime expires but itis better to choose other addresses

Duplicate Detection: Send to selfStateful:

Problem w stateless: Anyone can connectRouters ask the new system to go DHCP server (bysetting managed configuration bit)System multicasts to "All DHCP servers"DHCP server assigns an address

Page 22: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

22

Transition MechanismsTransition MechanismsTransition MechanismsDual-IP Hosts, Routers, Name serversTunneling IPv6 over IPv4Hosts and Routers can be gradually upgraded to IPv6It is better (though not required) to upgrade routers beforeupgrading hosts

Application

IPv4 IPv6

TCP

Ethernet

Internet Dual

IPv4

Page 23: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

Cpsc 317 – Fall 2006 © Dr. Son Vuon 22b

TunnelingA B E F

IPv6 IPv6 IPv6 IPv6

tunnelLogical view:

Physical view:A B E F

IPv6 IPv6 IPv6 IPv6

C D

IPv4 IPv4

Flow: XSrc: ADest: F

data

Flow: XSrc: ADest: F

data

Flow: XSrc: ADest: F

data

Src:BDest: E

Flow: XSrc: ADest: F

data

Src:BDest: E

A-to-B:IPv6

E-to-F:IPv6B-to-C:

IPv6 insideIPv4

B-to-C:IPv6 inside

IPv4

Dual IPv6/IPv4 Router

Dual IPv6/IPv4 Router

Page 24: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

23

Transition Mechanisms (Cont)Transition Mechanisms (Cont)Transition Mechanisms (Cont)Domain Name Server (DNS) records will tell hosts whichIP to use for a destinationIPv4 addresses use record type "A" with 32-bit addressesIPv6 will use record type "AAAA" (quad-A) with 128-bitaddressesDNS servers may be upgraded to provide the new recordtype but may use IPv4 for communicationIPv6 hosts may also use manually configured host tables ifno upgraded DNS server

Page 25: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

24

Application IssuesApplication IssuesApplication IssuesMost application protocols will have to be upgradedFTP, SMTP, Telnet, Rlogin27 of 51 Full Internet standards, 6 of 20 draft standards, 25of 130 proposed standards will be revised for IPv6No checksum ⇒ checksum at upper layer is mandatory,even in UDPnon-IETF standards: X-Open, Kerberos, ... will be updatedShould be able to request and receive AAAA DNS recordsMay want to take advantage of new features: Security, flowcontrol, encryption, ...Extension to TCP socket interface has already beendeveloped

Page 26: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

25

ImplementationsImplementationsImplementations4.4-lite BSD by US Naval Research Laboratory (NRL)UNIX, OPEN-VMS by Digital Equipment Corporation.DOS/WINDOWS by FTP SoftwareHP-UX SICS (Swedish Institute of Computer Science)LinuxNetBSD by INRIA RocquencourtSolaris 2 by SunStreams by MentatRouters: Cisco, Nortel, Juniper, Hitachi, BitwayComplete list in: http://www.ipv6.org/impl/index.html

Page 27: Cpsc527 - Lecture 3 IPv6 (RFC1883) Dr. Son Vuong UBCcs527/Lectures2010/3-IPv6-527-10.pdfProvider-based010 Link-Local 1111 1110 10 Unassigned 011 Site-Local 1111 1110 11 Geographic

26

SummarySummarySummary

IPv6 uses 128-bit addressesAllows provider-based, site-local, link-local, multicast,anycast addressesFixed header size. Extension headers instead of options.Extension headers for provider selection, securityAllows auto-configurationDual-IP router and host implementations for transition


Recommended