In one interview this qstion was asked ..how do we choose a appropriate routing protocol for a network ....y ospf y bgp etc ..can some one help me in clearing this
thank in advance
Each routing protocol has its own idiosyncrasies, for instance when running EIGRP on a multipoint serial interface (hub and spoke), you have to be aware of the split horizon rule.
When it comes to OSPF, the type of network OSPF defaults to, relies on the interface type. Ethernet defaults to broadcast while point-to-point serial interfaces defaults to point-to-point. As you know with OSPF, the network type must match in order to form adjacency so that's something to be aware of.
With that said, selecting one routing protocol over the other is never due to the type of interface running in the router but the selection is done based on the customer's requirement with their hardware, topology and expertise.