Cat6k> (enable) sh qos statistics l3stats Packets dropped due to policing: 1222086 IP packets with ToS changed: 27424 IP packets with CoS changed: 3220 Non-IP packets with CoS changed: 0 要检查微流策略统计,可以使用下述命令: Cat6k> (enable) sh mls entry qos short Destination-IP Source-IP Port DstPrt SrcPrt Uptime Age
IP bridged entries: 239.77.77.77 192.168.10.200 UDP 63 63 00:22:02 00:00:00 Stat-Pkts : 165360 Stat-Bytes : 7606560 Excd-Pkts : 492240 Stat-Bkts : 1660 239.3.3.3 192.168.11.200 UDP 888 777 00:05:38 00:00:00 Stat-Pkts : 42372 Stat-Bytes : 1949112 Excd-Pkts : 126128 Stat-Bkts : 1628 Only out of the profile MLS entries are displayed Cat6k> (enable) 在使用Supervisor Engine II时,采用sh qos statistics aggregate-policer命令可以在策略器上逐个查看集合策略统计信息。
bratan#sh mls qos QoS is enabled globally Microflow policing is enabled globally QoS global counters: Total packets: 10779 IP shortcut packets: 0 Packets dropped by policing: 2110223 IP packets with TOS changed by policing: 0 IP packets with COS changed by policing: 0 Non-IP packets with COS changed by policing: 0 bratan#sh mls qos ip gigabitEthernet 2/8 [In] Policy map is udp_policy [Out] Default. QoS Summary [IP]: (* - shared aggregates, Mod - switch module) Int Mod Dir Class-map DSCP AgId Trust FlId AgForward-Pk AgPoliced-Pk -------------------------------------------------------------------- Gi2/8 1 In udp_qos 0 1* No 0 127451 2129602
bratan#sh mls qos ip gigabitEthernet 2/8 [In] Policy map is udp_policy [Out] Default. QoS Summary [IP]: (* - shared aggregates, Mod - switch module) Int Mod Dir Class-map DSCP AgId Trust FlId AgForward-Pk AgPoliced-Pk ------------------------------------------------------------------- Gi2/8 1 In udp_qos 0 1* No 0 127755 2134670 注重,答应的数据包已经增加到304,超额数据包为5068,意味着策略器丢弃了5068个数据包,有304个得以通过。假如输入速率为17 Mbps,则策略器将让该流量的1/17通过。对比丢弃的和转发的数据包,我们可以得到下述式子:304/(304+5068)=0.057或者约为1/17。由于硬件策略粒度的因素,可能还会有一些微小差别。 要进行微流策略统计,可采用 sh mls ip detail 命令: Orion#sh mls ip detail IP Destination IP Source Protocol L4 Ports Vlan Xtag L3-protocol --------------+---------------+--------+-------------+----+----+-----------+ 192.168.3.33 192.168.2.2 udp 555 / 555 0 1 ip 192.168.3.3 192.168.2.2 udp 63 / 63 0 1 ip