• No results found

TimeFlipInfocomPres.pdf

N/A
N/A
Protected

Academic year: 2020

Share "TimeFlipInfocomPres.pdf"

Copied!
34
0
0

Loading.... (view fulltext now)

Full text

(1)

T

IME

F

LIP

: Scheduling Network

Updates with

Timestamp-based TCAM Ranges

Tal Mizrahi

*

, Ori Rottenstreich

, Yoram Moses

*

* Technion – Israel Institute of Technology

† Princeton University

(2)

Outline

Background

Motivation

Introducing T

IME

F

LIP

Efficient T

IME

F

LIP

s

(3)

switch

switch

switch

switch

controller

switch

switch

switch

switch

Software Defined Networks (SDN)

data plane

data plane

control plane

Network updates.

(4)

TCAM: Ternary Content Addressable Memory

Memory for quick searching

Top-down search: first match “wins”

Ternary: 0 / 1 / *

* = don’t care

action

s

u

, …, s

1

TCAM

Network Device

packet’s search

(5)

TCAM Ranges

How do you represent a range?

Example:

F is a 3 bit field

Range F

1

Range

expansion

= the number of entries

required to represent a range.

(6)

Outline

Background

Motivation

Introducing T

IME

F

LIP

Efficient T

IME

F

LIP

s

(7)

TCAM

1

TCAM

2

...

TCAM

n

incoming

packet

outgoing

packet

Network device

TCAM

1

TCAM

2

...

TCAM

n

incoming

packet

outgoing

packet

Network device

Problem 1: Atomic Bundles

Atomic Bundle [OpenFlow 1.4]:

A set of updates that need to be applied atomically (‘all-or-none’).

(8)

S

1

S

2

S

3

S

4

S

5

S

1

S

2

S

3

S

4

S

5

S

1

S

2

S

3

S

4

S

5

S

1

S

2

S

3

S

4

S

5

Problem 2: Time-based Updates

A key benefits of SDN:

dynamic path allocation based on network load

Time is a powerful tool in path allocation or reconfiguration.

Our time extension to the OpenFlow protocol – now in OpenFlow 1.5.

Problem: How do we

accurately

apply a time-based update?

(9)

Outline

Background

Motivation

Introducing T

IME

F

LIP

Efficient T

IME

F

LIP

s

(10)

packet’s search

key

action

s

u

, …, s

1

TCAM

Network Device

action

s

u

, …, s

1

TCAM

Network Device

T

s

u

, …, s

1

T

T

0

TCAM

Network Device

action

packet’s search key packet’s search key

T

IME

F

LIP: Timestamp-based TCAM Lookup

The timestamp is used in the TCAM key –

time range

.

COTS switches can synchronize clocks very accurately ~ 1 μsec.

[Using IEEE 1588 Precision Time Protocol (PTP) or GPS]

conventional

TimeFlip

(11)

Atomic Bundles Using T

IME

F

LIP

TCAM

1

TCAM

2

...

TCAM

n

incoming

packet

outgoing

packet

Network device

TT0

TT0

TT0

TT0

(12)

before

after

Time-based Updates using T

IME

F

LIP

TimeFlip:

switch accurately

starts using ‘after’ at T

0

.

T

s

u

, …, s

1

T

T

0

TCAM

Network Device

search

key

‘after’

(13)

T

IME

F

LIP

Use Cases

Timed Installation

Timed Removal

Timed Action Update

TCAM

s

u

, ...,s

1

,

[

T

T

0

]

a

TCAM

s

u

, …,s

1

,

[

T

<

T

0

]

a

s

u

, …, s

1

,

*

*

TCAM

a

(14)

32 bits

48 bits

Nanoseconds

Seconds

What is a Timestamp?

IEEE 1588 Time Of Day (TOD):

(15)

Timestamp-based TCAM Lookup

T

s

u

, …, s

1

T

T

0

TCAM

Network Device

search

key

action

Problem:

Small number of entries in T

T

0

.

Small number of timestamp bits per entry.

Without compromising the scheduling accuracy !

Large # of bits in timestamp field?

(16)

Efficient T

IME

F

LIP

s

(17)

The Punctual Teacher Problem

Afternoon lesson

Synchronize watches

(18)

The Punctual Teacher Problem

Afternoon lesson

Synchronize watches

Write down

date

time

(19)

The Punctual Teacher Problem

Afternoon lesson

Synchronize watches

Write down

date

time

Flexible + punctual !

2015-04-30 15:38

Scheduling Tolerance

(20)

T

min

time

T

max

Assume: we allow the

controller

to schedule the

update to any time in the range [T

min

, T

max

]

It

selects

T

0

that minimizes the expansion of

T

T

0

Without compromising the accuracy !

scheduled time

T

0

TOL

Scheduling Tolerance – TOL

controller

switch switch

(21)

Optimal Scheduling Algorithm

Theorem:

T

SCH

is optimal.

No other scheduling algorithm

produces an extremal range with

a lower expansion.

Theorem: the average expansion is:

controller

switch switch

(22)

T

0

T

1

T

0

T

1

TCAM

The Punctual Teacher Problem

time

I know the date.

No need to write it.

2015-04-30 15:38

2015-04-30

15:38

Periodic Ranges

TCAM

controller

switch switch

(23)

T

0

scheduled

time

time

insertion

Assumption: a TimeFlip with

T

T

0

is present during [T

0

-Δ,T

0

+Δ)

For example, if

Δ

=0.5 second:

T

0

+

D

T

0

-

D

cleanup

Installation Bounds –

Δ

T

T

0

TCAM

s

u

, ...,s

1,[TT0] a

TCAM

s

u

, ...,s

1,*...* a

I know which

second it is.

2015-04-30 15:38:10.251987326

2015-04-30 15:38:10

.251987326

controller

(24)

Periodic Continuation Algorithm

A periodic continuation algorithm for

T

T

0

:

Period=2

V

The

V

most significant bits are

don’t care

!

Period

2

Δ

Nyquist ?

controller

switch switch

(25)

Outline

Background

Motivation

Introducing T

IME

F

LIP

Efficient T

IME

F

LIP

s

(26)

Resource Consumption

Theorem: using S

CHEDULE

and B

OUNDED

R

ANGE:

The

expansion

is bounded by:

(27)

Example: Efficient T

IME

F

LIP

What can we do with an 8-bit timestamp field?

Switches:

Δ = 8 seconds

Controller:

TOL = 100 milliseconds

The 8-bit timestamp can represent any TimeFlip.

log

(𝟐∆) − log

𝑻𝑶𝑳 ≤ 𝟖 𝒃𝒊𝒕𝒔

action

5-tuple

TCAM

packet’s search

key

metadata timestamp

160 bits

(28)

The Cost of T

IME

F

LIP

: 1 Bit / 1 Entry

Theorem: if

𝑇𝑂𝐿 ≥ 2

𝑙𝑜𝑔

2

(∆)

, then the

timestamp range requires as little as:

1 TCAM entry.

1 bit in the timestamp field.

* * * *

*

timestamp

field

* * * * * *

function of

TOL

(29)

Timed Action Updates

Using the

complementary action

[Rottenstreich et al.]:

Complementary encoding has been shown to be

optimal for extremal ranges of the form T

T

0

.

s

u

, …, s

1

,

*

*

TCAM

a

s

u

, …, s

1

,

[

T

T

0

]

a’

s

u

, …, s

1

,

*

*

TCAM

a’

s

u

, …, s

1

,

[

T

<

T

0

]

a

=

(30)

Outline

Background

Motivation

Introducing T

IME

F

LIP

Efficient T

IME

F

LIP

s

(31)

T

IME

F

LIP

: Would it Work on a Real Switch?

Yes !!

Microbenchmark: TimeFlip was tested on a

(32)

TCAM range is

chosen

Conclusion

TimeFlip

Atomic Bundles

Time-based Updates

TimeFlips can be represented

very efficiently

Scheduling Tolerance

Periodic Ranges

Simulation verifies

Microbenchmark:

(33)
(34)

References

[1] T. Mizrahi, O. Rottenstreich, Y. Moses, "TimeFlip: Scheduling Network Updates with

Timestamp-based TCAM Ranges", INFOCOM, 2015.

http://tx.technion.ac.il/~dew/TimeFlipINFOCOM.pdf

[2] T. Mizrahi, Y. Moses, "Time-based Updates in Software Defined Networks", the second

workshop on hot topics in software defined networks (HotSDN), 2013.

http://tx.technion.ac.il/~dew/TimeSDN.pdf

[3] O. Rottenstreich, R. Cohen, D. Raz, and I. Keslassy, “Exact worst case TCAM rule

expansion,” IEEE Trans. Computers, vol. 62, no. 6, pp. 1127–1140, 2013.

http://webee.technion.ac.il/people/or/publications/tc12_exact.pdf

[4] Open Networking Foundation, OpenFlow switch specification, Version 1.5.0, 2015.

https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-switch-v1.5.0.noipr.pdf

[5] Open Networking Foundation, OpenFlow extensions 1.3.x package 2, 2015.

http://tx.technion.ac.il/~dew/TimeFlipINFOCOM.pdf http://tx.technion.ac.il/~dew/TimeSDN.pdf http://webee.technion.ac.il/people/or/publications/tc12_exact.pdf https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-switch-v1.5.0.noipr.pdf https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-extensions-1.3.x-pack2-noipr.zip

References

Related documents

Researchers have identified external factors that challenge a leader ’ s ability to provide effective leadership in Nigeria because of political corruption, ineffective

Scalp injury with fracture of the skull, fracture of the base of the skull and intracranial hemorrhage was the commonest presentation in fatal head injury

Foremost, while we believe we have mentioned most of the challenges that international business qualitative researchers are likely to face when using social media as a data

House grant availability is contingent upon the Saanich Heritage Foundation (SHF) receiving its annual funding from the Municipality of Saanich.. The House Grant Program

Health Care Institute’s model and methodologies to operationalize CenteringPregnancy™ groups for the target population of pregnant women enrolling for prenatal care in two

Here we focus our updated valuation framework to consider the following key points: (i) focus on interest rate derivatives; (ii) understand how the updated valuation framework can

With a globally increasing interest in machine learning, this is now becom- ing an area of increasing interest for financial researchers. This thesis explores how machine

In particular, to compensate taxable investors for their tax burden, before-tax asset returns should be higher and asset valuations should be lower in periods of relatively high