Dynamic Routing: OSPF & BGP

Technology Fundamentals

Dynamic Routing: OSPF & BGP

2 min readPublished 22 Jul 2026

Track your progress. Sign in to mark this guide complete and build your Job Readiness Score.

Static routes are fine for small networks, but larger networks use dynamic routing protocols so routers learn and adapt routes automatically. OSPF runs inside organisations; BGP runs the internet.

Interactive explainer

How OSPF Learns Routes

A link-state interior protocol: neighbours, LSAs and shortest-path first.

11. Discover neighbours22. Exchange LSAs33. Run SPF (Dijkstra)44. Install best routes

Tap or hover a part to learn more.

1. Discover neighbours

Hello packets.

OSPF routers send Hello packets to find directly-connected neighbours in the same area and form adjacencies. OSPF is a link-state Interior Gateway Protocol (IGP).

Check your understanding

1. What type of routing protocol is OSPF?

2. What metric does OSPF use?

Practise this in AI Interview™

The core idea

  • OSPF is a link-state interior gateway protocol (IGP) using cost as its metric and areas for scale.
  • BGP is a path-vector exterior protocol (EGP) that exchanges routes between autonomous systems — it runs the internet.
  • Static routing is manual; dynamic routing adapts automatically when links change.
Interactive explainer

How BGP Runs the Internet

A path-vector exterior protocol exchanging routes between Autonomous Systems.

11. Establish peering22. Advertise prefixes33. Select best path44. Propagate & withdraw

Tap or hover a part to learn more.

1. Establish peering

eBGP / iBGP over TCP 179.

BGP routers form TCP peering sessions (port 179) between Autonomous Systems (eBGP) or within one (iBGP). BGP is the path-vector Exterior Gateway Protocol that runs the internet.

Check your understanding

1. What does BGP exchange routes between?

2. How does BGP prevent routing loops?

Practise this in AI Interview™

How it works in practice

  • OSPF is typical inside an enterprise; BGP is used by ISPs and for multi-homing.
  • OSPF converges quickly within an area; BGP prioritises policy and stability.
  • Autonomous System (AS) numbers identify networks in BGP.

Common mistakes

  • Confusing interior (OSPF) with exterior (BGP) protocols.
  • Expecting to run BGP inside a small LAN.
  • Ignoring convergence behaviour when a link fails.

Why it matters for your career

OSPF and BGP are central to CCNA/CCNP and to any serious network engineering role — knowing where each fits is a strong signal.

Technical interview questions

  1. What is the difference between an IGP and an EGP?
  2. What metric does OSPF use?
  3. What protocol runs the internet's routing?

Practice questions

  1. Which protocol runs the internet? (BGP)
  2. What type of protocol is OSPF? (Link-state IGP)
  3. What identifies networks in BGP? (AS number)

Where this fits in your networking journey

This is one concept in the Networking Fundamentals path, which leads into CompTIA Network+ and Cisco CCNA. When this clicks, review Routing and continue with DNS & DHCP.

Practise with Missiora

Interview Intelligence

How this topic actually shows up in interviews — and how to demonstrate you understand it.

Why employers ask about this

Dynamic routing signals depth; interviewers use OSPF/BGP to gauge how far your networking understanding goes.

Technical questions
What is the difference between OSPF and BGP?+

OSPF is an interior (within an organisation) link-state protocol; BGP is the exterior path-vector protocol that runs the internet between Autonomous Systems.

Why use dynamic routing?+

It adapts automatically to changes and scales far better than manual static routes.

Behavioural questions
Explain 'the protocol that runs the internet' simply.+

Describe BGP exchanging reachability between networks worldwide.

Real-world scenarios
“A new network isn't reachable after being added.”+

Expected answer: Check whether it's advertised/learned by the routing protocol and present in the routing table.

Common candidate mistakes
  • Confusing interior (OSPF) with exterior (BGP) protocols.
  • Thinking OSPF uses hop count (it uses cost).

Employability Intelligence

Where this knowledge takes you — the jobs, skills and certifications it feeds into.

Relevant roles
Network EngineerNetwork Administrator
Skills you're proving
OSPFBGPDynamic routing
Recommended certifications
Career progression

Network Administrator → Network Engineer → Senior Network Engineer.

What employers expect

That you understand how routes are learned at scale.

Frequently asked questions

What is dynamic routing (ospf & bgp) in networking?

Static routes are fine for small networks, but larger networks use dynamic routing protocols so routers learn and adapt routes automatically. OSPF runs inside organisations; BGP runs the internet.

What is the difference between an IGP and an EGP?

OSPF is a link-state interior gateway protocol (IGP) using cost as its metric and areas for scale. BGP is a path-vector exterior protocol (EGP) that exchanges routes between autonomous systems — it runs the internet.

Do I need this for Network+ or CCNA?

Yes — Dynamic Routing (OSPF & BGP) is a core concept in CompTIA Network+ and Cisco CCNA. Understanding it here first makes the certification material much easier.

Related guides

Practise what you've learned

Turn this guide into real, evidenced progress

Missiora helps you measure, improve and evidence the capabilities employers actually value — start with the tools best suited to this topic.

M
Published by
Missiora

Missiora is an AI Employability Intelligence platform. Our resources are researched and reviewed by the Missiora team to help you measure, improve and prove your career readiness.