Skip to contentSkip to conversation

Shaping incoming traffic?

LARTC devik 1 participant 1 message Nov 19, 2001

lore
Share & tools
lore

devik

author
#0 lore raw

Hi,
You didn't send question to the list, why ?
I'm resending this to the list too.

Probably you don't ask me about how to setup linux qos (there are sufficient resources to read).

The fundamental part of your question is probably how to setup limit on total bw (in+out).
It is not generaly possible. But as I'm thinking about it you should be able to use IMQ for this. You would use simple HTB queue and create class for each direction. Classify packets by source IP (to detect their direction). Then attach htb to imq device.

It should work. If you succeed you could send more information here.

devik

Quoted 64 lines · Gunther Stammwitz

Hello Martin,

I'm running one Linux-PCs a router for a /20-Network and would like to do traffic-shaping.

To be more exact: I'd like to sell my customers a bandwidth like 1 Mbits or 3 Megabits... as _total_ Bandwidth (this means: combined up and downsteam together.).

What's the necessary setup using iproute2 to shape the traffic?

Thanks a lot,
Gunther Stammwitz

-----Ursprungliche Nachricht-----
Von: [email protected] [mailto:[email protected]]Im Auftrag von Martin Devera
Gesendet: Sonntag, 18. November 2001 14:49
An: Manfred Bartz
Cc: Linux Advanced Routing and Traffic Control
Betreff: Re: [LARTC] Shaping incoming traffic?

It is nerly FAQ. You can use Ingres qdisc to do it and attach policers here.
It would be nice to be able to attach every qdisc to incoming interface but it is not possible. There is always problem - when packet already hitted your box why do you want to drop/delay it ?
You should to do it on outgoing side of link to your box ..

When you are router (not app box) then you can shape both directions. On your virtual-host note. I already did patch (called IMQ) which implements virtual inteface allowing to attach single qdisc to multiple outgoing devices.
It should be relatively easy to extend it to catch incoming packets too - only there is no time to do it.

best regards, devik

Quoted 9 lines · Manfred Bartz

I would like to differentiate incoming traffic streams to guarantee minimum bandwidth to some services. However, as per the Adv-Routing-HOWTO it appears that only outgoing traffic can be shaped. Is this correct or is there a way of shaping incoming traffic?

The problem could possibly be overcome if there is a way of routing traffic through a virtual host. Any tips on how to go about that?

Quoted 7 lines

--
Manfred

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

http://ds9a.nl/2.4Routing/

Quoted 2 lines
Quoted 6 lines

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

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