What is the difference between Client-server Model and Master-slave model ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the difference between Client-server Model and Master-slave model ?

I know there are some protocols in networking who works on client server model(eg, TCP/ip) and some protocols works on Master-slave model (eg, ModBus) but what makes them different??

9th May 2019, 12:03 PM
Aaditya Deshpande
Aaditya Deshpande - avatar
5 Answers
+ 1
It is independent from the direction of information flow. In Client-Server you look at two devices that communicate, Master-Slave is about interaction where the master actively has the control (e.g. distributes data/work).
9th May 2019, 12:30 PM
Daniel Adam
Daniel Adam - avatar
+ 4
Daniel Adam sir, can we say that in master slave => slaves nodes serve to master node And In client-server => server node serves to the client node (Serve in the sense of data,funcationality or even a web service) In client and server, multiple clients can communicate with each other via server, does those slaves (in master slave) do the same(via master) ??
9th May 2019, 12:26 PM
Aaditya Deshpande
Aaditya Deshpande - avatar
+ 4
Thank you for answering Daniel Adam 😄
9th May 2019, 12:35 PM
Aaditya Deshpande
Aaditya Deshpande - avatar
+ 1
Looking at protocols, someone has to initiate a connection and someone must understand that requests (protocol). Within this context, the server accepts incomming requests and the clients start the communication.
9th May 2019, 12:21 PM
Daniel Adam
Daniel Adam - avatar
0
Model is the wrong word I think. Master Slave is a concept of one controller and one or many worker, whilst a server-client describes a relation between two things, e.g. used in network scenarios that says there is a central point that offers something (e.g. data, functionality, ...) and others that consume it (clients). But on machine/device level everyone can be one of them or both.
9th May 2019, 12:19 PM
Daniel Adam
Daniel Adam - avatar