learnings

Routing protocols: OSPF and IS-IS

OSPF (open shortest path first) and IS-IS (Intermediate System - Intermediate System) are interior gateway (IGPs) link-state routing protocols. Link-state routing protocols are based on distributed map of the network. Each router that run a link-state protocol have the same copy of this “network map”.

OSPF

To distribute information about the network, OSPF uses link state advertisements (LSA). Link state advertisements carries information about routes, which is flooded among the other routers. This process is used to create the complete map of the network and save it into link state database. Information stored in link state database must be completely identical on all of the routers in same OSPF area. Currently two versions of OSPF are used: OSPFv2 for IPv4 and OSPFv3 for IPv6.

OSPF areas

OSPF (since v2) using areas to limit the size of the link-state database, the amount of flooded information and the time that takes to run shortest path algorithm. OSPF area is a logical grouping of routers sharing the same area id. Area ID is similar to IPv4 address and the maximum value is limited to 32 bits. Position of the router in the network topology with respect to OSPF area is important.

Types of link state advertisements (LSA):

Types of the area:

IS-IS

Long story short: IS-IS is an OSPF-like routing protocol implementation made by ISO. This protocol is not suited for TCP/IP by default, but it has been adapted for IP in order to carry IP routing information inside non-IP packets.

SIMILARITIES OF OSPF AND IS-IS

Links