• No results found

A Static Data Structure for Discrete Advance Bandwidth

N/A
N/A
Protected

Academic year: 2021

Share "A Static Data Structure for Discrete Advance Bandwidth "

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

A Static Data Structure for Discrete Advance Bandwidth

Reservations on the Internet

Andrej Brodnik Andreas Nilsson

CSEE Luleå University of Technology

(2)

Introduction

• Differentiated services

• Quality of service (QoS)

• Bandwidth brokers

(3)

Bandwidth brokers

• Manages the bandwidth reservations on one link

Network 1 Network 2 Bandwidth broker

(4)

Interaction between bandwidth brokers

• Usually the route between two computers consists of several links

• Entire route has to be reserved

Bandwidth broker

Network 4 Bandwidth broker

Network 3 Bandwidth broker

Network 1 Network 2 Bandwidth broker

Network 5

(5)

Definitions

• A reservation R is a time interval during which constant amount of bandwidth B is allocated throughout the entire interval I

• In the data structure D we use slotted time, that is fixed granularity g to gain aggregation

• Bounded universe,

maximum interval size |M| has the interval of the root M

(6)

Operations

• Insert( D,R) increases the reserved bandwidth during the interval I for B

• Delete( D,R) decreases the reserved bandwidth during the interval I for B

• MaxReserved( D,I) returns the

maximum reserved bandwidth during the

interval I

(7)

Advanced Segment Tree (AST)

• Modified segment tree

• The tree is static, i.e. it is

– only built once, and in advance, no nodes are added or deleted and therefore the tree is always perfectly balanced

• All nodes on a level l

– have the same number of children – represents a time interval

– cover intervals of the same size

– have intervals that mutually don't intersect – have intervals which’s union is M

– have an interval that is contained within one interval on level l’, where l’<l

(8)

Nodes in the AST

• Each node n

– has a pointer to each child

– has a value nv – the amount of bandwidth reserved exactly the interval covered by n – has a value mv – the maximum amount of

bandwidth reserved on the interval covered by n

(9)

Time

node value = 0

max value = max(0+30,20+200)=220

node value = 60 max value = 90

90 0

0 0 0

0 0

0 0

0

30 0

200 0 node value = 0

max value = 30

node value = 20 max value = 200 node value = 10

max value = max(50+200,0+220)=250

node value = 50

max value = max(60+90,120+80)=200

node value = 120 max value = 80

80 0

Nodes and their values

(10)

Insert( D,R)

( )

( ) n

O space

n O

time

log

R 50 B =

Time

nv = 10

mv = max(100+200,0+220)=300

nv = 50+

mv = =200

50

max(60+90,120+80)

nv = 0

mv = max(50+30,20+200)=220

nv = 60 mv = 90

nv = 120 mv = 80

nv = 90 mv = 0

0+

0 50 0

0 0

0 0

0

30 0

200 0 80

0

nv = 0+

mv = 30

50 nv = 20

mv = 200

(11)

MaxReserved( D,I)

I Q

( )

( ) n

O space

n O

time

log

I Q

Time

nv = 10 mv =300

nv = 100 mv =200

nv = 0 mv = 80

nv = 60 mv = 90

t0 t

1 t

2 t

3 t

4 t

5 t6 t8

MaxReserved =0+MaxReserved(t ,t ))=0+80=80

MaxReserved =50+(30+0)=80

MaxReserved =10+max(100+200, MaxReserved(t ,t ))=10+max(300,80)=10+300=310 4 5

5 4

t7 nv = 120

mv = 80

nv = 90 mv = 0

50 0 0

0 0

0 0

0

30 0

200 0 80

0

nv = 20 mv = 200 nv = 50

mv = 30

(12)

Implicit data structure

⎪⎩

<

⎟⎟+

⎜⎜

=

=

∑ ∏

=

=

L l

X

l

l

j

j

i

l i 1 1

1 1

2

1

1

δ

3 l

L l+1

1

Δ

Δ

x x

δl

( )

( ) n

O space

n O

time

log

(13)

Implicit data structure

nv=10 mv=250

nv=50 mv=200

nv=0 mv=220

nv=60 mv=90

nv=120 mv=80

nv=0 mv=30

nv=20 mv=200

nv=90 mv=0

nv=0 mv=0

nv=80 mv=0

nv=0 mv=0

nv=30 mv=0

nv=0 mv=0

nv=0 mv=0

nv=20 mv=200

nv=0 mv=0

nv=0 mv=0

nv=20 mv=200 nv=10

mv=250 nv=50 mv=200

nv=0 mv=220

nv=60 mv=90

nv=120 mv=80

nv=0 mv=30

nv=20 mv=200

nv=90 mv=0

nv=0 mv=0

nv=80 mv=0

nv=0 mv=0

nv=30 mv=0

(14)

Conclusions

• Easily implemented as an implicit data structure

• AST is generic solution

• Worst case time complexity for all

operations is O(log n)

(where n is the number of leaves)

• The solution is used in the real world

(15)

Time for questions

Andreas.Nilsson@sm.luth.se Andrej.Brodnik@sm.luth.se

http://www.sm.luth.se/~andreas/publications/

Thank you

References

Related documents

 is divided into fixed size time slots of size *. Items related to reservations are denoted by a subscript, e.g. Then the bandwidth reser- vation problem requires the

We showed that the data structure BinSeT (binary segment tree) solves the dynamic version of the Bandwidth Reservation Problem optimally (space- and time-wise) under the

We showed that the data structure BinSeT (binary segment tree) solves the dynamic version of the Bandwidth Reservation Problem optimally (space- and time-wise) under the

The segment tree is then an efficient data structure for storing those intervals and answering queries over which of the † intervals spans the query interval.. Let ˆŠ‰ be a starting

Dummy variables for the day of the time use interview have been included in the sample selectivity equation for all models except double hurdle with known tobit selection, for

If it is primarily the first choice set where the error variance is high (compared with the other sets) and where the largest share of respondents change their preferences

Jag började arbeta med trådar, som skulle skapa en rumslighet, men samtidigt inte stänga ute ljuset, utan istället fånga upp det, och leda ner dagsljuset som idag inte når ner

allocation, exposure and using the target FL in conjunction with other subjects.. 3 the semi-structured interviews, five out of six teachers clearly expressed that they felt the