802.1Q Introduction

1Q Introduction VLAN

VLAN is logical network distributed across multiple physical LANs. Since its a logical network, its scalable and flexible in terms of resource [bandwidth] management.

Tagging

Tagging assists logical seperation of networks. There are numerous advantages in doing this:

  1. Broadcast/Multicast messages no longer hogs network bandwidth.
  2. Security between virtual networks.

Trunk

Trunk is a physical link between two network devices, typically, switches that carries multiple virtual lans. There are some advantages in doing this:

  1. Scalability - Can't have a physical link for every vlan.
  2. Usage - Every vlan may not need entire bandwidth.

A tag is used on each frame to identifing its vlan. There are two common tagging mechanism:

  1. 802.1Q [IEEE standard]
  2. Inter-Switch Link [ISL, Cisco's proprietary standard]

Ethernet Frames

There are two types of ethernet standards.

  1. Original Ethernet standard published by DEC and Xerox in '82. RFC 894 defines this standard.
  2. Revised version by IEEE 802 committee. RFC 1042 captures this version and is commonly referred to as 802.3 Ethernet frame.

Below are the diagrams for these two ethernet frames.


Vlan tags apply to both types of ethernet frames.

802.1Q

Tags in 802.1Q mechanism are inserted inside the frame. A new 'Tag' field of 4 bytes width is inserted before the length field as shown below


Introduction of this 4 byte tag has increased the maximum ethernet frame size from 1518 to 1522 bytes.

Native VLAN

Frames of native VLAN do not have tags when sent over a trunk. They are some times referred to as management VLANs. Any physical port configured to send/receive 802.1q traffic can have only one native VLAN.

Labels: , , ,