Mini routers with OSPF functionality (Open Shortest Path First) know their way around the connected network topology. If the main connection to the internet fails, the router in question utilises OSPF functionality to auto-matically establish an alternative route within the network.