Got it

Route Summarization

Created: Oct 15, 2021 05:57:49Latest reply: Oct 19, 2021 12:50:23 261 8 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Dear Datacom Fellows


We need to do Route Summarization to reduce load, saving memory, bandwidth, and CPU Cycle. It also prevents routing table instability due to flapping networks.


Please suggest some quick and accurate method to do. 


Here are some routes showing (for reference only, omitted IP & ASNs). I m looking for your experience and industry best practices 


     Network          Next Hop            Metric LocPrf Path
 
 r>i 10.0.x.0/25     123.xx.x.x            100    100   65000 i
 r>i 10.0.y.0/24     123.xx.x.x            10     100   65001 65001 i
 r>i 10.0.z.a/24     123.xx.x.x            100    100   65914 i
 r>i 10.0.b.0/24     123.xx.x.x            100    100   65914 i
 r>i 10.0.c.64/27    123.xx.x.x            100    100   65000 65000 65600 65125 i
 r>i 10.0.c.96/27    123.xx.x.x            100    100   65000 65000 65600 65125 i

 

 

 Route summarization is a method where we create one summary route that represent multiple networks/subnets. It’s also called route aggregation or supernetting.


Featured Answers

Recommended answer

fuzi_yao
Admin Created Oct 15, 2021 05:59:51

Hi BAZ,
Yyup, bro. you can use route summarization or route filtering to reduce the number of routes in the routing table to reduce the CPU load.

View more
  • x
  • convention:

BAZ
BAZ Created Oct 15, 2021 06:05:26 (0) (0)
Thanks for quick response @fuzi_yao but i am looking for industry best practices & suggestions or experiences  
fuzi_yao
fuzi_yao Reply BAZ  Created Oct 15, 2021 06:53:04 (0) (0)
bro,As far as I know, route aggregation and filtering are the most commonly used methods to reduce routing table entries. If you find more methods, please share them.  
All Answers

Hi BAZ,
Yyup, bro. you can use route summarization or route filtering to reduce the number of routes in the routing table to reduce the CPU load.

View more
  • x
  • convention:

BAZ
BAZ Created Oct 15, 2021 06:05:26 (0) (0)
Thanks for quick response @fuzi_yao but i am looking for industry best practices & suggestions or experiences  
fuzi_yao
fuzi_yao Reply BAZ  Created Oct 15, 2021 06:53:04 (0) (0)
bro,As far as I know, route aggregation and filtering are the most commonly used methods to reduce routing table entries. If you find more methods, please share them.  
faysalji
faysalji Author Created Oct 15, 2021 09:46:56

You may also interested in this calculator @BAZ :)

https://asecuritysite.com/ip/routesum
View more
  • x
  • convention:

Good answer
View more
  • x
  • convention:

bruno.guedes
bruno.guedes HCIE MVE Author Created Oct 18, 2021 20:33:18

Hello there,

Route summarization can be done just by seeing how many bits are exactly the same as the prefixes that you are interested in summarize. Where the bits are the same, (always observing from left to right) it's revealed how long your mask needs to be in order to represent all prefixes you want. 


Example


10.10.16.0/24

10.10.17.0/24

10.10.18.0/24

10.10.19.0.24


In binary you have these addresses:


00001010.00001010.00010000.00000000

00001010.00001010.00010001.00000000

00001010.00001010.00010010.00000000

00001010.00001010.00010011.00000000


All digits in bold are exactly the same (22 digits), so now I know that I have to use a /22 mask. The address that I will use will be the first in the sequence, so it will be 10.10.16.0/22 in order to summarize those 4 networks. Note that the networks are in sequence (contiguous) and I represent exactly 4 networks using the /22. Let's assume that I had the 10.10.22.0/24 also and I wish to summarize them along with the others... If I reduce the mask to /21, I will also represent the addresses 10.10.20.0, 10.10.21.0, 10.10.23.0 alongside the 10.10.22.0/24. So if packets destined to these addresses were sent, they would match this 10.10.16.0/21 route. Therefore, it is not possible to summarize it in this manner. It's better to summarize the contiguous network as a /22 and keep announcing this specific network (10.10.22.0/24 in the example). 


You just got to be very conscious that if all prefixes are not contiguous, you will represent more networks than you actually have in your IP routing table, making it possible that traffic can be forwarded to the router where the network does not exist (creating a kind of blackhole).

In your example is not possible to see if these networks are contiguous.

If you are using BGP, just remember to enable the use of the as-set in order to keep an unordered list of the AS numbers of the networks that compose the summarized route (this will avoid a loop).  

In the BGP view, uses the following command:

aggregate ipv4-address { mask | mask-length } as-set

View more
  • x
  • convention:

BAZ
BAZ MVE Author Created Oct 18, 2021 22:31:14

Posted by bruno.guedes at 2021-10-18 20:33 Hello there,Route summarization can be done just by seeing how many bits are exactly the same as the ...
Thanks @bruno.guedes for sharing this.
Let me refine my issue " Please suggest some quick and accurate methods to do Summarization on *received Routes* (as we are receiving 20K+ routes "
View more
  • x
  • convention:

bruno.guedes
bruno.guedes HCIE MVE Author Created Oct 19, 2021 12:50:23

Posted by BAZ at 2021-10-18 22:31 Thanks @bruno.guedes for sharing this. Let me refine my issue " Please suggest some quick and accu ...
Hello Baz,

I have never seen such a thing. Who is sending should advertise summarizing routes because once received, the only thing that you can do is a filter to discard routes that you don't want in your BGP routing table. You don't summarize received routes. I've never heard about it.
If you have to redistribute these routes to an IGP (like OSPF), then you could summarize in order to avoid your IGP having so many routes, but you will have these +20K routes in the BGP routing table anyway.
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.