Hi,

the goal is to math sflow into real traffic consumption.

I am testing using pmacct with the sfacctd as collector software.

I am using iperf3 to generate traffic between two hosts.

From my understanding if i do a sflow export configuration like:

agent               : "127.0.0.1"
external_ids        : {}
header              : 1518
polling             : 1
sampling            : 1
targets             : ["127.0.0.1:6343"]


Then every second, every package will be exported to the collector.

When i send for 5 seconds a total amount of 2.36 GBytes, i would expect
that the sum of the "bytes" would match with the 2.36 GB.

The numbers that were collected were:

{"event_type": "purge", "vlan": 0, "ip_src": "192.168.178.1", "ip_dst":
"192.168.178.2", "packets": 192, "bytes": 13519}

{"event_type": "purge", "vlan": 0, "ip_src": "192.168.178.1", "ip_dst":
"192.168.178.2", "packets": 435, "bytes": 30474}

{"event_type": "purge", "vlan": 0, "ip_src": "192.168.178.1", "ip_dst":
"192.168.178.2", "packets": 388, "bytes": 27180}

{"event_type": "purge", "vlan": 0, "ip_src": "192.168.178.1", "ip_dst":
"192.168.178.2", "packets": 318, "bytes": 22260}

{"event_type": "purge", "vlan": 0, "ip_src": "192.168.178.1", "ip_dst":
"192.168.178.2", "packets": 436, "bytes": 30544}

{"event_type": "purge", "vlan": 0, "ip_src": "192.168.178.1", "ip_dst":
"192.168.178.2", "packets": 340, "bytes": 23990}


And the math is not really matching.

I repeated the test, changing the sample rate ( and multiply the sum of
bytes with the sample rate ).

But that did not really help. The numbers are changing, but not to
amount of traffic that had been transfered.


Since i assume that old established software like pmacct aswell as
openvswitch will deliver correct numbers.

So as it seems to me, my math is (still) as good as my teachers told me
in the college.

Could someone please point me into the right direction how to math that ?

Thank you very much !

-- 
Mit freundlichen Gruessen / Best regards

Oliver Dzombic
Layer7 Networks

mailto:i...@layer7.net

Anschrift:

Layer7 Networks GmbH
Zum Sonnenberg 1-3
63571 Gelnhausen

HRB 96293 beim Amtsgericht Hanau
Geschäftsführung: Oliver Dzombic
UST ID: DE259845632
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to