Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Sharing bandwidth between two interfaces
@ 2001-04-02 10:14 
  2001-04-02 18:21 ` Christian Worm Mortensen
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From:  @ 2001-04-02 10:14 UTC (permalink / raw)
  To: lartc

Hello all.

I have been playing around with CBQ, cbq.init et al for a while, and
have got some impressive results. It works after all!... I have used SFQ
as the leaf queuing discipline on all my classes and created a bounded
class with the total bandwidth I wanted to share (64K), from which
unbounded subclasses borrow bandwidth. It works great.

But now I've got a problem... This setup works well when there is only
one input interface and one output interface. But my interest now is to
share the internet connection between two subnets, each one attached to
a different interface. The problem is that the 64K class must be
attached to one of the interfaces, so I think it will not work if I try
to use it from the other ethernet interface. How can I solve this? Maybe
with some type of tunneling? teql maybe?

Many thanks in advance,


--
                José Carlos Ramírez Pérez
                Área de Internet y Telecomunicaciones

                mailto:JoseCarlos.Ramirez@isotrol.com
                ___________________________________________________
                ISOTROL S.A.
                Avda. de la innovación nº 1, 3ª plta, 41020 Sevilla
                Tel.:+34 955 036 800 - Fax:+34 955 036 849  (Spain)
                web: http://www.isotrol.com/




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
@ 2001-04-02 18:21 ` Christian Worm Mortensen
  2001-04-04  8:14 ` Vladimir Smelhaus
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Christian Worm Mortensen @ 2001-04-02 18:21 UTC (permalink / raw)
  To: lartc

Hi,

> one input interface and one output interface. But my interest now is to
> share the internet connection between two subnets, each one attached to
> a different interface. The problem is that the 64K class must be
> attached to one of the interfaces,

Is it correct understood that you want to limit some traffic which can go out on two different interfaces, to 64K in total?


Christian


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
  2001-04-02 18:21 ` Christian Worm Mortensen
@ 2001-04-04  8:14 ` Vladimir Smelhaus
  2001-04-04 10:48 ` 
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Vladimir Smelhaus @ 2001-04-04  8:14 UTC (permalink / raw)
  To: lartc

Dne 2 Apr 2001, v 20:21, Christian Worm Mortensen napsal(a):

> > one input interface and one output interface. But my interest now is to
> > share the internet connection between two subnets, each one attached to
> > a different interface. The problem is that the 64K class must be
> > attached to one of the interfaces,
> 
> Is it correct understood that you want to limit some traffic which can go out on two different interfaces, to 64K in total?

Well, although I didn't post the original message, I hope that I would like to 
do the same. To limit sum of outgoing traffic to some maximum and to 
borrow bandwidth between interfaces. 

Can anbnody confirm that it is or it is not possibile?


Zdravim/Regards

     Vladimir Smelhaus

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
  2001-04-02 18:21 ` Christian Worm Mortensen
  2001-04-04  8:14 ` Vladimir Smelhaus
@ 2001-04-04 10:48 ` 
  2001-04-05 14:16 ` worm
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From:  @ 2001-04-04 10:48 UTC (permalink / raw)
  To: lartc

Christian Worm Mortensen wrote:

> Hi,
>
> > one input interface and one output interface. But my interest now is to
> > share the internet connection between two subnets, each one attached to
> > a different interface. The problem is that the 64K class must be
> > attached to one of the interfaces,
>
> Is it correct understood that you want to limit some traffic which can go out on two different interfaces, to 64K in total?
>
> Christian

Yes, that's it. Sorry, my english isn't any good...



--
                José Carlos Ramírez Pérez
                Área de Internet y Telecomunicaciones

                mailto:JoseCarlos.Ramirez@isotrol.com
                ___________________________________________________
                ISOTROL S.A.
                Avda. de la innovación nº 1, 3ª plta, 41020 Sevilla
                Tel.:+34 955 036 800 - Fax:+34 955 036 849  (Spain)
                web: http://www.isotrol.com/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
                   ` (2 preceding siblings ...)
  2001-04-04 10:48 ` 
@ 2001-04-05 14:16 ` worm
  2001-04-05 17:41 ` Guy Van Den Bergh
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: worm @ 2001-04-05 14:16 UTC (permalink / raw)
  To: lartc

Hi,

> > Is it correct understood that you want to limit some traffic which can go
> >  out on two different interfaces, to 64K in total?

> Yes, that's it. Sorry, my english isn't any good...

Ok... If anyone knows a way to do this I would like to know too ;-) Maybe it
is possible by shaping on a loopback interface?


Christian

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
                   ` (3 preceding siblings ...)
  2001-04-05 14:16 ` worm
@ 2001-04-05 17:41 ` Guy Van Den Bergh
  2001-04-05 20:42 ` Christian Worm Mortensen
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Guy Van Den Bergh @ 2001-04-05 17:41 UTC (permalink / raw)
  To: lartc

Depending on what you are trying to do, channel bonding or teql
should do the trick. But I haven't tried these things out (yet)...
One more thing: channel bonding nor teql will work when those two
interfaces are connected to different ISPs. If this is the case,
only ingress policing on your local LAN interface will work.

Btw, I don't think shaping on a loopback interface will solve this
problem...

Guy

worm@dkik.dk wrote:

> Hi,
> 
> 
>>> Is it correct understood that you want to limit some traffic which can go
>>>  out on two different interfaces, to 64K in total?
>> 
> 
>> Yes, that's it. Sorry, my english isn't any good...
> 
> 
> Ok... If anyone knows a way to do this I would like to know too ;-) Maybe it
> is possible by shaping on a loopback interface?
> 
> 
> Christian
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
                   ` (4 preceding siblings ...)
  2001-04-05 17:41 ` Guy Van Den Bergh
@ 2001-04-05 20:42 ` Christian Worm Mortensen
  2001-04-05 21:59 ` Guy Van Den Bergh
  2001-04-06  6:24 ` Christian Worm Mortensen
  7 siblings, 0 replies; 9+ messages in thread
From: Christian Worm Mortensen @ 2001-04-05 20:42 UTC (permalink / raw)
  To: lartc

Hi,

> interfaces are connected to different ISPs. If this is the case,
> only ingress policing on your local LAN interface will work.

What in fact is the ingress qdisc? Accoring to the howto it limits _incomming_ bandwidth. But a basic principple of qdiscs is that they handle _outgoing_ packets. How does this make sence?


Christian


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
                   ` (5 preceding siblings ...)
  2001-04-05 20:42 ` Christian Worm Mortensen
@ 2001-04-05 21:59 ` Guy Van Den Bergh
  2001-04-06  6:24 ` Christian Worm Mortensen
  7 siblings, 0 replies; 9+ messages in thread
From: Guy Van Den Bergh @ 2001-04-05 21:59 UTC (permalink / raw)
  To: lartc

Christian Worm Mortensen wrote:

> 
> What in fact is the ingress qdisc? Accoring to the howto it limits _incomming_ bandwidth. But a basic principple of qdiscs is that they handle _outgoing_ packets. How does this make sence?
> 

Indeed, it is normally not done, but if you want to shape incoming bandwidth, it is perfectly
possible to create a queue for incoming packets, and to do ingress policing by means of this queue.

That's what the ingress policing qdisc does...

One major application of ingress policing is only letting a limited rate of icmp or
tcp syn packets coming into your network. That will keep your network less vulnerable
for ping floods and dos attacks.

> 
> Christian
> 
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Sharing bandwidth between two interfaces
  2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
                   ` (6 preceding siblings ...)
  2001-04-05 21:59 ` Guy Van Den Bergh
@ 2001-04-06  6:24 ` Christian Worm Mortensen
  7 siblings, 0 replies; 9+ messages in thread
From: Christian Worm Mortensen @ 2001-04-06  6:24 UTC (permalink / raw)
  To: lartc

Hi,

> > What in fact is the ingress qdisc? Accoring to the howto it limits 
> > _incomming_ bandwidth. But a basic principple of qdiscs is that they handle 
> > _outgoing_ packets. How does this make sence?

> Indeed, it is normally not done, but if you want to shape incoming bandwidth, it 
> is perfectly possible to create a queue for incoming packets, and to do ingress 
> policing by means of this queue.

Is it also possible to take an arbitary qdisc and put in the incomming direction? Like Kevin Turner also seems to want?


Christian


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-04-06  6:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-02 10:14 [LARTC] Sharing bandwidth between two interfaces 
2001-04-02 18:21 ` Christian Worm Mortensen
2001-04-04  8:14 ` Vladimir Smelhaus
2001-04-04 10:48 ` 
2001-04-05 14:16 ` worm
2001-04-05 17:41 ` Guy Van Den Bergh
2001-04-05 20:42 ` Christian Worm Mortensen
2001-04-05 21:59 ` Guy Van Den Bergh
2001-04-06  6:24 ` Christian Worm Mortensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox