Types of Routing Protocols – Explained 

types of routing

Routing is a process of selecting the best possible paths for data packets to travel from a source to a destination in a network. Routing is performed by layer 3 devices like routers and multi-layer switches. 

What are the different types of Routing?

Routing protocols can be broadly categorized into three types:-  

  1. Static Routing  
  2. Default Routing  
  3. Dynamic Routing  

Let us try to understand each type in brief. 

What is Static Routing Protocol?

Static Routing is a process in which the network administrator will determine the path to reach unknown networks. So, in the case of static routing, the network administrator will configure the router’s routing table manually.  

In case any change occurs in a network, the administrator has to reconfigure the route, and changes do not take place automatically. Static routing is simple to configure and suitable for small-scale enterprises. 

How to configure Static Routing?

Static Routing can be configured in two ways, namely- 

  • Static Routing with the Next Hop 

In this type of static routing, the network administrator will tell the router about the next hop address, i.e., the neighboring router interface IP to reach a particular network. 

Syntax for static routing with the next hop: 

Enter Global configuration mode. 

Device# configure terminal

Device (config)# ip route <Destination N/W IP> <Destination subnet mask> <Next hop IP address> 

  • Static Routing with an Exit Interface 

In this case, the network administrator will configure the router about the interface from which a packet will exit for an unknown network. Most commonly, this protocol is used when routers are connected with a serial cable. The serial cable does not use the Mac address. 

NOTE: If Mac addresses are not used, then proxy ARP will not be generated.   

Syntax for static routing with an exit interface: 

Enter Global configuration mode. 

Device# configure terminal

Device(config)# ip route <Destination N/W IP> <Destination Subnet Mask> <Exit interface> 

Configuration:- Let us take an example of a small topology given in the figure. 

R1 

 

Shape 

R1#config t 

R1(config)#ip route 172.17.0.0 255.255.0.0 1.1.1.2 

 

R2 

 

R2#config t 

R2(config)#ip route 172.16.0.0 255.255.0.0 1.1.1.1 

 

 

Verification: – 

 

R1#show ip route  

Codes:

L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route 

 

The Gateway of last resort is not set.

1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks 

C 1.0.0.0/8 is directly connected, GigabitEthernet0/0/0 

L 1.1.1.1/32 is directly connected, GigabitEthernet0/0/0 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks 

C 172.16.0.0/16 is directly connected, GigabitEthernet0/0/1 

L   172.16.1.1/32 is directly connected, GigabitEthernet0/0/1 

S 172.17.0.0/16 [1/0] via 1.1.1.2 

 

R2#show ip route  

Codes:

L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP 

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area 

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP 

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area 

* – candidate default, U – per-user static route, o – ODR 

P – periodic downloaded static route 

 

The Gateway of last resort is not set. 

1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks 

C 1.0.0.0/8 is directly connected, GigabitEthernet0/0/0 

L 1.1.1.2/32 is directly connected, GigabitEthernet0/0/0 

S 172.16.0.0/16 [1/0] via 1.1.1.1  

172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks 

C 172.17.0.0/16 is directly connected, GigabitEthernet0/0/1 

L 172.17.1.1/32 is directly connected, GigabitEthernet0/0/1 

What are the advantages of Static Routing Protocol?

The advantages of the Static Routing Protocol are as follows:-  

  1. Easy to implement as compared to dynamic routing  
  2. Less overhead on the router means minimizing the utilization of the device.

What are the disadvantages of Static Routing Protocol?

The disadvantages of the Static Routing Protocol are as follows:-  

  1. It is not suitable to configure on a large network because the administration has to configure it manually.  
  2. If there are changes in the network, like a new router being added or a network being removed, then the static entry must be added or removed accordingly.  
  3. Recursive Lookup: When a routing table is checked more than once for a packet, this is known as a recursive lookup. This is a disadvantage with static routing with the next hop. 

What is Default Routing Protocol?

When a router does not have the specific route entry for the destination network, default routing is used to forward packets to a default gateway or next-hop router. In other words, a router will send a packet to a preconfigured default gateway if the packet’s destination IP address doesn’t match any of the routes it has configured.  

NOTE: Default routing is the type of static routing in which all the packets will be forwarded by matching the default entry in the routing table.  

This routing protocol is mainly used at the edge router of the enterprise  

There is a high chance of creating a loop in the network by default routing so we have to use default routing carefully. 

Syntax:  

 

Enter Global configuration mode. 

Shape 

Device# configure terminal 

Device(config)# ip route 0.0.0.0 0.0.0.0 <Next Hop IP Address> 

 

Configuration: – Let us configure the default route on the same topology   

R1#config t 

R1(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 

 

Verification: 

 

 

R1#show ip route 

Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP 

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area 

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP 

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area 

* – candidate default, U – per-user static route, o – ODR 

P – periodic downloaded static route 

 

Gateway of last resort is 1.1.1.2 to network 0.0.0.0 

 

 1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks 

ShapeC 1.0.0.0/8 is directly connected, GigabitEthernet0/0/0 

L 1.1.1.1/32 is directly connected, GigabitEthernet0/0/0 

 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks 

C 172.16.0.0/16 is directly connected, GigabitEthernet0/0/1 

L 172.16.1.1/32 is directly connected, GigabitEthernet0/0/1 

S* 0.0.0.0/0 [1/0] via 1.1.1.2 

 

Similarly, for R2: 

 

 

R2(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1 

 

Verification: –  

 

R2#show ip route 

S* 0.0.0.0/0 [1/0] via 1.1.1.1 

What are the advantages of Default Routing Protocol?

The advantages of Default Routing Protocol are as follows:-   

  1. Default routing simplifies the routing configuration by providing a single route for the network.  
  2. Reduction in routing table size  
  3. Easy to configure 

What are the disadvantages of Default Routing Protocol?

The disadvantages of the Default Routing Protocol are as follows:-  

  1. If an unauthorized device or attacker gains control of the default route, they could potentially divert traffic inappropriately.  
  2. If a default route is misconfigured or points to an incorrect next hop, it can lead to traffic being misrouted or dropped.  
  3. In complex networks with diverse destinations and traffic patterns, default routing might not effectively accommodate all routing requirements. 

What is Dynamic Routing Protocol?

Configuring Static Routing and Default Routing is hectic, and when it comes to a large number of routes, it is not easy to configure each route manually. Dynamic Routing can automate this process. 

Dynamic Routing protocols allow routers to dynamically learn and adapt to changes in the network topology. These protocols use algorithms to calculate the best path for packet forwarding based on various factors such as network congestion, link availability, and cost metrics. 

Examples of dynamic routing protocols include RIP, OSPF, EIGRP, and BGP.

What are the kinds of Dynamic Routing Protocols?

Dynamic Routing can be divided into two types, namely- 

  • Interior Gateway Protocol (IGP) 

IGP is designed and intended for use inside a single autonomous system.  

IGP is further divided into multiple types- 

  1. Distance vector routing protocol (DVRP): – Routing Internet protocol (RIP), Interior gateway routing protocol (IGRP)  
  2. Advanced distance vector routing protocol (ADVRP): – Enhance interior gateway routing protocol (EIGRP)  
  3. Link state routing protocol (LSRP): – Open shortest path first (OSPF), IS-IS (Intermediate system-intermediate system). 
  • Exterior Gateway Protocol (EGP) 

EGP is designed to be used between the same as well as different autonomous systems over the internet.  

NOTE: Path vector routing protocol (PVRP) i.e. Border gateway protocol comes under this category. 

What are the advantages of Dynamic Routing Protocol?

The advantages of Dynamic Routing Protocol are as follows:-   

  1. Dynamic routing protocol can automatically update the routing table in response to changes in the network. Hence, manual work is reduced.  
  2. This protocol can easily adapt to network changes by recalculating routes which makes it suitable for networks with dynamic traffic patterns.  
  3. It provides fast convergence. 

What are the disadvantages of Dynamic Routing Protocol?

The disadvantages of the Dynamic Routing Protocol are as follows:-  

  1. Configuring dynamic routing protocol is very complex. 
  2. Dynamic protocol generates routing updates which leads to the utilization of bandwidth, processing power, etc.  
  3. Security risk is high. 

22 thoughts on “Types of Routing Protocols – Explained ”

  1. Great breakdown of the different routing protocols! I found the comparison between distance vector and link-state protocols especially useful. It clarified some concepts I was struggling with. Thanks for making it so easy to understand!

    Reply
  2. Hi would you mind letting me know which web host you’re using? I’ve loaded your blog in 3 different web browsers and I must say this blog loads a lot quicker then most. Can you recommend a good internet hosting provider at a reasonable price? Thanks a lot, I appreciate it!

    Reply
  3. I have been absent for a while, but now I remember why I used to love this website. Thank you, I will try and check back more often. How frequently you update your web site?

    Reply
  4. you are really a good webmaster. The site loading speed is amazing. It seems that you’re doing any unique trick. Furthermore, The contents are masterwork. you’ve done a excellent job on this topic!

    Reply
  5. I’m really impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it is rare to see a great blog like this one these days..

    Reply
  6. Hello There. I found your blog using msn. This is a very well written article. I’ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I’ll certainly return.

    Reply
  7. Terrific work! This is the type of information that should be shared around the internet. Shame on Google for not positioning this post higher! Come on over and visit my website . Thanks =)

    Reply
  8. Howdy! I know this is somewhat off topic but I was wondering if you knew where I could locate acaptcha plugin for my comment form? I’m using the same blog platform asyours and I’m having trouble finding one? Thanks a lot!

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Attend Your First Free Demo Class

Fill out the form now to experience live classes with us. Learn Directly from Engineers working in big tech giants.

Attend Your First Free Demo Class

Fill out the form now to experience live classes with us. Learn Directly from Engineers working in big tech giants.