luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.86k stars 537 forks source link

Traffic monitoring / counting for VALE ports. #274

Closed ArchyCho closed 6 years ago

ArchyCho commented 7 years ago

Sorry for my question maybe stupid .

Is there any way to show the traffic of different VALE ports , whatever real time monitoring or counting ? (ie: MRTG / NLOAD ).

Thanks for advise.

vmaffione commented 7 years ago

There are currently no counters, but you can use monitor ports and zerocopy monitor ports to transparently see what happens on a VALE port, e.g. like tcpdump.

For instance you can use pkt-gen -i valeX:Y/t to read what is being transmitted on valeX:Y. Check sys/net/netmap_user.h for the documentation of nm_open().

ArchyCho commented 7 years ago

I found the program ifstat , it shows traffic on FreeBSD but could not read the traffic on Linux when the interface at "netmap mode".

vmaffione commented 6 years ago

Yes, netmap does not take counters for performance reasons. Your netmap application is supposed to accomplish this task if needed