All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] problem with prio qdisc and TOS
@ 2003-01-30 13:26 Andreas Wright
  2003-01-30 14:07 ` Chris Wilson
  2003-02-03 10:22 ` Andreas Wright
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Wright @ 2003-01-30 13:26 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 822 bytes --]


Hello ,

I have presented my problem before also.I have linux box with 2 interfaces eth0(incoming) and eth1(outgoing).

 If I just attach a PRIO qdisc on eth1(outgoing) will I be able to prioritise packets based on the TOS value.The TOS value is set by a test application.At very high data rates will the data stream with lower priority TOS value be starved because it cannot send out of packets from its band on eth1 interface?.

Does something be set in linux kernel so that kernel sets priority for packets  according to TOS value.I guess this priorty will be used by PRIO qdisc(by default) to decide which band the packet belongs.

Please clarify this by giving your inputs.

Regards,

Andreas.




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

[-- Attachment #2: Type: text/html, Size: 997 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] problem with prio qdisc and TOS
  2003-01-30 13:26 [LARTC] problem with prio qdisc and TOS Andreas Wright
@ 2003-01-30 14:07 ` Chris Wilson
  2003-02-03 10:22 ` Andreas Wright
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2003-01-30 14:07 UTC (permalink / raw)
  To: lartc

Hi Andreas,

I hope I have this right, based on my limited understanding of Linux QoS. 
If I'm wrong then I hope someone will correct me =)

>  If I just attach a PRIO qdisc on eth1(outgoing) will I be able to
> prioritise packets based on the TOS value.

You don't even need to do that, the default qdisc is pfifo_fast which also 
prioritises by TOS flags.

> The TOS value is set by a test application.

It can also be overridded by a Netfilter rule, if you want to force or 
change priority for certain types of packets.

> At very high data rates will the data stream with lower
> priority TOS value be starved because it cannot send out of packets from
> its band on eth1 interface?.

Yes, if there is not enough capacity to send on eth1 then lower-priority 
packets will be starved, will queue up until the queue is full and then 
get dropped.

> Does something be set in linux kernel so that kernel sets priority for
> packets according to TOS value.I guess this priorty will be used by PRIO
> qdisc(by default) to decide which band the packet belongs.

Yes, it happens by default, with the pfifo_fast qdisc.

Cheers, Chris.
-- 
   ___ __     _
 / __// / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] problem with prio qdisc and TOS
  2003-01-30 13:26 [LARTC] problem with prio qdisc and TOS Andreas Wright
  2003-01-30 14:07 ` Chris Wilson
@ 2003-02-03 10:22 ` Andreas Wright
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Wright @ 2003-02-03 10:22 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 2109 bytes --]


hello all,
As I had mentioned in the previous mail I was trying to prioritise outgoing packets on eth1 interface based on TOS value.I am testing this by sending packets from 2 IP sources (with 2 different TOS values) at very high data rate sending packets alternatively.On the outgoing interface I am using a sniffer to see if the lower priority source is getting starved.
But the sniffer capture shows that packets from both sources arrive alternatively as they are sent.I tried using default qdisc is pfifo_fast  and PRIO also.
Please anyone tell me what could be the problem.
Regards
Andreas
 Chris Wilson <chris@netservers.co.uk> wrote:Hi Andreas,

I hope I have this right, based on my limited understanding of Linux QoS. 
If I'm wrong then I hope someone will correct me =)

> If I just attach a PRIO qdisc on eth1(outgoing) will I be able to
> prioritise packets based on the TOS value.

You don't even need to do that, the default qdisc is pfifo_fast which also 
prioritises by TOS flags.

> The TOS value is set by a test application.

It can also be overridded by a Netfilter rule, if you want to force or 
change priority for certain types of packets.

> At very high data rates will the data stream with lower
> priority TOS value be starved because it cannot send out of packets from
> its band on eth1 interface?.

Yes, if there is not enough capacity to send on eth1 then lower-priority 
packets will be starved, will queue up until the queue is full and then 
get dropped.

> Does something be set in linux kernel so that kernel sets priority for
> packets according to TOS value.I guess this priorty will be used by PRIO
> qdisc(by default) to decide which band the packet belongs.

Yes, it happens by default, with the pfifo_fast qdisc.

Cheers, Chris.
-- 
___ __ _
/ __// / ,__(_)_ | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

[-- Attachment #2: Type: text/html, Size: 2537 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-03 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30 13:26 [LARTC] problem with prio qdisc and TOS Andreas Wright
2003-01-30 14:07 ` Chris Wilson
2003-02-03 10:22 ` Andreas Wright

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.