Assignment-3 UNIT-3 Network Layer: Q1.What Is Distance Vector Routing Algorithm? Explain With Example
Assignment-3 UNIT-3 Network Layer: Q1.What Is Distance Vector Routing Algorithm? Explain With Example
UNIT-3
NETWORK LAYER
Ans:- Historically known as the old ARPANET routing algorithm {or known as
Bellman-Ford (BF) algorithm}.
BF Basic idea: each router maintains a Distance Vector table containing the
distance between itself and ALL possible destination nodes.
Distances, based on the chosen metric, are computed using information from the
neighbors’ distance vectors.
2. associated with each link connected to a router, there is a link cost (static or
dynamic).
4. Distance to itself = 0
2. Each router receives and saves the most recently received distance vector
from each of its neighbors.
Figure (a) A subnet. (b) Input from A, I, H, K, and the new routing table for J.
Q.2 Describe the concept of Congestion Control? Also explain Token Bucket
algorithm.
Open loop congestion control policies are applied to prevent congestion before it
happens. The congestion control is handled either by the source or the
destination.
Ans:-Link state bonding is the second family of routine protocols. While distance
vector routers use a distributed algorithm to compute their routing tables, link-
state routing uses link-state routers to exchange messages that allow each router
to learn the entire network topology, each router then able to compute its
routing table by using a shortest path computation.
2. Link state database – A collection information gathered from link state packet.
3. Shortest path first algorithm - A calculation performed on the database results
into shortest path.
Q4. List all the policies which are used to prevent congestion in a network.
Ans:-
1. Retransmission Policy :
It is the policy in which retransmission of the packets are taken care. If the
sender feels that a sent packet is lost or corrupted, the packet needs to be
retransmitted. This transmission may increase the congestion in the network.
To prevent congestion, retransmission timers must be designed to prevent
congestion and also able to optimize efficiency.
2. Window Policy :
The type of window at the sender side may also affect the congestion. Several
packets in the Go-back-n window are resent, although some packets may be
received successfully at the receiver side. This duplication may increase the
congestion in the network and making it worse.
Therefore, Selective repeat window should be adopted as it sends the specific
packet that may have been lost.
3. Discarding Policy :
A good discarding policy adopted by the routers is that the routers may
prevent congestion and at the same time partially discards the corrupted or
less sensitive package and also able to maintain the quality of a message.
In case of audio file transmission, routers can discard less sensitive packets to
prevent congestion and also maintain the quality of the audio file.
4. Acknowledgment Policy :
Since acknowledgement are also the part of the load in network, the
acknowledgment policy imposed by the receiver may also affect congestion.
Several approaches can be used to prevent congestion related to
acknowledgment.
The receiver should send acknowledgement for N packets rather than sending
acknowledgement for a single packet. The receiver should send a
acknowledgment only if it has to sent a packet or a timer expires.
5. Admission Policy :
In admission policy a mechanism should be used to prevent congestion.
Switches in a flow should first check the resource requirement of a network
flow before transmitting it further. If there is a chance of a congestion or there
is a congestion in the network, router should deny establishing a virtual
network connection to prevent further congestion.
Q6. What are basic needs to establish a network between two hosts. Explain
all.
Ans:- Switches , routers , and wireless access points are the essential networking
basics. Though them , devices connected to the network can communicate with
one another and with other networks like the internet.