Cisco Systems Interview Question
Software Engineer in TestsIn general I'd prefer OSPF to RIP - because I think OSPF is based on Dijkstra, and RIP is based on Bellman Ford. Former is O(n^2) or O(nLOGn) and latter is O(n^3). Bellman Ford is useful if there are -ve distances (weights) on node-node connections.
1. RIP will not work for network having having hop count greater than 15 in any path because infinity is defined as 16 in RIP.
- Dreamer January 05, 20122. RIP is good for small,stable and High Speed Networks while OSPF is good for large Dynamic Networks.
3. RIP sends entire routing tale from router to router every 30 seconds(hence Consumes lot of bandwidth) while OSPF sends it's link state info every 30 minutes.OSPF routers also send each other small update message when they detect a change in network,moreover when routers exchange updates that reflect changes in the network they converge on a new representation of the topology quickly and accurately.
4. RIP has slow convergency in large networks while it is faster in OSPF.In larger networks OSPF network is divided into logical Subdivisions called OSPF area.OSPF routers with in one area do not exchange topology updates with routers of other area(limited with in their area only)OSPF areas are connected by a backbone that is an area itself.A roiter that connects it's area to the backbone must maintain a topology database for both areas.Area border routers communicate with each other using special link message that contain short hand summarization of their respective topologies.
The above reasons supports OSPF over RIP