app note vlan br vlanid transl

9
VLAN ID Translation Date: March 2008 Version: v1.0 Abstract: This Application Notes describes the configuration of a specific feature of the Thomson Gateway: VLAN ID Translation. This feature is explained by integrating the Thomson Gateway in a scenario where untagged, priority-tagged or VLAN-tagged frames have to be bridged between the local Ethernet segment and the DSL line. The practical realization of the scenario is described using CLI commands. Applicability: This Application Note applies to all Thomson DSL Gateways with R7.4 and higher. Updates: Thomson continuously develops new solutions, but is also committed to improving its existing products. For more information on Thomson's latest technological innovations, documents and software releases, visit us at http://www.thomson-broadband.com

Upload: husseinkgb

Post on 25-Dec-2014

227 views

Category:

Documents


2 download

DESCRIPTION

Thomson VLAN Br

TRANSCRIPT

Page 1: App Note Vlan Br Vlanid Transl

VLAN ID Translation

Date: March 2008

Version: v1.0

Abstract: This Application Notes describes the configuration of a specific feature of the Thomson Gateway: VLAN ID Translation. This feature is explained by integrating the Thomson Gateway in a scenario where untagged, priority-tagged or VLAN-tagged frames have to be bridged between the local Ethernet segment and the DSL line. The practical realization of the scenario is described using CLI commands.

Applicability: This Application Note applies to all Thomson DSL Gateways with R7.4 and higher.

Updates: Thomson continuously develops new solutions, but is also committed to improving its existing products.

For more information on Thomson's latest technological innovations, documents and software releases, visit us at http://www.thomson-broadband.com

Page 2: App Note Vlan Br Vlanid Transl

E-DOC-CTC-20080229-0009 v1.0 1

Chapter 1

1 Introduction

Thomson Gateway as bridgeTo set up the scenario of this document, the Thomson Gateway is configured as bridge. This means that Ethernet frames are forwarded between the local Ethernet segment (LAN) and the WAN Ethernet segment (PVCs on which RFC 1483 LLC encapsulation is used) on the link layer. In other words, the Thomson Gateway does not terminate or route received Ethernet frames.

VLANsThe Ethernet frames that have to be forwarded may reside in different VLANs. This implies that all Ethernet frames contain a (802.1Q) VLAN ID. Communication between different VLANs is not allowed on the link layer. Only routers can make connections between different VLANs. VLANs create thus separated logical Ethernet segments within a single physical segment.

Ethernet QoSEthernet frames optionally contain a (802.1p) user priority indication. If Ethernet QoS is taken into account during bridging, it can be based on two steps:

1 Mapping the user priority of an incoming frame to an internal priority class. This classification can be based on:

The type of the interface on which the frame is entering the bridge.

The (802.1p) user priority value.

The IP Type of Service octet (TOS-byte) for IP packets, using the Precedence or DSCP notation.

2 Sending out the frame while taking into account its internal priority class. This class can be used to:

Perform priority queuing on a single PVC.

Perform traffic multiplexing over a range of PVCs.

Related documentsFor detailed information on the features, CLI commands and parameters used in this document, see:

Thomson Gateway Ethernet Configuration Guide.

Thomson Gateway VLAN Configuration Guide.

Thomson Gateway Ethernet QoS Configuration Guide.

Page 3: App Note Vlan Br Vlanid Transl

2

Chapter 2

2 VLAN ID Translation

2.1 Scenario Overview

IntroductionIn this scenario, the Thomson Gateway is intended to forward VLAN-tagged Ethernet frames between the local Ethernet segment and the PVCs. The local VID of a frame received on a local interface is translated to a WAN-side VID before the frame is sent out on a WAN interface. Per interface and per VLAN ID, you have to be able to configure the translation from a local VID to a WAN-side VID.

This scenario configures the Thomson Gateway as bridge with one PVC. Frames coming in on a local interface are checked on VLAN ID and are only forwarded on PVCs that are member of the same VLAN. Before the frame is sent out by the PVC, the VLAN ID is translated. For example, a local VID A is translated into a WAN-side VID Z.

Following illustration shows the VLAN ID translation scenario:

MechanismsTo set up this scenario, we use following mechanisms:

VLAN awareness: the Ethernet bridge must be fully VLAN aware. As a result, the Ethernet bridge takes the VLAN tag in the header of received frames into account.

VLANs: several VLANs are created on the Thomson Gateway. The configured VLAN membership of the interfaces defines to which PVC the frames must be forwarded.

Extra tagging (stacked VLANs): this mechanism enables the use of a VID translation table. The VID translation table defines, per interface and per local VID, the mapping between the local VID and the WAN-side VID.

2.2 Practical Realization

Configuration overviewFollowing configuration steps have to be performed to configure the Thomson Gateway for this scenario:

1 Define which PVC must be used by configuring an ATM interface.

Thomson Gateway DSLAM

A 5A 2

PVC1

Z 5Z 2

VID 802.1p Local interface WAN interface

E-DOC-CTC-20080229-0009 v1.0

Page 4: App Note Vlan Br Vlanid Transl

Chapter 2

2 Connect the ATM interface to the Ethernet bridge.

3 Make the bridge VLAN aware.

4 Define a VLAN for the local VLAN ID the Ethernet bridge has to handle.

5 Define which interfaces are part of which VLAN.

6 Enable the extra tagging mechanism and define the VID translation table.

7 Save the configuration.

Before you startBefore you start to configure the Thomson Gateway, make following preparations:

Reset the Thomson Gateway to the factory defaults and reboot the device.

Make sure the telnet session with the Thomson Gateway never times out.

Remove the factory default interfaces and settings that you do not need for the configuration.

Make these changes permanent. Now, you can start from a clean situation.

Configure an ATM interfaceTo create a phonebook entry for the PVC that must be used, execute following CLI command (the VPI/VCI value is indicative):

To create, configure and connect an ATM interface on top of this phonebook entry, execute following CLI commands:

Configure a bridge portTo connect the ATM interface to the Ethernet bridge, execute following CLI commands:

=>:system reset factory=yes proceed=yes

=>:env set var=SESSIONTIMEOUT value=0

=>:ppp relay flush=>:ppp flush=>:eth flush=>:atm flush=>:atm phonebook flush

=>:saveall

=>:atm phonebook add name=phone_PVC1 addr=0.35

=>:atm ifadd intf=atm_PVC1=>:atm ifconfig intf=atm_PVC1 dest=phone_PVC1 ulp=mac=>:atm ifattach intf=atm_PVC1

=>:eth bridge ifadd intf=bridge_PVC1=>:eth bridge ifconfig intf=bridge_PVC1 dest=atm_PVC1=>:eth bridge ifattach intf=bridge_PVC1

E-DOC-CTC-20080229-0009 v1.0 3

Page 5: App Note Vlan Br Vlanid Transl

4

Chapter 2

Make the bridge VLAN awareTo enable the VLAN awareness of the Ethernet bridge, execute following CLI command:

From this moment on, all Ethernet frames arriving on the Ethernet bridge with a VLAN tag are only forwarded to interfaces configured as an explicit member of that VLAN.

Create the VLANTo define the VLAN to be used, execute following CLI command:

A logical name is associated with the effective VID that is used in the VLAN tag of the frame. The ‘addrule=disabled’ parameter forces the Thomson Gateway to create a separate filtering database for the created VLAN. As a result, the same MAC address (e.g. the DSLAM MAC address) can be used in different VLANs, for example when different VLANs are connected to the same device (e.g. the DSLAM).

Assign interfaces to the VLANThe LAN-side bridge ports must be member of each VLAN from which they have to accept frames. In this example, we only enable bridge port 4 to receive VLAN-tagged frames from VLAN A. The ‘untagged=disabled’ parameter avoids that the VLAN tag is stripped off when the frames are sent out on the interface.

To put bridge port 4 in VLAN A, execute following CLI command:

The VLAN membership of the WAN-side bridge ports defines to which PVCs the frames are forwarded. In this example, frames of VLAN A must be forwarded to PVC1. The ‘untagged=enabled’ parameter means that the VLAN tag is stripped off when the frames are sent out on the interface.

To put PVC1 in VLAN A, execute following CLI command:

To remove PVC1 from the default VLAN, execute following CLI command:

Configure VLAN translationTo enable the extra tagging mechanism, execute following CLI command:

To map the local VID 10 (VLAN A) to the WAN-side VID 4010 (VLAN Z), execute following command:

=>:eth bridge config vlan=enabled

=>:eth vlan add name=MyVLAN_A vid=10 addrule=disabled

=>:eth bridge vlan ifadd name=MyVLAN_A intf=ethport4 untagged=disabled

=>:eth bridge vlan ifadd name=MyVLAN_A intf=bridge_PVC1 untagged=enabled

=>:eth bridge vlan ifdelete name=default intf=bridge_PVC1

=>:eth bridge ifconfig intf=bridge_PVC1 xtratagging=c-vlan

=>:eth bridge xtratag add intf=bridge_PVC1 innervid=10 outervid=4010

E-DOC-CTC-20080229-0009 v1.0

Page 6: App Note Vlan Br Vlanid Transl

Chapter 2

Save the configurationTo make your changes permanent, execute following CLI command:

Expected resultTo display the list of VLANs on the Ethernet bridge, execute following CLI command:

To retrieve an overview of the population of the different VLANs, execute following CLI command:

To display the VID translation table, execute following CLI command:

Frames received on a bridge port are checked for their VLAN ID and are only sent out on bridge ports that are member of the same VLAN. The table above shows that frames with VID 10 (representing VLAN A) are only transmitted on PVC1. Using the extra tagging feature on PVC1, two tags are added: a tag with an inner VID 10 and a tag with an outer VID 4010. As the bridge port PVC1 is untagged member, the tag with the inner VID is stripped off. In the downstream direction, the translation table is consulted to assign frames with VID 4010 to VLAN A (VID 10).

Optionally control unexpected framesThe current configuration does not explicitly regulate the handling of unexpected frames that arrive on any of the bridge ports of the Thomson Gateway:

Untagged frames:

For example, to assign untagged frames to the default VLAN, execute following CLI command:

For example, to accept only VLAN-tagged frames on bridge port 4, execute following command:

=>:saveall

=>:eth vlan listVid Name--- ----1 default10 MyVLAN_A

=>:eth bridge vlan iflistVid Name Bridge interfaces (* = untagged)--- ---- --------------------------------1 default OBC*, ethport1*, ethport2*, ethport3*, ethport4*10 MyVLAN_A ethport4, bridge_PVC1*

=>:eth bridge xtratag listBridge Interface Inner VID Outer VID

------------------------------------------------------bridge bridge_PVC1 10 4010

=>:eth bridge ifconfig intf=ethport4 vlan=default

=>:eth bridge ifconfig intf=ethport4 acceptvlanonly=enabled

E-DOC-CTC-20080229-0009 v1.0 5

Page 7: App Note Vlan Br Vlanid Transl

6

Chapter 2

Tagged frames arriving on an incorrect interface:

For example, to drop VLAN-tagged frames coming in on bridge port 4 if the VID differs from 10, execute following CLI command:

Additionally, you can use following CLI command to prevent the Thomson Gateway from modifying the user priority indication in the VLAN tag:

=>:eth bridge ifconfig intf=ethport4 ingressfiltering=enabled

=>:eth bridge ifconfig intf=bridge_PVC1 priotransparent=enabled

E-DOC-CTC-20080229-0009 v1.0

Page 8: App Note Vlan Br Vlanid Transl
Page 9: App Note Vlan Br Vlanid Transl

Visit us at:

www.thomson-broadband.com

Coordinates:

Thomson Telecom

Prins Boudewijnlaan 47 B-2650 Edegem Belgium

Copyright

©2008 Thomson. All rights reserved. The content of this document is furnished for informational use only, may be subject to change without notice, and should not be construed as a commitment by Thomson. Thomson assumes no responsibility or liability for any errors or inaccuracies that may appear in this document. The information contained in this document represents the current view of Thomson on the issues discussed as of the date of publication. Because Thomson must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Thomson, and Thomson cannot guarantee the accuracy of any information presented after the date of publication. This document is for informational purposes only. Thomson MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE INFORMATION IN THIS DOCUMENT. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.