Comparison between C / S mode and P2P mode

C / S mode

basic concept

Structural characteristics: divided into customer program and service program;

 

P2P

basic concept

P2P is a peer-to-peer way between network nodes, sharing computer resources and services by directly exchanging information;
P2P communication mode refers to the ability of direct communication between peer nodes in
P2P networks a dynamic logical network in the Internet by peer nodes composed
P2P technology is implemented protocol and software to achieve the function for direct communication between the application and the specific point for the peer involved
------- —————————
 

The difference between C / S and P2P

1. The sharing of information resources in the C / S working mode is centered on the server
2. The P2P working mode downplays the boundary between service providers and service users. Each computer in the P2P network can be either a network service user or provider
3, C / difference S and P2P mode mainly in the application layer
C / S: DNS, SMTP, FTP, Web
protocol support for file sharing Napster and BitTorrent service agreement support multimedia transmission class Skype services: P2P
P2P network is A logical overlay network constructed on an IP network, P2P is a network overlay mode
----------------------------- -------------------------------------------------- ------------------------------------------------

CS: Client / Server, client-server method 
BS: Browser / Server, browser-server method 
P2P: peer to peer, peer-to-peer method 
BS is actually a special case of CS method, so it should also be counted in CS. 
CS: If host A runs a client program and host B runs a server program, client A sends a request service to server B, and server B receives the service from client A. In this case, it communicates in CS. The client and server we are referring to are two application processes involved in value communication, not a specific host. 
P2P: Communicate in a peer-to-peer manner without distinguishing between the client and the server, but communicate on an equal basis. In the peer-to-peer mode, each connected host can be regarded as both a host and a client, and they can download each other's shared files. For example, Thunder download is a typical p2p communication method. 
The communication between BS and CS is essentially the same. Both the client sends a request to the server, and the server receives and processes it. However, BS is more convenient than CS, has lower computer configuration requirements, and is easier to maintain. Security is better in a sense. CS is easily disassembled, but CS is easier for complex business processing. some.
 

Published 115 original articles · Like 29 · Visitors 50,000+

Guess you like

Origin blog.csdn.net/huabiaochen/article/details/104714250