* [Qemu-devel] idea: non-ethernet paravirtual network device
@ 2011-07-25 15:53 Sassan Panahinejad
2011-07-26 6:04 ` Stefan Hajnoczi
0 siblings, 1 reply; 4+ messages in thread
From: Sassan Panahinejad @ 2011-07-25 15:53 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
Hi all,
Here's a thought, could we improve network performance by creating a
paravirtual network device which doesn't emulate ethernet? It shouldn't be
too hard to just whack IP packets pretty much directly over a virtio link.
This should improve performance when using a "user" host connection and we
could introduce a tun host connection instead of tap for this setup.
Does anyone have any thoughts on how worthwhile this would be? Would the
performance improvement justify the effort involved?
Thanks
Sassan
[-- Attachment #2: Type: text/html, Size: 569 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] idea: non-ethernet paravirtual network device
2011-07-25 15:53 [Qemu-devel] idea: non-ethernet paravirtual network device Sassan Panahinejad
@ 2011-07-26 6:04 ` Stefan Hajnoczi
2011-07-26 10:23 ` Hannes Reinecke
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2011-07-26 6:04 UTC (permalink / raw)
To: Sassan Panahinejad; +Cc: qemu-devel
On Mon, Jul 25, 2011 at 4:53 PM, Sassan Panahinejad <sassan@sassan.me.uk> wrote:
> Here's a thought, could we improve network performance by creating a
> paravirtual network device which doesn't emulate ethernet? It shouldn't be
> too hard to just whack IP packets pretty much directly over a virtio link.
> This should improve performance when using a "user" host connection and we
> could introduce a tun host connection instead of tap for this setup.
>
> Does anyone have any thoughts on how worthwhile this would be? Would the
> performance improvement justify the effort involved?
My guess is no noticable impact (if you ignore ARP requests).
The Ethernet header is only 14 bytes or so. We don't calculate any
checksums at that level. There's probably not much of a win.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] idea: non-ethernet paravirtual network device
2011-07-26 6:04 ` Stefan Hajnoczi
@ 2011-07-26 10:23 ` Hannes Reinecke
2011-07-26 14:20 ` Sassan Panahinejad
0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2011-07-26 10:23 UTC (permalink / raw)
To: qemu-devel
On 07/26/2011 08:04 AM, Stefan Hajnoczi wrote:
> On Mon, Jul 25, 2011 at 4:53 PM, Sassan Panahinejad<sassan@sassan.me.uk> wrote:
>> Here's a thought, could we improve network performance by creating a
>> paravirtual network device which doesn't emulate ethernet? It shouldn't be
>> too hard to just whack IP packets pretty much directly over a virtio link.
>> This should improve performance when using a "user" host connection and we
>> could introduce a tun host connection instead of tap for this setup.
>>
>> Does anyone have any thoughts on how worthwhile this would be? Would the
>> performance improvement justify the effort involved?
>
> My guess is no noticable impact (if you ignore ARP requests).
>
> The Ethernet header is only 14 bytes or so. We don't calculate any
> checksums at that level. There's probably not much of a win.
>
Only lots of pain to be had.
Mainframe used to do this. But abandoned it not, thankfully.
Problem is that you need to patch each and every tool looking at the
packets to _not_ expecting an Ethernet header.
And patching up DHCP is _not_ trivial.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] idea: non-ethernet paravirtual network device
2011-07-26 10:23 ` Hannes Reinecke
@ 2011-07-26 14:20 ` Sassan Panahinejad
0 siblings, 0 replies; 4+ messages in thread
From: Sassan Panahinejad @ 2011-07-26 14:20 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1626 bytes --]
Ok, thanks guys. I don't think I'll proceed with this idea.
Thanks
Sassan
On 26 July 2011 11:23, Hannes Reinecke <hare@suse.de> wrote:
> On 07/26/2011 08:04 AM, Stefan Hajnoczi wrote:
>
>> On Mon, Jul 25, 2011 at 4:53 PM, Sassan Panahinejad<sassan@sassan.me.**uk<sassan@sassan.me.uk>>
>> wrote:
>>
>>> Here's a thought, could we improve network performance by creating a
>>> paravirtual network device which doesn't emulate ethernet? It shouldn't
>>> be
>>> too hard to just whack IP packets pretty much directly over a virtio
>>> link.
>>> This should improve performance when using a "user" host connection and
>>> we
>>> could introduce a tun host connection instead of tap for this setup.
>>>
>>> Does anyone have any thoughts on how worthwhile this would be? Would the
>>> performance improvement justify the effort involved?
>>>
>>
>> My guess is no noticable impact (if you ignore ARP requests).
>>
>> The Ethernet header is only 14 bytes or so. We don't calculate any
>> checksums at that level. There's probably not much of a win.
>>
>> Only lots of pain to be had.
> Mainframe used to do this. But abandoned it not, thankfully.
>
> Problem is that you need to patch each and every tool looking at the
> packets to _not_ expecting an Ethernet header.
> And patching up DHCP is _not_ trivial.
>
> Cheers,
>
> Hannes
> --
> Dr. Hannes Reinecke zSeries & Storage
> hare@suse.de +49 911 74053 688
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
> GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
>
>
[-- Attachment #2: Type: text/html, Size: 2393 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-26 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-25 15:53 [Qemu-devel] idea: non-ethernet paravirtual network device Sassan Panahinejad
2011-07-26 6:04 ` Stefan Hajnoczi
2011-07-26 10:23 ` Hannes Reinecke
2011-07-26 14:20 ` Sassan Panahinejad
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).