Understand the meaning and relationship of TCP/IP, SOCKET, HTTP, FTP, RMI, RPC, webservice, etc.

TCP/IP: Network broadband, the basic protocol for transmitting data, all data must be transmitted on the network based on the TCP/IP protocol (or UDP) in order to reach the specified destination (IP, server hardware address).

 

SOCKET: SOCKET is just a programming interface based on the TCP/IP protocol for programmers. Through SOCKET, programmers can control how to allow data to interact with business logic between the client and the server.

 

HTTP: HTTP is an application layer protocol, which is not comparable to the TCP/IP protocol. The HTTP protocol defines how to package data at the application layer to facilitate communication between different applications on different nodes of the network. Common browsers to access websites, and the HttpClient framework used in programming

 

FTP: FTP is also an application layer protocol, which is more complex than HTTP. It is often used to transfer files, and it is common to upload files between a file server and a client.

RMI: ( ie Remote Method Invoke  remote method call). RMI is unique to java based on the mutual invocation of java objects between java virtual machines on different network nodes. RMI uses the TCP/IP protocol to transmit java objects. Using RMI to transmit data requires instantiating the objects, because different java virtual machines Java objects cannot be shared between machines, so serialization is used for data interaction between objects. RMI is an object-oriented approach to javaRPC.

 

RPC: RPC has become a remote procedure call protocol, based on the http protocol, using the C/S method, sending requests to the server, and waiting for the server to return the result. RPC is cross-language, cross-platform, and has strong versatility.

Common RPC frameworks include Hessian, Thrift, Hetty, Ali's Duobbo, etc.

 

Webservice: It is a general interface service based on the http protocol at the bottom and using xml as the data carrier. It is cross-language and has strong versatility. It uses the SOAP protocol and uses WSDL to describe the interface service.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326255541&siteId=291194637