NEmu

Network Emulator for Mobile Universes

Documentation - Virtual Distributed Ethernet (VDE)

A VDE is a particular virtual Ethernet connector (hub or switch) which enables to inter-connect several virtual entities through a shared memory system. Several VDE links are actually available in NEmu:

VDEHub(name, niface)

A VDEHub is a virtual Ethernet hub device. name is the name of this virtual hub and niface is the number of ports of the hub.

VDESwitch(name, niface)

A VDESwitch is a virtual Ethernet switch device. name is the name of this virtual switch and niface is the number of ports of the switch.

The use of a VDE is similar to other VLink; here an example of use of NEmu configuration:

InitNemu()

VHost("alice", hds=[VFs('debian.img', type='cow')]
             , nics=[VNic(hw="0a:55:78:32:e5:7f")])
VHost("bob", hds=[VFs('debian.img', type='cow')],
             , nics=[VNic(hw="0a:55:78:32:e5:5a")])

VDESwitch("vde", niface=2)

Link('alice', 'vde:0')
Link('bob', 'vde:1')

Please notice that this kind of VLink cannot inter-connect virtual elements laying on different physical hosts. Also, it can never be placed as a client in the Link function.