#Checking for config with CoS
show configuration | match "class|cos" |except login | display set
set class-of-service shared-buffer percent 100
set class-of-service interfaces ge-2/0/14 shaping-rate 200m
#Checking Interface with CoS - also matches the filter and policer names
show configuration | match "ge-2/0/14|-sanitised-|200M-firewall-filter" | display set
set interfaces ge-2/0/14 description "RESERVED QinQ - #HIDDEN#"
set interfaces ge-2/0/14 unit 0 family ethernet-switching port-mode access
set interfaces ge-2/0/14 unit 0 family ethernet-switching vlan members 957
set interfaces ge-2/0/14 unit 0 family ethernet-switching filter input -sanitised-
set class-of-service interfaces ge-2/0/14 shaping-rate 200m
set firewall family ethernet-switching filter -sanitised- term 1 then accept
set firewall family ethernet-switching filter -sanitised- term 1 then policer 200M-firewall-filter
set firewall family ethernet-switching filter -sanitised- term 2 then accept
set firewall policer 200M-firewall-filter if-exceeding bandwidth-limit 200m
set firewall policer 200M-firewall-filter if-exceeding burst-size-limit 125k
set firewall policer 200M-firewall-filter then discard
#Surprisingly, this interface has drops today - hasn't had it before (don't worry about the Half Duplex, it's a cosmetic error with the 15.1 code)
show interfaces ge-2/0/14 extensive | match "phy|speed|duplex|error|bps|flap"
Physical interface: ge-2/0/14, Enabled, Physical link is Up
Link-level type: Ethernet, MTU: 1514, LAN-PHY mode, Speed: Auto, Duplex: Half-duplex, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
Last flapped : 2018-09-11 06:17:45 UTC (79w3d 11:17 ago)
Input bytes : 5007373448 441112 bps
Output bytes : 891298374 45256 bps
Input errors:
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0
Output errors:
Carrier transitions: 0, Errors: 0, Drops: 16, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
CRC/Align errors 0 0
FIFO errors 0 0
Link mode: Full-duplex, Flow control: None, Remote fault: OK, Link partner Speed: 1000 Mbps
% bps % usec
Input bytes : 0 0 bps
Output bytes : 0 0 bps
#In comparison, all the other interfaces that have drops
show interfaces extensive | match drops | no-more | except "Drops: 0"
Carrier transitions: 0, Errors: 0, Drops: 216210, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 20, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 9029, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 297, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 12361, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 5609, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 16, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 17, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 1093, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 6989, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 3480, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Carrier transitions: 0, Errors: 0, Drops: 31859, MTU errors: 0, Resource errors: 0
#Doubt this is important but - classifier for the CoS interface and the interface that has the most drops is the same (I think all interfaces are in this default Classifier)
show class-of-service interface ge-2/0/14.0
Logical interface: ge-2/0/14.0, Index: 150
Object Name Type Index
Classifier ieee8021p-untrust untrust 16
show class-of-service interface ae4.0
Logical interface: ae4.0, Index: 75
Object Name Type Index
Classifier ieee8021p-untrust untrust 16
show class-of-service classifier name ieee8021p-untrust
Classifier: ieee8021p-untrust, Code point type: ieee-802.1, Index: 16
Code point Forwarding class Loss priority
000 best-effort low
001 best-effort low
010 best-effort low
011 best-effort low
100 best-effort low
101 best-effort low
110 best-effort low
111 best-effort low
Looks like we're going to have to start reading the CoS books to get this to work the way we want - may try disabling the CoS we have in place now just to see if it affects it 🙂