TCS 222 Week - 6 - Dealing - With - RIP - Failures
TCS 222 Week - 6 - Dealing - With - RIP - Failures
3
FLASH BACK_RIPv1 OPERATION
Routing Information Protocol (RIP) was originally specified in RFC 1058. It has the following
key characteristics:
1) Hop count is used as the metric for path selection: Classical distance vector
routing protocol
2) If the hop count for a network is greater than 15, RIP cannot supply a route to
that network .i.e. Uses a cost of 16 for unreachable networks
3) Router subsequently floods routing table entries every 30 seconds by default.
4) No attempt to handshake with neighboring routers
5) Repetitions confirm continued reachability of routes (This may leads to looping?)
6) Broken routes not re-advertised by the router
7) On start-up, a router knows only about its directly connected networks
8) Requests routing table of adjacent routers (neighbours) to build up its own
routing table
9) Does not support VLSM means:
I. Router compares received information with its own routing information.
II. It records first-learnt path with lowest number of hops to remote network
4
Dealing With Failure & RIP Refinements
5
How would the problem solved?
6
PACKET LOOPING AND COUNT TO INFINITY
What is a Routing Loop?
A routing loop is a condition in which a packet is continuously transmitted within a series of
routers without ever reaching its intended destination network.
A routing loop can occur when two or more routers have routing information that
incorrectly indicates that a valid path to an unreachable destination exists.
The loop may be a result of:
o Incorrectly configured static routes
o Incorrectly configured route redistribution (redistribution is a process of handing the routing
information from one routing protocol to another routing protocol
o Inconsistent routing tables not being updated due to slow convergence in a changing network
o Incorrectly configured or installed discard routes
ü Routing loops are less of a problem with link-state routing protocols but can occur under certain
circumstances.
ü IP has a Time-to-Live (TTL)
7
COUNT TO INFINITY....
8
WHAT ARE THE IMPLICATIONS
OF ROUTING LOOPS?
A routing loop can have a devastating effect on a network,
resulting in degraded network performance or even a network
downtime.
A routing loop can create the following conditions:
Link bandwidth will be used for traffic looping back and forth between the
routers in a loop.
A router's CPU will be strained due to looping packets.
A router's CPU will be burdened with useless packet forwarding that will
negatively impact the convergence of the network.
Routing updates may get lost or not be processed in a timely manner. These
conditions would introduce additional routing loops, making the situation
even worse.
Packets may get lost
9
RIP REFINEMENTS
10
RIP TIMERS
1. INVALID TIMER. If an update has not been received to refresh an existing route after
180 seconds (the default), the route is marked as invalid by setting the metric to 16.
2. FLUSH TIMER. By default, the flush timer is set for 240 seconds, which is 60 seconds
longer than the invalid timer. When the flush timer expires, the route is removed from
the routing table
3. HOLD-DOWN TIMERS: Once a route is marked as unreachable, it must stay in
holddown long enough for all routers in the topology to learn about the unreachable
network. By default, the holddown timer is set for 180 seconds.
13
TRIGGERED UPDATES AND ROUTE
POISONING cont....
14
Study Questions
The diagram in Figure 2 shows a company
internetwork comprising five site LANs, LAN1 –
LAN5, interconnected through five routers, R1 –
R5 and five wide area links, W1 – W5.
a. Explain how a distance vector routing protocol,
such as RIP, would build up the routing tables
for this internetwork. Start from the point
where all routers are switched on for the first
time and show the routing tables for R1, R2
and R3 once the network has converged.
b. The basic RIP algorithm suffers from the
problem known as count to infinity. Explain
this problem, using the example where R2
advertises slightly ahead of its two neighbours,
R1 and R3, and loses its connection to LAN2
just after it has advertised.
c. Using this example, explain how the count-to-
infinity is avoided using the additional routing
feature known as split horizon. Show the
routing tables for R1, R2 and R3 that result
from adding this feature to the version of RIP
15
running on the example internetwork.
Further Reading
Topics that will NOT be
Author Chapters and main topics examined from these
sections
Forouzan 21 Network Layer: Delivery,
(4th edition) Forwarding and Routing
Tanenbaum
5.2 Routing Algorithms
(4th edition) Multicast Routing
(covered in 400 Level)
Stallings
12. Routing in Switched Networks
(7th edition)