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:

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: We have three routers and a bunch of netwo



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! Here is why:

  • 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 657 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)

517 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. Hi Rene ,

    Is “Discontiguous Network” issue is due mainly classfull routing lookup ? , because it will do look up only classfull manner , like router has to do a look up for destination network 10.11.1.0 /24 , as the 1st octate is belongs to class A range it wont check further the the mask part , if network not existing it will drop it ?

    Can you guide on “Discontiguous Network” and its solution aprroach .

    Regards,
    Sameer.

  4. Hello Sameer

    For the explanation, I will use the subnets used in the lesson.

    The problem with classful networks is that if there is a destination of 172.16.1.0/24 this will be installed in the routing table as 172.16.0.0/16 since 172.16.X.X is a class B network. This works fine as long as all destinations of 172.16.0.0/16 are to be routed via the same interface.

    However, if you have a case such as this, discontiguous networks with classful routing presents a problem:

    //cdn-forum.networklessons.com/uploads/default/original/1X/535fc38fd51b128a70433f665e2b2615490

    ... Continue reading in our forum

  5. Thank you Laz!!
    Regards,
    Sameer.

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