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

Updated OC Interface HLD regarding rate utilization counters enhancements. #102

Merged
merged 11 commits into from
Aug 11, 2020

Conversation

rvasanthm
Copy link
Collaborator

Changes:

  1. Updated SONiC_OC_Interface_HLD.md doc with new counters attributes details and Interface_counters RPC enhancement.
  2. New show command to display rate and utilization counters for Ethernet and port channel interfaces.
    show interface counters rate
  3. show interface Ethernet <> and show interface PortChannel <> enhancements based on new counters and RPC enhancements..

`show interface counters`
Units: RX_MBPS/TX_MBPS(MB/s), RX_MbPS|TX_MbPS(Mb/s), RX_PPS|TX_PPS(pkts/s)

Interface State RX_OK RX_MBPS RX_MbPS RX_PPS RX_UTIL RX_ERR RX_DRP RX_OVR TX_OK TX_MBPS TX_MbPS TX_PPS TX_UTIL TX_ERR TX_DRP TX_OVR

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RX_UTILS = will it show real time packets received in % ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utilization counters are calculated based on the configured load interval window. Back end calculates and populates these counters (depends on load interval and polling interval) in counterdb and NBI just picks it up from there.
Please refer below HLD for more information:
https://github.com/BRCM-SONIC/sonic_doc_private/pull/43

IP MTU 9100 bytes
LineSpeed 25GB, Auto-negotiation off
Last clearing of "show interface" counters: 1970-01-01 00:00:00
30 seconds input rate 84640 bits/sec, 10236 Bytes/sec, 52 packets/sec

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have packets/sec first followed by bits/sec?
30 seconds input rate 52 packets/sec, 84640 bits/sec, 10236 Bytes/sec

Generally most of the vendors follow this order and hence the ask

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

Copy link

@nnag-broadcom nnag-broadcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@rupesh-k
Copy link
Collaborator

Don't see any mention about queue counters and yang changes and CLI changes.
Do I miss something ?

@rvasanthm
Copy link
Collaborator Author

rvasanthm commented Jul 26, 2020 via email

@rupesh-k
Copy link
Collaborator

Thanks Ravi, I didn't see any mention about Queue Counters here in this document. So my question was regarding that.
I hope u are covering that in your implementation.

Sure. I will update u once I push my changes.
I dont have access to these gitlab links.
May be I can pick from your branch in github, so I can do integration testing in my side once I push my changes.
Can I reach u on Slack for quick collaboration in next week.

Thanks
Rupesh Kumar

Hello Rupesh, CLI and Yang changes are not merged yet, PR’s opened and in WIP state, I am waiting to complete end to end validation with your backend changes. Please push your changes. PR details: 1. https://gitlab.force10networks.com/e-sonic/sonic-mgmt-common/merge_requests/219 2. https://gitlab.force10networks.com/e-sonic/sonic-mgmt-framework/merge_requests/328 3. https://gitlab.force10networks.com/e-sonic/sonic-spytest/merge_requests/233

-Ravi From: rupesh-k [email protected] Sent: Saturday, July 25, 2020 11:09 PM To: project-arlo/SONiC Cc: Vasanthm, Ravi; Author Subject: Re: [project-arlo/SONiC] Updated OC Interface HLD regarding rate utilization counters enhancements. (#102) [EXTERNAL EMAIL] Don't see any mention about queue counters and yang changes and CLI changes. Do I miss something ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#102 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMMGZBOFYEQL3XELOARJHJDR5PCBJANCNFSM4OWX7POA.

@rvasanthm
Copy link
Collaborator Author

rvasanthm commented Jul 27, 2020 via email

@rvasanthm
Copy link
Collaborator Author

rvasanthm commented Jul 27, 2020 via email

@sameerdell sameerdell merged commit 8e9fa14 into master Aug 11, 2020
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.

4 participants