Академический Документы
Профессиональный Документы
Культура Документы
Issue 1.105
Date 2014-09-0414
CONFIDENTIAL
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website: http://www.huawei.com
Email: support@huawei.com
Author
Prepared By Zhang Xianfeng Date 2012-02-01
Change History
Issue Details Date Author
Contents
1 VMAC Feature
1.1 Abstract
To protect the system and the carrier's network, the 1:1 VMAC function can be enabled for
the PPPoE and DHCP access users. On the access device (DSLAM), replace the user MAC
(UMAC) address with a VMAC address in the MAC address pool. In this way, the unreliable
MAC addresses cannot access the carrier's network, and the UMAC address conflict can also
be prevented. In addition, a VMAC address can carry the port information about a user to
identify the user port.
SA = DA = Remainder SA = DA = Remainder
MAC U MAC B of Frame U X MAC X MAC B of Frame
MAC B
MAC U
SA = DA = Remainder U X SA = DA = Remainder
MAC B MAC U of Frame MAC B MAC X of Frame
VMAC Handler
A port-based VMAC address contains 48 bits, where, only the DSLAM ID and reserved bit
needs to be configured and other information including the slot ID and port ID are generated
automatically. For details about the format of a port-based VMAC address, see Figure 1.2.
An ONT-based VMAC address contains 48 bits, where, only the OLT ID and reserved bit
needs to be configured. Other information including the slot ID, port ID, and ONT ID are
generated automatically. For details about the format of an ONT-based VMAC address, see
Figure 1.3.
− Establish the mapping relationship between MAC U and MAC X. The MA5600T
detects the source MAC address in the upstream packets, selects a MAC X from the
32 VMAC addresses allocated for the port to replace the source MAC in the upstream
packets, and creates the mapping relationship between MAC U and MAC X.
− Learn the user source MAC address from the MA5600T.
− Age MAC X periodically. In aging, the mapping relationship between MAC U and
MAC X is deleted.
− Learn source MAC X of the upstream packets from the MA5600T.
− Forward the packets based on VLAN+DMAC of the downstream packets by the
MA5600T, where DMAC is MAC X. If DMAC is a broadcast MAC address, packets
are broadcast in the VLAN.
− Forward the packets based on VLAN+DMAC of the packets by the MA5600T, where
DMAC is MAC X. When packets are forwarded to the user port, replace MAC X
with MAC U.
3. Rules for VMAC address allocation
The rules for VMAC addresses allocation are as follows:
− In the format of a VMAC address, the information with the fixed values allocated
indicates the fixed information in the VMAC address.
− The DSLAM ID and OLT ID needs to be configured through the CLI or MIB
interface.
− The MA5600T automatically allocates the slot ID and port ID based on the actual
slot/port ID of a physical port.
− Reserve indicates the reserved information. By default, it is 0.
1.2 Prerequisites
4. The DSLAM must be in the multi-MAC mode.
5. The SVLAN for accessing a user cannot be a QinQ VLAN.
6. The VLAN which has cascaded GEM ports does not support VMAC features.
hwIpDslamVma It is used to query and set the VMAC slot number Mandatory
cSlotNumbering format.
Options:
1. logical(1)
2. physical(2)
3. default(3)
Default: default(3)
hwIpDslamVma It is used to query and set the starting portid of Mandatory
cPortBegin VMAC.
Range: 01, 4294967295
Default: 4294967295
1.6 Explanation
The VMAC feature involves the following operations: setting/querying the global status of
the VMAC function, setting OLTID, setting/querying the number of VMAC addresses for
each port/ONT, querying the mapping relationship between the VMAC address and the
UMAC address, setting/querying the DSLAM ID, setting/querying the reserved bits in a
VMAC address, and setting/querying the VMAC status of a VLAN.
The following sections describe each scenario of the VMAC feature step by step. In the get or
set operation, if 0 is returned, the operation is successful; if any other value is returned, the
operation fails. For details about the meaning of the returned values, see relevant documents
of error codes.
26. Setting the global status of the VMAC function
To set or query the VMAC status, use hwIpDslamVmacStatus. The index must be 0.
When a user enables the VMAC feature based on DSLAM ID, the DSLAM ID must be
configured to ensure creation of a VMAC address. For example, to enable the VMAC
feature based on DSLAM ID, perform the set operation on hwIpDslamVmacStatus to set
that the global status of the VMAC function is enabled based on DSLAM ID. For details,
see the following configurations.
Leaf Value Mandatory or Not Default Value
hwIpDslamVmacPortVmacNum 10 Yes 32
hwIpDslamVmacReserveBits 2 Yes
hwIpDslamVmacStatus disabled(2)
(2) Perform the get operation on hwIpDslamVmacDslamId. The index must be 0. The
current DSLAM ID is the default 0x7FFFF, as follows.
Leaf Value Mandatory or Not Default Value
hwIpDslamVmacDslamId 0x7FFFF
hwIpDslamVmacPortVmacNum 32
(4) Perform the get operation on hwIpDslamVmacReserveBits. The index must be 0. The
reserved bit in a VMAC address is 0, as follows.
Leaf Value Mandatory or Not Default Value
hwIpDslamVmacReserveBits 0
(5) Perform the get operation on hwIpDslamVmacOltId. The index must be 0. The
default value of the OLT ID is 0xFFFF. For details, see the following table.
Leaf Value Mandatory or Not Default Value
hwIpDslamVmacOltId 65535
hwIpDslamVmacOntVmacNum 8
hwIpDslamVmacSlotNumbering physical(2)
(8) Perform the get operation on hwIpDslamVmacPortBegin. The index must be 0. The
start port ID of the VMAC is 4294967295 by default. Perform the get operation
when the start port ID is set to 0. For details, see the following table.
Leaf Value Mandatory or Not Default Value
hwIpDslamVmacPortBegin 0
31. Querying the mapping relationship between the VMAC address and the UMAC address
(1) Querying the mapping relationship between the VMAC address and the UMAC
address of a port
Perform the get or walk operation on hwIpDslamVmacUmacMappingTable to query the
mapping relationship between the VMAC address and the UMAC address of a port.
The index of hwIpDslamVmacUmacMappingTable is
hwIpDslamVmacUmacMappingIfIndex, which is used for specifying the VMAC address
and the UMAC address of a port. It is determined by the shelf ID, slot ID, and port ID.
The method of calculating the value of hwIpDslamVmacUmacMappingIfIndex is the
same as that of ifIndex. For details about how to calculate the value of ifIndex, see the
ifIndex MIB Encoding Rules.
When querying the mapping relationship between the VMAC address and the UMAC
address of all ports on all DSLAMs, perform the walk operation on
hwIpDslamVmacUmacMappingTable.
When querying the mapping relationship between the VMAC address and the UMAC
address of a port, specify the index of the port determined by the shelf ID/slot ID/port ID
and perform the get operation on hwIpDslamVmacUmacMappingTable. For example,
query the mapping relationship between the VMAC address and the UMAC address of
port 0/12/5 (the port index is 201425216). The results in blue are listed in the following
table.
Leaf Value Mandatory or Not Default Value
hwIpDslamVmacUmacMapping 201425216
IfIndex
hwIpDslamVmacUmacMapping 02-02-D5-
VmacAddress 06-01-40
hwIpDslamVmacUmacMapping 00-E0-FC-
UmacAddress 90-3C-BB
(2) Querying the mapping relationship between the VMAC address and the UMAC
address of an ONT
Perform the get or walk operation on hwOltVmacUmacMappingTable to query the
mapping relationship between the VMAC address and the UMAC address of an ONT.
The indexes of the hwOltVmacUmacMappingTable are
hwOltVmacUmacMappingIfIndex and hwOltVmacUmacMappingOntID, which are used
for specifying the VMAC address and UMAC address of an ONT. It is determined by the
shelf ID, slot ID, and port ID. The method of calculating the value of
hwIpDslamVmacUmacMappingIfIndex is the same as that of ifIndex. For details about
how to calculate the value of ifIndex, see the ifIndex MIB Encoding Rules.
When querying the mapping relationship between the VMAC address and the UMAC
address of all ONTs, perform the walk operation on hwOltVmacUmacMappingTable.
When querying the mapping relationship between the VMAC address and the UMAC
address of an ONT, specify the port index determined by the shelf ID, slot ID, and port
ID and ONT number. Perform the get operation on hwOltVmacUmacMappingTable. For
example, query the mapping relationship between the VMAC address and the UMAC
address of ONT 3 connected to the port 0/1/0 (index: 4194312192).
Leaf Value Mandatory or Not Default Value
hwIpDslamL2pVlanCtrlVmacSt disable(1)
atus
hwIpDslamL2pVlanCtrlVmacIp enable(2)
oeSubStatus
hwIpDslamL2pVlanCtrlVmacP enable(2)
ppoeSubStatus
hwIpDslamL2pVlanCtrlVmacP enable(2)
ppoaSubStatus
hwIpDslamVmacOntVmacNum 7 Yes 8
(2) Perform the get operation on hwIpDslamVmacDslamId and obtain the current
DSLAM ID. The result is the default 0x7FFFF, as shown in the following figure.
(4) Perform the get operation on hwIpDslamVmacReserveBits to query the reserved bit
in a VMAC address. The result is 0, as shown in the following figure.
(5) Perform the get operation on hwIpDslamVmacOltId to query the OLT ID. The result
is 0xFFFF, as shown in the following figure.
(7) Perform the get operation on the scalar node hwIpDslamVmacSlotNumbering. The
index must be set to 0. The slot ID of the VMAC is default(3) by default. Perform
the get operation when the slot ID is set to physical. For details, see the following
figure.
(8) Perform the get operation on the scalar node hwIpDslamVmacPortBegin. The index
must be set to 0. The start port ID of the VMAC is 4294967295 by default. Perform
the get operation when the start port ID is set to 0. For details, see the following
figure.
50. Querying the mapping relationship between the VMAC address and the UMAC address
(1) Querying the mapping relationship between the VMAC address and the UMAC
address of a port
Perform the get operation on hwIpDslamVmacUmacMappingTable to query the
mapping relationship between the VMAC address and the UMAC address of a port. For
example, query the mapping relationship between the VMAC address and the UMAC
address of port 0/12/5 (the port index is 201425216), as shown in the following figure.
(2) Querying the mapping relationship between the VMAC address and the UMAC
address of an ONT
Perform the get operation on hwOltVmacUmacMappingTable. For example, query the
mapping relationship between the VMAC address and the UMAC address of ONT 3
connected to the port 0/1/0 (index: 4194312192). For details, see the following figure.