CCNA Explorer semester 2 kapitel 11

From Teknologisk videncenter
Jump to: navigation, search
OSPF udviklings tidslinie
Encapsulated OSPF Message

OSPF Pakketyper

OSPF pakke typer

1. Hello - Hello packets are used to establish and maintain adjacency with other OSPF routers. The hello protocol is discussed in detail in the next topic.

2. DBD - The Database Description (DBD) packet contains an abbreviated list of the sending router's link-state database and is used by receiving routers to check against the local link-state database.

3. LSR - Receiving routers can then request more information about any entry in the DBD by sending a Link-State Request (LSR).

4. LSU - Link-State Update (LSU) packets are used to reply to LSRs as well as to announce new information. LSUs contain seven different types of Link-State Advertisements (LSAs). LSUs and LSAs are briefly discussed in a later topic.

5. LSAck - When an LSU is received, the router sends a Link-State Acknowledgement (LSAck) to confirm receipt of the LSU.

HELLO protocol

OSPF Message Format
  • Type: OSPF Packet Type: Hello (1), DD (2), LS Request (3), LS Update (4), LS ACK (5)
  • Router ID: ID of the originating router
  • Area ID: area from which the packet originated
  • Network Mask: Subnet mask associated with the sending interface
  • Hello Interval: number of seconds between the sending router's hellos
  • Router Priority: Used in DR/BDR election (discussed later)
  • Designated Router (DR): Router ID of the DR, if any
  • Backup Designated Router (BDR): Router ID of the BDR, if any
  • List of Neighbors: lists the OSPF Router ID of the neighboring router(s)
HELLO protocol

Mismatch OSPF timere

Hvis HELLO interval og DEAD interval ikke er ens på naboerne kan der ikke laves et adjacencie.

Link State Updates

LSU'er indeholder Link State Advertisments LSA'er

OSPF algoritmen

OSPF anvender Dijkstra's shortest path first (SPF) algorithm
OSPF administrativ afstand
OSPF authentication

OSPF eksempel

Netværk
OSPF konfiguration

OSPF Router ID

Der er ingen Loopback interfaces konfigureret
  1. Use the IP address configured with the OSPF router-id command.
  2. If the router-id is not configured, the router chooses highest IP address of any of its loopback interfaces.
  3. If no loopback interfaces are configured, the router chooses highest active IP address of any of its physical interfaces.
Der er ingen Loopback interfaces konfigureret

Loopback interface OSPF eksempel

Konfiguration af Loopback interfaces
Netværks tegning
Ny Router ID

Verifying OSPF

Verificer OSPF naboer
  • Neighbor ID - The router ID of the neighboring router.
  • Pri - The OSPF priority of the interface. This is discussed in a later section.
  • State - The OSPF state of the interface. FULL state means that the router and its neighbor have identical OSPF link-state databases. OSPF states are discussed in CCNP.
  • Dead Time - The amount of time remaining that the router will wait to receive an OSPF Hello packet from the neighbor before declaring the neighbor down. This value is reset when the interface receives a Hello packet.
  • Address - The IP address of the neighbor's interface to which this router is directly connected.
  • Interface - The interface on which this router has formed adjacency with the neighbor.
show ip protocols
show ip ospf
show ip ospf interface

Route tabellen

R1
R2
R3

OSPF Metric

Cisco OSPF Cost values
OSPF Accumulates Costs

Default bandwidth

Default Bandwidth on Serial Interfaces
show ip route
show ip ospf interface

Changing default bandwidth

bandwidth kommando
ip ospf cost kommando
sammenligning

Multiaccess netværk

Multiaccess vs. Point-to-Point netværk
Multiaccess og Point-to-Point netværk
Antallet af naboer på multiaccess stiger ekspontielt
Alle skal sende LSA'er til alle (Problem)
DR og BDR

DR og BDR selection process

Multiaccess netværk
show ip ospf neighbour
show ip ospf interface

DR og BDR selection example

Multiaccess netværk
Router A fastethernet0/0 OSPF priority
Changing priority
Forcing election

OSPF redistribute OSPF default Route

Netværk med internet adgang
Konfiguration af R1
Routetabel R1
Routetabel R2
Routetabel R3

Fine-tuning OSPF

Reference bandwidth

Netværk med internet adgang
Ændring af reference bandwidth
Routetabel R1 før ændring
Routetabel R1 efter ændring

Modifying Timers

R1 naboer 1
Modify R1 timere
R1 naboer 2
R2 timere
Modify R2 timere
R1 naboer 3