DCN 4 UNIT-1
DCN 4 UNIT-1
DCN 4 UNIT-1
Routing algorithms are a fundamental aspect of computer networking that determines the best path for
data packets to travel from a source to a destination in a network.
They are crucial for efficient data transmission and are used in various network types, including the
internet, local area networks (LANs), and wide area networks (WANs).
• It is a non-adaptive routing algorithm that is very simple, easy to understand and easy to
implement.
• In this algorithm, a graph of subnet is drawn, with each node of the graph representing a
router and each arc of the graph representing a communication link.
• To choose a route between a pair of routers this algorithm finds the shortest path between
them on the graph.
• The path length between each node is measured as a function of distance, average traffic,
communication cost, bandwidth etc.
• There are many algorithms to computer the shortest path between two nodes of a graph. The
main are:
• Dijkstra's Algorithm: It finds the shortest path between nodes in a graph. It's commonly
used in network routing protocols and helps in determining the best path based on the least
accumulated cost.
• Example: Consider a scenario where a GPS application finds the shortest path between two
locations.
It is the type of routing protocol that was originally used on the internet.
In distance vector routing, each router periodically shares its knowledge about the entire
network with its neighbours.
In this routing, each router maintains a routing table containing one entry for each router in
the subnet.
A route using a distance vector routing protocol does not have the knowledge of the entire
path to a destination network.
Advantages of Distance Vector Routing:
Slow Convergence.
Limited Scalability.
Routing Loops.
Heavy Administrative Burden.
Distance Vector Routing Algorithm Is Bellman Ford Algo.
The Link State Routing is simple and each router performs the following functions:
Link State Routing reacts more quickly, and in a bounded amount of time, to connectivity
changes.
Low network overhead.
Low convergence time.
The ability to scale to large and very large networks.
Changes in topology can be sent out immediately, so convergence can be quicker.
Congestion:
Rushing of too many packets to a node or a part of network, may sometimes affect the
network.
The network performance may degrade because of this.
Such situation is called as Congestion.
Congestion in a network may occur if the load on the network is greater than the capacity of
the network.
Congestion Control:
It refers to the mechanisms and techniques to control the congestion and keep the load below
the capacity.
Congestion control is a crucial aspect of computer networking that involves managing the
flow of data in a network to prevent congestion and maintain optimal performance.
Several congestion control mechanisms are employed in networking to address these
issues:
Flow Control:
End-to-End Flow Control: In end-to-end flow control, the source and destination systems
regulate the rate at which data is sent and received. This helps prevent congestion by
adjusting the transmission rate based on network conditions.
Traffic Policing and Shaping:
Traffic Policing: Involves monitoring and controlling the rate of data traffic to ensure it
adheres to pre-defined policies. If the traffic exceeds the specified limits, it can be dropped or
marked for further action.
Hierarchical Routing:
The complexity of maintaining the hierarchy may compromise the performance of the routing
protocol.
The hierarchical routing may face implementation difficulty, because a node selected as a
cluster head may not necessarily have higher processing capability than the other nodes.
Virtual Circuit:-
Virtual Circuit is the computer network providing connection-oriented service. It is a
connection-oriented network.
In virtual circuit resource are reserve for the time interval of data transmission between two
nodes.
This network is a highly reliable medium of transfer.
Virtual circuits are costly to implement.
Packets are delivered to the receiver in the same order sent by the sender.
Virtual circuit is a reliable network circuit.
There is no need for overhead in each packet.
Single global packet overhead is used in virtual circuit.
Disadvantages of Virtual Circuit:
Virtual circuit is costly to implement.
It provides only connection-oriented service.
Always a new connection set up is required for transmission.
Datagrams:
• Flooding :-
• In computer networking, Flooding is a routing technique in which a router sends data packets
to all routers connected to it.
• In Flooding, when a data packet arrives at a router, it is broadcasted to all outgoing links. This
means that the packet is sent to all directly connected routers without any specific routing
logic.
• Flooding is commonly used in routing protocols such as OSPF (Open Shortest Path First). In
this context, Flooding helps in the exchange of routing information among routers to
determine the shortest path to a destination.
• Types of Flooding
• Advantage of flooding:-
• It is a highly resilient technique. Even if a significant number of routers fail, the packets can
still find a way to reach their destination.
• Disadvantage of flooding
• When a DOS attack occurs, the reliability of the network decreases due to flooding.
Authentication:-
Types of Authentication: