Routing
is the act of moving information across an internetwork from a source
to a destination. Along the way, at least one intermediate node typically
is encountered
A router is used to manage network traffic
and finding the best route for packets to be sent.
A router uses a "Routing algorithms" to find
the best route to a destination.
When we say best route, we consider parameters
like the number of Hops (a hop is the trip a data packet takes from
one router or intermediate point to another in the network), time delay
and communication cost of packet transmission.
Typically, the entire route is NOT planned but,
the next best hop (or few hops) is what is given.