Lecture 7 Routing Algorithm
Lecture 7 Routing Algorithm
Lecture 7 Routing Algorithm
Algorithm
Switching, Routing, and Wireless Essentials v7.0
(SRWE)
Contents
Define Routing and classify the Routing Algorithms.
A network with bandwidth of 10 Mbps can pass only an average of 12,000 packets per minute with each
packet carrying an average of 10,000 bits. Calculate the throughput of this network.
Mention the elements of Network Protocols.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Path Determination
Two Functions of a Router
When a router receives an IP packet on one interface, it determines which interface to
use to forward the packet to the destination. This is known as routing. The interface that
the router uses to forward the packet may be the final destination.
The primary functions of a router are to determine the best path to forward packets based
on the information in its routing table, and to forward packets toward their destination.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
Path Determination
Router Functions Example
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Basic Router Configuration Review
Configuration Commands
R1(config)# ipv6 unicast-routing
Router> enable R1(config)# interface gigabitethernet 0/0/0
Router# configure terminal R1(config-if)# description Link to LAN 1
Enter configuration commands, one per line. End with R1(config-if)# ip address 10.0.1.1 255.255.255.0
CNTL/Z. R1(config-if)# ipv6 address 2001:db8:acad:1::1/64
Router(config)# hostname R1 R1(config-if)# ipv6 address fe80::1:a link-local
R1(config)# enable secret class R1(config-if)# no shutdown
R1(config)# line console 0 R1(config-if)# exit
R1(config-line)# logging synchronous R1(config)# interface gigabitethernet 0/0/1
R1(config-line)# password cisco R1(config-if)# description Link to LAN 2
R1(config-line)# login R1(config-if)# ip address 10.0.2.1 255.255.255.0
R1(config-line)# exit R1(config-if)# ipv6 address 2001:db8:acad:2::1/64
R1(config)# line vty 0 4 R1(config-if)# ipv6 address fe80::1:b link-local
R1(config-line)# password cisco R1(config-if)# no shutdown
R1(config-line)# login R1(config-if)# exit
R1(config-line)# transport input ssh telnet R1(config)# interface serial 0/1/1
R1(config-line)# exit R1(config-if)# description Link to R2
R1(config)# service password-encryption R1(config)# R1(config-if)# ip address 10.0.3.1 255.255.255.0
banner motd # R1(config-if)# ipv6 address 2001:db8:acad:3::1/64
Enter TEXT message. End with a new line and the # R1(config-if)# ipv6 address fe80::1:c link-local
*********************************************** R1(config-if)# no shutdown
WARNING: Unauthorized access is prohibited! R1(config-if)# exit
*********************************************** R1# copy running-config startup-config
# Destination filename [startup-config]?
Building configuration...
[OK]
R1#
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Basic Router Configuration Review
Verification Commands
Common verification commands include the following:
• show ip interface brief
• show running-config interface interface-type number
• show interfaces
• show ip interface
• show ip route
• ping
In each case, replace ip with ipv6 for the IPv6 version of the command.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
Static and Dynamic Routing
Dynamic Routing Evolution (Cont.)
The table classifies the current routing protocols. Interior Gateway Protocols (IGPs) are
routing protocols used to exchange routing information within a routing domain
administered by a single organization. There is only one EGP and it is BGP. BGP is used
to exchange routing information between different organizations, known as autonomous
systems (AS). BGP is used by ISPs to route packets over the internet. Distance vector,
link-state, and path vector routing protocols refer to the type of routing algorithm used to
determine best path.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
Static and Dynamic Routing
Best Path
The 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 quantitative value used to
measure the distance to a given network. The best path to a network is the path with the
lowest metric.
Dynamic routing protocols typically use their own rules and metrics to build and update
routing tables. The following table lists common dynamic protocols and their metrics.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
Static and Dynamic Routing
Load Balancing
When a router has two or more paths to a destination with equal cost metrics, then the
router forwards the packets using both paths equally. This is called equal cost load
balancing.
• The routing table contains the single destination network, but has multiple exit
interfaces, one for each equal cost path. The router forwards packets using the
multiple exit interfaces listed in the routing table.
• If configured correctly, load balancing can increase the effectiveness and performance
of the network.
• Equal cost load balancing is implemented automatically by dynamic routing protocols.
It is enabled with static routes when there are multiple static routes to the same
destination network using different next-hop routers.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
Module 14: Routing Concepts
New Terms and Commands
• best path • ip route • IS-IS for IPv6
• IS-IS
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16