Skip to content

traffic consumption

Moritz Warning edited this page Nov 20, 2018 · 3 revisions

This is somne information about the traffic generated by a KadNode running instance.

A KadNode instance was boostrapped using "kadnode-ctl import bttracker.debian.org". After around 30 minutes the number of nodes has settled to 152 known nodes. Then the input/output packets and bytes were counted:

Over 10 minutes:

  • Input: 65 packets consisting of 8989 bytes
  • Output: 81 packets consisting of 8415 bytes
  • All: 146 packets (~17KB data)

Over 30 minutes:

  • Input: 194 packets consisting of 27247 bytes
  • Output: 250 packets consisting of 26090 bytes
  • All: 444 packets (~52KB data)

That is around 28 Bytes per second.

Measurement method:

port=6881

iptables -N TRAFFIC_ACCT_IN
iptables -N TRAFFIC_ACCT_OUT

iptables -I INPUT -p udp --dport $port -j TRAFFIC_ACCT_IN
iptables -I OUTPUT -p udp --sport $port -j TRAFFIC_ACCT_OUT

iptables -A TRAFFIC_ACCT_IN -p udp
iptables -A TRAFFIC_ACCT_OUT -p udp

Clear counters:

iptables -Z TRAFFIC_ACCT_IN
iptables -Z TRAFFIC_ACCT_OUT

View counters:

iptables -L TRAFFIC_ACCT_IN -n -v -x
iptables -L TRAFFIC_ACCT_OUT -n -v -x
Clone this wiki locally