ISO proposed OSI model Open System Interconnection (development system interconnect)
TCP/IP Layered model
OSI TCP/IP
Application Tier Application Layer
Presentation Layer Application Layer
Session Layer Application Layer
Transport-Layer Transport layer
Network Layer Network interconnect layer
Data Link Layer Network interface layer
Physical Layer Network Interface layer
TCP/IP cluster: HTTP, FTP, SMTP, SOAP for the application layer specifies the use of TCP
Transport Layer: TCP provides reliable data flow transport services
UDP: Provides unreliable user datagram service
TCP has a well-known three-time handshake mechanism that guarantees transmission in place.
TCP stands for Transmission Control Protocol (Transfer-protocol), which allows reliable communication between two applications.
UDP on behalf of User Message Protocol (Subscriber Datagram Protocol) It is a non-connectivity protocol that allows unreliable communication between two applications.
Port number: is a set of 16-bit unsigned binary numbers
The range for each port number is 1 to 65535 (0 is reserved)
Port number Usage Note:
1, the first 1024 can not be used
2, the common software port number can not be used
Socket programming-(socket) network programming
Java Network programming