[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attaching qdisc to a class



    Is this serious? Why do you send me this kind of things? Do you think that
I really knew what I was doing in any of the laboratories we've had all along
our career?
    En serio, se lo remitiré a mis contactos Linuxeros locos por el mundo a
ver si le encuentran una solución.
    Saludines,
        Ignacio

Marival Cruz Romero wrote:

>         Hi,
>         I'm trying to mark the packets from an application and I'd like to
> shape the output with queuing disciplines. I've tried to assign a
> different TBF queue to two classes but when I active one of them the
> other one is replaced. I make...
>
>         tc class change dev eth0 classid 1:1 dsmark mask 0x3 value 0xb8
>         tc class change dev eth0 classid 1:2 dsmark mask 0x3 value 0x88
>         tc filter add dev eth0 parent 1:0 protocol ip handle 1: prio 5 u32
> divisor 256
>         tc filter add dev eth0 parent 1:0 protocol ip u32 \
>                 match ip protocol 17 0xff \
>                 match ip sport 0x470c 0xfff \
>                 flowid 1:1
>         tc filter add dev eth0 parent 1:0 protocol ip u32 \
>                 match ip protocol 17 0xff \
>                 match ip sport 0x4c1f 0xffff \
>                 flowid 1:2
>         tc qdisc add dev eth0 parent 1:1 handle 2:0 tbf rate 256Kbit \
>                 burst 2068B limit 10.34KB
>
> and if I do 'tc qdisc show dev eth0' I get
>
>         qdisc tbf 2: rate 256Kbit burst 2067b lat 317.4ms
>         qdisc dsmark 1: indices 0x0040
>
> but if I add the following sentence
>
>         tc qdisc add dev eth0 parent 1:2 handle 3:0 tbf rate 2.5Mbit burst
> 4305B limit 7175B
>
> I get a replacement of the TBF queue 2:0 ...
>
>         qdisc tbf 3: rate 2560Kbit burst 4304b lat 10.7ms
>         qdisc dsmark 1: indices 0x0040
>
> Please, can someone tell me what am I doing wrong? Could you give me a
> suggestion to do it in other way?
>
>         Marival
begin:vcard 
n:García-Carrillo Gazapo;Ignacio
tel;cell:+34 656 695939
tel;fax:+34 91 3367239
tel;home:+34 91 639 51 44
tel;work:+34 91 3367237 / +34 91 5446481
x-mozilla-html:FALSE
url:www.gio.ingor.upm.es
org:ETSIT- UPM;GRUPO DE INGENIERÍA DE ORGANIZACIÓN
version:2.1
email;internet:carrillo@gio.ingor.upm.es
title:Ingeniero Software Internet
adr;quoted-printable:;;Escuela T=E9cnica Superior de Ingenieros de Telecomunicaci=F3n=0D=0AAvda. Complutense, s/n=0D=0ACiudad Universitaria=0D=0A28040 Madrid;;;;España
fn:Ignacio García-Carrillo Gazapo
end:vcard