S1E8 - Routing Protocols

title: S1E8 - Routing Protocols
author: Nicholas Morrison
draft: false
tags: [network, workshop, routing]
categories: [workshop]
noindex: true

What is Routing?

A router making a decision
A router making a decision

CIDR: Classless Inter-Domain Routing

CIDR examples: /24

An IP address with a 24-bit network mask
An IP address with a 24-bit network mask

CIDR examples: /16

An IP address with a 16-bit network mask
An IP address with a 16-bit network mask

CIDR examples: /8

An IP address with a 8-bit network mask
An IP address with a 8-bit network mask

… what is routing?

Two different networks
Two different networks

More routers

Two networks with three routers between them
Two networks with three routers between them

Static routes

Two networks with three routers between them
Two networks with three routers between them

We can help the routers with static routes to get to 192.168.20.0/24:

r1: ip route 192.168.20.0/24 10.0.0.2
r2: ip route 192.168.20.0/24 10.1.1.2

.. and for the way back to 192.168.10.0/24:

r3: ip route 192.168.10.0/24 10.1.1.1
r2: ip route 192.168.10.0/24 10.0.0.1

The problem with static routes

The solution: Routing Protocols!

Lots of routers
Lots of routers

So many protocols

AS (Autonomous System)

RIP (the Routing Information Protocol)

RIP path selection

Lots of routers
Lots of routers
r1 r2       = 2 hops   <- RIP chooses this path
r1 r3 r4 r2 = 4 hops
r1 r5 r6 r2 = 4 hops

OSPF (Open Shortest Path First), ISIS (Intermediate System to Intermediate System)

OSPF, ISIS path selection

Lots of routers
Lots of routers
r1 r2       = 1000
r1 r3 r4 r2 = 3      <- OSPF chooses this path 
r1 r5 r6 r2 = 12

BGP (the Border Gateway Protocol)

BGP path selection

BGP networks
BGP networks
100 800 1000    = 3   <- BGP chooses this path
100 420 69 1000 = 4

Which one to choose?

We are going to learn all of these protocols.

Questions?