Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I get maximum bandwidth of an interface in linux C?

Let's say I have a machine with 3 NICs; wifi, eth, and 3G. I'm trying to get the ESTIMATED speed (or bandwidth) at which a link CAN transmit at a given time for each of these interfaces and determine which one is the fastest. Again at a given time. I'm writing a linux kernel module. I'm using kernel version 2.6.35. Is there anyway to measure the available bandwidth? Even if it meant sending a testing ping to measure something like we do in measuring latency ...

like image 245
Varda Elentári Avatar asked Apr 19 '12 17:04

Varda Elentári


People also ask

What is interface bandwidth?

Introduction. The Interface Bandwidth report displays maximum and average values for interface inbound and outbound throughputs. This information is presented in a tabular data format and can additionally include graphs per interface.


1 Answers

iperf can help you measure actual bandwidth http://sourceforge.net/projects/iperf/

like image 94
Art Swri Avatar answered Nov 15 '22 01:11

Art Swri