Net. Fall 2024 Lec. 11
Net. Fall 2024 Lec. 11
Fall, 2024
COMPUTER NETWORKS
Lec. 11
Simplicity
overloads).
Stability
Optimality
Efficiency (Overheads)
Routing in Packet Switched Network
Place
Distributed - made by each node.
Centralized – central node.
Source – Originating node.
Decision Time
Time
Place
Distributed routing
• Using local knowledge, info from adjacent
(directly connected) nodes, info from all
nodes on a potential route.
Central routing
• Collect info from all nodes
Network Information Source
Most routing strategies require that decisions be based on
knowledge of the topology of the network, traffic load, and
link cost.
With distributed routing, in which the routing decision is
made by each node, the individual node may make use of
only local information, such as the cost of each outgoing link.
Each node might also collect information from adjacent
(directly connected) nodes, such as the amount of congestion
experienced at that node. Finally, there are algorithms in
common use that allow the node to gain information from all
nodes on any potential route of interest. In the case of
centralized routing, the central node typically makes use of
information obtained from all nodes.
Update Timing
A related concept is that of information update timing,
which is a function of both the information source and
the routing strategy. Clearly, if no information is used
(as in flooding), there is no information to update.
If only local information is used, the update is essentially
continuous.
For all other information source categories (adjacent
nodes, all nodes), update timing depends on the routing
strategy.
For a fixed strategy, the information is never updated.
For an adaptive strategy, information is updated from
time to time to enable the routing decision to adapt to
changing conditions.
Update Timing
Fixed routing.
Flooding.
Random routing.
Adaptive routing.
Routing Strategies
1- Fixed Routing
Use a single permanent route for each
source to destination pair.
Determined using a least cost algorithm.
route is fixed.
At least until a change in network topology.
Hence cannot respond to traffic changes.
Advantage is simplicity.
Disadvantage is lack of flexibility, it does not
react to network congestion or failures.
Routing Strategies
1- Fixed Routing
A central routing matrix is created, to be
stored perhaps at a network control center.
The matrix shows, for each source-
destination pair of nodes, the identity of the
next node on the route.
Disadvantages:
Decisions more complex.
Tradeoff between quality of network info and overhead.
Reacting too quickly can cause oscillation.
Reacting too slowly means info may be irrelevant.
Adaptive Routing
Advantages
Improved performance.
Local (isolated)
• Route to outgoing link with shortest queue.
• Can include bias for each destination.
• Rarely used - does not make use of available
info.
Adjacent nodes
• Takes advantage on delay / outage info.
• Distributed or centralized.
All nodes
• Like adjacent
Isolated Adaptive Routing
As an example, at a certain point in time, Node 4
has links to four other nodes. A fair number of
packets have been arriving and a backlog has built
up, with a queue of packets waiting for each of the
outgoing links. A packet arrives from node 1
destined for node 6. To which outgoing link should
the packet be routed? Based on current queue
lengths and the values of bias (B6) for each
outgoing link, the minimum value of Q + B6 is 4, on
the link to node 3. Thus, node 4 routes the packet
through node 3.