官术网_书友最值得收藏!

Access ports and trunk ports

When two switches having more than one VLAN are connected to each other, they need a way to intimate the other switch about the VLAN number to which a particular frame belongs. The basic Ethernet header described earlier does not have any field to do this. IEEE defines a new specification 802.1Q that defines the use of VLAN, and how to transfer this information across the links that are shared by more than one VLANs. Ports that have only one VLAN are called access ports, and ports that need to connect to hosts in more than one VLAN are termed trunk ports. Generally, the inter switch links and the uplinks are trunk ports, and ports that connect to normal hosts are access ports:

Figure 5: Trunk port

The trunk ports carry tagged frames, as shown next, that have a specific field called the 802.1Q tag. This tag has fields that can be used for identification of the VLAN number and also for the classification of frames with regard to the priority that these frames need when being processed by the devices. We will describe the priority fields when we discuss Quality of Service in Chapter 9, Understanding and Configuring Quality of Service. An Ethernet frame with an 802.1Q header is as shown the following figure. The field lengths in bits are given in parenthesis:

Figure 6: 802.1Q Header

Note in the preceding figure that the TPID value is always set to 8100 (hex) to indicate that this is a tagged frame. The VLAN numbers are carried in the VLAN ID field that is 12 bits long. Note that with the addition of the 802.1Q tag, the Ethernet header increases to 22 bytes.

主站蜘蛛池模板: 荣昌县| 松滋市| 东兰县| 靖远县| 和平区| 黎川县| 新巴尔虎右旗| 汤阴县| 贡嘎县| 青铜峡市| 木里| 华坪县| 夹江县| 揭西县| 广昌县| 伊宁市| 布拖县| 云安县| 石家庄市| 广河县| 商河县| 梅州市| 天镇县| 临邑县| 鄯善县| 和硕县| 海安县| 河池市| 波密县| 武邑县| 克东县| 冷水江市| 宁陕县| 金昌市| 乌鲁木齐市| 沛县| 黎城县| 浮梁县| 福州市| 永州市| 册亨县|