Title: OSPF Network Design
1OSPF Network Design
- Dijiang Huang, Deep Medhi
- SICE, UMKC
- 10/3/2002
Ref http//www.cisco.com/warp/public/104/1.html
2OSPF Fundamental Concepts
- Basic OSPF Concept and Operation Commands
3OSPF vs RIP
4OSPF Cost
- The cost of an interface is inversely
proportional to the bandwidth of that interface
multiplied by 108(by default) - For example
- 10M ? cost 10
- T1 ? cost 64
- Force the cost of an interface
- ip ospf cost ltvaluegt interface sub-command
5Border Routers
6Enabling OSPF on the Router
- Enabling an OSPF process using the
- router ospf ltprocess-idgt command.
- 2. Assigning areas to the interfaces using the
network ltnetwork or IP addressgt ltmaskgt ltarea-idgt
command
Example
RTA interface Ethernet0 ip address
192.213.11.1 255.255.255.0 interface Ethernet1
ip address 192.213.12.2 255.255.255.0 interface
Ethernet2 ip address 128.213.1.1 255.255.255.0
router ospf 100 network 192.213.0.0 0.0.255.255
area 0.0.0.0 network 128.213.1.1 0.0.0.0 area
23
7OSPF Authentication
- Simple Password Authentication
- ip ospf authentication-key key (this goes under
the specific interface) - area area-id authentication (this goes under
"router ospf ltprocess-idgt") - For Example
- interface Ethernet0
- ip address 10.10.10.10 255.255.255.0
- ip ospf authentication-key mypassword
- router ospf 10
- network 10.10.0.0 0.0.255.255 area 0
- area 0 authentication
8OSPF Authentication - Continue
- Message Digest Authentication
- ip ospf message-digest-key keyid md5 key (used
under the interface) - area area-id authentication message-digest (used
under "router ospf ltprocess-idgt") - For Example
- interface Ethernet0
- ip address 10.10.10.10 255.255.255.0
- ip ospf message-digest-key 10 md5 mypassword
- router ospf 10
- network 10.10.0.0 0.0.255.255 area 0
- area 0 authentication message-digest
9Backbone Area (0)
- If more than one area is configured, one of these
areas has be to be area 0 - The backbone has to be at the center of all other
areas
10Virtual Links
- Linking an area that does not have a physical
connection to the backbone. - Patching the backbone in case discontinuity of
area 0 occurs
For Example
RTA router ospf 10 area 2 virtual-link 2.2.2.2
RTB router ospf 10 area 2 virtual-link
1.1.1.1
11Neighbors Adjacency
- Routers that share a common segment become
neighbors on that segment. Neighbors are elected
via the Hello protocol. Hello packets are sent
periodically out of each interface using IP
multicast. - Adjacency is the next step after the neighboring
process. Adjacent routers are routers that go
beyond the simple Hello exchange and proceed into
the database exchange process.
- Point-to-point network
- Broad cast network
- Non-broad cast network
- NBMA
- Point-to-Multipoint network
12DR Election
- DR and BDR election is done via the Hello
protocol. - Hello packets are exchanged via IP multicast
packets on each segment. - The router with the highest OSPF priority on a
segment will become the DR for that segment. (The
same process is repeated for the BDR.) - In case of a tie, the router with the highest RID
will win. - Setting the ospf priority on an interface is done
using - ip ospf priority ltvaluegt interface
13Link-State Database Synchronization
14Stub Area
- Routing from stub areas to the outside world is
based on a default route. - Configuring a stub area reduces the topological
database size inside an area and reduces the
memory requirements of routers inside that area. - An area could be qualified a stub when there is a
single exit point from that area or if routing to
outside of the area does not have to take an
optimal path. - Not So Stubby Areas (NSSA)
15LSA Types
- Router-LSAs
- Generated by each router
- Describe routers interface information
- Is flooded throughout the particular area
- Network-LSAs
- Generated by DR
- Describe all the routers that are attached to the
network. - Is flooded throughout the entire area contains
the transit network
16LSA Types - Continue
- Summary-LSAs.
- Generated by area boarder router.
- Describe external to the area, yet still belongs
to the autonomous system. - Are flooded throughout a single area only.
- As-external-LSAs.
- Generated by AS boarder router.
- Describe routes to destinations external to the
autonomous system. - Are flooded throughout the entire autonomous
system.
17OSPF Configuration Examples
18Point to Point Example
19Point-to-point example (continue)
20Examining OSPF Database
21Multi access example
22Multi Access Example (Continue)
23Examining OSPF Database
24Internal Router, ABR, and ASBRs Configuration
Example
- Router A and Router B are both internal
- routers within Area 1.
- Router C is an OSPF ABR. Note that for
- Router C, Area 1 is assigned to E3 and
- Area 0 is assigned to S0.
- Router D is an internal router in Area 0
- (backbone area). In this case, both network
- router configuration commands specify the
- same area (Area 0, or the backbone area).
- Router E is an OSPF ASBR. Note that BGP
- routes are redistributed into OSPF and that
- these routes are advertised by OSPF
25Internal Router, ABR, and ASBRs Configuration
Example (Continue)
- Router AInternal Routerinterface ethernet 1 Â
- ip address 131.108.1.1 255.255.255.0
- router ospf 109 Â
- network 131.108.0.0 0.0.255.255 area 1
- Router BInternal Routerinterface ethernet 2 Â
- ip address 131.108.1.2 255.255.255.0
- router ospf 109 Â
- network 131.108.0.0 0.0.255.255 area 1
- Router CABRinterface ethernet 3 Â
- ip address 131.108.1.3 255.255.255.0
- interface serial 0 Â
- ip address 131.108.2.3 255.255.255.0
- router ospf 109 Â
- network 131.108.1.0 0.0.0.255 area 1 Â
- network 131.108.2.0 0.0.0.255 area 0
- Router DInternal Routerinterface ethernet 4 Â
- ip address 10.0.0.4 255.0.0.0
- interface serial 1 Â
- ip address 131.108.2.4 255.255.255.0
- router ospf 109
- network 131.108.2.0 0.0.0.255 area 0 Â
- network 10.0.0.0 0.255.255.255 area 0
- Router EASBRinterface ethernet 5 Â
- ip address 10.0.0.5 255.0.0.0
- interface serial 2 Â
- ip address 11.0.0.5 255.0.0.0
- router ospf 109 Â
- network 10.0.0.0 0.255.255.255 area 0 Â
- redistribute bgp 109 metric 1 metric-type 1
- router bgp 109 Â
- network 131.108.0.0 Â
- network 10.0.0.0 Â
- neighbor 11.0.0.6 remote-as 110