OSPF

Open Shortest Path First

Final project in the course 'Protocols and Computer Networks'
of Dr. Debby Koren in Tel-Aviv University.

Authors :

Index :

  1. Introduction to Dynamic Routing
  2. Abstract
  3. Glossary
  4. The Topological Database
  5. The Shortest-path tree
  6. The Hello protocol
  7. The Hello packet
  8. The Designated router
  9. OSPF Algorithm
  10. OSPF Routing Protocol
  11. OSPF Operations
  12. Bibliography


1. Introduction to Dynamic Routing

When the network is small, there is a single connection point to other networks, and there are no redundant routes, a static routing is enough. But if any of these tree conditions is false, dynamic routing is normally used.

Dynamic routing occurs when routers talk to adjacent routers, informing each other of what network each router is currently connected to. The routers must communicate using a routing protocol that is running by the Routing Daemon. In Contrast to static protocol, the information placed into the routing tables - the routes, are added and deleted dynamically by a routing daemon, as routes change over time. The routing daemon adds a routing policy to the system, choosing which routes to insert into the kernel's routing table. In case of multiple routes to the same destination, the daemon choose which route is the best. In the other side, if a link has gone down, the daemon delete routes connected to that link, and find alternatives to the routes - if exist.

Many different routing protocols are used in big networks. The internet, for example, is divided to collection of autonomous systems ( ASs ) each of which is normally administrated by a single entity. A corporation or University may define an autonomous system. Every autonomous system uses its routing protocol to communicate between the routers in the autonomous system. This is called an Interior Gateway Protocol ( IGP ). The most popular IGP has been RIP. OSPF is a newer IGP that intends to replace RIP, at least in large networks.

RIP , the most widely used routing protocol has some problems: First, RIP has no knowledge of subnet addressing. If the normal 16 bit host ID of a class B address is nonzero, for example, RIP can't tell if the nonzero portion is subnet ID or if the IP address is a complete host address. Some implementations use the subnet mask of the interface through which the RIP information arrived, which isn't always correct.

Second, RIP takes a long time ( some minutes ) to stabilize after the failure of a router or a link. During this time, routing loops may occur.

Third, The use of the hop count as the routing metric omits other variables that should be taken into consideration. Also, a maximum of 15 for the metric limits the sizes of networks on which RIP can be used.

There is an extension to the old RIP , usually called RIP-2. The extensions don't change the protocol , but pass additional information that help with the RIP problems.

The OSPF - Open Shortest Path First - is an alternative to RIP as GIP. It overcomes all the limitations of RIP. OSPF is a link-state protocol, as opposed to RIP , which is distance-vector protocol. In a link-state protocol each router actively tests the status of its link to each of its neighbors, sends this information to its other neighbors and so on. Each router takes this link-state information and build a complete routing table. This method is much faster then the distance-vector protocols, especially in case of changes in the links in the network.

Other features that make OSPF superior to RIP:

  1. It can calculate a separate set of routes for each IP type of service.
  2. When equal-cost routes to a destination exists, OSPF move the data equally between this routes.
  3. OSPF support subnets.
  4. Each interface is assigned a dimension-less cost based on throughput,round trip time, reliability and more... . A separate cost can be assigned for each IP type of service.
  5. Point to Point links between routers don't need an IP address at each end.
  6. OSPF uses multicasting to reduce the load on systems not participating OSPF.

There are more features but we will not mention all of them.

Summary :
The Open Shortest Path First routing protocol may be the answer to managing complex multivendor networks. Common routing protocols, such as IP Routing Information Protocol (RIP), are designed for simple networks that have only a few routers and little redundancy. Such protocols are inefficient in larger networks where routing messages take up significant amounts of bandwidth. One way to address this problem is found in link state protocols, such as OSPF, which produce a more stable network by getting the routers to act on network changes predictably and simultaneously. An OSPF router collects and advertises information about its neighboring routers via a data structure called a router links advertisement. The router calculates and sorts its neighbors, finding all the reachable routers and the most optimal path. Specifics about the OSPF router, including its interface and optimization methods, are discussed in detail.

to go back to the index press here

2. Abstract

The OSPF is a (link state) routing protocol used by the Internet community. OSPF is classified as an Interior Gateway Protocol (IGP), this means that it distributes routing information between routers belonging to a single Autonomous System. OSPF (Open Shortest Path First) is used over IP. That means that an OSPF packet is transmitted with an IP data packet header. The PROTOCOL field in the IP header is set to 89 for OSPF.

OSPF is designated to be run internal to a single Autonomous System. Each OSPF router maintains an identical database describing the Autonomous System's topology. From this database, a routing table is calculated by constructing a shortest path tree. OSPF recalculates routes quickly in the face of topological changes, utilizing a minimum of routing protocol traffic. Separate routes can be calculated for each IP type of service.

OSPF allows sets of networks to be grouped together. Such a grouping is called an area and it's topology is hidden from the rest of the Autonomous System. This information hiding enables a significant reduction in routing traffic. An area is a generalization of an IP subnetted network.

All OSPF routing protocol exchanges are authenticated. This means that only trusted routers can participate in the AS's routing.

to goto go back to the index press here

3. Definition of commonly used terms