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 要檢查微流策略統(tǒng)計(jì),可以使用下述命令: 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í),采用sh qos statistics aggregate-policer命令可以在策略器上逐個(gè)查看集合策略統(tǒng)計(jì)信息。
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 注重,答應(yīng)的數(shù)據(jù)包已經(jīng)增加到304,超額數(shù)據(jù)包為5068,意味著策略器丟棄了5068個(gè)數(shù)據(jù)包,有304個(gè)得以通過。假如輸入速率為17 Mbps,則策略器將讓該流量的1/17通過。對比丟棄的和轉(zhuǎn)發(fā)的數(shù)據(jù)包,我們可以得到下述式子:304/(304+5068)=0.057或者約為1/17。由于硬件策略粒度的因素,可能還會(huì)有一些微小差別。 要進(jìn)行微流策略統(tǒng)計(jì),可采用 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