[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: About traffic...

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-02-24 19:49:36 CET

Fernando P. Nájera Cano wrote:

> Now that I see a post from Stephan about traffic, although unrelated
> to this post, I have a screenshot for you...
>
> Only TSVN was using the network (99.9% sure about this), and I used
> NetMeter (<http://readerror.gmxhome.de/>, a good free tool) to monitor
> traffic. Total counter was reseted just before doing the checking out.
> TortoiseSVN 1.3.1, Build 5521 - 32 Bit. Operation: Checkout.
>
> TSVN shows 76.65 Mb, NetMeter says 181.21+5.48 Mb, and Windows
> Explorer says 153 Mb (164 Mb in disk).
>
> Is this behaviour expected? It is certainly not a critical problem,
> but I just noticed it yesterday and thought it was worth to report.

First of all, *never* trust a netmeter program if you haven't written it
yourself :)
Seriously: most of these meter programs just use the Windows net
statistics API, which in itself is reliable but not really for single
connections. You see, that Windows network counters count *all* data
packets sent and received. And if you once check out the traffic (even
if you do absolutely nothing!) with a packet sniffer, you'll see that
Windows itself constantly sends packets for whatever reason (checking if
there are other computers in the same group, LAN, ...).
That's why I use my own little network meter, which *only* counts
network traffic that reaches the internet (packets going to or coming
from an IP outside the IP-mask of the computer, which means they pass
the gateway). If you're interested:
http://www.codeproject.com/internet/trafficwatcher.asp (old, not very
stable if you have more than one network card, ...).

Ok, back to the topic:
TSVN shows 76.65 Mb
Explorer shows 153.00 MB
NetMeter shows 186.69 MB

Since TSVN (Subversion) can transfer data compressed (that's why the
zlib library is linked in), the 76.65 MB transferred for a resulting 153
MB is very realistic. For the reasons I told you above, I don't trust
what NetMeter tells.

When I implemented that network counter in TSVN, I made sure it works
reliable by comparing its values with Ethereal (network sniffer) and
filtering out all traffic that didn't belong to TSVN.
(I was puzzled by the numbers TSVN shows too, because I thought 'how can
it show only 3MB data transferred when I import a 6MB file???' - but
then I checked with the sniffer. I then suspected the compression as the
reason, and checked with an already compressed file.)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Feb 24 19:56:31 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.