Huawei DSLAM configuration part 2: Build VLAN and related settings
Hi Guys, in this post I will explain how to Build VLAN and related settings:
Next configure: Build a standard VLAN for inband device management:
To do this, proceed similar to the configuration done below.
In line of a VLAN, we define the standard type 2.
In lines 2 and 3, we allow the passage of frames with VLAN tag number 2 on the Ethernet ports of Application No. 0 and 1. (Frames with VLan 2 tag are allowed to exit the applinks)

Creating a Smart VLAN for Subscriber Ports:
Do the same as the configuration below.
- In line of a VLAN, we define the number 12 of the smart type.
- In lines 2 and 3, we allow the passage of frames with VLAN tag number 12 on the Ethernet ports of Application No. 0 and 1. (Frames with VLan tag 12 are allowed to exit the applinks)

Set IP address and Gateway
Setting the address for the in-band interface: We create a VLN interface with the standard VLN number we created earlier.
Then we set an IP address on this interface.
In the fourth line, by writing a default route, we provide access to the DSLAM address for networks other than the local DSLAM network.

Setting the address for the out of band interface:
This interface is called out of band because the actual traffic of the subscribers does not pass through this port.
An IP address can also be set on this interface.
Suppose your Network Management System server is in the address range 172.**.**.**.
By writing the corresponding root, such as line 4, you can connect the NMS server to the address set on the out of band interface.

Sync clock with NTP Server
To sync DSLAM clock with a time server, we do the following:

172.**.**.** is the address of our time server.
SNMP settings
To configure SNMP, do the following:
In the first line we specify the SNMP version and in the second line we specify the community and its type.

DSLAM configuration to provide VDSL service
The VDSL standard commonly used on Huawei cards is VDSL2 or G.993.2.
This standard offers up to 200 Mbps in the downstream direction (or download) and 100 Mbps in the upstream direction (or upload).
(Huawei documentation states maximum speed for downstream of 100 Mbps)
Add VDSL card to DSLAM
To add service cards, including VDSL cards to DSLAM, specify the type of card for DSLAM with the board add command.
as shown in line 7 of the display board command output below, no card is defined for slot # 2.

By the board add command, we define the board related to slot number 2 of VDL type, which means VDSL.

As you can see below, slot number 2 is now ready for a VDSL card.

Insert a shared port into the VLAN
In the previous post, we defined VLAN number 12 as a smart type.
To put a common port (port 0.1 / 0) in this VLAN, we do the following:

VDSL ports can work in two modes: Asynchronous Transfer Mode or ATM and Packet Transfer Mode or PTM.
In ATM mode, ATM cells are moved via VDSL line, but in PTM mode, Ethernet frames are moved via VDSL line.
The advantage of PTM over ATM is that there is no need to convert shared Ethernet frames to ATM cells for on-line transmission.
Specify common line parameters
To configure subscriber lines, it is necessary to set different parameters for their lines.
If these parameters are not set, DSLAM will use the default settings.
In the default settings (as in the example below) DSLAM tries to set up the shared port at the highest possible speed regardless of the SNR.
The low SNR of the subscriber line can cause the link to be disconnected and reconnected.
In the following example, the number 0/1/0 has been downloaded with a speed of 78 mg and 52 mg has been uploaded up (lines 16 and 17). The problem with this line could be the bottom line SNR, which is 7 for downstream and 6 for upstream (lines 43, 47, 51 and 55).

To solve this problem, we define different parameters in 4 steps as shown below and set them for the subscriber.
Step 1: Build a line profile
First, by creating a line profile, we specify parameters such as the standard used for the line and the SNR.
As can be seen in the following configuration, we have created a line-profile with index number 11 and for this line-profile:
- In lines 5 and 6, we have chosen the name VDSL-50M / 20M.
- In line 15, we have selected option 1 for the standard, which includes all the standards.
- In lines 22 to 28, we set the target SNR values, minimum and maximum for downstream and upstream.
Note: By setting the target snr equal to a DSLAM value, it tries to establish a correlation between the speed that lifts the line and the line SNR.
For example, it slows down to bring the common SNR closer to the target snr value.

You can use the vdsl line-profile display command to view the line profile you just created.

Step 2: Build a channel profile
Next, we define the Huawei DSLAM configuration (Huawei DSLAM) by creating a channel profile for ATM or PTM mode for data transfer, as well as the transfer speed.
As can be seen in the following configuration, we have created a channel-profile with index number 11 and for this channel-profile:
- In lines 5 and 6, we have chosen the name VDSL-50M / 20M.
- In lines 10 to 16, we have specified the minimum and maximum speed values for downstream and upstream.

You can use the vdsl channel-profile display command to view the channel profile you just created.

Step 3: Build a line template
Finally, by creating a line template, we integrate the settings in the line profile and channel profile in one place.
As can be seen in the following configuration, we have created a line-template with index number 11 and for this line-template:
- In lines 5 and 6, we have chosen the name VDSL-50M / 20M.
- In lines 7 and 11, we have specified the index numbers related to line-profile and channel-profile that we created in the previous steps.

You can use the vdsl line-template display command to view the line-template you just created.

Step 4: Apply the line template to the shared port
To apply a line-template to a shared port, we must disable the shared port and then enable it with the index number corresponding to the line template.

To view the status of the port after applying the settings, use the following command.
As you can see in the output of this command, the rate for the user port is lower and the SNR port is increased instead.
This makes the subscriber have a more stable service than before.

Speed limit operation on common port (optional)
Traffic shaping is also possible on Huawei DSLAMs.
To do this, you must first create a traffic table. In the traffic table, you specify the speed limit for traffic shaping.
Then to apply it to the shared port at the end of the service-port command, which is to specify the VLAN port and its mode, we also put rx-cttr 0 tx-cttr 0, which tells DSLAM to send the traffic table index number 0 for traffic and Use this port.1

Send port information to BRAS (optional)
One of the security features of many DSLAMs, including Huawei DSLAMs, is the ability to send shared port information to BRAS, or Broadband Remote Access Server.
BRAS usually sends this information to the RADIUS server, where it is checked whether the subscriber is connected to the port through which it should be connected to the network.
If the subscriber's username and password are received from the subscriber's own port, the connection to the network will be allowed.
Using this feature, it is possible to abuse user accounts as well as use one user account for multiple subscribers.
To enable this feature in MA5616, just enter the following command.1

Note: This method is much more efficient and better than methods such as restricting the shared port to a specific MAC address.
Thank you.

