IP资料单元(Datagram)或封包(Packet)?

封装(Encapsulation)和协定的资料单位(PDU)

分层封装

大家普遍认为(特别是在Cisco/CCNA课程中),IP协定对应至ISO开放系统连接架构的参考网路模型的网路层的PDU(protocol data unit)称为“封包(packet)”,而传输层的UDP则称为“资料单元(datagram)”,以及TCP称为“分段(segment)”,如下图所示显示:

IP Datagrams?

但是,人们并非不常遇到IP Datagram这样的用语。平常不是都称为IP封包(packet)吗? IP Datagram是正确的用语吗?是的,它一点都没错。这是定义IP协定的FRC 791中的标準用语:

The internet protocol provides for transmitting blocks of data called datagrams from sources to destinations, where sources and destinations are hosts identified by fixed length addresses.
来源:RFC 791

IP Datagrams and Fragmentation

原始的IP资料单元(data unit)称为“datagram”,它可以被拆分(IP fragmentation)为封包,以符合底层网络技术的最大传输单元(MTU)之要求。

IPv4 allows fragmentation which divides the datagram into pieces, each small enough to accommodate a specified MTU limitation. This fragmentation process takes place at the internet layer. The fragmented packets are marked so that the IP layer of the destination host knows it should reassemble the packets into the original datagram.
资料来源:维基百科

原始出处: IP Datagram or Packet?


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章