Routing Protocols RIP and OSPF are implemented At APPLICATION LAYER.(Correct me if I am wrong)
But the work of routing - Creating table which decides upon optimum paths among available path. It is done at router right ?
How this protocols works till Application layer
RIP is a Application layer Protocol
And OSPF is a Network Layer Protocol