tests.txt

Note: The timeouts, data size, and max kbps are assignable in config.h.

===============================================================================
Test Case 1 (localhost Ubuntu default/fast options)

       RELRECV_TIMEOUT        1000 (ms)
       RELSEND_TIMEOUT        5000 (ms)
       RELSEND_DATASIZE       5000 (bytes)
       UDP_MAX_KBPS         100000 (kbps)

-------------------------------------------------------------------------------

$ uname -a
Linux ubuntu 2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC 2009 i686 GNU/Linux

$ ./relrecv 10000
Transferring file 'rtest.jpg' (2259732 bytes).
All packets transmitted; waiting for DONE message.
Transfer complete: 'rtest.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      915
  Speed      (kbps):    19757
  Retries    (packets): 0 (0%)
--------------------------------------------------
:

$ ./relsend test.jpg localhost 10000
Transfer complete: 'test.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      916
  Speed      (kbps):    19735
  Retries    (packets): 0 (0%)
--------------------------------------------------
$

===============================================================================
Test Case 2 (localhost Ubuntu slow options)

       RELRECV_TIMEOUT        1000 (ms)
       RELSEND_TIMEOUT        5000 (ms)
       RELSEND_DATASIZE        500 (bytes)
       UDP_MAX_KBPS          10000 (kbps)

-------------------------------------------------------------------------------

$ ./relrecv 10000
Transferring file 'rtest.jpg' (2259732 bytes).
Transfer complete: 'rtest.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      9206
  Speed      (kbps):    1963
  Retries    (packets): 0 (0%)
--------------------------------------------------
:

$ ./relsend test.jpg localhost 10000
All packets transmitted; waiting for DONE message.
Transfer complete: 'test.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      9204
  Speed      (kbps):    1964
  Retries    (packets): 0 (0%)
--------------------------------------------------
$

===============================================================================
Test Case 3 (WiFi on LAN default/fast options)

       RELRECV_TIMEOUT        1000 (ms)
       RELSEND_TIMEOUT        5000 (ms)
       RELSEND_DATASIZE       5000 (bytes)
       UDP_MAX_KBPS         100000 (kbps)

-------------------------------------------------------------------------------

$ ./relrecv 10000
Transferring file 'rtest.jpg' (2259732 bytes).
All packets transmitted; waiting for DONE message.
Transfer complete: 'rtest.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      9281
  Speed      (kbps):    1947
  Retries    (packets): 0 (0%)
--------------------------------------------------
:

$ ./relsend test.jpg 192.168.1.104 10000
All packets transmitted; waiting for DONE message.
Transfer complete: 'test.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      9291
  Speed      (kbps):    1945
  Retries    (packets): 0 (0%)
--------------------------------------------------
$

===============================================================================
Test Case 4 (localhost uhunix default/fast options)

       RELRECV_TIMEOUT        1000 (ms)
       RELSEND_TIMEOUT        5000 (ms)
       RELSEND_DATASIZE       5000 (bytes)
       UDP_MAX_KBPS         100000 (kbps)

-------------------------------------------------------------------------------

$ uname -a
SunOS uhunix2 5.8 Generic_117350-53 sun4u sparc SUNW,Ultra-Enterprise

$ ./relrecv 10000
bash-2.03$ /home/26/yucheng/ics451/jade-p3-beta-3/relrecv 10000
Transferring file 'rtest.jpg' (2259732 bytes).
DATA skipped; sending RETRY message.
Sending RETRY message for packets 12 to 12.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 19 to 19.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 24 to 24.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 28 to 28.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 34 to 34.
:
DATA skipped; sending RETRY message.
Sending RETRY message for packets 444 to 444.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 449 to 449.
Timeout occurred; sending RETRY messages.
Sending RETRY message for packets 67 to 67.
Sending RETRY message for packets 77 to 77.
Sending RETRY message for packets 102 to 102.
Sending RETRY message for packets 213 to 213.
Sending RETRY message for packets 347 to 347.
Transfer complete: 'rtest.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      1767
  Speed      (kbps):    10230
  Retries    (packets): 82 (18%)
--------------------------------------------------

$ ./relsend test.jpg localhost 10000
Receiving RETRY message for packets 12 to 12.
Receiving RETRY message for packets 19 to 19.
Receiving RETRY message for packets 24 to 24.
Receiving RETRY message for packets 28 to 28.
Receiving RETRY message for packets 34 to 34.
:
Receiving RETRY message for packets 444 to 444.
All packets transmitted; waiting for DONE message.
Receiving RETRY message for packets 449 to 449.
Receiving RETRY message for packets 67 to 67.
Receiving RETRY message for packets 77 to 77.
Receiving RETRY message for packets 102 to 102.
Receiving RETRY message for packets 213 to 213.
Receiving RETRY message for packets 347 to 347.
Transfer complete: 'test.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      1768
  Speed      (kbps):    10225
  Retries    (packets): 82 (18%)
--------------------------------------------------

===============================================================================
Test Case 5 (localhost uhunix slow options)

       RELRECV_TIMEOUT        1000 (ms)
       RELSEND_TIMEOUT        5000 (ms)
       RELSEND_DATASIZE        500 (bytes)
       UDP_MAX_KBPS          10000 (kbps)

-------------------------------------------------------------------------------

$ ./relrecv 10000
Transferring file 'rtest.jpg' (2259732 bytes).
Transfer complete: 'rtest.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      22786
  Speed      (kbps):    793
  Retries    (packets): 0 (0%)
--------------------------------------------------

$ ./relsend test.jpg localhost 10000
All packets transmitted; waiting for DONE message.
Transfer complete: 'test.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      22787
  Speed      (kbps):    793
  Retries    (packets): 0 (0%)
--------------------------------------------------

===============================================================================
Test Case 6 (ubuntu to uhunix slow options)

       RELRECV_TIMEOUT        1000 (ms)
       RELSEND_TIMEOUT        5000 (ms)
       RELSEND_DATASIZE        500 (bytes)
       UDP_MAX_KBPS           1000 (kbps)

-------------------------------------------------------------------------------

$ ./relrecv 10000
Transferring file 'rtest.jpg' (2259732 bytes).
DATA skipped; sending RETRY message.
Sending RETRY message for packets 859 to 859.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 871 to 871.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 883 to 883.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 905 to 905.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 909 to 909.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 921 to 921.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 931 to 931.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 949 to 949.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 954 to 954.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 960 to 960.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 974 to 974.
DATA skipped; sending RETRY message.
Sending RETRY message for packets 994 to 994.
:
DATA skipped; sending RETRY message.
Sending RETRY message for packets 4411 to 4411.
Timeout occurred; sending RETRY messages.
Sending RETRY message for packets 883 to 883.
Sending RETRY message for packets 931 to 931.
Sending RETRY message for packets 960 to 960.
Sending RETRY message for packets 1073 to 1073.
Sending RETRY message for packets 1127 to 1127.
Sending RETRY message for packets 1155 to 1155.
Sending RETRY message for packets 1566 to 1566.
Sending RETRY message for packets 1877 to 1877.
Sending RETRY message for packets 1953 to 1953.
Sending RETRY message for packets 4519 to 4519.
Transfer complete: 'rtest.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      21307
  Speed      (kbps):    848
  Retries    (packets): 102 (2%)
--------------------------------------------------

$ ./relsend test.jpg uhunix.its.hawaii.edu 10000
Receiving RETRY message for packets 859 to 859.
Receiving RETRY message for packets 871 to 871.
Receiving RETRY message for packets 883 to 883.
Receiving RETRY message for packets 905 to 905.
Receiving RETRY message for packets 909 to 909.
Receiving RETRY message for packets 921 to 921.
Receiving RETRY message for packets 931 to 931.
Receiving RETRY message for packets 949 to 949.
Receiving RETRY message for packets 954 to 954.
Receiving RETRY message for packets 960 to 960.
Receiving RETRY message for packets 974 to 974.
Receiving RETRY message for packets 994 to 994.
:
Receiving RETRY message for packets 4288 to 4288.
All packets transmitted; waiting for DONE message.
Receiving RETRY message for packets 4411 to 4411.
Receiving RETRY message for packets 883 to 883.
Receiving RETRY message for packets 931 to 931.
Receiving RETRY message for packets 960 to 960.
Receiving RETRY message for packets 1073 to 1073.
Receiving RETRY message for packets 1127 to 1127.
Receiving RETRY message for packets 1155 to 1155.
Receiving RETRY message for packets 1566 to 1566.
Receiving RETRY message for packets 1877 to 1877.
Receiving RETRY message for packets 1953 to 1953.
Receiving RETRY message for packets 4519 to 4519.
Transfer complete: 'test.jpg'.

STATISTICS
--------------------------------------------------
  File size  (bytes):   2259732
  Total time (ms):      21319
  Speed      (kbps):    847
  Retries    (packets): 102 (2%)
--------------------------------------------------
Valid HTML 4.01 Valid CSS