Chuong 1 RoutingConcepts
Chuong 1 RoutingConcepts
Routing Concepts
Spring 2014
Inside the Router
Routers are computers
Router CPU and Memory
Internetwork Operating System
Router Bootup Process
Router Ports and Interfaces
Routers and the Network Layer
Chapter 1
1.0 Routing Concepts
1.1 Initial Configuration of a Router
1.2 Routing Decisions
1.3 Router Operation
1.4 Summary
Chapter 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.
Note
Almost everything in this chapter will be covered in more
detail in later chapters.
This course is about understanding and to be able to
analyze/troubleshoot networks, not how to type in a
command.
Example: show ip route
Type in the command (easy)
Explain what the output is displaying (more
understanding)
Analyze why you are seeing this information but also
know if there is anything missing or if there is
something you shouldn’t be seeing.
That is what this course is about!
Characteristics of a Network
Network Characteristics and Attributes
Topology
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.
Network
Characteristics and
Attributes
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.
Security:
Indicates how protected the network is, including the information
that is transmitted over the network.
Network
Characteristics and
Attributes
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).
Routers
Why Routing?
The router is responsible for the routing of traffic between
networks.
What is a Router?
Volatile /
Memory Stores
Non-Volatile
• Running IOS
RAM
• Running configuration file
Volatile
(Random Access • IP routing and ARP tables
Memory)
• Packet buffer
• Bootup instructions
ROM
(Read-Only Non-Volatile • Basic diagnostic software
Memory)
• Limited IOS
• IOS
Flash Non-Volatile
• Other system files
Router Backplane
Console
RJ45 USB
Ports
Two 4 GB flash card slots Console
USB Type B
Routers vs Multilayer Switches
Routers use routing tables to determine the best path to send packets.
Routers encapsulate the packet and forward it to the interface indicated
in routing table.
Router
Functions
CPU
2nd Packet
3rd Packet
4th Packet
5th Packet
CPU
CPU
.1 .1 .1
.2
.10 .10
Hosts Addressing
A host can be assigned IP address
information either:
Statically - The host is manually
assigned the correct IP address,
subnet mask, and default gateway.
The DNS server IP address can also
be configured.
Dynamically - IP address
information is provided by a server
using the Dynamic Host
Configuration Protocol (DHCP). The
DHCP server provides a valid IP
address, subnet mask, and default
gateway for end devices. Other
information may be provided by the
server.
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.
Cisco 1941 LEDs
Console Connection
SSH Console Connection
Serial port
USB
Type-A port
.2
.2
.2
.2
.2
.2
.2
.2
.2
.2
.2
.2
.2
.2
2001:0DB8:ACAD:2::/64
Configuring IPv6 Address on Gi0/0
2001:0DB8:ACAD:1::/64
:10 G0/0 2001:0DB8:ACAD:3::/64
PC1
:1
:1
S0/0/0
R1
:10 :1
PC2 G0/1
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:0005::/64
.2
.2
.2
.2
<output omitted.
.2
.2
R1#
Verifying the R1 Gi0/0 Interface
R1#show interfaces gigabitEthernet 0/0
GigabitEthernet0/0 is up, line protocol is up
Hardware is CN Gigabit Ethernet, address is fc99.4775.c3e0 (bia
fc99.4775.c3e0)
Description: Link to LAN 1
Internet address is 192.168.10.1/24
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 100Mbps, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:05:21, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
329 packets input, 70930 bytes, 0 no buffer
Received 298 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
437 packets output, 47524 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
30 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
R1#
Verify the R1 Gi0/1 Interface
R1# show interfaces gigabitEthernet 0/1
GigabitEthernet0/1 is up, line protocol is up
Hardware is CN Gigabit Ethernet, address is fc99.4775.c3e1 (bia
fc99.4775.c3e1)
Description: Link to LAN 2
Internet address is 192.168.11.1/24
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 100Mbps, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:11, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
614 packets input, 125730 bytes, 0 no buffer
Received 585 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 306 multicast, 0 pause input
717 packets output, 77198 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
228 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
R1#
Verify the R1 Serial Interface
R1# show interfaces serial 0/0/0
Serial0/0/0 is up, line protocol is up
Hardware is WIC MBRD Serial
Description: Link to R2
Internet address is 209.165.200.225/30
MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:03, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
714 packets input, 52752 bytes, 0 no buffer
Received 714 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
714 packets output, 53070 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
1 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
R1#
Verify the R1 Interface Status
2001:0DB8:ACAD:1::/64
:10 G0/0 2001:0DB8:ACAD:3::/64
PC1
:1
:1
S0/0/0
R1
:10 :1
PC2 G0/1
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
<output omitted>
C 2001:DB8:ACAD:1::/64 [0/0]
via GigabitEthernet0/0, directly connected
L 2001:DB8:ACAD:1::1/128 [0/0]
via GigabitEthernet0/0, receive
C 2001:DB8:ACAD:2::/64 [0/0]
via GigabitEthernet0/1, directly connected
L 2001:DB8:ACAD:2::1/128 [0/0]
via GigabitEthernet0/1, receive
C 2001:DB8:ACAD:3::/64 [0/0]
via Serial0/0/0, directly connected
L 2001:DB8:ACAD:3::1/128 [0/0]
via Serial0/0/0, receive
L FF00::/8 [0/0]
via Null0, receive
R1#
Verify the R1 Interface Status
2001:0DB8:ACAD:1::/64
:10 G0/0 2001:0DB8:ACAD:3::/64
PC1
:1
:1
S0/0/0
R1
:10 :1
PC2 G0/1
2001:0DB8:ACAD:2::/64
2001:0DB8:ACAD:2::/64
R1#
R1#show ip interface brief | exclude up
Interface IP-Address OK? Method Status
Protocol
Embedded-Service-Engine0/0 unassigned YES unset administratively down down
R1#
R1#show running-config | begin line
line con 0
password 7 110A1016141D
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 030752180500
Command History Feature
R1#terminal history size 200
R1#
R1#show history
show ip interface brief
show interface g0/0
show ip interface g0/1
show ip route
show ip route 209.165.200.224
show running-config interface s0/0/0
terminal history size 200
show history
R1#
The command history feature temporarily stores a list of executed commands:
To recall commands press Ctrl+P or the UP Arrow.
To return to more recent commands press Ctrl+N or the Down Arrow.
By default, command history is enabled and the system captures the last 10
commands in the buffer.
Use the show history privileged EXEC command to display the buffer contents.
Use the terminal history size user EXEC command to increase or decrease size
of the buffer.
Lab 1.1.4.6
Routers Operate at Layers 1, 2, and 3
(Decisions made at Layer 3)
71
Remember: Encapsulation
These addresses
do not change!
72
Layer 2 Data Link Frame Layer 3 IP Packet
Dest.
Dest.Add
MAC
MAC Source Add
MAC Type Dest. IP Source IP IP Data Trailer
0B-31
FF-FF
00-10 0A-10
00-20 800 192.168.4.10 192.168.1.10 fields
73
Layer 2 Data Link Frame Layer 3 IP Packet
74
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC Source
Source MAC
MAC Type
Type Dest. IP Source IP IP Data Trailer
Trailer
0B-31
00-10 00-20
0A-10 800
800 192.168.4.10 192.168.1.10 fields
75
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC
Add Source MAC
Add Type Dest. IP Source IP IP Data Trailer
FF-FF
0B-31 00-20 800 192.168.4.10 192.168.1.10 fields
76
Layer 2 Data Link Frame Layer 3 IP Packet
Dest.
Dest.Add
MAC Source
SourceAdd
MAC Type
Type Dest. IP Source IP IP Data Trailer
FF-FF
0B-20 0C-22 800
800 192.168.4.10 192.168.1.10 fields
77
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC Source MAC Type Dest. IP Source IP IP Data Trailer
0B-20 0C-22 800 192.168.4.10 192.168.1.10 fields
78
Layer 2 Data Link Frame Layer 3 IP Packet
Dest.
Dest.Add
MAC
MAC Source Add
MAC Type Dest. IP Source IP IP Data Trailer
0B-31
FF-FF
00-10 0A-10
00-20 800 192.168.4.10 192.168.1.10 fields
79
Routing Decisions
Best Path Which path is
my “best path”?
OSPF’s metric is
bandwidth
?
EIGRP is bandwidth +
delay
Equal Cost ?
Load
Balancing ?
192.168.1.0/24
Cisco ISR routers can support a variety of dynamic IPv6 routing protocols
including:
RIPng - RIP next generation
OSPFv3
EIGRP for IPv6
MP-BGP4 - Multicast Protocol-Border Gateway Protocol
Chapter 1: Summary
This chapter introduced the router.
The main purpose of a router is to connect multiple networks and forward
packets from one network to the next.
The routing table is a list of networks known by the router.
A remote network is a network that can only be reached by forwarding
the packet to another router.
Remote networks are added to the routing table in one of two ways:
either by the network administrator manually configuring static routes or
by implementing a dynamic routing protocol.
In many cases, a routing table will contain both static and dynamic routes.
Components of the IPv6 routing table are very similar to the IPv4 routing
table.
For instance, it is populated using directly connected interfaces, static
routes and dynamically learned routes.
Chapter 1
Routing Concepts
Spring 2014