[net.unix-wizards] fast internet file copy

dove@mit-bug.UUCP (Web Dove) (09/20/85)

We have two vax/750's running 4.2bsd on the same internet wire.  Both
have interlan NI1010 network interfaces.  What is the fastest way of
getting a 250,000 byte file from one to the other with this medium?

FTP rarely does better than 20kbytes/sec.  Is there a way (perhaps
using raw sockets or some other special xfer protocol) to get close to
the megabit per second speed of the wire?

jsq@im4u.UUCP (John Quarterman) (09/21/85)

Try using binary mode of ftp.  Or rcp.

If by "internet wire" you really mean an ethernet cable,
I've gotten 400Kbytes/sec between two unloaded 750s on
a 10Mbit/sec Ethernet cable with binary mode of ftp.
-- 
John Quarterman,   UUCP:  {ihnp4,seismo,harvard,gatech}!ut-sally!jsq
ARPA Internet and CSNET:  jsq@sally.UTEXAS.EDU, formerly jsq@ut-sally.ARPA

root@bu-cs.UUCP (Barry Shein) (09/22/85)

>From: dove@mit-bug.UUCP (Web Dove)
>
>We have two vax/750's running 4.2bsd on the same internet wire.  Both
>have interlan NI1010 network interfaces.  What is the fastest way of
>getting a 250,000 byte file from one to the other with this medium?
>
>FTP rarely does better than 20kbytes/sec.  Is there a way (perhaps
>using raw sockets or some other special xfer protocol) to get close to
>the megabit per second speed of the wire?

YES, and this is worth noting:

IF your two systems are the same hardware, software (even if they're not
you can try this) try setting FTP to 'type binary' (binary transfer.)
Default on 4.2 is 'text', which means things like newlines are getting
translated to CR-LF and back which means character processing which means
slowing you down. 20KB/s is a typical upper limit (well, average upper limit)
for 'text' transfers between two vaxen over an ethernet. You will see
dramatic speed-ups if you try binary. Try it once and verify that what
gets to other side is what you want (if it is any unix-unix it probably
is, but you need to check this.)

Also (I bet you get this answer a lot) rcp should be similar in speed to
ftp binary.

	-Barry Shein, Boston University