SlideShare une entreprise Scribd logo
1  sur  39
Télécharger pour lire hors ligne
Open Shortest Path First
FrOSCon 13 Network Track
Falk Stern, Maximilian Wilhelm
1 / 39
Agenda
1. Who's who
2. Static Routing
3. Dynamic Routing
1. RIP - Distance Vector
2. OSPF - Link State Routing
4. OSPF on Linux (Bird)
5. OSPF on Vendor Hardware
6. Summary
2 / 39
Who's who Falk Stern
Full Stack Infrastructure Engineer
IPv6 fanboy
Runs his own Kubernetes cluster in his basement
Consultant @ Profi Engineering Systems AG
Contact
@wrf42
falk@fourecks.de
3 / 39
Who's who Maximilian Wilhelm
Networker
OpenSource Hacker
Fanboy of
(Debian) Linux
ifupdown2
Occupation:
By day: Senior Infrastructure Architect, Uni Paderborn
By night: Infrastructure Archmage, Freifunk Hochstift
In between: Freelance Solution Architect for hire
Contact
@BarbarossaTM
max@sdn.clinic
4 / 39
Who's who
Theory
Problem statement
Consider the following network
AS39225
CoreBorder
Internet
br-01 cr-E cr-A
cr-D cr-B
cr-C
dr-02
5 / 39
Who's who
Theory
Static Routing
Every host on the network has to be told how to reach different subnets
Everything has to be configured by hand
Work scales exponentially
If you miss a system, it doesn't work
Don't do this
6 / 39
Who's who
Theory
Dynamic Routing
Systems propagate their routing information to other systems
Paths to new networks are added automatically
Only initial configuration required when adding a router
Two types of routing protocols
Interior Gateway Protocols (IGP)
RIP
OSPF
IS-IS
EIGRP
Exterior Gateway Protocols (EGP)
BGP
7 / 39
Who's who
Theory
Distance Vector
Routers always send their complete routing table with increased metrics
Metrics are counted to infinity where infinity = 15
Example: Routing Information Protocol (RIP)
8 / 39
Who's who
Theory
Link State Routing
In a hierarchical area, routers only send their linkstates
Between areas, linkstates are summarized
Every router calculates its own routing table, based on received LSAs*
LSAs include metrics, bandwidth or other information
Metrics are calculated based on interface costs
Examples:
Open Shortest Path First Protocol (OSPF)
Intermediate System to Intermediate System (IS-IS)
Paths are calculated with the Dijkstra algorithm
https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
*Link State Advertisments 9 / 39
Who's who
Theory
OSPF
Open Shortest Path First
10 / 39
Who's who
Theory
OSPF
What is OSPF?
Open Source implementation of a Link State Routing Protocol
OSPF v2
Defined in RFC1247
Supports only IPv4
OSPF v3
Defined in RFC5838 and RFC6969
Supports IPv4 and IPv6 but requires IPv6 to work
Implemented in all major routing suites and vendors
Interoperable
Uses fixed multicast addresses
224.0.0.5 (ospf-all.mcast.net)
224.0.0.6 (ospf-dsig.mcast.net)
11 / 39
Who's who
Theory
OSPF
Statemachine
Image stolen from firewall.cx
12 / 39
Who's who
Theory
OSPF
Roles
Designated Router (DR) / Backup Designated Router (BDR)
The DR synchronizes all LSAs in a broadcast network, the BDR is it's backup
BDR takes over when DR fails and a new BDR is elected
Originates LSAs to other areas on behalf of the network
13 / 39
Who's who
Theory
OSPF
Roles
Area Border Router (ABR)
Has interfaces in at least 2 areas
Autonomous System Boundary Router (ASBR)
Has interfaces outside the AS
14 / 39
Who's who
Theory
OSPF
Link State Advertisements
Type 1 - Represents a router
Type 2 - Represents the pseudonode (designated router) for a multiaccess link
Type 3 - A network link summary (internal route)
Type 4 - Represents an ASBR
Type 5 - A route external to the OSPF domain
Type 7 - Used in NSSA in place of a type 5 LSA
15 / 39
Who's who
Theory
OSPF
Areas
OSPF Networks can be split into multiple areas
Area 0 defined as backbone area
Each area has to be connected to area 0
If it can't be connected to area 0, you have to define virtual links
Traffic between areas always traverses area 0
Keep it simple: no need for multiple areas with less than 60 routers
Area 0
CoreBorder
Internet
br-01 cr-E cr-A
cr-D cr-B
cr-C
ASBR
dr-02
16 / 39
Who's who
Theory
OSPF
Standard area
Image stolen from http://packetlife.net with permission
17 / 39
Who's who
Theory
OSPF
Stub area
Image stolen from http://packetlife.net with permission
18 / 39
Who's who
Theory
OSPF
Not so stubby area
Image stolen from http://packetlife.net with permission
19 / 39
Who's who
Theory
OSPF
Totally stubby area
Image stolen from http://packetlife.net with permission
20 / 39
Who's who
Theory
OSPF
Route Types
1. Intra-Area (O)
2. Inter-Area (O IA)
3. External Type 1 (E1)
4. NSSA External Type 1 (N1)
5. External Type 2 (E2)
6. NSSA External Type 2 (N2)
Routes are preferred in this order as of RFC3101
21 / 39
Who's who
Theory
OSPF
Linux OSPF on Linux
22 / 39
Who's who
Theory
OSPF
Linux
Reminder: Our topology
Area 0
CoreBorder
Internet
br-01 cr-E cr-A
cr-D cr-B
cr-C
ASBR
dr-02
23 / 39
Who's who
Theory
OSPF
Linux
OSPF on Linux / Bird
Some Routing Daemon required
We'll use Bird Internet Routing Daemon (Bird)
Implements OSPF & BGP
One daemon for IPv4, one for IPv6
Configured via /etc/bird/bird{,6}.conf
Controlled by birdc / birdc6 CLI tool
http://bird.network.cz/
Use version >= 1.6.3
24 / 39
Who's who
Theory
OSPF
Linux
Bird con guration (common)
# /etc/bird/bird6.conf
# ID of this router (32bit value) - usually it's the loopback Legacy-IP
router id 194.107.207.0;
# This pseudo-protocol watches all interface up/down events.
protocol device {
scan time 10; # Scan interfaces every 10 seconds
}
protocol kernel {
# learn; # Learn all alien routes from the kernel
# persist; # Don't remove routes on bird shutdown
import none; # Don't import any route from the kernel into bird
export all; # Export all routers from bird into kernel routing table
# kernel table 5; # Kernel table to synchronize with (default: main)
}
# Read further config snippets for IPv6 daemon
include "/etc/bird/bird6.d/*.conf";
25 / 39
Who's who
Theory
OSPF
Linux
Bird con guration (OSPF IPv4)
#
# /etc/bird/bird.d/ospf.conf
#
protocol ospf IGP {
import all;
export none;
# Backbone Area
area 0 {
# Use Loopback as passive interface
interface "lo" {
stub yes;
};
# X-Link cr-E
interface "eth1";
};
}
26 / 39
Who's who
Theory
OSPF
Linux
Bird con guration (OSPF IPv6/simple)
#
# /etc/bird/bird6.d/ospf.conf
#
protocol direct lo_v6 {
interface "lo";
}
protocol ospf IGP {
import all;
export where proto = "lo_v6";
area 0 {
interface "lo" {
stub yes;
};
# X-Link cr-E
interface "eth1";
};
}
27 / 39
Who's who
Theory
OSPF
Linux
Bird con guration (OSPF IPv6/Adv.)
#
# /etc/bird/bird6.d/ospf.conf
#
protocol direct lo_v6 {
interface "lo";
}
protocol ospf IGP {
import all;
export filter {
if proto = "lo_v6" then {
ospf_metric1 = 100;
accept;
}
};
area 0 {
interface "lo" {
stub yes;
};
# X-Link cr-E
interface "eth1";
};
}
28 / 39
Who's who
Theory
OSPF
Linux
Bird con guration management
Bird daemon can be controlled by birdc6 (or birdc respectivly)
br-01.in.fc13.sdn.clinic:~# birdc6
BIRD 1.6.3 ready.
bird>
Interactive shell allows shortcuts and TAB completion
Use ? for help
Commands can be given on shell command line, too
br-01.in.fc13.sdn.clinic:~# birdc6 "show route ::/0"
BIRD 1.6.3 ready.
bird> show route ::/0
::/0 via 2a03:2260:0:1aa::1 on ... [as201701_a 2018-08-17] * (100) [AS201701i]
via 2a03:2260:0:1ab::1 on ... [as201701_b 2018-08-19] (100) [AS201701i]
29 / 39
Who's who
Theory
OSPF
Linux
Bird con guration management
Useful commands
# Reload configuration from disk
configure
# Show interfaces configured for OSPF
show ospf interfaces
# Show OSPF neighbors and their state
show ospf neighbors
# Show OSPF link state database
show ospf lsadb
30 / 39
Who's who
Theory
OSPF
Linux
Bird con guration management
# Display route(s)
show route [all] [primary]
show route for <prefix> all
# Show configured protocols with their state (OSPF, direct, static, kernel...)
show protocols
# Show routes of a specific protocol
show route protocol <protocol>
# Count number of prefixes
show route [protocol <protocol>] count [primary]
31 / 39
Who's who
Theory
OSPF
Linux
Let's do this live!
Area 0
CoreBorder
Internet
br-01 cr-E cr-A
cr-D cr-B
cr-C
ASBR
dr-02
32 / 39
Who's who
Theory
OSPF
Linux
Vendors
And now about vendor OSPF con g (Cisco IOS)
! Legacy-IP
router ospf 1
! Log if things happen
log-adjacency-changes
! By default we don't talk OSPF to neighbors
passive-interface default
! On these interfaces we do
no passive-interface GigabitEthernet1/0/1
no passive-interface GigabitEthernet1/0/2
! IP
! Explicitly enable IPv6 routing
ipv6 unicast-routing
ipv6 router ospf 1
log-adjacency-changes
passive-interface default
no passive-interface GigabitEthernet1/0/1
no passive-interface GigabitEthernet1/0/2
33 / 39
Who's who
Theory
OSPF
Linux
Vendors
And now about vendor OSPF con g (Cisco IOS)
interface Loopback0
ip address 194.107.207.7 255.255.255.255
ip ospf 1 area 0
ipv6 enable
ipv6 address 2A07:ED07:FC13:FFFF::7/128
ipv6 ospf 1 area 0
!
interface GigabitEthernet1/0/1
description -> cr-A
no switchport
ip address 194.107.207.37 255.255.255.254
ip ospf 1 area 0
ipv6 enable
ipv6 address 2A07:ED07:FC13:FE05::2/126
ipv6 ospf 1 area 0
!
interface GigabitEthernet1/0/2
description cr-B
no switchport
ip address 194.107.207.35 255.255.255.254
ip ospf 1 area 0
ipv6 enable
ipv6 ospf 1 area 0
34 / 39
Who's who
Theory
OSPF
Linux
Vendors
And now about vendor OSPF con g (Cisco IOS)
IPv6, the second class citizen...
dr-02.in.fc13.sdn.cl(config)#sdm prefer dual-ipv4-and-ipv6 routing
Changes to the running SDM preferences have been stored, but cannot take effect
until the next reload.
Use 'show sdm prefer' to see what SDM preference is currently active.
dr-02.in.fc13.sdn.cl(config)#ipv6 router ospf 1
% IPv6 routing not enabled
dr-02.in.fc13.sdn.cl(config)#ipv6 unicast-routing
dr-02.in.fc13.sdn.cl(config)#ipv6 router ospf 1
dr-02.in.fc13.sdn.cl(config-rtr)#
dr-02.in.fc13.sdn.cl(config-if)#ipv6 ospf 1 area 0
OSPFv3: No IPV6 enabled on this interface
dr-02.in.fc13.sdn.cl(config-if)#ipv6 enable
dr-02.in.fc13.sdn.cl(config-if)#ipv6 ospf 1 area 0
dr-02.in.fc13.sdn.cl(config-if)#
35 / 39
Who's who
Theory
OSPF
Linux
Takeaways
Key takeaways
36 / 39
Who's who
Theory
OSPF
Linux
Takeaways
Key takeaways
Don't do static routing
OSPF is a go-to IGP
It's interoperable and platform independent
Use only Area 0 unless you REALLY need more
Bird is a versatile multi platform routing daemon
37 / 39
Who's who
Theory
OSPF
Linux
Takeaways
Links
Further Reading
https://www.youtube.com/watch?v=aPtr43KHBGk
Routing TCP/IP Volume I - Jeff Doyle & Jennifer DeHaven Carroll, 2005
https://packetlife.net/
38 / 39
Who's who
Theory
OSPF
Linux
Takeaways
Links
Questions
Questions?
39 / 39

Contenu connexe

Tendances

Ubuntu an absolute beginners guide
Ubuntu an absolute beginners guideUbuntu an absolute beginners guide
Ubuntu an absolute beginners guideCOMSATS
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linuxVarnnit Jain
 
Microservices Network Architecture 101
Microservices Network Architecture 101Microservices Network Architecture 101
Microservices Network Architecture 101Cumulus Networks
 
netconf, restconf, grpc_basic
netconf, restconf, grpc_basicnetconf, restconf, grpc_basic
netconf, restconf, grpc_basicGyewan An
 
Linux 4.x Tracing: Performance Analysis with bcc/BPF
Linux 4.x Tracing: Performance Analysis with bcc/BPFLinux 4.x Tracing: Performance Analysis with bcc/BPF
Linux 4.x Tracing: Performance Analysis with bcc/BPFBrendan Gregg
 
BGP Unnumbered で遊んでみた
BGP Unnumbered で遊んでみたBGP Unnumbered で遊んでみた
BGP Unnumbered で遊んでみたakira6592
 
Introducing the Apache Flink Kubernetes Operator
Introducing the Apache Flink Kubernetes OperatorIntroducing the Apache Flink Kubernetes Operator
Introducing the Apache Flink Kubernetes OperatorFlink Forward
 
Building Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCBuilding Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCKernel TLV
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking ExplainedThomas Graf
 
ONF Transport API (TAPI) Project
ONF Transport API (TAPI) ProjectONF Transport API (TAPI) Project
ONF Transport API (TAPI) ProjectDeborah Porchivina
 
containerd the universal container runtime
containerd the universal container runtimecontainerd the universal container runtime
containerd the universal container runtimeDocker, Inc.
 
VXLAN and FRRouting
VXLAN and FRRoutingVXLAN and FRRouting
VXLAN and FRRoutingFaisal Reza
 
CCNA2 Verson6 Chapter3
CCNA2 Verson6 Chapter3CCNA2 Verson6 Chapter3
CCNA2 Verson6 Chapter3Chaing Ravuth
 
Introduction to BTRFS and ZFS
Introduction to BTRFS and ZFSIntroduction to BTRFS and ZFS
Introduction to BTRFS and ZFSTsung-en Hsiao
 
Access Network Evolution
Access Network Evolution Access Network Evolution
Access Network Evolution Cisco Canada
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 
SDN Architecture & Ecosystem
SDN Architecture & EcosystemSDN Architecture & Ecosystem
SDN Architecture & EcosystemKingston Smiler
 

Tendances (20)

Ubuntu an absolute beginners guide
Ubuntu an absolute beginners guideUbuntu an absolute beginners guide
Ubuntu an absolute beginners guide
 
Session 1
Session 1Session 1
Session 1
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linux
 
Microservices Network Architecture 101
Microservices Network Architecture 101Microservices Network Architecture 101
Microservices Network Architecture 101
 
Linux file system
Linux file systemLinux file system
Linux file system
 
netconf, restconf, grpc_basic
netconf, restconf, grpc_basicnetconf, restconf, grpc_basic
netconf, restconf, grpc_basic
 
Linux 4.x Tracing: Performance Analysis with bcc/BPF
Linux 4.x Tracing: Performance Analysis with bcc/BPFLinux 4.x Tracing: Performance Analysis with bcc/BPF
Linux 4.x Tracing: Performance Analysis with bcc/BPF
 
BGP Unnumbered で遊んでみた
BGP Unnumbered で遊んでみたBGP Unnumbered で遊んでみた
BGP Unnumbered で遊んでみた
 
Introducing the Apache Flink Kubernetes Operator
Introducing the Apache Flink Kubernetes OperatorIntroducing the Apache Flink Kubernetes Operator
Introducing the Apache Flink Kubernetes Operator
 
Building Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCBuilding Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCC
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
ONF Transport API (TAPI) Project
ONF Transport API (TAPI) ProjectONF Transport API (TAPI) Project
ONF Transport API (TAPI) Project
 
containerd the universal container runtime
containerd the universal container runtimecontainerd the universal container runtime
containerd the universal container runtime
 
VXLAN and FRRouting
VXLAN and FRRoutingVXLAN and FRRouting
VXLAN and FRRouting
 
CCNA2 Verson6 Chapter3
CCNA2 Verson6 Chapter3CCNA2 Verson6 Chapter3
CCNA2 Verson6 Chapter3
 
Introduction to BTRFS and ZFS
Introduction to BTRFS and ZFSIntroduction to BTRFS and ZFS
Introduction to BTRFS and ZFS
 
Access Network Evolution
Access Network Evolution Access Network Evolution
Access Network Evolution
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
SDN Architecture & Ecosystem
SDN Architecture & EcosystemSDN Architecture & Ecosystem
SDN Architecture & Ecosystem
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 

Similaire à Dynamische Routingprotokolle Aufzucht und Pflege - OSPF

Netzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IPNetzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IPMaximilan Wilhelm
 
OSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfOSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfDenis Rasskazov
 
VYOS & RPKI at the BGP as edge
VYOS & RPKI at the BGP as edgeVYOS & RPKI at the BGP as edge
VYOS & RPKI at the BGP as edgeFaelix Ltd
 
Implementing BGP Flowspec at IP transit network
Implementing BGP Flowspec at IP transit networkImplementing BGP Flowspec at IP transit network
Implementing BGP Flowspec at IP transit networkPavel Odintsov
 
Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Dân Chơi
 
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptxserieux1
 
BKK16-103 OpenCSD - Open for Business!
BKK16-103 OpenCSD - Open for Business!BKK16-103 OpenCSD - Open for Business!
BKK16-103 OpenCSD - Open for Business!Linaro
 
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-NetzwerkstackL2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-NetzwerkstackMaximilan Wilhelm
 

Similaire à Dynamische Routingprotokolle Aufzucht und Pflege - OSPF (20)

Netzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IPNetzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IP
 
JUNOS: OSPF and BGP
JUNOS: OSPF and BGPJUNOS: OSPF and BGP
JUNOS: OSPF and BGP
 
OSPF by Abdullah Mukhtar
OSPF by Abdullah MukhtarOSPF by Abdullah Mukhtar
OSPF by Abdullah Mukhtar
 
How to configure the basic OSPF?
How to configure the basic OSPF?How to configure the basic OSPF?
How to configure the basic OSPF?
 
OSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfOSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdf
 
CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3
 
VYOS & RPKI at the BGP as edge
VYOS & RPKI at the BGP as edgeVYOS & RPKI at the BGP as edge
VYOS & RPKI at the BGP as edge
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
Implementing BGP Flowspec at IP transit network
Implementing BGP Flowspec at IP transit networkImplementing BGP Flowspec at IP transit network
Implementing BGP Flowspec at IP transit network
 
Ospf
OspfOspf
Ospf
 
OSPFv2 on IOS XR
OSPFv2 on IOS XROSPFv2 on IOS XR
OSPFv2 on IOS XR
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
OSPF Fundamental
OSPF FundamentalOSPF Fundamental
OSPF Fundamental
 
Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011
 
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
 
CSC427_Week_11.pdf
CSC427_Week_11.pdfCSC427_Week_11.pdf
CSC427_Week_11.pdf
 
BKK16-103 OpenCSD - Open for Business!
BKK16-103 OpenCSD - Open for Business!BKK16-103 OpenCSD - Open for Business!
BKK16-103 OpenCSD - Open for Business!
 
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-NetzwerkstackL2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
 
Allwyn ospf ppt
Allwyn ospf pptAllwyn ospf ppt
Allwyn ospf ppt
 

Plus de Maximilan Wilhelm

This is the way - Holistic (Network) Automation
This is the way - Holistic (Network) AutomationThis is the way - Holistic (Network) Automation
This is the way - Holistic (Network) AutomationMaximilan Wilhelm
 
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...Maximilan Wilhelm
 
Building your own CGN boxes with Linux
Building your own CGN boxes with LinuxBuilding your own CGN boxes with Linux
Building your own CGN boxes with LinuxMaximilan Wilhelm
 
Contemporary network configuration for linux - ifupdown-ng
Contemporary network configuration for linux - ifupdown-ngContemporary network configuration for linux - ifupdown-ng
Contemporary network configuration for linux - ifupdown-ngMaximilan Wilhelm
 
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3Maximilan Wilhelm
 
Intent driven, fully automated deployment of anycasted load balancers with ha...
Intent driven, fully automated deployment of anycasted load balancers with ha...Intent driven, fully automated deployment of anycasted load balancers with ha...
Intent driven, fully automated deployment of anycasted load balancers with ha...Maximilan Wilhelm
 
Out-of-Band-Management für APU-Boards
Out-of-Band-Management für APU-BoardsOut-of-Band-Management für APU-Boards
Out-of-Band-Management für APU-BoardsMaximilan Wilhelm
 
Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...
Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...
Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...Maximilan Wilhelm
 
Best Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learnedBest Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learnedMaximilan Wilhelm
 
Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...
Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...
Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...Maximilan Wilhelm
 
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPMaximilan Wilhelm
 
Contemporary Linux Networking
Contemporary Linux NetworkingContemporary Linux Networking
Contemporary Linux NetworkingMaximilan Wilhelm
 
Building your own sdn with debian linux salt stack and python
Building your own sdn with debian linux salt stack and pythonBuilding your own sdn with debian linux salt stack and python
Building your own sdn with debian linux salt stack and pythonMaximilan Wilhelm
 
AS201701 - Building an Internet backbone with pure 1he servers and Linux
AS201701 - Building an Internet backbone with pure 1he servers and LinuxAS201701 - Building an Internet backbone with pure 1he servers and Linux
AS201701 - Building an Internet backbone with pure 1he servers and LinuxMaximilan Wilhelm
 
Software Defined Freifunk Backbones
Software Defined Freifunk BackbonesSoftware Defined Freifunk Backbones
Software Defined Freifunk BackbonesMaximilan Wilhelm
 

Plus de Maximilan Wilhelm (17)

This is the way - Holistic (Network) Automation
This is the way - Holistic (Network) AutomationThis is the way - Holistic (Network) Automation
This is the way - Holistic (Network) Automation
 
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
 
Building your own CGN boxes with Linux
Building your own CGN boxes with LinuxBuilding your own CGN boxes with Linux
Building your own CGN boxes with Linux
 
Contemporary network configuration for linux - ifupdown-ng
Contemporary network configuration for linux - ifupdown-ngContemporary network configuration for linux - ifupdown-ng
Contemporary network configuration for linux - ifupdown-ng
 
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
 
Intent driven, fully automated deployment of anycasted load balancers with ha...
Intent driven, fully automated deployment of anycasted load balancers with ha...Intent driven, fully automated deployment of anycasted load balancers with ha...
Intent driven, fully automated deployment of anycasted load balancers with ha...
 
Anycast all the things
Anycast all the thingsAnycast all the things
Anycast all the things
 
Out-of-Band-Management für APU-Boards
Out-of-Band-Management für APU-BoardsOut-of-Band-Management für APU-Boards
Out-of-Band-Management für APU-Boards
 
Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...
Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...
Wie baue ich ein Freifunkbackbone - Was wir in den letzten 5 Jahren gelernt h...
 
Best Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learnedBest Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learned
 
Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...
Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...
Overlays & IP-Fabrics - viele Wege führen nach Rom und warum Layer2 keine Lös...
 
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
 
IPv6 im Jahre 2018
IPv6 im Jahre 2018IPv6 im Jahre 2018
IPv6 im Jahre 2018
 
Contemporary Linux Networking
Contemporary Linux NetworkingContemporary Linux Networking
Contemporary Linux Networking
 
Building your own sdn with debian linux salt stack and python
Building your own sdn with debian linux salt stack and pythonBuilding your own sdn with debian linux salt stack and python
Building your own sdn with debian linux salt stack and python
 
AS201701 - Building an Internet backbone with pure 1he servers and Linux
AS201701 - Building an Internet backbone with pure 1he servers and LinuxAS201701 - Building an Internet backbone with pure 1he servers and Linux
AS201701 - Building an Internet backbone with pure 1he servers and Linux
 
Software Defined Freifunk Backbones
Software Defined Freifunk BackbonesSoftware Defined Freifunk Backbones
Software Defined Freifunk Backbones
 

Dernier

𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.CarlotaBedoya1
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)Delhi Call girls
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...Escorts Call Girls
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 

Dernier (20)

𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
 

Dynamische Routingprotokolle Aufzucht und Pflege - OSPF

  • 1. Open Shortest Path First FrOSCon 13 Network Track Falk Stern, Maximilian Wilhelm 1 / 39
  • 2. Agenda 1. Who's who 2. Static Routing 3. Dynamic Routing 1. RIP - Distance Vector 2. OSPF - Link State Routing 4. OSPF on Linux (Bird) 5. OSPF on Vendor Hardware 6. Summary 2 / 39
  • 3. Who's who Falk Stern Full Stack Infrastructure Engineer IPv6 fanboy Runs his own Kubernetes cluster in his basement Consultant @ Profi Engineering Systems AG Contact @wrf42 falk@fourecks.de 3 / 39
  • 4. Who's who Maximilian Wilhelm Networker OpenSource Hacker Fanboy of (Debian) Linux ifupdown2 Occupation: By day: Senior Infrastructure Architect, Uni Paderborn By night: Infrastructure Archmage, Freifunk Hochstift In between: Freelance Solution Architect for hire Contact @BarbarossaTM max@sdn.clinic 4 / 39
  • 5. Who's who Theory Problem statement Consider the following network AS39225 CoreBorder Internet br-01 cr-E cr-A cr-D cr-B cr-C dr-02 5 / 39
  • 6. Who's who Theory Static Routing Every host on the network has to be told how to reach different subnets Everything has to be configured by hand Work scales exponentially If you miss a system, it doesn't work Don't do this 6 / 39
  • 7. Who's who Theory Dynamic Routing Systems propagate their routing information to other systems Paths to new networks are added automatically Only initial configuration required when adding a router Two types of routing protocols Interior Gateway Protocols (IGP) RIP OSPF IS-IS EIGRP Exterior Gateway Protocols (EGP) BGP 7 / 39
  • 8. Who's who Theory Distance Vector Routers always send their complete routing table with increased metrics Metrics are counted to infinity where infinity = 15 Example: Routing Information Protocol (RIP) 8 / 39
  • 9. Who's who Theory Link State Routing In a hierarchical area, routers only send their linkstates Between areas, linkstates are summarized Every router calculates its own routing table, based on received LSAs* LSAs include metrics, bandwidth or other information Metrics are calculated based on interface costs Examples: Open Shortest Path First Protocol (OSPF) Intermediate System to Intermediate System (IS-IS) Paths are calculated with the Dijkstra algorithm https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm *Link State Advertisments 9 / 39
  • 11. Who's who Theory OSPF What is OSPF? Open Source implementation of a Link State Routing Protocol OSPF v2 Defined in RFC1247 Supports only IPv4 OSPF v3 Defined in RFC5838 and RFC6969 Supports IPv4 and IPv6 but requires IPv6 to work Implemented in all major routing suites and vendors Interoperable Uses fixed multicast addresses 224.0.0.5 (ospf-all.mcast.net) 224.0.0.6 (ospf-dsig.mcast.net) 11 / 39
  • 13. Who's who Theory OSPF Roles Designated Router (DR) / Backup Designated Router (BDR) The DR synchronizes all LSAs in a broadcast network, the BDR is it's backup BDR takes over when DR fails and a new BDR is elected Originates LSAs to other areas on behalf of the network 13 / 39
  • 14. Who's who Theory OSPF Roles Area Border Router (ABR) Has interfaces in at least 2 areas Autonomous System Boundary Router (ASBR) Has interfaces outside the AS 14 / 39
  • 15. Who's who Theory OSPF Link State Advertisements Type 1 - Represents a router Type 2 - Represents the pseudonode (designated router) for a multiaccess link Type 3 - A network link summary (internal route) Type 4 - Represents an ASBR Type 5 - A route external to the OSPF domain Type 7 - Used in NSSA in place of a type 5 LSA 15 / 39
  • 16. Who's who Theory OSPF Areas OSPF Networks can be split into multiple areas Area 0 defined as backbone area Each area has to be connected to area 0 If it can't be connected to area 0, you have to define virtual links Traffic between areas always traverses area 0 Keep it simple: no need for multiple areas with less than 60 routers Area 0 CoreBorder Internet br-01 cr-E cr-A cr-D cr-B cr-C ASBR dr-02 16 / 39
  • 17. Who's who Theory OSPF Standard area Image stolen from http://packetlife.net with permission 17 / 39
  • 18. Who's who Theory OSPF Stub area Image stolen from http://packetlife.net with permission 18 / 39
  • 19. Who's who Theory OSPF Not so stubby area Image stolen from http://packetlife.net with permission 19 / 39
  • 20. Who's who Theory OSPF Totally stubby area Image stolen from http://packetlife.net with permission 20 / 39
  • 21. Who's who Theory OSPF Route Types 1. Intra-Area (O) 2. Inter-Area (O IA) 3. External Type 1 (E1) 4. NSSA External Type 1 (N1) 5. External Type 2 (E2) 6. NSSA External Type 2 (N2) Routes are preferred in this order as of RFC3101 21 / 39
  • 23. Who's who Theory OSPF Linux Reminder: Our topology Area 0 CoreBorder Internet br-01 cr-E cr-A cr-D cr-B cr-C ASBR dr-02 23 / 39
  • 24. Who's who Theory OSPF Linux OSPF on Linux / Bird Some Routing Daemon required We'll use Bird Internet Routing Daemon (Bird) Implements OSPF & BGP One daemon for IPv4, one for IPv6 Configured via /etc/bird/bird{,6}.conf Controlled by birdc / birdc6 CLI tool http://bird.network.cz/ Use version >= 1.6.3 24 / 39
  • 25. Who's who Theory OSPF Linux Bird con guration (common) # /etc/bird/bird6.conf # ID of this router (32bit value) - usually it's the loopback Legacy-IP router id 194.107.207.0; # This pseudo-protocol watches all interface up/down events. protocol device { scan time 10; # Scan interfaces every 10 seconds } protocol kernel { # learn; # Learn all alien routes from the kernel # persist; # Don't remove routes on bird shutdown import none; # Don't import any route from the kernel into bird export all; # Export all routers from bird into kernel routing table # kernel table 5; # Kernel table to synchronize with (default: main) } # Read further config snippets for IPv6 daemon include "/etc/bird/bird6.d/*.conf"; 25 / 39
  • 26. Who's who Theory OSPF Linux Bird con guration (OSPF IPv4) # # /etc/bird/bird.d/ospf.conf # protocol ospf IGP { import all; export none; # Backbone Area area 0 { # Use Loopback as passive interface interface "lo" { stub yes; }; # X-Link cr-E interface "eth1"; }; } 26 / 39
  • 27. Who's who Theory OSPF Linux Bird con guration (OSPF IPv6/simple) # # /etc/bird/bird6.d/ospf.conf # protocol direct lo_v6 { interface "lo"; } protocol ospf IGP { import all; export where proto = "lo_v6"; area 0 { interface "lo" { stub yes; }; # X-Link cr-E interface "eth1"; }; } 27 / 39
  • 28. Who's who Theory OSPF Linux Bird con guration (OSPF IPv6/Adv.) # # /etc/bird/bird6.d/ospf.conf # protocol direct lo_v6 { interface "lo"; } protocol ospf IGP { import all; export filter { if proto = "lo_v6" then { ospf_metric1 = 100; accept; } }; area 0 { interface "lo" { stub yes; }; # X-Link cr-E interface "eth1"; }; } 28 / 39
  • 29. Who's who Theory OSPF Linux Bird con guration management Bird daemon can be controlled by birdc6 (or birdc respectivly) br-01.in.fc13.sdn.clinic:~# birdc6 BIRD 1.6.3 ready. bird> Interactive shell allows shortcuts and TAB completion Use ? for help Commands can be given on shell command line, too br-01.in.fc13.sdn.clinic:~# birdc6 "show route ::/0" BIRD 1.6.3 ready. bird> show route ::/0 ::/0 via 2a03:2260:0:1aa::1 on ... [as201701_a 2018-08-17] * (100) [AS201701i] via 2a03:2260:0:1ab::1 on ... [as201701_b 2018-08-19] (100) [AS201701i] 29 / 39
  • 30. Who's who Theory OSPF Linux Bird con guration management Useful commands # Reload configuration from disk configure # Show interfaces configured for OSPF show ospf interfaces # Show OSPF neighbors and their state show ospf neighbors # Show OSPF link state database show ospf lsadb 30 / 39
  • 31. Who's who Theory OSPF Linux Bird con guration management # Display route(s) show route [all] [primary] show route for <prefix> all # Show configured protocols with their state (OSPF, direct, static, kernel...) show protocols # Show routes of a specific protocol show route protocol <protocol> # Count number of prefixes show route [protocol <protocol>] count [primary] 31 / 39
  • 32. Who's who Theory OSPF Linux Let's do this live! Area 0 CoreBorder Internet br-01 cr-E cr-A cr-D cr-B cr-C ASBR dr-02 32 / 39
  • 33. Who's who Theory OSPF Linux Vendors And now about vendor OSPF con g (Cisco IOS) ! Legacy-IP router ospf 1 ! Log if things happen log-adjacency-changes ! By default we don't talk OSPF to neighbors passive-interface default ! On these interfaces we do no passive-interface GigabitEthernet1/0/1 no passive-interface GigabitEthernet1/0/2 ! IP ! Explicitly enable IPv6 routing ipv6 unicast-routing ipv6 router ospf 1 log-adjacency-changes passive-interface default no passive-interface GigabitEthernet1/0/1 no passive-interface GigabitEthernet1/0/2 33 / 39
  • 34. Who's who Theory OSPF Linux Vendors And now about vendor OSPF con g (Cisco IOS) interface Loopback0 ip address 194.107.207.7 255.255.255.255 ip ospf 1 area 0 ipv6 enable ipv6 address 2A07:ED07:FC13:FFFF::7/128 ipv6 ospf 1 area 0 ! interface GigabitEthernet1/0/1 description -> cr-A no switchport ip address 194.107.207.37 255.255.255.254 ip ospf 1 area 0 ipv6 enable ipv6 address 2A07:ED07:FC13:FE05::2/126 ipv6 ospf 1 area 0 ! interface GigabitEthernet1/0/2 description cr-B no switchport ip address 194.107.207.35 255.255.255.254 ip ospf 1 area 0 ipv6 enable ipv6 ospf 1 area 0 34 / 39
  • 35. Who's who Theory OSPF Linux Vendors And now about vendor OSPF con g (Cisco IOS) IPv6, the second class citizen... dr-02.in.fc13.sdn.cl(config)#sdm prefer dual-ipv4-and-ipv6 routing Changes to the running SDM preferences have been stored, but cannot take effect until the next reload. Use 'show sdm prefer' to see what SDM preference is currently active. dr-02.in.fc13.sdn.cl(config)#ipv6 router ospf 1 % IPv6 routing not enabled dr-02.in.fc13.sdn.cl(config)#ipv6 unicast-routing dr-02.in.fc13.sdn.cl(config)#ipv6 router ospf 1 dr-02.in.fc13.sdn.cl(config-rtr)# dr-02.in.fc13.sdn.cl(config-if)#ipv6 ospf 1 area 0 OSPFv3: No IPV6 enabled on this interface dr-02.in.fc13.sdn.cl(config-if)#ipv6 enable dr-02.in.fc13.sdn.cl(config-if)#ipv6 ospf 1 area 0 dr-02.in.fc13.sdn.cl(config-if)# 35 / 39
  • 37. Who's who Theory OSPF Linux Takeaways Key takeaways Don't do static routing OSPF is a go-to IGP It's interoperable and platform independent Use only Area 0 unless you REALLY need more Bird is a versatile multi platform routing daemon 37 / 39
  • 38. Who's who Theory OSPF Linux Takeaways Links Further Reading https://www.youtube.com/watch?v=aPtr43KHBGk Routing TCP/IP Volume I - Jeff Doyle & Jennifer DeHaven Carroll, 2005 https://packetlife.net/ 38 / 39