Java Network programming

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.