Welcome, Guest. Please login or register.

Author Topic: Ariadne slooooow  (Read 2546 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline patrik

Re: Ariadne slooooow
« on: January 06, 2005, 11:53:01 PM »
@orange:

Try to get hold of AmiTCP/Genesis instead of Miami as it is a much faster TCP/IP stack.

Also when measuring speed you should remove as much protocol overhead as possible. A good tool for that is ttcp which measures the speed when sending/recieving raw tcp/udp packets. This will show you what speed the combination of your computer, network card and TCP/IP stack can manage without the added protocol overhead of for example ftp or samba. In other words it will give you a good estimate of how fast a TCP/IP-application can communicate at be as best on your system.

Amiga version of ttcp
Windows version of ttcp
Sourcecode for ttcp

---- Quick guide for how to use ttcp ----

- I will use amigaip instead of your Amigas ip-address and pcip instead of your pcs ip-address.

- I assume that you have installed ttcp in your path and that the executable for it is named 'ttcp'.

- You shall run ttcp from a shell/cli/command-prompt on both the Amiga and pc.

- I will call the shell/cli/command-prompt on both the Amiga and pc shell.

- I assume that your pc is fast enough to not have a negative impact on the results. A Pentium with a PCI network card should be fast enough.

Below I will describe what to input in the shell and the order of it on the Amiga and pc.

To test the speed when sending tcp-packets from your Amiga to your pc:
1. PC: 'ttcp -s -r'
2. Amiga 'ttcp -s -t pcip'

To test the speed when sending tcp-packets from your pc to your Amiga:
1. Amiga: 'ttcp -s -r'
2. PC: 'ttcp -s -t amigaip'

To test the speed when sending udp-packets from your Amiga to your pc:
1. PC: 'ttcp -u -s -r'
2. Amiga 'ttcp -u -s -t pcip'

To test the speed when sending udp-packets from your pc to your Amiga:
How to make this test is only included for reference. It will most likely not work as the protocol used - udp just sends packets as fast as possible without checking if it was recieved correctly. This in combination with the Amiga not being able to recieve packets as fast as the computer in the other end is sending them which usually is linespeed (100MBit in your case?) makes this test fail. Usually the Amiga doesnt even understand the test is done because it havent recieved all the packets sent by the pc and the pc reports speeds of over 10MByte/Sec.
1. Amiga: 'ttcp -u -s -r'
2. PC: 'ttcp -u -s -t amigaip'


/Patrik
 

Offline patrik

Re: Ariadne slooooow
« Reply #1 on: January 13, 2005, 11:04:50 AM »
@orange:

Comments on your results:
Amiga -> PC, TCP:
This result way to low considering your machine specs. I noticed that you are using the Miami TCP/IP stack which is very slow compared to AmiTCP/Genesis, but still it seems unreasonably slow. I will include results from my Amiga with 060 and Ariadne using AmiTCP/Genesis.

PC -> Amiga, TCP:
Make sure you always start the ttcp on the recieving end first - in this case on the Amiga.

Amiga -> PC, UDP:
This looks just about right using the Ariadne Sana2 device. You just cant seem to send UDP-packets faster for some wierd reason. You will also see that I didn't get any better results in this test on my system using AmiTCP/Genesis either. The wierd thing is that I get about double the speed when sending TCP packets instead which doesn't make too much sense as TCP packets requires more cpu. Also if I repeat this test with an A2065 (similar card, the same network chipset) I get the expected results - better when sending UDP packets than TCP packets, so it seems like it is connected with the Ariadne Sana2 device.

PC -> Amiga, UDP:
Now I am repeating myself from the end of the last post quite some, but anyhow.. This result will just show how fast your pc can send packets to the buffers in your switch. This as when sending packets with the UDP protocol, they are just sent as fast as possible without checking if they were recieved correctly. This in combination with the Amiga not being able to recieve packets as fast as the computer in the other end is sending them which usually is linespeed (100MBit in your case?) makes this test fail. Usually the Amiga doesnt even understand the test is done because it havent recieved all the packets sent by the pc and the pc reports speeds of around 10MByte/Sec (if you have a 100Mbit switch).

My results:
Hardware:
A4000
Ariadne
CyberStormPPC 060@50MHz
Buster 11

Software:
AmiTCP Genesis 4.6
ariadne.device 1.50
Kickstart 3.1
Workbench 3.9

Amiga -> PC (TCP):
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 18.66 real seconds = 877.81 KB/sec +++
ttcp-t: 2048 I/O calls, msec/call = 9.33, calls/sec = 109.73
ttcp-t: 0:18real

PC -> Amiga (TCP):
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 18.06 real seconds = 907.34 KB/sec +++
ttcp-r: 4222 I/O calls, msec/call = 4.38, calls/sec = 233.81
ttcp-r: 0:18real

Amiga -> PC (UDP):
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001  udp  -> 192.168.0.1
ttcp-t: socket
ttcp-t: 16777216 bytes in 40.97 real seconds = 399.87 KB/sec +++
ttcp-t: 3077 I/O calls, msec/call = 13.64, calls/sec = 75.10
ttcp-t: 0:40real


/Patrik
 

Offline patrik

Re: Ariadne slooooow
« Reply #2 on: January 13, 2005, 04:17:02 PM »
@orange:

Great news! :) Very reasonable too as firewalling adds a lot of overhead.

If you want even more speed - get hold of AmiTCP/Genesis.


/Patrik