What is the difference between Client server and Peer to Peer networks?
What is a Client Server?
As mentioned, the Client Server architecture is based on a concept in which servers provide the services requested by clients. A server is a host that runs one or more server-specific applications and shares its resources with clients. These clients establish a communication session with these servers by requesting content or server services. Servers are always waiting for incoming requests from clients.
There are several different types of client servers today, each with several common features, such as a centralized security database to control access to shared resources on the server. A server contains a list of usernames and passwords, and a user can only access the network if they have a valid username and password. Once a user is logged in, they can only access resources authorized by the network administrator. Extensive applications such as email sharing, web access, and database access are defined for client-server architecture.
What is Peer to Peer?
In a Peer to Peer network, resources are shared between each Peer through a server without any central coordination. Each Peer acts as both a supplier and a consumer. Peer-to-peer systems implement an overlapping network in the application layer on the physical network topology.
The goal of creating peer-to-peer networks is to share resources in a way that is as cheap as possible. In this method, there is no centralized security structure, and it is the end user who must take control of access to resources. Users can create their own sharing points on their own computer, and security is provided only by assigning a password when creating sharing points. The peer-to-peer network structure was used in popular file-sharing systems such as Napster.
What is the difference between Client-Server network architecture and Peer to Peer?
The main difference between client-server and peer-to-peer systems is that in the client-server architecture there are specific clients that request services that are provided by a series of servers. But in a peer to peer system, each peer acts as both a supplier and a consumer. In addition, client-server systems require a central file server, which is more expensive than the file-sharing structure of peer-to-peer systems.
In other words, in a client-server system, a dedicated file server provides different levels of access to clients that are more secure than end-user peer-to-peer systems. Peer-to-peer networks also malfunction as the number of nodes increases, but client-server systems are more stable and you can extend them as much as you want.