Skip to content

Latest commit

 

History

History
257 lines (148 loc) · 7.56 KB

OSPF_Part3.md

File metadata and controls

257 lines (148 loc) · 7.56 KB

28. OSPF : PART 3 (IGP: LINK STATE)

LOOPBACK INTERFACES

  • A LOOPBACK INTERFACE is a virtual INTERFACE in the ROUTER
  • It is ALWAYS UP/UP - unless you manually shut it down
  • It is NOT dependent on a PHYSICAL INTERFACE
  • So, it provides a consistent IP ADDRESS that can be used to REACH / IDENTIFY the ROUTER

image


OSPF NETWORK TYPES

  • The OSPF “NETWORK TYPE” refers to the TYPES of connection between OSPF neighbors (Ethernet, etc.)

  • There are THREE MAIN OSPF NETWORK TYPES:

  • BROADCAST :

    • Enabled by DEFAULT on ETHERNET and FDDI (Fiber Distributed Data Interfaces) INTERFACES
  • POINT TO POINT :

    • Enabled by DEFAULT on PPP (Point-to-Point) and HDLC (High-Level Data Link Control) INTERFACES
  • NON-BROADCAST :

    • Enabled by DEFAULT on FRAME RELAY and X.25 INTERFACES
💡 CCNA focuses on BROADCAST and POINT-TO-POINT types

OSPF BROADCAST NETWORK TYPE

image

  • Enabled on ETHERNET and FDDI interfaces by DEFAULT
  • ROUTERS dynamically discover neighbors by SENDING / LISTENING for OSPF “Hello” messages using the multicast address 224.0.0.5
  • A DR (DESIGNATED ROUTER) and BDR (BACKUP DESIGNATION ROUTER) must be elected on each subnet (only DR if there are no OSPF neighbors, ie: R1’s G1/0 INTERFACE)
  • ROUTERS which aren’t the DR or BDR become a DROther

image

The DR / BDR election order of priority:

  1. Highest OSPF INTERFACE PRIORITY

  2. Highest OSPF ROUTER ID

“First Place” becomes the DR for the SUBNET

“Second Place” because the BDR

💡 DEFAULT OSPF INTERFACE PRIORITY is “1” on ALL INTERFACES!

The command to change the OSPF PRIORITY of an INTERFACE is :

💡 R2(config-if)# ip ospf priority

image

💡 IF an OSPF PRIORITY is set to “0”, the ROUTER CANNOT be the DR / BDR for the SUBNET!

The DR / DBR ELECTION is “non-preemptive”.

Once the DR / DBR are selected, they will keep their role until OSPF is:

  • Reset
  • Interface fails
  • Is shut down
  • etc.

image

image

💡 In the BROADCAST NETWORK TYPE, ROUTERS will only form a FULL OSPF ADJACENCY with the DR and the BDR of the SEGMENT!

Therefore, ROUTERS only exchange LSAs with the DR and BDR.

DROthers will NOT exchange LSAs with each other.

ALL ROUTERS will still have the same LSDB but THIS reduces the amount of LSAs flooding the NETWORK

💡 MESSAGES to the DR / BDR are MULTICAST to 224.0.0.6

The DR and BDR will form a FULL ADJACENCY with ALL ROUTERS in the SUBNET

DROthers will form a FULL ADJACENCY ONLY with the DR / BDR !

image


OSPF POINT-TO-POINT NETWORK TYPE

image

  • ENABLED on SERIAL INTERFACES using the PPP and HDLC encapsulations, by DEFAULT
  • ROUTERS dynamically discover neighbors by SENDING / LISTENING for OSPF “Hello” messages using the multicast address 224.0.0.5
  • A DR and BDR are NOT elected
  • These ENCAPSULATIONS are used for “Point-To-Point” connections
    • Therefore, there is no point in electing a DR and DBR
    • The TWO ROUTERS will form a FULL ADJACENCY with each other

(ASIDE)

SERIAL INTERFACES

image

  • One side of SERIAL CONNECTION functions as DCE (Data Communications Equipment)
  • The OTHER side functions as DTE (Data Terminal Equipment)
  • ONLY the DCE side needs to specify the clock rate (speed) of the connection

ETHERNET INTERFACES use the “speed” command to configure the operating speed.

SERIAL INTERFACES use the “clock rate” command

image

If you change the ENCAPSULATION, it must MATCH on BOTH ENDS or the INTERFACE will go down.

image

R1 and R2 sharing the SAME Encapsulation Type

image

SERIAL INTERFACES SUMMARY

  • The DEFAULT encapsulation is HDLC

  • You can configure PPP encapsulation with this command:

    💡 R1(config-if)# **encapsulation ppp**
  • One side is DCE, other side is DTE

  • Identify which side is DCE / DTE :

    💡 R1# **show controllers** *interface-id*
  • You must configure the CLOCK RATE on the DCE side:

    💡 R1(config-if)# clock rate *bits-per-second*

image

image

  • You can configure the OSPF NETWORK TYPE on an INTERFACE with :
💡 R1(config-if)# ip ospf network

For example, if TWO ROUTES are directly connected with an ETHERNET link, there is no need for a DR / DBR. You can configure the POINT-TO-POINT NETWORK type in this case

NOTE: Not all NETWORK TYPES work on ALL LINK TYPES (for example, a serial link cannot use the BROADCAST NETWORK type)

image

💡 NON-BROADCAST NETWORK type Default Timers : Hello 30, Dead 120

OSPF NEIGHBOUR / ADJACENCY REQUIREMENTS

  1. AREA NUMBER MUST MATCH

  2. INTERFACES must be in the SAME SUBNET

  3. OSPF PROCESS must not be SHUTDOWN

image

  1. OSPF ROUTER ID must be unique

image

  1. HELLO and DEAD Timers must MATCH

  2. AUTHENTICATION settings must MATCH

image

*** SPECIAL REQUIREMENTS ***

  1. IP MTU settings must MATCH
  • IP MTU : Maximum size of an IP Packet that can be sent from an INTERFACE
  • If the settings DO NOT match, can still become OSPF Neighbors but OSPF WILL NOT operated properly
  1. OSPF NETWORK TYPE must match
  • will appear to be working but NEIGHBOR won’t appear in ROUTING information

OSPF LSA TYPES

  • The OSPF LSDB is made up of LSAs
  • There are 11 types of LSA but there are only 3 you should be aware of for the CCNA:
    • Type 1 (Router LSA)
    • Type 2 (Network LSA)
    • Type 5 (AS External LSA)

TYPE 1 (Router LSA)

  • Every OSPF ROUTER generates this type of LSA
  • It identifies the ROUTER using it’s ROUTER ID
  • It also lists NETWORKS attached to the ROUTER’s OSPF-Activated INTERFACES

TYPE 2 (Network LSA)

  • Generated by the DR of EACH “multi-access” NETWORK (ie: the BROADCAST network type)
  • Lists the ROUTERS which are attached to the multi-access NETWORK

TYPE 5 (AS-External LSA)

  • Generated by ASBRs to describe ROUTES to DESTINATIONS outside of the AS (OSPF Domain)