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

session buffer metrics #26

Open
monkies opened this issue Feb 23, 2024 · 0 comments
Open

session buffer metrics #26

monkies opened this issue Feb 23, 2024 · 0 comments

Comments

@monkies
Copy link

monkies commented Feb 23, 2024

Can I please request having the results from the following query added.

<show><session><packet-buffer-protection></packet-buffer-protection></session></show>

It has the added complexity of having results for multiple dataplanes if the platform has more than one. So the response could be either

<response status="success"> <result> <sw.comm.s1.dp0.packet-buffer-protection> <is-module-enabled>True</is-module-enabled> <is-monitor-only>False</is-monitor-only> <congestion>933</congestion> <congestion-max>17203</congestion-max> <max-tolerate>13762</max-tolerate> <use-latency>0</use-latency> <latency-activate-thresh>200</latency-activate-thresh> <latency-deactivate-thresh>100</latency-deactivate-thresh> <latency-max-tolerate-thresh>500</latency-max-tolerate-thresh> <last-latency>0</last-latency> <is-mitigation-enabled>True</is-mitigation-enabled> <is-running>False</is-running> </sw.comm.s1.dp0.packet-buffer-protection> <sw.comm.s1.dp1.packet-buffer-protection> <is-module-enabled>True</is-module-enabled> <is-monitor-only>False</is-monitor-only> <congestion>834</congestion> <congestion-max>17203</congestion-max> <max-tolerate>13762</max-tolerate> <use-latency>0</use-latency> <latency-activate-thresh>200</latency-activate-thresh> <latency-deactivate-thresh>100</latency-deactivate-thresh> <latency-max-tolerate-thresh>500</latency-max-tolerate-thresh> <last-latency>0</last-latency> <is-mitigation-enabled>True</is-mitigation-enabled> <is-running>False</is-running> </sw.comm.s1.dp1.packet-buffer-protection> </result> </response>

or

<response status="success"> <result> <sw.comm.s1.dp0.packet-buffer-protection> <is-module-enabled>True</is-module-enabled> <is-monitor-only>False</is-monitor-only> <congestion>933</congestion> <congestion-max>17203</congestion-max> <max-tolerate>13762</max-tolerate> <use-latency>0</use-latency> <latency-activate-thresh>200</latency-activate-thresh> <latency-deactivate-thresh>100</latency-deactivate-thresh> <latency-max-tolerate-thresh>500</latency-max-tolerate-thresh> <last-latency>0</last-latency> <is-mitigation-enabled>True</is-mitigation-enabled> <is-running>False</is-running> </sw.comm.s1.dp0.packet-buffer-protection> </result> </response>

Also once PBP is activated the output contains all the entries in the buffer table.
For testing you can put the PBP in to monitor only mode and set the threshold low to force something to show in the table.

<response status="success"><result> <sw.comm.s1.dp0.packet-buffer-protection> <is-module-enabled>True</is-module-enabled> <is-monitor-only>True</is-monitor-only> <congestion>3984</congestion> <congestion-max>16998</congestion-max> <max-tolerate>13598</max-tolerate> <use-latency>0</use-latency> <latency-activate-thresh>200</latency-activate-thresh> <latency-deactivate-thresh>100</latency-deactivate-thresh> <latency-max-tolerate-thresh>500</latency-max-tolerate-thresh> <last-latency>0</last-latency> <is-mitigation-enabled>True</is-mitigation-enabled> <is-running>True</is-running> <deactivate-time>-1</deactivate-time> <is-seeing-traffic>True</is-seeing-traffic> <is-learning>False</is-learning> <drop-probability>27</drop-probability> <drop-thresh>3</drop-thresh> <entries> <entry> <value>48258</value> <zone>VPN</zone> <pcs>105</pcs> <perc>1</perc> <drop-state>No</drop-state> <num-total>13905</num-total> <num-dropped>0</num-dropped> <time-till-discard>N/A</time-till-discard> </entry> <entry> <value>10.69.229.193</value> <zone>VPN</zone> <pcs>50</pcs> <perc>0</perc> <drop-state>No</drop-state> <num-total>28012</num-total> <num-dropped>0</num-dropped> <time-till-discard>N/A</time-till-discard> </entry> </entries> </sw.comm.s1.dp0.packet-buffer-protection> </result></response>

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