Skip to content

VxLAN Tunnel Counters and Rates implementation #8369

Merged
prsunny merged 10 commits intosonic-net:masterfrom
dgsudharsan:evpn_vxlan_counters
Nov 1, 2021
Merged

VxLAN Tunnel Counters and Rates implementation #8369
prsunny merged 10 commits intosonic-net:masterfrom
dgsudharsan:evpn_vxlan_counters

Conversation

@dgsudharsan
Copy link
Collaborator

Why I did it

To Enable tunnel counters

How I did it

Enabling flex counters

How to verify it

Using show command and unit tests

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@dgsudharsan
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

srj102
srj102 previously approved these changes Oct 22, 2021
enable_counter_group(db, 'QUEUE_WATERMARK')
enable_counter_group(db, 'BUFFER_POOL_WATERMARK')
enable_counter_group(db, 'PORT_BUFFER_DROP')
enable_counter_group(db, 'TUNNEL')
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets disable the counter by default and enable based on need

counters_db.set('COUNTERS_DB', 'RATES:RIF', 'RIF_SMOOTH_INTERVAL', DEFAULT_SMOOTH_INTERVAL)
counters_db.set('COUNTERS_DB', 'RATES:RIF', 'RIF_ALPHA', DEFAULT_ALPHA)
counters_db.set('COUNTERS_DB', 'RATES:TUNNEL', 'TUNNEL_SMOOTH_INTERVAL', DEFAULT_SMOOTH_INTERVAL)
counters_db.set('COUNTERS_DB', 'RATES:TUNNEL', 'TUNNEL_ALPHA', DEFAULT_ALPHA)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the interval value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Smooth interval is used in rate calculate where the traffic within this time limit are given higher weightage for rate calculation (for e.g. in last 10 sec over the traffic received prior to it) . https://github.com/Azure/SONiC/blob/master/doc/rates-and-utilization/Rates_and_utilization_HLD.md

@prsunny prsunny merged commit fcff3f3 into sonic-net:master Nov 1, 2021
dgsudharsan added a commit to dgsudharsan/sonic-buildimage that referenced this pull request Jun 30, 2022
prsunny pushed a commit that referenced this pull request Sep 9, 2022
* Enable flex counters for Vxlan tunnel
* VxLAN Tunnel Counters and Rates implementation  (#8369) (#11986)
@dgsudharsan dgsudharsan deleted the evpn_vxlan_counters branch March 9, 2023 01:53
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