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?


<<:  拿 ml5 来练习 如何附加自己的分类在别人的情绪之上 (五)

>>:  [Golang]单向channel介绍

好记性的浏览器:localStorage

谈这个主题之前,我们先来回忆一下日常的场景,你来到桃子购物网站,选了你要的商品往下卷动网页,结果竟...

鬼故事 - 不是,你偷这些干嘛

鬼故事 - 不是,你偷这些干嘛 Credit: System32Comics 灵感来源:UCCU H...

[Java Day25] 6.2. 改写

教材网址 https://coding104.blogspot.com/2021/06/java-o...

[Day 14]事件处理v-on

又是一个新的一天又要想今天要打什麽了(;´д`)ゞ,今天打算来讲v-on,以及讲解如何用v-on监听...

[Day 11]在你顺利的时候来一拳才是标配(前端篇)

挑战目标: MockNative Camp 今天来看一下在各种页面中是否有遗漏教师的栏位 这边整理一...