Professional Documents
Culture Documents
Online Kamustahan
Sunday | August 9, 2020 | 9pm
Prepared by:
Engr. Jepp Quijano | TUP - ECE
1
Part I
Introduction to Routing
Fundamentals
2
Routing
• The process of informing a local router about
all the remote network addresses and the
routes how to get to those remote networks.
Router2
Router1 INTERNET
Router3
4
Router
• A device that routes or
forward packets.
• Contains and connect the
internal network from the
outside network (the Internet).
• Every port is a broadcast
domain.
5
Router
6
Default Gateway
• acts as the gateway of a certain network to
send traffic outside its own subnet.
• is usually the first usable IP of a network
subnet configured on the interface of a
router facing the LAN.
7
Default Gateway
8
How do
routers work?
9
Hi PC_A! I just received
your request through your
default gateway. Sure that I
Hi Router! I want to send a can help you, let me check
message destined to this IP in my routing table.
address: 192.168.7.21. Can
you help me?
10
11
Aha! Based on my routing table,
192.168.7.21 belongs to
192.168.7.0/24 network with a
default gateway of 192.168.7.1 Gotcha! Already received the
connected via interface request of PC_A. Thanks to you
GigabitEthernet 0/1. router! ^_^
12
Why do we need routers?
VS
13
Why do we need routers?
14
Why do we need routers?
15
Routing Sources
• Connected
interfaces
• Static routes
• Dynamic routes or
Routing Protocols
17
Administrative Distance
• the numerical identifier used by a router to
determine which is the best path it will take to
forward traffic to its destination when several
routing protocols are present in the
configuration.
• The router will decide the best path according
to the lowest administrative distance.
18
Administrative Distance
ROUTING DEFAULT ADMINISTRATIVE
PROTOCOLS DISTANCE
Directly connected 0
Static route 1
EIGRP 90
OSPF 110
RIP 120
Unknown 255
19
Metrics
• another numerical identifier in which the
router use when there are two or more
possible paths going to a destination
network with the same routing protocols.
• With the same routing protocol, the router
will choose the best path with the lowest
metrics.
20
Metrics
ROUTING
METRICS
PROTOCOLS
RIP hop counts (routers in between)
EIGRP bandwidth & delay
OSPF cost
21
22
Directly connected routes
23
Directly connected routes
24
Directly connected routes
25
Static routes
26
Static routes
27
Default routes
28
Floating Static/Default routes
• Backup static or default route.
30
Dynamic routes
32
Routing Protocols
• are the means by which routers
automatically and dynamically exchange
next-hop reachability information with
each other.
• Routing protocols are either distance
vector routing protocols, link-state
routing protocols or hybrid.
33
Interior and Exterior Gateway
Routing Protocols
34
Interior Gateway Protocol
39
Distance Vector and Link-
State Routing Protocols
40
Distance Vector Routing Protocol
RIP
BGP
EIGRP
42
Link-State Routing Protocol
OSPF
IS-IS
45
Table Summary
ROUTING
IGP EGP DV LS
PROTOCOLS
RIP √ √
EIGRP √ √ (adv)
OSPF √ √
BGP √ √ (adv)
IS-IS √ √
46
RIP Routing Protocol
• Routing Information Protocol (RIP) is a
true distance-vector routing protocol.
• Administrative Distance is 120.
• RIP permits a hop count of up to 15, so
anything that requires 16 hops is deemed
unreachable.
47
RIP Routing Protocol
50
OSPF Routing Protocol
• Open Shortest Path First (OSPF) is a
complex link-state routing protocol.
• Most widely used IGP routing protocol in
the industry.
• Non-proprietary routing protocol.
• Designed for IPv4 (OSPFv2) and IPv6
(OSPFv3).
51
OSPF Routing Protocol
• It uses the Dijkstra SPF Algorithm.
• It works for simple (Single Area) networks
and advanced (Multi- Area) networks.
• Faster network convergence as it
maintains the map of the whole
topology of the network (maintains
LSDB).
52
DIJKSTRA SPF ALGORITHM
100 𝑚𝑏𝑝𝑠
𝐶𝑜𝑠𝑡 =
𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ
53
Single Area OSPF
54
Multi-Area OSPF
55
NEIGHBOR RELATIONSHIP
1. Determine your own Router ID.
• The router ID is simple the router’s name
in the OSPF process.
• It is the highest active interface IP
address when OSPF starts.
• Note: Loopbacks beat physical interfaces.
Router ID can also be hardcoded.
56
NEIGHBOR RELATIONSHIP
2. Creates link-state databases.
• Add interfaces to the link-state databases.
• Dictated by the ‘network’ command
57
NEIGHBOR RELATIONSHIP
3. Send a ‘hello’ message on chosen
interfaces.
• Once every 10 seconds on broadcast/p2p
networks.
• Once every 30 seconds on NBMA
networks.
58
59
NEIGHBOR RELATIONSHIP
3. Send a ‘hello’ message on chosen
interfaces.
• Contains all sort of information such as:
- Router ID - Neighbors
- Hello and Dead Timers* - Router Priority
- Network Mask* - DR/BDR IP
- Area ID* - Authentication pwd
60
NEIGHBOR RELATIONSHIP
65
NEIGHBOR RELATIONSHIP
Initialize / Sends to
Link Change neighbor
Router creates LS Neighbor updates
database / LS LS database
advertisements
Forwards
Routers are in full LSA to other
state.
neighbors
66
OSPF SAMPLE LAB
67
EIGRP Routing Protocol
• Enhanced Interior Gateway Routing
Protocol (EIGRP) is an advanced
distance vector routing protocol.
• EIGRP is classified also by the industry
community as hybrid routing protocol.
• Cisco proprietary standard until 2013.
68
EIGRP Routing Protocol
• Supports VLSM and discontiguous
networks.
• It chooses the best path using the
Diffusing Update Algorithm (DUAl)
which guarantees loop-free paths and
backup paths throughout the routing
domain.
69
70
EIGRP Routing Protocol
• Supports VLSM and discontiguous
networks.
• It chooses the best path using the
Diffusing Update Algorithm (DUAl)
which guarantees loop-free paths and
backup paths throughout the routing
domain.
71
EIGRP Routing Protocol
72
EIGRP Routing Protocol
73
BGP Routing Protocol
• Border Gateway Protocol (BGP) is the
slowest yet the biggest routing protocol in
the world.
• BGP is the routing protocol of the
Internet.
• BGP is a distance vector routing protocol
and an exterior gateway protocol.
74
BGP Routing Protocol
• Forms neighbor relationship through
autonomous system (AS) peering.
• It requires an IGP to advertise routes to
another autonomous systems.
75
BGP Routing Protocol
76
Thank you!
Stay safe and God bless,
Future Electronics / Network Engineers!
☺
- Sir Jepp
77