分类: 系统运维
2009-05-13 11:03:19
TCP/UDP segment
IP datagram/packet (where packet can be commonly refered to any layer)
(date link )Frame
Segment
A segment is the unit of end-to-end transmission in the TCP protocol. A segment consists of a TCP header followed by application data. A segment is transmitted by encapsulation inside an IP datagram.
In this description of the lower-layer protocols, a message is the unit of transmission in a transport layer protocol. In particular, a TCP segment is a message. A message consists of a transport protocol header followed by application protocol data. To be transmitted end-to- end through the Internet, a message must be encapsulated inside a datagram.
An IP datagram is the unit of end-to-end transmission in the IP protocol. An IP datagram consists of an IP header followed by transport layer data, i.e., of an IP header followed by a message.
In the description of the internet layer (Section 3), the unqualified term "datagram" should be understood to refer to an IP datagram.
A packet is the unit of data passed across the interface between the internet layer and the link layer. It includes an IP header and data. A packet may be a complete IP datagram or a fragment of an IP datagram.
A frame is the unit of transmission in a link layer protocol, and consists of a link-layer header followed by a packet.