What is a computer network?
The distribution of computers in different geographical areas and specialized external equipment with communication lines interconnect into a large, powerful network system, so that many computers can easily transfer information to each other, sharing hardware, software, data information and other resources.
The main functions of computer network:
Resource sharing
Information transmission and centralized processing
Balanced load and distribution processing
Integrated Information Services (www/Integrated Services Digital Network ISDN)
What is network communication protocol ?
There must be some conventions in the Computer Network communication protocol, the rate, transmission code, code structure, transmission Control procedures, error control and other standards.
Network communication interface:
In order for a conversation to be made between two nodes, a communication tool (the interface) must be established between them so that information can be exchanged between each other. The interface consists of two parts:
Hardware Device: Realizes information transmission between nodes.
Software device: A contractual agreement that provides for communication between the parties
Why layering ?
because of the complex connection between nodes, the complex components are decomposed into some simple ingredients, and then compound them up. The most commonly used composite method is the hierarchical way, that is, the same layer can communicate, the previous layer can call the next layer, and the next layer does not occur.
hierarchical provisions of communication protocols :
The user application as the highest level, the physical communication lines as the lowest layer, the process of processing the protocol into several layers, the task of each layer of processing, also stipulates the interface standard of each layer.
1) Physical layers (physical layer)
2) Data Link layer
3) Network Layer Network layer protocol representatives include: IP, IPX, RIP, OSPF, etc.
4) Transport Layer (Transport layer) Transport layer protocol representatives include: TCP, UDP, SPX and so on.
5) NetBIOS (Session layer), ZIP (AppleTalk Area Information Protocol), etc.
6) Presentation layers (Presentation layer) ASCII, ASN.1, JPEG, MPEG, etc.
7) Application tier (application layer) Telnet, FTP, HTTP, SNMP, etc.
Data encapsulation
Data unpacking
IP: IPV4, IPV6
Port:
QQ, MSN, Thunder, Electric Donkey, 360 through the port, you can run multiple network applications on one host. The port is a virtual concept, not that there are really several ports on the host.
Url:
On WWW, each information resource has a unified and unique address, which is called the URL (Uniform Resource Locator), which is the Uniform Resource Locator of www. The URL consists of 4 parts: The protocol, the host domain where the resource resides, the resource file name, and the port number. If the port number is not specified, the protocol default port is used. For example, the default port for the HTTP protocol is 80.
The URL class is provided in the java.net package, which encapsulates a number of complex details that involve obtaining information from a remote site.
"Full stack Java notes" is a can help you from Zeto long for the full stack of Java Engineer Series of notes. The author is called Mr. G,10 years Java research and development experience, has been in the digital, Aerospace Institute of a Research and development center engaged in software design and research and development work, from small white gradually achieve engineers, senior engineers, architects. Proficient in Java Platform Software development, Master Java EE, familiar with various popular development framework.
The notes contain six parts from shallow into deep:
A-java Introductory Phase
B-Database from beginner to proficient
C-hand Edge mobile front end and web front end
D-j2ee from understanding to combat
E-java Advanced Frame Fine Solution
F-linux and Hadoop
This article is from the "12931675" blog, please be sure to keep this source http://12941675.blog.51cto.com/12931675/1945774
12.1-Full Stack Java notes: Basic concepts of network programming