MERAprojects / ops-build

Other
0 stars 0 forks source link

QoS: the `show interface interface_name queues` command works incorrect #40

Open xivamar opened 7 years ago

xivamar commented 7 years ago

Problem Description:

1) During initial configuration queues counters contain some nonzero values. 2) Counters are incremented by themselves. 3) Counters are incremented if interface is down.

OpenSwitch version:

OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170306130021-dev)

Test Topology:

Single DUT

Steps to reproduce the problem:

  1. Configure DUT as in attached file.

  2. Check information about queues on interfaces. - NOK: Counters contain some values

    switch# show interface eth1 queues 
    Interface eth1 is up 
    Admin state is up
                    Tx Bytes            Tx Packets             Tx Errors
    Q0                 78461                 78461                 78461
    Q1                 78462                 78462                 78462
    Q2                 78463                 78463                 78463
    Q3                 78464                 78464                 78464
    Q4                 78465                 78465                 78465
    Q5                 78466                 78466                 78466
    Q6                 78467                 78467                 78467
    Q7                 78468                 78468                 78468
    switch# 
  3. Shutdown interface on DUT and check queues status. - NOK: Counters are incremented.

    switch# conf ter
    switch(config)# interface eth1
    switch(config-if)# shutdown 
    switch(config)# end
    switch# 
    switch#  show interface eth1 queues 
    Interface eth1 is down (Administratively down) 
    Admin state is down
                    Tx Bytes            Tx Packets             Tx Errors
    Q0                 91421                 91421                 91421
    Q1                 91422                 91422                 91422
    Q2                 91423                 91423                 91423
    Q3                 91424                 91424                 91424
    Q4                 91425                 91425                 91425
    Q5                 91426                 91426                 91426
    Q6                 91427                 91427                 91427
    Q7                 91428                 91428                 91428
    switch# 

QoS_config.txt

AKochin commented 7 years ago

According to documentation in container-plugin QOS statistics is simulated:

netdev_sim_dump_queue_stats - Reports simulated QOS queue stats.

https://github.com/open-switch/ops-switchd-container-plugin/blob/89bb595e34a00c04158f0dde1d205b8ccb57881c/DESIGN.md

AKochin commented 7 years ago

This issue should be closed as an expected behavior.