All of lore.kernel.org
 help / color / mirror / Atom feed
* Compression support- zstd, &c
@ 2016-12-30  6:09 rektide
  2016-12-31  2:34 ` Jason A. Donenfeld
  0 siblings, 1 reply; 4+ messages in thread
From: rektide @ 2016-12-30  6:09 UTC (permalink / raw)
  To: wireguard

Greetings. Compression would be a great feature for WireGuard & it's roadmap. Perhaps the latest high compression & high throughput, very tuneable Zstd from Cyan4793? I think it'd make a fine complement to the other very nice modern technologies WireGuard has adopted.
http://facebook.github.io/zstd/

IPSec has a decent if not very modern history of compression with deflate, lzs, and lzjh support via IP Compression packets. That shows that there's some precedent for this feature. More recently OpenVPN has added LZ4 support.

Regards. Looking forward to this projects great future,
-rektide

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

* Re: Compression support- zstd, &c
  2016-12-30  6:09 Compression support- zstd, &c rektide
@ 2016-12-31  2:34 ` Jason A. Donenfeld
  2016-12-31 23:40   ` Jehan Tremback
  2017-01-03  9:11   ` Daniel Kahn Gillmor
  0 siblings, 2 replies; 4+ messages in thread
From: Jason A. Donenfeld @ 2016-12-31  2:34 UTC (permalink / raw)
  To: rektide; +Cc: WireGuard mailing list

Hi Rektide,

On Fri, Dec 30, 2016 at 7:09 AM, rektide <rektide@voodoowarez.com> wrote:
> Greetings. Compression would be a great feature for WireGuard & it's road=
map. Perhaps the latest high compression & high throughput, very tuneable Z=
std from Cyan4793? I think it'd make a fine complement to the other very ni=
ce modern technologies WireGuard has adopted.
> http://facebook.github.io/zstd/
>
> IPSec has a decent if not very modern history of compression with deflate=
, lzs, and lzjh support via IP Compression packets. That shows that there's=
 some precedent for this feature. More recently OpenVPN has added LZ4 suppo=
rt.
>
> I want to throw on a feature request- compression. It'd be great to get f=
ree compression across the tunnel. OpenVPN recently added LZ4 compression. =
I personally would love to see Zstd supported. Seeing compression added to =
your roadmap would be immensely satisfying for me,
> I'd point to the author of both LZ4 and Zstd- Cyan4973-'s post introducin=
g Zstd for more info the tradeoffs between these and others (Snappy, lzo, &=
c), which boil down to CPU usage and compression ratio,
> http://fastcompression.blogspot.com/2015/01/zstd-stronger-compression-alg=
orithm.html

That's an interesting idea. The first concern that immediately comes
to mind is data leakage and CRIME-like compression attacks. We'd have
to tread very carefully in order to do this right. Is there a
particular implementation strategy for this you have in mind?
Historically adding compression to crypto protocols has been quite
risky.

> This would make a huge difference for me while I am tethered to cellular.

Do you have any metrics on what kind of difference? I've never tried
out the effects of compression on cellular links. Is it immediately
noticeable in some obvious way?

Jason

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

* Re: Compression support- zstd, &c
  2016-12-31  2:34 ` Jason A. Donenfeld
@ 2016-12-31 23:40   ` Jehan Tremback
  2017-01-03  9:11   ` Daniel Kahn Gillmor
  1 sibling, 0 replies; 4+ messages in thread
From: Jehan Tremback @ 2016-12-31 23:40 UTC (permalink / raw)
  To: wireguard

What is the advantage of doing this in Wireguard as opposed to doing it
as a separate project?

-- 
  Jehan Tremback
  jehan@altheamesh.com

On Fri, Dec 30, 2016, at 06:34 PM, Jason A. Donenfeld wrote:
> Hi Rektide,
> 
> On Fri, Dec 30, 2016 at 7:09 AM, rektide <rektide@voodoowarez.com> wrote:
> > Greetings. Compression would be a great feature for WireGuard & it's roadmap. Perhaps the latest high compression & high throughput, very tuneable Zstd from Cyan4793? I think it'd make a fine complement to the other very nice modern technologies WireGuard has adopted.
> > http://facebook.github.io/zstd/
> >
> > IPSec has a decent if not very modern history of compression with deflate, lzs, and lzjh support via IP Compression packets. That shows that there's some precedent for this feature. More recently OpenVPN has added LZ4 support.
> >
> > I want to throw on a feature request- compression. It'd be great to get free compression across the tunnel. OpenVPN recently added LZ4 compression. I personally would love to see Zstd supported. Seeing compression added to your roadmap would be immensely satisfying for me,
> > I'd point to the author of both LZ4 and Zstd- Cyan4973-'s post introducing Zstd for more info the tradeoffs between these and others (Snappy, lzo, &c), which boil down to CPU usage and compression ratio,
> > http://fastcompression.blogspot.com/2015/01/zstd-stronger-compression-algorithm.html
> 
> That's an interesting idea. The first concern that immediately comes
> to mind is data leakage and CRIME-like compression attacks. We'd have
> to tread very carefully in order to do this right. Is there a
> particular implementation strategy for this you have in mind?
> Historically adding compression to crypto protocols has been quite
> risky.
> 
> > This would make a huge difference for me while I am tethered to cellular.
> 
> Do you have any metrics on what kind of difference? I've never tried
> out the effects of compression on cellular links. Is it immediately
> noticeable in some obvious way?
> 
> Jason
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

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

* Re: Compression support- zstd, &c
  2016-12-31  2:34 ` Jason A. Donenfeld
  2016-12-31 23:40   ` Jehan Tremback
@ 2017-01-03  9:11   ` Daniel Kahn Gillmor
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Kahn Gillmor @ 2017-01-03  9:11 UTC (permalink / raw)
  To: Jason A. Donenfeld, rektide; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

On Fri 2016-12-30 21:34:56 -0500, Jason A. Donenfeld wrote:
> That's an interesting idea. The first concern that immediately comes
> to mind is data leakage and CRIME-like compression attacks. We'd have
> to tread very carefully in order to do this right. Is there a
> particular implementation strategy for this you have in mind?
> Historically adding compression to crypto protocols has been quite
> risky.

This is my concern as well.  We've only recently managed to get
compression ripped out of TLS, and i'd really like to avoid it finding
its way back into other network security protocols.  The right place to
do compression is at the application layer, where it's at least possible
to distinguish between attacker-supplied traffic and user-sensitive
secrets.

Please do *not* add compressoin into wireguard itself!

       --dkg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2017-01-03 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-30  6:09 Compression support- zstd, &c rektide
2016-12-31  2:34 ` Jason A. Donenfeld
2016-12-31 23:40   ` Jehan Tremback
2017-01-03  9:11   ` Daniel Kahn Gillmor

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.