3.1.1-45:flow -s reports inconsistencies
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Committed
|
Medium
|
Kumar Harsh | |||
R3.1 |
Fix Committed
|
Medium
|
Kumar Harsh | |||
R3.2 |
Fix Committed
|
Medium
|
Kumar Harsh | |||
Trunk |
Fix Committed
|
Medium
|
Kumar Harsh |
Bug Description
Contrail Version: 3.1.1-Build 45.
flow -s reports inconsistencies when there are high number of flows on the vRouter (simulated in the lab through hping3)
Average Setup/Teardown rate in flow shows a very high value at times.
Please see below:
2017-01-02 15:04:29 +0900
Flow Statistics
---------------
Total Entries --- Total = 986581, new = 11032
Active Entries --- Total = 979447, new = 10780
Hold Entries --- Total = 7134, new = 252
Fwd flow Entries - Total = 979447
drop flow Entries - Total = 0
NAT flow Entries - Total = 0
Rate of change of Active Entries
-------
current rate = 19779
Avg setup rate = 18565
Avg teardown rate = 20397
Rate of change of Flow Entries
-------
current rate = 20242
2017-01-02 15:04:30 +0900
Flow Statistics
---------------
Total Entries --- Total = 998368, new = 11787
Active Entries --- Total = 992736, new = 13289
Hold Entries --- Total = 5632, new = -1502
Fwd flow Entries - Total = 992736
drop flow Entries - Total = 0
NAT flow Entries - Total = 0
Rate of change of Active Entries
-------
current rate = 24473
Avg setup rate = 2092458556 <<<<<
Avg teardown rate = 20397
Rate of change of Flow Entries
-------
current rate = 21707
(snip)
2017-01-02 15:10:40 +0900
Flow Statistics
---------------
Total Entries --- Total = 0, new = 0
Active Entries --- Total = 0, new = 0
Hold Entries --- Total = 0, new = 0
Fwd flow Entries - Total = 0
drop flow Entries - Total = 0
NAT flow Entries - Total = 0
Rate of change of Active Entries
-------
current rate = 0
Avg setup rate = 760246994 <<<<<<
Avg teardown rate = -836050317 <<<<<<
Rate of change of Flow Entries
-------
current rate = 0
Also, the logic to calculate "current rate" and "avg setup rate" from the incremental difference of Active entries. I guess, the code should skip the calculation of current rate for the first time since previous value makes sense only from the second time.
=======
2017-01-02 15:13:23 +0900
Flow Statistics
---------------
Total Entries --- Total = 1169992, new = 0
Active Entries --- Total = 1169992, new = 0
Hold Entries --- Total = 0, new = 0
Fwd flow Entries - Total = 1169992
drop flow Entries - Total = 0
NAT flow Entries - Total = 0
Rate of change of Active Entries
-------
current rate = 0
Avg setup rate = 17154
Avg teardown rate = 0
Rate of change of Flow Entries
-------
current rate = 0
^C
root@sv-9:~# flow -s
2017-01-02 15:13:26 +0900
Flow Statistics
---------------
Total Entries --- Total = 1169992, new = 1169992
Active Entries --- Total = 1169992, new = 1169992
Hold Entries --- Total = 0, new = 0
Fwd flow Entries - Total = 1169992
drop flow Entries - Total = 0
NAT flow Entries - Total = 0
Rate of change of Active Entries
-------
current rate = 1914880 <<<<<
Avg setup rate = 1914880 <<<<<
Avg teardown rate = 0
Rate of change of Flow Entries
-------
current rate = 1914880
2017-01-02 15:13:26 +0900
Flow Statistics
---------------
Total Entries --- Total = 1169992, new = 0
Active Entries --- Total = 1169992, new = 0
Hold Entries --- Total = 0, new = 0
Fwd flow Entries - Total = 1169992
drop flow Entries - Total = 0
NAT flow Entries - Total = 0
Rate of change of Active Entries
-------
current rate = 0
Avg setup rate = 1914880
Avg teardown rate = 0
Rate of change of Flow Entries
-------
current rate = 0
As these values are picked from the kernel mode (vRouter), please fix this issue in the next builds.
Greetings,
Sandeep.
information type: | Proprietary → Public |
tags: | added: vrouter |
Changed in juniperopenstack: | |
assignee: | nobody → Kumar Harsh (hkumar) |
importance: | Undecided → Medium |
tags: |
added: vrouter3.1-45 removed: vrouter |
tags: | added: vrouter |
Review in progress for https:/ /review. opencontrail. org/27925
Submitter: Kumar Harsh (<email address hidden>)