zoukankan      html  css  js  c++  java
  • Layer 2 Ethernet frame sizes

    The Layer 2 Ethernet frame as described here includes Ethernet headers, i.e. the CRC, but not the Inter Frame Gap, Preamble, or Start of Frame Delimiter (SFD).

    The maximum frame size depends on the interface MTU (Maximum Transmission Unit); the default value is 1500 bytes.

    The minimum frame size for IPv4 is 64 bytes, where the Ethernet header takes up 18 bytes [1], the IPv4 header 20 bytes, and the UDP header 8 bytes. The remaining 18 bytes are payload, where Netrounds places a sequence number, a timestamp, a checksum, and a stream ID.

    • Minimum IPv4 frame size = 18 (Ethernet) + 20 (IPv4) + 8 (UDP) + 18 (payload) = 64 bytes

    ../_images/def-l2-eth-frame-ipv4.png

    For IPv6 the minimum frame size is 84 bytes, since the IPv6 header is 40 bytes long.

    • Minimum IPv6 frame size = 18 (Ethernet) + 40 (IPv6) + 8 (UDP) + 18 (payload) = 84 bytes

    ../_images/def-l2-eth-frame-ipv6.png

    [1] In the original ethernet specification, 64 bytes would fill the cable from end-to-end, allowing collisions to be detected by all hosts. The original ethernet standard also specified 14 bytes for the header, and 4 bytes for the frame check sequence. That is 18 bytes. subtract 18 from 64, and you get 46 as the minimum payload. Since then, you can add a four byte VLAN tag. So, with the VLAN tag, the minimum payload size is 42. Without the VLAN tag, the minimum payload size remains 46.

  • 相关阅读:
    python之线程queue
    python多线程之threading模块
    原型模式
    设计模式之工厂方法模式
    装饰模式
    策略模式
    工厂模式之简单工厂模式
    python之SocketServer
    python之socket网络编程
    下载好的vue项目如何在自己电脑环境上运行,步骤!!
  • 原文地址:https://www.cnblogs.com/uceec00/p/12820531.html
Copyright © 2011-2022 走看看