What is a computer network.
The computers distributed in different geographical regions are interconnected with the specialized external equipments to form a large and powerful network system, so that many computers can transfer information to each other conveniently, and share hardware, software, data information and other resources.
The main functions of computer network:
1. Resource Sharing
2. Information transmission and centralized processing
3. Balanced load and distribution processing
4. Integrated Information Services
What is a network communication protocol.
There must be some conventions for communication in computer network, that is, communication protocol, set standards for rate, transmission code, code structure, Transmission control steps, error control, etc.
Network Communication Interface
In order to be able to communicate between the two nodes, a communication interface must be established between them to enable information and exchange between each other. The interface consists of two parts: a hardware device and a software device. The hardware device realizes the information transmission between the nodes, and the software device stipulates the agreed agreement of communication between the two parties.
the idea of layered communication protocol
Because of the complexity of the connections between the nodes, the complex components are decomposed into simple components when the protocol is developed, and they are compounded. The most commonly used compound method is hierarchical mode, each layer does not affect each other, which is beneficial to the development and expansion of the system.
TCP protocol and UDP protocol
The TCP protocol is a protocol designed specifically to provide reliable, end-to-end byte-throttling communication on unreliable internet. He is a connection-oriented protocol. A TCP link is a byte stream rather than a message flow.
UDP is a way for an application to send a packaged raw IP datagram, and no link is required to send. is an unreliable link.
TCP is a reliable link, but it is slower. Conversely, UDP is faster.