From: "Emanuele Colombo" Date: Wed, 05 Apr 2006 13:18:06 +0000 Subject: [LARTC] Tocken Bucket with priority? Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0997928347==" List-Id: To: lartc@vger.kernel.org --===============0997928347== Content-Type: multipart/alternative; boundary="----=_Part_17205_13016885.1144243086634" ------=_Part_17205_13016885.1144243086634 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. I'm trying to get a traffic shaper like this: ------ VoIP pkts --> | |_| ------ \ | ---O -> ------ / Data pkts --> | ------ In this shaper voip packets are in a different queue than any other kind of packet. I want a data packet to be served only when no packets are in the voip queue (when voip queue is empty). Furthermore the total traffic that leaves this shaper needs to be limited t= o a specific (and precise) value of bandwidth, like a token bucket. I can't use something like this (PRIO + TBF) because in this way when "data congestion" happens, voip packets may be lost too(packet drop appens on the TBF queue): ------ VoIP pkts --> | |_| ------ \ ----- | O ---> |---O -> ------ / ----- Data pkts --> | ------ I also can't use HTB because it doesn't provide a priority mechanism like m= y needs, and CBQ because his bandwidth limiting algorithm isn't very precise (according to the documentation). How can I solve this problem using tc qdiscs? Thanks -- Emanuele ------=_Part_17205_13016885.1144243086634 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. I'm trying to get a= traffic shaper like this:


    = ;            &n= bsp;   ------
  VoIP pkts &= nbsp;  -->        |  &= nbsp; |_|
    = ;            &n= bsp;   ------  \   |
    = ;            &n= bsp;            ---O ->
    = ;            &n= bsp;   ------  /
  Data pkts &= nbsp;  -->        |
    = ;            &n= bsp;   ------

In this shaper voip packets are in a different queue than any other kind of packet. I want a data packet to be served only when no packets are in the voip queue (when voip queue is empty).
Furthermore the total traffic that leaves this shaper needs to be limited to a specific (and precise) value of bandwidth, like a token bucket.


I can't use something like this (PRIO + TBF) because in this way when "data congestion" happens, voip packets may be lost too(packet drop appens on the TBF queue):

    = ;            &n= bsp;   ------
  VoIP pkts    -->        |            &n= bsp;  |_|
    = ;            &n= bsp;   ------  \     -----    |
    = ;            &n= bsp;            O --->    |---O ->
    = ;            &n= bsp;   ------  /     -----
  Data pkts &= nbsp;  -->        |
    = ;            &n= bsp;   ------

I also can't use HTB because it doesn't provide a priority mechanism like my needs, and CBQ because his bandwidth limiting algorithm isn't very precise (according to the documentation).


How can I solve this pr= oblem using tc qdiscs?


Thanks

--
Emanuele ------=_Part_17205_13016885.1144243086634-- --===============0997928347== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0997928347==--