Advanced QoS Verification

Configuration on the switch

"set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af2 loss-priority high code-points af22",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af2 loss-priority high code-points af23",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af2 loss-priority low code-points af21",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af3 loss-priority high code-points af32",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af3 loss-priority high code-points af33",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af3 loss-priority low code-points af31",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class bizapp-af3 loss-priority low code-points cs3",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class default-app loss-priority low code-points be",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class net-control loss-priority low code-points nc1",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class net-control loss-priority low code-points nc2",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class net-tools loss-priority high code-points af12",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class net-tools loss-priority high code-points af13",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class net-tools loss-priority low code-points af11",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class video loss-priority high code-points af42",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class video loss-priority high code-points af43",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class video loss-priority low code-points af41",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class video loss-priority low code-points cs4",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class voice loss-priority low code-points cs5",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default forwarding-class voice loss-priority low code-points ef",
        "set groups mist-qos-default class-of-service classifiers dscp dscp-classifier-default import default",
        "set groups mist-qos-default class-of-service forwarding-classes queue 0 default-app",
        "set groups mist-qos-default class-of-service forwarding-classes queue 1 video",
        "set groups mist-qos-default class-of-service forwarding-classes queue 2 bizapp-af3",
        "set groups mist-qos-default class-of-service forwarding-classes queue 3 bizapp-af2",
        "set groups mist-qos-default class-of-service forwarding-classes queue 4 net-tools",
        "set groups mist-qos-default class-of-service forwarding-classes queue 5 voice",
        "set groups mist-qos-default class-of-service forwarding-classes queue 7 net-control",
        "set groups mist-qos-default class-of-service interfaces ge-0/0/0 scheduler-map sched-maps-default",
        "set groups mist-qos-default class-of-service interfaces ge-0/0/0 unit 0 classifiers dscp dscp-classifier-default",
        "set groups mist-qos-default class-of-service interfaces ge-0/0/0 unit 0 rewrite-rules dscp dscp-rewriter-default",
        "set groups mist-qos-default class-of-service interfaces ge-0/0/9 scheduler-map sched-maps-default",
        "set groups mist-qos-default class-of-service interfaces ge-0/0/9 unit 0 classifiers dscp dscp-classifier-default",
        "set groups mist-qos-default class-of-service interfaces ge-0/0/9 unit 0 rewrite-rules dscp dscp-rewriter-default",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewrite-default import default",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class bizapp-af2 loss-priority low code-point af21",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class bizapp-af3 loss-priority low code-point af31",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class default-app loss-priority low code-point be",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class net-control loss-priority low code-point nc1",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class net-tools loss-priority low code-point af11",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class video loss-priority low code-point af41",
        "set groups mist-qos-default class-of-service rewrite-rules dscp dscp-rewriter-default forwarding-class voice loss-priority low code-point ef",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class bizapp-af2 scheduler bizapp-af2-scheduler",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class bizapp-af3 scheduler bizapp-af3-scheduler",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class default-app scheduler default-scheduler",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class net-control scheduler net-control-scheduler",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class net-tools scheduler net-tools-scheduler",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class video scheduler video-scheduler",
        "set groups mist-qos-default class-of-service scheduler-maps sched-maps-default forwarding-class voice scheduler voice-scheduler",
        "set groups mist-qos-default class-of-service schedulers bizapp-af2-scheduler buffer-size percent 10",
        "set groups mist-qos-default class-of-service schedulers bizapp-af2-scheduler priority low",
        "set groups mist-qos-default class-of-service schedulers bizapp-af2-scheduler transmit-rate percent 10",
        "set groups mist-qos-default class-of-service schedulers bizapp-af3-scheduler buffer-size percent 10",
        "set groups mist-qos-default class-of-service schedulers bizapp-af3-scheduler priority low",
        "set groups mist-qos-default class-of-service schedulers bizapp-af3-scheduler transmit-rate percent 10",
        "set groups mist-qos-default class-of-service schedulers default-scheduler buffer-size remainder",
        "set groups mist-qos-default class-of-service schedulers default-scheduler priority low",
        "set groups mist-qos-default class-of-service schedulers default-scheduler transmit-rate remainder",
        "set groups mist-qos-default class-of-service schedulers net-control-scheduler buffer-size percent 3",
        "set groups mist-qos-default class-of-service schedulers net-control-scheduler priority low",
        "set groups mist-qos-default class-of-service schedulers net-control-scheduler transmit-rate percent 3",
        "set groups mist-qos-default class-of-service schedulers net-tools-scheduler buffer-size percent 3",
        "set groups mist-qos-default class-of-service schedulers net-tools-scheduler priority low",
        "set groups mist-qos-default class-of-service schedulers net-tools-scheduler transmit-rate percent 3",
        "set groups mist-qos-default class-of-service schedulers video-scheduler buffer-size percent 8",
        "set groups mist-qos-default class-of-service schedulers video-scheduler priority low",
        "set groups mist-qos-default class-of-service schedulers video-scheduler transmit-rate percent 8",
        "set groups mist-qos-default class-of-service schedulers voice-scheduler buffer-size percent 10",
        "set groups mist-qos-default class-of-service schedulers voice-scheduler priority strict-high",
        "set groups mist-qos-default class-of-service schedulers voice-scheduler shaping-rate percent 10",

Verification of Traffic matching QoS policies and their corresponding queue counters

>>>Output Trucated to show QoS relavent output before running Traffic with DSCP 
marking
root@ex2300-home> show interfaces ge-0/0/0 extensive
......
  Queue counters:       Queued packets  Transmitted packets      Dropped packets
    0                                0                    0                    0
    1                                0                    0                    0
    2                                0                    0                    0
    3                                0                    0                    0
    4                                0                    0                    0
    5                                0                    0                    0
    7                                0                    0                    0
  Queue number:         Mapped forwarding classes
    0                   default-app
    1                   video
    2                   bizapp-af3
    3                   bizapp-af2
    4                   net-tools
    5                   voice
    7                   net-control
  ......
  CoS information:
    Direction : Output
    CoS transmit queue               Bandwidth               Buffer Priority   Limit
                              %            bps     %           usec
    0 default-app             r              r     r              0      low    none
    1 video                   8       80000000     8              0      low    none
    2 bizapp-af3             10      100000000    10              0      low    none
    3 bizapp-af2             10      100000000    10              0      low    none
    4 net-tools               3       30000000     3              0      low    none
    5 voice                   r              r    10              0 strict-high    none
    7 net-control             3       30000000     3              0      low    none
  Interface transmit statistics: Disabled

>>>ICMP packets marked for Expedited Forwarding EF (voice)
ping 8.8.8.8 -I eth0 -Q 184
PING 8.8.8.8 (8.8.8.8) from 10.0.0.2 eth0: 56(84) bytes of data.
 
53 packets transmitted, 53 received, 0% packet loss, time 140ms
rtt min/avg/max/mdev = 2.421/2.811/5.064/0.428 ms

>>>>ICMP packets marked for Assured Forwarding AF41 (video)
 ping 8.8.8.8 -I eth0 -Q 136
PING 8.8.8.8 (8.8.8.8) from 10.0.0.2 eth0: 56(84) bytes of data.

62 packets transmitted, 62 received, 0% packet loss, time 157ms
rtt min/avg/max/mdev = 2.396/3.103/6.578/0.609 ms

>>>>After running some traffic with DSCP marking queue 1 for video traffic
 and queue 5 for voice traffic being populated 

{master:0}
root@ex2300-home> show interfaces ge-0/0/0 extensive
.......
  Egress queues: 8 supported, 7 in use
  Queue counters:       Queued packets  Transmitted packets      Dropped packets
    0                             9821                 9821                    0
    1                               62                   62                    0
    2                                0                    0                    0
    3                             7185                 7185                    0
    4                                0                    0                    0
    5                               53                   53                    0
    7                                0                    0                    0
  Queue number:         Mapped forwarding classes
    0                   default-app
    1                   video
    2                   bizapp-af3
    3                   bizapp-af2
    4                   net-tools
    5                   voice
    7                   net-control
 .......
 >>>Resevered BW per Queue mapped to a forwarding class and queue Priority 
  CoS information:
    Direction : Output
    CoS transmit queue               Bandwidth               Buffer Priority   Limit
                              %            bps     %           usec
    0 default-app             r              r     r              0      low    none
    1 video                   8       80000000     8              0      low    none
    2 bizapp-af3             10      100000000    10              0      low    none
    3 bizapp-af2             10      100000000    10              0      low    none
    4 net-tools               3       30000000     3              0      low    none
    5 voice                   r              r    10              0 strict-high    none
    7 net-control             3       30000000     3              0      low    none
  Interface transmit statistics: Disabled

 

For further details on QoS on Juniper EX Switches, please see this page:

https://www.juniper.net/documentation/en_US/junos/topics/example/cos-ex-series-configuring.html