@fx:
Couldnt keep myself from trying this out on my A1200.
I have done a comparision between the prism2.device and cnet.device. The cards used were the same Lucent Technologies Wireless card as fx used and the famous CNet CN40BC 10MBit ethernet card. The computer used was an A1200 with a Blizzard1260 accelerator running OS3.1/WB3.1 and AmiTCP 4.3.
I did two different tests, first I measured the raw tcp and udp performance with ttcp and then I did a more realistic test to reflect the performance you can get "in real life" by measuring the speed of a remote samba share mounted with smbfs by using DiskSpeed 4.2.
-------- ttcp test with prism2.device --------
Amiga->PC(TCP):
8.SYSTEM3.1:> ttcp -s -t 192.168.0.1
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 192.168.0.1
ttcp-t: socket
ttcp-t: connect
ttcp-t: 16777216 bytes in 28.15 real seconds = 582.07 KB/sec +++
ttcp-t: 2048 I/O calls, msec/call = 14.07, calls/sec = 72.76
ttcp-t: 0:28real
Amiga->PC(UDP):
8.SYSTEM3.1:> ttcp -u -s -t 192.168.0.1
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 udp -> 192.168.0.1
ttcp-t: socket
ttcp-t: 16777216 bytes in 26.81 real seconds = 611.07 KB/sec +++
ttcp-t: 2637 I/O calls, msec/call = 10.41, calls/sec = 98.35
ttcp-t: 0:26real
PC->Amiga(TCP):
8.SYSTEM3.1:> ttcp -s -r
ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp
ttcp-r: socket
ttcp-r: accept from 192.168.0.1
ttcp-r: 16777216 bytes in 25.37 real seconds = 645.71 KB/sec +++
ttcp-r: 10372 I/O calls, msec/call = 2.51, calls/sec = 408.77
ttcp-r: 0:25real
Notes:
The PC->Amiga(UDP) ttcp test cant be completeted as there is no delivery guarantee with the UDP-protocol and the PC will spew out all the packages at a higher rate than the Amiga can cope with.
-------- ttcp test with cnet.device --------
Amiga->PC(TCP):
8.SYSTEM3.1:> ttcp -s -t 192.168.0.1
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 192.168.0.1
ttcp-t: socket
ttcp-t: connect
ttcp-t: 16777216 bytes in 24.21 real seconds = 676.79 KB/sec +++
ttcp-t: 2048 I/O calls, msec/call = 12.10, calls/sec = 84.60
ttcp-t: 0:24real
Amiga->PC(UDP):
8.SYSTEM3.1:> ttcp -u -s -t 192.168.0.1
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 udp -> 192.168.0.1
ttcp-t: socket
ttcp-t: 16777216 bytes in 29.55 real seconds = 554.46 KB/sec +++
ttcp-t: 3039 I/O calls, msec/call = 9.96, calls/sec = 102.84
ttcp-t: 0:29real
PC->Amiga(UDP):
8.SYSTEM3.1:> ttcp -s -r
ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp
ttcp-r: socket
ttcp-r: accept from 192.168.0.1
ttcp-r: 16777216 bytes in 17.63 real seconds = 929.47 KB/sec +++
ttcp-r: 6653 I/O calls, msec/call = 2.71, calls/sec = 377.43
ttcp-r: 0:17real
Notes:
Regarding the missing PC->Amiga(UDP) ttcp test, see the above note. The cnet.device gives a very wierd result in the Amiga->PC(UDP) test, the result should be higher than the Amiga->PC(TCP) test, not lower. I think the cnet.device is capable of maxing out the 10MBit line in the PC->Amiga(UDP) test with this hardware/software configuration, but the reason for not quite getting there is probably the fact that it generates quite frequent collisions.
------ DiskSpeed test of smbfs with prism2.device ------
MKSoft DiskSpeed 4.2 Copyright © 1989-92 MKSoft Development
------------------------------------------------------------
CPU: 68040 AmigaOS Version: 40.68 Normal Video DMA
Device: SMBFS0: Buffers: 170
Comments: smbfs with prism2.device
CPU Calibration shows that CPU availability tests
would be inaccurate in the current system state.
No CPU Speed Rating -- CPU % not available.
Testing directory manipulation speed.
File Create: 18 files/sec
File Open: 262 files/sec
Directory Scan: 582 files/sec
File Delete: 78 files/sec
Seek/Read: 145 seeks/sec
Testing with a 512 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 120865 bytes/sec
Write to file: 118419 bytes/sec
Read from file: 133389 bytes/sec
Testing with a 4096 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 72477 bytes/sec
Write to file: 77407 bytes/sec
Read from file: 432719 bytes/sec
Testing with a 32768 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 260128 bytes/sec
Write to file: 302650 bytes/sec
Read from file: 610583 bytes/sec
Testing with a 262144 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 323994 bytes/sec
Write to file: 343283 bytes/sec
Read from file: 609637 bytes/sec
------ DiskSpeed test of smbfs with cnet.device ------
MKSoft DiskSpeed 4.2 Copyright © 1989-92 MKSoft Development
------------------------------------------------------------
CPU: 68040 AmigaOS Version: 40.68 Normal Video DMA
Device: SMBFS0: Buffers: 170
Comments: smbfs with cnet.device
CPU Calibration shows that CPU availability tests
would be inaccurate in the current system state.
No CPU Speed Rating -- CPU % not available.
Testing directory manipulation speed.
File Create: 21 files/sec
File Open: 452 files/sec
Directory Scan: 666 files/sec
File Delete: 278 files/sec
Seek/Read: 312 seeks/sec
Testing with a 512 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 199886 bytes/sec
Write to file: 224263 bytes/sec
Read from file: 236706 bytes/sec
Testing with a 4096 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 81367 bytes/sec
Write to file: 84685 bytes/sec
Read from file: 664064 bytes/sec
Testing with a 32768 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 295462 bytes/sec
Write to file: 349981 bytes/sec
Read from file: 908176 bytes/sec
Testing with a 262144 byte, MEMF_FAST, LONG-aligned buffer.
Create file: 430753 bytes/sec
Write to file: 545464 bytes/sec
Read from file: 927094 bytes/sec
I would say that the prism2.device gives quite good performance, especially if you consider the facts that its a beta driver and wireless networks in real life never comes close to reaching the raw maximum bandwidth set in the specification. In this case the maximum raw bandwidth would be 11MBit/sec.
/Patrik