Routing is the process of moving data from one device to another device. In most cases, routing is performed by a networking device called a router. In the OSI model, the network layer is responsible for performing routing.
We can classify routing into three categories: static, default, and dynamic.
Static routing is a nonadaptive type where the administrator adds and defines the route the data needs to follow in order to reach the destination from the source.
In default routing, all the packet takes a predefined default path. It’s helpful in bulk data transmission and networks with a single exit point.
Finally, dynamic routing, also known as adaptive routing, uses dynamic protocols to find new routes to reach the receiver.
Routing is sometimes referred to as forwarding, but it’s important to note that routing is a different process from forwarding.
Forwarding
Process of collecting data from one device and sending it to another device. This process differs from routing because it doesn’t manage moving data from one device to another. Unlike the routing process, forwarding performs some actions and simply forwards the packets which arrive in intermediate routers.
Switching