From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Chan Date: Wed, 10 Jul 2002 08:53:36 +0000 Subject: Re: [LARTC] Priority Queueing on Linux MIME-Version: 1 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C227F0.84791FC0" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C227F0.84791FC0 Content-Type: text/plain; charset="iso-8859-1" Hi, Below is the explanation of priority queueing http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/qos.htm#xtocid22 I am developing a linux router. There is both data and voice traffic passed thru it. When I use priority queueing on Cisco router, the voice quality is good, evening downloading a large file. But I use the following tc config, the voice quality is not smooth when downloading a large file: tc qdisc add dev ppp0 root handle 10: cbq bandwidth 112Kbit avpkt 1000 tc class add dev ppp0 parent 10:0 classid 10:100 cbq bandwidth 112Kbit rate 57Kb it allot 1514 weight 5Kbit prio 2 maxburst 20 avpkt 1000 isolated tc class add dev ppp0 parent 10:0 classid 10:200 cbq bandwidth 112Kbit rate 55Kb it allot 1514 weight 5Kbit prio 8 maxburst 20 avpkt 1000 bounded tc qdisc add dev ppp0 parent 10:100 sfq quantum 1514b perturb 15 tc qdisc add dev ppp0 parent 10:200 sfq quantum 1514b perturb 15 tc filter add dev ppp0 parent 10:0 protocol ip prio 2 u32 match ip tos 0x8 0xff flowid 10:100 tc filter add dev ppp0 parent 10:0 protocol ip prio 8 u32 match ip tos 0x00 0xff flowid 10:200 voice packet is tagged with 0x8 in TOS field. Voice traffic only uses 34K bandwidth. So the bandwidth allocated to voice is enough. Is there any better tc config? ---------------------------------------------------------------------------- ---------------------- Date: Tue, 9 Jul 2002 11:46:58 +0200 From: bert hubert To: lartc@mailman.ds9a.nl Subject: Re: [LARTC] Priority Queueing on Linux On Tue, Jul 09, 2002 at 12:02:40PM +0800, Patrick Chan wrote: > There is priority queueing in Cisco router. > > Is there any equivalent implementation for TC on Linux? > > If yes, how can I configure and can you give me example? Please dig up a link so we can see what 'priority queueing' actually *is*. But I bet that tc has it. Regards, bert -- http://www.PowerDNS.com Versatile DNS Software & Services http://www.tk the dot in .tk http://lartc.org Linux Advanced Routing & Traffic Control HOWTO Date: Tue, 09 Jul 2002 09:19:11 -0400 From: "Michael T. Babcock" Organization: FibreSpeed Ltd. To: lartc Subject: Re: [LARTC] Priority Queueing on Linux bert hubert wrote: >On Tue, Jul 09, 2002 at 12:02:40PM +0800, Patrick Chan wrote: > > >>There is priority queueing in Cisco router. >> >> >Please dig up a link so we can see what 'priority queueing' actually *is*. >But I bet that tc has it. > > I can almost guarantee Patrick is asking about diffserv support. -- Michael T. Babcock CTO, FibreSpeed Ltd. ------_=_NextPart_001_01C227F0.84791FC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: [LARTC] Priority Queueing on Linux

Hi,

Below is the explanation of priority queueing
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_d= oc/qos.htm#xtocid22

I am developing a linux router.
There is both data and voice traffic passed thru = it.

When I use priority queueing on Cisco router,
the voice quality is good, evening downloading a = large file.

But I use the following tc config, the voice quality = is not smooth
when downloading a large file:

tc qdisc add dev ppp0 root handle 10: cbq bandwidth = 112Kbit avpkt 1000
tc class add dev ppp0 parent 10:0 classid 10:100 cbq = bandwidth 112Kbit rate 57Kb
it allot 1514 weight 5Kbit prio 2 maxburst 20 avpkt = 1000 isolated
tc class add dev ppp0 parent 10:0 classid 10:200 cbq = bandwidth 112Kbit rate 55Kb
it allot 1514 weight 5Kbit prio 8 maxburst 20 avpkt = 1000 bounded
tc qdisc add dev ppp0 parent 10:100 sfq quantum = 1514b perturb 15
tc qdisc add dev ppp0 parent 10:200 sfq quantum = 1514b perturb 15
tc filter add dev ppp0 parent 10:0 protocol ip prio = 2 u32 match ip tos 0x8 0xff
flowid 10:100
tc filter add dev ppp0 parent 10:0 protocol ip prio = 8 u32 match ip tos 0x00 0xff
 flowid 10:200

voice packet is tagged with 0x8 in TOS field.
Voice traffic only uses 34K bandwidth. So the = bandwidth allocated
to voice is enough.
Is there any better tc config?









---------------------------------------------------------------= -----------------------------------
Date: Tue, 9 Jul 2002 11:46:58 +0200
From: bert hubert <ahu@ds9a.nl>
To: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Priority Queueing on = Linux

On Tue, Jul 09, 2002 at 12:02:40PM +0800, Patrick = Chan wrote:
> There is priority queueing in Cisco = router.
>
> Is there any equivalent implementation for TC = on Linux?
>
> If yes, how can I configure and can you give me = example?

Please dig up a link so we can see what 'priority = queueing' actually *is*.
But I bet that tc has it.

Regards,

bert

--
http://www.PowerDNS.com    &nb= sp;     Versatile DNS Software & = Services
http://www.tk      &= nbsp;           &= nbsp;           the = dot in .tk
http://lartc.org     &nbs= p;     Linux Advanced Routing & Traffic Control = HOWTO

Date: Tue, 09 Jul 2002 09:19:11 -0400
From: "Michael T. Babcock" = <mbabcock@fibrespeed.net>
Organization: FibreSpeed Ltd.
To: lartc <lartc@mailman.ds9a.nl>
Subject: Re: [LARTC] Priority Queueing on = Linux

bert hubert wrote:

>On Tue, Jul 09, 2002 at 12:02:40PM +0800, Patrick = Chan wrote:

>
>>There is priority queueing in Cisco = router.
>>   
>>
>Please dig up a link so we can see what = 'priority queueing' actually *is*.
>But I bet that tc has it.

>
I can almost guarantee Patrick is asking about = diffserv support.
--
Michael T. Babcock
CTO, FibreSpeed Ltd.


------_=_NextPart_001_01C227F0.84791FC0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/