Ch.9 Static and Dynamic Routing
Ch.9 Static and Dynamic Routing
2
IP Routing Basics
• Once you create an internetwork by connecting
your wide area networks (WANs) and local area
networks (LANs) to a router, you then need to
configure logical network addresses, such as IP
addresses, to all hosts on the internetwork so that
they can communicate via routers across that
internetwork.
• In IT, routing essentially refers to the process of
taking a packet from one device and sending it
through the network to another device on a different
network. Routers don’t really care about hosts—
they only care about networks and the best path to
each network.
3
IP Routing Basics Continued
• The logical network address of the destination host is
used to get packets to a network through a routed
network, and then the hardware address of the host is
used to deliver the packet from a router to the correct
destination host.
• If your network has no routers, then it should be
apparent that you are not routing. But if you do have
them, they’re there to route traffic to all the networks in
your internetwork.
• To be capable of routing packets, a router must know at
least the following information:
– Destination address
– Neighbor routers from which it can learn about remote networks
– Possible routes to all remote networks
– The best route to each remote network
– How to maintain and verify routing information
4
IP Routing Basics Continued
• The router learns about remote networks from neighbor
routers or from an administrator. The router then builds
a routing table (a map of the internetwork) that describes
how to find the remote networks. If a network is directly
connected, then the router already knows how to get to
it.
• If a network isn’t directly connected to the router, the
router must use one of two ways to learn how to get to it.
• One way is called static routing, which can be a ton of
work because it requires someone to hand-type all
network locations into the routing table. The other way is
known as dynamic routing.
• In dynamic routing, a protocol on one router
communicates with the same protocol running on
neighbor routers.
5
Routing Requirements
Fa0/0
10.10.10.1/24
Lab_A Fa0/1 .1
S0/0
10.10.40.1/24 10.10.20.1/24
Fa0/2
10.10.30.1/24
Looking at the figure, can you figure out which interface Lab_A
will use to forward an IP datagram to a host with an IP address of
10.10.10.10? 7
The IP Routing Process
What happens when Host_A wants to communicate with Host_B
on a different network?
Host_A Host_B
E0 E1
172.16.10.1 Lab_A 172.16.20.1
172.16.10.2 172.16.20.2
RouterA RouterB
S0/0
S0/0
Fa0/0 Fa0/0
HostA
HTTP Server
Fa0/0
HTTPS Server
HostA
1. The destination address of a frame from HostA will be the MAC
address of the __________________________.
2. The destination address of a packet will be the IP address of
the _______________________.
3. The destination port number in the segment header will have
12 a
value of ___.
AS (Autonomous System)
• Autonomous
– Existing as an independent entity
• Group of IP routes under common control
• RFC 1930, Section 3: Definitions
– “An AS is a connected group of one or more
IP prefixes run
by one or more network operators which has a
SINGLE and CLEARLY DEFINED routing
policy.”
ASN (Autonomous System Number)
15
Static and Dynamic Routing
•There are several ways to configure the routing tables to
include all the networks so that packets will be forwarded.
16
Link State Routing Protocols
20
Static and Dynamic Routing
Dynamic routing protocols break up into many different
categories or types of protocols, as shown in the figure.
The first split in the dynamic protocol branch is the division
of interior gateway protocols (IGPs) and exterior gateway
protocols (EGPs).
21
Static and Dynamic Routing
That is the end of the EGP branch of the tree, but the IGP
branch continues to split out as we go down further.
Looking at the figure, with the IGP split, you can see that there
are two primary categories: Distance Vector (DV) and Link
State (LS) routing protocols.
22
Static and Dynamic Routing
We’re going to discuss all of these types of protocols in the
next chapters. But in the Distance Vector category, for
example, we have RIP and Interior Gateway Routing Protocol
(IGRP). Under the Link State category are OSPF and
Intermediate System-to-Intermediate System (IS-IS).
23
Static and Dynamic Routing
Now, in this figure, you can see from the diagram that there is
a third category: the Hybrid Protocol category.
• Summary
• Exam Essentials Section
• Written Labs
• Review Questions
27