理解TCP/IP,SOCKET,HTTP,FTP,RMI,RPC,webservic

TCP / IP: Internet broadband, basic protocol for transferring data, all available data to be transmitted is based on TCP / IP protocol (or UDP), can be sent to the designated destination (IP, server hardware address) on the network.

 

SOCKET: SOCKET just the face of a programmer-based programming interface to TCP / IP protocol, through SOCKET, programmers can control how interactive data for business logic on the client and server.

 

HTTP: HTTP is an application layer protocol, and TCP / IP protocols are not comparable, HTTP protocol defines how a packed data in the application layer, to facilitate communications on different nodes of the network between different applications. Common browser to access the site, as well as the programming framework used HttpClient

 

FTP: FTP is an application layer protocol, is more complex than HTTP, commonly used to transfer files between files, common file server and the client have to upload.

RMI :( That Remote Method Invoke Remote Method Invocation). Java RMI is obtained based on a unique cross call between java object between the java virtual machine on a different network nodes, RMI using TCP / IP transport protocol java object, the RMI to transfer data of the object instance, because of the different virtual java java object machine can not be shared between, the data exchange between objects using serialization is performed. RMI is an object-oriented way of javaRPC.

 

RPC: RPC Remote Procedure Call protocol becomes, http-based protocol, using C / S mode, sends a request to the server, the server returns to wait for the results. RPC cross-language, cross-platform, versatile,

Common RPC framework Hessian, Thrift, Hetty, Ali Duobbo and so on.

 

webservice: http protocol is based on the underlying, xml using common interface as a data carrier service, cross-language, versatility, using the SOAP protocol, the service interfaces described using WSDL.

Transfer: https: //blog.csdn.net/lxb15959168136/article/details/48711069

Guess you like

Origin www.cnblogs.com/itplay/p/10975078.html