Calculate bytes sent and received per IP in specific duration
I have a cluster of 4 machines. I need to create a network monitor that runs in the background and monitors the network traffic for the duration of training. Specifically, I need to calculate how much bytes are sent and received among those machines with each other. For example, consider 4 machines A,B,C,D and TX as bytes sent, RX as bytes received, I need something like this by the end of training:
+---+------+------+------+------+------+------+------+------+
| | A | B...