SlideShare uma empresa Scribd logo
1 de 43
OBJECTIVES▪ Identify and apply the basic OSPF configuration commands
▪ Describe the background and basic features of OSPF
▪ Describe, modify and calculate the metric used by OSPF
▪ Describe the Designated Router/Backup Designated Router
(DR/BDR) election process in multiaccess networks
▪ Describe the uses of additional configuration commands in
OSPF
INTRODUCTION
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
INTRODUCTION TO OSPF
OSPF Message Encapsulation:
1.OSPF packet type
▪ There exist 5 types
2.OSPF packet header
▪ Contains - Router ID and
area ID and Type code (1-
5) for OSPF packet types
3.IP packet header
Contains - Source IP
address, Destination IP
address, & Protocol field
set to 89
INTRODUCTION TO OSPF
OSPF Message Encapsulation
4.Data link frame header
Contains - Source MAC address and Destination
MAC address
INTRODUCTION TO OSPF
OSPF Message Encapsulation:
1.OSPF packet type
INTRODUCTION TO OSPF
Hello Protocol:
▪ Purpose of OSPF Hello Packet:
▪ Discovers OSPF neighbors
& establish adjacencies.
▪ Contains information that is
used by multi-access
networks (Ethernet) to elect
a designated router and a
backup designated router
(DR and BDR will be
discussed later).
▪ Carries the Router ID of the
transmitting (Originating)
router (Router ID will be
discussed later).
INTRODUCTION TO OSPF
OSPF Hello Packet contents:
▪OSPF Hello Intervals
● Sent every 10 or 30 seconds.
● Usually multicast (224.0.0.5)
▪OSPF Dead Intervals
● This is the time that must
▪ be known before the neighbor
▪ is considered down.
● Default time is 4 times
▪ the hello interval.
INTRODUCTION TO OSPF
OSPF 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
INTRODUCTION TO OSPF
Administrative Distance
▪ Default Administrative Distance for OSPF is 110
INTRODUCTION TO OSPF
▪ OSPF Authentication
● Purpose is to encrypt & authenticate routing
information.
● This is an interface specific configuration.
● Routers will only accept routing information from
other routers that have been configured with the
same password or authentication information
TERMINOLOGY
▪ Link: Interface on a router
▪ Link state: Description of an interface and the relationship to its
neighboring routers, including:
▪ - IP address/mask of the interface.
▪ - The type of network it is connected to.
▪ - The routers connected to that network.
▪ - The metric (cost) of that link.
▪ The collection of all the link-states would form a link-state
database.
BASIC OSPF CONFIGURATION
Lab Topology
▪ Topology used for this chapter
▪Discontiguous IP addressing scheme
▪Since OSPF is a classless routing protocol the subnet mask will be
used and configured in.
BASIC OSPF CONFIGURATION
The router ospf command
▪ To enable OSPF on a router use the following command
▪R1(config)#router ospf process-id
▪The Process ID is:
▪ A locally significant number between 1 and 65535
▪ which means it does not have to match other OSPF
routers.
BASIC OSPF CONFIGURATION
▪ OSPF network command
▪-Requires entering: network address and the
▪wildcard mask - the inverse of the subnet mask.
▪The area-id - area-id refers to the OSPF area.
OSPF area is a group of routers that
share link state information.
▪-Example: Router(config-router)#network network-address
wildcard-ask area area-id
;
BASIC OSPF CONFIGURATION
▪ Router ID:
●This is an IP address used to identify
a router.
●There are 3 criteria for assigning the
router ID:
▪ Use IP address configured with OSPF router-
id command:
-This option takes preference over loopback
and physical interface addresses.
▪ Router chooses highest IP address of any
loopback interfaces, this option will be used
only If router-id command is not used.
▪ Router chooses highest IP address on any
active interface, this option is used last only If
no loopback interfaces are configured and no
IP configured with OSPF router ID.
BASIC OSPF CONFIGURATION
OSPF Router ID
▪ Commands used to verify current router ID
●Show ip protocols
●Show ip ospf
●Show ip ospf interface
BASIC OSPF CONFIGURATION
OSPF Router ID
▪ Router ID & Loopback addresses
▪ -Highest loopback address will be used as a router ID if router-id
command isn’t used.
▪ -Advantage of using loopback address:
▪ the loopback interface cannot fail → OSPF stability
▪ The OSPF router-id command
●Introduced in IOS 12.0
●Command syntax
▪ Router(config)#router ospf process-id
▪ Router(config-router)#router-id ip-address
▪ Modifying the Router ID
●Use the command Router#clear ip ospf process
BASIC OSPF CONFIGURATION
Verifying OSPF
▪ Use the show ip ospf command to verify & trouble shoot 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 (shortest path first) trees & routing tables
BASIC OSPF CONFIGURATION
Command Description
Show ip protocols
Displays OSPF process ID,
router ID, networks router
advertising & administrative
distance
Show ip ospf
Displays OSPF process ID,
router ID, OSPF area information
& the last time SPF algorithm
calculated
Show ip ospf interface
Displays hello interval and dead
interval
Verifying OSPF - Additional Commands
BASIC OSPF CONFIGURATION
Examining the routing table
▪ Use the show ip route command to display the routing table
▪-An “O’ at the beginning of a route indicates that the router source is
OSPF
▪-Note OSPF does not automatically summarize at major network
boundaries
OSPF METRIC
▪ OSPF uses cost as the metric for determining the best route
▪-The best route will have the lowest cost
▪-Cost is based on bandwidth of an interface
▪ Cost is calculated using the formula:
▪ Cost =108 / bandwidth
▪-Reference bandwidth
▪ defaults to 100Mbps
▪ can be modified using
▪ auto-cost reference-bandwidth command
OSPF METRIC
▪ COST of an OSPF route
▪Is the accumulated value from one router to the next
OSPF METRIC
▪ Usually the actual speed (Bandwidth) 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
BASIC OSPF CONFIGURATION
Modifying the Cost of a link
▪ Both sides of a serial link should be configured with the same
bandwidth
●Commands used to modify bandwidth value
▪ Bandwidth command
●Example: Router(config-if)#bandwidthbandwidth-kbps
▪ ip ospf cost command – allows you to directly specify interface cost
▪-Example:R1(config)#interface serial 0/0/0
▪ R1(config-if)#ip ospf cost 1562
▪
BASIC OSPF CONFIGURATION
Modifying the Cost of the link
▪ Difference between bandwidth command & the ip ospf cost
command
●Ip ospf cost command
▪ Sets cost to a specific value
●Bandwidth command
▪ Link cost is calculated
OSPF IN MULTIACCESS
NETWORKS
▪ 2 challenges presented by multiaccess networks
● Multiple adjacencies
● Extensive LSA flooding
OSPF IN MULTIACCESS
NETWORKS
▪ Extensive flooding of LSAs
▪ For every LSA sent out there must be an acknowledgement of receipt
sent back to transmitting router.
▪ consequence: lots of bandwidth consumed and chaotic traffic
OSPF IN MULTIACCESS
NETWORKS
▪ Solution to LSA flooding issue is 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 multicast
224.0.0.6 to DR & BDR
● DR forward LSA via multicast address
224.0.0.5 to all other routers
OSPF IN MULTIACCESS
NETWORKSDR/BDR Election Process
▪ DR/BDR elections DO NOT occur in point to point networks
OSPF IN MULTIACCESS
NETWORKS▪ DR/BDR elections will take place on multiaccess networks as
shown below
OSPF IN MULTIACCESS NETWORKS
▪ Criteria for getting elected DR/BDR
1. DR: Router with the highest OSPF interface
priority.
▪ 2. BDR: Router with the second highest
OSPF interface priority.
▪ 3. If OSPF interface priorities are equal, the
▪ highest router ID is used to break the tie.
OSPF IN MULTIACCESS
NETWORKS
▪ Timing of DR/BDR Election
● Occurs as soon as 1st router has its interface enabled on multiaccess
network
▪ When a DR is elected it remains as the DR until one of the following occurs
▪ -The DR fails.
▪ -The OSPF process on the DR fails.
▪ -The multiaccess interface on the DR fails.
OSPF IN MULTIACCESS
NETWORKS▪ Manipulating the election process
▪ -If you want to influence the election of DR & BDR then do one of the
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 no shutdown on the DR,
then the BDR, and then all other routers.
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
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 which
is used to include the static route in the OSPF updates that are being sent
from R1 router.
●Example of default-information originate command
▪ R1(config-router)#default-information originate
MORE OSPF CONFIGURATION
Fine-Tuning OSPF
▪ Since link speeds are getting faster
it may be necessary to change
reference bandwidth values
●Do this using the auto-cost
reference-bandwidth command
●Example:
▪ R1(config-router)#auto-cost
reference-bandwidth 10000
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 between neighbors
COMMON OSPF
CONFIGURATION ISSUES
SUMMARY
SUMMARY
▪ RFC 2328 describes OSPF link state concepts and operations
▪ OSPF Characteristics
●A commonly deployed link state routing protocol
●Uses 5 packet types:
▪ 1: HELLO
▪2: DATABASE DESCRIPTION
▪3: LINK STATE REQUEST
▪4: LINK STATE UPDATE
▪5: LINK STATE ACKNOWLEDGEMENT
▪
SUMMARY
▪ OSPF Characteristics
●Metric = cost
▪ Lowest cost = best path
▪ Configuration
●Enable OSPF on a router using the following command
▪ R1(config)#router ospf process-id
●use the network command to define which interfaces will participate in
a given OSPF process
▪ Router(config-router)#network network-address
wildcard-mask area area-id
SUMMARY
▪ Verifying OSPF configuration
●Use the following commands
▪ show ip protocol
▪ show ip route
▪ show ip ospf interface
▪ show ip ospf neighbor

Mais conteúdo relacionado

Mais procurados (19)

Shubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelayShubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelay
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
Eigrp
EigrpEigrp
Eigrp
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
OSPF Fundamental
OSPF FundamentalOSPF Fundamental
OSPF Fundamental
 
OSPF Configuration
OSPF ConfigurationOSPF Configuration
OSPF Configuration
 
Multi-Area_OSPF_Network_Design
Multi-Area_OSPF_Network_DesignMulti-Area_OSPF_Network_Design
Multi-Area_OSPF_Network_Design
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
 
Configurasi ospf
Configurasi ospfConfigurasi ospf
Configurasi ospf
 
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
OSPF
OSPF OSPF
OSPF
 
Ipv6
Ipv6Ipv6
Ipv6
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
CCNA part 6 igrp,ospf,eigrp
CCNA part 6 igrp,ospf,eigrpCCNA part 6 igrp,ospf,eigrp
CCNA part 6 igrp,ospf,eigrp
 
CCNP Route EIGRP Overview
CCNP Route  EIGRP OverviewCCNP Route  EIGRP Overview
CCNP Route EIGRP Overview
 
Multi-area ospf adjacency on ios-xr
Multi-area ospf adjacency on ios-xrMulti-area ospf adjacency on ios-xr
Multi-area ospf adjacency on ios-xr
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 

Semelhante a Ospf hassan jamal.ppt

CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8Waqas Ahmed Nawaz
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptxserieux1
 
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configurationkecatem465
 
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solutionArnold Derrick Kinney
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9Waqas Ahmed Nawaz
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 10
CCNA (R & S) Module 04 - Scaling Networks - Chapter 10CCNA (R & S) Module 04 - Scaling Networks - Chapter 10
CCNA (R & S) Module 04 - Scaling Networks - Chapter 10Waqas Ahmed Nawaz
 
Лекц 15
Лекц 15Лекц 15
Лекц 15Muuluu
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccnarobertoxe
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44Jisc
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)anilinvns
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)anilinvns
 

Semelhante a Ospf hassan jamal.ppt (20)

Ospf
 Ospf Ospf
Ospf
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
CCNA (R & S) Module 04 - Scaling Networks - Chapter 8
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
 
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
 
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solution
 
ospf-config.pdf
ospf-config.pdfospf-config.pdf
ospf-config.pdf
 
1cospf
1cospf1cospf
1cospf
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
CCNA (R & S) Module 04 - Scaling Networks - Chapter 9
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 10
CCNA (R & S) Module 04 - Scaling Networks - Chapter 10CCNA (R & S) Module 04 - Scaling Networks - Chapter 10
CCNA (R & S) Module 04 - Scaling Networks - Chapter 10
 
Лекц 15
Лекц 15Лекц 15
Лекц 15
 
Allwyn ospf ppt
Allwyn ospf pptAllwyn ospf ppt
Allwyn ospf ppt
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
 
Ospf
OspfOspf
Ospf
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Labs ospf
Labs ospfLabs ospf
Labs ospf
 

Último

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Último (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Ospf hassan jamal.ppt

  • 1. OBJECTIVES▪ Identify and apply the basic OSPF configuration commands ▪ Describe the background and basic features of OSPF ▪ Describe, modify and calculate the metric used by OSPF ▪ Describe the Designated Router/Backup Designated Router (DR/BDR) election process in multiaccess networks ▪ Describe the uses of additional configuration commands in OSPF
  • 3. 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
  • 4. INTRODUCTION TO OSPF OSPF Message Encapsulation: 1.OSPF packet type ▪ There exist 5 types 2.OSPF packet header ▪ Contains - Router ID and area ID and Type code (1- 5) for OSPF packet types 3.IP packet header Contains - Source IP address, Destination IP address, & Protocol field set to 89
  • 5. INTRODUCTION TO OSPF OSPF Message Encapsulation 4.Data link frame header Contains - Source MAC address and Destination MAC address
  • 6. INTRODUCTION TO OSPF OSPF Message Encapsulation: 1.OSPF packet type
  • 7. INTRODUCTION TO OSPF Hello Protocol: ▪ Purpose of OSPF Hello Packet: ▪ Discovers OSPF neighbors & establish adjacencies. ▪ Contains information that is used by multi-access networks (Ethernet) to elect a designated router and a backup designated router (DR and BDR will be discussed later). ▪ Carries the Router ID of the transmitting (Originating) router (Router ID will be discussed later).
  • 8. INTRODUCTION TO OSPF OSPF Hello Packet contents: ▪OSPF Hello Intervals ● Sent every 10 or 30 seconds. ● Usually multicast (224.0.0.5) ▪OSPF Dead Intervals ● This is the time that must ▪ be known before the neighbor ▪ is considered down. ● Default time is 4 times ▪ the hello interval.
  • 9. INTRODUCTION TO OSPF OSPF 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
  • 10. INTRODUCTION TO OSPF Administrative Distance ▪ Default Administrative Distance for OSPF is 110
  • 11. INTRODUCTION TO OSPF ▪ OSPF Authentication ● Purpose is to encrypt & authenticate routing information. ● This is an interface specific configuration. ● Routers will only accept routing information from other routers that have been configured with the same password or authentication information
  • 12. TERMINOLOGY ▪ Link: Interface on a router ▪ Link state: Description of an interface and the relationship to its neighboring routers, including: ▪ - IP address/mask of the interface. ▪ - The type of network it is connected to. ▪ - The routers connected to that network. ▪ - The metric (cost) of that link. ▪ The collection of all the link-states would form a link-state database.
  • 13. BASIC OSPF CONFIGURATION Lab Topology ▪ Topology used for this chapter ▪Discontiguous IP addressing scheme ▪Since OSPF is a classless routing protocol the subnet mask will be used and configured in.
  • 14. BASIC OSPF CONFIGURATION The router ospf command ▪ To enable OSPF on a router use the following command ▪R1(config)#router ospf process-id ▪The Process ID is: ▪ A locally significant number between 1 and 65535 ▪ which means it does not have to match other OSPF routers.
  • 15. BASIC OSPF CONFIGURATION ▪ OSPF network command ▪-Requires entering: network address and the ▪wildcard mask - the inverse of the subnet mask. ▪The area-id - area-id refers to the OSPF area. OSPF area is a group of routers that share link state information. ▪-Example: Router(config-router)#network network-address wildcard-ask area area-id ;
  • 16. BASIC OSPF CONFIGURATION ▪ Router ID: ●This is an IP address used to identify a router. ●There are 3 criteria for assigning the router ID: ▪ Use IP address configured with OSPF router- id command: -This option takes preference over loopback and physical interface addresses. ▪ Router chooses highest IP address of any loopback interfaces, this option will be used only If router-id command is not used. ▪ Router chooses highest IP address on any active interface, this option is used last only If no loopback interfaces are configured and no IP configured with OSPF router ID.
  • 17. BASIC OSPF CONFIGURATION OSPF Router ID ▪ Commands used to verify current router ID ●Show ip protocols ●Show ip ospf ●Show ip ospf interface
  • 18. BASIC OSPF CONFIGURATION OSPF Router ID ▪ Router ID & Loopback addresses ▪ -Highest loopback address will be used as a router ID if router-id command isn’t used. ▪ -Advantage of using loopback address: ▪ the loopback interface cannot fail → OSPF stability ▪ The OSPF router-id command ●Introduced in IOS 12.0 ●Command syntax ▪ Router(config)#router ospf process-id ▪ Router(config-router)#router-id ip-address ▪ Modifying the Router ID ●Use the command Router#clear ip ospf process
  • 19. BASIC OSPF CONFIGURATION Verifying OSPF ▪ Use the show ip ospf command to verify & trouble shoot 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 (shortest path first) trees & routing tables
  • 20. BASIC OSPF CONFIGURATION Command Description Show ip protocols Displays OSPF process ID, router ID, networks router advertising & administrative distance Show ip ospf Displays OSPF process ID, router ID, OSPF area information & the last time SPF algorithm calculated Show ip ospf interface Displays hello interval and dead interval Verifying OSPF - Additional Commands
  • 21. BASIC OSPF CONFIGURATION Examining the routing table ▪ Use the show ip route command to display the routing table ▪-An “O’ at the beginning of a route indicates that the router source is OSPF ▪-Note OSPF does not automatically summarize at major network boundaries
  • 22. OSPF METRIC ▪ OSPF uses cost as the metric for determining the best route ▪-The best route will have the lowest cost ▪-Cost is based on bandwidth of an interface ▪ Cost is calculated using the formula: ▪ Cost =108 / bandwidth ▪-Reference bandwidth ▪ defaults to 100Mbps ▪ can be modified using ▪ auto-cost reference-bandwidth command
  • 23. OSPF METRIC ▪ COST of an OSPF route ▪Is the accumulated value from one router to the next
  • 24. OSPF METRIC ▪ Usually the actual speed (Bandwidth) 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
  • 25. BASIC OSPF CONFIGURATION Modifying the Cost of a link ▪ Both sides of a serial link should be configured with the same bandwidth ●Commands used to modify bandwidth value ▪ Bandwidth command ●Example: Router(config-if)#bandwidthbandwidth-kbps ▪ ip ospf cost command – allows you to directly specify interface cost ▪-Example:R1(config)#interface serial 0/0/0 ▪ R1(config-if)#ip ospf cost 1562 ▪
  • 26. BASIC OSPF CONFIGURATION Modifying the Cost of the link ▪ Difference between bandwidth command & the ip ospf cost command ●Ip ospf cost command ▪ Sets cost to a specific value ●Bandwidth command ▪ Link cost is calculated
  • 27. OSPF IN MULTIACCESS NETWORKS ▪ 2 challenges presented by multiaccess networks ● Multiple adjacencies ● Extensive LSA flooding
  • 28. OSPF IN MULTIACCESS NETWORKS ▪ Extensive flooding of LSAs ▪ For every LSA sent out there must be an acknowledgement of receipt sent back to transmitting router. ▪ consequence: lots of bandwidth consumed and chaotic traffic
  • 29. OSPF IN MULTIACCESS NETWORKS ▪ Solution to LSA flooding issue is 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 multicast 224.0.0.6 to DR & BDR ● DR forward LSA via multicast address 224.0.0.5 to all other routers
  • 30. OSPF IN MULTIACCESS NETWORKSDR/BDR Election Process ▪ DR/BDR elections DO NOT occur in point to point networks
  • 31. OSPF IN MULTIACCESS NETWORKS▪ DR/BDR elections will take place on multiaccess networks as shown below
  • 32. OSPF IN MULTIACCESS NETWORKS ▪ Criteria for getting elected DR/BDR 1. DR: Router with the highest OSPF interface priority. ▪ 2. BDR: Router with the second highest OSPF interface priority. ▪ 3. If OSPF interface priorities are equal, the ▪ highest router ID is used to break the tie.
  • 33. OSPF IN MULTIACCESS NETWORKS ▪ Timing of DR/BDR Election ● Occurs as soon as 1st router has its interface enabled on multiaccess network ▪ When a DR is elected it remains as the DR until one of the following occurs ▪ -The DR fails. ▪ -The OSPF process on the DR fails. ▪ -The multiaccess interface on the DR fails.
  • 34. OSPF IN MULTIACCESS NETWORKS▪ Manipulating the election process ▪ -If you want to influence the election of DR & BDR then do one of the 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 no shutdown on the DR, then the BDR, and then all other routers.
  • 35. 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
  • 36. 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 which is used to include the static route in the OSPF updates that are being sent from R1 router. ●Example of default-information originate command ▪ R1(config-router)#default-information originate
  • 37. MORE OSPF CONFIGURATION Fine-Tuning OSPF ▪ Since link speeds are getting faster it may be necessary to change reference bandwidth values ●Do this using the auto-cost reference-bandwidth command ●Example: ▪ R1(config-router)#auto-cost reference-bandwidth 10000
  • 38. 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 between neighbors
  • 41. SUMMARY ▪ RFC 2328 describes OSPF link state concepts and operations ▪ OSPF Characteristics ●A commonly deployed link state routing protocol ●Uses 5 packet types: ▪ 1: HELLO ▪2: DATABASE DESCRIPTION ▪3: LINK STATE REQUEST ▪4: LINK STATE UPDATE ▪5: LINK STATE ACKNOWLEDGEMENT ▪
  • 42. SUMMARY ▪ OSPF Characteristics ●Metric = cost ▪ Lowest cost = best path ▪ Configuration ●Enable OSPF on a router using the following command ▪ R1(config)#router ospf process-id ●use the network command to define which interfaces will participate in a given OSPF process ▪ Router(config-router)#network network-address wildcard-mask area area-id
  • 43. SUMMARY ▪ Verifying OSPF configuration ●Use the following commands ▪ show ip protocol ▪ show ip route ▪ show ip ospf interface ▪ show ip ospf neighbor