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).