Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridging vs. VIF plugging for VM networking #13

Open
ykzeng opened this issue Jun 10, 2018 · 0 comments
Open

Bridging vs. VIF plugging for VM networking #13

ykzeng opened this issue Jun 10, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@ykzeng
Copy link
Owner

ykzeng commented Jun 10, 2018

Following the issue #12
We need to rethink VM networking paradigm in EmuEdge, the current VIF direct plug (to an OvS switch) is convenient but limited in several aspects:

  1. IP configuration, we cannot gain full control of VM ip address and currently rely on DHCP for ip assignment, with OvS it might be possible to assign fixed ip address to each VM so that the environment is more controlled and more easily to operate
  2. Bidirectional traffic shaping: VM-ingress (usually referred to as egress when considering the relative direction to vSwitch) traffic shaping can be done by simply controlling VIF through tc. However, VM-egress(vSwitch ingress) traffic rely on directing traffic to additional ifb and then we controll ifb egress instead to achieve the goal of bidirectional shaping.
  3. Performance issues: since we are using an additional ifb that means the path of ingress traffic became longer, which might lead to performance issues to measure.

Using a bridged networking method learnt from the common practice in bridging VMs to external network, might solve the IP configuration issue and bidirectional traffic shaping will be unified, as we can have the VM plugged into its exclusive bridge, then connecting the bridge to other networks through a pair of veth. However, performance might still be influenced, which is left for investigation in the future.

References:
Why Linux doesn't support ingress shaping
ServerFault: hack with ifb for ingress shaping
Bridged Networking of VMWare
How to connect VM network to Physical network interface?

@ykzeng ykzeng added the enhancement New feature or request label Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant