Skip to contentSkip to conversation

bandwidth shaping over multiple WAN links

LARTC hare ram 5 participants 8 messages Jul 26, 2003 – Jul 29, 2003

lore
Share & tools
lore

hare ram

author
#0 lore raw

Hi Madhuri

yes its possible,

you can make all link one big pipe and share the load equally

to do this you need to add some patches to you kernel

you did not mention what distro are you using

iam using redhat 9.0, with multiple links working fine

best of luck

hare

----- Original Message -----
From: "madhuri" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 26, 2003 3:09 PM
Subject: [LARTC] bandwidth shaping over multiple WAN links

Quoted 18 lines

Hi,

We have three WAN links each of capacity 2 Mbps.

There is a one linux box per link which is used for NAT and firewall. So I have three linux boxes and three WAN links to talk to the internet.

We want to do bandwidth shaping over these three links. I know individually we can do bandwidth shaping for a particular WAN link using linux tc tool. I can repeat the same bandwidth shaping commands for other two links also. However it would be better if I can treat three links as one big WAN pipe and do the bandwidth shaping for all of them at one place. Is it possible?

I am just thinking aloud and not sure if that is possible or not.

Quoted 7 lines

Thanks,
Madhuri

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

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

#1 lore raw

Hi,

We have three WAN links each of capacity 2 Mbps.

There is a one linux box per link which is used for NAT and firewall. So I have three linux boxes and three WAN links to talk to the internet.

We want to do bandwidth shaping over these three links. I know individually we can do bandwidth shaping for a particular WAN link using linux tc tool. I can repeat the same bandwidth shaping commands for other two links also. However it would be better if I can treat three links as one big WAN pipe and do the bandwidth shaping for all of them at one place. Is it possible?

I am just thinking aloud and not sure if that is possible or not.

Thanks,
Madhuri

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

#2 lore raw
In reply to hare ram

We are using redhat 8.0, however we can switch to redhat 9.0 if required.

So you have one linux box with multiple ethernet cards each connected to a seperate WAN link and you are doing traffic shaping over these links?

I have read about load balancing with 'teq' or something like that with linux. Are you refering to that?

Madhuri

Quoted 45 lines · hare ram

Hi Madhuri

yes its possible,

you can make all link one big pipe and share the load equally

to do this you need to add some patches to you kernel

you did not mention what distro are you using

iam using redhat 9.0, with multiple links working fine

best of luck

hare

----- Original Message -----
From: "madhuri" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 26, 2003 3:09 PM
Subject: [LARTC] bandwidth shaping over multiple WAN links

Quoted 21 lines

Hi,

We have three WAN links each of capacity 2 Mbps.

There is a one linux box per link which is used for NAT and firewall. So I have three linux boxes and three WAN links to talk to the internet.

We want to do bandwidth shaping over these three links. I know individually we can do bandwidth shaping for a particular WAN link using linux tc tool. I can repeat the same bandwidth shaping commands for other two links also. However it would be better if I can treat three links as one big WAN pipe and do the bandwidth shaping for all of them at one place. Is it possible?

I am just thinking aloud and not sure if that is possible or not.

Thanks,
Madhuri

Quoted 9 lines
Quoted 4 lines

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

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

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

author
#3 lore raw
In reply to hare ram

Hi

Yes, you can achive the same with RH 8.0 also.
yes iam using multiple ethernet for internet side ( backbone side) and one ethernet for LAN side
and loadbalancing all the links..

iam refereing

http://www.ssi.bg/~ja/nano.txt

with the help of julian, i have achived this for load balancing

for shaping the b/w best places are

www.lartc.org
www.docum.org ( stef)

will help you lot

best of luck

hare
----- Original Message -----
From: "Madhuri Patwardhan" <[email protected]>
To: "hare ram" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, July 26, 2003 4:12 PM
Subject: Re: [LARTC] bandwidth shaping over multiple WAN links

Quoted 7 lines

We are using redhat 8.0, however we can switch to redhat 9.0 if required.

So you have one linux box with multiple ethernet cards each connected to a seperate WAN link and you are doing traffic shaping over these links?

Quoted 38 lines

I have read about load balancing with 'teq' or something like that with linux. Are you refering to that?

Madhuri

Quoted 30 lines · hare ram

Hi Madhuri

yes its possible,

you can make all link one big pipe and share the load equally

to do this you need to add some patches to you kernel

you did not mention what distro are you using

iam using redhat 9.0, with multiple links working fine

best of luck

hare

----- Original Message -----
From: "madhuri" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 26, 2003 3:09 PM
Subject: [LARTC] bandwidth shaping over multiple WAN links

Quoted 6 lines

Hi,

We have three WAN links each of capacity 2 Mbps.

There is a one linux box per link which is used for NAT and firewall.

So

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I have three linux boxes and three WAN links to talk to the internet.

We want to do bandwidth shaping over these three links. I know individually we can do bandwidth shaping for a particular WAN link

using

Quoted 16 lines
Quoted 16 lines
Quoted 15 lines

linux tc tool. I can repeat the same bandwidth shaping commands for other two links also. However it would be better if I can treat three links as one big WAN pipe and do the bandwidth shaping for all of them at one place. Is it possible?

I am just thinking aloud and not sure if that is possible or not.

Thanks,
Madhuri

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

Quoted 9 lines
Quoted 4 lines

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

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

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

#4 lore raw
In reply to hare ram

I've read this based on this post. It deals with static IP scenario for both links. If we have two DSL links on dynamic IP and pppd inserts default route. If we run pppd/ppoe on two links and want to load balance between these links, how do we get pppd to add these links as alternate default routes with weights? Or do we have to do this explicitly with ppp-up?

Mohan

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of hare ram
Sent: Saturday, July 26, 2003 4:54 PM
To: Madhuri Patwardhan
Cc: [email protected]
Subject: Re: [LARTC] bandwidth shaping over multiple WAN links

Hi

Yes, you can achive the same with RH 8.0 also.
yes iam using multiple ethernet for internet side ( backbone side) and one ethernet for LAN side
and loadbalancing all the links..

iam refereing

http://www.ssi.bg/~ja/nano.txt

with the help of julian, i have achived this for load balancing

for shaping the b/w best places are

www.lartc.org
www.docum.org ( stef)

will help you lot

best of luck

hare
----- Original Message -----
From: "Madhuri Patwardhan" <[email protected]>
To: "hare ram" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, July 26, 2003 4:12 PM
Subject: Re: [LARTC] bandwidth shaping over multiple WAN links

Quoted 7 lines

We are using redhat 8.0, however we can switch to redhat 9.0 if required.

So you have one linux box with multiple ethernet cards each connected to a seperate WAN link and you are doing traffic shaping over these links?

Quoted 38 lines

I have read about load balancing with 'teq' or something like that with linux. Are you refering to that?

Madhuri

Quoted 30 lines · hare ram

Hi Madhuri

yes its possible,

you can make all link one big pipe and share the load equally

to do this you need to add some patches to you kernel

you did not mention what distro are you using

iam using redhat 9.0, with multiple links working fine

best of luck

hare

----- Original Message -----
From: "madhuri" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 26, 2003 3:09 PM
Subject: [LARTC] bandwidth shaping over multiple WAN links

Quoted 6 lines

Hi,

We have three WAN links each of capacity 2 Mbps.

There is a one linux box per link which is used for NAT and firewall.

So

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I have three linux boxes and three WAN links to talk to the internet.

We want to do bandwidth shaping over these three links. I know individually we can do bandwidth shaping for a particular WAN link

using

Quoted 16 lines
Quoted 16 lines
Quoted 15 lines

linux tc tool. I can repeat the same bandwidth shaping commands for other two links also. However it would be better if I can treat three links as one big WAN pipe and do the bandwidth shaping for all of them at one place. Is it possible?

I am just thinking aloud and not sure if that is possible or not.

Thanks,
Madhuri

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

Quoted 9 lines
Quoted 4 lines

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

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

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

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

#5 lore raw
In reply to hare ram
Quoted 7 lines · madhuri

Hi,

We have three WAN links each of capacity 2 Mbps.

There is a one linux box per link which is used for NAT and firewall. So I have three linux boxes and three WAN links to talk to the internet.

Quoted 8 lines

We want to do bandwidth shaping over these three links. I know individually we can do bandwidth shaping for a particular WAN link using linux tc tool. I can repeat the same bandwidth shaping commands for other two links also. However it would be better if I can treat three links as one big WAN pipe and do the bandwidth shaping for all of them at one place. Is it possible?

I am just thinking aloud and not sure if that is possible or not.

It also depends if you want to shape download or upload. If you want to shape upload, you have to realize that you can only use 1 link. For download, you can use 3 links but only if you NAT and you have a lot of connections so you can load balance the different connections (like http traffic). An ftp download, will only use 1 link.
This all to say that's not so easy to determine what will be the maximum bandiwdth a class can get. And that's one of the parameters you need to create a good tc setup. But you can create a tc setup that can shape the 3 links in both directions. Even if this shaping is not perfect, it still beter then not shaping at all.

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/
#6 lore raw
In reply to hare ram

Hi,

Thanks for the response.

Quoted 3 lines

For download, you
can use 3 links but only if you NAT and you have a lot of connections so you can load balance the different connections (like http traffic).

Can you provide some pointers on how to do this, especially load balancing?

Thanks,

Madhuri

Quoted 13 lines

An ftp
download, will only use 1 link.
This all to say that's not so easy to determine what will be the maximum bandiwdth a class can get. And that's one of the parameters you need to create a good tc setup. But you can create a tc setup that can shape the 3 links in both directions. Even if this shaping is not perfect, it still beter then not shaping at all.

Stef

--

Quoted 9 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/

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

#7 lore raw
In reply to hare ram

Madhuri,

: > For download, you
: > can use 3 links but only if you NAT and you have a lot of
: > connections so you can load balance the different connections (like : > http traffic).
:
: Can you provide some pointers on how to do this, especially load balancing?

Try the nano HOWTO, posted on Julian Anastasov's site:

http://www.ssi.bg/~ja/nano.txt

I would recommend searching the archive for previous discussions of this question. It comes up about in longer discussions twice a year or so.

http://www.google.com/search?q=site%3Amailman.ds9a.nl+nano+howto

Good luck,

-Martin

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

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