Problem
———----
When a flow export message is dropped, the diff bytes/packets
computed for that flow is not retained. Next time when is flow
is being exported the new diff bytes/packets computed will be
since the last time it was attempted to be sent. This will
result in incorrect diff bytes/packets being exported for flows
Fix
--—
When a flow sample is dropped retain the diff bytes/packets for
this flow. Next time when this flow is being exported the diff
bytes/packets computed will include the previous diff bytes/packets
retained for that flow.
Also replace the count "flow-export-msg-drops" with the following
--drops due to disable of flow-export
--drops because of subjecting flows to flow-sampling
Reviewed: https:/ /review. opencontrail. org/19561 github. org/Juniper/ contrail- controller/ commit/ 339a217b0c32237 05844f518983d14 d012724e9d
Committed: http://
Submitter: Zuul
Branch: R2.22.x
commit 339a217b0c32237 05844f518983d14 d012724e9d
Author: ashoksingh <email address hidden>
Date: Fri Apr 22 15:10:12 2016 +0530
Use adaptive diff stats while exporting flows
Problem
———----
When a flow export message is dropped, the diff bytes/packets
computed for that flow is not retained. Next time when is flow
is being exported the new diff bytes/packets computed will be
since the last time it was attempted to be sent. This will
result in incorrect diff bytes/packets being exported for flows
Fix
--—
When a flow sample is dropped retain the diff bytes/packets for
this flow. Next time when this flow is being exported the diff
bytes/packets computed will include the previous diff bytes/packets
retained for that flow.
Also replace the count "flow-export- msg-drops" with the following
--drops due to disable of flow-export
--drops because of subjecting flows to flow-sampling
Change-Id: I2fd6b45cc7d5ef 472594aac349450 9f9bbf14396
Closes-Bug: #1572473