You are on page 1of 12

y If A 1 (t), A 2 (t),   , A k (t) are independent Poisson

processes of rate  1 ,  2 ,   ,  k, then


A 1 (t) + A 2 (t) +   +A k (t) is a Poisson process of rate
 1 +  2 +    + k

(see also Ex.3.10c)

p p
random
independent
selection
1-p (1-p)
If each arrival of a Poisson process is independently
sent to system 1 with prob. p and system 2 with prob.
1-p, the arrivals to each system are Poisson and
independent.(see also Ex.3.11a)

 1
Routing in Data Nets
Datagarms: routing decision for every packet.
Virtual Circuits: one routing decision for all the
packets of the same session.

Issues
y selection of paths
y broadcasting of routing-related info.

Performance Measures
Throughput (“quantity” of service)
Average packet delay (“quantity” of service)

 2
2IIHUHGORDG WKURXJKSXW

)ORZ&RQWURO 5RXWLQJ

'HOD\

5HMHFWHGORDG

As the routing algorithm succeeds in keeping delay


low, the flow control allows more traffic into the
network.
'HOD\
SRRUURXWLQJ

JRRGURXWLQJ

7KURXJKSXW

Good routing algorithms: higher throughput for the


same delay; smaller delay for a given throughput.

 3
Example:

XQLWV XQLWV

RULJLQ   RULJLQ

$OOOLQNVKDYH
FDSDFLW\RIXQLWV


 


GHVWLQDWLRQ

y If everything routed through middle path the delay is


large.
y Suppose input traffic at node 2 is increased to 15 units.
If a single path is used at least 5 units is rejected.
Therefore the delay and the maximum throughput
depend on routing.

 4
Routing may be:
1. Centralized or Distributed
y Centralized: all routing choices are made at a central
node.
y Distributed: computation of routes is shared among
nodes who exchange information if necessary.

2. Static or Dynamic (adaptive)


y Static: path used for an origin-destination pair is fixed.
y Dynamic: path may changes in response to congestion.

Of course even with static algorithms paths will


change if nodes or links fail.

 5
Shortest Path problem

Directed graph G=(N,A)Garcs have direction


d ij = length of (i, j)

The length of a directed path p={i,j,k,.....,l,m} is


defined as d ij + d jk +      +d lm

Given: G=(N,A) , dij’s with no negative length cycles,


and a node 1

Problem: find the shortest path from every node i to


node 1

Applications: a) dij=delay (i,j), then “shortest


path” corresponds to the
“minimum delay” path
b) If pij = prob. (i,j) is operational.
Let define dij = -lnpij . Then “
shortest path” corresponds to
“most reliable” path

 6
Bellman-Ford algorithm

Let D hi =length of shortest path from i to 1 that


uses > h arcs

D 01 = 0


 D 0i = ’ , i  1


D h+1
i = min [d ij + D hj ] *
jFN(i)

After at most N-1 iterations * shortest path is

founded (provided that there are no negative length

cycles); shortest path distance D i = D N−1


i .In fact

iteration terminates when after h iteration D hi = D N−1


i

for all i

 7
Example: Bellman-Ford (infinite initial conditions)


FRVW
 

GHVWLQDWLRQ
    

 


VW6WHS QG6WHS
FXUUHQWGLVWDQFHWRQRGH

 

 

   

GHVWLQDWLRQ GHVWLQDWLRQ
  
   
   

   
 

 

UG6WHS WK6WHS
 

 

   

GHVWLQDWLRQ GHVWLQDWLRQ
     
 
   

   
 

 

 8
Example: Bellman-Ford zero initial conditions
 
 
   

       
   
GHVWLQDWLRQ
   
 
 


 
  


           

   
 
 
 
 
   

       
   

   
 
 
 9
Routing in the ARPANET

Uses shortest paths from origin to destination.

1969 algorithm:
Node i computes an estimate D i of its distance to a
given node 0

D i =min (d ij + D j ), i  0,
jFN(i)

N(i): neighbors of i
D j: obtained by neighbors every 0.62 sec


D0 = 0

Originally (1969), lengths d ij = number of packet in


buffer (i,j)

 10
Instability problems (original ARPANET)

3UREOHP6KRUWHVWSDWKVURXWHVIORZDUFOHQJWKV

)HHGEDFNKHUHFDQEHXQVWDEOH

 'HVWLQDWLRQ


'
 
  
 '
 

 ' 
 
  ' 

   
' 

' 
 
' 

 

 'HVWLQDWLRQ 

 '
 
 

'
 
   
 ' 

  ' 

  ' 


 
 ' 

 ' 
  

  1RWHWKDWQH[WVKRUWHVW
SDWKRIQRGHZLOOKDYH
DFRXQWHUFORFNZLVH

$VVXPHLVHTXDOWRIORZRQ LM GLUHFWLRQ

 11
 'HVWLQDWLRQ
 

'
 
  
 '
 

  ' 

  ' 
   
 ' 

 
' 
  
' 

 

After updates, everybody will start sending packets


clockwise, and so on.....

Having a bias independent of flow in the arc


distances helps to prevent this problem
(e.g. d ij = constant + number of packets in the buffer)

 12

You might also like