| Packets, frames, bytes, octets and datagrams | ||
|---|---|---|
| Chapter 1. Network Administration Fundamentals | ||
You will hear, in your walk through this world of networking and TCP/IP people referring to packets and frames, octets and datagrams. What is what? In the strictest sense packets and frames are different and datagrams are different again. However, many people refer to these interchangeably. Let 's clear up the definitions here.
When a unit of data, beginning at the application layer (top layer) is transmitted to lower layers, headers and trailers are appended to it. Once the unit of data reaches the IP layer and source and destination IP addresses are added to it, it then is known as an IP datagram. The unit of data, feeling a little bloated from having all this extra baggage is then sent to the link layer where source and destination MAC addresses are perpended to it. Now it is called a frame - and more accurately an Ethernet frame (if the physical layer is Ethernet). To be precise, the unit of data passed between the IP layer and the network interface card is really a packet of data. Thus, a packet can be an entire IP datagram or perhaps a fragment of an IP datagram.
UDP units of data, being connectionless (and thus not really too concerned whether the receiver actually got the data or not) are also referred to as datagrams.
This leaves octets. Octets are units of 8 bits (also know as bytes). Thus the maximum size of a frame in Ethernet is 1513 octets or 1513 bytes. Any larger and the frame must be split or fragmented. As you might expect, fragmentation causes delay so it is good to keep all your frames below the MTU size.
本文介绍了网络通信中不同层次的数据传输单位,如应用层的数据经过封装变为IP数据报,再经过链路层成为带有MAC地址的帧。数据报、帧、包和字节(八位字节)在网络传输中各有其特定含义,理解这些概念对于网络管理和TCP/IP通信至关重要。最大帧大小、分片与MTU等概念也在此得到阐述。

1969

被折叠的 条评论
为什么被折叠?



