From: Mike Lovell <mike@dev-zero.net>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)
Date: Wed, 28 Nov 2012 00:14:05 -0700 [thread overview]
Message-ID: <50B5B9BD.6070301@dev-zero.net> (raw)
In-Reply-To: <CAJSP0QVR0t0YDCx7S_VauEKSW=DEw0iVjoiYj3zrHcyAVXL-3Q@mail.gmail.com>
On 11/27/2012 05:42 AM, Stefan Hajnoczi wrote:
> On Mon, Nov 26, 2012 at 6:19 PM, Mike Lovell <mike@dev-zero.net> wrote:
>> i think it does still make sense to implement it in QEMU. there isn't a
>> problem with multiple processes using the same multicast address. the
>> net_socket_mcast_create function in socket.c already sets the
>> IP_MULTICAST_LOOP option which makes it so packets get looped back and also
>> delivered to processes on the same host. that is why there is a check in
>> qdes_receive to see if the sender is the localAddr and drop it if it is. the
>> big advantage i see to implementing VXLAN inside QEMU is that it can be done
>> without any escalated privileges and without reconfiguring the hosts network
>> configuration.
> The part I'm wondering about with VXLAN multicast is whether all QEMU
> processes on the host need to receive on the same well-known UDP port.
> Not sure if that's possible with the sockets API.
>
> Stefan
ah. yes. all qemu processes using the same well-known UDP port would
receive all multicast packets. the individual processes would then be
responsible for checking to make sure the received packets are for the
same VNI (VXLAN Network Identifier) that the individual process is
configured to use. this would result in some additional processing for
every process. it should just be a single int comparison on every packet
and an increase of packets for broadcast and multicast packets for all
VNIs on the port.
also, the code currently allows for using user defined ports and
different udp ports could be used for each network. i don't know if
other implementations would allow for specifying a different port though.
mike
prev parent reply other threads:[~2012-11-28 7:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1340602924-3231-1-git-send-email-mike@dev-zero.net>
2012-11-24 15:21 ` [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES) Stefan Hajnoczi
2012-11-26 17:19 ` Mike Lovell
2012-11-27 12:42 ` Stefan Hajnoczi
2012-11-27 14:24 ` Anthony Liguori
2012-11-28 7:37 ` Mike Lovell
2012-11-28 7:14 ` Mike Lovell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B5B9BD.6070301@dev-zero.net \
--to=mike@dev-zero.net \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).