featureprofiles icon indicating copy to clipboard operation
featureprofiles copied to clipboard

Fix for SFLOW-1 to work with non-default sampling rate

Open singh-prem opened this issue 10 months ago • 1 comments

This PR adds a deviation to allow a different ingress sampling rate than 1/1,000,000 for platforms. No change is needed for a platform that supports default ingress sampling rate.

singh-prem avatar Mar 12 '25 12:03 singh-prem

Pull Request Functional Test Report for #3978 / ec04da692f4ceb133c534d28e235bf5958844398

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
SFLOW-1: sFlow Configuration and Sampling
Cisco 8000E status
SFLOW-1: sFlow Configuration and Sampling
Cisco XRd status
SFLOW-1: sFlow Configuration and Sampling
Juniper ncPTX status
SFLOW-1: sFlow Configuration and Sampling
Nokia SR Linux status
SFLOW-1: sFlow Configuration and Sampling
Openconfig Lemming status
SFLOW-1: sFlow Configuration and Sampling

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
SFLOW-1: sFlow Configuration and Sampling
Cisco 8808 status
SFLOW-1: sFlow Configuration and Sampling
Juniper PTX10008 status
SFLOW-1: sFlow Configuration and Sampling
Nokia 7250 IXR-10e status
SFLOW-1: sFlow Configuration and Sampling

Help

OpenConfigBot avatar Mar 12 '25 12:03 OpenConfigBot

this implements the use of the deviation but doesnt explain why the default might be unsupported or where the value 262144 comes from. could you please link the specific technical reference (eg, Cisco doc ID, bug) that documents this platform's min supported ingress sFlow sampling rate and the technical justification for its deviation from the default within this test suite?

We need to decide if the deviated sample rate is acceptable for this test? The 1/1,000,000 rate was our operational standard. If we want to allow different rates or a range of rates, this test is the place to specify it. Can you help figure out our requirement @masood-shah ?

dplore avatar Apr 16 '25 22:04 dplore

this implements the use of the deviation but doesnt explain why the default might be unsupported or where the value 262144 comes from. could you please link the specific technical reference (eg, Cisco doc ID, bug) that documents this platform's min supported ingress sFlow sampling rate and the technical justification for its deviation from the default within this test suite?

We need to decide if the deviated sample rate is acceptable for this test? The 1/1,000,000 rate was our operational standard. If we want to allow different rates or a range of rates, this test is the place to specify it. Can you help figure out our requirement @masood-shah ?

this implements the use of the deviation but doesnt explain why the default might be unsupported or where the value 262144 comes from. could you please link the specific technical reference (eg, Cisco doc ID, bug) that documents this platform's min supported ingress sFlow sampling rate and the technical justification for its deviation from the default within this test suite?

We need to decide if the deviated sample rate is acceptable for this test? The 1/1,000,000 rate was our operational standard. If we want to allow different rates or a range of rates, this test is the place to specify it. Can you help figure out our requirement @masood-shah ?

Happy to help, but first, could someone explain how the values 1/1,000,000 and 262,144 were derived or determined?

masood-shah avatar Apr 16 '25 22:04 masood-shah

this implements the use of the deviation but doesnt explain why the default might be unsupported or where the value 262144 comes from. could you please link the specific technical reference (eg, Cisco doc ID, bug) that documents this platform's min supported ingress sFlow sampling rate and the technical justification for its deviation from the default within this test suite?

the min. and max. supported sample rate can differ based on platforms, for 8000 it can sample from 1:1 to 1:262144 sample rate. This documented below. https://www.cisco.com/c/en/us/td/docs/iosxr/cisco8000/netflow/configuration/b-netflow-configuration-ios-xr-8000/netflow-sflow-key-concepts.html#flow-sampler

arvbaska1 avatar Jul 01 '25 22:07 arvbaska1

Pull Request Test Coverage Report for Build 16622485930

Details

  • 0 of 84 (0.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 13.559%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/deviations/deviations.go 0 3 0.0%
internal/cfgplugins/sflow.go 0 8 0.0%
proto/metadata_go_proto/metadata.pb.go 0 73 0.0%
<!-- Total: 0 84
Totals Coverage Status
Change from base Build 16612959286: -0.05%
Covered Lines: 2093
Relevant Lines: 15436

💛 - Coveralls

coveralls avatar Jul 30 '25 16:07 coveralls