Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null counters in "show interfaces queue" output #16

Open
zmreact opened this issue May 11, 2018 · 0 comments
Open

Null counters in "show interfaces queue" output #16

zmreact opened this issue May 11, 2018 · 0 comments

Comments

@zmreact
Copy link

zmreact commented May 11, 2018

Good day!
I tried to get CoS working on vQFXes, but didn't find an ability to check whether the traffic is being placed to egress queues, as command "show interfaces queue" always shows me 0 in counters, even for "best-effort" queue.
Is there something specific for QFX / vQFX? Or is something wrong in my configuration? Or is it unsupported feature? On vSRX I got good results with the same configuration (with the only difference in the style of mapping forwarding class and queue). There are my setup, config and tests below.

scheme

After ping from 10.0.0.3 to 10.0.0.1 without ToS:
without tos

{master:0}
root> show firewall filter triple-check-in-xe-0/0/1.0-i    

Filter: triple-check-in-xe-0/0/1.0-i                           
Counters:
Name                                                Bytes              Packets
best-effort-xe-0/0/1.0-i                              714                    7
cs5_video-xe-0/0/1.0-i                                  0                    0
ef_voice-xe-0/0/1.0-i                                   0                    0

{master:0}
root> show interfaces queue xe-0/0/0  
Physical interface: xe-0/0/0, Enabled, Physical link is Up
  Interface index: 649, SNMP ifIndex: 521
  Description: ## Test VLAN termination ##
Forwarding classes: 16 supported, 5 in use
Egress queues: 8 supported, 5 in use
Queue: 0, Forwarding classes: best-effort
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 3, Forwarding classes: fcoe
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 4, Forwarding classes: voice
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 5, Forwarding classes: video
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:                          
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 7, Forwarding classes: network-control
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps

{master:0}
root> 

After ping from 10.0.0.3 to 10.0.0.1 with DSCP = CS5:
with dscp cs5

{master:0}
root> show firewall filter triple-check-in-xe-0/0/1.0-i    

Filter: triple-check-in-xe-0/0/1.0-i                           
Counters:
Name                                                Bytes              Packets
best-effort-xe-0/0/1.0-i                              714                    7
cs5_video-xe-0/0/1.0-i                                204                    2
ef_voice-xe-0/0/1.0-i                                   0                    0

{master:0}
root> show interfaces queue xe-0/0/0                       
Physical interface: xe-0/0/0, Enabled, Physical link is Up
  Interface index: 649, SNMP ifIndex: 521
  Description: ## Test VLAN termination ##
Forwarding classes: 16 supported, 5 in use
Egress queues: 8 supported, 5 in use
Queue: 0, Forwarding classes: best-effort
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 3, Forwarding classes: fcoe
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 4, Forwarding classes: voice
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 5, Forwarding classes: video
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:                          
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps
Queue: 7, Forwarding classes: network-control
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets : Not Available  
    RL-dropped packets   :                     0                     0 pps
    RL-dropped bytes     :                     0                     0 bps
    Total-dropped packets:                     0                     0 pps
    Total-dropped bytes  :                     0                     0 bps

{master:0}
root>

Config:

{master:0}
root> show configuration                                   
## Last commit: 2018-05-11 17:03:50 UTC by root
version 17.4R1.16;
system {
    root-authentication {
        encrypted-password "$6$.L.rxsKG$tahiB1XDJtIL8lEEBuasrnNoYkYe2QXXbPAPPKFAjeuHJtJcbryLLRgwsS9oXMfxpVuWYXkrtXeqR8fLlVWPP0"; ## SECRET-DATA
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
    extensions {
        providers {
            juniper {
                license-type juniper deployment-scope commercial;
            }                           
            chef {
                license-type juniper deployment-scope commercial;
            }
        }
    }
}
interfaces {
    xe-0/0/0 {
        description "## Test VLAN termination ##";
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members TEST;
                }
                filter {
                    input triple-check-in;
                }
            }
        }
    }
    xe-0/0/1 {
        description "## Test VLAN termination ##";
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members TEST;
                }
                filter {
                    input triple-check-in;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
forwarding-options {
    storm-control-profiles default {
        all;                            
    }
}
protocols {
    igmp-snooping {
        vlan default;
    }
}
class-of-service {
    classifiers {
        dscp triple-in {
            forwarding-class voice {
                loss-priority high code-points ef;
            }
            forwarding-class video {
                loss-priority high code-points cs5;
            }
            forwarding-class best-effort {
                loss-priority low code-points [ 000000 000001 000010 000011 000100 000101 000110 000111 001000 001001 001010 001011 001100 001101 001110 001111 010000 010001 010010 010011 010100 010101 010110 010111 011000 011001 011010 011011 011100 011101 011110 011111 100000 100001 100010 100011 100100 100101 100110 100111 101001 101010 101011 101100 101101 101111 110000 110001 110010 110011 110100 110101 110110 110111 111000 111001 111010 111011 111100 111101 111110 111111 ];
            }
        }
        dscp network-control-in {
            forwarding-class network-control {
                loss-priority high code-points cs7;
            }
        }
    }
    forwarding-classes {
        class voice queue-num 4;
        class video queue-num 5;
    }
    interfaces {
        ge-0/0/0 {
            scheduler-map quad;
            unit 0 {
                classifiers {           
                    dscp triple-in;
                }
            }
        }
        ge-0/0/1 {
            scheduler-map quad;
            unit 0 {
                classifiers {
                    dscp triple-in;
                }
            }
        }
    }
    scheduler-maps {
        quad {
            forwarding-class voice scheduler 10p-5p;
            forwarding-class best-effort scheduler 60p-5p;
            forwarding-class network-control scheduler 10p-5p;
            forwarding-class video scheduler 20p-5p;
        }
    }
    schedulers {
        10p-5p {                        
            transmit-rate percent 10;
            buffer-size percent 5;
        }
        60p-5p {
            transmit-rate percent 60;
            buffer-size percent 5;
        }
        20p-5p {
            transmit-rate percent 20;
            buffer-size percent 5;
        }
    }
}
firewall {
    family ethernet-switching {
        filter triple-check-in {
            interface-specific;
            term voice {
                from {
                    dscp ef;
                }
                then {
                    accept;             
                    count ef_voice;
                }
            }
            term video {
                from {
                    dscp cs5;
                }
                then {
                    accept;
                    count cs5_video;
                }
            }
            term best-effort {
                from {
                    dscp-except [ ef cs5 ];
                }
                then {
                    accept;
                    count best-effort;
                }
            }
        }
    }                                   
}
vlans {
    TEST {
        description "## VLAN for CoS test ##";
        vlan-id 700;
    }
    default {
        vlan-id 1;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant