- 2076 Chaitra · 6 marks
Static and dynamic routing algorithms
Short answer
Static routing uses precomputed routes loaded by an administrator; it cannot react to failures, and includes shortest path, flooding and flow-based routing. Dynamic routing changes routes automatically via protocols; distributed examples are distance-vector (RIP) and link-state (OSPF), while centralized and isolated also exist. Dynamic reacts to failures but has overhead.
Explain static and dynamic routing algorithms used in data communication.
A routing algorithm decides the output line on which a router forwards each packet so that it reaches its destination. Routing algorithms are of two main kinds: static (non-adaptive) and dynamic (adaptive).
Static (non-adaptive) routing
Routes are computed in advance and loaded into the routers (by the administrator or an offline program). They do not change with traffic or topology until changed manually.
- Shortest path routing: the network is drawn as a graph with link weights (distance, delay, cost); Dijkstra's algorithm finds the least-cost path, which is stored in the table.
- Flooding: each packet is sent on all output lines except the input one; a hop counter limits copies. Very robust, used where reliability is vital or for broadcasting.
- Flow-based routing: uses known average traffic between nodes and link capacities to pick routes with least average delay.
Advantages: simple, no routing overhead, predictable, secure. Disadvantages: cannot react to failures or congestion; unsuitable for large changing networks.
Dynamic (adaptive) routing
Routers exchange information and change routes automatically when topology or load changes.
- Centralized: one Routing Control Centre computes all tables.
- Isolated: each node uses only local data (e.g. hot potato: shortest queue).
- Distributed:
- Distance vector (Bellman-Ford): each router sends its distance table to its neighbours periodically and updates using . Simple but slow convergence and count-to-infinity. Example: RIP.
- Link state (Dijkstra): each router floods its link costs to all routers, builds the full map and computes shortest paths. Fast convergence. Example: OSPF.
Example: if link B–C fails, a static router keeps sending packets over link B–C and they are lost; a dynamic router learns of the failure and shifts the traffic to another path.
Comparison
| Point | Static | Dynamic |
|---|---|---|
| Route set by | Administrator | Routing protocol |
| Reaction to failure | None (manual) | Automatic |
| Overhead | None | Control messages, CPU |
| Suitable for | Small, stable networks | Large, changing networks |
| Examples | Shortest path, flooding | RIP, OSPF |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Adaptive and non-adaptive routing algorithms · Telecommunications, chapter 8 · asked 3×
- Short note: Routing algorithm in data communication · Telecommunications, chapter 8 · asked 2×
- Routing, flow control and dynamic routing · Telecommunications, chapter 8
- Switching techniques in data communication · Telecommunications, chapter 8 · asked 3×
- Flow control mechanisms in data communication · Telecommunications, chapter 8
- Flow control in data communication network · Telecommunications, chapter 8
- Static and dynamic data structures; array list · Data Structure and Algorithm, chapter 3
- Static vs dynamic implementation of list · Data Structure and Algorithm, chapter 3 · asked 2×
- Static vs dynamic implementation of stack · Data Structure and Algorithm, chapter 2
- Static vs dynamic list; getnode and freenode · Data Structure and Algorithm, chapter 3