All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] vlan traffic shaping.
@ 2005-05-09  4:37 Robert Denier
  2005-05-11 22:02 ` Andy Furniss
  2005-05-12 15:52 ` Arkadiusz Binder
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Denier @ 2005-05-09  4:37 UTC (permalink / raw)
  To: lartc

I couldn't find anyone who had actually made it work via google so I
guess I'll ask here.

My setup is a VPN point to point link.  The VPN is a modified version of
Openvpn where I'm using zlib compression to improve the compression a
bit.

The goal is to shape traffic coming from a routing server through the
vpn to the endpoint of the vpn and in such a way maximize the usefulness
of a limited bandwidth connection.

You can shape the vpn tunnel just fine, but that has a problem since you
shape the traffic _before_ any of it is compressed and thus cannot
really deal with compression in an ideal manner.

The ideal thing to do is to shape traffic after the VPN software
processes it and sends it to the real interface.  Of course, now that
I'm taking the time to explain the problem, an answer becomes somewhat
obvious and that is to add shaping just on the source/dest path used by
vpn packets on the real interface.

What I was trying to do was to create a vlan interface like eth0.5 and
then use that interface to run the VPN link, and thus have a nice
intermediate point where I can do all the shaping.  Unfortunately when
one actually tries to do this, the shaping seems to set itself up
normally, but in fact does absolutely nothing with the vlan interface.

I suppose some more analysis of my idea is in order.  I may be a little
wrong on some things so feel free to correct me.

1) You can shape all traffic correctly on the VPN link, except
compressible traffic which changes in size after leaving the VPN
software.

2) You could shape raw VPN packets based on source/dest type marking.
Now what does this mean for the shaping in 1)?  If this particular path
is at its max rate and the queue is full then a packet will be sent to
that interface but ultimately dropped.  VPN packets are UDP, so the
recovery would have to be in the VPN software.

It would seem if I'm understanding this correctly that even if I got
vlan to do what I thought I wanted it to do, it might not help anything.
Of course you might get around this by using TCP for vpn packets.

I'm a little uncertain of some things in the last couple paragraphs so
I'll probably just try it.  At any rate, one way for compression to
still be useful is to allow web pages to burst above the maximum
bandwidth by around 100KB.  This covers most of the cases where
compression is useful.  Anything low priority like ftp transfers must of
course be hard capped below the links capacity and set to a low
priority..


-- 
Robert Denier (denier@umr.edu)
PhD Electrical Engineering (May 2005)
University of Missouri-Rolla
http://www.finiteinfinity.com

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-05-12 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-09  4:37 [LARTC] vlan traffic shaping Robert Denier
2005-05-11 22:02 ` Andy Furniss
2005-05-12 15:52 ` Arkadiusz Binder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.