Chapter 1 Routing Concepts
Chapter 1 Routing Concepts
Chapter 1 Routing Concepts
Chapter 1
Routing Concepts
H.Swaih 1
Objectives
Configure a router to route between multiple directly connected
networks
Describe the primary functions and features of a router.
Explain how routers use information in data packets to make
forwarding decisions in a small‐ to medium‐sized business
network.
Explain the encapsulation and de‐encapsulation process used by
routers when switching packets between interfaces.
Compare ways in which a router builds a routing table when
operating in a small‐ to medium‐sized business network.
Explain routing table entries for directly connected networks.
Explain how a router builds a routing table of directly connected
networks.
Explain how a router builds a routing table using static routes.
Explain how a router builds a routing table using a dynamic
routing protocol.
H.Swaih 2
1
12/22/2017
Functions of a Router
Characteristics of a Network
H.Swaih 3
Functions of a Router
Characteristics of a Network
Physical Topology:
– Is the arrangement of the cables, network devices, and end
systems.
– It describes how the network devices are actually
interconnected with wires and cables.
Logical Topology:
– Is the path over which the data is transferred in a network.
– It describes how the network devices appear connected to
network users.
Speed:
– The measure of the data rate in bits per second (b/s) of a given
link.
Cost:
– Indicates the general expense for purchasing of network
components, and installation and maintenance of the network.
H.Swaih 4
2
12/22/2017
Functions of a Router
Characteristics of a Network
Security:
– Indicates how protected the network is, including the
information that is transmitted over the network.
Availability:
– Is a measure of the probability that the network is available for
use when it is required.
Scalability:
– Indicates how easily the network can accommodate more users
and data transmission requirements.
Reliability:
– Indicates the dependability of the components that make up the
network, such as the routers, switches, PCs, and servers.
– Often measured as a probability of failure or as the mean time
between failures (MTBF).
H.Swaih 5
Functions of a Router
Why Routing?
The router is responsible for the routing of traffic between
networks.
H.Swaih 6
3
12/22/2017
Functions of a Router
Routers are Computers
A router is a specialized computer!
– It sends packets over the data network.
It is responsible for interconnecting networks by selecting the best
path for a packet to travel and forwarding packets to their
destination
Regardless of their function, all router models are essentially
computers and require components to operate, (as shown in the
figure next slide):
– Operating systems (OS)
– Central processing units (CPU)
– Random‐access memory (RAM)
– Read‐only memory (ROM)
Routers also have special memory that includes Flash and
nonvolatile random‐access memory (NVRAM).
H.Swaih 7
Functions of a Router
Routers are Computers (cont.)
H.Swaih 8
4
12/22/2017
Functions of a Router
Router Memory
Volatile /
Memory Stores
Non‐Volatile
RAM • Running IOS
• Running configuration file
Volatile
(Random Access • IP routing and ARP tables
Memory) • Packet buffer
ROM • Bootup instructions
(Read‐Only Non‐Volatile • Basic diagnostic software
Memory) • Limited IOS
NVRAM
(Non‐Volatile Non‐Volatile • Startup configuration file
RAM)
• IOS
Flash Non‐Volatile
• Other system files
H.Swaih 9
Functions of a Router
Routers are Computers
Routers use specialized ports and network interface cards to interconnect
to other networks.
Backplane of a Router
Double-wide eHWIC slots eHWIC 0 AUX LAN
port interfaces
Console
RJ45 USB
Ports
Two 4 GB flash card slots Console
USB Type B
H.Swaih 10
5
12/22/2017
Functions of a Router
Routers Interconnect Networks
Routers can connect multiple networks.
Routers have multiple interfaces, each on a different IP network.
Note:
WAN connection is
commonly used to
connect a LAN to the
Internet service
provider (ISP)
network.
H.Swaih 11
Functions of a Router
Routers Choose Best Paths
H.Swaih 12
6
12/22/2017
Functions of a Router
Routers Choose Best Paths (cont.)
H.Swaih 13
Functions of a Router
Routers Choose Best Paths (cont.)
The router uses its routing table to determine the best path to forward
the packet.
– When the router receives a packet, it examines its destination IP
address and searches for the best network address match in the
routing table.
– The routing table entries also includes the interface to be used to
forward the packet.
– Once a match is found, the router encapsulates the IP packet into
the data link frame of the outgoing or exit interface.
– The packet is then forwarded toward its destination.
NOTE: It is possible for a router to receive a packet that is encapsulated in
one type of data link frame, and to forward the packet out of an interface
that uses a different type of data link frame. For example, a router may
receive a packet on an Ethernet interface, but must forward the packet out
of an interface configured with the Point‐to‐ Point Protocol (PPP), such as
serial interface. H.Swaih 14
7
12/22/2017
8
12/22/2017
Functions of a Router
Analogy: CEF solves every
Packet Forwarding Methods possible problem ahead of time in a
spreadsheet.
3.Cisco Express Control Plane
Forwarding (CEF)
CPU
Connect Devices
Connect to a Network
H.Swaih 18
9
12/22/2017
Connect Devices
Home Office Devices Connect
Laptops and tablets connect
wirelessly to a home router.
A network printer connects
using an Ethernet cable to the
switch port on the home router.
The home router connects to
the service provider cable
modem using an Ethernet
cable.
The cable modem connects to
the Internet service provider
(ISP) network.
H.Swaih 19
Connect Devices
Branch Site Devices Connect
Corporate resources (i.e., file
servers and printers) connect to
Layer 2 switches.
PCs and VoIP phones connect to
Layer 2 Ethernet switches.
Laptops and smartphones
connect wirelessly to wireless
access points (WAPs).
WAPs connect to switches.
Layer 2 switches connect to the
edge router.
The edge router connects to a
WAN service provider (SP) and
an ISP for backup purposes.
H.Swaih 20
10
12/22/2017
Connect Devices
Central Site Devices Connect
PCs and VoIP phones connect to
Layer 2 Ethernet switches.
Layer 2 switches connect to Layer
3 switches using Ethernet fiber‐
optic cables.
Layer 3 switches connect to the
edge router.
The corporate website server is
connected to the edge router
interface.
The edge router connects to a
WAN SP and an ISP for backup
purposes.
H.Swaih 21
Connect Devices
Default Gateways
To enable network access devices must be configured with the following IP address
information
IP address ‐ Identifies a unique host on a local network.
Subnet mask ‐ Identifies the host’s network subnet.
Default gateway ‐ Identifies the router a packet is sent to to when the
destination is not on the same local network subnet.
H.Swaih 22
11
12/22/2017
Connect Devices
Document Network Addressing
Network Documentation should include at least the following in a topology diagram
and addressing table:
Device names
Interfaces used in the design
IP addresses and
subnet mask
Default gateways
H.Swaih 23
Connect Devices
Enable IP on a Host
A host can be assigned IP address information
either:
Statically Assigned IP address – The host is
manually assigned an IP address, subnet mask and
default gateway. A DNS server IP address can also
be assigned.
– Used to identify specific network resources
such as network servers and printers.
– Can be used in very small networks with few
hosts.
Dynamically Assigned IP Address – IP Address
information is dynamically assigned by a server
using Dynamic Host Configuration Protocol (DHCP).
– Most hosts acquire their IP address
information through DHCP.
– DHCP services can be provided by Cisco
routers.
H.Swaih 24
12
12/22/2017
Connect Devices
Device LEDs
Most network interfaces have one or two LED link indicators
next to the interface.
Generally:
– Green LED means a good connection
– Blinking green LED indicates network activity.
– No light then there may be a problem with either the
network cable or the network itself.
The switch port where the connection terminates would also
have an LED indicator lit.
– If one or both ends are not lit, try a different network
cable.
H.Swaih 25
Connect Devices
Device LEDs
Cisco 1941 LEDs
H.Swaih 26
13
12/22/2017
Connect Devices
Console Access Console Connection
SSH
Connect Devices
USB Serial Console Connection
14
12/22/2017
Connect Devices
Console Connection Requirements
Port on Terminal
Cable required Port on ISR
Computer emulation
Connect Devices
Console Connection Requirements
H.Swaih 30
15
12/22/2017
Connect Devices
Enable IP on a Switch
Network infrastructure devices require IP addresses to enable remote
management.
On a switch, the management IP address is assigned on a virtual interface.
31
H.Swaih
32
H.Swaih
16
12/22/2017
H.Swaih 33
.2
.2
H.Swaih 34
17
12/22/2017
.2
.2
35
H.Swaih
.2
.2
H.Swaih 36
18
12/22/2017
.2
.2
H.Swaih 37
H.Swaih 38
19
12/22/2017
H.Swaih 39
.2
.2
20
12/22/2017
.2
.2
.2
.2
H.Swaih 42
21
12/22/2017
H.Swaih 44
22
12/22/2017
2001:0DB8:ACAD:2::/64
H.Swaih 45
2001:0DB8:ACAD:2::/64
23
12/22/2017
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
H.Swaih 48
24
12/22/2017
2001:0DB8:ACAD:0005::/64
25
12/22/2017
R1(config)#interface loopback ?
<0-2147483647> Loopback interface number
Cisco IOS Software gives you plenty of loopback interfaces
H.Swaih 51
H.Swaih 52
26
12/22/2017
.2
.2
H.Swaih 53
.2
.2
<output omitted.
27
12/22/2017
.2
.2
H.Swaih 56
28
12/22/2017
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
29
12/22/2017
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
H.Swaih 60
30
12/22/2017
H.Swaih 61
H.Swaih 62
31
12/22/2017
H.Swaih 63
H.Swaih 64
32
12/22/2017
H.Swaih 65
These addresses
do not change!
H.Swaih 66
33
12/22/2017
Note: The "Type" field in Ethernet II frames tells the OS what kind of data the
frame carries – 0x0800, which means that the frame has an IPv4 packet
H.Swaih 67
H.Swaih 68
34
12/22/2017
H.Swaih 69
H.Swaih 70
35
12/22/2017
Path Determination
Routing Decisions
H.Swaih 71
Path Determination
Best Path
Best path is selected by a routing protocol based on the value or
metric it uses to determine the distance to reach a network:
A metric is the value used to measure the distance to a given
network.
Best path to a network is the path with the lowest metric.
Dynamic routing protocols use their own rules and metrics to build
and update routing tables:
Routing Information Protocol (RIP) ‐ Hop count
Open Shortest Path First (OSPF) ‐ Cost based on cumulative
bandwidth from source to destination
Enhanced Interior Gateway Routing Protocol (EIGRP) ‐ Bandwidth,
delay, load, reliability
H.Swaih 72
36
12/22/2017
Path Determination
Best Path Which path is
Best Path
my “best path”?
Path Determination
Load Balancing To reach the 192.168.1.0/24
network it is 2 hops via R2 and 2
hops via R4.
When a router has two or
?
more paths to a destination
with equal cost metrics, then
the Router will perform equal‐ ?
cost load balancing and
forwards the packets using
192.168.1.0/24
both paths equally;
Equal cost load balancing can improve network performance.
Equal cost load balancing can be configured to use both
dynamic routing protocols and static routes.
All routing protocols (RIP, EIGRP, OSPF) support equal cost
load balancing.
Only EIGRP supports unequal cost load balancing.
H.Swaih 74
37
12/22/2017
H.Swaih 75
H.Swaih 76
38
12/22/2017
The show ip route and show ipv6 route commands are used to
display the contents of the routing table:
Local route interfaces ‐ Added to the routing table when an
interface is configured. (displayed in IOS 15 or newer)
Directly connected interfaces ‐ Added to the routing table
when an interface is configured and active.
Static routes ‐ Added when a route is manually configured
and the exit interface is active.
Dynamic routing protocol ‐ Added when EIGRP or OSPF are
implemented and networks are identified.
H.Swaih 77
H.Swaih 78
39
12/22/2017
H.Swaih 79
H.Swaih 80
40
12/22/2017
H.Swaih 81
A routing table
with the directly
connected
interfaces of R1
configured and
activated.
H.Swaih 82
41
12/22/2017
H.Swaih 83
42
12/22/2017
H.Swaih 85
H.Swaih 86
43
12/22/2017
H.Swaih 87
H.Swaih 88
44
12/22/2017
H.Swaih 89
H.Swaih 90
45
12/22/2017
H.Swaih 91
H.Swaih 92
46
12/22/2017
H.Swaih 93
Chapter 1: Summary
There are many key structures and performance‐related
characteristics referred to when discussing networks:
topology, speed, cost, security, availability, scalability, and
reliability.
Cisco routers and Cisco switches have many similarities. They
support a similar modal operating system, similar command
structures, and many of the same commands.
One distinguishing feature between switches and routers is
the type of interfaces supported by each.
The main purpose of a router is to connect multiple networks
and forward packets from one network to the next. This
means that a router typically has multiple interfaces. Each
interface is a member or host on a different IP network.
H.Swaih 94
47
12/22/2017
H.Swaih 96
48