05-20-2015 10:15 AM
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!
05-21-2015 04:24 AM
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
05-21-2015 04:28 AM
Thank you!
I will try.
06-03-2015 11:10 AM
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.
06-04-2015 04:29 AM
Thank you!
05-25-2015 12:21 AM
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!
05-25-2015 05:39 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide