I want to calculate the network(in & out) bytes.
I used nettop
but it's not working as expected like mentioned here.
So, I moved to top
. The output shows total number of packets and total size.
What is the size of each network packet displayed in the output of top
command?
OS: macOS Sierra
top
I've ever seen displays network info on that level. perhapsiftop
would be a better fit, but you won't get per packet information from anything short of a packet analyzer like pcap or wireshark, or whatever.