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

Enhancing port utilization percentage calculation for all port speeds #553

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Prasanth-KV
Copy link

@Prasanth-KV Prasanth-KV commented Jun 12, 2019

- What I did
The utilization percentage calculation for interfaces is been updated to address all the port speeds. It was calculated for 40G alone previously.
- How I did it
The utilization percentage is based on the port speed. It should be the percentage of traffic rate with respect to the port speed. So the formula is been updated to take the actual port speed instead of 40Gbps.
10Gbps is 1000000 bits per second, NOT 10 * 1024 * 1024 * 1024 bps. This is also fixed in utilization formula.

- How to verify it
show interface counters
This command can be used to verify the utilization percentage at different traffic rates.
- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

-->

…ps and calculated the utilization. This will lead to wrong utilization percentage for other speeds like, 100G, 25G, 10G and 1G.

The utilization calculation is changed so that the percentage is calculated based on port speed.
@stcheng
Copy link
Contributor

stcheng commented Jun 13, 2019

retest this please

1 similar comment
@stcheng
Copy link
Contributor

stcheng commented Jun 13, 2019

retest this please

@jleveque
Copy link
Contributor

Retest this please

@Prasanth-KV
Copy link
Author

These changes are re-tested by SQA engineer and verified to be working.
@stcheng @jleveque Do you see any potential issues with this change?

@jleveque
Copy link
Contributor

@Prasanth-KV: The "Retest this please" comments are not directed at you. It is a trigger phrase which causes a GitHub plugin to automatically re-run our check builds. :)

@jleveque jleveque requested a review from lguohan June 24, 2019 18:19
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

Successfully merging this pull request may close these issues.

3 participants