Access/Hybrid/Trunk 端口模式及区别

Access/Hybrid/Trunk 端口模式及区别

         2010-10-27

 

在工作和交流中,总会有人为Hybrid和Trunk的概念和区别争吵,前几天面试的时候还和面试官争论了起来, 现做一个总结和概念涔清。 

 

首先看下 IEEE-820.1Q-1998中 Annex D: Backgroud of Vlan 中的定义,

 

 

Trunk Links

All frames, including end station frames, on a Trunk Link are VLAN-tagged.

 

Access Links

All frames on an Access Link carry no VLAN identification; 

 

Hybrid Links

A Hybrid Link can carry both VLAN-tagged frames and other (untagged or priority-

tagged) frames. It must be borne in mind that, for a given VLAN, all frames transmitted by a given

Bridge on a given hybrid link must be tagged the same way on that link. They must be either

a) All untagged; or

b) All tagged, carrying the same VLAN ID.

 

 

All,  A Hybrid link in which all frames are VLAN-tagged is a Trunk Link. Conversely, a Hybrid Link that has no

VLAN-tagged frames is an Access Link. The distinction between Access and Trunk becomes less important

 

 

也就是说如IEEE-802.1Q 1998-2003中定义的, Trunk端口只能接收和发送带Tag报文; Access只能接收和发送Untag报文;Hybrid可以同时处理Tag和Untag报文; 

 

 

但是, 随着市场和各芯片厂家的实现区别, 有些在Trunk上也加入了Pvid的概念, 所以在2005版的IEEE-802.1Q时, 放弃了对端口模式的严格定义, 如下原文,

 

Annex D

(informative)

Background to VLANs

In IEEE Std 802.1Q, 2004 Edition, and in previous revisions of this standard, the text in this annex contained

tutorial material that related the terminology and concepts introduced IEEE Std 802.1Q to the terminology

and concepts that were current in the VLAN market at that time. As that material is now of only historical

interest, and has no particular relevance to present-day usage, it has been removed.

This annex will be removed in the next revision of this standard.

 

所以, 争论Trunk和Hybrid区别已经没有意义, 标准已经放弃了定义, 各厂家实现也不一样, 但是要明白其中的处理流程才是最重要的。 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值