Client-Server V/S Peer To Peer (P2P) Model

Share

Client-Server Model

Client server model is centralized network in which the server hosts, provides and maintains the majority of the client’s data and services. In this model, a central server is a must and all the clients are connected to the central server for retrieving data or using its services. It follows common communication protocol. The server acts as a middle point of the network. The client server computing works with a system of request and response.

Examples of computer applications that use the client–server model are ​Email​, network printing​, and the ​World Wide Web​.

Client server Model

Above diagram shows a server connected to the network (shown as Internet above but can be any other type of network) with various clients.

Peer to Peer Model(P2P)

Peer to Peer model is the networking technology in which two or more computer are connected in order to share resources .It is decentralize communication model in which each party has the same capabilities and either party can initiate a communication session . And Each computer  can be both a client and a server.

P2P model

Examples Torrents uses P2P model ,and the client version of windows can function as nodes in p2p network and allow their files to be shared.

Client Server V/s P2P model

Client Server model P2P model
1.It is primarily focus on information sharing.
1. .It is primarily focused on connectivity and communication.
2.It is centralized communication model.2.It is decentralized communication model.
3.Somehow if the server fail then the whole system will fail. 3. There is no server.
4.It is expensive to implement because a central server has to be built and it has to keep running constantly otherwise the network will collapse. 4.It is cheap to implement since no central server is required.
5.The client request for certain service and server responds with service.5.Every node can make both request and responds for the service.
6.It is more stable and scalable.6.It is less stable if number of peer is t.
7.This model provides better security because the file access is controlled by the server, not nodes.7.This model is more vulnerable because security is handled by the users.
8.Client-server systems are more robust and can be extended as needed.8.The performance increase if the number of node in network grows.

Share
Raj Tuladhar

Raj Tuladhar

learning everything from everywhere!!

%d bloggers like this: