BCM VLAN问题

BCM VLAN 问题:
BCM56270交换芯片支持4种全局的TPID(global outer TPIDs)。
如下:
1.Ingress outer TPID ING_OUTER_TPID[0:3]寄存器:
ING_OUTER_TPID_0(default 0x8100),
ING_OUTER_TPID_1(default 0x9100),
ING_OUTER_TPID_2(default 0x88a8),
ING_OUTER_TPID_3(default 0x0).

2.MPLS packets:
ING_MPLS_TPID[3:0]
ING_MPLS_TPID_0(default 0x8100),
ING_MPLS_TPID_1(default 0x9100),
ING_MPLS_TPID_2(default 0x88a8),
ING_MPLS_TPID_3(default 0x0).

指示值在:
outer TPID 寄存器:
Packets:
PORT.OUTER_TPID_ENABLE --> ING_OUTER_TPID_x
MPLS packet:
SOURCE_VP.TPID_ENABLE[0:3] --> ING_MPLS_TPID_x

inner TPID 寄存器:
Packets:
VLAN_CTRL.INNER_TPID(default 0x8100)
MPLS packets:
ING_MPLS_INNER_TPID(default 0x8100)

判断值:
1.Double-tagged (DT):A packet is double-tagged when the following conditions are true:
– Bytes 12 and 13 of the packet match any one of the ingress PPPs configured outer TPIDs.
– Bytes 16 and 17 of the packet match the per chip configured inner TPID.
解释(MPLS packets):
收到packet的 Bytes 12 and 13 = 用户配置的SOURCE_VP.TPID_ENABLE[0:3] --> ING_MPLS_TPID_x 对应的 TPID 值, 而且,
收到packet的 Bytes 16 and 17 = 用户配置的ING_MPLS_INNER_TPID(default 0x8100).

2.Single Outer-tagged (SOT): A packet is single outer-tagged when the following conditions are true:
– Bytes 12 and 13 of the packet match any one of the ingress PPPs configured outer TPIDs.
– Bytes 16 and 17 of the packet do not match the per chip configured inner TPID.
解释(MPLS packets):
收到packet的 Bytes 12 and 13 = 用户配置的SOURCE_VP.TPID_ENABLE[0:3] --> ING_MPLS_TPID_x 对应的 TPID 值, 而且,
收到packet的 Bytes 16 and 17 != 用户配置的ING_MPLS_INNER_TPID(default 0x8100).

3.Single Inner-tagged (SIT): A packet is single inner-tagged when bytes 12 and 13 of the packet do not match any one of the ingress PPPs configured outer TPIDs but match the per chip configured inner TPID.
解释(MPLS packets):
收到packet的 Bytes 12 and 13 != 用户配置的SOURCE_VP.TPID_ENABLE[0:3] --> ING_MPLS_TPID_x 对应的 TPID 值, 而且,
收到packet的 Bytes 12 and 13 = 用户配置的ING_MPLS_INNER_TPID(default 0x8100).

4.Untagged: A packet is untagged if bytes 12 and 13 of the packet do not match any one of the ingress PPPs configured outer TPIDs and do not match the per chip configured inner TPID.
解释(MPLS packets):
收到packet的 Bytes 12 and 13 != 用户配置的SOURCE_VP.TPID_ENABLE[0:3] --> ING_MPLS_TPID_x 对应的 TPID 值, 而且,
收到packet的 Bytes 12 and 13 != 用户配置的ING_MPLS_INNER_TPID(default 0x8100).

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值