Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How do you summarize routes in OSPF?

user-image
Question ajoutée par Syed Javed , it consultant , Infosys
Date de publication: 2016/05/11
Abdul Jahid Khan
par Abdul Jahid Khan , Sr. Manager - Design Consultant , TATA Communications

There could be two types os summarization.

1. Summarization of External routes

2. Summarization of internal area route.

To summarize the external area routes, below command can be used inside the router ospf#

summary-address 192.168.0.0255.255.255.0

To summarize the internal area routes, below command can be used inside the router ospf#

area 1 range 100.10.0.0255.255.0.0Hope this clarifies.

Fayyaz Ahmed
par Fayyaz Ahmed , IP Core Expert , ZTE

Summarization between areas can be done on ABR by using single command under OSPF process:

area [area-id] range [ ip-address ] [mask ] [advertise | not-advertise |cost {cost}]

A) area-id= Identifier of the area about which routes are to be summarized

B) [ ip-address ] [mask]= Summary route to be advertise in areas

Summary route calculation: Only 3 steps are required to calculate summary route

     1) Convert the addresses to binary format     2) Locate the bit where the common pattern of digits ends     3) The number of common bits is subnet mask and the summary route number is represented by the first IP address in the block.

Utilisateur supprimé
par Utilisateur supprimé

 Summarization is possible under OSPF using the commande area X range A.B.C.D MASK 

Muhammad umar Chaudhry
par Muhammad umar Chaudhry , TAXI DRIVER , CAR TAXI SERVICES Co. (L.L.C)

OSPF is link state routing protocol that works on the concept of areas. All areas must have same LSDB (link state database)

Patrick Ybiernas
par Patrick Ybiernas , Senior Network Engineer

route-summarization is given thru subnetting the netmask this is called network summary LSA 3

Saad Saleem
par Saad Saleem , Business Owner , Hunkydory Burgers

OSPF is link state routing protocol that works on the concept of areas. All areas must have same LSDB (link state database); hence OSPF summarization can only done on the border routers i.e. on ABR (Area border router) and ASBR (Autonomous system boundary router).In this document we discussed about route summarization between the areas.

Background:

Summarization between areas can be done on ABR by using single command under OSPF process:

area [area-id] range [ ip-address ] [mask ] [advertise | not-advertise |cost {cost}]

A) area-id= Identifier of the area about which routes are to be summarized

B) [ ip-address ] [mask]= Summary route to be advertise in areas

Summary route calculation: Only 3 steps are required to calculate summary route

     1) Convert the addresses to binary format     2) Locate the bit where the common pattern of digits ends     3) The number of common bits is subnet mask and the summary route number is represented by the first IP address in the block.

Let’s assume the following networks in routing table:

192.168.0.0/24192.168.1.0/24192.168.2.0/24

Prefix’s

Binary Splitting

 

  8        16       24         32

192.168.0.0

110000001010100000000000 000000000

192.168.1.0

110000001010100000000001 000000000

192.168.2.0

110000001010100000000010 000000000

 

From the above table it shows first 22 bits are common, so summary route subnet mask is /22 i.e. 255.255.252.0 and summarized route is 192.168.0.0/22

C) advertise = By default type 3 LSA is advertiseD) not-advertise =Its optional and used to filter type 3 LSA component of the networks specify in range command.E) Cost =It’s optional When we have multiple ABRs we can Advertise summary route with cost for route manipulation. 

Configuration overview:

In following example router ABR1 is directly connected to R1 in area 1 and to R2 in backbone area0.

Topology Diagram:

 

OSPF_SUMMERIZATION.jpg

 

On R1 loopbacks are created loopbacks for generating network prefixes and advertise them into OSPF as follow:

R1#sh ip interface brief | include Lo

Loopback0                  192.168.0.1     YES manual up                    up

Loopback1                  192.168.1.1     YES manual up                    up

Loopback2                  192.168.2.1     YES manual up                    up

R2 in area 0 learns Type3 LSA for loopbacks created on R1 via ABR1 and installed into routing table as shown in below output:

 

R2#sh ip ospf database | Beg Summary

                Summary Net Link States (Area 0)

 

Link ID         ADV Router      Age         Seq#       Checksum

10.1.1.0        10.1.1.6        260         0x800000010x00B463

192.168.0.0     10.1.1.6        102         0x800000010x00B8FD

192.168.1.0     10.1.1.6        102         0x800000010x00AD08

192.168.2.0     10.1.1.6        102         0x800000010x00A212

 

R2#sh ip ospf database summary 192.168.0.0

 

            OSPF Router with ID (10.1.1.5) (Process ID 100)

 

                Summary Net Link States (Area 0)

 

  Routing Bit Set on this LSA

  LS age: 7

  Options: (No TOS-capability, DC, Upward)

  LS Type: Summary Links(Network)

  Link State ID: 192.168.0.0 (summary Network Number)

  Advertising Router: 10.1.1.6

  LS Seq Number: 80000002

  Checksum: 0x5C62

  Length: 28

  Network Mask: /24

        TOS: 0  Metric: 2  

 

R2#sh ip route | Begin Gateway

Gateway of last resort is not set

 

     10.0.0.0/30 is subnetted, 2 subnets

O IA    10.1.1.0 [110/2] via 10.1.1.6, 00:00:36, FastEthernet0/0

C       10.1.1.4 is directly connected, FastEthernet0/0

O IA 192.168.0.0/24 [110/3] via 10.1.1.6, 00:00:36, FastEthernet0/0

O IA 192.168.1.0/24 [110/3] via 10.1.1.6, 00:00:36, FastEthernet0/0

O IA 192.168.2.0/24 [110/3] via 10.1.1.6, 00:00:36, FastEthernet0/0

Configuring ABR1 to summarized loopback subnets available on R1 i.e.192.168.0.0/24192.168.1.0/24192.168.2.0/24

 

ABR1(config)#router ospf 100

ABR1(config-router)#area 1 range 192.168.0.0255.255.252.0

ABR1(config-router)#end

 

 

After configuring summarization on ABR1, R2 receives Type 3 i.e.192.168.0.0/22 not individual type 3 LSA for each loopback address from ABR1 shown below:

 

R2#sh ip route | Begin Gateway

Gateway of last resort is not set

 

     10.0.0.0/30 is subnetted, 2 subnets

O IA    10.1.1.0 [110/2] via 10.1.1.6, 00:16:36, FastEthernet0/0

C       10.1.1.4 is directly connected, FastEthernet0/0

O IA 192.168.0.0/22 [110/3] via 10.1.1.6, 00:06:00, FastEthernet0/0

Discard route:

It's interesting to look at these summary routes on the ABR, which is responsible for doing all of the summarization. The ABR also includes the summary routes, but they aren't real routes, so it simply points them to its Null0 interface called discard routes. They help to prevent routing loops during summarization:

ABR1#sh ip route ospf

O    192.168.0.0/24 [110/2] via 10.1.1.1, 00:15:01, FastEthernet0/0

O    192.168.1.0/24 [110/2] via 10.1.1.1, 00:15:01, FastEthernet0/0

O    192.168.2.0/24 [110/2] via 10.1.1.1, 00:15:01, FastEthernet0/0

O    192.168.0.0/22 is a summary, 00:15:01, Null0

 

Discard route is generated by default, and you don't need to create it. If you want to disable creation of the discard route, you can use the no discard-route command as follows:

ABR1(config)#router ospf 100

ABR1(config-router)#discard-route internal

ABR1(config-router)#end

  Benefits of OSPF Summarization:

1) Reduce the number of routing table entries.

2) Reduce Type3 flooding and saves router CPU resource.

3) Summarization can also be used for route manipulation by using longest match prefix concept

Muhammad Siddique
par Muhammad Siddique , Network engineer , Netcare communication

The routes in OSPF Protocol is given as................................after going in administrative mode the general command is given as.

Router OSPF 10

Network ID    Wildcard mask  area 0

10.0.0.00.255.255.255 area 0

the OSPF route for R1 is as

C 1.0.0.0/8 is directly connected, Serial1/0

O 2.0.0.0/8 [110/128] via 1.1.1.2, 00:00:18, Serial1/0

O 3.0.0.0/8 [110/128] via 4.1.1.1, 00:00:18, Serial1/1

C 4.0.0.0/8 is directly connected, Serial1/1

C 200.100.50.0/24 is directly connected, FastEthernet0/0

O 200.100.100.0/24 [110/129] via 1.1.1.2, 00:00:18, Serial1/0

[110/129] via 4.1.1.1, 00:00:18, Serial1/1

O 200.100.150.0/24 [110/65] via 1.1.1.2, 00:00:18, Serial1/0

O 200.100.200.0/24 [110/65] via 4.1.1.1, 00:00:18, Serial1/1

The OSPF route for R2 is as

C 1.0.0.0/8 is directly connected, Serial1/0

C 2.0.0.0/8 is directly connected, Serial1/1

O 3.0.0.0/8 [110/128] via 2.1.1.1, 00:03:31, Serial1/1

O 4.0.0.0/8 [110/128] via 1.1.1.1, 00:03:20, Serial1/0

O 200.100.50.0/24 [110/65] via 1.1.1.1, 00:03:20, Serial1/0

O 200.100.100.0/24 [110/65] via 2.1.1.1, 00:03:31, Serial1/1

C 200.100.150.0/24 is directly connected, FastEthernet0/0

O 200.100.200.0/24 [110/129] via 2.1.1.1, 00:03:20, Serial1/1

[110/129] via 1.1.1.1, 00:03:20, Serial1/0

The OSPF route for R3 is as

O 1.0.0.0/8 [110/128] via 2.1.1.2, 00:04:42, Serial1/0

C 2.0.0.0/8 is directly connected, Serial1/0

C 3.0.0.0/8 is directly connected, Serial1/1

O 4.0.0.0/8 [110/128] via 3.1.1.2, 00:04:42, Serial1/1

O 200.100.50.0/24 [110/129] via 2.1.1.2, 00:04:30, Serial1/0

[110/129] via 3.1.1.2, 00:04:30, Serial1/1

C 200.100.100.0/24 is directly connected, FastEthernet0/0

O 200.100.150.0/24 [110/65] via 2.1.1.2, 00:04:42, Serial1/0

O 200.100.200.0/24 [110/65] via 3.1.1.2, 00:04:42, Serial1/1

The OSPF route for r4 is as

O 1.0.0.0/8 [110/128] via 4.1.1.2, 00:05:51, Serial1/1

O 2.0.0.0/8 [110/128] via 3.1.1.1, 00:05:51, Serial1/0

C 3.0.0.0/8 is directly connected, Serial1/0

C 4.0.0.0/8 is directly connected, Serial1/1

O 200.100.50.0/24 [110/65] via 4.1.1.2, 00:05:51, Serial1/1

O 200.100.100.0/24 [110/65] via 3.1.1.1, 00:05:51, Serial1/0

O 200.100.150.0/24 [110/129] via 3.1.1.1, 00:05:41, Serial1/0

[110/129] via 4.1.1.2, 00:05:41, Serial1/1

C 200.100.200.0/24 is directly connected, FastEthernet0/0

 

i hope you will understand it.

 

 

 

 

Fawad Ahmed Khalid
par Fawad Ahmed Khalid , Rafio Frequency Engineer , Swedtel Arabia

Route summarization improves CPU utilization, reduces LSA flooding, and reducesrouting table sizes. the ABR. The summary-address command is used tosummarize at the ASBR. Default routes can be used in OSPF to prevent the need for a specific route to each destination network.

More Questions Like This