Distributed Computing Laboratory
Distributed Computing Laboratory
Subject Code-CS4470
LAB-1
Design a network topology of arbitrary number of nodes. (Star topology, Ring topology; Tree topology). Determine
the adjacency list, adjacency matrix, and the degree of a node.
LAB-2
Design a hypercube and hybrid topology (Combination of star, ring, tree topology). Determine the adjacency list,
adjacency matrix, and the degree of a node.
LAB-3
Design a weighted hybrid topology and determine the shortest path between random source and destination using
Dijkstra’s algorithm.
LAB-5
UDP Socket programming
1) Write a server(UDP) C Program that waits opens a listening socket and waits to serve client
2) Write a client(UDP) C Program that calls sendto( ) to send string to server program knowing IP address
and port number.
3) Server replies current date and time (using time, and ctime calls) to client. Client will compute the time
difference between request and reply and display the time difference
LAB-6
Combination of network topology and inter-process communication
1) Write a server (TCP) Program that opens a listening socket and waits to serve client. It also consists of 3
modules for three topology creation (tree, ring, star)
2) Write a client (TCP) Program that connects with the server program knowing IP address and port number.
3) Get the input topology, number of nodes from console on client and send it to server, server construct the
topology on request, and send the adjacency list and degree of the node to the client. Client will display the
adjacency list and degree of the node on its own console.