Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtual Network Cable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Fri Feb 15, 2013 2:01 pm    Post subject: Virtual Network Cable Reply with quote

Hi,

I'm trying to do some modelling of performance between two groups of virtual machines where the latency and bandwidth between the two sets is restricted. I have one group of VMs connected to br0 and second group connected to br1. What I would like is to connect these two bridges via a third bridge where I manipulate the bandwidth and latency. In order to do this I need to find some kind of interface pair with a virtual cable that I can put the receiving side in one bridge and have all the traffic pop out in a second. Does anyone know of any facility in Linux that can easily achieve this? In some ways what I want is like the xen netfront/netback but with both parts being in the dom0.

I can see the following possible solutions but they seem more complicated than I would like.

1. Using pairs of tun/tap interfaces with userspace code that just shuffles traffic between the two halves but I would like to avoid writing the code and having the overhead of pulling everything in and out of userspace.

2. Try an ip tunnel between two dummy interfaces, one in each bridge.
Back to top
View user's profile Send private message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Fri Feb 15, 2013 2:24 pm    Post subject: Reply with quote

I seem to have found the answer myself after some more digging. The veth kernel module along with "ip link add name ABC type veth peer DEF" looks as though it should be what I want.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum