Ask Your Question
0

Understanding Flow Statistics results received from REST API

asked 2014-09-19 12:52:41 -0700

updated 2014-09-19 12:55:36 -0700

Hi Folks,

Please help me understand flow statistics results received from REST API. I am sending traffic using iperf from src ba:0b:3a:63:fd:88 to dst 6e:da:68:d7:4a:6a and it travels through 3 switches. Below are the flow statistics. Please help me understand the bandwidth and total traffic through this route (to and fro) in Mbits

<flowstatistics> </flowstatistics>

<flowStatistics>
<node>
<id>00:00:00:00:00:00:00:12</id>
<type>OF</type>
</node>
<flowStatistic>
<flow>
<match>
<matchField>
<type>DL_DST</type>
<value>ba:0b:3a:63:fd:88</value>
</matchField>
<matchField>
<type>IN_PORT</type>
<value>OF|3@OF|00:00:00:00:00:00:00:12</value>
</matchField>
</match>
<actions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="output">
<type>OUTPUT</type>
<port>
<node>
<id>00:00:00:00:00:00:00:12</id>
<type>OF</type>
</node>
<id>4</id>
<type>OF</type>
</port>
</actions>
<priority>0</priority>
<idleTimeout>0</idleTimeout>
<hardTimeout>0</hardTimeout>
<id>0</id>
</flow>
<tableId>0</tableId>
<durationSeconds>686</durationSeconds>
<durationNanoseconds>20000000</durationNanoseconds>
<packetCount>393</packetCount>
<byteCount>25894</byteCount>
</flowStatistic>
<flowStatistic>
<flow>
<match>
<matchField>
<type>DL_DST</type>
<value>6e:da:68:d7:4a:6a</value>
</matchField>
<matchField>
<type>IN_PORT</type>
<value>OF|4@OF|00:00:00:00:00:00:00:12</value>
</matchField>
</match>
<actions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="output">
<type>OUTPUT</type>
<port>
<node>
<id>00:00:00:00:00:00:00:12</id>
<type>OF</type>
</node>
<id>3</id>
<type>OF</type>
</port>
</actions>
<priority>0</priority>
<idleTimeout>0</idleTimeout>
<hardTimeout>0</hardTimeout>
<id>0</id>
</flow>
<tableId>0</tableId>
<durationSeconds>685</durationSeconds>
<durationNanoseconds>550000000</durationNanoseconds>
<packetCount>391</packetCount>
<byteCount>1206930</byteCount>
</flowStatistic>
</flowStatistics>



<flowStatistics>
<node>
<id>00:00:00:00:00:00:00:0a</id>
<type>OF</type>
</node>
<flowStatistic>
<flow>
<match>
<matchField>
<type>DL_DST</type>
<value>6e:da:68:d7:4a:6a</value>
</matchField>
<matchField>
<type>IN_PORT</type>
<value>OF|6@OF|00:00:00:00:00:00:00:0a</value>
</matchField>
</match>
<actions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="output">
<type>OUTPUT</type>
<port>
<node>
<id>00:00:00:00:00:00:00:0a</id>
<type>OF</type>
</node>
<id>7</id>
<type>OF</type>
</port>
</actions>
<priority>0</priority>
<idleTimeout>0</idleTimeout>
<hardTimeout>0</hardTimeout>
<id>0</id>
</flow>
<tableId>0</tableId>
<durationSeconds>683</durationSeconds>
<durationNanoseconds>640000000</durationNanoseconds>
<packetCount>391</packetCount>
<byteCount>1206930</byteCount>
</flowStatistic>
<flowStatistic>
<flow>
<match>
<matchField>
<type>DL_DST</type>
<value>ba:0b:3a:63:fd:88</value>
</matchField>
<matchField>
<type>IN_PORT</type>
<value>OF|7@OF|00:00:00:00:00:00:00:0a</value>
</matchField>
</match>
<actions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="output">
<type>OUTPUT</type>
<port>
<node>
<id>00:00:00:00:00:00:00:0a</id>
<type>OF</type>
</node>
<id>6</id>
<type>OF</type>
</port>
</actions>
<priority>0</priority>
<idleTimeout>0</idleTimeout>
<hardTimeout>0</hardTimeout>
<id>0</id>
</flow>
<tableId>0</tableId>
<durationSeconds>683</durationSeconds ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-19 17:34:02 -0700

Yiliang gravatar image

Looking for the following section for statistics of each flow:

<durationseconds>686</durationseconds> <durationnanoseconds>20000000</durationnanoseconds> <packetcount>393</packetcount> <bytecount>25894</bytecount>

  1. The first two entries tell you the time since the flow is created. If you want to measure the bandwidth (or more accurately data rate), there is a discrepancy between the time a flow is created, and the time traffic is started. You need to figure out some approach to eliminate this.
  2. The next two entries tell you how many packets and bytes have been forwarded using the rules of this flow.
  3. You can see two flows in each switch, One should be for the direction that the data packets are flowing on, and the other for the reversed direction, assuming this is TCP iperf.

Hope that helps.

edit flag offensive delete publish link more

Comments

Hi Yiliang, I am sending 1 Mbyte(1048576 bytes) traffic using iperf, how can I relate this to packetcount and bytecount (1206930 bytes from result above) ? Are there any extra bytes for headers? Is the traffic flowing in reverse direction is just an acknowledgement ?

Darpan Mhatre ( 2014-09-22 07:24:48 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2014-09-19 12:52:41 -0700

Seen: 233 times

Last updated: Sep 19 '14