Unit 4
Unit 4
2. Discuss the principles of reliable flooding and its advantages and applications.
ANSWER:
Principles
The main objective of the network layer is to allow endsystems, connected to different networks,
to exchange information through intermediate systems called router. The unit of information in
the network layer is called a packet.
The network layer in the reference model
Before explaining the network layer in detail, it is useful to begin by analysing the service
provided by the datalink layer. There are many variants of the datalink layer. Some provide a
connection-oriented service while others provide a connectionless service. In this section, we
focus on connectionless datalink layer services as they are the most widely used. Using a
connection-oriented datalink layer causes some problems that are beyond the scope of this
chapter. See RFC 3819 for a discussion on this topic.
3. Consider the network shown below, where the numbers on the edges indicate the cost of
using that edge. For example, the cost of using the link from Router A to Router B is 1,
whereas the cost of using the link from Router A to Router D is 4.
1
2
A F
1 1
4 4
D E
Solution:
4. State the major difference between Distance Vector Routing and Link State Routing.
Discuss how these routing techniques work.
ANSWER:
There are two major types of routing protocols: Distance Vector and Link State.
Distance Vector:
Distance Vector Protocol broadcasts its complete routing table periodically.
Examples of Distance Vector Protocols are RIP, BGP [Border Gateway Protocol], IGRP, EIGRP
[Enhanced IGRP].
A distance-vector routing protocol is one of the two major classes of routing protocols used
in packet-switched networks for computer communications, the other major class being the link
state protocol. A distance vector routing protocol uses the Bellman-Ford algorithm to calculate
paths.
A distance vector routing protocol requires that a router informs its neighbors of topology
changes periodically and, in some cases, when a change is detected in the topology of a network.
Sharing Information:
A router can share its knowledge about network to its neighbors.
The knowledge may be collected by itself or otherwise shared from other routers.
Routing Table:
Distance vector routing information may be, Network ID, cost and NextHop. These three
essentials need to form a Distance vector’s routing table.
Link State:
A Link-state routing is a concept used in routing of packet-switched networks in computer
communications. Link-state routing works by having the routers tell every router on the network
about its closest neighbors. The entire routing table is not distributed from any router, only the
part of the table containing its neighbors.
The basic concept of link-state routing is that every node constructs a map of the connectivity
of the network, in the form of graph. Using that map of connectivity graph, each node
independently calculates the best next hop from it for every possible destination in the network.
The collection of best next hops forms the Routing Table for the node.
Contrast with Distance Vector:
Distance vector, which work by having each node share its routing table with its neighbors. But,
in link state protocol, the only information passed between the nodes is information used to
construct the connectivity maps.
Note:* Optimized link state routing protocol is its extended version which is used with wireless
mesh networks.
5 . For the following network an empty routing tree generated by Dijkstra's algorithm for
node A (to every other node) is shown below. Fill in the missing nodes and indicate the
order that each node was added and its associated cost. For reference, node C's completed
routing tree is shown as well.
ANSWER: