As I may have mentioned in a previous post, I've been working on a file transfer program written in Java. I was getting very sick of MSN file transfer and other stupid such mechanisms that are unreliable and do not allow transfer of executable files.
I was testing v1.0 of my program over the LAN with a hefty-sized file, and found that the transfer speed was only about 10 kB/s. Frustrated, I did a little research on Maximum Transmission Unit (MTU) size.
The byte buffer size I was using was 1024 bytes at a time. Apparently most LANs MTU value is 1500. I changed the byte buffer size to 1500 and some other small things, and the transfer speed jumped to around 1 MB/s. This was between two computers connected to the same router, and I have yet to test it over the internet.
Tuesday, December 16, 2008
Subscribe to:
Post Comments (Atom)





1 comments:
you have a nice site. thanks for sharing this site. there are various kinds of ebooks are available here
http://feboook.blogspot.com
Post a Comment