Open Shortest Path First (OSPF) is a routing protocol that determines the best path for routing IP traffic over a TCP/IP network. Each router has a copy of the database and supplies pieces of the database describing the local environment All of the routers piece together the different information to form a current map of the network. Based on the data in the database, the shortest path is calculated using an algorithm.