CCNA 2 Aula 09 MIT Em Engenharia de Redes
-
Upload
edinilza-lima -
Category
Documents
-
view
221 -
download
0
Transcript of CCNA 2 Aula 09 MIT Em Engenharia de Redes
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 1/55
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE PC v4.0
Chapter 1 1
Protocolos de
Roteamento Link-State
Protocolos de Roteamento eConceitos
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 2/55
ITE PC v4.0
Chapter 1 2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Protocolos de Roteamento Link state
-Conhecido como algoritmo de caminho mais curto primeiro(shortest path first - SPF)
-Estes protocolos constroem a tabela de roteamento emtorno do algoritmo SPF, chamado Dijkstra
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 3/55
ITE PC v4.0
Chapter 1 3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Algoritmo Dikjstra conhecido como o algoritmo doshortest path first (SPF)
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 4/55
ITE PC v4.0
Chapter 1 4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
O caminho mais curto para um desstino não é necessariamenteo caminho com o menor número de saltos
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 5/55
ITE PC v4.0
Chapter 1 5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-StateProcesso de Roteamento Link-State Como os roteadores usam os Protocolos de roteamento Link State para
alcançar a convergência
-Cada roteador aprende sobre suas próprias redes diretamenteconectadas
-Roteadores Link state trocam pacotes hello encontrar outros roteadoreslink state diretamente conectados.
-Cada roteador constroi seu próprio pacote link state (Link State Packet -LSP) ao qual inclui informações sobre vizinhos tais como ID do vizinho(neighbor ID), tipo de link e largura de banda.
-Depois que o pacote IP é criado, o roteador inunda este pacote para
todos os vizinhos que então armazena as informações e entãoencaminham o pacote para todos os roteadores terem a mesmainformação.
-Depois de todos os roteadores terem recebido todos os LSPs, osroteadores então constroem um mapa topológico da rede o qual é usadopara determinar a melhor rota para o destino
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 6/55
ITE PC v4.0
Chapter 1 6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Redes diretamente conectadas
Link
Esta é a interface do
roteador Link state
Este é a informação sobreo estado do enlace
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 7/55ITE PC v4.0
Chapter 1 7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Enviando pacotes Hello Packets para vizinhos
Protocolos de roteamento link state usam o protocolo hello
Propósito de um protocolo hello:
-Descoberta de vizinhos (que usam o mesmoprotocolo de roteamento link state) no link
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 8/55ITE PC v4.0
Chapter 1 8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-StateEnviando Pacotes Hello para
vizinhos
Interfaces conectadas que estãousando o mesmo protocolo deroteamento link state irão trocar
pacotes hello.
Os roteadores aprenderão sobrevizinhos e eles formarão adjacências
-2 vizinhos adjacentes irão trocar
pacotes hello
-Estes pacotes irão servir comouma função keep alive (manter ativo)
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 9/55ITE PC v4.0
Chapter 1 9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Construindo o pacote Link State
Cada roteador constroi seupróprio Link State Packet (LSP)
Conteúdo do LSP:-Estado de cada linkdiretamente conectado
-Inclui informações sobre
vizinhos tais como ID dovizinho, tipo de link elargura de banda.
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 10/55ITE PC v4.0
Chapter 1 10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Inundando LSPs para Vizinhos
Os LSP são criados e encaminhados saindo para osvizinhos.
-Depois, recebendo o LSP, o vizinho continua aencaminha o pacote através da área de roteamento.
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 11/55ITE PC v4.0
Chapter 1 11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
LSPs são enviados nas seguintes condições
-Inicialização do roteador ou do processo deroteamento
-Quando ocorre mudanças na topologia
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 12/55ITE PC v4.0
Chapter 1 12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Construindo um banco de dados link state
Roteadores usam um banco de dados para construirum mapa topológico da rede
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 13/55
ITE PC v4.0
Chapter 1 13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
Determinando o caminho mais curto
O caminho mais curto para o destino é determinado pelaadicionando os custos e encontrando o menor custo
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 14/55
ITE PC v4.0
Chapter 1 14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Roteamento Link-State
O algoritmo SPF determina as rotas do caminho mais curto,estas rotas são adicionadas a tabela de roteamento.
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 15/55
ITE PC v4.0
Chapter 1 15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Protocolos de Roteamento Link-State
Protocolo de
Roteamento
Construção
do mapatopológico
Roteador pode,
independentementedeterminar o
caminho mais curto
para qualquer rede.
Convergência
Periodicamente
ou por eventodirigem uma
atualização de
roteamento
Uso
deLSP
Distance
vector
Não Não Lenta Generalmente
Não
Não
Link State Sim Sim Rápida Generalmente
Sim
Sim
Vantagens de um Protocolo de Roteamento Link-State
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 16/55
ITE PC v4.0
Chapter 1 16© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Protocolos de Roteamento Link-State
Requerimentos para usar um Protocolo de Roteamentolink state
Requer memória
Tipicamente, um protocolo de roteamento link stateusa mais memória
Requer processamento
Mais processamento da CPU é requerida doprotocolo de roteamento link state
Requer largura de banda
Inicialização do protocolo de roteamento link statepode consumir muita largura de banda
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 17/55
ITE PC v4.0
Chapter 1 17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Protocolos de Roteamento Link-State
2 protocolos de roteamento link state usados para oroteamento IP
-Open Shortest Path First (OSPF)
-Intermediate System-Intermediate System (IS-IS)
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 18/55© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE PC v4.0
Chapter 1 18
OSPF
Routing Protocols andConcepts
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 19/55
ITE PC v4.0
Chapter 1 19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
Background of OSPF
Began in 1987
1989 OSPFv1 released in RFC 1131
This version was experimental & never deployed
1991 OSPFv2 released in RFC 1247 1998 OSPFv2 updated in RFC 2328
1999 OSPFv3 published in RFC 2740
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 20/55
ITE PC v4.0
Chapter 1 20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPFOSPF Message Encapsulation
OSPF packet type
There exist 5 types
OSPF packet header
Contains - Router ID andarea ID and Type code forOSPF packet type
IP packet header
Contains - Source IPaddress, Destination IPaddress, & Protocol fieldset to 89
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 21/55
ITE PC v4.0
Chapter 1 21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
OSPF Message Encapsulation
Data link frame header
Contains - Source MAC address and DestinationMAC address
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 22/55
ITE PC v4.0
Chapter 1 22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
OSPF Packet Types
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 23/55
ITE PC v4.0
Chapter 1 23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPFHello Protocol
OSPF Hello Packet –Purpose of Hello Packet
Discover OSPF neighbors & establish adjacencies
Advertise guidelines on which routers must agree to becomeneighbors
Used by multi-access networks to elect a designated r outer anda backup designated r outer
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 24/55
ITE PC v4.0
Chapter 1 24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
Hello Packets continued
Contents of a Hello Packet
router ID of transmitting router
OSPF Hello Intervals
–Usually multicast (224.0.0.5)
–Sent every 30 seconds for NBMA segments
OSPF Dead Intervals
–This is the time that must transpire
before the neighbor is considered
down
–Default time is 4 times
the hello interval
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 25/55
ITE PC v4.0
Chapter 1 25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
Hello protocol packets contain information that is usedin electing
-Designated Router (DR)
DR is responsible for updating all other OSPF routers
-Backup Designated Router (BDR)
This router takes over DR’s responsibilities if DR fails
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 26/55
ITE PC v4.0
Chapter 1 26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPFOSPF Link-state Updates
Purpose of a Link State Update (LSU)Used to deliver link state advertisements
Purpose of a Link State Advertisement (LSA)
Contains information about neighbors & path costs
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 27/55
ITE PC v4.0
Chapter 1 27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
Administrative Distance
Default Administrative Distance for OSPF is 110
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 28/55
ITE PC v4.0
Chapter 1 28© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF OSPF Authentication
–Purpose is to encrypt & authenticate routinginformation
–This is an interface specific configuration
–Routers will only accept routing information from
other routers that have been configured with thesame password or authentication information
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 29/55
ITE PC v4.0
Chapter 1 29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Lab Topology
Topology used for this chapter
Discontiguous IP addressing scheme
Since OSPF is a classless routing protocol the subnet mask isconfigured in
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 30/55
ITE PC v4.0
Chapter 1 30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
The router ospf command To enable OSPF on a router use the following
command
R1(config)#router ospf process- id
Process id A locally significant number between 1 and 65535
-this means it does not have to match other OSPFrouters
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 31/55
ITE PC v4.0
Chapter 1 31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration OSPF network command
-Requires entering: network address
wildcard mask - the inverse of the subnetmask
area-id - area-id refers to the OSPF area.OSPF area is a group of routers thatshare link state information
-Example: Router(config-router)#network network-addresswildcard-ask area area-id
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 32/55
ITE PC v4.0
Chapter 1 32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Router ID –This is an IP address used to identify a router
–3 criteria for deriving the router ID
Use IP address configured with OSPF router-id command
-Takes precedence over loopback and physical interfaceaddresses
If router-id command not used then router chooses highestIP address of any loopback interfaces
If no loopback interfaces are configured then the highest IPaddress on any active interface is used
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 33/55
ITE PC v4.0
Chapter 1 33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
OSPF Router ID Commands used to verify current router ID
–Show ip protocols
–Show ip ospf
–Show ip ospf interface
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 34/55
ITE PC v4.0
Chapter 1 34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
OSPF Router ID
Router ID & Loopback addresses
-Highest loopback address will be used as router ID if router-idcommand isn’t used
-Advantage of using loopback addressthe loopback interface cannot fail OSPF stability
The OSPF router-id command
–Introduced in IOS 12.0
–Command syntaxRouter(config)#router ospfprocess-id
Router(config-router)#router-idip-address
Modifying the Router ID
–Use the command Router #clear ip ospf process
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 35/55
ITE PC v4.0
Chapter 1 35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF ConfigurationVerifying OSPF
Use the show ip ospf command to verify & troubleshoot OSPF networks
Command will display the following:
Neighbor adjacency
-No adjacency indicated by - Neighboring router’s Router ID is not displayed
A state of full is not displayed
-Consequence of no adjacency-
No link state information exchanged
Inaccurate SPF trees & routing tables
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 36/55
ITE PC v4.0
Chapter 1 36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Command Description
Show ip protocols
Displays OSPF process ID,
router ID, networks router isadvertising & administrativedistance
Show ip ospf
Displays OSPF process ID,router ID, OSPF area information& the last time SPF algorithm
calculated
Show ip ospf interfaceDisplays hello interval and deadinterval
Verifying OSPF - Additional Commands
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 37/55
ITE PC v4.0
Chapter 1 37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Examining the routing table
Use the show ip route command to display the routingtable
- An “O’ at the beginning of a route indicates that the routersource is OSPF
-Note OSPF does not automatically summarize at major networkboundaries
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 38/55
ITE PC v4.0
Chapter 1 38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric
OSPF uses cost as the metric for determining thebest route
-The best route will have the lowest cost
-Cost is based on bandwidth of an interface
Cost is calculated using the formula
108 / bandwidth
-Reference bandwidth
defaults to 100Mbpscan be modified using
auto-cost reference-bandwidth command
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 39/55
ITE PC v4.0
Chapter 1 39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric COST of an OSPF route
Is the accumulated value from one router to the next
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 40/55
ITE PC v4.0
Chapter 1 40© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric Usually the actual speed of a link is different than the
default bandwidth –This makes it imperative that the bandwidth value reflects link’s
actual speed
Reason: so routing table has best path information
The show interface command will display interface’s
bandwidth-Most serial link default to 1.544Mbps
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 41/55
ITE PC v4.0
Chapter 1 41© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF ConfigurationModifying the Cost of a link
Both sides of a serial link should be configured with thesame bandwidth
–Commands used to modify bandwidth value
Bandwidth command
–Example: Router(config-if)#bandwidthbandwidth-kbpsip ospf cost command – allows you to directly specifyinterface cost
-Example:R1(config)#interface serial 0/0/0
R1(config-if)#ip ospf cost 1562
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 42/55
ITE PC v4.0
Chapter 1 42© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Modifying the Cost of the link
Difference between bandwidth command & the ip ospfcost command
–Ip ospf cost command
Sets cost to a specific value
–Bandwidth command
Link cost is calculated
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 43/55
ITE PC v4.0
Chapter 1 43© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
2 challenges presented by multiaccess networks –Multiple adjacencies
–Extensive LSA flooding
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 44/55
ITE PC v4.0
Chapter 1 44© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
Extensive flooding of LSAsFor every LSA sent out there must be an acknowledgement ofreceipt sent back to transmitting router.
consequence: lots of bandwidth consumed and chaotic traffic
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 45/55
ITE PC v4.0
Chapter 1 45© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
Solution to LSA flooding issueis the use of
–Designated router (DR)
–Backup designated router (BDR)
DR & BDR selection –Routers are elected to send &
receive LSA
Sending & Receiving LSA
–DRothers send LSAs via multicast224.0.0.6 to DR & BDR
–DR forward LSA via multicastaddress 224.0.0.5 to all otherrouters
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 46/55
ITE PC v4.0
Chapter 1 46© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
DR/BDR Election Process
DR/BDR elections DO NOT occur in point to pointnetworks
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 47/55
ITE PC v4.0
Chapter 1 47© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
DR/BDR elections will take place on multiaccessnetworks as shown below
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 48/55
ITE PC v4.0
Chapter 1 48© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
Criteria for getting elected DR/BDR
1. DR: Router with the highest OSPFinterface priority.
2. BDR: Router with the second highest OSPF interface priority.
3. If OSPF interface priorities are equal, thehighest router ID is used to break the tie.
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 49/55
ITE PC v4.0
Chapter 1 49© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
Timing of DR/BDR Election
–Occurs as soon as 1st router has its interface enabled onmultiaccess network
When a DR is elected it remains as the DR until one of thefollowing occurs
-The DR fails.
-The OSPF process on the DR fails.
-The multiaccess interface on the DR fails.
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 50/55
ITE PC v4.0
Chapter 1 50© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
Manipulating the election process
-If you want to influence the election of DR & BDR then do one ofthe following
Boot up the DR first, followed by the BDR, and then boot all
other routers,OR
Shut down the interface on all routers, followed by a noshutdown on the DR, then the BDR, and then all otherrouters.
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 51/55
ITE PC v4.0
Chapter 1 51© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess NetworksOSPF Interface Priority
Manipulating the DR/BDR election process continued
–Use the ip ospf priority interface command.
–Example:Router(config-if)#ip ospf priority {0 - 255}
Priority number range 0 to 255
–0 means the router cannot become the DR or BDR –1 is the default priority value
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 52/55
ITE PC v4.0
Chapter 1 52© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
Redistributing an OSPF Default Route
Topology includes a link to ISP
–Router connected to ISP
Called an autonomous system border router
Used to propagate a default route
–Example of static default route
R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 1
–Requires the use of the default-information originate command
–Example of default-information originate command
R1(config-router)#default-information originate
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 53/55
ITE PC v4.0
Chapter 1 53© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
Fine-Tuning OSPF
Since link speeds are gettingfaster it may be necessary tochange reference bandwidth
values
–Do this using the auto-costreference-bandwidth command
–Example:
R1(config-router)#auto-costreference-bandwidth 10000
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 54/55
ITE PC v4.0
Chapter 1 54© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
Fine-Tuning OSPF
Modifying OSPF timers
–Reason to modify timers
Faster detection of network failures
–Manually modifying Hello & Dead intervals
Router(config-if)#ip ospf hello-interval seconds
Router(config-if)#ip ospf dead-interval seconds
–Point to be made
Hello & Dead intervals must be the same betweenneighbors
8/13/2019 CCNA 2 Aula 09 MIT Em Engenharia de Redes
http://slidepdf.com/reader/full/ccna-2-aula-09-mit-em-engenharia-de-redes 55/55