Basic knowledge of network programming
What is the computer network, is the distribution in different geographical areas of the computer and specialized external equipment communication lines interconnect into a large-scale, powerful network system.
The computer network mainly can do the following functions:
1) resource sharing
2) information transmission and centralized processing
3) Balanced load and distribution processing
4) Comprehensive Information Services
The computer network is divided according to the size and extension range:
1) Local area network (LAN)
2) metropolitan Area Network (man)
3) wide area network (WAN)
The computer network is divided according to the topological structure of the network:
1) Star-type network
2) Total Linetype Network
3) Loop Network
4) tree-type network
5) Star Loop Network
...
The computer network is divided according to the transmission medium of the network:
1) Twisted pair cable
2) Coaxial Cable
3) Optical fiber
4) satellite
...
What is a communication protocol, a communication protocol is a reservation for communication in a computer network.
Communication protocols are usually made up of three parts:
1) Semantic part: Determine the type of two-party dialogue
2) Grammatical part: the way to decide the two-party dialogue
3) Transformation rules: Determine the correspondence between two parties to the response relationship
The International Organization for Standardization ISO in 1978 proposed the "Open Systems Interconnection Reference Model", OSI (open System interconnection).
The Open System Interconnection Reference Model divides the computer network into physical layer, data link layer, network layer, transport layer, Session layer, presentation layer, Application layer seven layer. Shows the recommended layering of the OSI Reference Model:
The IP protocol is also known as the Internet Protocol. is a datagram protocol that supports inter-network interconnection. TCP protocol (transmission Control Protocol), which is the transmission protocol. When actually used, the two protocols are collectively referred to as the TCP/IP protocol,
The following is the corresponding relationship between the TCP/IP protocol model and the ISO seven layer model:
An IP address is used to uniquely identify a communication entity in the network.
The port is a 16-bit integer. Used to indicate which communication program the data is assigned to handle. The port number can be divided into three categories, from 0 to 65535:
1) Well-known port: from 0 to 1023, they are used for some specific services
2) Register port: from 1024 to 49151 for binding some services
3) Dynamic and private port: from 49152 to 65535. is the dynamic port of the application.
Reprint Please specify source :http://blog.csdn.net/hai_qing_xu_kong/article/details/40780899 Emotional Control _
Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.
Java Network Programming Considerations 1