链路层l以太帧格式l VLAN帧格式l QinQ帧格式l PPP帧格式l PPPoE报文格式l HDLC帧格式l ATM信元格式l STP/RSTP/MSTP帧格式l RPR帧格式l RRPP帧封装格式l LACP报文格式l以太OAM报文格式l ERPS帧格式l LLDP报文格式l IS-IS报文格式华为专有和保密信息版权所有 © 华为技术有限公司以太帧格式l Ethernet Ⅱ以太帧l Netware以太帧格式l802.3 SAP以太帧l802.3 LLC SNAP以太帧格式父主题:链路层华为专有和保密信息版权所有 © 华为技术有限公司Ethernet Ⅱ以太帧帧格式图1 Ethernet Ⅱ帧格式字段长度含义DMAC6字节目的MAC地址,IPV4为6字节,该字段确定帧的接收者。
SMAC6字节源MAC地址,IPV4为6字节,该字段标识发送帧的工作站。
Type2字节协议类型。
下表列出了链路直接封装的协议。
Data变长数据字段的最小长度必须为46字节以保证帧长至少为64字节,这意味着传输一字节信息也必须使用46字节的数据字段。
如果填入该字段的信息少于46字节,该字段的其余部分也必须进行填充。
数据字段的最大长度为1500字节。
CRC4字节用于帧内后续字节差错的循环冗余检验(也称为FCS或帧检验序列)。
表1 各Type值对应的协议值协议0x0800Internet Protocol (IP) [RFC894]0x0801X.75 Internet0x0805X.25 Level 30x0806Address Resolution Protocol (ARP)[RFC7042]0x0808Frame Relay ARP [RFC1701]0x8000IS-IS0x8035Reverse Address Resolution Protocol (RARP) [RFC903]0x8137Novell NetWare IPX/SPX (old)0x8138Novell, Inc.0x8100IEEE Std 802.1Q -Customer VLAN Tag Type0x814C SNMP over Ethernet [RFC1089]0x86DD IP Protocol version 6 (IPv6) [RFC7042]0x8808IEEE Std 802.3 -Ethernet Passive Optical Network (EPON) [RFC7042] 0x880B Point-to-Point Protocol (PPP) [RFC7042]0x880C General Switch Management Protocol (GSMP)0x8847MPLS (multiprotocol label switching) label stack -unicast [RFC 3032]0x8848MPLS (multiprotocol label switching) label stack -multicast [RFC 3032]0x8863PPP over Ethernet (PPPoE) Discovery Stage [RFC2516]0x8864PPP over Ethernet (PPPoE) Session Stage [RFC2516]0x888E IEEE Std 802.1X -Port-based network access control0x88A8IEEE Std 802.1Q -Service VLAN tag identifier (S-Tag)0x88B7IEEE Std 802 -OUI Extended Ethertype0x88C7IEEE Std 802.11 -Pre-Authentication (802.11i)0x88CC IEEE Std 802.1AB -Link Layer Discovery Protocol (LLDP)0x88E5IEEE Std 802.1AE -Media Access Control Security0x88F5IEEE Std 802.1Q -Multiple VLAN Registration Protocol (MVRP)0x88F6IEEE Std 802.1Q -Multiple Multicast Registration Protocol (MMRP)帧示例参考标准标准描述IEEE 802.3Carrier sense multiple access with collision detection(CSMA/CD) access method and physical layer specificationsIEEE 802.3ae Media Access Control (MAC) Parameters, Physical Layers, and Management parameters for 10Gb/s OperationRFC 894 A Standard for the Transmission of IP Datagrams over Ethernet NetworksRFC 1042 A Standard for the Transmission of IP Datagrams over IEEE 802 Networks父主题:以太帧格式华为专有和保密信息版权所有 © 华为技术有限公司Netware以太帧格式帧格式Netware-以太网帧对IEEE802.3的数据字段进行了专门分隔以便传输NetWare类型的数据。
图1 Netware帧格式参考标准父主题:以太帧格式华为专有和保密信息版权所有 © 华为技术有限公司802.3 SAP以太帧帧格式图1802.3 SAP以太帧格式字段长度(字节)含义DMAC6目的MAC地址SMAC6源MAC地址Length2指后续数据的字节长度,但不包括CRC检验码DSAP1目的服务访问点SSAP1源服务访问点Data44~1498负载CRC 4用于帧内后续字节差错的循环冗余检验(也称为FCS或帧检验序列)标准描述IEEE 802.3Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications IEEE 802.3aeMedia Access Control (MAC) Parameters, Physical Layers, and Management parameters for 10Gb/s Operation RFC 894A Standard for the Transmission of IP Datagrams over Ethernet Networks RFC 1042 A Standard for the Transmission of IP Datagrams over IEEE 802Networks字段长度(字节)含义DMAC6目的MAC地址。
SMAC6源MAC地址。
Length2指后续数据的字节长度,但不包括CRC检验码。
DSAP1目的服务访问点,若后面类型为IP帧值设为0x06。
SSAP1源服务访问点,若后面类型为IP帧值设为0x06。
Ctrl1该字段值通常设为0x03,表示无连接服务的IEEE 802.2无编号数据格式。
Data44~1498负载。
CRC4用于帧内后续字节差错的循环冗余检验(也称为FCS或帧检验序列)。
帧示例图2 802.3 LLC NAP以太帧参考标准标准描述IEEE 802.3Carrier sense multiple access with collision detection(CSMA/CD) access method and physical layer specificationsIEEE 802.3ae Media Access Control (MAC) Parameters, Physical Layers, and Management parameters for 10Gb/s OperationRFC 894 A Standard for the Transmission of IP Datagrams over Ethernet NetworksRFC 1042 A Standard for the Transmission of IP Datagrams over IEEE 802 Networks父主题:以太帧格式华为专有和保密信息版权所有 © 华为技术有限公司802.3 LLC SNAP以太帧格式帧格式图1 SNAP以太帧格式帧示例图2802.3 LLC SNAP以太帧字段长度(字节)含义DMAC 6目的MAC地址。
SMAC6源MAC地址。
Length2指后续数据的字节长度,但不包括CRC检验码。
DSAP1目的服务访问点,若后面类型为IP帧值设为0x06。
SSAP1源服务访问点,若后面类型为IP帧值设为0x06。
Ctrl1该字段值通常设为0x03,表示无连接服务的IEEE 802.2无编号数据格式。
SNAP-ID5由OUI和Type两部分组成。
OUI 33字节的组织唯一标识符(Organizationally UniqueIdentifier),其值通常等于MAC地址的前3字节,即网络适配器厂商代码。
Type 2标识以太网帧所携带的上层数据类型。
Data 44~1498负载。
CRC 4用于帧内后续字节差错的循环冗余检验(也称为FCS或帧检验序列)。
参考标准标准描述IEEE 802.3Carrier sense multiple access with collision detection(CSMA/CD) access method and physical layer specificationsIEEE 802.3ae Media Access Control (MAC) Parameters, Physical Layers, and Management parameters for 10Gb/s OperationRFC 894 A Standard for the Transmission of IP Datagrams over Ethernet NetworksRFC 1042 A Standard for the Transmission of IP Datagrams over IEEE 802 Networks父主题:以太帧格式华为专有和保密信息版权所有 © 华为技术有限公司VLAN帧格式帧格式IEEE 802.1Q标准对Ethernet帧格式进行了修改,在源MAC地址字段和协议类型字段之间加入4字节的802.1Q Tag。