Network Lab: Implementing a Star Topology with Periodic Broadcasting and File Transfer, Exercises of Data Communication Systems and Computer Networks

The steps to create a network lab using a star topology with a server in the middle. The server reads lines from a file, creates packets from each line, and broadcasts them to clients. Clients print the received messages in their environment. Bonus part includes registering clients with the server, creating multicast groups, and sending file contents to registered clients.

Typology: Exercises

2011/2012

Uploaded on 07/26/2012

shakti
shakti 🇮🇳

4.4

(19)

99 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Network Lab: Implementing a Star Topology with Periodic Broadcasting and File Transfer and more Exercises Data Communication Systems and Computer Networks in PDF only on Docsity!

Lab

Problem statement

  • Star topology, with server in the middle• Make a message with a string payload• Server periodically reads each line of the

file and make a packet out of it

  • Broadcast it to the clients• Clients print it in the Environment

Bonus part

  • Instead of broadcasting the clients should

register with the server

  • Server makes a multicast group and sends

the file contents to only those clients

  • Next time- individual quiz
  • #include • #include• #include• String str• ifstream file("data.txt", ios::in);• getline(file,str);