Symptom
Nexus Version: 9.2(2)
Nexus Hardware: C9336C-FX2
When we set the sampling rate on Sflow to the value 65536, the number of processed packets are about twice the expected value.
Logs:
switch# sh sflow statistics
Total Packets : 100069011 Packets
Total Samples : 545088 Bytes
Processed Samples : 3264 Packets <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Rate-Limiter Drops : 0 Bytes
Dropped sflow Samples: 0 Packets
Sent Datagrams : 977 Packets
Dropped Datagrams : 0 Packets
Expected sampling rate: 100069011/65536 = 1526.9319
3264/1526.9319 = 2.1376 times the value of sampling rate.
switch# show sflow statistics
Total Packets : 23142438 Packets
Total Samples : 127588 Bytes
Processed Samples : 764 Packets <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Rate-Limiter Drops : 0 Bytes
Dropped sflow Samples: 0 Packets
Sent Datagrams : 0 Packets
Dropped Datagrams : 243 Packets
Expected sampling rate: 23142438/65536=353
However we are processing more than double the packets (764).
Conditions
sampling rate on Sflow set to the value 6553
Nexus Version: 9.2(2)
Nexus Hardware: C9336C-FX2