router with distance vector algorithm