7 Routing
7 Routing
Network Station
end node (source & destination)
Communication Network
Used to connect geographically distributed machines and
networks into a single cohesive network
Flooding # dont build the routing table, but send a packet to all neighbours
Random # no routing table just choose one node randomly
Adaptive/Dynamic # build Routing table and rebuild it when links changes
Fixed/Static Routing
Single permanent route for each source to destination
pair
Routing table created & updated manually
Table is fixed unless manually changed again
No dynamic update when network conditions change
(for ex., a link goes down, or a shorter path comes up,
or some link becomes congested)
Fine for very small networks
Not good for large networks
But static routing is used for fixed, small networks
# control flooding : doesnt transmit duplicate packets
# flooding disadvantage: too many messages for one packet (2E)
Flooding
No network info required
Packet sent by node to every neighbor
Incoming packets retransmitted on every link except
incoming link
Eventually a number of copies 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 work around failed links/nodes
No routing table built, routing and forwarding integrated
# flooding is not used for routing
# it can be used intially so that every node has some information.
Flooding
Example
# n-1 trasmission are required so that
everyone has
the message.
Can be done by minimum spannning tree.
Anything
got to parent is sent to its children.
Properties of Flooding
All possible routes are tried
Very robust
At least one packet will have taken minimum “cost” route
(for ex., min hop count)
Can be used to set up virtual circuit
All nodes are visited
Useful to distribute information
But no routes remembered (no routing table)
Too many copies of a packet may be sent
Random Routing
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
No network info needed
Route followed is typically not least cost nor minimum
hop
No routes remembered, no routing table built, routing
and forwarding integrated
Adaptive/Dynamic Routing
Used by almost all packet switching networks
Routing decisions change as conditions on the network
change
Failure
Congestion
Requires info about network
Decisions more complex
Tradeoff between quality of network info and overhead
Reacting too quickly can cause oscillation
Reacting too slowly can make routes obsolete
Routes saved in routing tables
Routers communicate among themselves to update
routing tables dynamically when network conditions
change
No manual intervention needed normally
Types of Adaptive Routing Strategies