Results 1 to 7 of 7

Thread: File Transfer speed

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Location
    Norway
    Posts
    27

    File Transfer speed

    Hey all.
    I made a simple file transfer program in VB.NET that sends a file chunk by chunk over the network through sockets. It works fine, but it doesn't achieve speeds higher than 881 kB/sec, which is quite low over a LAN. Well, I think the hard drive should be able to write faster than that, and I write it in the usual way, using a FileStream to write. Well, other file transfer programs can send things a lot faster, and I was thinking of something like a buffer or something. But I figured the buffer would be filled a lot faster than the file writing, thus causing a lot of memory usage. I was wondering how I could achieve higher speeds?
    Last edited by Fuwex; Sep 30th, 2005 at 04:59 AM.
    Fuwex

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: File Transfer speed

    Does you probam manually split the file up into chunks? Are you using UDP?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Location
    Norway
    Posts
    27

    Re: File Transfer speed

    Yes, I manually split it up in chunks. And I'm using TCP.
    Fuwex

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: File Transfer speed

    How big is each chunk? - Are you running a 10mb LAN or 100mb? For Ethernet, the maximum frame size is usually 1500kb. If you have anything over this, then the data needs to be split up at lower levels too.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Location
    Norway
    Posts
    27

    Re: File Transfer speed

    I send chunks of 64 kb, but I think, as I'm using a TCP Stream, that it is divided into smaller chunks of 8 kb (I watched it in the Autos in VS.NET while debugging another problem). Anyway, I'm sending over a 100mbit LAN.
    Fuwex

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: File Transfer speed

    I have a feeling that splitting the file into larger chunks - approx 1Mb in size, you will see an improvement. Let me know if it works?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Location
    Norway
    Posts
    27

    Re: File Transfer speed

    I will, and I will also try it out between two better computers. (Just gonna do some touches on the GUI to include speed, as I started on a completely new GUI.)
    Fuwex

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width