Re: Re: EF & AF filters with HTB

Linux Advanced Routing and Traffic Control

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

 



Hello Ferenc,

The big picture is to put voice in EF class, have AF classes & BE class.
Asterisk can mark packets, but I'm marking with 'iptables' &
classifying (filtering) as per the requested help.
We want HTB for EF class to guarantee the bandwidth & to be able to
borrow/lend between classes should there be no voice or data on the
link.
We are looking to roll this out at many sites & to partake in DS
domains, hence the need to fully understand DiffServ.
.
My biggest issue was understanding how to filter packets to their
correct classes, then I found this:
http://kabru.eecs.umich.edu/qos_network/diffserv/DiffServ_prototype/qdisc

and explained very nicely:
http://kabru.eecs.umich.edu/qos_network/diffserv/DiffServ_prototype/setting_qdisc.ps

What you have shown me is good, it's simpler & will work just as well.
Look at the above link for the script, I would like to run something
like that but with HTB & PFIFO for the EF class. Their explanation
helps, I'm busy trying to put something together now.

I haven't tried to remark packets yet so I'm unsure as to what the
exact procedure is.
What frustrates me is that there is no debug or logging to test scenarios.

Has anyone done voice HTB with EF, AF & BE classes?

On 10/04/06, pfer <forgamedev@xxxxxxxxx> wrote:
> Hi Robert!
>
> If I get you right, you wish to use HTB at a node
> for doing some QoS for packets based the DSCP they
> already have, and NOT marking them to have that AF,
> etc.
>
> (
> have you checked
> http://www.opalsoft.net/qos/DS-310.htm?
> he has some nice scripts
> )
>
> Why not simply use an u32 match on the TOS field for
> filtering under your main htb? Why do you need DSMARK?
> (haven't tried, but should work fine)
>
> For ex. having htb main shaper at 1:0 gives
>
> tc filter add dev eth0 parent 1:0 protocol ip prio 2
> u32 match ip tos 0xb8 0xff flowid 1:10
> (the EF htb branch is at 1:10)
>
> tc filter add dev eth0 parent 1:0 protocol ip prio 3
> u32 match ip tos 0x28 0xff flowid 1:20
> (the AF11 htb branch is at 1:20)
>
> At for bulk, create the htb main with: "default 30",
> and add an 1:30 class with needed rate + burst and
> red/sfq/etc.
> U won't need any filter for this, anything
> unclassified
> (anything other than EF or AF11) will get there.
>
> If I get you wrong, and you wish to re-mark those
> packets, I have some scripts for that, too.
>
> Contact me at forgamedev@xxxxxxxxx, and I will send
> them to you.
>
> PS:
> since I also have some scripts to test, and they
> resemble yours, can you tell me whether they are
> correct?
>
> First I wish to re-mark packets based on u32 ip src
> match, with:
>
> tc qdisc add dev eth0 handle 1:0 root dsmark indices 4
>
> tc class change dev eth0 classid 1:1 dsmark mask 0x3
> value 0xb8
>
> ..some filters under 1:0 to send packets to 1:1 to
> remark them...
>
> and then comes a htb at 2:0 having 1:0 (the dsmark
> qdisc) as parent with few branches.
>
> Can I expect that htb qdisc at 2:0 will already have
> the effects of dsmark at 1:0 (remarked packets)?
>
> Thanks,
>
> Ferenc
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> LARTC mailing list
> LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux