Networking and the Internet Methods of Process Communication Dr. M. Tanvir Afzal
Methods of Process Communication Inter-process Communication: ü Different processes on network or even in time-sharing fashion on single machine need to communicate with each other. 2
Methods of Process Communication Client/server model 3 ü One of the popular convention. ü One machine is acting as server, others as client. ü Client is making request and server is satisfying the request
Methods of Process Communication Client/server model Example 1 ü An early application using client/server model was a central printer. ü Printer (Print Server) acts as server and all office machines as clients. 4
Methods of Process Communication Client/server model Example 2 ü To reduce the cost of magnetic disk and to reduce the cost of duplicate file storage on all machines in an organization, a central server of files (File Server) acts as server and all machine requests to retrieve and store files. 5
Methods of Process Communication Peer-to-peer (P 2 P) ü the peer-to-peer model involves processes that provide service to and receive service from each other. ü Instant messaging ü Competitive interactive games 6
Methods of Process Communication Peer-to-peer (P 2 P) ü Distributing files like music recordings, motion pictures. ü The collection of peers in such distribution is sometimes called Swarm. 7
Methods of Process Communication Why P 2 P ? ü Decentralized operations give more efficiency. 8
Summary Methods of process communication ü Client/Server ü Peer-to-peer 9