Routing Protocols Bellman-Ford Algorithm: Vector Routing Protocol Is One of The Two Major Classes of
Routing Protocols Bellman-Ford Algorithm: Vector Routing Protocol Is One of The Two Major Classes of
vector routing protocol is one of the two major classes of routing protocols, the other
major class being the link-state protocol. A distance-vector routing protocol uses
the Bellman-Ford algorithm to calculate paths.
Distance Vector means that Routers are advertised as vector of distance and direction.
'Direction' is represented by next hop address and exit interface, whereas 'Distance'
uses metrics such as hop count.
Routers using distance vector protocol do not have knowledge of the entire path to a
destination. Instead DV uses two methods:
Routing is the task of finding a path from a sender to a desired destination. In the IP
"Catenet model" this reduces primarily to a matter of finding gateways between
networks. As long as a message remains on a single network or subnet, any routing
problems are solved by technology that is specific to the network. For example, the
Ethernet and the ARPANET each define a way in which any sender can talk to any
specified destination within that one network. IP routing comes in primarily when
messages must go from a sender on one such network to a destination on a different
one. In that case, the message must pass through gateways connecting the networks. If
the networks are not adjacent, the message may pass through several intervening
networks, and the gateways connecting them. Once the message gets to a gateway
that is on the same network as the destination, that network's own technology is used to
get to the destination.
Throughout this section, the term "network" is used generically to cover a single
broadcast network (e.g., an Ethernet), a point to point line, or the ARPANET. The critical
point is that a network is treated as a single entity by IP. Either no routing is necessary
(as with a point to point line), or that routing is done in a manner that is transparent to
IP, allowing IP to treat the entire network as a single fully-connected system (as with an
Ethernet or the ARPANET). Note that the term "network" is used in a somewhat
different way in discussions of IP addressing. A single IP network number may be
assigned to a collection of networks, with "subnet" addressing being used to describe
the individual networks. In effect, we are using the term "network" here to refer to
subnets in cases where subnet addressing is in use.
Limitations:
Count-to-infinity problem
The Bellman-Ford algorithm does not prevent routing loops from happening and suffers
from the count-to-infinity problem. The core of the count-to-infinity problem is that if A
tells B that it has a path somewhere, there is no way for B to know if the path has B as a
part of it. To see the problem clearly, imagine a subnet connected like as A-B-C-D-E-F,
and let the metric between the routers be "number of jumps". Now suppose that A goes
down (out of order). In the vector-update-process B notices that the route to A, which
was distance 1, is down - B does not receive the vector update from A. The problem is,
B also gets an update from C, and C is still not aware of the fact that A is down - so it
tells B that A is only two jumps from C (C to B to A) , which is false. This slowly
propagates through the network until it reaches infinity (in which case the algorithm
corrects itself, due to the "Relax property" of Bellman Ford).
Partial solutions:
RIP uses Split Horizon with Poison Reverse technique to reduce the chance of forming
loops and uses a maximum number of hops to counter the 'count-to-infinity' problem.
These measures avoid the formation of routing loops in some, but not all, cases. The
addition of a hold time (refusing route updates for a few minutes after a route retraction)
avoids loop formation in virtually all cases, but causes a significant increase in
convergence times.
A number of loop-free distance vector protocols, such as EIGRP and DSDV, have been
developed. These avoid loop formation in all cases, but suffer from increased
complexity, and their deployment has been slowed down by the success of link-state
routing protocols such as OSPF.