Controller Based WLANs

 View Only
last person joined: one year ago 

APs, Controllers, VIA

How to identify the particular contract ID belongs to which contract for cp-bwm table? 

Aug 05, 2020 09:40 AM

Q:

How to identify the particular contract ID belongs to which contract for cp-bwm table?



A:
  • In the below output we could notice the policed traffic for contract ID 15785.
show datapath cp-bwm table

Datapath CP Bandwidth Management Table Entries
-------------------------------------------
CPU  Contract     Rate      Policed    Avail Credits  Queued Bytes/Pkts
---  --------  ----------  ----------  -------------  -----------------
10   15783        320 pps           0             10         0/0
10   15784       8000 pps           0            250         0/0
10   15785       2016 pps  1117946923             -1    451257/2003      >>>>>>>>>>>>>>>  this has negative credits

10   15786       2016 pps           0             63         0/0
10   15787       8000 pps           0            250         0/0
10   15788       1024 pps           0             32         0/0
10   15789        128 pps           0              4         0/0
10   15790       1024 pps           0             32         0/0
10   15791        512 pps           0             16         0/0
10   15792        512 pps           0             16         0/0
10   15793       1024 pps           0             32         0/0
  • We could also identify the source & destination for this session by looking at the cntr field in the below output
show datapath session verbose 

Datapath Session Table Entries
------------------------------

Flags: F - fast age, S - src NAT, N - dest NAT
       D - deny, R - redirect, Y - no syn
       H - high prio, P - set prio, T - set ToS
       C - client, M - mirror, V - VOIP
       Q - Real-Time Quality analysis
       u - Upstream Real-Time Quality analysis
       I - Deep inspect, U - Locally destined
       E - Media Deep Inspect, G - media signal
       r - Route Nexthop, h - High Value
       A - Application Firewall Inspect
       B - Permanent, O - Openflow
       L - Log

Session Index, Route/Cache Index, Agg. Version Number[SIDX SRTI SRCI SRTRCV]

Source IP       Destination IP  Prot SPort DPort   Cntr     Prio ToS Age Destination TAge Packets    Bytes      SIDX     SRTI SRCI     SRTRCV   UsrIdx   UsrVer   AclVer   NhlIdx   NhIdx    NhlNhVer Flags           
--------------- --------------- ---- ----- -----  -------- ---- --- --- ----------- ---- ---------  --------- -------- ---- -------- -------- -------- -------- -------- -------- -------- -------- --------------- 

10.150.1.29     10.150.0.5      17   51616 514    1/15785 0    0   0   tunnel 211  985  36448      7261351    102407   0    0        0        4fd      188104   5fa      0        0        0        FC   

 

  • Using the below output we can identify the contract details
show cp-bwcontracts ​


CP bw contracts
---------------
Contract                  Id     Rate (packets/second)
--------                  --     ---------------------  
cpbwc-ipv4-syslog         15785  2016   >>>>>>>>>>>>>>>>>>>>>>>>>

Statistics
0 Favorited
19 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.