Unit 3
Unit 3
the Bellman-Ford algorithm will work such that for each router, they will have
entries for each other. Router A will infer that it can reach B at a cost of 2
units, and B will infer that it can reach C at a cost of 1 unit.
• where the connection between B and C gets disconnected. In
this case, B will know that it cannot get to C at a cost of 1
anymore and update its table accordingly.
• it can be possible that A sends some information to B that it is
possible to reach C from A at a cost of 2.
• Then, since B can reach A at a cost of 1, B will erroneously
update its table that it can reach C via A at a cost of 1 + 2 = 3
units. A will then receive updates from B and update its costs
to 4, and so on
• Thus, the process enters into a loop of bad feedback and the
cost shoots towards infinity. This entire situation is called the
Count to Infinity problem.
Link state routing
• ARPANET (transfer the data at a long distance
without using mobile such media) distance
vector routing is identified in 1970
• Link state routing replace this how means it
(count to infinity) is a task that attain in
topology
• If any failure occurs means transmission takes
long time to reach the data
5 rules
• Discover the neighbours and learn the network
address
• Set the distance or cost metric to each of its
neighbours
• Construct a packet telling all it learned
• Send this packet to and receive packets from all
other routers
• Compute the shortest path to every other
router
Learning about the neighbours
• Identify the nearest neighbours initially
through LAN it will be connected. Later
through artificial network N is created through
A,C,F is are connected
• now only one node N plays a role in
connecting all nodes
Selecting Link cost
• It need cost metric to identify the shortest
path
• Cost is set automatically by network
configuration
• Based on bandwidth it is calculated
• If any delay at that time ECHO packet is used
to retransmit the data
Building link state packets
• Based on the cost given in network the table is created
with source and destination address with cost
parameter
• When Information needed for exchange is collected, a
router then builds a packet containing all the data.
• The packet starts with the identity of the sender,
followed by a sequence number( A sequence number is
a consecutive number in a sequence of numbers,
usually of real integers)and age, and a list of neighbors.
For each neighbor, the delay to that neighbor is given
Congestion control
• Too many packets lies in the same network cause
packet delay and loss of packets that shows in
worst performance
• This situation is congestion
• Network layer and transport layer is responsible
for handling congestion
• Congestion usually occurs within network
network layer directly experinece this
• And it decide what to do with this excess packets
• Control the congestion to reduce the load that the
transport layer is placing on network
• To reduce this both transport layer and network layer
work together
• When number of packets host send in the network is well
within its carrying capacity then the number of delivery is
proportional to number sent
• If twice as many as are sent then twice is to be delivered
• Here there is no of packets means the router maintains a
buffer inside before getting acknowledgement it wont
removed
• Goodput-the rate at which useful packets are
delivered
• Congestion collapse- when send data packets is
beyond the capacity is identifies and recovered
• Capacity of network is always ideal in nature
• Onset of congestion-identify the congestion
• Desirable response- predicts the congestion and
removes its with the help of router buffer then
move to ideal state
Congestion Control and Avoidance
• Congestion Control is concerned with
efficiently using a network at high load.
• Several techniques can be employed.
These include:
• The first 2 deals with congestion deduction
and last two deals with congestion avoidence
Principles of Congestion Control
Congestion:
• informally: “too many sources sending too
much data too fast for network to handle”
• different from flow control!
• this is = to end-to-end issue!
• lost packets (buffer overflow at routers)
• long delays (queue-ing in router buffers)
Causes of Congestion