how does next hop work in routing tables