Network protocol is a collection of rules, standards or conventions established for data exchange in a computer network.
For example, a microcomputer user in the network communicates with a mainframe operator. Since the two data terminals use different character sets, the commands entered by the operators do not recognize each other.
In order to enable communication, it is stipulated that each terminal must first convert the characters in its own character set into the characters in the standard character set before entering the network for transmission. After reaching the destination terminal, it is then converted into the terminal character set. character of.
Of course, for incompatible terminals, in addition to changing the character set characters, other characteristics such as display format, line length, number of lines, screen scrolling method, etc. also need to be changed accordingly.
However, the network protocol element is the structure or format of data and control information.
Network protocol elements include:
(1) Grammar, that is, the structure or format of data and control information;
(2) Semantics, that is, what control information needs to be sent, what actions to complete and what responses to make;
(3) Timing, that is, the detailed description of the sequence of event implementation.
For more related knowledge, please visit: PHP Chinese website!
The above is the detailed content of What are the elements of a network protocol?. For more information, please follow other related articles on the PHP Chinese website!