QoS

models

classification

marking

tools

admission control

token bucket algorithm

congestion management

congestion avoidance

HQF

lab

Cisco

ip access-list extended ICMP
 permit icmp any any
 deny   ip any any
class-map match-all CM
 match access-group name ICMP
policy-map PM
 class CM
  set dscp cs2
interface GigabitEthernet0/1
 service-policy output PM
[  2] 40.0000-45.0000 sec  1.23 MBytes  2.06 Mbits/sec
[  1] 40.0000-45.0000 sec  1.12 MBytes  1.89 Mbits/sec

policy-map PM
 class class-default
  police cir 500000 bc 15625 conform-action transmit  exceed-action drop
interface GigabitEthernet0/1
 service-policy output PM

[  1] 730.0000-735.0000 sec  1.25 MBytes  2.10 Mbits/sec
[  2] 730.0000-735.0000 sec   228 KBytes   373 Kbits/sec

Juniper

firewall {
    family inet {
        filter ICMP {
            term 1 {
                from {
                    protocol icmp;
                }
                then {
                    accept;
                    dscp cs2;
                }
            }
            term 2 {
                then {
                    discard;
                }
            }
        }
    }
}
interfaces {
    ge-0/0/1 {
        unit 0 {
            family inet {
                filter {
                    output ICMP;
                }
            }
        }
    }
}
[  1] 1010.0000-1015.0000 sec  36.9 MBytes  61.9 Mbits/sec
[  2] 1010.0000-1015.0000 sec  19.7 MBytes  33.1 Mbits/sec

firewall {
    family inet {
        filter POL-FILTER {
            term 1 {
                then {
                    policer POL;
                    accept;
                }
            }
        }
    }                                   
    policer POL {
        if-exceeding {
            bandwidth-limit 15m;
            burst-size-limit 1875000;
        }
        then discard;
    }
}
interfaces {
    ge-0/0/1 {
        unit 0 {
            family inet {
                filter {
                    input POL-FILTER;
                }
            }
        }
    }
}

[  2] 1535.0000-1540.0000 sec  47.5 MBytes  79.7 Mbits/sec
[  1] 1535.0000-1540.0000 sec  8.38 MBytes  14.1 Mbits/sec

Mikrotik

/ip firewall mangle
add action=change-dscp chain=forward new-dscp=16 out-interface=ether1 protocol=icmp
[  2] 20.0000-25.0000 sec   567 KBytes   929 Kbits/sec
[  1] 20.0000-25.0000 sec   637 KBytes  1.04 Mbits/sec

/queue simple
add max-limit=500k/50M name=SHAPE target=ether1

[  2] 845.0000-850.0000 sec   255 KBytes   418 Kbits/sec
[  1] 845.0000-850.0000 sec   542 KBytes   887 Kbits/sec

HPE

acl advanced name ICMP
 rule 0 permit icmp
 rule 5 deny ip
traffic classifier 1 operator and
 if-match acl name ICMP
traffic behavior 1
 remark dscp cs2
qos policy 1
 classifier 1 behavior 1
interface GigabitEthernet1/0
 qos apply policy 1 outbound
[  2] 190.0000-195.0000 sec  8.16 MBytes  13.7 Mbits/sec
[  1] 190.0000-195.0000 sec  8.12 MBytes  13.6 Mbits/sec

traffic classifier 1 operator and
 if-match any
traffic behavior 1
 car cir 1000 cbs 62500 ebs 0 green pass red discard yellow pass
qos policy 1
 classifier 1 behavior 1
interface GigabitEthernet1/0
 qos apply policy 1 outbound

[  2] 120.0000-125.0000 sec   276 KBytes   452 Kbits/sec
[  1] 120.0000-125.0000 sec  16.1 MBytes  27.1 Mbits/sec

Arista