How do routers decide on where to send traffic?

Technical