sar -n DEV 1 1
command
gives the stats rxkB/s(Number of kilobytes read from the device per second.) and wxkB/s (Number of kilobytes written to the device per second.)
Is it possible to calculate this value from the stats found under /sys/class/net/<interface>
?