BitTorrents Statistics Logs

To enable torrent testing environment set firefox preference variable alpeers.bittorrent.debug = true. Then you should see the Debug buttons on the torrent view. If you click the “Debug” buttons the information about all torrents and all it’s connections is dumped to the log file.

You can write the number of seconds to the editbox and press “Set Interval”. The informations will be dumped every N seconds to the log file automatically. The torrent view must be opened during the test.

The log has the following structure:

Each line of the log has “BTSTAT:” prefix. When the torrent close the connection we should be able to see the connection parameters before it was closed. Every closed connection is logged with preffix BTSTAT:-close.

Each diagnostic log dump starts with _BEGIN_TORRENT_CLIENT_DUMP_ and ends with _END_TORRENT_CLIENT_DUMP_.

Then following particular torrents separated by _BEGIN_TORRENT_CONNECTIONS_ and _BEGIN_TORRENT_CONNECTIONS_.

The very first line of the torrent context dump should be:

BTSTAT:Peers=213;Connections=23;Downloaded=1168102194

Peers=213 - there are 213 known peers.

Connections=23 - 23 are connected

Downloaded=1168102194 - 1168102194 bytes were downloaded

The list of connections follows:

BTSTAT: 90.229.145.124:6889@internet;ciCI=1110;(1/0);score=0;downloaded=131072;uploaded=0

90.229.145.124:6889@internet - peer connection ID

ciCI=1110 - choked/interested/peer choked/peer interested (1=yes, 0=no)

(1/0) - (number of requests to be answered/max number of pending requests at one time)

score=0 - how long the peer is chocked and interested

downloaded=131072 - how many bytes were downloaded from the peer

uploaded=0 - how many bytes were uploaded to the peer

 
test/btlogs.txt · Last modified: 2007/09/25 10:28 by ondrej
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki