OSPF Routing Protocol(1)

download OSPF Routing Protocol(1)

of 48

Transcript of OSPF Routing Protocol(1)

  • 8/3/2019 OSPF Routing Protocol(1)

    1/48

    OSPF Routing Protocol

    ontentsIntroductionNetwork Architecture

    Campus Design ArchitectureBuilding Block DesignServer Farm DesignCore Block DesignWAN Design Architecture

    Protocol Design

    Campus Design ConsiderationsLayer 2 versus Layer 3 Core DesignWAN Design ConsiderationsDesign Recommendation Summary

    Planning and Implementation

    IP AddressingSummarization

    ScalabilityMigrationConvergence TuningDesign Case Study

    Operating the Solution

    Operation VerificationTroubleshooting

    Related Information

    ntroductionen Shortest Path First (OSPF) is an interior gateway protocol (IGP) link state protocol. Contrary to the distance

    ctor protocol in which the actual Internet Protocol (IP) network is advertised periodically, in a link state protocolre is no IP route exchange. Every participant router creates a Link State Advertisement (LSA) describing itsal interface (IP address, network mask, reachable neighbor, link type, and so on) and places it in its database.As are distributed through reliable flooding during database synchronization, and the collection of all LSAsnstitute a link-state database.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (1 of 48) [10/11/2001 5:34:43 PM]

    http://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.pdfhttp://www.cisco.com/pcgi-bin/imagemap/navbar
  • 8/3/2019 OSPF Routing Protocol(1)

    2/48

    l routers within an area have the exact same link state database and run in parallel with the shortest path orkstra algorithm . Each router constructs a tree of shortest path with itself as a root. The shortest path tree gives route to all destinations within the autonomous system.

    mpared to distance vector protocols that have a flat architecture, OSPF uses a hierarchical architecture. Byving a hierarchical design, routing control packets in the domain are decreased and limited to a given area. Indition, summarization between different hierarchical levels significantly increases the stability of the network d decreases the size of the routing table.

    SPF allows a network to be segmented into multiple areas. An area is a collection of routers and networks. Allas are attached, physically or logically, to a common area called the backbone area (area 0). Routing betweenas is achieved through area 0, and summarization occurs at Area Border Routers (ABRs) that are attached to the

    ckbone area 0 and another non-backbone area.

    e three components in OSPF include:Neighbor discoveryq

    Database synchronizationq

    Shortest Path First (SPF) calculationq

    outer Classifications

    ere are four types of routing nodes in OSPF. Each routing node provides a specific function.Internal routerA router that has all its interfaces in a given areaq

    ABR (Area Border Router)A router that has active interfaces in at least two areas, one being the backbonearea 0

    q

    ASBR (Autonomous System Border Router)A router that injects external routes into the OSPF domain byredistributing any routing protocol or external route to the OSPF domain is known as an ASBR

    q

    Backbone routerA router that has an interface to the backbone area 0, this can be an ABR or backboneinternal router

    q

    rea Types

    ere are four types of areas in OSPF. Each area provides a specific function.

    Area 0The backbone area having the specific function of connecting all areas together and passinginformation between areas.q

    Transit areaAny area including area 0, having external routing capability. In other words, type 5 LSA willbe flooded into such an area. A transit area can also exist to provide a virtual link between an area notphysically connected to backbone area 0.

    q

    Stub areaAn area that does not have external routing capability, hence type 5 LSAs are not flooded intothis area. ASBR cannot be placed inside this area and a virtual link cannot be configured through this area.

    q

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (2 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    3/48

    Not So Stubby Area (NSSA)NSSA has the same capability as a stub area in that type 5 LSA are notflooded into this area and a virtual link cannot be configured through this area. However, an ASBR could beplaced inside such an area and external routes could be imported into the NSSA area and flooded furtherinto OSPF domain.

    q

    ontrol Packets

    SPF runs on top of IP and is assigned protocol 89. OSPF control packets have a 24-byte common header. To

    arantee neighbor discovery and maintenance and database synchronization, the following packet types arefined within the Type field of an OSPF control packet.

    acketType Description

    Hello

    Database Description

    Link State Request

    Link State Update

    Link State Acknowledgment

    cket Type 1

    llo packets are used to establish and guarantee neighbor discovery and maintenance.

    cket Type 2

    tabase Description packets are used in the initial database synchronization. In order to check what instance of ir database needs to be exchanged, routers exchange a summary of their database (LSA header) and mark anyssing LSA or a newer instance in order to request it through the Link State Request packet.

    cket Type 3

    ring a database description exchange, the routers request their missing LSA. If they need a more recent instantan LSA, they add these LSAs in the Link State Request list. Once the database description exchange ismplete, the routers send Link State Request packets in order to request these LSAs.

    cket Type 4router replies to the Link State Request packet by sending a Link State Update. Link State Update is also useden the routers are in Full state and there is a need to generate a new LSA due to any changes.

    cket type 5

    e flooding operation should be reliable in order to guarantee that no information was lost while synchronizing database. Link State Acknowledgment is sent in reply to a Link State Update packet.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (3 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    4/48

    SA Types and Definitions

    nk State Advertisement is the information generated by every router describing its local interface in an area.pending on the LSA type, a router might generate additional information such as a reachable network outside ana or OSPF domain.

    e following table lists the 11 LSA types.

    LSA Type Description

    Router LSA

    Network LSA

    Summary LSA

    Summary LSA

    External LSA

    MOSPF LSA

    NSSA LSA

    External Attribute LSAOpaque LSA

    0 Opaque LSA

    1 Opaque LSA

    A Type 1

    A Type 1 is a router LSA that is generated by every router into a given area. Routers attached to multiple areasnerate this LSA into each attached area. A Router LSA describes the router's interface for a given area. It

    ntains information such as IP address, network mask, remote neighbor, link type, link cost, and so on. This LSAflooded within each area.

    A Type 2

    A Type 2 is a network LSA. In order to better understand the use of this LSA, you should first understand howSPF considers multi-access networks.

    network is said to be multi-access if it can have more than two routers attached to it. Depending on broadcastpability, this is further divided into two types of networks.

    Broadcast networkHas the broadcast capability for example Ethernetq

    Non Broadcast MultiAccess (NBMA)Does not have the broadcast capability for example AsynchronousTransfer Mode Permanent Virtual Circuit (ATM PVC)

    q

    F needs to consider a network as a collection of nodes and point-to-point links.

    satisfy the SPF requirement, consider the media itself as a node (Pseudonode) that is represented by one of theuters on this media called Designated Router (DR). Thus, the adjacency between routers attached to theulti-access is the adjacency between every attached router and the Pseudonode.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (4 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    5/48

    l attached routers advertise a link to the Pseudonode, represented by DR in their Router LSA. An advertisementneeded from Pseudonode to all attached routers: This is performed by LSA Type 2.

    A type 2 is generated by DR on behalf of the network and announces all routers attached to the multi-accesstwork (also referred to as transit network). This LSA is flooded within an area.

    A Type 3

    mmary type 3 announces the IP destination outside a given area in order to ensure that an ABR does the

    lowing:Summarize intra-area route to the backboneq

    Summarize intra-area and inter-area route (learned through the backbone) into non-backbone areaq

    te that routing between areas has a distance vector behavior. This means that the route learned from an area, andtalled in the routing table, is summarized for other attached areas. It is not advertised back to the same area.

    backbone router processes only the summary received from the backbone. The only time an ABR processes ammary received through a non-backbone area is:

    If the ABR loses its connection to the backbone (no neighbor) but still is an ABR and has an active interfacein area 0

    q

    If there is a virtual link in the TransitArea and the TransitCapability of the area is set to true (see later)q

    A Type 4

    hen a type 5 LSA is flooded within a domain, the location of the ASBR (advertising router) is only knownthin the area in which the type 5 LSA is flooded. It is the responsibility of the ABR attached to this area tommarize the reachability of the ASBR to other areas. The ASBR in normal operations is the exit point towardternal destinations.

    te that type 5 and type 4 LSAs are not flooded into Stub or NSSA areas and there is no need to announce ASBRchability within Stub or NSSA areas.

    A Type 5

    External LSA is generated by an ASBR when some external destination is redistributed into OSPF. A routercomes ASBR as soon as it redistributes external routes learned by way of any protocol, static, or connected intoSPF. Type 5 LSAs are flooded domain-wide into all areas except Stub areas and NSSA areas.

    A Type 6

    e group membership LSA (MOSPF) is not used by Cisco. This LSA is used in order to create a shortest pathe for every source or multicast destination.

    A Type 7

    A type 7 is generated by an ASBR in an NSSA area. This allows external routes to be imported into an NSSAa as Type 7.

    pe 7 is flooded only within the NSSA area. In order to flood the external information further, an ABR couldnslate type 7 LSAs into type 5 LSAs and further flood into the OSPF domain.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (5 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    6/48

    A Type 8

    is is an obsolete LSA. It was previously intended to carry external attributes between border routers through theSPF domain.

    A Types 9, 10, and 11

    aque LSA defines a range of LSAs that provide more flexibility to the OSPF LSA packet format by not having

    define a new LSA type for every new application. There are three flooding scopes depending on the type:Type 9 is flooded locally (not beyond the local network)q

    Type 10 is flooded area wideq

    Type 11 is flooded domain wideq

    rrently, type 10 is used for MPLS Traffic Engineering in order to announce more attributes for network links.

    eighbor Discovery

    hen OSPF is enabled on an interface, the router starts sending Hello packets periodically in order to discover themote neighbor(s). The discovery could be dynamic, or a configuration might be needed in the case of aulti-access network that lacks broadcast capability.

    hen a router receives a Hello from its neighbor, it includes the Router ID of this neighbor in its next Hello. Thissures that there is two-way connectivity between routers.

    Hello packet is also used to elect DR/BDR on a multi-access network (broadcast and NBMA) and make suret the neighbors agree on the area type based on the option fields in the Hello packet.

    llo packets behave differently depending on the network type as described below.

    int-to-point Network

    Neighbor discovery is dynamicq

    Hello is sent to the multicast address AllSPFRouter (224.0.0.5)q

    No DR/BDR electionq

    oadcast Network

    Neighbor discovery is dynamicq

    Hello is sent to the multicast address AllSPFRouter (224.0.0.5)q

    DR/BDR election takes placeq

    BMA Network

    A configuration is required in order to discover the neighborq

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (6 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    7/48

    Hello is sent unicast to each remote neighbor's IP addressq

    DR/BDR election takes placeq

    te that since DR/BDR takes place, you would need at least a connection from DR/BDR to all the neighbors inder to guarantee the proper operation in this mode.

    DR/BDR sends Hello to all routersq

    A router is eligible to become DR/BDR (priority different than 0) and it sends Hello packets only toDR/BDR and those routers that are eligible to become DR/BDR

    q

    A router not eligible to become DR/BDR (priority 0) sends Hello packets only to DR/BDRq

    int-to-Multipoint Network

    int-to-multipoint is considered a collection of point-to-point networks. Depending on the configuration,ghbor discovery could be dynamic.

    ospf network point-to-pointNeighbor discovery is dynamicq

    Hello is sent to the multicast address AllSPFRouter (224.0.0.5)q

    No DR/BDR electionq

    this case the Hello is sent to the multicast address AllSPFRouter and replicates the packet over each connection.s important to note that the connection should be permanent (PVC) and not dynamic (SVC) as this would fail.

    ospf network point-to-multipoint non-broadcastA configuration is required in order to discover the neighborq

    Hello is unicast to each remote neighbor IP addressq

    No DR/ BDR electionq

    e RFC definition of point-to-multipoint requires configuration and that neighbor discovery is not dynamic.sco implements both methods.

    atabase Synchronizations very important that the database of all routers within an area are synchronized in order so they have the samew of the network. Synchronization is either the initial router synchronization (when two routers establishacency) or if there is any change to the network topology and the routers need to resynchronized.nchronization is performed by way of OSPF packet type 2, 3, 4, and 5.

    ce two routers achieve the 2-way state , they start synchronizing their database by establishing a master-slaveationship. This is necessary so that one of the routers leads the database synchronization exchange.

    ter the 2-way state, the routers go to the Exstart state where they have to find out who is the master. This is done

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (7 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    8/48

    Router ID. Initially both routers declare themselves as master but the router with the higher Router ID is electedmaster.

    ter the election, they go to the Exchange state at which point they start exchanging Database Descriptionckets. The master sends a Database Description packet by incrementing the LS sequence for every differentcket, and the slave just echoes back the LS sequence number sent by the master. Only one Database Descriptioncket is sent and echoed at a time. This guarantees a reliable exchange between the two routers.

    ring the exchange phase the routers make notes of their missing LSA or if the LSA that the neighbor has has a

    wer instant. Once the exchange is over, they are going to make a request (packet type 3) from their neighbor andy go to the Loading state. Once the loading is over, or if the routers do not have any LSA to request (link state

    quest list empty), the routers go to Full adjacency.

    te that in a multi-access network (broadcast, NBMA) where DR/BDR election takes place, only DR/BDRnchronize their databases with all the routers. In other words, two non DR/BDR routers remain in 2-way/ OTHER state.

    ighbor State Machine

    e following diagram shows the neighbor state machine.

    e following describes the states of the OSPF neighbors.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (8 of 48) [10/11/2001 5:34:43 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    9/48

    wnThe initial state of a neighbor conversation. It indicates that there has been no recent information receivedm the neighbor. On NBMA networks, Hello packets may still be sent to "Down" neighbors, although at a

    duced frequency.

    temptIs only valid for neighbors attached to Nonbroadcast Multiaccess (NBMA) networks. It indicates that noent information has been received from the neighbor, but that a more concerted effort should be made to contact neighbor. This is done by sending the neighbor Hello packets at intervals of set by the Hello interval.

    tA Hello packet has recently been seen from the neighbor. However, bi-directional communication has nott been established with the neighbor (i.e., the router itself did not appear in the neighbor's Hello packet). Allghbors in this state (or higher) are listed in the Hello packets sent from the associated interface.

    WayCommunication between the two routers is bi-directional. This has been assured by the operation of thello Protocol. This is the most advanced state short of beginning adjacency establishment. The (Backup)signated Router is selected from the set of neighbors in state 2-Way state or greater.

    StartThe first step in creating an adjacency between the two neighboring routers. The goal of this step is tocide which router is the master, and to decide upon the initial DD sequence number. Neighbor conversations ins state or greater are called adjacencies.

    changeThe router is describing its entire link state database by sending Database Description packets to theghbor. Each Database Description Packet has a DD sequence number, and is explicitly acknowledged. Only onetabase Description Packet is allowed outstanding at any one time. In this state, Link State Request Packets mayo be sent asking for the neighbor's more recent LSAs. All adjacencies in Exchange state or greater are used by flooding procedure. In fact, these adjacencies are fully capable of transmitting and receiving all types of OSPF

    uting protocol packets.

    adingLink State Request packets are sent to the neighbor asking for the more recent LSAs that have beencovered (but not yet received) in the Exchange state.

    llThe neighboring routers are fully adjacent. These adjacencies now appear in router LSAs and network As.

    hortest Path First Calculation

    ter database synchronization, all routers in an area will have the exact same link state database. The database ist a collection of different LSAs that the router has received and should build up the routing table based on thisormation.

    ere are two types of routes:Network routeA destination IP addressq

    Router routeThe path (outgoing interface and next hop) to ABR or ASBRq

    is will be used later in order to consider the inter-area route advertised by the ABR and the external routevertised by ASBR. In order to see the router route, use the show ip ospf border-routers command .

    F needs to see the network as a collection of nodes and point-to-point links. A multi-access network ispresented by a Pseudonode (DR). Every router announces a connection to the transit network (DR) and the DRnounces a connection to all attached routers.

    router first finds out the path (outgoing interface and next hop) to all the nodes in its area by running the Dijorithm . The IP address is just additional information that is part of the node (included in the router LSA). Once

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (9 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    10/48

    path to all the nodes is found (outgoing interface and next hop), the path to all the IP addresses advertised by node is calculated.

    e following describes the steps a router goes through in order to calculate the route to all destinations.The router considers LSA type 1 and type 2 in order to build a shortest path tree. This means a router findsthe outgoing interface and the next hop to reach all of the nodes. It is important to note that we are nottalking about IP address, and a node is just represented by its router ID that identifies the router in the area.

    NOTE: In order to accomplish step 1, which is to find the shortest path from a node to all the nodes in an

    area, Dijkstra algorithm is executed.

    1.

    Install the IP address advertised by the node in the routing table. At this stage, all intra-area routes have beenfound for a given area.

    2.

    Consider LSA type 3 and 4 in order to find all destinations to other areas and the path to an ASBR.3.

    This step is only performed by ABRs in an area in which there is a virtual link. In other words, theTransitCapability of the area is set to True.

    This step is necessary to find if there is any shorter path than found previously in step 3. An ABR considers

    the summary of the non-backbone transit area.Note that this is the only time an ABR considers a summary from a non-backbone area as an ABR considersonly summary from backbone areas (except if it has lost all its connections to the backbone but still has anactive interface in area 0). At this stage all the inter-area routes have been found.

    4.

    The router considers the LSA type 5 in order to install the path to all external destinations. If an area isNSSA, LSA type 7 is considered instead.

    5.

    For an ABR attached to a NSSA area type 7, LSAs are processed after type 5.6.

    jkstra Algorithmven a collection of nodes connected by way of point-to-point links, this algorithm finds the shortest path from aven node (root) to all the nodes.

    e router keeps track of three lists:Unknown listAll the nodes to which the destination has not been found (distance is infinity). All routersstart in this list.

    q

    Candidate listThe list of nodes that have been found in the step-by-step process from the root and arecandidate to the shortest path tree.

    q

    Shortest path listThe list of paths that the calculating router has found to be the shortest path to all thenodes. In each step, one router is found and added to this list.

    q

    calculating node S (source) does the first iteration by placing itself in the shortest path tree and adding itsghbor to the candidate list.

    each of the following iterations, the router performs one of the following functions:Move the shortest candidate (metric wide) from the candidate list to the shortest path list. Call this newlyadded node the active node. Initially, the source is itself the active node.

    q

    Look at the neighbors of active nodes to perform the following:q

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (10 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    11/48

    If the shortest candidates are not already in the candidate list, move them into the candidate list. Thecost from the root is the cost to the active node plus the cost from the active node to the newly addedneighbors. The outgoing interface and next hop is inherited from the active node.

    r

    If the shortest candidates are already in the candidate list and the current cost from the root is morethan the cost through the active node, update the candidate list with this new information.

    r

    Otherwise if the node already exists and its cost is equal to the cost through the active node, add thenew next hop and outgoing interface (inherited from the active node) to the existing node.

    r

    Check to see if the candidate list is empty. If the candidate list is not empty, start the iteration again.q

    e algorithm requires N iteration (including the first one) where N is the number of nodes (router + transittworks represented by DR).

    irtual Link

    guarantee connectivity between areas, all areas should be connected to the backbone. There is no need forysical connectivity: An area can be connected to the backbone logically through the use of a virtual link.

    virtual link connects two ABRs having in common a non-backbone area called a Transit area. A virtual link isnsidered as an unnumbered point-to-point link. However, there is an IP address associated with the virtualerface. The virtual interface is the interface through which a shortest intra-area path to the remote ABR istermined.

    art from attaching logically an area to the backbone, a virtual link can be used in order to have some controler a given path. This is illustrated in the following diagram.

    nce intra-area paths are always preferred over inter-area paths, if the link between RB and RC is placed in area 0,

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (11 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    12/48

    a 1 will not have an optimal path since RB should go through RA to reach RC. If the link is placed in area 1, theffic in area 0 will not have the optimal path. By placing the link in area 1, and configuring a virtual link between

    B and RC, both areas will use the RB and RC link since the virtual link is part of area 0.

    mentioned previously in the SPF section, after considering the summary LSA in order to find all destinations toher areas and the path to an ASBR, if there is a virtual link in the area, the ABR should set the TransitCapabilityTrue in order to process the summary from the transit area (non-backbone). This is illustrated in the followinggram.

    ere is a virtual link between RC and ABR1 in area 1. ABR1 announces a summary LSA for network X with ast of 100. ABR2 announces the same summary but with a cost of 10. All routers in area 1 choose the shortestst path and go through ABR2. However, since there is a virtual link between RC and ABR1, and this is part of a 0, RC will choose the intra-area path (area 0) rather than inter-area path advertised by ABR2. This could lead

    a routing loop as RC will go through RB to reach ABR1 (virtual link) and RB will go through RC to reachBR2

    setting the TransitCapability to True in the SPF, an ABR considers the summary from the non-backbone areaea 1). Therefore, RC looks at the summary advertised by ABR2 and sees that there is a shorter path through

    BR2.

    ummarization

    mmarization consists of combining a set of IP addresses and advertising it as a block instead of advertisingery specific component within the address range. This reduces the amount of information to be propagated and

    duces the amount of information other routers should store. Most importantly, it increases the stability of thetwork as any change in a more specific component of the address range does not need to be propagated.

    ernal Route Summarization

    order to guarantee inter-area routing, an ABR advertises through LSA type 3 destinations that are reachable inch attached area into other areas.

    ABR can be configured to advertise a range of IP addresses and, therefore, summarize a given subnet of twork for a given area instead of individually announcing all of the subnets within the range.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (12 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    13/48

    configuring area x range < network> < mask> , an ABR summarizes the IP destination in area x using theecified network range and advertises this range into other areas.

    OTE: An ABR needs at least a given IP address that is reachable in the summary range in order to advertise thenge.

    area x is backbone (x = 0), only the intra-area route (native) in the backbone is summarized and not the routerned through other areas. For example, an area range for area 1 is configured and announced to area 0. There iso an area range for the backbone covering the network range advertised by area 1. The area range of the

    ckbone is only for its native route (intra-area ) and the summary of area 1 is leaked into other areas.can be desirable to hide a set of destinations in an area from being announced into other areas (see Routetering ) . In order to achieve this, the area x range network mask not-advertise command needs to benfigured.

    ernal Route Summarization Cost

    an ABR is configured to summarize a range of IP address, the cost of the summary range is:The lowest cost of any IP address in the range if compatible rfc 1583 is enabled which is the defaultq

    The highest cost of any IP address in the range if compatible rfc 1583 is disabledq

    ternal Route Summarization

    OSPF, external routes are advertised by an ASBR. It is very important to understand that only the originator of ape 5 (ASBR) can summarize its external routes. In order to summarize the external information themmary-address command needs to be configured.

    e not-advertise key word can also be used in order to suppress the summary.

    the case of an NSSA area, the external destination routes are imported into an NSSA area as type 7 and are

    oded further by an ABR performing the type 7 to 5 translations. ABR performing type 7 to type 5 translations could summarize the external information generated by anernal NSSA ASBR. By performing the type 7 to type 5 translations, the ABR becomes ASBR and changes thevertising router field in the LSA header. Since the ABR is now the ASBR, it can summarize the externalormation.

    ternal Route Summarization Cost

    an ASBR summarizes a set of external IP addresses, the cost of the route is always the minimum cost of anyven IP address. Note that RFC does not specify any recommendation regarding this.

    oute Filteringtering in OSPF is not as obvious and possible as is the case of the distance vector protocol. The reason is that

    SPF does not advertise any routes. Hence, filtering cannot be performed. To prevent a route from being installedthe routing table, an inbound distribute list can be configured to deny a given route. However, this does notevent other routers to learn this route as the information is flooded through LSA.

    mentioned previously, between areas is similar to distance vector behavior. Cisco IOS has implementeder-area route filtering (see CSCdi43518).

    s now possible to use an inbound or outbound filter to filter a route to be injected to an area or to be advertised

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (13 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    14/48

    t of the area.

    other method of filtering is to configure a summary range for the area and use the not-advertise key word inmmary range in order to suppress the advertisement of the route into other areas. This option provides lessntrol since it can only be used for a given range to be suppressed (outbound) so there is no control to specify aecific route within an IP range.

    rameters Affecting the Convergence

    nvergence, by definition, is the time required for all routers in a domain to process any change introduced andback to the previous stable station.

    ere is always a tradeoff between convergence and stability in the network. A fast convergence requires a quick ction to the change and this affects the stability of the network.

    ere are many parameters in OSPF affecting the convergence. These following table describes these parameters.

    OSPF Parameter Convergence Affected

    outerDeadInterval The time during which the router maintainsthe adjacency even if there is no Hello

    received from the neighbor. After eachHello reception, the timer is reset to itsinitial value.

    The RouterDeadInterval allows a router todetect a dead neighbor and notify otherrouters in the domain by generating a newLSA. The lower the value, the faster theconvergence. By default, the Dead Intervalis 40s for point-to-point, and Broadcastnetwork. For NBMA and

    point-to-multipoint, it is 120s. It can beconfigured to a lower value.

    Depending on the link type and topology,the neighbor down situation can be noticedthrough Layer 2 and is much faster than theRouteDeadInterval.

    For example, a back-to-back GE link willbe noticed through Layer 2 and will bemuch faster than the detection by

    RouterDeadInterval.To change the default value, use thefollowing commands under a giveninterface:

    ip ospf hello-interval ip ospf dead-interval

    Note that all routers attached to a giveninterface require the same hello and dead

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (14 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    15/48

    interval. Otherwise the adjacency will notbe formed.

    SA_Delay_Interval The initial interval time to wait beforesending an LSA (type 1 and 2 only). Thisparameter is Cisco-specific and its value is500 msec.

    Currently it is not possible to change thisvalue but a back-off LSA generation will beimplemented in the near future and theinitial delay interval will be configurable.The reason behind this constant is that if alink flaps very quickly it won't be reportedbefore this interval time.

    MinLSInterval This is an architectural constant of value 5seconds defined in RFC, and is theminimum time a router should wait beforegenerating the same LSA. This is also the

    rate-limiting LSA mechanism for LSA type1 and 2. Other LSAs are based on the routeinstallation in the routing table and arerate-limited by SPF.

    Cisco IOS, however, allows this parameterto be changed with a hidden command.In the near future, a back-off algorithm willbe implemented for LSA generation andwill make the value configurable.

    MinLSArrival This is an architectural constant of value 1second defined in RFC, and is theminimum time required between thereception of the same LSA. If the sameLSA is received less than this time, it isignored and no Ack is sent to the neighbor.

    Cisco IOS allows this parameter to bechanged with a hidden command.

    PF_SCHD_DELAY Once an LSA has been received, the SPF isscheduled to run. However, the SPF

    actually runs after SPF_SCHD_DELAYtime which is 5 seconds by default.

    This parameter can be changed using theTimers spf command.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (15 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    16/48

    PF_HOLD_INTERVAL If two SPFs have to run consecutively, theywill wait as specified by theSPF_HOLD_INTERVAL time which is 10seconds by default. This prevents runningtoo many SPFs due to a quick change.

    This parameter can be changed using theTimers spf command.

    Network Architectureampus Design Architecture

    scalable network is always designed in a multilayer or hierarchical manner. This allows for easy future growthd simplifies troubleshooting. It also increases the performance and isolates the problem caused to some parts of network.

    multilayer campus network consists of three blocks:

    Building blockConsists of Layer 2 switches in the wiring closet to connect users. The wiring closetmerges into a redundant distribution Layer 3 switch.

    q

    Server farm blockConsists of enterprise servers located usually in a separate block. The servers connect toLayer 2 switches, which in turn connect to a redundant Layer 3 switch.

    q

    Core blockThe block that connects different building blocks and the server farm block. Depending on thenetwork size, this can be a direct connection between a distribution layer switch in a fully or partiallymeshed topology, or through Layer 2 switches. For a large campus design, Layer 3 switches in the core areused to connect the different distribution layers.

    q

    e following section describes each block and the different design models.

    uilding Block Design

    e following diagram shows the architecture of a multilayer building block design. Users are connected to accessyer 2 switches in the wiring closet that are dual-homed to redundant Layer 3 switches in the distribution layer.

    yer 3 switches reduce the scope of the broadcast domain and segment the campus into smaller and morenageable sections.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (16 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    17/48

    e following two scenarios are available.ery Layer 2 Switch in Wiring Closet is in Different VLAN

    is scenario results in no virtual local area network (VLAN) trunking and no Layer 2 spanning tree loop. Hotandby Routing Protocol (HSRP) is configured between Layer 3 switches. Each Layer 3 switch is the primaryteway for one VLAN and the backup for another VLAN.

    dundancyThere are two links from every Layer 2 switch to the Layer 3 switch. If one of the links fails, theher link is used and HSRP maintains the connectivity of users.

    ad BalancingThere are two ways to achieve load balancing:Use a different subnet (VLAN) for the uplink toward the Layer 3 distribution switch. In this case, every hoston a subnet uses the corresponding subnet link.

    q

    Use Multigroup Hot Standby Routing Protocol (MHSRP) for the same subnet but use a different IP address.Every Layer 3 switch is active for a given IP address. Load balancing can then be achieved by using the twoactive HSRP addresses as two different gateways for hosts.

    q

    r example, Layer 3 switch A is active for group 1 with IP address 192.168.1.3 and the backup for group 2 withaddress 192.168.1.5. Layer 3 switch B is the backup for group 1 with IP address 192.168.1.4 and active for

    oup 2 with IP address 192.168.1.6.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (17 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    18/48

    me VLAN Across Layer 2 Switch

    he same VLAN is configured on two different Layer 2 switches, a trunk is needed between Layer 3 switches in distribution layer to guarantee the connectivity. This is illustrated in the following diagram. Layer 3 switches A

    d B are at the distribution layer and Layer 2 switches C and D are at the access layer.

    witch A runs OSPF and, therefore, advertises the passive interface in its VLAN toward the core. If the link tween switch A and D fails, switch A still advertises this subnet since it has still another port up on this VLAN

    nk A to C). So when the traffic reaches switch A for the users connected to switch D, if there is no link betweenand B, the return path is broken and there is black-hole traffic for users connected to switch D.

    SPF Design Perspective for Building Blocks

    nce the access layer consists of a Layer 2 switch, OSPF is only relevant to Layer 3 switches in the distributionyer. A Layer 3 switch in the distribution layer need not establish adjacency through the Layer 2 switch in thecess layer since the Layer 3 switch needs only to announce the connectivity of its attached interfaces. For thisson, the passive interface router OSPF command is used for the Layer 3 switch interface toward the wiringset. This reduces the routing protocol exchange and reduces the CPU overhead.

    routed link is used between Layer 3 switches in the distribution layer to avoid intra-building traffic passingough the core.

    erver Farm Design

    e server farm design architecture is similar to the building block architecture. However, because of its criticaleration, it should be implemented with high capacity links and maximum redundancy to ensure connectivity all time.

    e following diagram shows a server farm design with servers dual-homed to Layer 2 switches that are in turnal-homed to Layer 3 switches in the distribution layer.

    OTES: There is a trunk between the distribution layer switches. This is necessary for backing up the path of a

    yer 2 switch should an uplink fail.e of the Layer 3 switches is designated as the primary HSRP gateway and also is the root of the spanning tree

    oth ports are in forwarding state).

    increase the spanning tree recovery, UplinkFast is enabled in each wiring closet switch.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (18 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    19/48

    SPF Design Perspective for Server Farm Block

    in the case of the building block design, only a Layer 3 switch is relevant to OSPF. There is no need for a Layerwitch to establish adjacency through a Layer 2 switch link. Passive interfaces are configured on the Layer 3itch link in the distribution layer toward the Layer 2 switch. This reduces the routing protocol update andcreases CPU overhead.

    ore Block Design

    e different building blocks and the server farm block communicate to each other through the core block. Itpically consists of Layer 3 switches but a Layer 2 design could exist as well. This section focuses on twoferent core designs: Layer 2 versus Layer 3, and the OSPF design practices for each. This section is describes

    o scenarios:Core design without a Layer 3 switch, essentially Layer 2q

    Core design with a Layer 3 switchq

    e different designs are discussed with respect to the size of the campus network for which they are best suited.

    re Block Without Layer 3 Switch

    thout the presence of a Layer 3 switch in the core, connecting the different distribution Layer 3 switches can bene through a direct Layer 3 connection or through the connection by way of a Layer 2 backbone switch.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (19 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    20/48

    lly Meshed Campus Backbone

    r a small enterprise backbone, it may be desirable to directly connect the Layer 3 distribution switch of differentilding blocks. Note that this is not a scalable solution and should be used for small enterprise backbones as thember of the link increases as switches are added.

    SPF Design Perspective

    l links between Layer 3 switches are placed in the same area 0 and each Layer 3 switch is adjacent to allghbors. The interface toward the Layer 2 switch is passive.

    a Layer 3 switch is connected to a high number of VLANs, it is desirable to summarize remote subnets beforevertising them into the backbone. To summarize the building block subnets, a routed link is configured between Layer 3 switch in each building block and server farm and is placed in a different area. In addition, the passiveerface is part of this same area. Therefore, the Layer 3 switch becomes an ABR and is able to summarize theferent subnets in a building block into a single IP range and advertise to the backbone.

    rtially Meshed Campus Backbone

    is is similar to a fully meshed backbone and should be used for small to medium size campus networks. Since server farm plays a centralized role, all building blocks are connected to the server farm block.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (20 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    21/48

    SPF Design Perspective

    l links between Layer 3 switches are placed in area 0 and the interface toward Layer 2 switch is passive in orderreduce the routing protocol update.

    summarize the building block subnets, a routed link is configured between the Layer 3 switches in each block d placed in different areas. Therefore, the Layer 3 switch becomes an ABR and is able to summarize the subneta building block into a single IP range and advertise the summarized routes toward the backbone.

    yer 2 Core Backbone

    reduce the number of interface connections between the Layer 3 switches in the distribution layer, a Layer 2re can be used. The Layer 2 core connects all Layer 3 switches in a single VLAN, making them part of the samebnet.

    prevent spanning tree loop and its delayed convergence time, the link to the backbone is defined as a routederface (no VLAN trunk) and there is no loop in order to put spanning tree in a blocking state. This design can beed for a small or medium campus network.

    SPF Design Perspective

    l Layer 3 switches in the distribution layer are in the same VLAN and share the same IP address. All Layer 3itches in the distribution layer are in a single area 0 and have a passive interface on interfaces toward the wiringset switch in order to reduce the routing table update.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (21 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    22/48

    terms of OSPF operation, a DR/BDR is elected for the common subnet. To reduce the number of subnetsvertised toward the core, a routed link is configured between the Layer 3 switch in each block and placed in aferent area. Therefore, the Layer 3 switch becomes an ABR and is able to summarize the subnet of a building

    ock into a single IP range and advertise it toward the backbone.

    re Block with Layer 3 Switch

    build large and scalable campus networks, the core block should be based on Layer 3 switches, connecting allyer 3 switches in the distribution layer. This reduces the peering of Layer 3 switches in the distribution layerogether and therefore scales for a large campus network.

    e exact topology of the Layer 3 switch in the core depends on the size of the campus network, but a minimum of o Layer 3 switches with dual links between them is recommended to guarantee maximum redundancy and fastnvergence.

    RedundancyEvery distribution switch should have two links to the core router. The core routers shouldhave two links between each other. If one of the links goes down, the other is immediately used since thereare two equal path costs.

    q

    Load BalancingEvery Layer 3 switch should have two equal paths to other Layer 3 switches and loadbalancing. Depending on the configuration, per destination, or per packet load, balancing is used. However,it is recommended to leave the default destination as load balancing in order to avoid out-of-sequence packetreception.

    q

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (22 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    23/48

    SPF Design Perspective

    ery building block or server farm block should be placed in a different area. That is, the link between thetribution Layer 3 switch in each block and the core Layer 3 backbone is placed in different areas.

    e link between the Layer 3 switch core is in area 0, making the core Layer 3 switch an ABR. Summarization isne on the ABR core Layer 3 switch in order to decrease the number of subnets advertised to each area.

    addition, a routed link is configured between Layer 3 switches in the distribution layer of each block. Thisows the traffic in a given block to go directly between Layer 3 switches in the distribution layer without havinggo through the core.

    ery Layer 3 switch in the distribution layer has two equal cost paths to the other Layer 3 switches in the

    tribution layer. If one of the links becomes unavailable, the other link is used immediately and the convergenceme is minimum.

    ternative Layer 3 Core Topology

    pending on the size of the campus network and the number of building blocks and server farms to interconnect,s desirable to use a core Layer 3 switch consisting of more than two switches. This decreases the number of ering per ABR. This can be used for a very large campus network.

    e following diagram shows a campus design consisting of four switches in the core. Building block Layer 3itch peering has been divided among the four core Layer 3 switches in order to decrease the number of

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (23 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    24/48

    acencies per ABR.

    ery building block and the server farm is placed in different areas represented by a different color in thegram.

    B, C, and D are core Layer 3 switches having their link in area 0 represented in black.

    te that every Layer 3 switch in the distribution layer has two equal paths to all other Layer 3 switches in thetribution layer. All building blocks connected to the same core Layer 3 switch is two hops away from eachher, otherwise there is three hops.

    r example, the building block 1, 2, 3 and 4, 5, 6 are three hop away since they are not connected to the sameyer 3 core switch.

    wever, every building block is two hops away from the server farm. This is desirable since the majority of theffic is between each building block and server farm.

    hould be noted that although each Layer 3 switch has two equal path costs to the server farm, ABR switches A,

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (24 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    25/48

    C, D will only pick one link since intra-area routes are always preferred. Should the preferred intra-area routek go down, OSPF would need to converge in order to have another path.

    a fast convergence is required, it is desirable to have two equal paths from each ABR to each distribution layeritch in the server farm. In this case, the two Layer 3 switches in the distribution layer of the server farm block ould be connected to all four ABRs in the core. The following diagram shows this topology

    WAN Design Architecture

    ere are four main WAN design architectures. The choice of the topology depends on the number of sites andtimal routing for intersite communication.

    mple Point-to-Point

    hen the number of sites or campuses to interconnect are small (3 to 4), a point-to-point architecture can be used.l routers connected through a point-to-point network should be part of area 0, summarizing each area or sets of as in each site and the OSPF network type would be point-to-point.

    rtial Mesh

    e this solution if the number of sites is substantial and when there is no need for optimal routing between

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (25 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    26/48

    ferent sites. The exact topology of the partial mesh depends on the importance of the traffic pattern betweenes.

    he sites that interconnect each other are campus networks, they would be part of area 0. If they are remote sites,y can be placed in a non-backbone area that connects to area 0.

    e OSPF network type used could be point-to-point or point-to-multipoint but note that the latter introduces /32ute.

    ll Meshe a fully meshed solution if the number of sites is relatively small and there is a need for optimal routingtween sites.

    though all of the routers are fully meshed, the OSPF network broadcast or NBMA type should not be used. Thisll cause many problems. For example, if the link between two non-DR/BDR routers goes down, the traffictween the two routers will be black holed since the DR still tries to communicate with both routers. Also, if ak between the DR and another router goes down, this router will be isolated and lose all connection. Therefore,s required to use a point-to-point or point-to-multipoint network type.

    ub and Spokeb and spoke is used when there is a high number of remote sites that connect to the main campus or

    adquarters, and optimal routing is not required or at least does not justify the higher cost of additionalnnections between sites.

    nce the spoke sites goes through the hub site to reach any destination, a default route is sufficient in order tointain the connectivity in the remote sites. For this reason, distance vector protocols are more suited for this

    pology as the route advertised to remote sites can be controlled (filtered). In OSPF, if a link between the hub andpoke goes down, there is a new LSA generated and flooded to all the spoke routers. This action does not affect routing at the spoke site since spoke sites rely on the default route to reach other destinations.

    rotocol Designampus Design Considerations

    is section builds on the Network Architecture section and provides all design considerations required for OSPFdressing.

    hen building a large and scalable network, the first step is to plan a network IP structure that can be summarizeda hierarchical level. Summarization decreases memory utilization on the routers holding the routing table. More

    portantly, it increases the stability of the network and decreases the routing control packet update to beopagated. This saves CPU cycles as the loss of a given route within a range is not propagated to other parts of domain.

    e IP subnet in each building block should be a contiguous IP block address in order to be summarized at anBR level. As a general OSPF rule, IP address structures should be contiguous within the area in order to bemmarized.

    stribution Layer

    l interfaces of Layer 3 switches in the distribution layer toward the wiring closet switch are passive. A routed

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (26 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    27/48

    erface is configured between each Layer 3 switch in the building block and server farm block.

    ere are three primary reasons why this is important:

    Traffic within a building block should not go through the core.q

    In the absence of a Layer 3 switch in the core, the connection between Layer 3 switches in the distributionlayer constitutes the core. This puts this link in a non-backbone area and summarizes the subnet of abuilding block for other areas.

    q

    In a building block topology in which the same VLAN is spread over both switches, if a Layer 3 switch issummarizing and one of the links toward the Layer 2 switch goes down, the Layer 3 switch still advertisesthis subnet to the core since it has another port up in this VLAN. However, when traffic is destined to theusers connected to the Layer 2 switch that has the broken link, if there is no link to the other Layer 3 switch,a black hole occurs for the users connected to the Layer 2 switch.

    q

    re Layer

    is section discusses two core design scenarios: Layer 3 switches in the core and Layer 2 switches in the Core.

    sign with Layer 3 Switches in the Core

    is design is used for large and scalable campus networks. All Layer 3 switches in the distribution layer are dualmed to the core Layer 3 switch. The exact topology of the core depends on the size of the campus, but animum of two Layer 3 switches is required for redundancy and proper operation.

    OTE: To avoid the core Layer 3 switch (ABR) from having a high number of adjacencies, divide the Layer 3itch in the distribution layer between different Layer 3 switches in the core.

    Area PartitioningA passive link is the link between Layer 3 switches in the distribution layer and theLayer 3 switch in the core. For each building block, the passive link is in a non-backbone area. The link between Layer 3 switches in the core is in area 0.

    q

    SummarizationThe subnets advertised in each building block are advertised by the Layer 3 switch in thecore (ABR) for other areas. This increases the stability and decreases the number of routing entries in thecore.

    q

    ConvergenceTo increase the convergence, every Layer 3 switch should have two equal cost paths to alldestinations in the network. This reduces the convergence time to a minimum. This is achieved by having adual link from every Layer 3 switch in the distribution layer to the Layer 3 switches in the core. Also, it isdesirable to have the same equal cost path on the Layer 3 core switch.

    q

    sign without Layer 3 Switch in the Core

    thout the presence of a Layer 3 switch in the core, the Layer 3 switch in the distribution layer has to peerectly which makes this solution less scalable and is normally used for small to medium campus networks. Theyer 3 switch in the distribution layer can be peered in one of the following ways:

    Fully Meshedq

    Partially Meshedq

    Connected by way of a Layer 2 switch in the core and all Layer 3 switches being part of the same subnetq

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (27 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    28/48

    e a fully meshed topology for a small network design because the number of the links grows as a square of thember of Layer 3 switches in the distribution layer.

    e a partially meshed topology and Layer 2 core for a medium sized campus network. In a Layer 2 core design,Layer 3 switches in the distribution layer are part of the same subnet and DR/BDR election takes place. In

    dition, flooding is more optimized in a partially meshed design.Area PartitioningFor each building block and sever farm block, the passive interface and the link betweenLayer 3 switches in the distribution layer are placed in a different non-backbone area. The connectionbetween Layer 3 switches in the distribution layer is part of area 0. This makes the Layer 3 switch in thedistribution layer ABR.

    q

    SummarizationThe subnets advertised in each building block are summarized by the Layer 3 switch in thedistribution layer (ABR) for other areas. This increases the stability and decreases the number of routingentries in the core.

    q

    ConvergenceThe Network Architecture section represented the network architecture for fully meshed,partially meshed, and core Layer 2. In all three network architectures there is only one link from each Layer3 switch in the distribution layer which makes the convergence less efficient than if there are two equal path

    routes from each distribution switch.Two links from every Layer 3 switch in the distribution layer can be used, but because they are directlyinterconnected this significantly increases the number of links required. Note that in the case of Layer 3switches in the core, only two links are required to connect every Layer 3 switch in the distribution layer tothe core switch.

    In the case of a core Layer 2 switch, there is a common Layer 2 core used with dual links to eachdistribution Layer 2 switch, and two common subnets. This increases the convergence time. The followingdiagram shows an example of a Layer 2 core with dual links from each distribution layer. All interfaces arerouted and there are no spanning tree loops. There are also two different subnets in different VLANs.

    q

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (28 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    29/48

    ayer 2 versus Layer 3 Core Design

    e choice between a Layer 2 versus Layer 3 design depends on the actual size of the campus network and futureowth. As a design rule, it is best to start with a Layer 3 switch in the core since it is more scalable and easier totend to a larger network as the campus network grows.

    so, in the core design with a Layer 2 switch, in order to avoid spanning tree loop and still have two redundantks for fast convergence, the link from each Layer 3 switch in the distribution layer is connected to the sameyer 2 switch in the core.

    erefore, should one of the Layer 2 switches go down, the Layer 3 switch loses both of its links and shouldnverge through the other Layer 3 switch in the building block. It may take a few seconds. However, in a coresign with Layer 3 switches, each Layer 3 switch in the distribution layer is connected to two different Layer 3itches in the core.

    WAN Design Considerations

    is section focuses primarily on the hub and spoke topology, as this is the most common WAN design.idelines for point-to-point, partially meshed, and fully meshed topologies are also discussed.

    mple Point-to-Point

    is topology is used for interconnecting very few sites. The WAN link is point-to-point and, depending on theesence of ABR already in each site, the link between the sites is part of area 0.

    rtially Meshed

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (29 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    30/48

    is topology can be used if there is a need for optimal routing between certain sites. Do not use Nonbroadcastultiaccess (NMBA) mode on the WAN link because the failure of a link between DR and a neighbor or twoghbors will result in a black hole for some sites.

    int-to-point or point-to-multipoint OSPF network types can be used for the WAN link.

    lly Meshed

    is topology is not scalable as the number of sites grows rapidly with the number of site to interconnect and

    ould be used for a small WAN topology that requires optimal routing between sites. Do not use OSPF network pe broadcast or NBMA as this will cause problems.

    e high number of link redundancies between routers results in a high number of flooding and acknowledgments.r example, if a link flaps, there would be 0(n^2) flooding generated, where n is the number of routerserconnected. If one router goes down, there would be 0(n^3) flooding generated. To decrease the flooding, use interface blocking feature.

    e idea is to reduce the flooding over a redundant link in order to decrease the LSA update and acknowledgment.is saves bandwidth and CPU cycles. Routers still maintain neighbor relationships by way of the blockederface. However, when neighbors exchange their Database Description packets they are just sending empty

    tabase Description packets. The database of all the routers is still consistent, as the same information reaches aven router by way of another path.

    configure the interface blocking feature, use the ip ospf database-filter all out interface command.

    ly one side of the link needs to have this configured. For troubleshooting purposes, it is better to have both sidesnfigured with this command. If only one side is configured, then during the DD exchange the side not having themmand still sends a summary of its database to the remote side.

    ub and Spoke

    is topology is usually used when connecting a high number of remote sites to the main site, and when the use of her topologies is not possible or is too expensive due to the number of links to be used. Since the spoke isnnected to the hub, a default route is sufficient in order to guarantee the connectivity of the remote site.

    e problem with using OSPF over hub and spoke is that any link flapping between the hub and spokenecessarily floods to other spokes. This consumes bandwidth and CPU cycles without affecting routing since theoke site still relies on the default route to maintain connectivity.

    reduce flooding due to a link flap, the remote spoke should be placed in a different area such as a totally Stubtotally NSSA. This will not generate any other summary other than the default type 3. By having a differenta, a flap in one area will not affect other spokes in other areas.

    a rule, the size of the area should be decreased if the links are unstable. An area of 20 to 50 routers is a gooddeoff depending on the overall number of spokes.

    ternatively, between the hub and spoke, other routing protocols such as the Enhanced Interior Gateway Routingotocol (EIGRP) stub feature can also be used and redistributed into OSPF.

    so, if the WAN link is not ATM, use Open Demand Routing (ODR) for a high number of hub and spoke. Forore detailed information, read the Designing Large-Scale Stub Networks with ODR white paper.

    ere are usually three types of connections from a spoke to the hub:Simple link from spoke with backup ISDNq

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (30 of 48) [10/11/2001 5:34:44 PM]

    http://www.cisco.com/warp/public/105/39.htmlhttp://www.cisco.com/warp/public/105/39.html
  • 8/3/2019 OSPF Routing Protocol(1)

    31/48

    Dual link from spoke to two different hubsq

    Dual link from spoke to two different hubs with backup ISDNq

    mple Link from Spoke with Backup ISDN

    e spoke has ISDN as a backup interface for the primary interface and runs OSPF. As long as the primary link is the ISDN interface is standby and OSPF does not bring up the link. As soon as the primary link goes down, the

    ckup interface kicks in and OSPF establishes adjacency over the dial up link. When the primary link comes back the ISDN link automatically goes back to standby mode and the line is dropped.

    al Link from Spoke to Two Different Hubs

    e spoke has two equal path costs to any destination and performs load balancing. If one of the links goes down, other is available.

    link is needed between the two hubs if summarization is performed by the hub routers. The reason being thatth hub routers advertise a summary range for the area to which they are connected. If the link between one hubd a remote spoke is down, one of the hub routers still advertises the summary range but the traffic to the spoke is

    opped if there is no link between the hub.e link should be part of the configured area in order to receive the more specific route. This will not work if thek is placed in area 0 since the hub will receive a summary from the other hub and will ignore it. In addition tonerating a summary route, a route to Null 0 is installed on the hub router.

    OTE: If the hubs are connected to different areas, there should be an interface in each area in order to learn theore specific route. An InterSwitch Link (ISL) subinterface or a WAN subinterface can be used to have a link inch area.

    al Link from Spoke to Two Different Hubs with Backup ISDN

    e ISDN line should be activated when both interfaces are down. However, a backup interface cannot be used foro different interfaces: A floating static can be used in this scenario.

    static route (default) is configured with an admin distance more than OSPF (110) and pointing to the ISDNerface. OSPF is not configured as interesting traffic in order to keep the line inactive under normal operation.hen both links go down, the static route is installed and traffic forwarded to the ISDN interface brings up thek. OSPF then establishes adjacency and routes over the ISDN dial up. When one of the primary links comesck up, the default or other route from the primary interface is received. However, since the cost of the dial uperface is higher, the primary interface is preferred and the ISDN line is dropped.

    Which Area the Backup ISDN Belongs

    r an explanation of the OSPF dial-up scenarios, read the OSPF Dial-Backup Scenarios document.

    OTE: In a dual link with ISDN backup scenario, if the ISDN link is placed in area 0 and once the ISDN line is the remote spoke becomes ABR and therefore always goes through area 0 which is the ISDN line. This meanst even if the primary interface is up, the ISDN link continues to be used since all summaries advertised by theb (ABR) are ignored by the remote spoke (ABR) through a non-backbone area (the primary link is in an-backbone area).

    al Up Support on Hub Site

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (31 of 48) [10/11/2001 5:34:44 PM]

    http://wwwin-cons/teams/team-isp/ospf/OSPFDial-Backup.htmlhttp://wwwin-cons/teams/team-isp/ospf/OSPFDial-Backup.html
  • 8/3/2019 OSPF Routing Protocol(1)

    32/48

    he hub site supports a high number of dials from different areas, read the Scalable ISDN Backup Strategy forrge OSPF Networks document.

    esign Recommendation Summary

    Implement an IP addressing plan in order to summarize the different building block subnets into the coreand have a contiguous IP block for the area.

    q

    Use a routed link between the two Layer 3 switches in the distribution layer. This prevents the traffic withinthe same building block from being directed to the core. In a VLAN scenario spread over both distributionlayer switches, return traffic will be black holed if the link from one of the access switches to the Layer 3switch in the distribution layer goes down, and summarization is used. This occurs because there is anotherinterface up in this VLAN and the summary route will still be advertised even if there are no paths betweenthe Layer 3 switches in the distribution layer.

    q

    Use Layer 3 switches in the core, as this is the most scalable solution and allows an easy future growth.q

    To decrease the convergence to a minimum, have two links from each Layer 3 switch in the distributionlayer to the Layer 3 switch in the core. The equal path cost installs both routes. If one link becomesunavailable, the convergence is immediate.

    q

    For a very large campus network, split the connection from the Layer 3 switch in the distribution layeramong different Layer 3 switches in the core. This decreases the number of adjacencies per Layer 3 switchcore (ABR).

    q

    For all Gigabit or Fast Ethernet links that have two connections to each switch, use the ip ospf networkpoint-to-point command. This reduces the link state database size as there would be no type 2 LSA. In caseof a link failure, when the two connected links come back up, the two switches do not have to wait (thedefault Wait time = RouterDeadInterval) 40 seconds before establishing adjacency. The reason for the 40seconds is for DR/BDR election.

    q

    By default, the auto-cost reference bandwidth is 100M. This makes the cost of all links above 100 M equalto 1. You can configure the cost manually or change the auto-cost reference bandwidth to 1G or 10 G. Thecommand to use under the OSPF process is auto-cost reference-bandwidth .

    q

    lanning and Implementation

    Addressinge IP addressing structure is one of the most important parts for a large and scalable network as summarizationpends on an efficiently designed addressing structure.

    e IP addressing in the campus can have the following simple structure 10.building.vlan.0/24 . In this model, sy to identify the IP address of each building and the VLAN within the building.

    s also very easy to extend the number of VLANs within a given building block. Following this structure, it issy to summarize each building block address with 10.building.0.0/16.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (32 of 48) [10/11/2001 5:34:44 PM]

    http://www.cisco.com/warp/public/104/23.htmlhttp://www.cisco.com/warp/public/104/23.htmlhttp://www.cisco.com/warp/public/104/23.htmlhttp://www.cisco.com/warp/public/104/23.html
  • 8/3/2019 OSPF Routing Protocol(1)

    33/48

    e first block can be used for the core link 10.1.vlan.0/16 and the building number starts from 2.

    s desirable to have a consistent router ID for all switches running OSPF. A loopback address with the followingucture could be configured 10.0.bulding.switch-number /32 on each switch.

    ummarization

    mmarization takes place at the ABR level. Each Layer 3 switch in the core summarizes the IP address of eachilding block. Since the IP structure is 10.bulding.vlan.0/24, summarization is very easy to achieve and every

    BR attached to a building block summarizes as 10.building.0.0/16.

    OTE: Without an IP addressing structure it is not always possible to summarize in an efficient way. Therefore,mmarization relies totally on an efficiently designed IP address plan.

    calability

    design should scale and grow without redesigning the whole network. The following points should bensidered when designing a scalable network.

    The IP address structure should be extensible and there should be reserved IP addresses for additional users

    without compromising the summary structure plan. For example, the structure 10.building.vlan.0/24 willhave space for any additional VLANs and summarization will remain 10.buildng.0.0/16.

    q

    For a large and scalable network, it is desirable to have a core architecture with Layer 3 switches. Thenetwork can grow by adding more core Layer 3 switches and having the distribution layer switches dividedbetween different core Layer 3 switches.

    q

    Convergence is an important factor. Always design two equal path costs from the distribution layer switchesto the core Layer 3 switches by having the distribution layer switches dual homed to two different switches.This avoids the Layer 3 core switches from having too many adjacencies and divides the distribution layer

    connection among different pairs of Layer 3 switches in the core. In general, 50 to 60 adjacencies (25 to 30building blocks) can be a good starting point before adding more Layer 3 switches in the core.

    q

    For a hub and spoke topology, use totally Stub or totally NSSA areas for the spokes. This reduces anychange in type 3 and type 5 LSAs from flooding to the remote sites.

    q

    Divide your spoke as much as possible into different areas. This reduces type 1 flooding due to a link flap toother spokes.

    q

    Alternatively, rather than running OSPF, EIGRP can be used between hub and spoke. The EIGRP stub

    feature or a higher number of spoke ODRs can be used.

    q

    If the remote site has dial up and there are a high number of remote sites to back up, read the read theScalable ISDN Backup Strategy for Large OSPF Networks document.

    q

    igration

    is section presents two migration scenarios:Migration from fully meshed to Layer 3 switch in the coreq

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (33 of 48) [10/11/2001 5:34:44 PM]

    http://www.cisco.com/warp/public/104/23.htmlhttp://www.cisco.com/warp/public/104/23.html
  • 8/3/2019 OSPF Routing Protocol(1)

    34/48

    Migration from core Layer 3 switch into core Layer 3 switchq

    igration from Fully Meshed to Layer 3 Switch in the Core

    e following diagram illustrates a fully meshed topology. The Layer 3 switches in the distribution layer are fullyshed, and the link between the Layer 3 switches in each building block is in a different area thus making theyer 3 switch an ABR. Summarization is done at each ABR level.

    gration StepsThe link between each Layer 3 switch in the distribution layer and the Layer 3 switch in the core is addedand the link belongs to the same area as the building block area. At this stage, the Layer 3 switches (see L1and L2 in the following diagram) learn all subnets within each building block but are not generating anysummary since they are not yet ABR (no link in area 0).

    1.

    An area range is configured for each area on the Layer 3 switch in the core. This will be used in step 3 whenthe Layer 3 switch in the core becomes ABR.

    2.

    Two links are configured between the Layer 3 switches in the core and are in area 0. This makes the Layer 3switches ABRs and they will start generating the summary range into other areas.

    The following diagram illustrates the above three steps, but for clarity only one area is represented.

    3.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (34 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    35/48

    At this stage, the Layer 3 switches in the distribution layer ignore the summary received by Layer 3 switchesin the core since they are ABR. An ABR only considers summary from the backbone as long as it has aneighbor in area 0.

    Since HSRP is running between the two Layer 3 switches in the distribution layer, A1, B1, and C2 are theprimary HSRPs for all of the VLANs. In this case, we can safely remove the full mesh between A2, B2, andC1 as shown in the following diagram.

    4.

    At this stage, A2, B2, and C1 are internal routers and are considering the summary from Layer 3 switches inthe core. After checking that the summaries are present and installed in the routing table, reverse the HSRPpriority making A2, B2, and C1 the active HSRPs for all of the VLANs. In this case, we are routing throughthe Layer 3 switch in the core.

    5.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (35 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    36/48

    Remove the link between A1, B1, and C2 and reestablish the HSRP priority as before (load balancingbetween different VLANs).

    At this stage, all Layer 3 switches in the core are interconnected through Layer 3 switches in the core. Thefollowing diagram shows the final topology.

    6.

    igration from Core Layer 3 Switch into Core Layer 3 Switch

    e following diagram illustrates the core Layer 3 switch into core Layer 3 switch topology. All Layer 3 switchesthe distribution layer are connected through Layer 3 switches in the core, and are part of the same subnetLAN). Also note that there is no spanning tree loop.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (36 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    37/48

    gration StepsThe link between each Layer 3 switch in the distribution layer and the Layer 3 switch in the core is addedand the link belongs to the same area as the building block area. At this stage the Layer 3 switches (see L1and L2 in the following diagram) learns all the subnets within each building block but are not generating anysummary since they are not ABR yet (no link in area 0).

    1.

    An area range is configured for each area on the Layer 3 switch in the core. This will be used at the next step

    when the Layer 3 switches in the core become ABRs.

    2.

    Two links are configured between Layer 3 switches in the core and are in area 0. This makes the Layer 3switches ABR and they will start generating the summary range into other areas.

    The following diagram shows the above three steps but for clarity only one area is represented.

    3.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (37 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    38/48

    The Layer 3 switch in the distribution layer ignore those summaries received by the Layer 3 switches in thecore since they are ABR. An ABR only considers summaries from the backbone as long as it has a neighborin area 0.

    Since HSRP is running between the two Layer 3 switches in the distribution layer, A2, B2, C2, and D2become the primary HSRPs for all of the VLANs. In this case, all connections between A1, B1, C1, and D1can safely be removed.

    Make sure that the DR or BDR are part of the remaining switches (A2, B2, C2, and D2) so noresynchronization will occur and the interruption is kept to a minimum.

    4.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (38 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    39/48

    A1, B1, C1, and D1 are internal routers and are considering the summary from the Layer 3 switch. Afterchecking that the summary is present and installed in the routing table, reverse the HSRP priority makingA1, B1, C1, and D1 the active HSRP for all VLANs. In this case, we are routing through Layer 3 switch inthe core.

    5.

    Remove the link between A2, B2, C2, and D2 and reestablish the HSRP priority as before (load balancingbetween different VLANs).

    At this stage all Layer 3 switches in the core are interconnected. The following diagram shows the finaltopology.

    6.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (39 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    40/48

    onvergence Tuning

    e Parameters Affecting the Convergence section described the many parameters that affect convergence.nfiguring all of the parameters is not desirable as this affects the stability of the network. Fast convergence

    ould be achieved through equal cost path. If one path becomes unavailable, routing through the other path ismost immediate.

    e following tuning practices assist in achieving faster convergence.Use back-to-back links between switches whenever possible. In this case, the neighbor-down situation isdetected through Layer 3 which is much faster than RouterDeadInterval.

    q

    Configure all Gigabit Ethernets (GEs) and Fast Ethernets with only two switches as a point-to-point OSPFtype. This increases the convergence for establishing adjacency. By default, when two routers become activeon a multi-access network, they have to wait for the Wait timer = RouterDeadInterval in order to establishadjacency.

    q

    When there is DR/BDR and the RouterDeadInterval is relied upon for neighbor-down detection, the helloand dead timer can be tuned to 1 and 3 seconds, respectively. This type of scenario can consist of a coredesign with Layer 3 switches, and all Layer 3 switches in the distribution layer are on the same subnet.

    q

    e following commands should be used under the interface configuration mode:

    ip ospf hello-interval 1

    ip ospf dead-interval 3

    e LSA generation and SPF calculation can be tuned. However, because of the presence of a dual path it is not

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (40 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    41/48

    ommended to change or tune these parameters. In the near future a back-off algorithm will be implemented forth LSA generation and SPF calculation.

    esign Case Study

    is section demonstrates an example of a large campus design. The objective is to build an enterprise network nsisting of 50 building blocks and a server farm. There are 200 remote sites connected through a hub and spokepology to the main campus through Frame Relay.

    Structure Plan

    e campus IP addressing plan is 10.building.vlan.0/24.The first block, 10.1.vlan.0/24, is used for the core link.q

    The 50 building blocks use 10.2.vlan.0/24 to 10.51.vlan.0/24. The next blocks, 10.52.vlan.0/24 to10.99.vlan.0/24, are reserved for future extension of building blocks.

    q

    The server farm block uses 10.100.vlan.0/24.q

    easily identify each router by its router ID, loopback interfaces are configured using the following structure:

    10.0.building.switch-number/32

    r example, the switch in the core has the router ID of 10.0.1.x /32 where x is the number of switches. Building 2s 10.0.2.x/32 where x is the switch number at the distribution layer, and so forth.

    nce all summaries within each building block is 10. Building.0.0/16 and every building block is in an area. Eacha ID is configured to match the summary. This quickly identifies each route to which the area belongs. For

    ample, the area ID for building 2 is 10.2.0.0, and so on.

    r WAN connectivity, 200 spokes are divided between two pair of hubs, with each supporting 100 spokes. The0 spokes are divided into 5 areas of 20 routers and the area is totally Stub. The first 100 spokes and pair of hubse IP block 10.101.0.0 and the second 100 spokes and pair of hubs use IP block 10.102.0.0.

    he remote sites are small sites then a /24 can be allocated for each spoke.

    e following table summarizes the campus and WAN IP address plan.

    ocation IP Address Router ID Area ID Area Rangeon ABR

    oreackbone

    10.vlan.0/24 10.0.1.switch-number/32 0

    uilding nith n =>51

    10.n.vlan.0/24 10.0n.switch-numberN/32 10.N.0.0 10.n.0.0/16

    erverarmlock

    10.100.vlan.0/24 10.0.100.switch-numbern/32 10.100.0.0 10.100.0.0/16

    pokes 120

    10.101.1->20.0/24 10.0.101.1->20/32 10.101.0.0 10.101.0.0/19

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (41 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    42/48

    pokes 2040

    10.101.33->43.0/24 10.0.101.33->43/32 10.101.32.0 10.101.32.0/19

    pokes 4060

    10.101.65->75.0/24 10.0.101.65->75/32 10.101.64.0 10.101.64.0/19

    pokes 6080

    10.101.97->117.0/24 10.0.101.97->117/32 10.101.96.0 10.101.96.0/19

    pokes 80100

    10.101.129->139.0/24 10.0.101.129->139/32 10.101.128.0 10.101.128.0/19

    pokes 120

    10.102.1->20.0/24 10.0.102.1->20/32 10.102.0.0 10.102.0.0/19

    pokes 2040

    10.102.33->43.0/24 10.0.102.33->43/32 10.102.32.0 10.102.32.0/19

    pokes 4060

    10.102.65->75.0/24 10.0.102.65->75/32 10.102.64.0 10.102.64.0/19

    pokes 6080

    10.102.97->117.0/24 10.0.102.97->117/32 10.102.96.0 10.102.96.0/19

    pokes 80100 10.102.129->139.0/24 10.0.102.129->139/32 10.102.128.0 10.102.128.0/19

    twork Architecture

    e following diagram shows the network architecture.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (42 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    43/48

    ere are 50 buildings to interconnect, therefore, a multilayer campus is used. The design consists of two Layer 3itches in the access layer (wiring closet) dual homed to two Layer 3 switches in the distribution layer, which inn are dual homed to Layer 3 switches in the core. The 50 block is divided into two sets of 25 blocks, eachnnecting to a different pair of Layer 3 switches. This reduces the number of adjacencies per Layer 3 switch in core to 2*25 = 50 since there are two Layer 3 switches in each building block.

    r a WAN design, the 200 spokes are divided in two sets of 100 spokes each. These are connected to a differentr of hubs. Each 100-spoke set is divided into 5 areas of 20 routers.

    l areas are totally NSSA in order to reduce all type 3 and type 5 flooding into the spokes. By reducing thember of routers per area, type 1 flooding is minimized and a flap in one area does not affect another area.

    ch pair of hubs is connected to Layer 3 switches in the core through Layer 2 switches. This makes all routersrt of the same subnet (VLAN).

    te that there are two different subnets for connectivity between each pair of hubs and Layer 3 switches in there.

    SPF Area Partition

    all links toward the access switch, a passive interface is configured on the Layer 3 switches in the distributionyer. There is a link between Layer 3 switches in each distribution layer in order to optimize intra-building traffic.

    isco - OSPF Routing Protocol

    ttp://www.cisco.com/partner/sdm/ci/routing/ospf/CI_OSPF.html (43 of 48) [10/11/2001 5:34:44 PM]

  • 8/3/2019 OSPF Routing Protocol(1)

    44/48

    l interfaces of Layer 3 switches in the distribut