SlideShare a Scribd company logo
CCNA 3 Week 2
Link State Protocols
OSPF
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Distance Vector vs Link State
Distance Vector
– Copies Routing Table to
neighbours
– Updates frequently
– Distance metrics e.g. hop count
– Views network from prospective
of neighbours
– Slow to converge
– Loops a problem
– Easy to configure
– Consumes bandwidth
Link State
– Uses shortest path
– Updates event triggered
– Sends link-state packets to all
– Common view of network
– Fast convergence
– Less vulnerable to loops
– Harder to Configure
– Requires more memory and
CPU power
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Link State Features
Router learn network info from ALL routers in a net
Routers multicast frequent hello packets
containing details of directly connected networks
Link-State Advertisments keep track of other
routers
Information used by router to calculate Shortest
Path to each network
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Example Topology
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Maintaining Routing Information
When a failure occurs, LSAs are multicast
– Routers forward multicasts on all ports except receiver
Each Link-State router updates its topology database with
new network state and recalculates
A link = an interface
Link-State info includes: IP Addr & subnet, net type,
connected routers
Best routes calculated from topology database and placed
in routing table
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Network View
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Advantages & Disadvantages
Advantages
– Fast convergence: changes
reported at once
– Robust against loops
– Routers all know topology
– Link-state packets
sequenced and aged
– Careful design minimises
link-state table size
Disadvantages
– Significant RAM and CPU
– Network design follows strict
rules
– Network admin must be
knowledgable (you guys!)
– Initial flooding impedes
performance
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Comparison
After initial flood, routing table only changes if net
conditions change
– The partial update only contains information about links that have
changed.
– Reduces network load, faster propagation of changes
Link-state protocols support CIDR and VLSM.
In fact, link-state protocols generally outperform distance
vector protocols on any size network.
– Not always implemented due to hardware requirements and
admin expertise
OSPF
Open Shortest Path First
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Introduction
Open non-proprietary standard protocol for TCP/IP
Widely used in industry
Preferable to RIP v1 or v2 because metrics are
better than simple hop count
Uses a hierarchical approach, with different areas
defined within a network
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
OSPF Terminology
Link: an interface on a routerLink-state: The status of the link between two routersTopological Database: The status of all routers on the
network
Area: each router within an area has the same link-state
information
Cost: assigned to each link, based on bandwidthRouting Table: generated when routing algorithm runs on
topological database
Adjacency Database: List of routers communicating directlyDesignated Router (DR): Elected to represent all routers
on the network
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
OSPF vs Distance Vector
Speed of convergence
Support for Variable Length Subnet Mask (VLSM)
Network size
Path selection
Grouping of members
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
SPF Algorithm
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
SPF Algorithm
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
OSPF Network Types
OSPF interfaces automatically recognize 3 types
of networks:
– Broadcast multi-access, such as Ethernet
– Point-to-point networks
– Nonbroadcast multi-access (NBMA), e.g. Frame Relay
Not desirable for every router to be adjacent to
every other in a broadcast network – overhead
Pick Designated Router (and Backup)
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Use of Designated Router
Routers send their updates to the designated
router (Multicast to 224.0.0.6)
Designated Router updates all routers on network
using 224.0.0.5
As Designated Router is single point of failure,
Backup is also established
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Hello Packets
Small layer 3 packets
Sent every 10 seconds to multicast 224.0.0.5
Used to ensure neighbours still running
Protocol used in election of DR
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Protocol Steps
Use hello packets to announce selves
Develop adjacency relationships with neighbours
Use LSA and LSU packets to learn about topology
Calculate routing tables from topology
If changes occur, recalculate
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Configure
R1(config)# router ospf <proc_id>
R1(config-router)# network <addr> <wildcard>
area <area>
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Need to add loopback address
No active interfaces means router drops out of
OSPF
Logical loopback keeps process available
If present, loopback used as router ID
R1(config)# interface loopback 1
R1(config-if)# ip address <addr> <subnet>
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Link costs
OSPF uses 108
/bandwidth as link cost
Set bandwidth of interface if needed:
R1(config-if)# bandwidth 56
May be necessary if mixed network uses other
calculations
R1(config-if)# ip ospf cost <number>
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Authentication
Can require common password for updates
May be encrypted using MD5
See lab for details
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Timers
OSPF routers must use the same timer values
Router(config-if)#ip ospf hello-intervalseconds
Router(config-if)#ip ospf dead-intervalseconds
Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton
Default Route
On the router connected to default connection:
Router(config)#ip route 0.0.0.0 0.0.0.0 [interface |
next-hop address ]
Must then instruct router to propagate default route
Router(config-router)#default-information
originate

More Related Content

PPTX
Introduction to Data link layer
PPTX
IEEE 802.11 Project
PPT
network topologies and access methods
PPTX
Et3003 sem2-1314-3 ethernets
PPT
Mac 802.11
PDF
Mobile Ad-hoc and Sensor Networks
PPTX
Performance analysis of CSMA/CA and TDMA MAC protocols in Wireless Mesh Netw...
PPT
Mac protocols
Introduction to Data link layer
IEEE 802.11 Project
network topologies and access methods
Et3003 sem2-1314-3 ethernets
Mac 802.11
Mobile Ad-hoc and Sensor Networks
Performance analysis of CSMA/CA and TDMA MAC protocols in Wireless Mesh Netw...
Mac protocols

What's hot (20)

PPSX
Self-Configuration and Self-Optimization Network
PPTX
Wireless LANs(IEEE802.11) Architecture
PDF
Mobile Ad-hoc and Sensor Networks
PDF
PPT
IEEE 802.11
PDF
Lte rrc-connection-setup-messaging
PPT
Chapter 2 -_lan_network_design - Network Design
PPT
12 wireless la-ns
PPT
high speed network
PPTX
AODV (adhoc ondemand distance vector routing)
PDF
802.15.5 mesh topology
PDF
Ethernet Frames Explained
PDF
Analysis of Packet Loss Rate in Wireless Sensor Network using LEACH Protocol
PPTX
Token bus
PPTX
Wired LANs
DOCX
An access point based fec mechanism for video transmission over wireless la ns
PDF
HIGH SPEED NETWORKS
PPTX
Network Fundamentals: Ch9 - Ethernet
PDF
802.11 Protocol Map
PPT
Iso layer detail
Self-Configuration and Self-Optimization Network
Wireless LANs(IEEE802.11) Architecture
Mobile Ad-hoc and Sensor Networks
IEEE 802.11
Lte rrc-connection-setup-messaging
Chapter 2 -_lan_network_design - Network Design
12 wireless la-ns
high speed network
AODV (adhoc ondemand distance vector routing)
802.15.5 mesh topology
Ethernet Frames Explained
Analysis of Packet Loss Rate in Wireless Sensor Network using LEACH Protocol
Token bus
Wired LANs
An access point based fec mechanism for video transmission over wireless la ns
HIGH SPEED NETWORKS
Network Fundamentals: Ch9 - Ethernet
802.11 Protocol Map
Iso layer detail
Ad

Similar to Ccna 3 week 2 (20)

PDF
CSC427_Week_11.pdf
PDF
Brkmpl 2333
PDF
Ospf
PPTX
Routing Protocols
PPT
Mpls Traffic Engineering ppt
PDF
All in one q & ans
PDF
Mikrotik load balansing
PPTX
Chapter -1 Basic Network Routing Concepts.pptx
DOC
Ccna 2 chapter 10 v4.0 answers 2011
PPTX
en_ROUTE_v7_Ch01 (3)_Cisco ccna v7..pptx
PPTX
CCNP ROUTE V7 CH1
PPTX
PPTX
PPT
MPLS (Multi-Protocol Label Switching)
PDF
MPLS Presentation
PDF
PLNOG 5: Emil Gągała - ADVANCED VPLS
PPT
Routing Protocols
PPT
Comprehensive survey on routing protocols for IoT
PPTX
CCNA3 Verson6 Chapter5
CSC427_Week_11.pdf
Brkmpl 2333
Ospf
Routing Protocols
Mpls Traffic Engineering ppt
All in one q & ans
Mikrotik load balansing
Chapter -1 Basic Network Routing Concepts.pptx
Ccna 2 chapter 10 v4.0 answers 2011
en_ROUTE_v7_Ch01 (3)_Cisco ccna v7..pptx
CCNP ROUTE V7 CH1
MPLS (Multi-Protocol Label Switching)
MPLS Presentation
PLNOG 5: Emil Gągała - ADVANCED VPLS
Routing Protocols
Comprehensive survey on routing protocols for IoT
CCNA3 Verson6 Chapter5
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
20250228 LYD VKU AI Blended-Learning.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Review of recent advances in non-invasive hemoglobin estimation
MIND Revenue Release Quarter 2 2025 Press Release
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Ccna 3 week 2

  • 1. CCNA 3 Week 2 Link State Protocols OSPF
  • 2. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Distance Vector vs Link State Distance Vector – Copies Routing Table to neighbours – Updates frequently – Distance metrics e.g. hop count – Views network from prospective of neighbours – Slow to converge – Loops a problem – Easy to configure – Consumes bandwidth Link State – Uses shortest path – Updates event triggered – Sends link-state packets to all – Common view of network – Fast convergence – Less vulnerable to loops – Harder to Configure – Requires more memory and CPU power
  • 3. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Link State Features Router learn network info from ALL routers in a net Routers multicast frequent hello packets containing details of directly connected networks Link-State Advertisments keep track of other routers Information used by router to calculate Shortest Path to each network
  • 4. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Example Topology
  • 5. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Maintaining Routing Information When a failure occurs, LSAs are multicast – Routers forward multicasts on all ports except receiver Each Link-State router updates its topology database with new network state and recalculates A link = an interface Link-State info includes: IP Addr & subnet, net type, connected routers Best routes calculated from topology database and placed in routing table
  • 6. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Network View
  • 7. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Advantages & Disadvantages Advantages – Fast convergence: changes reported at once – Robust against loops – Routers all know topology – Link-state packets sequenced and aged – Careful design minimises link-state table size Disadvantages – Significant RAM and CPU – Network design follows strict rules – Network admin must be knowledgable (you guys!) – Initial flooding impedes performance
  • 8. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Comparison After initial flood, routing table only changes if net conditions change – The partial update only contains information about links that have changed. – Reduces network load, faster propagation of changes Link-state protocols support CIDR and VLSM. In fact, link-state protocols generally outperform distance vector protocols on any size network. – Not always implemented due to hardware requirements and admin expertise
  • 10. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Introduction Open non-proprietary standard protocol for TCP/IP Widely used in industry Preferable to RIP v1 or v2 because metrics are better than simple hop count Uses a hierarchical approach, with different areas defined within a network
  • 11. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton OSPF Terminology Link: an interface on a routerLink-state: The status of the link between two routersTopological Database: The status of all routers on the network Area: each router within an area has the same link-state information Cost: assigned to each link, based on bandwidthRouting Table: generated when routing algorithm runs on topological database Adjacency Database: List of routers communicating directlyDesignated Router (DR): Elected to represent all routers on the network
  • 12. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton OSPF vs Distance Vector Speed of convergence Support for Variable Length Subnet Mask (VLSM) Network size Path selection Grouping of members
  • 13. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton SPF Algorithm
  • 14. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton SPF Algorithm
  • 15. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton OSPF Network Types OSPF interfaces automatically recognize 3 types of networks: – Broadcast multi-access, such as Ethernet – Point-to-point networks – Nonbroadcast multi-access (NBMA), e.g. Frame Relay Not desirable for every router to be adjacent to every other in a broadcast network – overhead Pick Designated Router (and Backup)
  • 16. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Use of Designated Router Routers send their updates to the designated router (Multicast to 224.0.0.6) Designated Router updates all routers on network using 224.0.0.5 As Designated Router is single point of failure, Backup is also established
  • 17. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Hello Packets Small layer 3 packets Sent every 10 seconds to multicast 224.0.0.5 Used to ensure neighbours still running Protocol used in election of DR
  • 18. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Protocol Steps Use hello packets to announce selves Develop adjacency relationships with neighbours Use LSA and LSU packets to learn about topology Calculate routing tables from topology If changes occur, recalculate
  • 19. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Configure R1(config)# router ospf <proc_id> R1(config-router)# network <addr> <wildcard> area <area>
  • 20. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Need to add loopback address No active interfaces means router drops out of OSPF Logical loopback keeps process available If present, loopback used as router ID R1(config)# interface loopback 1 R1(config-if)# ip address <addr> <subnet>
  • 21. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Link costs OSPF uses 108 /bandwidth as link cost Set bandwidth of interface if needed: R1(config-if)# bandwidth 56 May be necessary if mixed network uses other calculations R1(config-if)# ip ospf cost <number>
  • 22. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Authentication Can require common password for updates May be encrypted using MD5 See lab for details
  • 23. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Timers OSPF routers must use the same timer values Router(config-if)#ip ospf hello-intervalseconds Router(config-if)#ip ospf dead-intervalseconds
  • 24. Copyright © 2005 University of BoltonCopyright © 2005 University of Bolton Default Route On the router connected to default connection: Router(config)#ip route 0.0.0.0 0.0.0.0 [interface | next-hop address ] Must then instruct router to propagate default route Router(config-router)#default-information originate