Re: Network speed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Justin Rogers (Justin_at_games4dotnet.com)
Date: 02/18/04


Date: Wed, 18 Feb 2004 00:23:07 -0800

They find the numbers through inspection of an actual transfer. Time how much
data you receive over time and average
this out to get a per second metric. The bytes per pass metric you are speaking
of really doesn't matter. If you are doing
a resume feature you simply need to allocate a blank file of the end size, and
then mark in the file the location where the
transfer was stopped so you can later seek and resume from there.

This isn't an easy application to write. You'll need to do some reading and
break down some of your misconceptions. For
instance, I can achieve the same speed by writing 10 10k buffers to the network
stream as I can for writing 1 100k buffer.
You see having your buffer the same size as the connection speed isn't how you
saturate a connection. You simply write
buffers as quickly as you can and the size of them really doesn't matter (okay,
size will matter at some point and you'll need
to tune your application to find the optimum buffer size, if you search on the
web, some people have already done this for
you and you can use their numbers).

-- 
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers
"Abubakar" <emailallrise@yahoo.com> wrote in message
news:uI3iqWe9DHA.440@TK2MSFTNGP10.phx.gbl...
> Hi,
> I have a small sockets application and I'm adding a feature in it to
> transfer files. Since I also want to give it a transfer resume feature so
> this means I'll be transfering in specific bytes per pass. I want to know
> the local LAN or, if or internet, internet connection speed like 5k/s or
> 50k/s (as we see in the downloads of IE) so that I can pass that amount of
> data in write method of networkstream object. So how do I get the speed
> figure?
>
>


Relevant Pages

  • Re: SCSI breakage on non-cache coherent architectures
    ... Is an entire arch change for dma alignment really a merge ... pre-allocated buffer (USB storage I think can pass NULL as it's not ... calling prep in atomic context). ... But then, it complicates the matter ...
    (Linux-Kernel)
  • simple s function question
    ... inputs element by element but I want to use memcopy to copy all of the data ... 3- How can I calculate the buffer size? ... Any sample on this matter. ...
    (comp.soft-sys.matlab)
  • Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register()
    ... According to the VIA PadLock Programming Guide, XSTORE increments EDI by ... This did obviously not matter as long as the buffer was "sufficiently ... So your compiler was producing incorrect output. ...
    (Linux-Kernel)
  • Re: NFS Character Issues on Suse 9.1
    ... A buffer is a thing measured in bytes, ... unicode, ... It's still slower for western alphabets, ... and one "feature" version that contains the newest software. ...
    (alt.os.linux.suse)
  • Re: lisp introspection/reflection question
    ... to provide the mental equivalent of 'buffer overflows'. ... It is  good that an API be defined for when the feature is present, ... It is the case that some implementations offer more than the standard, ...
    (comp.lang.lisp)