C.K.B.

Version 0.0.9

Czaku`s Knowladge Base

EtherType

EtherType is a two-octet field in an Ethernet frame. It is used to indicate which protocol is encapsulated in the payload of the frame and is used at the receiving end by the data link layer to determine how the payload is processed. The same field is also used to indicate the size of some Ethernet frames.

EtherType is also used as the basis of 802.1Q VLAN tagging, encapsulating packets from VLANs for transmission multiplexed with other VLAN traffic over an Ethernet trunk.

EtherType was first defined by the Ethernet II framing standard and later adapted for the IEEE 802.3 standard. EtherType values are assigned by the IEEE Registration Authority.

Header usualy is 14 bytes long (it can be extended to 16 if 802.1Q included), most important fields:

Dst MAC - 6 bytes
Src MAC - 6 bytes
802.1Q: - 2 bytes (3 bits CoS) + VLAN 12 bits
Next protocol: 2 byte

Usualy:
dmac(6)+smac(6)+etype(2)+payload(1500)+crc(4) = 1518 bytes
dmac(6)+smac(6)+8100(2)+vlan/Qos(2)+etype(2)+payload(1500)+crc(4) = 1522 bytes
/* Check fragmentation section

Ethernet II
  Destination: Broadcast (ff:ff:ff:ff:ff:ff) <<< Destination MAC goes firest for fast switchin
    Address: Broadcast (ff:ff:ff:ff:ff:ff)
    .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
    .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
  Source: Cisco_e1:a0:68 (2c:54:2d:e1:a0:68) <<< Source follows DST MAC - we need to know who sent it
    Address: Cisco_e1:a0:68 (2c:54:2d:e1:a0:68)
    .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
    .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
  Type: 802.1Q Virtual LAN (0x8100)
802.1Q Virtual LAN <<< In the ethernet we can include VLAN information
  000. .... .... .... = Priority: Best Effort (default) (0)
  ...0 .... .... .... = DEI: Ineligible
  .... 0000 1100 1000 = ID: 200
  Type: ARP (0x0806)  <<< Information about the payload (next header)
EtherType (hexadecimal) Protocol
0x0800 Internet Protocol version 4 (IPv4)
0x0806 Address Resolution Protocol (ARP)
0x0842 Wake-on-LAN[8]
0x2000 Cisco Discovery Protocol[9]
0x22EA Stream Reservation Protocol
0x22F0 Audio Video Transport Protocol (AVTP)
0x22F3 IETF TRILL Protocol
0x6002 DEC MOP RC
0x6003 DECnet Phase IV, DNA Routing
0x6004 DEC LAT
0x8035 Reverse Address Resolution Protocol (RARP)
0x809B AppleTalk (EtherTalk)
0x80F3 AppleTalk Address Resolution Protocol (AARP)
0x8100 VLAN-tagged frame (IEEE 802.1Q) and Shortest Path Bridging IEEE 802.1aq with NNI compatibility[10]
0x8102 Simple Loop Prevention Protocol (SLPP)
0x8103 Virtual Link Aggregation Control Protocol (VLACP)
0x8137 IPX
0x8204 QNX Qnet
0x86DD Internet Protocol Version 6 (IPv6)
0x8808 Ethernet flow control
0x8809 Ethernet Slow Protocols[11] such as the Link Aggregation Control Protocol (LACP)
0x8819 CobraNet
0x8847 MPLS unicast
0x8848 MPLS multicast
0x8863 PPPoE Discovery Stage
0x8864 PPPoE Session Stage
0x887B HomePlug 1.0 MME
0x888E EAP over LAN (IEEE 802.1X)
0x8892 PROFINET Protocol
0x889A HyperSCSI (SCSI over Ethernet)
0x88A2 ATA over Ethernet
0x88A4 EtherCAT Protocol
0x88A8 Service VLAN tag identifier (S-Tag) on Q-in-Q tunnel
0x88AB Ethernet Powerlink[citation needed]
0x88B8 GOOSE (Generic Object Oriented Substation event)
0x88B9 GSE (Generic Substation Events) Management Services
0x88BA SV (Sampled Value Transmission)
0x88BF MikroTik RoMON (unofficial)
0x88CC Link Layer Discovery Protocol (LLDP)
0x88CD SERCOS III
0x88E1 HomePlug Green PHY
0x88E3 Media Redundancy Protocol (IEC62439-2)
0x88E5 IEEE 802.1AE MAC security (MACsec)
0x88E7 Provider Backbone Bridges (PBB) (IEEE 802.1ah)
0x88F7 Precision Time Protocol (PTP) over IEEE 802.3 Ethernet
0x88F8 NC-SI
0x88FB Parallel Redundancy Protocol (PRP)
0x8902 IEEE 802.1ag Connectivity Fault Management (CFM) Protocol / ITU-T Recommendation Y.1731 (OAM)
0x8906 Fibre Channel over Ethernet (FCoE)
0x8914 FCoE Initialization Protocol
0x8915 RDMA over Converged Ethernet (RoCE)
0x891D TTEthernet Protocol Control Frame (TTE)
0x893a 1905.1 IEEE Protocol
0x892F High-availability Seamless Redundancy (HSR)
0x9000 Ethernet Configuration Testing Protocol[12]
0xF1C1 Redundancy Tag (IEEE 802.1CB Frame Replication and Elimination for Reliability)
Last updated on 13 Jun 2024
Published on 13 Jun 2024
 Edit on GitHub