Hi!

I am not sure if this is already in the release 0.11, but at least with the unstable version 0.11 (in the master branch) you can query statistics for each convergence layer which show you the transmitted bytes.

$ telnet localhost 4550
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
IBR-DTN 0.11.0 (build 12c7c23) API 1.0
protocol management
200 SWITCHED TO MANAGEMENT
stats convergencelayers
200 STATS CONVERGENCELAYERS
TCP|in: 262632
TCP|out: 161352

Kind regards,
Johannes Morgenroth


Am 17.01.2014 10:09, schrieb Shyam B:
Hi,

Thanks for the previous post on answering my some of my queries on bundle knowhow using API events.

I am using an aerial vehicle to hover about a region for data transactions using DTN. The aerial vehicle is a DTN node that interacts with other DTN static nodes (routers) on the way, by hovering about the region. The vehicle when senses an ongoing data transaction, it starts to hover else moves on. I would like to know if there is a reliable way to determine if there is an "ongoing data transaction" (either send, receive or acknowledgements in progress). 

The vehicle will know when it is sending some data to other nodes, however, it will not know when someone else wants to send a data to the vehicle. Below, is an example with netstat, to check the activity on a given port. The ibrdtn.conf says it uses 4556 port for transactions. In the netstat, it shows port 33827. The netstat is very slow. Is there a faster method to determine "activity of bundles" on a port/ socket? This would be very interesting!

pi@pi2 ~ $ netstat --tcp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 localhost:43580         localhost:4550          ESTABLISHED
tcp        0      0 localhost:4550          localhost:43580         ESTABLISHED
tcp        0      0 192.168.10.52:ssh       192.168.10.60:50791     ESTABLISHED
tcp        0    352 192.168.10.52:ssh       192.168.10.60:51045     ESTABLISHED
tcp        0     20 192.168.10.52:4556      192.168.10.60:33827     ESTABLISHED

Thanks!

--
Best Regards,
Shyam