cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1737
Views
5
Helpful
6
Replies

Per interface IPv6 traffic counting

I'm preparing to migrate from Catalyst 6500 platform to ASR9k and i have a problem.

We need to count IPv6 traffic under interface. On Cat6500 it was easy, just create QoS policy map, for example:

class-map match-all ipv6-in
  match protocol ipv6
!
class-map match-all ipv6-out
  match protocol ipv6
!
policy-map IPv6-counting-in
  class ipv6-in
     police aggregate ipv6-in
!
policy-map IPv6-counting-out
  class ipv6-out
     police aggregate ipv6-out
!
interface XXX
 service-policy input IPv6-counting-in
 service-policy output IPv6-counting-out

 

After, IPv6 traffic counting available via SNMP (CISCO-CLASS-BASED-QOS-MIB).

 

But in IOS XR i can't find "police aggregate" command.

Can you help me, how i can monitor IPv6 traffic under interface via snmp in IOS XR.

Very appreciate!

6 Replies 6

xthuijs
Cisco Employee
Cisco Employee

hi Dmitry,

you could setup a qos policy that matches any ipv6 packet with an acl

and set a "bogus" action on it, like set qos-group (on ingress), then you can monitor that class

with the same mib for matches on that class.

for egress you could set something you don't care about, or use a policer and set the rate to something but with both violate and exceed actions to transmit, so it wont get dropped.

cheers

xander

Thank you! 

I will try.

Dmitry,

 

I noticed someone else asked the same, doing it through a QOS policy doesn't scale:

nms-server2:~ % snmpwalk -v 2c -c public 172.18.87.48 1.3.6.1.2.1.4.31.3.1
IP-MIB::ipIfStatsHCInReceives.ipv6.27 = Counter64: 0    
IP-MIB::ipIfStatsHCInOctets.ipv6.27 = Counter64: 0   
IP-MIB::ipIfStatsHCOutTransmits.ipv6.27 = Counter64: 0  
IP-MIB::ipIfStatsHCOutOctets.ipv6.27 = Counter64: 0     
IP-MIB::ipIfStatsHCInMcastPkts.ipv6.27 = Counter64: 0   
IP-MIB::ipIfStatsHCInMcastOctets.ipv6.27 = Counter64: 0 
IP-MIB::ipIfStatsHCOutMcastPkts.ipv6.27 = Counter64: 0 
IP-MIB::ipIfStatsHCOutMcastOctets.ipv6.27 = Counter64: 0

 

Eddie.

echami,

Thank you!

XR have excellent commands, like "monitor interface x/x/x/x". And we can see counters for IPv4 Unicast/Multicast and IPv6 Unicast/Multicast in both direction (Packets, pps, Bytes, Kbps (rate)).

Do ASR have this counting available via SNMP?

Thanks!

yeah packet and byte count are part of the standard IFMIB. rate counters are not exported, this is something that the mgmt backend needs to compute itself based on the counts it received (eg mrtg can do this nicely).

cheers

xander