48
© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr 1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 2 BRKRST-2310 14445_04_2008_c1 Deploying OSPF in a Large Scale Network BRKRST-2310

Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

Embed Size (px)

Citation preview

Page 1: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 2BRKRST-231014445_04_2008_c1

Deploying OSPF in a Large Scale Network

BRKRST-2310

Page 2: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

2

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 3BRKRST-231014445_04_2008_c1

Deploying OSPF in a Large Scale Network

Market SegmentsService Provider Deployments

Enterprise Deployments

Dialup Design techniques

Design Best Practices

Fast Convergence

OSPF as PE-CE Protocol

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 4BRKRST-231014445_04_2008_c1

Market Segments

Market Segmentsa) Service Providers

b) Enterprise

Manufacturing

Retail

Page 3: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

3

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 5BRKRST-231014445_04_2008_c1

Service Providers

SP networks are divided into pops

Transit routing information is carried via BGP

IGP is used to carry next hop only

Optimal path to the next hop is critical

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 6BRKRST-231014445_04_2008_c1

Enterprise Retails

IGP scalability requirementson retail side is on the Hub and Spoke

OSPF were designed keeping the Service Provider infrastructure in mind

Lacks clear vision towards hub and spoke architecture

Acquisitions brings more topological restrictions

Distance Vector are better choice for e.g., EIGRP, RIPv2, ODR

BGP?

Page 4: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

4

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 7BRKRST-231014445_04_2008_c1

Enterprise Manufacturing

Closet type infrastructure for host to host communications

Large number of end devices connections

Campus networks

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 8BRKRST-231014445_04_2008_c1

Service Providers Deployments

Page 5: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

5

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 9BRKRST-231014445_04_2008_c1

SP Deployment Characteristics

SPs should have only one instance of IGP running throughout the network (exceptions are there)

BGP carries external reachability

IGP carries only next-hop (loopbacks are better for e.g., next-hop-self)

IP Backbone

POP

POP POP

POP

Area 1BGP 1

POP POP

Area 6BGP 1

Area 5BGP 1

Area 4BGP 1

Area 2BGP 1

Area 3BGP 1Area0

BGP 1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 10BRKRST-231014445_04_2008_c1

SP Architecture

Major routing information is ~250K via BGP

Largest known IGP routing table is ~6–7K

Total of 267K

6K/267K ~ 2% of IGP routes in an ISP network

A very small factor but has a huge impact on network convergence!

IP Backbone

POP

POP POP

POP

Area 1BGP 1

POP POP

Area 6BGP 1

Area 5BGP 1

Area 4BGP 1

Area 2BGP 1

Area 3BGP 1Area0

BGP 1

Page 6: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

6

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 11BRKRST-231014445_04_2008_c1

SP Architecture

You can reduce the IGP size from 6K to approx the number of routers in your network

This will bring really fast convergence

Optimized where you must and summarize where you can

Stops unnecessary flapping Access

RR WAN

Regional Core

PEPE PE

NMS

CE CE CE

IGP

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 12BRKRST-231014445_04_2008_c1

SP Architecture

The link between PE-CE needs to be known for management purpose

BGP next-hop-self should be done on all access routers—unless PE-CE are on shared media (rare case)

This will cut down the size of the IGP

For PE-CE link do redistributed connected in BGP

These connected subnets should ONLY be sent through RR to NMS for management purpose; this can be done through BGP communities

Link Suppression can be done in OSPF via OSPF prefix suppression feature

Access

RR WAN

PEPE PE

NMS

CE CE CE

BGP

Regional Core

Page 7: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

7

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 13BRKRST-231014445_04_2008_c1

OSPF Prefix Suppression

When OSPF is enabled on the interface, it always advertises directly connected subnet

Only way to prevent the connected subnet to be advertised is to make the link unnumbered (not possible on broadcast segments)

Users may want to keep the links numbered for management and troubleshooting purposes

WAN link routes can be suppressed to keep the routing table smaller

Keep the network more secure

Makes the network more scalable

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 14BRKRST-231014445_04_2008_c1

OSPF Prefix Suppression (CLI)

Router Mode[no] prefix-suppression

Suppress all prefixes except loopbacks and passive interfaces

Interface Mode[no] ip ospf prefix-suppression [disable]

Suppress all prefixes on interface

Loopbacks and passive interfaces are included

Takes precedence over router-mode command

Disable keyword makes OSPF advertise the interface ip prefix, regardless of router mode configuration

Available 12.4(15)T

Page 8: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

8

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 15BRKRST-231014445_04_2008_c1

SP Architecture

Where do we define area boundaries? WAN routers can be the ABRs

Hide the pop infrastructure from your core

Traffic engineering if needed can be done in core from WAN routers Access

WAN ABR

PEPE PE

NMS

Area

CE CE CE

Regional Core

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 16BRKRST-231014445_04_2008_c1

SP Architecture

Physical address between ABR and PE should be in a contiguous blocks

These physical links should be filtered via Type 3 filtering from area 0 into other areas or suppressed via prefix suppression feature

Why? To reduce the size of the routing table within each pop

Every area will carry only loopback addresses for all routers

Only NMS station will keep track of those physical links

These links can be advertised in BGP via redistribute connected

PE device will not carry other Pop’s PE’s physical address in the routing table

Access

WAN ABR

Regional Core

PEPE PE

NMS

Area 1

CE CE CE

Area 0

Page 9: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

9

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 17BRKRST-231014445_04_2008_c1

SP Architecture

Area 0 will contain all the routes

This is the most intelligent form of routing and also there will not be too many routes in IGP

If there are 500 pops and every pop contains 4 routers; then instead of having 6K routes you will only have 2K

This is scalable and hack proof network!

IP Backbone

POP

POP POP

POP

Area1BGP 1

POP POP

Area 3BGP 1

Area 4BGP 1

Area 5BGP 1

Area 2BGP 1

Area 6BGP 1Area 0

BGP 1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 18BRKRST-231014445_04_2008_c1

Dealing with Redistribution

Don’t do it!

If you’re an SP you shouldn’t be carrying external information in your IGP

Let BGP take care of external reachability

Use OSPF or to carry only next-hop information—i.e., loopbacks

Page 10: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

10

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 19BRKRST-231014445_04_2008_c1

Enterprise Deployments

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 20BRKRST-231014445_04_2008_c1

Enterprise Retail

OSPF is not a very good choice for hub and spokes

Enhancements are being made in IETF to make OSPF more robust on hub and spoke

EIGRP, ODR, RIPv2 and BGP are better choices at the moment

Enterprise BGP is not complicated

You do not need to play with lot of attributes

Page 11: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

11

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 21BRKRST-231014445_04_2008_c1

OSPF Border Connections

Dual homed connections in hub and spoke networks illustrate a design challenge in OSPF: connections parallel to an area border

Assume the D to E link is in area 0

If the D to E link fails, traffic from A to F will:

Route towards the summary advertised by D

Route via the more specific along the path G, E, F

Summarization

AB C

DE

FG

ABR-1 ABR-2

Backbone

Area 1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 22BRKRST-231014445_04_2008_c1

OSPF Border Connections

Let’s take a closer look at the problem

Traffic prefers to stay within the area no matter what the actual link costs are

To reach A, we will take the higher cost link if the border link is in the backbone

To reach B, we will take the higher cost link if the border link is in the area

This is because we will always use an intra-area path over an inter-area path 100

10 10

A

B100

10.1.1.0/24, cost 10

100

10 10

A

B100

10.1.1.0/24, cost 10ABR-2

Backbone Area

ABR-2ABR-1

ABR-1

Area 1

Backbone Area

Area 1

Page 12: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

12

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 23BRKRST-231014445_04_2008_c1

OSPF Border Connections

Then, either:Decide which traffic you want to route optimally

Use either virtual circuits (sub-interfaces) or real links to create one adjacency between the ABRs per routed area

Configure the link in Area 1 with a virtual link in backbone (won’t work for more than 1 area)

100

10 10

A

B100

10.1.1.0/24, cost 10

100

10 10

A

B100

10.1.1.0/24, cost 10ABR-2

ABR-2ABR-1

ABR-1

Backbone Area

Backbone Area

Area 1

Area 1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 24BRKRST-231014445_04_2008_c1

Enterprise Retail

Summarization of areas will require specific routing information between the ABR’s

This is to avoid suboptimal routing

The link between 2 hub routers should be equal to the number of areas

As you grow the number of areas, you will grow the number of VLAN/PVC’s–scalability issue

Possible solution is to have a single link with adjacencies in multiple areas (draft-ietf-ospf-multi-area-adj-07.txt)

Trunk with One VLAN in Each Flooding DomainTrunk with One VLAN in Each Flooding Domain

Page 13: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

13

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 25BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke

Every router within a flooding domain receives the same information

Although B can only reach C through A, it still receives all of C’s routing information

Because of this, OSPF requires additional tuning for hub and spoke deployments

B

A

C

D

Reachability Only Through A

All Link State Information Is Flooded to B

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 26BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke

One of our primary goals is to control the amount of flooding towards the remotes

You can reduce flooding by configuring the hub not to flood any information to the remotes at all

ip ospf database-filter all out

The remote routers must supply their own remote, or the hub router must originate a default locally

This isn’t a common configuration

B

A

C

D

Block Flooding Here

Static Routes Here

Page 14: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

14

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 27BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke

The spoke areas should always be the “most stubby” you can get away with

If possible, make them totally stubby

If there is redistribution at the spokes, make the area totally not-so-stubby

The fewer spokes in each area the less flooding redundancy

However, less can be summarized in the backbone and a separate sub-interface is needed per area

Totally stubby makes more sense in multiple area situation

Area 1

router ospf 100area 1 stub no-summary....

router ospf 100redistribute rip metric 10....

router ospf 100area 1 nssa no-summary....

ABR

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 28BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke: Network Types

OSPF could treat a multi-point link as a broadcast network or NBMA, but there are issues with flooding and forwarding

B and D don’t receive C’s packets, so they think A has the highest IP address, and elect A as DR

C elects itself as DR

Flooding will fail miserably in this situation

We can set the OSPF DR priorities so the hub router is always elected DR

Set the spokes to 0 so they don’t participate in DR election

“A Is DR” “C Is DR” “A Is DR”

“C Is DR”

A

B C D

interface s0/0ip address 10.1.1. 255.255.255.0ip ospf priority 200....

interface s0ip ospf priority 0....

Page 15: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

15

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 29BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke: NBMA/Broadcast

OSPF will still have forwarding issues since the OSPF broadcast and NBMA assume a full mesh

There is bi-directional connectivity between A and B, C, and D

B, C, and D cannot communicate amongst themselves and traffic will be black-holed

One can get around this using DLCI routing at the Frame Relay layer

A

C DB

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 30BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke: P2MP

You can also configure the serial interface at the hub router as a point-to-multi-point type

All the remotes are in a single IP subnetOSPF treats each remote as a separate point-to-point link for flooding

OSPF will advertise a host route to the IP address of each spoke router to provide connectivitySmaller DB Size compare to p2pMost natural OSPF solution

10.1.1.2/3210.1.1.3/3210.1.1.4/32....

interface s0/0ip address 10.1.1.1 255.255.255.0ip ospf network point-to-multipoint

interface s0ip address 10.1.1.x 255.255.255.0ip ospf network point-to-multipoint

B D

A

C

Page 16: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

16

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 31BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke: P2P Sub-Interfaces

OSPF can also use point-to-point sub-interfaces, treating each one as a separate point-to-point link

Increase the DB size

These use more address space and require more administration on the router

Use /31 addresses for these point to point links

interface s0/0.1 point-to-pointip address 10.1.1.0 255.255.255.254....interface s0/0.2 point-to-pointip address 10.1.1.2 255.255.255.254....interface s0/0.3 point-to-pointip address 10.1.1.4 255.255.255.254

interface s0.1 point-to-pointip address 10.1.1.x 255.255.255.254....

AA

DB C

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 32BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke

Lost IP Address Space

More Routes in the Routing Table

Larger database

Overhead of Sub-Interfaces

Can Take Advantage of End-to-End Signaling for Down

State

Individual Point-to-Point Interface at the Hub

for Each Spokeip ospf Network-Type

Point-to-Point

Additional Host Routes Inserted in the Routing Table

Single IP Subnet

No Configuration per Spoke

Most Natural Solution

Smaller database

Single Interface at the Hub Treated as an OSPF

Point-to-Multipoint Network

ip ospf Network-Type Point-to-Multipoint

Manual Configuration of Each Spoke with the Correct

OSPF Priority

No Reachability Between Spokes or Labor-Intensive Layer

2 Configuration

Single IP Subnet

Fewer Host Routes in Routing Table

Single Interface at the Hub Treated as an OSPF

Broadcast or NBMA Network

DisadvantagesAdvantagesNetwork Type

Page 17: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

17

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 33BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke

The other consideration is determining how many spokes should fall within the area

If the number of remotes are low, we can place the hub and its spokes within an area

However, as the count rises, we want to make the hub an ABR, and split off the spokes in a single area

If you’re going to summarize into and out of the remotes, the hub needs to be a border router

Small Number of Spokes

Large Number of Spokes

Summarize Here

ABR

Area 1

Backbone

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 34BRKRST-231014445_04_2008_c1

OSPF Hub and Spoke

Low speed links and large numbers of spoke may require multiple flooding domains

Balance the number of flooding domains on the hub against the number of spokes in each flooding domain

The link speeds and the amount of information being passed through the network determines the right balance

Area 1

Backbone

Area 2

Page 18: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

18

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 35BRKRST-231014445_04_2008_c1

IGP 1

IGP 2 IGP 3

IGP 4BGP CoreUSA

FranceGermany

Japan

IGP 6 IGP 5

Brazil Canada

Enterprise Manufacturing

Can have multiple ‘islands’of IGPs

Islands tied together by a BGP core

One Island’s instability will not impact other Islands

This increases network stability

May be a requirement for redistribution

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 36BRKRST-231014445_04_2008_c1

Dealing with Redistribution

The number of redistribution boundaries should be kept to a minimum

Why?

Because you have better things to do in life besides; build the access lists

When redistributing try to place the DRas close to the ASBR as possible to minimize flooding

Page 19: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

19

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 37BRKRST-231014445_04_2008_c1

Dealing with Redistribution

Be aware of metric requirements going from one protocol to another

RIP metric is a value from 1–16

OSPF Metric is from 1–65535

Include a redistribution default metric command as a protection

router ospf 1

network 130.93.0.0 0.0.255.255 area 0.0.0.0

redistribute rip metric 1 subnets

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 38BRKRST-231014445_04_2008_c1

Dealing with Redistribution

Redistribute only what is absolutely necessaryDon’t redistribute full Internet routes into OSPF

Default route into BGP core; let the core worry about final destination

Page 20: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

20

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 39BRKRST-231014445_04_2008_c1

Dialup Design Tips

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 40BRKRST-231014445_04_2008_c1

Dialup Design Practices

Two kinds of Pools can be defined on NAS: Static Pools and Distributed Pools

Static Pool: address range remain within a single NAS—easier to manage from routing perspective

Dynamic Pool: address range may be distributed over multiple NAS’s—hard to manage from a routing perspective

1000+ Routes Injected by Each NAS

Agg. Router

Core

Page 21: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

21

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 41BRKRST-231014445_04_2008_c1

Dialup Design with Static Pool Addresses

Three ways to propagate dialup routes from NAS:

Either Static route to pool address to null 0 with redistribute static on NAS or

Assign the pool add on a loopback on NAS with OSPF p2p network-type including loopback in an OSPF area or

Static route on ABR for the pool address pointing towards NAS (ASBRs)—

Static pool do not require redistribute connected subnetson NAS

ABR

Area 0

1000+ Routes Injected by Each NAS

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 42BRKRST-231014445_04_2008_c1

Dialup Design with Dynamic Pool Addresses

Distributed pool REQUIRES redistribute connect subnets

If pool is distributed, you can’t summarize the pools at ABR because of redistribute connected subnets on NASs’unless its an NSSA, why?

NSSA can summarize the Type 7 routes at the ASBR as well as ABR

NSSAABR

Area 0

1000+ Routes Injected by Each NAS

Page 22: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

22

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 43BRKRST-231014445_04_2008_c1

Dialup Design Practices Scalability Issues

If an area has too many routes injected by NAS then break it up into more than one area

Area should be configured as NSSA for controlling type 5 at ABR level

NSSA ABR can filter type 5 originated by NAS servers

Configure totally NSSA to filter internal area routes from each other NAS

ABR

Area 0

Area 1 Area 2

…NAS NAS NAS

1000+ Routes Injected by Each NAS

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 44BRKRST-231014445_04_2008_c1

Design Best Practices

Page 23: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

23

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 45BRKRST-231014445_04_2008_c1

OSPF Stub Area

iBGP Core/Area 0POP

POP

POP POP

Accidental Redistribution Prevention (OSPF)

Areas should be defined as stub to prevent accidental redistribution of eBGP into OSPF

Type 3 LSA filtering should be used at ABR’s and only routers’loopbacks should be allowed to leak into other areas

Loopback should be in private address space to make LSA type 3 filtering easier; for e.g., 10.0.0.0/8

iBGP routes can not be redistributed into IGP by default

NMS resides in area 0 here

OSPF Stub Area

OSPF Stub Area

OSPF Stub Area

eBGPeBGP

eBGPeBGP

ABR

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 46BRKRST-231014445_04_2008_c1

Area Size: How Many Router in an Area?

Number of adjacent neighbors is more a factor

More important from the standpoint of amount of information flooded in area

Keep router LSAs under MTU size—exceeding is bad

Implies lots of interfaces (and possibly lots of neighbors)

Exceeding results in IP fragmentation which should be avoided

Page 24: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

24

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 47BRKRST-231014445_04_2008_c1

BackboneArea 0

1.1.1.0

3.3.4.0

3.3.4.0

3.3.3.0

3.3.1.0

2.2.3.0

2.2.1.01.1.2.0 1.1.3.0

2.2.2.0

1.1.1.01.1.2.01.1.3.01.1.4.0

3.3.1.03.3.2.03.3.3.03.3.4.0

2.2.1.02.2.2.02.2.3.01.1.4.0

OSPF Border Area Filtering: Ranges

Only summary LSA advertised out

Link-state changes do not propagate

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 48BRKRST-231014445_04_2008_c1

1.1.1.0

3.3.4.0

3.3.4.0

3.3.3.0

3.3.1.0

2.2.3.0

2.2.1.01.1.2.0 1.1.3.0

2.2.2.0

1.1.4.0

2.0.0.0

1.0.0.0

OSPF Border Area Filtering: Ranges

Only summary LSA advertised out

Link-state changes do not propagate

3.0.0.0Backbone

Area #0

Page 25: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

25

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 49BRKRST-231014445_04_2008_c1

Configure on Both ABRsArea-Range 11.1.0/17Area-Range 11.1.128/17

Cost to Range 1:Via ABR1: 30Via ABR2: 80

Cost to Range 2:Via ABR1: 80Via ABR2: 30

Area 1011.1/16

Area 0

ABR1 ABR2

10

5050

20 20

R3

R4

R5R6

11.1.1/24

11.1.2/2411.1.130/24

11.1.129/2410

Summarization Technique

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 50BRKRST-231014445_04_2008_c1

OSPF Border Inter-Area Filtering

Type-3 LSA filtering on ABR

Uses prefix-list to filter prefixes from being advertised from/to a specific area

Works both directions—out of a specific area or into a specific area

Page 26: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

26

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 51BRKRST-231014445_04_2008_c1

OSPF and Filtering: Inter-Area Filtering

OSPF Backbone Area 0Area 1

Area 2

Area 4LSA Type 3

LSA Type 3LSA Type 3

area 0 filter-list prefix AREA_0_OUT outarea 0 filter-list prefix AREA_0_IN in

Out Filter Applied Here

Area 3LSA Type 3

In Filter Applied Here

LSA Type 3

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 52BRKRST-231014445_04_2008_c1

OSPF Full Mesh

2 routers == 1 link

3 routers == 3 links

4 routers == 6 links

5 routers == 10 links

6 routers == 15 links

N routers == ((N) (N-1)) / 2

Full Mesh Topologies Are Complex:

Page 27: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

27

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 53BRKRST-231014445_04_2008_c1

OSPF Full Mesh

Flooding routing information through a full mesh topology is the MAIN concern

Each router will, with optimal timing, receive at least one copy of every new piece of information from each neighbor on the full mesh

Link down is n2 and node down is n3. For a very large router LSA it could become n4

There are several techniques you can use to reduce the amount of flooding in a full mesh

Mesh groups reduce the flooding in a full mesh network

Mesh groups are manually configured “designated routers” New Information

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 54BRKRST-231014445_04_2008_c1

OSPF Full Mesh

Pick a subset (>=2) of routers to flood into the mesh and block flooding on the remainder; leave flooding to these routers open

This will reduce the number of times information is flooded over a full mesh topology

! Point-to-Pointinterface serial 1/0ip ospf database-filter all out....

! Point-to-Multipointrouter ospf 1neighbor 10.1.1.3 database-filter all out

New Information

Page 28: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

28

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 55BRKRST-231014445_04_2008_c1

OSPF Flood Reduction

LSA have an age (1–3600)

When LSA is originated its age is set to 0

LSA is flushed from the area/domain when its age reaches MAXAGE (3600 sec)

Each router must periodically refresh all self-generated LSAs every 1800 seconds (jittered)

Demand Circuits (RFC 1793) introduces concept of DoNotAge LSAs—high order or DoNotAge bit of LSA header age indicates not to age the LSA

RFC 4136 extends this concept to all interface types

Eliminates periodic refresh of unchanged LSAs

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 56BRKRST-231014445_04_2008_c1

OSPF Flood Reduction (Cont.)

Configured at interface level

! All interfaces typesinterface ethernet 0/0ip ospf flood-reduction....

Very useful in fully meshed topologies

Possible extension to force refresh at an increased interval, e.g. every four hours; currently not implemented

Changes could be missed if the sum of the changes results in an identical checksum

Periodic refresh provides recovery from bugs and glitches

Page 29: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

29

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 57BRKRST-231014445_04_2008_c1

Fast Convergence

Detect the Event, Process the Event

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 58BRKRST-231014445_04_2008_c1

Fast Convergence

Network convergence is the time needed for traffic to be rerouted to the alternative or more optimal path after the network event

Network convergence requires all affected routers to process the event and update the appropriate data structures used for forwarding

Network convergence is the time required to:Detect the event

Propagate the event

Process the event

Update the routing table/FIB

Page 30: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

30

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 59BRKRST-231014445_04_2008_c1

Network Convergence

Techniques/tools for fast convergenceCarrier DelaysHello/dead timersBi-Directional Forwarding Detection—(BFD)LSA packet pacingInterface event dampening—Exponential throttle timers for LSA & SPFMinLSArrival Interval Incremental SPF

Techniques/tools for ResiliencyStub router (e.g., max-metric)Graceful Restart

DetectDetect

Detect

PropagatePropagate

ProcessProcess

Process

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 60BRKRST-231014445_04_2008_c1

C

10

10

OSPF Stub Router (RFC 3137)

E is learning 10.1.1.0/24 through iBGP from D with a next hop of A; E’s best path to A is through D

C comes up, and OSPF converges quickly; E now chooses C to reach A

BGP takes longer to converge; when E forwards packets to C for 10.1.1.1, C hasn’t finished building its BGP tables

C drops the packets

A

Original Best Path to A

C Starts and Provides a Better

Path to A

B

D

E

10.1.1.0/24

eBGP

20

20

Full iBGP Mesh

C Has No Path to

10.1.1.0/24

Not to Be Confused with Stub Areas

Page 31: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

31

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 61BRKRST-231014445_04_2008_c1

C

65535

65535

OSPF Stub Router

C signals E and B through OSPF that they should not route this direction (through stub router)

When BGP converges, C changes back to its normal metric, so B and E will now route through it

OSPF uses max-metric router-lsa on-startup wait-for-bgp to configure this feature

A

B

D

E

10.1.1.0/24

eBGP

Full iBGP Mesh

20

20Don’t Use Me Yet!

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 62BRKRST-231014445_04_2008_c1

Stub Router Advertisement

max-metric router-lsa [ on-startup {wait-for-bgp | <announce-time>} ]

Syntax Description

router-lsa Always originate router-LSAs with maximum metric

on-startup Set max-metric temporarily after reboot

announce-time Time, in seconds, router-LSAs are originated with max-metric (default is 600s)

wait-for-bgp Let BGP decide when to originate router-LSA with normal metric (i.e., stop sending router-LSA with max-metric)

Can be used to take a router out of service since default is indefinite

Page 32: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

32

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 63BRKRST-231014445_04_2008_c1

r201#sh ip ospf max-metric Routing Process "ospf 1" with ID 1.0.0.201Start time: 00:00:01.876, Time elapsed: 00:00:56.668Originating router-LSAs with maximum metric, Time

remaining: 00:00:09Condition: on startup for 66 seconds, State: active

r201#sh ip ospf max-metric Routing Process "ospf 1" with ID 1.0.0.201Start time: 00:00:01.876, Time elapsed: 00:01:12.560Originating router-LSAs with maximum metricCondition: on startup for 66 seconds, State: inactiveUnset reason: timer expired, Originated for 66 secondsUnset time: 00:01:07.932, Time elapsed: 00:00:06.504

r201#sh ip ospf 2 max-metric Routing Process "ospf 2" with ID 2.2.2.2Start time: 00:07:42.052, Time elapsed: 00:00:20.684Router is not originating router-LSAs with maximum metric

Stub Router: show ip ospf max-metric

OSPF allows for a configurable option to wait for BGP at startup

OSPF announces maximum metric while BGP is coming up

This enhancement shows real-time status on what is happening internally

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 64BRKRST-231014445_04_2008_c1

Graceful Restart

Non Stop Forwarding, Grace Restart

Page 33: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

33

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 65BRKRST-231014445_04_2008_c1

Graceful Restart

Graceful Restart (GR) allows a router’s control plane to reset without impacting global routing

Consider two routers connected over a single circuit

A

B

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 66BRKRST-231014445_04_2008_c1

Graceful Restart

Router A loses its control plane for some period of time

It will take some time for Router B to recognize this failure and react to it

Control Data

Control Data

A

B

Page 34: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

34

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 67BRKRST-231014445_04_2008_c1

Graceful Restart

During the time that A has failed and B has not detected the failure, B will continue forwarding traffic through A

Once the control plane resets, the data plane will reset as well, and this traffic will be dropped

NSF reduces or eliminates the traffic dropped while A’s control plane is down

Control Data

Reset

Control Data

A

B

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 68BRKRST-231014445_04_2008_c1

Graceful Restart

If A is NSF capable, the control plane will not reset the data plane when it restarts

Instead, the forwarding information in the data plane is marked as stale

Any traffic B sends to A will still be switched based on the last known forwarding information

Control Data

No Reset

Control Data

Mark Forwarding Information as Stale

A

B

Page 35: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

35

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 69BRKRST-231014445_04_2008_c1

Graceful Restart

While A’s control plane is down, B’s hold timer counts down

A has to come back up and signal B before B’s hold timer expires, or B will route around it

When A comes back up, it signals B that it is still forwarding traffic and would like to resynchronize

A and B get resynchronized and this completes the NSF process Hold Timer: 1514131211109876

Control Data

Control Data

A

B

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 70BRKRST-231014445_04_2008_c1

Graceful Restart

NSF is a protection scheme

NSF and fast hellos/BFD do not go well and should be avoided

NSF makes more sense in a singly homed edge devices

Multihomed edge devices should go on restoration scheme instead and switch over to the alternate path

Control Data

Control Data

A

B

Page 36: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

36

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 71BRKRST-231014445_04_2008_c1

Graceful Restart Mechanism Comparison

Normal Database Exchange (Adjacency Advertised as FULL)

Grace LSA (Opaque Link Local LSA)

IETF RFC 3623 (Opaque LSAs)

Out-of-Band Synchronization (OOB), Creates a New Form of

Synchronization (Similar to Standard Database

Synchronization)

Link Local Signaling (LLS), Extending Hellos to Add

Optional Information

Cisco NSF (LLS/OOB)

RFC 4811, 4812, 4813

ResynchronizationGR Signaling

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 72BRKRST-231014445_04_2008_c1

OSPF as PE-CE

MPLS Related Techniques

Page 37: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

37

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 73BRKRST-231014445_04_2008_c1

OSPF as PE-CE Routing ProtocolDifferent OSPF Process ID

In service provider networks, the OSPF process id should match, otherwise external type-5 routes are generatedSite 2 expects Type-3 inter-area routes from Site1 via PE2 but instead receives external type-5OSPF process-ID is usually locally significant. In MPLS VPN, consider service provider cloud acting as a single router from OSPF perspectiveInstead of removing and reconfiguring the OSPF process, service provider may configure same domain-id on both ingress and egress PEs to solve the problem

MPLS-VPN Backbone

Site1 - Area 1

Site2 - Area 2Net-1

Type-3 (Summary-LSA)Link-State-ID: C-1Link-ID: Net-1Adv. Router: PE-2

Type-5 (External-LSA) Link-State-ID: Net-1Adv. Router: PE-2Metric : 20

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

C-1

CE-1

PE-1

CE-2

PE-2

VPN-IPv4 UpdateRD:Net-1, Next-hop=PE-1RT=xxx:xxxOSPF-Route-Type= 1:2:0OSPF-Domain: xxxOSPF-RID= PE-1:0

Provider Edge Router (PE)

router ospf 2 vrf <name>domain-id 99

router ospf 1 vrf <name>domain-id 99

Mismatch ospf process id

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 74BRKRST-231014445_04_2008_c1

OSPF as PE-CE Routing ProtocolSummarization (Ingress PE)

Customer wants to send a summary route to all other sites from site1 (area 1)Summarization not possible since ABR does not exist in site1Provider can summarize in BGP and advertise a aggregate block to all other sites

Site3/Area 3

Site1/Area 1

router bgp 1…address-family ipv4 vrf <name>aggregate-address 30.1.0.0 255.255.0.0 summary-only

Site2/Area 2

Type-5 (External-LSA) Link-State-ID: 30.1.0.0Adv. Router: PE-2Metric : 20

OSPF

BGP

CE-1

PE-1

CE-2

PE-2

30.1.1.0 - 30.1.255.0

CE-3

PE-3OSPF

BGP

VPN-IPv4 UpdateRD:30.1.0.0, Next-hop=PE-1RT=xxx:xxxatomic-aggregate

Page 38: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

38

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 75BRKRST-231014445_04_2008_c1

30.1.1.0 - 30.1.255.0

OSPF as PE-CE Routing ProtocolSummarization—Egress PE

Customer needs to send a summary route to site3–area3Customer can’t summarize from each individual site. No ABR exists within the site (area 1 or area 2)Service provider can summarize all the other site routes on PE3

Sit1-Area 1 Site3-Area 3

Type-5 (External-LSA) Link-State-ID: 30.0.0.0Adv. Router: PE-3Metric : 58

Site2- Area 2

30.2.1.0 - 30.2.255.0

VPN-IPv4 UpdateRD:30.1.1.0, Next-hop=PE-1RT=xxx:xxxMED: 68OSPF-Route-Type= 1:2:0OSPF-Domain:xxx

router ospf 1 vrf <name>summary-address 30.0.0.0 255.0.0.0

Type-3 (Summary-LSA)Link-State-ID: C-1Link-ID: 30.1.1.0Adv. Router: PE-2

OSPF

BGP

VPN-IPv4 UpdateRD:30.2.1.0, Next-hop=PE-2RT=xxx:xxxMED: 58OSPF-Route-Type= 2:2:0OSPF-Domain:xxx

CE-1

PE-1

CE-2

PE-2

CE-3

PE-3

OSPF

BGP

OSPF

BGP

OSPF

BGP

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 76BRKRST-231014445_04_2008_c1

OSPF as PE-CE Routing ProtocolSummarization—Egress PE—Loop Prevention

Summary is originated in OSPF

Summary route will be propagated to all customer sites as a result of redistribution from OSPF into BGP

Summary route should be filtered while redistributing OSPF into BGP on PE3 unless it is desirable to send summary to some select PEs

Area 1Area 3

30.1.1.0 - 30.1.255.0

Area 2

30.2.1.0 - 30.2.255.0

30.0.0.0/8 summary route

VPN-IPv4 UpdateRD:30.0.0.0, Next-hop=PE-3RT=xxx:xxxMED: 58OSPF-Route-Type= 0:5:0OSPF-Domain:xxx x

Type-5 (External-LSA) Link-State-ID: 30.0.0.0Adv. Router: PE-3Metric : 58

CE-1

PE-1

CE-2

PE-2

CE-3

PE-3

OSPF

BGP

router bgp xxaddress-family ipv4 vrf vpnaredistribute ospf 99 vrf vpna route-map block_summary

route-map permit 10 block_summarymatch ip address 99

access-list 99 deny 30.0.0.0 0.0.0.255access-list 99 permit any

router ospf 1 vrf <name>summary-address 30.0.0.0

255.0.0.0

Page 39: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

39

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 77BRKRST-231014445_04_2008_c1

OSPF as PE-CE Protocol

Area Placement Considerations

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 78BRKRST-231014445_04_2008_c1

Common Design Consideration:OSPF Area Placement

OSPF sites have area 0

OSPF sites belong to different areas

All OSPF sites belong to the same areaNo backdoor exists

Backdoor is present

Page 40: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

40

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 79BRKRST-231014445_04_2008_c1

Common Design Consideration–OSPF Area Placement OSPF Sites Have Area 0

Type 1 or Type2 LSA converted into summary LSA by the Customer ABR

Local PE receives a Type-3 LSA and remote PE forwards the same Type LSA towards the remote CE

MPLS-VPN Backbone

Area 0 Area 0

Area 1Area 2

Network = Net-1

Type-3 (Summary-LSA) Down Bit Is SetLink-State-ID: Net-1Adv. Router: PE-2Metric: 6

Type-3 (Summary-LSA)Down Bit Is NOT SetLink-State-ID: Net-1Adv. Router: CE-1Metric: 6

Type-1 Router-LSA Link-ID: Net-1Adv. Router: x.x.x.x

Type-2 Network-LSA Link-State-ID: Net-1Adv. Router: x.x.x.x

or

Type-3 (Summary-LSA) Down Bit Is IgnoredLink-State-ID: Net-1Adv. Router: CE-2Metric: 6

PE-2

CE-2

PE-1

CE-1

VPN-IPv4 UpdateRD:Net-1, Next-hop=PE-1RT=xxx:xxxMED: 6OSPF-Route-Type= 0:3:0OSPF-Domain:xxx

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 80BRKRST-231014445_04_2008_c1

Common Design Consideration—OSPF Area Placement OSPF Sites Belong to Different Areas

Area 0 is not mandatory when migrating to MPLS VPN service

VPN sites may have different Sites configured for different areas

If Area 0 exists, it must touch MPLS VPN PE routers

MPLS-VPN Backbone

Area 1 Area 2

Network = Net-1

Type-3 (Summary-LSA) Down bit is setLink-State-ID: Net-1Adv. Router: PE-2Metric: 6

Type-1 (Router-LSA)Link-State-ID: Net-1Adv. Router: CE-1Metric: 6

PE-2

CE-2

Site1 Site2

PE-1

CE-1

VPN-IPv4 UpdateRD:Net-1, Next-hop=PE-1RT=xxx:xxxMED: 6OSPF-Route-Type= 1:2:0OSPF-Domain:xxxOSPF-RID= PE-1:0

Page 41: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

41

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 81BRKRST-231014445_04_2008_c1

Common Design Consideration—OSPF Area Placement All Sites Belong to the Same Area—Backdoor Does Not Exist

All VPN sites belong to same OSPF area (area 1 in the example)

Service provider PEs acts as OSPF ABR routersType1 or 2 LSA are always converted into Type 3

Remote Site receives a summary LSA

Not an issue if the topology for simple topologies

MPLS-VPN Backbone

Area 1 Area 1

Network = Net-1

Type-3 (Summary-LSA) Down bit is setLink-State-ID: Net-1Adv. Router: PE-2Metric: 6

Type-1 (Router-LSA)Link-State-ID: Net-1Adv. Router: CE-1Metric: 6

Site1 Site2

Type-3 LSA created even though local area number is same

PE-2

CE-2

PE-1

CE-1

VPN-IPv4 UpdateRD:Net-1, Next-hop=PE-1RT=xxx:xxxMED: 6OSPF-Route-Type= 1:2:0OSPF-Domain:xxxOSPF-RID= PE-1:0

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 82BRKRST-231014445_04_2008_c1

Common Design Consideration—OSPF Area PlacementAll Sites Belong to the Same Area—Backdoor Exists

Customers Sites are in the same area and there is a backdoor linkRoute is advertised to MPLS VPN backboneSame prefix is learnt as intra-area route via backdoor linkPE2 does not generate Type3 LSA once type-1 LSA is received from the siteTraffic is sent over backdoor link instead of MPLS VPN cloud

MPLS-VPN Backbone

Area 1 Area 1

CE-1/CE-2 linkArea 1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Net-1

C-1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

CE-1

PE-1

CE-2

PE-2

VPN-IPv4 UpdateRD:Net-1, Next-hop=PE-1RT=xxx:xxxOSPF-Route-Type= 1:2:0OSPF-Domain: xxxOSPF-RID= PE-1:0

No LSA Type 3 createdMPLS VPN Backbone Not used

Site1 Site2

Page 42: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

42

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 83BRKRST-231014445_04_2008_c1

Common Design Consideration—OSPF Area Placement Sites Belong to the Same Area—Backdoor with Sham Link

The sham link is treated as a virtual-link : unnumbered, ptp, DC link

The sham link is reported in the router LSA’s type 1 originated by the two routers connecting to the sham link

The MPLS VPN backbone or the backdoor link can be made preferred path by tweakingthe metrics

MPLS-VPN Backbone

Area 1 Area 1

CE-1/CE-2 linkArea 1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Net-1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

Sham-Link

With Metric manipulation,MPLS Backbone Can be made preferable

Site1 Site2C-1

CE-1

PE-1

CE-2

PE-2

Type-1 (Router-LSA)Link-State-ID: C-1Link-ID: Net-1Area: 1Adv. Router: C-1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 84BRKRST-231014445_04_2008_c1

Common Design Consideration—OSPF Area Placement Other Scenarios

Some OSPF sites entirely belong to area 0 and some other sites can belong to non area 0

Some sites may consist of hierarchical OSPF topology consisting of area 0 as well as non-zero areas

Both scenarios are valid

area 2

CE-1

Site2

PE-1

MPLS VPN Super Backbone

area 1

VPN redarea 0

VPN redPE-2

Site1

Page 43: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

43

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 85BRKRST-231014445_04_2008_c1

area 2

CE-1

PE-1

MPLS VPN Super Backbone

area 1

VPN redarea 0

VPN redPE-2

Common Design Consideration—OSPF Area Placement Area 0 Placement

As before some sites may consist of hierarchical OSPF topology consisting of area 0 as well as non-zero areas.If site contains area 0, it must touch provider PE routerOSPF RULE: Summary LSAs from non-zero area’s are not injected into backbone area 0Inter-area routes will not show up unless a Virtual link is created

LSA Type 1 or 2

vpnv4 update

LSA Type 3

LSA type 3

Summary routes is NOT advertised into area 0x

LSA Type 3x

LSA Type 3

virtual-link

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 86BRKRST-231014445_04_2008_c1

Database Overload Protection

Protects router from a large number of received LSAsPossibly as a result of the misconfiguration on remote router

Router keeps the number of received (non self-generated) LSAs

Maximum and threshold values are configured

When threshold value is reached, error message is logged

When maximum value is exceeded, no more new LSAs are accepted

If the counter does not decrease below the max value within one minute we enter ‘ignore-state’

Page 44: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

44

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 87BRKRST-231014445_04_2008_c1

Database Overload Protection (Cont.)

In ‘ignore-state’ all adjacencies are taken down and are not formed for ‘ignored-interval’

Once the ‘ignored-interval’ ends we return to normal operations

We keep the count on how many times we entered ‘ignore-state’—‘ignore-count’

When ‘ignore-count’ exceeds its configured value, OSPF process stays in the ‘ignore state’ permanently

Ignore-count is reset to 0, when we do not exceed maximum number of received LSAs for a ‘reset-time’

The only way how to get from the permanent ignore-state is by manually clearing the OSPF process

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 88BRKRST-231014445_04_2008_c1

Database Overload Protection (Deployment Example)

PE protected from being overloaded by CE

One misbehaving VRF affected, other works OK

MPLSVPN

PE

CE

CE

CE

CE

RR

Page 45: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

45

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 89BRKRST-231014445_04_2008_c1

Database Overload Protection (CLI)

Router modemax-lsa <max> [<threshold> [warning-only]

[ignore-time <value>][ignore-count <value> [reset-time <value>]]

Available in: 12.3(7)T 12.2(25)S 12.0(27)S 12.2(18)SXE 12.2(27)SBC

With CSCsd20451 deployable without flapping of all neighbors. Available in 12.2(33)SXH, 12.2(33)SRC, 12.5

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 90BRKRST-231014445_04_2008_c1

OSPF Limit on Number of Redistributed Routes

Maximum number of prefixes (routes) that are allowed to be redistributed into OSPF from other protocols (or other OSPF processes)

Self-originated LSAs are limited

Summarized prefixes counted

Type-7 to Type -5 translated prefixes not counted

CLI:redistribute maximum-prefix maximum [threshold] [warning-only]

Availability12.0(25)S, 12.3(2)T, 12.2(18)S

Page 46: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

46

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 91BRKRST-231014445_04_2008_c1

OSPF Limit On Number Of Redistributed Routes (Deployment Example)

PE protected from being overloaded from BGP

MPLSVPN

PE

CE

CE

CE

CE

RR

iBGP OSPF

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 92BRKRST-231014445_04_2008_c1

Summary

Deployment issues in Service Providers and Enterprise Networks

Dialup deployments techniques

Design Best Practices

Understand OSPF fast convergence and resiliency techniques

OSPF deployments techniques in MPLS environment

What We Learned?

Page 47: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

47

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 93BRKRST-231014445_04_2008_c1

Q and A

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 94BRKRST-231014445_04_2008_c1

Recommended Reading

Continue your Cisco Live learning experience with further reading from Cisco Press

Check the Recommended Reading flyer for suggested books

Available Onsite at the Cisco Company Store

Page 48: Deploying OSPF in a Large Scale Networkandrei.clubcisco.ro/cursuri/4prc/scaling/BRKRST-2310.pdf · Deploying OSPF in a Large Scale Network Market Segments Service Provider Deployments

© 2006, Cisco Systems, Inc. All rights reserved.Presentation_ID.scr

48

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 95BRKRST-231014445_04_2008_c1

Complete Your Online Session Evaluation

Give us your feedback and you could win fabulous prizes. Winners announced daily.

Receive 20 Passport points for each session evaluation you complete.

Complete your session evaluation online now (open a browser through our wireless network to access our portal) or visit one of the Internet stations throughout the Convention Center.

Don’t forget to activate your Cisco Live virtual account for access to all session material on-demand and return for our live virtual event in October 2008.

Go to the Collaboration Zone in World of Solutions or visit www.cisco-live.com.

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 95BRKRST-231014445_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 96BRKRST-231014445_04_2008_c1