首页 > 其他 > 详细

Segment,Packet,Frame等区别与联系

时间:2019-07-19 00:24:00      阅读:92      评论:0      收藏:0      [点我收藏+]

SegmentTCP协议端到端传输的基本单元,协议内部会把大块数据分割成以报文段(segment)为单位的数据包进行管理,属于传输层协议

IP Datagramip协议端到端传输的基本单元

Packet是译为分组、数据包,是网络接口层和数据链路层传输的基本单元,分组既可以是一个IP数据报,也可以是IP数据报的一个片(fragment)

Frame是链路层的基本单元,包含链路层的头部信息(mac地址)和网络层的packet

数据封装的过程data=>segment=>packet=>frame,同样也是层层包含的关系,可以从Wireshark中查看详细的封包情况

Terminology

  • 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.

  • IP 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.

  • Packet
    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.

  • Frame
    A frame is the unit of transmission in a link layer
    protocol, and consists of a link-layer header followed by
    a packet.

以上摘自RFC1122-1.3.3 Terminology

Segment,Packet,Frame等区别与联系

原文:https://www.cnblogs.com/Lydiajust2young/p/11210470.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!