Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

VXLAN instead of pcap #205

Closed
inercia opened this issue Nov 18, 2014 · 7 comments
Closed

VXLAN instead of pcap #205

inercia opened this issue Nov 18, 2014 · 7 comments

Comments

@inercia
Copy link
Contributor

inercia commented Nov 18, 2014

In addition to the currently used encapsulation format, Weave could support VXLAN encapsulation. Maybe this would help in some environments...

@rade
Copy link
Member

rade commented Nov 18, 2014

To clarify, is the objective here to gain performance by performing encapsulation - in this case vxlan - in the kernel? Or something else?

@inercia
Copy link
Contributor Author

inercia commented Nov 18, 2014

I think Weave could initialize a VXLAN device (if not given in command line), add dynamically the MAC addresses of all the peers in the distributed switch, then send/receive packets to/from this device... Otherwise, Weave could use VXLAN just as an encapsulation format, but I don't think this would really improve performance...

@rade
Copy link
Member

rade commented Nov 18, 2014

send/receive packets to/from this device

What's doing that? The containers, i.e. they are wired directly into vxlan? Or the weave router? In which case I don't see the point since we'd still end up doing packet capture/injection, which is where the performance bottleneck is.

@inercia
Copy link
Contributor Author

inercia commented Nov 18, 2014

You can connect containers directly to a VXLAN, or you could leave the capture/injection work to the Weave router. VXLAN is designed for environments with many, big VLANs where it could help by reducing the number of connections/traffic as it is based in multicast, so the performance gain depends on the scope of Weave...

@inercia
Copy link
Contributor Author

inercia commented Nov 18, 2014

BTW, Flannel's implementation could be used for getting some tips...

@rade
Copy link
Member

rade commented Nov 18, 2014

Well, we need to be clear what this issue is meant to address. It can't be both. I suspect the cost/benefit ratio of implementing peer connectivity over vxlan is too great; the use cases where this would yield a significant (i.e. order of magnitude) performance benefit - i.e. in very large deployments - will likely be a tiny fraction of our potential user base for a good while.

Using vxlan as an alternative to capture/injection, otoh, would deliver significant performance increases to a much greater spectrum of potential users. It's a vast amount of work though, more so since we want to make it play nicely, and ideally transparently, with current weave (so we can fall back to that when vxlan won't work).

BTW, Flannel's implementation could be used for getting some tips...

Yes, I've seen that.

@rade rade changed the title Support VXLAN encapsulation VXLAN instead of pcap Nov 20, 2014
@inercia
Copy link
Contributor Author

inercia commented Sep 30, 2015

I think this could be closed once #1438 (fast datapath) is merged, right?

@rade rade added this to the 1.2.0 milestone Oct 30, 2015
@rade rade closed this as completed Oct 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants