Route Summarization

Hey Rene,
I was following you example but got confused on these:
172.1.4.0/25 10101100.00000001.00000100.00000000
172.1.128.0/25 10101100.00000001.10000000.00000000
172.1.5.0/24 10101100.00000001.00000101.00000000
172.1.6.0/24 10101100.00000001.00000110.00000000
172.1.7.0/24 10101100.00000001.00000111.00000000

Particularly the 2nd one 172.1.128.0/25. Following your example using the 3rd octet has a 128 in it, so how would I factor this in as the other octets are using the first 5 bits.

thanks
James

Hi James,

Where did you find this example? It’s not on this page? :slight_smile:

Rene

Rene,
I got it off a ccna test page, but I believe I figured out the solution, what threw me off what the 172.1.128.0/25, it’s similar to how you solved the other two.

thanks
James

Ah I see…they probably included it to throw you off guard :slight_smile:

You can summarize 4,5,6 and 7 to 172.16.4.0 /22

Hi Rene

What are the disadvantages of using Route Summarization? Can you explain those with some examples pl.

Hi Lokesh,

There are a couple of potential issues.

  1. You can blackhole traffic. For example let’s say you have these 4 networks behind a router:

192.168.0.0 /24
192.168.1.0 /24
192.168.2.0 /24
192.168.3.0 /24

If you would create a summary like 192.168.0.0 /20 then basically you are advertising the 192.168.0.0 - 192.168.15.0 range to other routers. When your router receives a packet with destination 192.168.6.6 or something it will drop it.

  1. Asymmetric routing, This one is harder to explain with text only. When you advertise a summary it’s possible that other routers will select a different (more specific) path as the next hop.

  2. Traffic engineering: If you use a routing protocol then you can play with the different metrics for each prefix. If you advertise a summary instead of all the different prefixes then you won’t be able to change metric (or BGP attributes) for a single prefix.

Rene

For #1, why will router receive traffic for 192.168.6.6 subnet, can you give me a topology or some conditions under which router is likely to receive traffic for other subnets unless it is designed in-correctly.

All addresses from 192.168.0.0 to 192.168.15.255 fall under the 192.168.0.0 /20 summary so if you advertise that summary in a routing protocol, other routers will use it.

192.168.6.6 falls within that range so if another router doesn’t have a more specific route than the 192.168.0.0 /20 summary it will use it.

hi

ip range 126.89.120.0/22

how many sunbets will that cover and what ranges

Hi Aaron,

126.89.120.0 looks like this in binary:

01111110 01011001 01111000 00000000

Let’s look at the third octet, since that’s where 22nd bit is:

120 = 01111110 01011001 01111000
121 = 01111110 01011001 01111001
122 = 01111110 01011001 01111010
123 = 01111110 01011001 01111011

So there it is, it matches 126.89.120.0, 126.89.121.0, 126.89.122.0 and 126.89.123.0

Rene

so will it cover
126.89.120.0/27
126.89.120.64/27
126.89.120.96.27

and so on ?

Yes, we are working with the third octet here so anything in the fourth octet is included.

so will it be good to advertise the summary route 126.89.120.0/22 to all eigrp neighnours to form relationships

or advertise seperate subnets
and only advertise 126.89.120.0/22 between bgp neighbours ?

Hi Aaron,

It depends…advertising a summary doesn’t have anything to do with neighbor adjacencies. Let’s say we have two routers…R1 and R2. R1 has 4 interfaces with a network on each interface.

When we advertise 4 subnets, R2 will have 4 entries. When an interface on R1 goes down then this will affect the routing table of R2.

If we would use a summary route instead of those 4 networks then whenever an interface goes down on R1, nothing will change on R2. This makes our routing table more stable.

So that’s the advantage of summarization, the disadvantage is that it can also influence your routing decisions. If you learn a more specific entry from another router then it’s possible that R2 doesn’t use the summary route anymore for certain destinations.

what if you have 10 networks to summarize? would that fall under the 16-block?

Arthur,
The answer to this depends on size of the networks you are wanting to summarize and whether or not they are contiguous. For the sake of simplicity, let’s say you want to summarize the following into the smallest possible summary address:

192.168.0.0/24
...
192.168.9.0/24

When I do subnetting, I use a mental shortcut instead of going all the way down to binary. Instead, I used exponents using the following formula

2^X >= Y

This reads as “two to the Xth power greater than or equal to Y” where Y is the number of networks (or hosts) you are trying to solve for. X is the power of two necessary so that 2 to the Xth power is greater than or equal to the number of networks in question.

In our example, we are trying to solve for 10 networks (0 - 9). What power of 2 is necessary such that two to that number is greater than or equal to 10? The answer is 4, since 2^4 = 16. This gives us a value of X=4, but what exactly is X? X represents the number of bits that must be used, in this case, to represent the 10 networks for which we are summarizing.

This means that /20 mask (255.255.240.0) is the smallest possible mask that could cover 192.168.0.0 - 192.168.9.0. So the summary address for 10 networks would be: 192.168.0.0/20.

Note that it was NOT necessary to go all the way to a /16 summary in order to create the summary.

omg!!! rene you literally made me to understand summarization, just by looking at your example. i am so happy i understand it now, because i usually run away from summarization but your explanation nailed it for me. thank you so much. the fact you break things down to the simplest form, is priceless.

Thanks rene

Hi guys,

I only got the hang of it thanks to the comments.

Thanks,
Gerson

Hi Rene,

Regarding the below example , how are you determining that the block size is 64? Also 172 is a class B address. How it is having /24 which is a class C address.?
Can you pls explain?

172.16.10.0/24
172.16.20.0/24
172.16.30.0/24
172.16.40.0/24
172.16.50.0/24