Originariamente inviato da prometeus
per testare le performance della rete usa il software iperf (è multipiattaforma).
Simpatico!

codice:
Client: Windows | Server: Linux

C:\Documents and Settings\gionnico\Desktop\iperf>iperf.exe -c 192.168.0.3
------------------------------------------------------------
Client connecting to 192.168.0.3, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1916] local 192.168.0.2 port 1102 connected with 192.168.0.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[1916]  0.0-10.0 sec   113 MBytes  94.5 Mbits/sec

C:\Documents and Settings\gionnico\Desktop\iperf>iperf.exe -c 192.168.0.3 -d
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 192.168.0.3, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1880] local 192.168.0.2 port 1110 connected with 192.168.0.3 port 5001
[1848] local 192.168.0.2 port 5001 connected with 192.168.0.3 port 3157
[ ID] Interval       Transfer     Bandwidth
[1880]  0.0-10.0 sec  89.8 MBytes  75.2 Mbits/sec
[1848]  0.0-10.0 sec  46.5 MBytes  38.9 Mbits/sec

C:\Documents and Settings\gionnico\Desktop\iperf>iperf.exe -c 192.168.0.3 -u
------------------------------------------------------------
Client connecting to 192.168.0.3, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
[1916] local 192.168.0.2 port 1111 connected with 192.168.0.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[1916]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
[1916] Server Report:
[1916]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec  0.231 ms    0/  893 (0%)
[1916] Sent 893 datagrams

C:\Documents and Settings\gionnico\Desktop\iperf>iperf.exe -c 192.168.0.3 -u -d
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 192.168.0.3, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
[1880] local 192.168.0.2 port 1112 connected with 192.168.0.3 port 5001
[1916] local 192.168.0.2 port 5001 connected with 192.168.0.3 port 1037
[ ID] Interval       Transfer     Bandwidth
[1880]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
[1880] Server Report:
[1880]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec  0.162 ms    0/  893 (0%)
[1880] Sent 893 datagrams
[1916]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec  8.530 ms    2/  893 (0.22%)
codice:
Client: Linux | Server: Windows

C:\Documents and Settings\gionnico\Desktop\iperf>iperf.exe -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1884] local 192.168.0.2 port 5001 connected with 192.168.0.3 port 4823
[ ID] Interval       Transfer     Bandwidth
[1884]  0.0-10.0 sec   106 MBytes  88.9 Mbits/sec
[1872] local 192.168.0.2 port 5001 connected with 192.168.0.3 port 4825
------------------------------------------------------------
Client connecting to 192.168.0.3, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1828] local 192.168.0.2 port 1113 connected with 192.168.0.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[1872]  0.0-10.0 sec  46.5 MBytes  39.0 Mbits/sec
[1828]  0.0-10.0 sec  88.6 MBytes  74.2 Mbits/sec

C:\Documents and Settings\gionnico\Desktop\iperf>iperf.exe -s -u
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
[1932] local 192.168.0.2 port 5001 connected with 192.168.0.3 port 1037
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[1932]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec  6.112 ms    0/  893 (0%)
[1932] local 192.168.0.2 port 5001 connected with 192.168.0.3 port 1037
------------------------------------------------------------
Client connecting to 192.168.0.3, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 8.00 KByte (default)
------------------------------------------------------------
[1856] local 192.168.0.2 port 1114 connected with 192.168.0.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[1856]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
[1856] Server Report:
[1856]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec  0.221 ms    0/  893 (0%)
[1856] Sent 893 datagrams
[1932]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec  8.348 ms    0/  893 (0%)
Sum
I dati server-client e client-server sono abbastanza simili.
(94.5Mbit/s con server linux , 88.9Mbit/S con server windows - perché questa differenza? - forse problemi in DOWNLOAD da WINDOWS?)

TCP:
Velocità di 90 Mbit/s ca in singolo
40-75 Mbit/s per il duplex (qualcosa non và?)

UDP:
Velocità di 1.05 Mbit/s ca in singolo
Velocità di 1.05 Mbit/s ca in duplex

L'UDP è normale che sia così lenta?


PS: Con client qui si intende quello che invia e con server quello che riceve (a parte flag -d)?