bandwidth shaping based on trafic on other host
Hi Folks,
I am a newbie in Qos... I could not find references to my question,
then I am asking.
This is the network:
192.168.1.2 --+
192.168.1.3 --+ Router
192.168.1.4 --+ Linux/2.4
192.168.1.5 --+---- eth0 eth1 ---- internetprovider1 200.x.x.2 ----+
200.x.x.3 ----+
200.x.x.4 ----+
Other network:
internetprovider2 ----- 200.y.y.6 (static IP)
The link to internetprovider1 is from 256kbps (min) to 300kbps (max). Link to internetprovider2 is from 128kbps (min) to 150kbps (max). (download and upload rates are the same and are also independent. the
link hardware is full-duplex)
A few (<10) times a day, computers 200.y.y.6 and 200.x.x.3 open a
peer-to-peer application (video/audio) that demands 96kbps and they use it for 5 minutes only.
Now what I need to do:
- When there is no trafic from 200.y.y.6 in the router, all machines
can use the network, without any bandwidth limit.
- When there is trafic from 200.y.y.6, I want to limit the bandwidth
of other hosts to 140kbps to assure the 96kbps to the video/audio connection.
Can you give me a hint? Is there any keywords for this feature I
need that I can search in google? ? Any howto you can recommend?
Thanks,
Pedro
Signature · 7 lines
.''`. Pedro Zorzenon Neto <[email protected]> : :' : Debian GNU/Linux | GNU/Hurd: <http://www.debian.org> `. `'` Debian BR: <http://debian-br.alioth.debian.org> `- Be Happy! Be FREE! _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Pedro Zorzenon Neto
This is the network:
192.168.1.2 --+
192.168.1.3 --+ Router
192.168.1.4 --+ Linux/2.4
192.168.1.5 --+---- eth0 eth1 ---- internetprovider1 200.x.x.2 ----+
200.x.x.3 ----+
200.x.x.4 ----+
Maybe the linux router configuration is needed for you to answer my question.
Thanks again,
Pedro
linux router configs:
eth0 addr: 192.168.1.1/24
eth1 addr: 200.x.x.1/29
static routes:
192.168.1.0/24 -> eth0
200.x.x.2/32 -> eth0 200.x.x.3/32 -> eth0 200.x.x.4/32 -> eth0 200.x.x.5/32 -> eth0 200.x.x.0/29 -> eth1 0.0.0.0/0 -> via gateway 200.x.x.6
provider1 configurations:
I have 5 static IPs (200.x.x.1 to 200.x.x.5)
The IP 200.x.x.6 is provider IP.
The IP 200.x.x.1 provider routes direct to myrouter eth1 The IP 200.x.x.2 to 200.x.x.5 provider routes via gateway 200.x.x.1,
that is myrouter.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi Folks,
It's been 4 days since I posted a question and did not receive any answer. Can you give me a hint if linux 'tc' 'iproute2' tools are able to do what I need?
I don't even know if they can do this and I should continue trying to use them for my needs. It seems that what I asked is very hard to do. I don't want the problem fully solved in a reply, just some hint will be great!
My first post it at:
http://mailman.ds9a.nl/pipermail/lartc/2004q2/012709.html
If the lartc list is not the correct place for my question, please let me know.
Thanks,
Pedro
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines · Pedro Zorzenon Neto
Hi Folks,
It's been 4 days since I posted a question and did not receive any answer. Can you give me a hint if linux 'tc' 'iproute2' tools are able to do what I need?
I don't even know if they can do this and I should continue trying to use them for my needs. It seems that what I asked is very hard to do. I don't want the problem fully solved in a reply, just some hint will be great!
Quoted 5 lines
My first post it at:
http://mailman.ds9a.nl/pipermail/lartc/2004q2/012709.htmlIf the lartc list is not the correct place for my question, please let me know.
It is the correct place.
Regarding your question, it can be done.
It's best if you can shape on both internet routers.
You can make sure 200.y.y.6 gets 96kbs by putting the traffic in a different class.
As hint: use htb and start reading the pages on lartc.org and docum.org.
Stef
Signature · 6 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/