ConMon is a command line utility that measures the traffic to and from an endpoint. ConMon passively monitors the IP packets and classifies them to measure the bit rate for each of the classifiers.
It is based on the Sniffer example in libpcap (tcpdump)
.