set autocmd tc qdisc add dev eth0 root tbf rate 1000kbit latency 50ms burst 20000
COMANDI SET DSCP E SET DSCP-CLASS
The command set dscp allows to classify a stream of packets and to set the DSCP (Differentiated
Service Code Point) value with the packet that will be sent.
Use the command as below:
set dscp VALUE protocol PROT from ADDRESS to ADDRESS out-interface INTF in-interface INTF
set dscp VALUE protocol PROT from ADDRESS source-port PORT to ADDRESS dest-port PORT out-interface INTF in-interface INTF
where:
VAL is a numeric value from 1 to 65 that you must insert in the packet's DSCP field
PROTOCOL tells the protocol used, that can be:
TCP
UDP
ICMP
GRE
OSPF
L2TPV3
any
ADDRESS is a network prefix (10.10.10.0/24) or the keyword any, used to indicate any
address
PORT is a numeric value that identify the UDP or TCP port, or a string that identify the
service (Telnet, SSH, SNMP,...)
The command set dscp-class has the same syntax, but it allows to directly specify the DSCP
class:
set dscp-class CLASS-VALUE <options>
where the CLASS-VALUE can be: cs0, cs1 ... cs7, be, af11,af12, af13, af21, af22, af23, af31,
af32, af33, af41, af42, af43, ef.