Difference between revisions of "IEEE 802.1Q"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 2: Line 2:
 
The IEEE 802.1Q trunk protocol connects two or more [[Ethernet]] or [[Token Ring]] switches, and allows transmission of packets between Switches sharing the same VLAN(s).
 
The IEEE 802.1Q trunk protocol connects two or more [[Ethernet]] or [[Token Ring]] switches, and allows transmission of packets between Switches sharing the same VLAN(s).
 
== Principle ==
 
== Principle ==
In figure 1 all PC's connected to ports which are in VLAN 100 - Blue - can communicate together, and all PC's connected to ports in VLAN 200 - Red - can communicate together. In figure 1 there can be no exchange of packets between VLAN 100 and VLAN 200.
+
In figure 1 all PC's connected to ports which are in VLAN 100 - Blue - can communicate together, and all PC's connected to ports in VLAN 200 - Red - can communicate together. In figure 1 there can be no exchange of frames between VLAN 100 and VLAN 200.
 +
=== Why is a trunk protocol needed ===
 +
A trunk protocol is needed when using a OSI layer 2 technology as [[Ethernet]] or [[Token Ring]] because the Layer 2 header has no field describing the origin of the frames. Se figure two upper half ''Standard  802.3 Ethernet Frame''. There is no field where the transmitting Switch can tell the receiving Switch which VLAN a receiving frame belongs.
 +
=== Tagging a Frame ===
 +
If both switches uses the IEEE 802.1Q tagging trunk protocol, the transmitting Switch ''tags'' the frame when sending it. Se figure 2 bottom half ''802.1Q tagged 802.3 Ethernet Frame''

Revision as of 08:58, 28 April 2009

Figure 1: Trunk between two switches carrying traffic from VLAN 100 and VLAN 200 between the Switches

The IEEE 802.1Q trunk protocol connects two or more Ethernet or Token Ring switches, and allows transmission of packets between Switches sharing the same VLAN(s).

Principle

In figure 1 all PC's connected to ports which are in VLAN 100 - Blue - can communicate together, and all PC's connected to ports in VLAN 200 - Red - can communicate together. In figure 1 there can be no exchange of frames between VLAN 100 and VLAN 200.

Why is a trunk protocol needed

A trunk protocol is needed when using a OSI layer 2 technology as Ethernet or Token Ring because the Layer 2 header has no field describing the origin of the frames. Se figure two upper half Standard 802.3 Ethernet Frame. There is no field where the transmitting Switch can tell the receiving Switch which VLAN a receiving frame belongs.

Tagging a Frame

If both switches uses the IEEE 802.1Q tagging trunk protocol, the transmitting Switch tags the frame when sending it. Se figure 2 bottom half 802.1Q tagged 802.3 Ethernet Frame