"Package" (Packet) is a data unit in TCP/IP protocol communication transmission and is generally referred to as "packet". Some people say that the LAN transmission is not "frame" (frames)? Yes, but the TCP/IP protocol is working on the third layer of the OSI model (the network layer), the fourth layer (the Transport layer), and the frame is working on the second layer (data link layer). The contents of the previous layer are transmitted by the contents of the next layer, so in the LAN, "package" is included in the "frame".
Terminology Interpretation: The OSI (open System Interconnection) model is a standard defined by the International Organization for Standardization (ISO), which defines a hierarchical architecture in which each layer defines protocols for different communication levels. The OSI model has 7 layers, 1-7 layers are: physical layer, Data link layer, network layer, transport layer, Session layer, presentation layer, application layer. The OSI model can be logically divided into two parts: the lower 1-4 layers are concerned with the transmission of the original data, and the top 5-7 layers are concerned with the application under the network.
We can use a number of examples to illustrate the concept of the package: when we mail products in the Post office, although the product itself with its own box, but in the mail only to use the original packaging box packaging is obviously not. The packing box of the inner product must be placed in a special carton designated by the Post Office so that it can be mailed. Here, the product box is equivalent to the data packet, which contains the product equivalent to the available data, and the special carton is equivalent to frames, and only one packet in a frame.
"Package" sounds very abstract, so is it not visible? It is possible to perceive the existence of a packet through some technical means. For example, in Windows Server, move the mouse to the taskbar in the lower right corner of the network card icon (network card needs to connect the twisted pair, connected to the network), you can see the "Send: XX package, Received: XX package" tips. With packet capture software, you can also capture and analyze packets.
The structure of the packet
The structure of the packet is very complex, not words can be clear, here we mainly understand its key components, it is very important to understand the communication principle of TCP/IP protocol. The packet is mainly composed of "Destination IP address", "Source IP address", "NET load data" and so on.
The structure of the packet is very similar to our usual letter, the destination IP address is the description of the packet is to be sent to whom, equivalent to the address of the addressee; The source IP address indicates where the packet originated, equivalent to the sender's address, and the net data is equivalent to the content of the letter.
It is precisely because the packet has such a structure that the TCP/IP protocol is installed between computers that can communicate with each other. When we use a TCP/IP protocol based network, the network is actually passing packets. Understanding the packet is of great importance to the network security of network management.