Router is a five layer device. RIP and OSPF are Application Layer protocols of Router. For Eg, RIP and OSPF run on UDP while BGP runs on TCP. Moreover, routing is done in IP layer(layer 3 of router), whereas RIP/OSPF help in table formation by running in the application layer.

NetSim's Event Trace can be used to understand the events related to Application and Transport Layers of a Router.