Linux traffic shaping

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.

+5
source share
3 answers

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.

+6

Linux, IP- / , .

, , iptables , , fwmarks. tc. , . " Linux" - .

, /IP-, , Trickle. .

, - python , script python .

+6

, python? , , , . , , , Click! modular router, XORP , , - , (, iptables tc)

0

All Articles