Академический Документы
Профессиональный Документы
Культура Документы
Iskra Djonova-Popova
Why are Routers Necessary?
A B
■ One of the key
components of
R1 R2
the technical
infrastructure of
the network R3
■ Connect networks
■ Provide the best
R4 R5
path from the
source to C
destination
Budapest, August 1999
Routing basics, RIP Iskra Dj. Popova 2
Sending Packets through
the Network
■ Sending packets on the same
subnet
Internet
■ Default router
■ Discovering the local router
R2
A
■ Using redirects
R1
B
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 3
The Internal Elements of a
Router
Routing table
Interfaces
Destination Next hop Interface
1
... ... 1
... ... 2 2
Routing Engine
4
Processing
network infrastructures
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 12
Distance-Vector Vs Link-
State
■ Distance-vector ■ Link-state protocols
protocols – Each router sends
– Each router information about
periodically sends to ■ links to which it is
his neighbors attached
■ how far is the ■ state of these links
destination – it is flooded
■ the next hop to get throughout the
there network
– Install routes directly – every router
in tables
Budapest, August 1999 Routing basics, RIP calculates
Iskra Dj. Popova its routing
13
The Role of IGPs
■ Maintain a coherent picture of the
network topology and address domain
in the router
■ Distribute this information to the other
routers
■ Maintain consistent routing tables,
such that the path to every
destination is “optimal”
■ Converge quickly when there are
changes
Budapest, August 1999 inRouting
thebasics,
network
RIP Iskra Dj. Popova 14
Example: Choosing an
R1
Optimal Path
R4
5
R7
40 5
5 R6 6 B
10
R2 15
A 10
20 R8
10
4
5 10
R3
R5
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 15
The Link Metric
■ Possible metrics
– hop count
– inverse of the link bandwidth
– delay
– dynamically calculated
– administratively assigned
– combination
■ Traffic should be monitored and
metrics adjusted
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 16
Example for Bad Metrics
Bandw.
256K
Metric 14
1024K
A 256K 1024K B
2
10 2
2048K 1
1
2048K
3 3 3 3
3
768K 768K 7 768K768K
68K
Bandw.
768K
Metric 17
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 17
RIP - Routing Information
Protocol
■ IGP, distance-vector protocol
■ First used in XNS (Xerox Network
Systems)
■ Designed as a component of the
networking code for the BSD release of
UNIX
■ incorporated in program “routed” (rote
management daemon)
■ First documented in rfc 1058
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 18
RIP - Characteristics
■ Packets are sent every 30 seconds
or faster when necessary
■ Route is considered down if not
refreshed within 180 sec. (distance
set to infinity)
■ Two kinds of messages
■ request
■ response
7 After
E
F four
8 After three iteratio
After G iterations Dest. Link
ns
two Hop
iteratio Dest. Link A local
Dest. Link Hop 0
ns
Hop A local B 1
A local 0 1
0 B 1 C 1
B 1 1 2
1 C 1 D 1
C 1 2 3
21999
Budapest, August D
Routing basics, RIP 1Iskra Dj. Popova E 2 22
E 2 3
A 1 B
C
In Case of a
4
2 5 D Link Failure
3 6
Routing table of node
7 afterA the
E before the
F 8 failure of failure of
Dest. Link link 1 link 3
G Dest. Link Dest. Link
Hop
E local Hop Hop
0 A local A local
A 2 0 0
1 B - B 2
B 3 - 2
1 C - C 2
C 3 - 3
2 D - D 2
D August 3 1999 - 4
Budapest, Routing basics, RIP Iskra Dj. Popova 23
3 E 2 E 2
Split-Horizon and Poison
Reverse
■ Split-horizon
– the information about destination routed on
the link is omitted
■ Poison reverse
– the corresponding distance is set to infinity
if the destination is routed on the link
Metric(4)
Compatible
■ August
Budapest, 1999 with
Routing RIP
basics, RIP Iskra Dj. Popova 32
RIP is not alone!
IGRP and EIGRP
■ Interior Gateway Protocol was
developed in the mid1980s by
Cisco Systems, Inc.
■ Designed to overcome the
limitations of RIP
■ Initially worked in IP
environment, but latter ported to
OSI CLNP networks
Budapest, August 1999 Routing basics, RIP Iskra Dj. Popova 33
IGRP - Main
Characteristics
■ Distance vector protocol
■ Uses a combination of metrics
– internetwork, delay, bandwidth, reliability
and load
■ the weighting factors are set either by
administrators or default values are
used