There are many focuses you must pay attention to and know, IP address, port Number. data type, sometimes, domain, access read right. etc
you know upwards, before you can get whole data which in-out the network card.
if you want to get that in and out data size only, its handle would be simpler .