Implement transmission of ping messages/trace route over a network topology consisting of 6 nodes and find the number of packets dropped due to congestion

#Create a simulator object set ns [new Simulator] #Open a nam trace file set nf [open PING.nam w] $ns namtrace-all $nf #Open a trace file set nt [open PING.tr w]…

Continue ReadingImplement transmission of ping messages/trace route over a network topology consisting of 6 nodes and find the number of packets dropped due to congestion

Implement three nodes point – to – point network with duplex links between them. Set the queue size, vary the bandwidth and find the number of packets dropped

#Create a simulator object set ns [new Simulator] #Open a trace file set nt [open lab1.tr w] $ns trace-all $nt #Open a nam trace file set nf [open lab1.nam W]…

Continue ReadingImplement three nodes point – to – point network with duplex links between them. Set the queue size, vary the bandwidth and find the number of packets dropped

Find Minimum Cost Spanning Tree of a given undirected graph using Kruskal’s algorithm

Kruskal’s algorithm:Kruskal‟s algorithm finds the minimum spanning tree for a weighted connected graph G=(V,E) to get an acyclic subgraph with |V|-1 edges for which the sum of edge weights is…

Continue ReadingFind Minimum Cost Spanning Tree of a given undirected graph using Kruskal’s algorithm

From a given vertex in a weighted connected graph, find shortest paths to other vertices using Dijkstra’s algorithm

Single Source Shortest Paths Problem:For a given vertex called the source in a weighted connected graph, find the shortest paths to all its other vertices. Dijkstra‟s algorithm is the best…

Continue ReadingFrom a given vertex in a weighted connected graph, find shortest paths to other vertices using Dijkstra’s algorithm

Implement three nodes point – to – point network with duplex links between them & Set the queue size, vary the bandwidth and find the number of packets dropped

#Create a simulator object   set  ns  [new Simulator] #Open a trace file   set  nt  [open  lab1.tr  w]   $ns  trace-all  $nt #Open a nam trace file   set …

Continue ReadingImplement three nodes point – to – point network with duplex links between them & Set the queue size, vary the bandwidth and find the number of packets dropped

Java program on datagram socket for client/server to display the message on client side, typed at the server side

import java.util.*; import java.net.*; import java.io.*; public class udpserver { public static void main(String args[]) { DatagramSocket aSocket=null; Scanner scan=new Scanner(System.in); int ServerPort=999; System.out.println("Server ready n Waiting for connectionn"); try…

Continue ReadingJava program on datagram socket for client/server to display the message on client side, typed at the server side