Skip to contentSkip to conversation

LARTC digest, Vol 1 #1523 - 17 msgs

LARTC Aron Brand 2 participants 2 messages Jan 6, 2004 – Jan 7, 2004

lore
Share & tools
lore

Aron Brand

author
#0 lore raw

Hi Roy,

It seems that I wasn't clear. Lets give an example.

I have a machine with a single ethernet interface, with two IP addresses A and B. This is done using two virtual interfaces.
A is my IP address in ISP-A. B is my IP address in ISP-B. The physical line to ISP-A is 1.5Mbps. The physical line to ISP-B is 256kbps.

I want to shape the traffic so that, for example, HTTP traffic will take no more than 10% of the ISP-B link, and no more than 20% of the ISP-A link.

There seems to be no way to do this without the ability to attach a qdisc to a virtual interface. Please correct me if I am wrong...

Aron

-------------------------------
From: "Roy" <[email protected]>
To: <[email protected]>
Subject: Re: [LARTC] virtual interface
Date: Mon, 5 Jan 2004 16:29:40 +0200

There is no need to use imq ant everything is easy to do anyway interface name is usefull only to attach qdisc to something and that all you need to clasify packets by source or destination ip antway

if you have idea how to use imq there then just use your interface instead.
also why it is so obvious that they must be shaped separately, ususly it is
much better to shape everything in one einterface

Hi guys,

I have this problem too. I have two Internet routers connected to the same Ethernet interface (using a hub). And each one obviously needs to be shaped seperately. It seems like a very common and logical scenario and this issue seems like a design problem.
Any Ideas on a workaround? Perhaps IMQ can be used somehow (although I hear it has serious stability problems...)?

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

#1 lore raw
Quoted 9 lines · Aron Brand

Hi Roy,

It seems that I wasn't clear. Lets give an example.

I have a machine with a single ethernet interface, with two IP addresses A and B. This is done using two virtual interfaces.
A is my IP address in ISP-A. B is my IP address in ISP-B. The physical line to ISP-A is 1.5Mbps. The physical line to ISP-B is 256kbps.

Quoted 6 lines

I want to shape the traffic so that, for example, HTTP traffic will take no more than 10% of the ISP-B link, and no more than 20% of the ISP-A link.

There seems to be no way to do this without the ability to attach a qdisc to a virtual interface. Please correct me if I am wrong...

You can do this if this box is also natting. The difference between packets leaving the 2 links is the source address. You can use the source address to put the traffic in 2 different classes. After that you can create subclasses for http traffic.

Stef

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

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