Tyro Payments interview question

What's the difference between OSPF,BGP?