Routing in Circuit Switched NT K Network
Routing in Circuit Switched NT K Network
Many connections will need paths through more than one switch Need to find a route
Efficiency Resilience Resilience
P f Performance C Criteria it i
Used for selection of route Minimum hop Least L t cost t
See Stallings appendix 10A for routing algorithms
Place
Distributed
Made by each node
Central routing
Collect info from all nodes
Update timing
When is network info held by nodes updated Fixed - never updated Adaptive - regular updates
R ti Routing St Strategies t i
Fixed Flooding R d Random Adaptive
Fi d Routing Fixed R ti
Single permanent route for each source to destination pair Determine routes using a least cost algorithm (appendix 10A) Route R t fi fixed, d at tl least t until til a change h in i network t k topology
Fl di Flooding
No network info required Packet sent by node to every neighbor Incoming packets retransmitted on every link except incoming link Eventually y a number of copies p will arrive at destination Each packet is uniquely numbered so duplicates can be discarded Nodes can remember packets already forwarded to keep network load in bounds Can include a hop count in packets
Flooding E Example l
P Properties ti of f Fl Flooding di
All possible routes are tried
Very robust
At least one packet will have taken minimum hop count route
Can Can be used sed to set up p virtual i t al circuit ci c it
R d Random Routing R ti
Node selects one outgoing path for retransmission of incoming packet Selection can be random or round robin Can select outgoing path based on probability calculation l l ti No network info needed Route is typically not least cost nor minimum hop p
Ad ti Adaptive R Routing ti
Used by almost all packet switching networks Routing decisions change as conditions on the network change g
Failure Congestion
Requires info about network Decisions more complex Tradeoff between quality of network info and overhead Reacting too quickly can cause oscillation Too slowly to be relevant
Cl Classification ifi ti
Based on information sources
Local (isolated)
Route to outgoing link with shortest queue Can include bias for each destination
Rarely used - do not make use of easily available info
Third Generation
1987 Link cost calculations changed Measure average delay over last 10 seconds Normalize based on current value and previous results
Given network of nodes connected by bi-directional links Each link has a cost in each direction Define cost of path between two nodes as sum of costs of links traversed For each pair of nodes, find a path with the least cost Link costs in different directions may be different
E.g. length of packet queue
12
1-4-53
14
1-45
1-4-56
1-2
1-4-5-3
1-4
1-45
1-4-5-6
h = maximum i number b of f links li k in i path h at current stage of the algorithm Lh(n) = cost of least-cost path from s to n under constraint of no more than h links
0 1 2 2 2 3 2 4 2
5 4 3 3
1-3 1-4-3
1 1
2 2 2
1-4-5-3 1 1-4-5-3 1
C Comparison i
Results from two algorithms agree Information gathered
Bellman-Ford
Calculation for node n involves knowledge of link cost to all neighboring nodes plus total cost to each neighbor from s Each node can maintain set of costs and paths for every other node Can exchange information with direct neighbors Can update costs and paths based on information from neighbors and knowledge of link costs
Dijkstra
Each node needs complete p topology p gy Must know link costs of all links in network Must exchange information with all other nodes
E l ti Evaluation
Dependent on processing time of algorithms Dependent on amount of information required from other nodes Implementation specific Both converge under static topology and costs Converge to same solution If link costs change change, algorithms will attempt to catch up If link costs depend on traffic traffic, which depends on routes chosen, then feedback
May May result in instability