Why does "show datapath bwm" show INVALID CPU and FREE status ?

Aruba Employee
Q:

Why does "show datapath bwm" show INVALID CPU and FREE status ?



A:

(Controller) # show datapath bwm 

Datapath Bandwidth Management Table Entries
-------------------------------------------
Contract Types : 
   0 - CP Dos 1 - Configured contracts 2 - Internal contracts
------------------------------------------------
Flags: Q - No drop, P - No shape(Only Policed), 
       T - Auto tuned 
--------------------------------------------------------------------
Rate: pps - Packets-per-second (256 byte packets), bps - Bits-per-second
--------------------------------------------------------------------
      Cont                          Avail     Queued/Pkts 
Type   Id    Rate      Policed      Credits    Bytes      Flags   CPU     Status
----  ----  ---------  ----------  -------  -----------   ------- -------  ------
0     1     128 pps            436        4        0/0            9        ALLOCATED
0     2     128 pps              0        4        0/0            9        ALLOCATED
0     3     128 pps            708        4        0/0            9        ALLOCATED
0     4     128 pps             15        4        0/0            9        ALLOCATED
0     5     128 pps              0        4        0/0            9        ALLOCATED
0     6     128 pps              0        4        0/0            9        ALLOCATED
0     7     128 pps            399        4        0/0            9        ALLOCATED
1     1     1 Mbps               0     3907        0/0            11       ALLOCATED
1     2     1 Mbps               0     3907        0/0            12       ALLOCATED
1     3     10 Mbps           4701    39063        0/0            13       ALLOCATED
1     4     10 Mbps         800539    39063        0/0            14       ALLOCATED
1     5     1 Mbps            3152     3907        0/0            15       ALLOCATED
1     6     1 Mbps              90     3907        0/0            11       ALLOCATED
1     7     300 Kbps             0     1172        0/0            12       ALLOCATED
1     8     300 Kbps             0     1172        0/0            13       ALLOCATED
1     9     300 Kbps             0     1172        0/0            14       ALLOCATED
1     10    300 Kbps             0     1172        0/0            15       ALLOCATED
1     11    300 Kbps             0     1172        0/0            11       ALLOCATED
1     12    300 Kbps             0     1172        0/0            12       ALLOCATED
1     13    0 bps                0        0        0/0            INVALID  FREE
1     14    0 bps                0        0        0/0            INVALID  FREE


1     15    0 bps                0        0        0/0            INVALID  FREE
1     16    0 bps                0        0        0/0            INVALID  FREE
1     17    0 bps                0        0        0/0            INVALID  FREE
1     18    0 bps                0        0        0/0            INVALID  FREE
1     19    0 bps                0        0        0/0            INVALID  FREE
1     20    0 bps                0        0        0/0            INVALID  FREE

 


This is expected behavior.  

Reason:
=======

Once a contract-ID (BWM contract instance in data-plane) is created, it will never be deleted. If it is not in use, it will show INVALID CPU and FREE status.  CPU field being INVALID means "No CPU owns this contract".  
For example, If 100 users were at some point using the non-app bwc (per-user), there will be 100 entries created for the same bwc (note: this is different from the app bwc  which is per user-role where only a single entry will be created per app bwc). Once traffic stopped, all those 100 entries remain forever in the "show datapath bwm" with INVALID CPU and FREE status.  When a lot of contract-ID entries are created, We need to use 'show datapath bwm type <type> contract <ID>' to verify.  

Example:

(Controller) #show datapath bwm type 0 contract 3

Datapath Bandwidth Management Table Entries
-------------------------------------------
Contract Types :
   0 - CP Dos 1 - Configured contracts 2 - Internal contracts
------------------------------------------------
Flags: Q - No drop, P - No shape(Only Policed),
       T - Auto tuned
--------------------------------------------------------------------
Rate: pps - Packets-per-second (256 byte packets), bps - Bits-per-second
--------------------------------------------------------------------
      Cont                          Avail     Queued/Pkts
Type   Id    Rate      Policed      Credits    Bytes      Flags   CPU     Status
----  ----  ---------  ----------  -------  -----------   ------- -------  ------
0     3     128 pps            708        4        0/0            9        ALLOCATED


Attachments:
CPU_INVALID_FREE.PNG
Version history
Revision #:
2 of 2
Last update:
‎10-18-2016 04:41 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: