Docsity

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

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);