Page 1 of 1

QEMU network packet gradually becomes slow

Posted: Mon Jul 02, 2007 11:52 pm
by higepon
Hi folks.

I have a trouble with network.

Wrote NE2000 driver and ported uIP for my OS(Mona OS).
And tested.
Host(Ubuntu) <==TCP/IP==> Guest(Mona OS)

Host sends/receives packet like follow written in Ruby.
require "socket"
s = TCPSocket.open("localhost", 5555)

(1..10).each {|i|
s.write("Hello I'm packet #{i}")
print("sent packet #{i}")
print(s.gets)
}
s.close

It works, but packets is very slow.
Packet 9, 10 takes 5-10 sec for received.
I watch packets with Ethereal, a packet from Guest to Host seems to be much slower.
I think our driver is not good.
Do you have any ideas?

Environment
Qemu 0.9.0(on Ubuntu Edgy)
options: -net nic -net user -redir tcp:5555:10.0.2.15:5555 -redir udp:5555:10.0.2.15:5555

Our NE2000 driver code
NE2000.cpp : http://monaos.svn.sourceforge.net/viewv ... iew=markup
NE2000.h : http://monaos.svn.sourceforge.net/viewv ... iew=markup
NE2000Const.h: http://monaos.svn.sourceforge.net/viewv ... iew=markup

uIP application code.
http://monaos.svn.sourceforge.net/viewv ... iew=markup


higepon http://www.monaos.org