Where can I find out about monitoring / polling a network interface under Linux? I would like to get specific application download / download speeds and provide a speed limit for a specific application.
I especially like the information that can help me write a traffic shaping application using Python.
You need the iproute2 package in which you use the tc command . Tc commands look like
tc class add dev eth2 parent 1: classid 1:1 htb rate 100Mbit ceil 100Mbit quantum 1600
Here's an existing Python traffic shaping application that uses iproute2.
Linux, IP- / , .
, , iptables , , fwmarks. tc. , . " Linux" - .
iptables
tc
, /IP-, , Trickle. .
, - python , script python .
, python? , , , . , , , Click! modular router, XORP , , - , (, iptables tc)
Click! modular router
XORP