Confused about the header size for a Ethernet frame

18,317

A regular 802.3/Eth-II ethernet frame doesn't carry VLAN info.
802.1Q can carry VLAN (and QoS) info over to the receiving end.

If the ethertype is 0x8100 then you got yourself an 802.1Q tag which is another 4 bytes in addition to the 14 bytes (dmac+smac+type).

See wikipedia for reference. http://en.wikipedia.org/wiki/Ethernet_frame

EDIT:

Regular Eth-II/802.3 has a total length of:

dmac(6)+smac(6)+etype(2)+payload(1500)+crc(4) = 1518 bytes

For the case of Eth-II/802.3 with 802.1Q tagging:

dmac(6)+smac(6)+8100(2)+vlan/Qos(2)+etype(2)+payload(1500)+crc(4) = 1522 bytes

Share:
18,317
Bic B
Author by

Bic B

My friend told me that my presence has caused a bit of excitement on Facebook and since I am not on Facebook, here is something for you all. public static void main(String [] args) { //this is java so hold you eyes open before calling it C#. Boolean HasNoBalls = new Boolean(true); //always true Boolean chokesOnRods = new Boolean(true); //always true China Moon = new China(); Moon.fagToTheCore(); } public void fagToTheCore(){ if (HasNoBalls){ System.out.println("Moon has2 dads and they make him rim them"); System.out.println("Clean up prick, dont wake up and catch the first bus you see and come to uni"); } if (chokesOnRods){ System.out.println("포럼에 더 이상 똥을 게시하고 새로운 코드가 매일 게시합니다. 그냥 더 매일 갈 수있다"); System.out.println("Eyes so tight, you dont even see light"); } }

Updated on June 04, 2022

Comments

  • Bic B
    Bic B almost 2 years

    I was researching a few things about VLANs and came across the VLAN tag and also the headers.

    If we have a MTU for a standard 802.3 Ethernet frame (1518 bytes) what is included in the header 802.3?

    Also how do we calculate the header length for that?

    What is the difference between 802.3 and 802.1q? I know that the VLAN tag requires extra bytes but how to calculate how many bytes needed to the 802.1q VLAN tag?

    Thanks in advance

  • Bic B
    Bic B over 11 years
    so what will be the total length for 802.3?