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

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.

主站蜘蛛池模板: 屏东市| 通海县| 离岛区| 珠海市| 阿拉善右旗| 英吉沙县| 吉林省| 宝清县| 鲁山县| 淮阳县| 从化市| 乌鲁木齐县| 绥化市| 涞源县| 绩溪县| 忻城县| 叙永县| 沛县| 鄂伦春自治旗| 巴东县| 华亭县| 宜宾县| 通化市| 堆龙德庆县| 华亭县| 信宜市| 枣强县| 梁平县| 扶余县| 香格里拉县| 夏邑县| 同德县| 盱眙县| 达孜县| 交城县| 忻城县| 屏东市| 新宁县| 永宁县| 宁国市| 蓬安县|