Classful vs Classless Routing Protocols

Routing protocols can be classful or classless:

  • Classful routing protocols DO NOT send the subnet mask along with their updates.
  • Classless routing protocols DO send the subnet mask along with their updates.

Let’s take a look at an example to emphasize this:




three cisco routers

We have three routers and a bunch of networks. Take a close look at the networks that we have here:

  • 172.16.1.0 /24
  • 172.16.2.0 /24
  • 192.168.12.0 /24
  • 192.168.23.0 /24

Remember the class A, B, and C ranges?

  • 172.16.1.0 and 172.16.2.0 fall within the class B range.
  • 192.168.12.0 and 192.168.23.0 fall within the class C range.

What subnet mask do class B and class C networks have by default?

  • Class B: 255.255.0.0
  • Class C: 255.255.255.0

A classful routing protocol will not send the subnet mask along with the routing update, so this is what will happen:

three routers configured for classful routing

R1 and R3 don’t send the subnet mask along with the routing update, so it will advertise the classful network, which is 172.16.0.0 in this case. So what happens with R2? It thinks it can reach the 172.16.0.0 network by sending packets either left or right, and if the metric is equal, it will try to load-balance. Obviously, this is going to cause problems.

Classless routing protocols advertise the subnet mask along with their updates:

classless routing

As you can see, R1 is now advertising its 172.16.1.0 subnet with a subnet mask. R3 is advertising its 172.16.2.0 subnet with a subnet mask as well.

Which routing protocols are classful or classless? I’m going to give you an overview:

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now!

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
  • Full Access to our 800 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)
538 Sign Ups in the last 30 days
satisfaction-guaranteed

  • 100% Satisfaction Guaranteed!
  • You may cancel your monthly membership at any time.
  • No Questions Asked!

Tags:


Forum Replies

  1. Very clear and easy to understand thank you.

  2. Crystal clear. You have explained it very nicely.

  3. Agree with the comments above. Clear definition. Thanks.

  4. Great explanation. Cheers dude

17 more replies! Ask a question or join the discussion by visiting our Community Forum