0% found this document useful (0 votes)
72 views

Distributed Computing Laboratory

This document outlines 6 labs focused on distributed computing topics: 1) Designing various network topologies and analyzing properties like adjacency lists and node degrees. 2) Implementing interprocess communication using TCP and UDP sockets for client-server programs. 3) Combining network topology design with interprocess communication using TCP client-server programs. 4) Implementing Lamport's logical clock algorithm.

Uploaded by

Aman Rath
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views

Distributed Computing Laboratory

This document outlines 6 labs focused on distributed computing topics: 1) Designing various network topologies and analyzing properties like adjacency lists and node degrees. 2) Implementing interprocess communication using TCP and UDP sockets for client-server programs. 3) Combining network topology design with interprocess communication using TCP client-server programs. 4) Implementing Lamport's logical clock algorithm.

Uploaded by

Aman Rath
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Distributed Computing Laboratory

Subject Code-CS4470

[1]. Idea on network topology

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.

[2] Interprocess Communication


LAB-4
TCP Socket programming
1) Write a server (TCP) C Program that opens a listening socket and waits to serve client
2) Write a client (TCP) C Program that connects with the server program knowing IP address and port
number.
3) Get the input string from console on client and send it to server, server echoes back that string to client.

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.

[4] Lamport’s Logical clock


LAB-7
1) Write a program to implement Lamport’s logical clock.

You might also like