Configuring the data encapsulation type

A PBB VSI supports Ethernet and VLAN data encapsulation types.

Data encapsulation type decides how the BEB handles the P-tag on a PBB VSI, as shown in Table 19. P-tags are unique VLAN tags that the service provider assigns to users for differentiation.

Table 19: P-tag manipulation

Traffic direction

Ethernet encapsulation

VLAN encapsulation

CE to PBBN

The traffic must not contain a P-tag.

  • VLAN access mode—The BEB removes the P-tag before it encapsulates the traffic in PBB.

  • Ethernet access mode—The BEB directly encapsulates the traffic in PBB. The VLAN tag in the received traffic is considered a U-tag.

The traffic must contain a P-tag.

  • VLAN access mode—The BEB retains the P-tag or changes the P-tag to the value assigned by the peer BEB.

  • Ethernet access mode—The BEB adds the P-tag assigned by the peer BEB. The original VLAN tag in the received traffic is considered a U-tag.

The P-tag assigned by the peer BEB might be a null tag (tag 0).

PBBN to CE

  • VLAN access mode—The BEB adds a P-tag before it forwards the traffic.

  • Ethernet access mode—The BEB forwards the traffic without adding a P-tag.

The BEB cannot modify or remove any tags already in the traffic from PBBN to CE.

  • VLAN access mode—The BEB forwards the traffic with the P-tag modified or intact.

  • Ethernet access mode—The BEB removes the P-tag before it forwards the traffic.


[NOTE: ]

NOTE:

To configure the access mode, use the xconnect vsi command (see MPLS Command Reference).


To configure the data encapsulation type for a PBB VSI:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter VSI view.

vsi vsi-name

N/A

3. Enter PBB VSI view.

pbb i-sid i-sid

N/A

4. Specify an encapsulation type for the PBB VSI.

encapsulation { ethernet | vlan }

By default, VLAN encapsulation applies.