Get network information by reading the /proc/net/dev file.
/proc/net/dev
Get network information by reading the /proc/net/dev file and measure the speed within a specific time interval.