Found 1626 Articles for Computer Network

Shortest Path algorithm in Computer Network

Moumita
Updated on 06-Sep-2023 21:32:55

44K+ Views

In computer networks, the shortest path algorithms aim to find the optimal paths between the network nodes so that routing cost is minimized. They are direct applications of the shortest path algorithms proposed in graph theory.ExplanationConsider that a network comprises of N vertices (nodes or network devices) that are connected by M edges (transmission lines). Each edge is associated with a weight, representing the physical distance or the transmission delay of the transmission line. The target of shortest path algorithms is to find a route between any pair of vertices along the edges, so the sum of weights of edges ... Read More

Flooding in Computer Network

Moumita
Updated on 01-Nov-2023 01:49:09

46K+ Views

Flooding is a non-adaptive routing technique following this simple method: when a data packet arrives at a router, it is sent to all the outgoing links except the one it has arrived on.For example, let us consider the network in the figure, having six routers that are connected through transmission lines.Using flooding technique −An incoming packet to A, will be sent to B, C and D.B will send the packet to C and E.C will send the packet to B, D and F.D will send the packet to C and F.E will send the packet to F.F will send the ... Read More

Dijkstra’s algorithm to compute the shortest path through a graph

Moumita
Updated on 22-Feb-2021 11:38:19

18K+ Views

DefinitionThe Dijkstra’s algorithm finds the shortest path from a particular node, called the source node to every other node in a connected graph. It produces a shortest path tree with the source node as the root. It is profoundly used in computer networks to generate optimal routes with the aim of minimizing routing costs.Dijkstra’s AlgorithmInput − A graph representing the network; and a source node, sOutput − A shortest path tree, spt[], with s as the root node.Initializations −An array of distances dist[] of size |V| (number of nodes), where dist[s] = 0 and dist[u] = ∞ (infinite), where u ... Read More

Flooding versus Fixed Routing Algorithms

Moumita
Updated on 22-Feb-2021 11:25:54

1K+ Views

Flooding and fixed routing are methods to transmit data packets from the source to the destination through a number of intermediate routers connected by transmission lines.Flooding is a non-adaptive routing technique following this simple method − when a data packet arrives at a router, it is sent to all the outgoing links except the one it has arrived on.Fixed routing algorithm is a procedure that lays down a fixed route or path to transfer data packets from source to the destination. The route is a mathematically computed best path, i.e. “least–cost path” that the packet can be routed through. The ... Read More

Adaptive versus Non-Adaptive Routing Algorithms

Moumita
Updated on 03-Feb-2021 08:01:46

5K+ Views

Routing Algorithms − A routing algorithm is a procedure that lays down the route or path to transfer data packets from source to the destination. There can be many paths from the source to the destination; routing algorithm mathematically computes the best path, i.e. “least – cost path”. Routing algorithms are broadly classified into adaptive and non-adaptive routing algorithms.Adaptive Routing Algorithms − Also known as dynamic routing algorithms, they makes routing decisions dynamically depending on the network conditions. It constructs the routing table depending upon the network traffic and topology.Non-Adaptive Routing Algorithms − Also known as static routing algorithms, they ... Read More

Sink Tree in Computer Networks

Moumita
Updated on 03-Feb-2021 07:59:15

4K+ Views

DefinitionSink trees of a given node in a computer network is a tree formed by connecting the node with all the other nodes of in the network with the optimal path, or more precisely the shortest path. Or, in other words, a sink tree is a minimal cost tree formed with the given node as the destination and all other nodes as sources. A popular measure for the path or the cost is the number of hops.ExplanationThe sink tree follows from the optimality principle. According to it, in a network of routers for data transmission, if a router ‘J’ lies ... Read More

The Optimality Principle in Computer Networks

Moumita
Updated on 03-Feb-2021 07:57:51

14K+ Views

The optimality principle in computer networks is stated as follows −ExplanationThe purpose of a routing algorithm at a router is to decide which output line an incoming packet should go. The optimal path from a particular router to another may be the least cost path, the least distance path, the least time path, the least hops path or a combination of any of the above.The optimality principle can be logically proved as follows −If a better route could be found between router J and router K, the path from router I to router K via J would be updated via ... Read More

Adaptive Routing Algorithms

Moumita
Updated on 03-Feb-2021 07:55:34

5K+ Views

Adaptive routing algorithms, also known as dynamic routing algorithms, makes routing decisions dynamically while transferring data packets from the source to the destination. These algorithms constructs routing tables depending on the network conditions like network traffic and topology. They try to compute computes the best path, i.e. “least – cost path”, depending upon the hop count, transit time and distance.Types of Adaptive Routing AlgorithmsThe three popular types of adaptive routing algorithms are shown in the following diagram −Centralized algorithm − In centralized routing, one centralized node has the total network information and takes the routing decisions. It finds the least-cost ... Read More

Non-adaptive Routing Algorithms

Moumita
Updated on 03-Feb-2021 07:51:35

3K+ Views

Non-adaptive routing algorithms, also known as static routing algorithms, do not change the selected routing decisions for transferring data packets from the source to the destination. They construct a static routing table in advance to determine the path through which packets are to be sent.The static routing table is constructed based upon the routing information stored in the routers when the network is booted up. Once the static paths are available to all the routers, they transmit the data packets along these paths. The changing network topology and traffic conditions do not affect the routing decisions.Types of Non − adaptive ... Read More

Comparison of Virtual-Circuit and Datagram Networks

Moumita
Updated on 15-Jan-2021 06:25:23

6K+ Views

Virtual – circuit and datagram networks are categories of packet switching network. In virtual circuits, a virtual path is established between the source and the destination systems through which the data packets are transferred from the source to the destination. In the other hand, in datagram networks, each data packet called datagram contain adequate header information so that they can be individually routed by all intermediate network switching devices to the destination.DifferencesIssueVirtual – Circuit NetworksDatagram NetworksConnectivityVirtual – circuits are connection oriented networks.Datagram networks are connectionless.PathIn these networks, the path between the source and the destination nodes that is followed by ... Read More

Advertisements