Skip to contentSkip to conversation

PRIO type qdisc

LARTC Paul C. Diem 3 participants 5 messages Dec 17, 2002 – Dec 19, 2002

lore
Share & tools
lore
#0 lore raw

I'm looking for a PRIO type qdisc which will prioritize packets (either based on DS or filters). Unlike PRIO, I need all the classes to flow into a single qdisc (HTB). For example:

         PRIO
           |
  +--------+--------+
  |        |        |
Band0    Band1    Band2
  |        |        |
  +--------+--------+
           |

HTB

Does such a qdisc exist or is there a way to get all the PRIO classes to flow into a single qdisc?

Paul C. Diem
[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 8 lines · Paul C. Diem

I'm looking for a PRIO type qdisc which will prioritize packets (either based on DS or filters). Unlike PRIO, I need all the classes to flow into a single qdisc (HTB). For example:

PRIO

+--------+--------+

Quoted 8 lines

Band0 Band1 Band2

+--------+--------+

HTB

Does such a qdisc exist or is there a way to get all the PRIO classes to flow into a single qdisc?

There is no such qdisc. And I don't think there is such way.

But why do you want to do this?

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Paul C. Diem
Quoted 13 lines · Stef Coene
Quoted 12 lines · Paul C. Diem

I'm looking for a PRIO type qdisc which will prioritize packets (either based on DS or filters). Unlike PRIO, I need all the classes to flow into a single qdisc (HTB). For example:

PRIO

+--------+--------+

Band0 Band1 Band2

+--------+--------+

Quoted 7 lines
Quoted 4 lines

HTB

Does such a qdisc exist or is there a way to get all the PRIO classes to flow into a single qdisc?

There is no such qdisc. And I don't think there is such way.

But why do you want to do this?

Here's what I'm really trying to accomplish: I have several links of various speeds. Some of the links feed from other links. For example,

                   +---> B                 +---> E
                   |                       |
A <---< 10Mbps >---+---> C <---< 6Mbps >---+---> F <---< 6Mbps >---> H
                   |
                   +---> D <---< 3Mbps >---> G

ie. I have a 10Mbps link from A which feeds B, C and D, a 6Mbps link from C which feeds E and F, a 6Mbps link from F which feeds H and a 3Mbps link from D which feeds G. I need to provide multiple levels of service (based on maximum bandwidth and packet priority) at each node. What I'd like to do it use htb to cap the bandwidth and some sort of prio qdisc to prioritize packets. The problem with prio is that I'd need to define the entire remaining "link tree" for each band at each level. It seems I need a qdisc which will prioritize packets based on some mark (ie. DS) but only had one class (instead of as many classes at there are bands like prio).

It looks like gred may do something like this but I can't find any detailed information on gred. If I'm going about this all wrong, please let me know.

Paul C. Diem
[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Paul C. Diem

Hayden Myers
Support Manager
Skyline Network Technologies
[email protected]
(410)583-1337 option 2

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

I'm looking for a PRIO type qdisc which will prioritize packets (either based on DS or filters). Unlike PRIO, I need all the classes to flow into a single qdisc (HTB). For example:

PRIO

+--------+--------+

Band0 Band1 Band2

+--------+--------+

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

HTB

Does such a qdisc exist or is there a way to get all the PRIO classes to flow into a single qdisc?

There is no such qdisc. And I don't think there is such way.

But why do you want to do this?

I had wanted to do similar things a while back before 10 other things beat me over the head and set me back. It's funny because the above topology is exactly what I had envisioned but read that it was impossible. My setup is to have a number of users who have bandwidth limiting based on an ip but also does priority shaping as well. I finally decided that I could have a top level htb qdisc for the total box bandwidth with seperate classes for the users below the box bandwidth qdisc. Underneath each user's class I thought that I could possibly attach a prio qdisc to do independent priority scheduling. I don't know if this works. It was just a thought I had. If think the manpage shows that you can attach a prio to any class. Does this work and is it a feasable setup?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Paul C. Diem
Quoted 20 lines · Hayden Myers
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

I'm looking for a PRIO type qdisc which will prioritize packets (either based on DS or filters). Unlike PRIO, I need all the classes to flow into a single qdisc (HTB). For example:

PRIO

+--------+--------+

Band0 Band1 Band2

+--------+--------+

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

HTB

Does such a qdisc exist or is there a way to get all the PRIO classes to flow into a single qdisc?

There is no such qdisc. And I don't think there is such way.

But why do you want to do this?

Quoted 11 lines

I had wanted to do similar things a while back before 10 other things beat me over the head and set me back. It's funny because the above topology is exactly what I had envisioned but read that it was impossible. My setup is to have a number of users who have bandwidth limiting based on an ip but also does priority shaping as well. I finally decided that I could have a top level htb qdisc for the total box bandwidth with seperate classes for the users below the box bandwidth qdisc. Underneath each user's class I thought that I could possibly attach a prio qdisc to do independent priority scheduling. I don't know if this works. It was just a thought I had. If think the manpage shows that you can attach a prio to any class. Does this work and is it a feasable setup?

Right now we have one htb qdisc at the root and a class under it for each user. We could put a prio qdisc at the root and use htb under each of prio's band classes. This gets ridiculously complex though as you get more link levels. I'd really like to be able to priorize the packets at each node though so that higher priority packets take precendence at each link (not just at the main link).

Paul C. Diem
[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/