[tor-bugs] #6249 [Vidalia]: Show amount of traffic in connections list in Network Map window.

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Jun 27 18:22:21 UTC 2012


#6249: Show amount of traffic in connections list in Network Map window.
-------------------------+--------------------------------------------------
 Reporter:  cypherpunks  |          Owner:  chiiph
     Type:  enhancement  |         Status:  new   
 Priority:  minor        |      Milestone:        
Component:  Vidalia      |        Version:        
 Keywords:               |         Parent:        
   Points:               |   Actualpoints:        
-------------------------+--------------------------------------------------
 I thought it would be a nice feature if the connections list in the
 Network Map window showed the traffic amounts used by each connection.
 Since people using Tor are plenty paranoid, it would be reassuring to be
 able to keep an eye on it. For example, one can easily see the difference
 between an HTTP keep-alive connection and an active flow of data, and
 watch the progress of a file upload (since web sites usually can't provide
 that info, especially with JavaScript off). It might also encourage people
 to be more mindful of their data usage. (Personally I keep the Network Map
 open because I find its information useful, but I never open the Bandwidth
 Graph.)

 Since I've wanted this feature myself for a while, I thought I should try
 to write it myself. My C++ is rusty and I don't know Qt so this was hard,
 but it works great.

 I've only modified Vidalia, not Tor itself or its control protocol, so
 there are some small caveats here:
 - The STREAM_BW messages emitted by Tor are traffic delta values rather
 than totals, so Vidalia cannot count stream traffic from before it was
 started.
 - Seemingly it counts the traffic sent over the logical TCP stream, but
 not the overhead of the stream itself, which may or may not be desirable,
 but it's worth noting that it's not the same as the bandwidth graph.
 - It does not count the traffic of circuits because there is no message
 for that in the control protocol.

 I made a patch against Vidalia 0.2.20 that I got from the git web thingy.
 I'm bad with version control software and with diffs and patches, so
 please bear with me if I need to submit this in a different format or to
 somewhere else. But if someone in charge would be so kind as to verify it,
 and like it, and commit it in some fashion (modified or otherwise), it
 would make my day.

 The attached patch also fixes the Stream::isValidStreamId function,
 because while I was doing this I noticed that function didn't work.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6249>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list