CSC263 ยท 2078 ยท 5 marks
What is routing table? Differentiate static routing table with dynamic routing table.
What is routing table? Differentiate static routing table with dynamic routing table. [5]
Quick answer
A routing table is a data structure stored in a router (or networked device) that lists the routes to particular network destinations. Routers use this table to make decisions on how to forward data packets based on their IP addresses. The routing table contains information such as destination network, next hop address, and interface to use. Routers normally connect LANs and WANs together and have a routing table based on which they make decisions on routing the data packets.
Routing Table: Static vs Dynamic Routing
Routing Table
Static Routing Table
A static routing table is one in which routes are manually added and configured by a network administrator. The routes remain fixed unless manually updated or reconfigured.
Key characteristics:
- Routes are configured manually by the administrator
- Used when there are very few devices to configure
- Suitable when routes are known and are unlikely to change
- Does not handle network failures well, because any lost connectivity must be manually repaired or reconfigured
- No routing protocol is needed
Dynamic Routing Table
A dynamic routing table is one in which routes are automatically adjusted according to the current state of the network. It uses routing protocols to discover network destinations and the best routes to reach them.
Key characteristics:
- Routes are updated automatically based on current network conditions
- Uses routing protocols such as RIP, OSPF, and BGP to discover routes
- If one route goes down, automatic adjustment is made to find an alternate route
- Suitable for large and complex networks
- Requires more processing and bandwidth due to protocol overhead
Difference Between Static and Dynamic Routing Table
| Basis | Static Routing Table | Dynamic Routing Table |
|---|---|---|
| Configuration | Manually configured by administrator | Automatically configured using protocols |
| Adaptability | Cannot adapt to network changes automatically | Automatically adapts to network changes |
| Failure Handling | Poor; requires manual reconfiguration on failure | Handles failures automatically by finding alternate routes |
| Protocols Used | No routing protocol required | Uses protocols like RIP, OSPF, BGP |
| Scalability | Suitable for small networks with few devices | Suitable for large and complex networks |
| Administrative Overhead | High (manual updates needed) | Low (self-updating) |
| Resource Usage | Less CPU and bandwidth usage | More CPU and bandwidth usage due to protocol overhead |
Summary: Static routing is simple but inflexible, best for small stable networks. Dynamic routing is flexible and self-managing, best for large networks where topology may change frequently.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.