On Sun, Feb 15, 2004 at 06:05:51PM +0100, Peter Graf wrote:
> 
> Hi,
> 
> is somebody out there who owns two networked PCs, one with a 10 Mbit/sec 
> ISA NE2000 (or clone) card, and could do a speed test using this PC as HTTP 
> server?
> 
> With the Q60/QLwIP as server I currently get average 854 kBytes/sec HTTP 
> throughput, measured with Ethereal, transferring a file larger than 10MB. 
> It would be interesting how far from the optimal value this is still away.
> 

if it is really reading all 10 MB of data from disk than thats very
fast, the disk access wont allow for much faster operation.
Otherwise pure networking speed over TCP gets very close to the theoretical
1.25 MB/s between 2 Linux computers

Measuring with Ethereal is an overkill, better measure is

ifconfig eth0; wget ....; ifconfig eth0

... returns raw and usable speed. I get this, 172.16.0.2 is the
Q60 running Linux:


ifconfig eth0; wget -O /dev/null http://172.16.0.2/file.xxx; ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:E0:7D:84:3B:FB  
          inet addr:172.16.0.1  Bcast:172.16.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8278 errors:0 dropped:51 overruns:0 frame:8
          TX packets:4756 errors:4 dropped:0 overruns:0 carrier:8
          collisions:68 txqueuelen:1000 
          RX bytes:11069431 (10.5 Mb)  TX bytes:398565 (389.2 Kb)
          Interrupt:12 Base address:0x2000 

--18:22:46--  http://172.16.0.2/file.xxx
           => `/dev/null'
Connecting to 172.16.0.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,485,760 [text/plain]

100%[====================================>] 10,485,760   982.07K/s    ETA 00:00

18:22:56 (982.07 KB/s) - `/dev/null' saved [10485760/10485760]

eth0      Link encap:Ethernet  HWaddr 00:E0:7D:84:3B:FB  
          inet addr:172.16.0.1  Bcast:172.16.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15841 errors:0 dropped:51 overruns:0 frame:8
          TX packets:8563 errors:4 dropped:0 overruns:0 carrier:8
          collisions:68 txqueuelen:1000 
          RX bytes:22054706 (21.0 Mb)  TX bytes:649940 (634.7 Kb)
          Interrupt:12 Base address:0x2000 

So raw and usable speed are about 5% appart including HTTP overhead,
982 KB/s and 1028KB/s.

Note that the timing may depend on the binary pattern of the file,
eg a file consisting of all 0 should theoretically need considerably
more time than a file with random patterns

Richard

Reply via email to