Top Banner
1 1 v1.0 IPv6 Address Planning
86

IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

May 26, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

11 v1.0

IPv6 Address Planning

Page 2: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

2 v1.02

Agenda

• IPv6 Address Structure

• IPv6 Subnetting

• Nibble Boundary

• Example: ISP

• Example: Enterprise and Campus

Page 3: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

3 v1.03

IPv6 Address Recap

0 127

ISP /32

32

Customer Site /48

16

End Site Subnet /64

16

64

Device 128 Bit Address

Interface ID64

Network Prefix 63

Page 4: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

4 v1.04

Agenda

• IPv6 Address Structure

• IPv6 Subnetting

• Nibble Boundary

• Example: ISP

• Example: Enterprise and Campus

Page 5: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

5 v1.05

Subnetting (Example)

• Provider A has been allocated

2001:DB8::/32

o will delegate /48 blocks to its customers

Q. Find the blocks provided to the first 4 customers

5

Page 6: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

6 v1.06

Subnetting (Example)

6

2001:0DB8::/32

2001:0DB8:0000::/48

Original block:

Rewrite as a /48 block: This is your network prefix!

How many /48 blocks are there in a /32?

Find only the first 4 /48 blocks…

2^16 = 65536

Page 7: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

7 v1.07

Subnetting (Example)

7

2001:0DB8:0000::/48 In bits

0000 0000 0000 0000 2001:0DB8: ::/48

0000 0000 0000 0001 2001:0DB8: ::/48

0000 0000 0000 0010 2001:0DB8: ::/48

0000 0000 0000 0011 2001:0DB8: ::/48

Start by manipulating the LSB of your network prefix – write in bits

2001:0DB8:0000::/48

2001:0DB8:0001::/48

2001:0DB8:0002::/48

2001:0DB8:0003::/48

Then write back into hex digits

Page 8: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

8 v1.08

Exercise 1.1: IPv6 subnetting

Identify the first four /36 sub-prefixes out of 2406:6400::/32

1. _____________________

2. _____________________

3. _____________________

4. _____________________

8

Hex Binary

0 0000

1 0001

2 0010

3 0011

4 0100

5 0101

6 0110

7 0111

… …

c 1100

d 1101

e 1110

f 1111

Page 9: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

9 v1.09

Exercise 1.2: IPv6 subnetting

Identify the first four /35 sub-prefixes out of 2406:6400::/32

1. _____________________

2. _____________________

3. _____________________

4. _____________________

9

Hex Binary

0 0000

1 0001

2 0010

3 0011

4 0100

5 0101

6 0110

7 0111

… …

c 1100

d 1101

e 1110

f 1111

Page 10: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

10 v1.010

Agenda

• IPv6 Address Structure

• IPv6 Subnetting Brief Review

• Nibble Boundary

• Example: ISP

• Example: Enterprise and Campus

Page 11: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

11 v1.011

What is a nibble boundary?

• In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy

to calculate.

https://blog.apnic.net/2018/08/10/how-to-calculating-ipv6-subnets-outside-the-nibble-boundary/

Page 12: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

12 v1.012

What is a nibble boundary?

• In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy

to calculate.

• For example, we have an allocation: 2001:db8::/32. Taking slices from this pool within a 4-bit

boundary is quite easy.

https://blog.apnic.net/2018/08/10/how-to-calculating-ipv6-subnets-outside-the-nibble-boundary/

Page 13: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

13 v1.013

What is a nibble boundary?

• In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy

to calculate.

• For example, we have an allocation: 2001:db8::/32. Taking slices from this pool within a 4-bit

boundary is quite easy.

https://blog.apnic.net/2018/08/10/how-to-calculating-ipv6-subnets-outside-the-nibble-boundary/

/36 slices (1 x 4 bits)2001:db8:0000::/362001:db8:1000::/362001:db8:2000::/362001:db8:3000::/36….

Page 14: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

14 v1.014

What is a nibble boundary?

• In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy

to calculate.

• For example, we have an allocation: 2001:db8::/32. Taking slices from this pool within a 4-bit

boundary is quite easy.

https://blog.apnic.net/2018/08/10/how-to-calculating-ipv6-subnets-outside-the-nibble-boundary/

/36 slices (1 x 4 bits)2001:db8:0000::/362001:db8:1000::/362001:db8:2000::/362001:db8:3000::/36….

/40 slices (2 x 4 bits)2001:db8:0000::/402001:db8:0100::/402001:db8:0200::/402001:db8:0300::/40….

Page 15: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

15 v1.015

What is a nibble boundary?

• In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy

to calculate.

• For example, we have an allocation: 2001:db8::/32. Taking slices from this pool within a 4-bit

boundary is quite easy.

https://blog.apnic.net/2018/08/10/how-to-calculating-ipv6-subnets-outside-the-nibble-boundary/

/36 slices (1 x 4 bits)2001:db8:0000::/362001:db8:1000::/362001:db8:2000::/362001:db8:3000::/36….

/40 slices (2 x 4 bits)2001:db8:0000::/402001:db8:0100::/402001:db8:0200::/402001:db8:0300::/40….

/44 slices (3 x 4 bits)2001:db8:0000::/442001:db8:0010::/442001:db8:0020::/442001:db8:0030::/44….

Page 16: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

16 v1.016

What is a nibble boundary?

• In the context of IPv6, the nibble boundary refers to 4 bits. Any change in multiples of 4 bits is easy

to calculate.

• For example, we have an allocation: 2001:db8::/32. Taking slices from this pool within a 4-bit

boundary is quite easy.

https://blog.apnic.net/2018/08/10/how-to-calculating-ipv6-subnets-outside-the-nibble-boundary/

/36 slices (1 x 4 bits)2001:db8:0000::/362001:db8:1000::/362001:db8:2000::/362001:db8:3000::/36….

/40 slices (2 x 4 bits)2001:db8:0000::/402001:db8:0100::/402001:db8:0200::/402001:db8:0300::/40….

/44 slices (3 x 4 bits)2001:db8:0000::/442001:db8:0010::/442001:db8:0020::/442001:db8:0030::/44….

/48 slices (4 x 4 bits)2001:db8:0000::/482001:db8:0001::/482001:db8:0002::/482001:db8:0003::/48….

Page 17: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

17 v1.017

Agenda

• IPv6 Address Structure

• IPv6 Subnetting Brief Review

• Nibble Boundary

• Example: ISP

• Example: Enterprise and Campus

Page 18: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

18 v1.018

IPv6 Address Planning

• Network Operators normally are allocated /32 by RIRs

• Global Routing prefix /48

o /48, /52, /56… (ISPs to end site)

o upstream could filter anything smaller

o Consider the routing table size!

18

/12 APNIC Allocation

Portable

Portable

/48 Assignment /48 - /64 Assignment

APNIC Allocation

/48 - /64Assignment

Non-Portable Non-Portable

/40

/32 Member Allocation

Non-Portable

/12

Sub-allocation

Page 19: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

19 v1.019

IPv6 BGP Routing Table

http://www.cidr-report.org/ 20190831

Page 20: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

20 v1.020

IPv6 Address Planning Considerations

• Shift in thought:

o IPv4: number of hosts L

o For example, 5 hosts -> 7 addresses -> /29

o IPv6: number of subnets!

o For example, one VLAN -> one subnet -> one /64

20

Page 21: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

21 v1.021

IPv6 Address Planning Considerations

• Future traffic engineering needs?

21

Contiguous assignment

Split assignment

Customer 1Customer 2Customer 3Customer 4

Customer 1 Customer 2Customer 3 Customer 4

Page 22: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

22 v1.022

Example Topology of ISP

Internet

ISP network

Page 23: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

23 v1.023

Example Topology of ISP

Internet

ISP network

Enterprise customers

Enterprise customers

Broadband customers

Broadband customers

Enterprise customers

Enterprise customers

Page 24: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

24 v1.024

Address Planning of ISP

• For example, the ISP has been allocated 2001:db8::/32 by RIR.

2001:db8::/32

2001:db8:0000::/33 2001:db8:8000::/33

2001:db8:0000::/34 2001:db8:4000::/34 2001:db8:8000::/34 2001:db8:c000::/34

Page 25: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

25 v1.025

Example Topology of ISP

InternetEnterprise customers

Enterprise customers

Broadband customers

Broadband customers

Enterprise customers

Enterprise customers

ISP network

Page 26: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

26 v1.026

Address Planning: ISP Infrastructure

ISP Network

• Dedicate a /40 (or /48) for

the backbone infrastructure

o Every infrastructure

assignment from this block!

o Carried by IGP (NOT iBGP)

Page 27: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

27 v1.027

Address Planning: ISP Infrastructure

2001:db8::/32

2001:db8:0000::/40For ISP infrastructure

Page 28: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

28 v1.028

ISP Infrastructure Elements

ISP

External servers Internal servers

Page 29: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

29 v1.029

ISP Infrastructure Elements

• Loopback addresses for

each nodeISP

Page 30: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

30 v1.030

ISP Infrastructure Elements

• Loopback addresses for

each node

• Point-to-Point links

ISP

External servers Internal servers

Page 31: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

31 v1.031

ISP Infrastructure Elements

• Loopback addresses for

each node

• Point-to-Point links

• Internal Server LAN

o also called NOC LAN

o not seen from outside

ISP

External servers Internal servers

Page 32: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

32 v1.032

ISP Infrastructure Elements

ISP

• Loopback addresses for

each node

• Point-to-Point links

• Internal Server LAN

o also called NOC LAN

o not seen from outside

• External Server LAN

o Mail, DNS, etcExternal servers Internal servers

Page 33: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

33 v1.033

Address Planning: ISP Infrastructure

• Loopbacks

o Generally one /48 (/60

and /64 also common)

for all loopbacks

o /128 as loopback

ISP

External servers Internal servers

Page 34: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

34 v1.034

Address Planning: ISP Infrastructure

2001:db8::/32

2001:db8:0000::/40For ISP infrastructure

2001:db8:0000::/48For Loopback Addresses

Page 35: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

35 v1.035

IPv6 Address Plan: ISP Infrastructure

L0: 2001:db8:0:0::1/128

2001:db8:0000::/48 For Lookback Addresses

Address Block Comment

2001:db8:0000::/48 Loopback Addresses

2001:db8:0000:0000::/128 Reserved

2001:db8:0000:0000::1/128 Core1 L0

2001:db8:0000:0000::2/128 Core2 L0

2001:db8:0000:0000::3/128 Core3 L0

2001:db8:0000:0000::4/128 Core4 L0

… …

Core1 Core2

Core3Core4

L0: 2001:db8:0:0::2/128

L0: 2001:db8:0:0::4/128 L0: 2001:db8:0:0::3/128

Page 36: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

36 v1.036

Address Planning: ISP Infrastructure

• Point-to-Point links (Ex: /48 for

all P2P links)

o Assign /64 per link (RFC3177);

/127 (RFC6164/6547)

▸ Reserve /64 per link but use /127

ISP

External servers Internal servers

Page 37: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

37 v1.037

Address Planning: ISP Infrastructure

2001:db8::/32

2001:db8:0000::/40For ISP infrastructure

2001:db8:0001::/48For Point-to-Point Links

Page 38: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

38 v1.038

IPv6 Address Plan: ISP Infrastructure

GE1: 2001:db8:1:1::/127 GE1: 2001:db8:1:1::1/127

GE2: 2001:db8:1:2::/127

GE1: 2001:db8:1:2::1/127

2001:db8:0001::/48 For Point-to-Point Links

Address Block Comment

2001:db8:0001::/48 Point-to-Point Links

2001:db8:0001:0000::/64 Reserved for future

2001:db8:0001:0001::/64 Core1 GE1 <-> Core2 GE1

2001:db8:0001:0002::/64 Core2 GE2 <-> Core3 GE1

2001:db8:0001:0003::/64 Core3 GE2 <-> Core4 GE1

2001:db8:0001:0004::/64 Core4 GE2 <-> Core1 GE2

… …

Core1 Core2

Core3Core4

Page 39: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

39 v1.039

IPv6 Address Plan: ISP Infrastructure

• Internal Server/NOC LAN

o /60 (if different subnets within

the NOC), or /64ISP

External servers Internal servers

Page 40: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

40 v1.040

Address Planning: ISP Infrastructure

2001:db8::/32

2001:db8:0000::/40For ISP infrastructure

2001:db8:0002::/60For Internal Server/NOC LAN

Page 41: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

41 v1.041

IPv6 Address Plan: ISP Infrastructure

• Internal Server/NOC LAN

o /60 (if different subnets within

the NOC), or /64

• External Server LAN

o /64 (allows up to 2^64 services

to be hosted)

ISP

External servers Internal servers

Page 42: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

42 v1.042

Address Planning: ISP Infrastructure

2001:db8::/32

2001:db8:0000::/40For ISP infrastructure

2001:db8:0003::/64For External Server LAN

(Rest in the infrastructure block is reserved for future use.)

Page 43: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

43 v1.043

IPv6 Address Planning: ISP Customers

• How about the IPv6 address assignments to customers?

For example,

o Enterprise customers

o Broadband customers

Page 44: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

44 v1.044

Example Topology: ISP with Enterprise Customers

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

Page 45: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

45 v1.045

IPv6 Address Plan: Enterprise Customers

• Consider regional delegation

o Aggregation in mind!

o For example, /40 per region

Page 46: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

46 v1.046

IPv6 Address Plan: Enterprise Customers

• Consider regional delegation

o Aggregation in mind!

o For example, /40 per region

2001:db8:0100::/40For Region 1 Enterprise Customers

2001:db8:4000::/40For Region 2 Enterprise Customers

2001:db8:8000::/40For Region 3 Enterprise Customers

2001:db8:c000::/40For Region 4 Enterprise Customers

2001:db8::/32

2001:db8:4000::/342001:db8:0000::/34 2001:db8:8000::/34 2001:db8:c000::/34

Page 47: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

47 v1.047

Example Topology: ISP with Enterprise Customers

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:c000::/40

Page 48: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

48 v1.048

IPv6 Address Plan: Enterprise Customers

• One /48 per customer

o Could be transit customers or leased line customers

o Could be given additional /48s as they grow (more than 65K subnets)

• We also see ISPs give:

o /52 or /56 to mid-sized customers

o /60 for very small customers

o /64 to end sites NOT recommended!!

48

Page 49: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

49 v1.049

Example Topology: ISP with Enterprise Customers

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:C000::/40

Page 50: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

50 v1.050

IPv6 Address Plan: Region 2 Enterprise Customers2001:db8::/32

2001:db8:4000::/40For Region 2 Enterprise Customers

2001:db8:4000::/34

Page 51: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

51 v1.051

IPv6 Address Plan: Region 2 Enterprise Customers2001:db8::/32

2001:db8:4000::/40For Region 2 Enterprise Customers

2001:db8:4001::/48 for Region 2 Enterprise Customer 1

2001:db8:4000::/34

Page 52: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

52 v1.052

IPv6 Address Plan: Region 2 Enterprise Customers2001:db8::/32

2001:db8:4000::/40For Region 2 Enterprise Customers

2001:db8:4002::/48 for Region 2 Enterprise Customer 2

2001:db8:4001::/48 for Region 2 Enterprise Customer 1

2001:db8:4000::/34

Page 53: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

53 v1.053

IPv6 Address Plan: Region 2 Enterprise Customers2001:db8::/32

2001:db8:4000::/40For Region 2 Enterprise Customers

2001:db8:4003::/48 for Region 2 Enterprise Customer 3

2001:db8:4002::/48 for Region 2 Enterprise Customer 2

2001:db8:4001::/48 for Region 2 Enterprise Customer 1

2001:db8:4000::/34

Page 54: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

54 v1.054

IPv6 Address Plan: Customer WAN links

• Dedicate a /48 block for customer WAN links

o Helps to monitor customer links

o Not to be mistaken with the trusted infra PtP block!

o Actual addressing still the same:

▸ Reserve /64 and use /127

• Carried in iBGP (not IGP)

o Aggregated at the Gateway router or POP routers

54

Page 55: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

55 v1.055

IPv6 Address Plan: Region 2 Customer WAN Link2001:db8::/32

2001:db8:4000::/40For Region 2 Customers

2001:db8:4000::/48For Region 2 Customer WAN Link

First /48

2001:db8:4000::/34

Page 56: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

56 v1.056

Example Topology: ISP with Enterprise Customers

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:C000::/40

WAN Links2001:db8:4000::/48

Page 57: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

57 v1.057

Example Topology: ISP with Enterprise Customers

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:c000::/40

WAN Link 12001:db8:4000:1::/64

WAN Link 22001:db8:4000:2::/64

WAN Link 32001:db8:4000:3::/64

Page 58: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

58 v1.058

Example Topology: ISP with Enterprise Customers

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

Page 59: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

59 v1.059

Example Topology: ISP with Broadband Customers

Internet

ISP network

Region 1Broadband customers

Region 4Broadband customers

Region 2Broadband customers

Region 3Broadband customers

Page 60: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

60 v1.060

IPv6 Address Planning: ISP Broadband Customers

• Dedicate a /40 (or bigger) for Broadband network

o /48s out of the /40 to each BRAS (up to 65K BRASes)

o Announced in iBGP by BRAS

2001:db8::/32

2001:db8:0200::/40For Region 1 Broadband Customers

2001:db8:4100::/40For Region 2 Broadband Customers

2001:db8:8100::/40For Region 3 Broadband Customers

2001:db8:c100::/40For Region 4 Broadband Customers

Page 61: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

61 v1.061

Example Topology:ISP with Broadband Customers

Internet

ISP network

Region 1Broadband customers

Region 4Broadband customers

Region 2Broadband customers

Region 3Broadband customers

2001:db8:0200::/40

2001:db8:4100::/40

2001:db8:8100::/40

2001:db8:c100::/40

Page 62: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

62 v1.062

Example Topology:ISP with Broadband Customers

Internet

ISP network

Region 1Broadband customers

Region 4Broadband customers

Region 2Broadband customers

Region 3Broadband customers

2001:db8:0200::/40

2001:db8:4100::/40

2001:db8:8100::/40

2001:db8:c100::/40

Page 63: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

63 v1.063

Example Topology:ISP with Broadband Customers

BRAS

Internet

ISP network

Address Block Comment

2001:db8:c100::/40 Region 4 Broadband customers

2001:db8:c100::/48 BRAS1 Address Pool

2001:db8:c101::/48 BRAS2 Address Pool

2001:db8:c102::/48 BRAS3 Address Pool

2001:db8:c103::/48 Reserved for future BRAS

… …

2001:db8:c1ff::/48 Reserved for future BRAS

BRAS1 Address Pool2001:db8:c100::/48

BRAS2 Address Pool2001:db8:c101::/48

BRAS3 Address Pool2001:db8:c102::/48

Page 64: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

64 v1.064

Example Topology:ISP with Broadband Customers

BRAS

Internet

ISP network

Address Block Comment

2001:db8:c100::/40 Region 4 Broadband customers

2001:db8:c100::/48 BRAS1 Address Pool

2001:db8:c101::/48 BRAS2 Address Pool

2001:db8:c102::/48 BRAS3 Address Pool

2001:db8:c103::/48 Reserved for future BRAS

… …

2001:db8:c1ff::/48 Reserved for future BRAS

BRAS1 Address Pool2001:db8:c100::/48

BRAS2 Address Pool2001:db8:c101::/48

BRAS3 Address Pool2001:db8:c102::/48

Page 65: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

65 v1.065

IPv6 Address Plan: Broadband Customer

• Depends on your deployment

o ND-RA for CPE WAN side

▸ A /64 prefix on BRAS can still support 2^64 CPEs through SLAAC

o DHCPv6-PD for CPE LAN side

▸ A /48 pool on each BRAS (65k /64s can be delegated)

65

Page 66: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

66 v1.066

Example Topology:ISP with Broadband Customers

BRAS

Home2 LAN

Internet

ISP network

Address Block Comment

2001:db8:c100::/40 Region 4 Broadband customers

2001:db8:c100::/48 BRAS1 Address Pool

2001:db8:c100:0000::/64 CPE WAN side

2001:db8:c100:0001::/64 Home 1

2001:db8:c100:0002::/64 Home 2

2001:db8:c100:0003::/64 Home 3

… …

2001:db8:c100:0001::/64

2001:db8:c100:0002::/64

CPE WAN side2001:db8:c100:0000::/64

Home1 LAN

Page 67: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

67 v1.067

Example Topology:ISP with Broadband Customers

BRAS

CPE/RG

Home2 LAN

Internet

ISP network

Address Block Comment

2001:db8:c100::/40 Region 4 Broadband customers

2001:db8:c100::/48 BRAS1 Address Pool

2001:db8:c100:0000::/64 CPE WAN side

2001:db8:c100:0001::/64 Home 1

2001:db8:c100:0002::/64 Home 2

2001:db8:c100:0003::/64 Home 3

… …

2001:db8:c100:0001::/64

2001:db8:c100:0002::/64

CPE WAN side2001:db8:c100:0000::/64

Home1 LAN

Page 68: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

68 v1.068

IPv6 Address Plan: DC services

• DC infra blocks from your infra blocko Loopbacks

o PtP links

• dedicate /40 for Data Center (hosted) serviceso Depends on DC architecture

o Dedicated VLAN/subnet per service?

▸ /64 per VLAN/subnet (2^64 servers)

o Dedicated subnet per customer (customer buys VMs/hosts services)?

▸ /64 per customer or subnet (2^64 VMs)

o Announced in iBGP (DC border router)

68

Page 69: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

69 v1.069

IPv6 Address Plan: Traffic Shaping

• If the ISP has been multihomed to transit

providers. (Borrow from IPv4)

o sub-aggregates to shape traffic

o Difficult with contiguous assignment

• Assign customer prefixes (that attract

traffic) from both ends of address space

o Infrastructure prefix do not attract traffic

69

Internet

Transit Provider

Transit Provider

ISP

Page 70: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

70 v1.070

IPv6 Address Plan: Traffic Shaping

• Customer prefixes assigned from each /33 sub-prefix

o Similar to IPv4 sub-aggregates!

o Allows us to balance incoming traffic

70

Customer 1 Customer 2Customer 3 Customer 4

2001:db8::/32

2001:db8:4000::/342001:db8:0000::/34 2001:db8:8000::/34 2001:db8:c000::/34

Page 71: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

71 v1.071

IPv6 Address Plan: Routing

• IGP to carry next-hop reachability information

o Infrastructure blocks (PtPs, loopbacks)

o Aggregation desirable in IGP

• Customer prefixes (Enterprise, broadband, DC customers/services)

o Sub-aggregates for traffic shaping (mulithoming)

o Consider regional delegation

o iBGP carries all customer prefixes

▸ Aggregation may interfere with traffic shaping

o Aggregation necessary in eBGP (pull up routes)

71

Page 72: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

72 v1.072

Agenda

• IPv6 Address Structure

• IPv6 Subnetting Brief Review

• Nibble Boundary

• Example: ISP

• Example: Enterprise and Campus

Page 73: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

73 v1.073

Background: Example Topology of ISP

Internet

ISP network

Region 1Enterprise customers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:c000::/40Region 4Enterprise & Campuscustomers

Page 74: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

74 v1.074

Background: Example Topology of ISP

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise & Campuscustomers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:c000::/40

2001:db8:4001::/48 for Region 2 Enterprise Customer 1

Page 75: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

75 v1.075

Example Topology of Enterprise Network

2001:db8:4001::/48 for Region 2 Enterprise Customer 1

2001:db8:4001::/48

Building NO.

2001:db8:4001:0::/52 Infrastructure

2001:db8:4001:XYZZ::/64

Department

VLAN

Page 76: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

76 v1.076

Example Topology of Enterprise Network

Address Block Comment

2001:db8:4001::/48

2001:db8:4001:0000::/52 Enterprise Infrastructure

2001:db8:4001:1000::/52 Building 1

2001:db8:4001:2000::/52 Building 2

2001:db8:4001:3000::/52 Building 3

2001:db8:4001:4000::/52 Building 4

2001:db8:4001:5000::/52 Building 5

2001:db8:4001:6000::/52 Reserved for future

... …

2001:db8:4001:f000::/52 Reserved for future

2001:db8:4001::/48 for Region 2 Enterprise Customer 1 2001:db8:4001:XYZZ::/52

Page 77: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

77 v1.077

Example Topology of Enterprise Network

Address Block Comment

2001:db8:4001::/48

2001:db8:4001:0000::/52 Enterprise Infrastructure

2001:db8:4001:1000::/52 Building 1

2001:db8:4001:2000::/52 Building 2

2001:db8:4001:3000::/52 Building 3

2001:db8:4001:4000::/52 Building 4

2001:db8:4001:5000::/52 Building 5

2001:db8:4001:6000::/52 Reserved for future

... …

2001:db8:4001:f000::/52 Reserved for future

2001:db8:4001::/48 for Region 2 Enterprise Customer 1 2001:db8:4001:XYZZ::/52

Page 78: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

78 v1.078

Example Topology of Enterprise Network

Address Block Comment

2001:db8:4001::/48

2001:db8:4001:0000::/52 Enterprise Infrastructure

2001:db8:4001:1000::/52 Building 1

2001:db8:4001:1000::/56 Reserved for future

2001:db8:4001:1100::/56 Building 1 Department A

2001:db8:4001:1200::/56 Building 1 Department B

2001:db8:4001:1300::/56 Building 1 Department C

2001:db8:4001:1400::/56 Reserved for future

... …

2001:db8:4001:1f00::/56 Reserved for future

2001:db8:4001::/48 for Region 2 Enterprise Customer 1 2001:db8:4001:XYZZ::/56

Page 79: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

79 v1.079

Example Topology of ISP

Internet

ISP network

Region 1Enterprise customers

Region 4Enterprise & Campus customers

Region 2Enterprise customers

Region 3Enterprise customers

2001:db8:0100::/40

2001:db8:4000::/40

2001:db8:8000::/40

2001:db8:c000::/40

2001:db8:c001::/48 for Region 4 Campus Customer 1

Page 80: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

80 v1.080

Example Topology of Campus Network

2001:db8:c001::/48 for Region 4 Campus Customer 1

2001:db8:c001::/48

Department or User group

2001:db8:c001:0::/52 Infrastructure

2001:db8:c001:XXZZ::/64

VLAN

Page 81: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

81 v1.081

Example Topology of Campus Network

Address Block Comment

2001:db8:c001::/48

2001:db8:c001:0000::/52 Campus Infrastructure

2001:db8:c001:1100::/56 Department 1

2001:db8:c001:1200::/56 Department 2

2001:db8:c001:1300::/56 Department 3

2001:db8:c001:1400::/56 Department 4

…… ……

2001:db8:c001::/48 for Region 4 Campus Customer 1 2001:db8:c001:XXZZ::/56

Page 82: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

82 v1.082

Overview

• IPv6 Address Structure

• IPv6 Subnetting

• Nibble Boundary

• Example: ISP

• Example: Enterprise and Campus

Page 83: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

83 v1.083

IPv6@APNIC

Page 84: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

84 v1.084

APNIC Helpdesk Chat

Page 85: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

8585 v1.0

Any questions?

Page 86: IPv6 Address Planning - start [APNIC TRAINING WIKI] · 2019-09-02 · •IPv6 Address Structure •IPv6 Subnetting •Nibble Boundary •Example: ISP •Example: Enterprise and Campus.

86 v1.086

Thank You!END OF SESSIONThank You!

END OF SESSION