+ All Categories
Home > Documents > IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6...

IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6...

Date post: 12-Aug-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
29
IPv6 Address Allocation -- An Alternative Algorithm for the Sparse Allocation Process Mei Wang Advanced Architecture Group Cisco Systems [email protected]
Transcript
Page 1: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

IPv6 Address Allocation-- An Alternative Algorithm for the Sparse Allocation Process

Mei Wang

Advanced Architecture GroupCisco [email protected]

Page 2: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Overview

• An analytical model to quantify the effects of address allocation schemes– Fragmentation– Efficiency

• Propose an alternative allocation scheme:– Treat customers differently– Utilize more information from customers: i.e.

growth-rate– Reduce fragmentation and increase efficiency

Page 3: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Overview

• Acknowledgements

Stanford University: Cisco Systems:Balaji Prabhakar Larry DunnPankaj Gupta Tony Hain

• Full paper is at: Networking 2005, Canadahttp://www.cs.uwaterloo.ca/conferences/networking2005/coming/program.html#wed16

Page 4: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Outline

• Introduction• Background• Allocation Algorithms• Simulations• Theoretical Analysis• Conclusions

Page 5: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Introduction

http://www.cisco.com/warp/public/759/ipj_4-1/ipj_4-1_bgp.html

Routing Table Growth

1988 -- 2000 1994 -- 2005

http://bgp.potaroo.net

Page 6: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Introduction• Why IPv6 allocation policies are important?

– Impacts on routing: aggregation• Reduce address fragmentation, a key problem in IPv4:

– one ISP has multiple prefixes, discontinuous address space• Control routing table size• Improve hierarchy, lookup and routing efficiency

– Efficient usage of address space: • IPv6 address space 3.4x1038. Not all usable.• Large demands of addresses: devices, appliances, avoid NAT• Different usages

– IPv6 is taking off, now is a critical time• Do it right from the beginning, lessons from IPv4• IP addresses are critical foundations of ISPs• Lots of interested parties can be impacted by the outcome of the

policies

Page 7: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Background• Non-technical factors:

– Economic, social – Hot debate topic

• Technical issues– Focus of this work, quantitative analysis– Similar to dynamic memory allocation in Operating

Systems • Goals of allocation

– Uniqueness– Aggregation– Conservation

Page 8: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

EU(ISP)

IANA

RIR

ISP/LIR

EU

Local Internet Registries(ISP’s)

End Users

BackgroundAllocation Hierarchy

Internet Assigned Number Authority

Regional Internet Registries (ARIN, RIPE, APNIC, AfriNIC, LACNIC)

Page 9: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

BackgroundCurrent Allocation Policies

EU(ISP)

IANA

RIR

ISP/LIR

EU

IPv4(32-bit)

/8

/10 -- /20

various

IPv6(128-bit)

/23

/32

/48

Page 10: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Allocation Algorithms-- Model Settings

• Address provider: an address line• Customer: a block on the line

– A block of addresses is represented by a prefix, i.e., 10/210 is the prefix value in binary, 2 is the prefix length.

– Example: 5.0.0.0/8 (IPv4), 2000::/3 (IPv6)

• Growth: double the block size to the right– For the correct aggregation

• Collision: run out of space to grow => fragmentation

10 /2

1/10 23-1

000 010 110100001 011 101 111

Page 11: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Current Allocation Algorithm-- Bisection

1 43 2

Address space

a)

b)1 43 25

Page 12: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Algorithm We Propose-- Growth-based

• Scheme 1:– Take growth rate into consideration– Growth rate can be in any form– Fixed initial prefix length allocation

• Scheme 2:– Variable initial prefix length allocation

• Scheme 3:– Optimization of variable length allocation

Page 13: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Growth-based Scheme

1 i n

Li Si

Ai, Ri

An+1, Rn+1

n+1

[ ]{ }niRStRLt niii ,...,1 ,),( ),,(minmax 1 =+

• For the new coming customer with growth rate Rn+1, find a slot that maximizes the time it takes before a collision.

Page 14: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Growth-based Scheme -- Example

[ ]{ }niRStRLt niii ,...,1 ,),( ),,(minmax 1 =+

Growth rates: R2 > R1 > R4 = R5 >> R3 > R6

1 3 42a)

b)2 431 5

1 2c)

43 56

Page 15: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Simulations• Simulate customer requests and allocation

decisions• Profile of customers:

– Can take any form of growth, i.e., exponential growth– Growth rates are Gaussian distribution– Random sequence of incoming customers

• Measurement metrics: – Before any collision (without collision)

• Number of customers served without fragmentation• Percentage of total address space utilized without

fragmentation– Allowing collision: (with collision)

• percentage of fragmentation

Page 16: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

An Illustration: Bisection Scheme• Address occupation of customers with various growth rates joining at different time.

Page 17: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

An Illustration: Growth-base Scheme• More customers are served without collision

Page 18: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Comparisons: bisection vs. growth-based

/Users/jchen/network/allocation/work/new.agr

Page 19: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Simulation Results-- without collisions

Number of customers served Address space occupied

• The more number of customers served and the more address space is allocated without fragmentation, the better the allocation algorithm is.

Page 20: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Simulation Results-- with collisions

• Growth-based scheme dramatically reduces fragmentation compared to bisection scheme for any address space utilization.

Fragmentation Percentage

Page 21: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Theoretical Analysis: Bisection

;customer of rategrowth the:1

space; address theenters customer first time the:,0

;customer for required space initial :,0

space; address total:

customers; ofnumber of rate increase the:n1

customers; ofnumber initial :0

;2)(

)(

;2)(

;2)(

0

)(,0

0

:customereach for available space ave

: at time customer for needed space

:customers ofnumber

,0

ii

iit

iiL

totS

n

n

ii

n

ttottot

ttii

t

nS

tnStS

LtL

ntn

ti

τ

τ

τ

τ

τ

==

=

=

Page 22: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Theoretical Analysis: Bisection

• For customers with various growth rates and incoming time, the first collision time (tc,min) is used to calculate number of customers served and address space occupied without fragmentation.

Page 23: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Bisection

.22)()(

;2)

};,...,1,min{

;)(log)(log

);()(

min,min,

min,

min,

,000

min,

0min,

,min,

,00202,

:used space address total

( :served customers ofnumber

:occurs collision first when the

:occurs collision first thebefore it takes time

when occurs collision

∑∑ ∫ −−

=−=

=

==

⎥⎥⎦

⎢⎢⎣

⎡+×−

+=

=

i ni

tt

iiii

t

iciused

tc

icc

i

toti

i

n

ni

niic

i

i

c

n

c

c

nc

PLndtdt

tdnPttLS

nt

nitt

LnSPnt

tStL

n

τττ

ττ

ττττ

ττ

τ

Page 24: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Theoretical Analysis: Growth-based

;customersA class all of rategrowth the:1

space; address theenterscustomer A class the time the:,0

space; address total:

customers; ofnumber of rate increase the:1

customers; ofnumber initial :0

;

;2)(

;2)(

:customerA class for the available space

:customer A class for the needed space

:customers ofnumber

)(

0

,0

l

thiit

totS

n

n

i

tti

t

S

tL

ntn

thi

thi li

n

τ

τ

τ

τ

−=

=

Page 25: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Growth-based

( ).log)(log

, ,

.1 ,1

log)(

)1

1(1log1

log

.)1(loglog

;)(

2021,min,

1,,

2

221,,

1

12

02,

first.boundry hits one st1 thefor

:first collidescustomer which

when occurscollision

PSPntt

tt

Pi

iiP

ii

iitt

kP

iPS

Pnit

StL

totlncc

icicln

ln

lnicic

i

ktotlnic

ii

ττ

ττ

ττ

ττ

ττ

+−==

⇒>>

<<−

−≈

⎥⎦⎤

⎢⎣⎡

−−

−+

−=−

⎥⎦

⎤⎢⎣

⎡−+=

=

=∏

Page 26: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Theoretical Analysis vs. SimulationsBisection Growth-based

Page 27: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Discussions• Growth rate estimation

– Can be in any form: • the percentile of current occupancy, the probability of

potential growth, the total projected address space, the probability of extra bits needed, the projected growth rate (inany functional forms of time)

• draft-huston-ip6-allocation-unit-00.html: linear growth rate• Better estimation leads to more gain, the worst

cases are:– Wrong estimations:

• Don’t have to be exact • Dynamic optimization based on given info• Still space to grow

– Fast growth comes in too late: • Less gain or no gain

Page 28: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Conclusions

• Quantitative modeling of address allocation schemes: – Simulations– Theoretical analysis

• A growth-based IPv6 address allocation scheme: – Utilize customer information– Reduce address fragmentation, control routing table

size, increase lookup and routing efficiency– Increase efficiency of address space usage

Page 29: IPv6 Address Allocation -- An Alternative Algorithm for the Sparse … · 2019-02-01 · • IPv6 address space 3.4x1038. Not all usable. • Large demands of addresses: devices,

Thank You

[email protected]


Recommended