Workaround for collecting VLL traffic statistics via SNMP

Publication Date:  2013-03-26 Views:  313 Downloads:  0
Issue Description
For S7700 V100R006C00SPC800 there is no OID or MIB available, that could query VLL vpn traffic statistics and send via SNMP to a network monitoring server. So we need to find a good workaround for this requirement.
Alarm Information
First we've tried to enable statistics on vlanif interface associated with that VLL.

interface Vlanif400
description VLL
mpls l2vc 1.1.1.9
statistic enable both

interogating the OID always get value "0"
{Linux @nms ~]$snmpwalk -v2c -c XXX 1.1.1.9 ifHCInOctets.194
.1.3.6.1.2.1.31.1.1.1.6.194 = Counter64: 0

Handling Process
The second try was to use vlan statistics instead of vlanif statistics

Disable statistics on vlanif 667
Enable statistics on vlan 667 only

[77] vlan 667
[77-vlan77] statistics enable

Statistics will look like this :

display vlan 400 statistics
Board: 2
VLAN:  400
--------------------------------------------------------------------------
Item                                   Packets                       Bytes
--------------------------------------------------------------------------
Inbound                                   3,904                     412,542
Outbound                                  4,043                     425,278

in order to collect traffic statistics from vlan we can use this OID 1.3.6.1.4.1.2011.5.25.32.4.1.4.4.1. hwXQoSVlanStatVlanId.


Root Cause
The OID return always "0" because statistics values are always "0" when we have MPLS L2VC configured on vlanif400

Vlanif400 current state : UP
Line protocol current state : UP
Description:VLL
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
L2VPN connection of the main PW is up
L2VPN connection of the second PW is down
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec

Input:  0 packets, 0 bytes
Output:  0 packets, 0 bytes

    Input bandwidth utilization  : --
    Output bandwidth utilization : --

If i remove "mpls l2vc 1.1.1.9" statistics will be available on vlanif interface

display interface Vlanif 400Vlanif58 current state : UP
Line protocol current state : UP
Last line protocol up time : 2013-03-14 04:49:02
Description:HUAWEI, Quidway Series, Vlanif400 Interface
Route Port,The Maximum Transmit Unit is 1500
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input:  46501 packets, 5098014 bytes
Output:  0 packets, 0 bytes
    Input bandwidth utilization  : --
    Output bandwidth utilization : --
When I query ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6 returns the right value - 5098014 bytes

 Conclusion - statistics on Vlanif are not available on vlaif interface when mpls vll is enable on it.
Suggestions
We can use vlan statistics in order to collect VLL vpn traffic rate, since there is no OID implemented to query directly VLL, yet.

END