RIP assumes the world could change at any moment and so everyone needs to know everything all the time. OSPF assumes the world is mostly static and few things will change. First Each Router maintains a link state routing table to keep track of all currently available links. It passes this information on to the routers it knows about on an as needed basis only . Some other advantages of Routers.
Routers can block all broadcasts and most multicasts.
Multiprotocol routers can block or pass different protocols on different ports. Such segments are most commonly called subnets, ie , sub -networks. When a device gets ready to send a Datagram, it compares its Network Number to that of the Destination Device. If the Network Number is the same, the devices are on the same segment and the Datagram can be sent directly. If the Network Numbers are different, the devices are not on the same segment.