1
Internet Routing Protocols
Router Functions
Rangsit University
2
Routing Table
Rangsit University
3
Destination Next Interface
192.1.1.0/24 -- f0/0
192.1.2.0/24 -- s2/0
192.1.3.0/24 192.1.2.2 s2/0
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
192.1.3.2
Longest Math
R2
R1
s2/0
s2/0
f0/0
192.1.3.3
Destination Next Interface
192.1.1.0/24 192.1.2.1 s2/0
192.1.2.0/24 -- s2/0
192.1.3.0/24 -- f0/0
Destination Next Interface
192.1.1.0/24 -- f0
Other 192.1.1.1 f0
Longest Math
Routing Table
Rangsit University
4
Destination Next Interface
192.1.1.0/24 -- f0/0
192.1.2.0/24 -- s2/0
192.1.3.0/24 192.1.2.2 s2/0
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
192.1.1.2
Longest Math
R2
R1
s2/0
s2/0
f0/0
192.1.3.3
Destination Next Interface
192.1.1.0/24 192.1.2.1 s2/0
192.1.2.0/24 -- s2/0
192.1.3.0/24 -- f0/0
Destination Next Interface
192.1.1.0/24 -- f0
Other 192.1.1.1 f0
Longest Math
Building the Routing Table
Routers must learn destinations that are not directly connected.
Rangsit University
5
Routing Table
Rangsit University
6
Destination Next Interface
192.1.1.0/24 -- e0
192.1.2.0/24 -- s0
192.1.3.0/24 192.1.2.2 s0
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
e0
Directly Connect
R2
R1
s0
s1
e0
192.1.3.3
Destination Next Interface
192.1.1.0/24 192.1.2.1 s1
192.1.2.0/24 -- s1
192.1.3.0/24 -- e0
Destination Next Interface
192.1.1.0/24 -- e0
Other 192.1.1.1 e0
Directly Connect
Static Route
Rangsit University
7
R1(config)#ip route 192.1.3.0 255.255.255.0 192.1.2.2
R2(config)#ip route 192.1.1.0 255.255.255.0 192.1.2.1
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
R2
R1
s2/0
s2/0
f0/0
192.1.3.3
Static Route
Rangsit University
8
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
R2
R1
s2/0
s2/0
f0/0
192.1.4.2
f1/0
192.1.4.1
R1(config)#ip route 192.1.3.0 255.255.255.0 192.1.2.2
R1(config)#ip route 192.1.4.0 255.255.255.0 192.1.2.2
R1(config)#ip route 0.0.0.0 0.0.0.0 192.1.2.2
R2
No single default route
Rangsit University
9
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
R2
R1
s2/0
s2/0
f0/0
192.1.x.2
f2/0
192.1.4.1
R2
192.1.5.1
s3/0
R3
192.1.5.2
s2/0
…
192.1.4.2
R1(config)#ip route 192.1.3.0 255.255.255.0 192.1.2.2
R1(config)#ip route 192.1.4.0 255.255.255.0 192.1.5.2
…
…
Dynamic routes
Rangsit University
10
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
R2
R1
s2/0
s2/0
f0/0
f2/0
192.1.4.1
R2
192.1.5.1
s3/0
R3
192.1.5.2
s2/0
192.1.4.2
192.1.6.1
s3/0
192.1.6.2
s3/0
R1(config)#ip route 192.1.4.0 255.255.255.0 192.1.2.2
R1(config)#ip route 192.1.4.0 255.255.255.0 192.1.5.2
X
1
Internet Architecture and Routing Protocols
Building the Routing Table
Dynamic: Routing table is computed base on Information exchanged by Routing Protocol
Rangsit University
12
Rules define
Internet Architecture
Rangsit University
13
ARPANET
Gateway
Gateway
First there was the ARPANET
Gateway
Gateway
H
H
H
H
H
H
Internet Architecture
Rangsit University
14
Subnet
Subnet
Subnet
ARPANET
Core Router
Core Router
Core Router
H
H
H
H
H
Subnet
H
Subnet
H
Autonomous System (AS)
Rangsit University
15
Subnet
Subnet
Subnet
ARPANET
Core Router
Core Router
Core Router
H
H
H
H
H
Subnet
H
Subnet
H
AS-1
AS-2
AS-3
Concepts of AS
Rangsit University
16
AS
AS
AS
AS
Internet Backbone
Default Free Zone (DFZ)
Core Router
Core Router
Core Router
Core Router
Default route
Types of ASs
Rangsit University
17
AS 3
(transit)
AS 5
(stub)
AS 1
(transit)
AS 6
(Multihomed)
AS 2
(transit)
AS 4
(stub)
Transit
Stub
Multihomed
Internet Routing Protocols
Rangsit University
18
Exterior Gateway Protocol (EGP) is used to exchange routing information between ASs’ edge router to implement routing policy
Interior Gateway Protocol (IGP) is used within an AS to provide internal connectivity
Local
Subnet-3
Local
Subnet-2
Local
Subnet-1
Local
Subnet-3
Local
Subnet-2
Local
Subnet-1
AS-1
AS-2
Local
Subnet-3
Local
Subnet-2
Local
Subnet-1
AS-3
Internet Routing Protocols
Rangsit University
19
Distance Vector Routing Protocols
Rangsit University
20
C
D
B
A
C
B
A
D
Routing
Table
Routing
Table
Routing
Table
Routing
Table
Distance—How Far�Vector—In Which Direction
Routing Information Protocol (RIP)
Rangsit University
21
R1
R2
R3
T1
56k
T1
0 Hops
1 Hop
Path A
Path B
Hops Count Metric: limit to 15
Distance Vector— Operation
Rangsit University
22
A
B
C
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
E0
S0
S0
S1
S0
E0
Routing Table
10.2.0.0
10.3.0.0
0
0
S0
S1
Routing Table
10.3.0.0
S0
0
10.4.0.0
E0
0
Routing Table
10.1.0.0
10.2.0.0
E0
S0
0
0
Distance Vector— Operation
Rangsit University
23
A
B
C
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
E0
S0
S0
S1
S0
E0
Routing Table
10.1.0.0
10.2.0.0
Routing Table
10.2.0.0
10.3.0.0
10.4.0.0
0
0
1
S0
S1
S1
Routing Table
10.3.0.0
S0
0
10.4.0.0
E0
0
10.2.0.0
S0
1
E0
S0
0
0
Distance Vector— Operation
Rangsit University
24
A
B
C
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
E0
S0
S0
S1
S0
E0
Routing Table
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
Routing Table
10.2.0.0
10.3.0.0
10.4.0.0
10.1.0.0
0
0
1
1
S0
S1
S1
S0
Routing Table
10.3.0.0
S0
0
10.4.0.0
E0
0
10.2.0.0
S0
1
E0
S0
S0
1
2
0
0
S0
Distance Vector— Operation
Rangsit University
25
A
B
C
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
E0
S0
S0
S1
S0
E0
Routing Table
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
Routing Table
10.2.0.0
10.3.0.0
10.4.0.0
10.1.0.0
0
0
1
1
S0
S1
S1
S0
Routing Table
10.3.0.0
S0
0
10.4.0.0
E0
0
10.2.0.0
S0
10.1.0.0
S0
1
2
E0
S0
S0
S0
1
2
0
0
Configuring RIP
Rangsit University
26
R1(config)#router rip
R1(config-router)#network 192.1.1.0
R1(config-router)#network 192.1.2.0
192.1.3.1
192.1.1.1
192.1.2.1
192.1.3.2
192.1.1.2
192.1.2.2
f0/0
R2
R1
s2/0
s2/0
f0/0
192.1.3.3
R2(config)#router rip
R2(config-router)#network 192.1.2.0
R2(config-router)#network 192.1.3.0
When to Use RIP
Rangsit University
27
IGRP (Interior Gateway Routing Protocol)
Rangsit University
28
R1
R2
R3
T1
56k
T1
How the IGRP Metrics Work
Rangsit University
29
Delay Metric�Based on
D1 + D2 + D3
Bandwidth�Metric Based�on 64kbps
D1
D2
D3
1.5 Mbps
64 kbps
1.5 Mbps
Configuring IGRP
Rangsit University
30
Router(config-router)#network network-number
Router(config)#router igrp autonomous-system
IGRP Configuration Example
Rangsit University
31
router igrp 100
network 172.16.0.0
network 10.0.0.0
router igrp 100
network 10.0.0.0
router igrp 100
network 192.168.1.0
network 10.0.0.0
Autonomous System = 100
172.16.1.1
S2
E0
S3
192.168.1.1
10.1.1.1
10.2.2.2
10.1.1.2
S2
S3
10.2.2.3
172.16.1.0
A
B
C
192.168.1.0
E0
Open Shortest Path First protocol (OSPF)
🡪 Fast Convergence
Rangsit University
32
Precise metric, Bandwidth based
100 / bandwidth (Mbps)
Rangsit University
33
R1
R2
R3
T1
56k
T1
1785
65+65=130
Path A
Path B
Link State Routing (RFC 1583)
Rangsit University
34
Adjacencies Database
Rangsit University
35
Z
X
Y
Net A
Net B
Net C
Net D
10 Mbps
10 Mbps
10 Mbps
100 Mbps
100 Mbps
100 Mbps
BR
Neighbors on Net D are Router Y, Z
Neighbors on Net D are Router X, Z
Neighbors on Net D are Router X,Y
Link State Advertisement
Rangsit University
36
Z
X
Y
Net A
Net B
Net C
Net D
10
10
10
1
1
1
BR
Y’s LSA
Net Metric
A 10
D 1
Z’s LSA
Net Metric
B 10
D 1
X’s LSA
Net Metric
C 10
D 1
Topology Database
Rangsit University
37
Z
X
Y
Net A
Net B
Net C
Net D
10
10
10
1
1
1
BR
Routing Table
Rangsit University
38
Net A
Y
Z
X
Net D
Net C
Net B
10
10
10
1
BR
E1
E2
Destination
Net A
Net B
Net C
Net D
Metric
11
11
10
1
Next
Y
Z
local
local
Int
E1
E1
E2
E1
Hierarchical Structure and Areas
Rangsit University
39
Backbone
Area #0
Area #3
Area #2
Area #1
Hierarchical Structure and Areas
Rangsit University
40
Backbone
Area #0
Area #3
Area #2
Area #1
ISP
Autonomous System�Boundary Router (ASBR)
Area Border Router (ABR)
Internal Router
Backbone Router
Distance Vector Vs Link-State Routing
Rangsit University
41
When to Use OSPF
Rangsit University
42