root/tags/REL3_6/CHANGES

Revision 13232, 41.2 kB (checked in by kasimir, 8 months ago)

Data only dump from old repository - all commits by kasimir

  • Property svn:executable set to *
Line 
1Copyright (c) 2006-2007, Joseph B. Kowalski
2Portions Copyright (c) 2007 Kasimir Gabert
3See LICENSE for licensing information
4
5TorStatus - Tor Network Status Changes
6
7===============================================================================
8Version 3 Changes {{{
9===============================================================================
10--Version 3.6--
11* Will no longer crash with an error if the database is not populated
12* An interface has been added to the WHOIS data
13* The guard image is now a shield
14* (ticket 40) It will now work with modern versions of Tor
15* A Debian agent daemon has been created
16
17--Version 3.5--
18* Complete interface redesign
19* Integrated operating system detection in by default
20* Bandwidth change to have a progress bar
21* Legend created
22* WHOIS query integrated for IP addresses
23* Background colors for different router status
24* Overall softer colors
25* Added notifications for Asc or Desc sort orders
26
27--Version 3.4.2--
28
29* (ticket 12) Fixed error with server IP detection for non-Squid servers
30* (ticket 12) Added config option for Squid server
31
32--Version 3.4.1--                             (changes made by Kasimir Gabert)
33
34* Fixed bottom headers for new domain
35* Updated IP detection so it works through Squid
36* Added known mirrors bar
37
38TODO:
39* Move the two changes into configuration items
40* Centralize the known mirrors and make it dynamic
41
42--Version 3.4--                            (end of changes by Joseph Kowalski)
43Rename of the DNSBL server to DNSEL (DNS Exit List) server. This was by
44recommendation of Roger Dingledine of the Tor project. All filenames, variable
45names, etc, have been adjusted to reflect the rename.
46
47Added basic hit counting functionality to the DNSEL server. Now, every five
48minutes, the DNSEL server will write a record to the "DNSEL_LOG" table with a
49timestamp, a TotalResponses counter, and counters of how many "NOERROR",
50"SERVFAIL", "NXDOMAIN", and "NOTIMP" responses it has sent out since it was
51started. This procedure runs in it's own thread, and so should not have any
52measurable effect on performance.
53
54Improved the code that detects whether a user is accessing the site via a Tor
55hidden service. Previously, I checked to see if the user was coming from
56127.0.0.1. Now, I check to see if the "HOST" header provided by the client
57upon access exists in the "$Hidden_Service_URL" from the config file. If so,
58we tell them they are accessing the site as a hidden service. If not, we
59proceed on to the normal checks to see if they are accessing through the Tor
60network.
61
62Modified the DNSEL server to return SERVFAIL instead of NXDOMAIN for requests
63which are outside of the zone the DNSEL server is authoritative for.
64
65Modified the DNSEL server to return NXDOMAIN instead of NOTIMP for requests
66other than type 'A' and 'ANY' when the request is in the authoritative zone.
67
68Modified the documentation / default variables for the DNSEL server to use the
69"ip-port.torhosts.example.com" domain, rather than "tor.dnsel.example.com".
70This encourages users to setup servers that are consistent with the
71"torel-design.txt" document maintained by the Tor project.
72
73--Version 3.3--
74Complete rewrite of the DNSBL server in Java. This provided a performance
75increase on the order of approximately 5x over the old Perl version of the
76server. On a Pentium 2.4 GHz machine with 2 GBs of RAM, I was able to
77consistently obtain load test results of 200 queries/sec or more. These tests
78were conducted across the internet, and not on the local machine.
79
80Addition of the "dnsbl_server.php" page. This page provides usage instructions
81for the DNSBL server, and informs users of it's domain name. Note that the
82link to "dnsbl_server.php" from the main page will only display if you
83set the "$DNSBL_Domain" variable in the "config.php" file, so you can leave
84this variable set to 'null' if you are not running a DNSBL server, or do not
85wish to advertise it on the web site.
86
87Addition of the "$Hidden_Service_URL" variable to the "config.php" file. If
88you are also making the TorNetworkStatus site available through a Tor Hidden
89Service, you can enter the URL here, and a link will be added to the main page.
90If you are not making the site available as a Hidden Service, or do not wish
91to advertise it on the web site, you can leave this variable set to 'null'.
92
93Removal of the "tor_exit_status" page. This functionality is already provided
94by the main page (Tells a user if they are accessing the site through the Tor
95network or not), and the user already has two options to do custom exit
96queries if desired: The "tor_exit_query" page, and the DNSBL server. Both are
97linked to from the main page.
98
99Modifications to the "tns_update.php" file and the database create script to
100accommodate the re-write of the DNSBL server.
101
102--Version 3.2--
103Removed the first type of query that the DNSBL server could perform, which
104was to simply lookup if a provided IP address was an active Tor server or not.
105This was causing confusion amongst some users, and causing people to focus on
106whether or not an IP is a Tor server at all, which is exactly what we are
107trying to get away from by providing an answer to the more granular question
108"Is this IP address a Tor server that is capable of exiting to my destination
109IP and port?", which is precisely what the second (and now only) query type
110does. This had the added benefit or making the server a little faster, since
111a bit of logic was removed. Please see the "README_DNSBL" file in the source
112distribution for full setup and usage information.
113
114--Version 3.1--
115Nearly a complete redesign of the DNSBL server added in the last version to
116improve performance. Major changes:
117
1181) Previously, there was a Perl script which performed the actual listening
119for DNS requests, and when one was received, the script passed on the details
120of the request to a PHP script, which is where the main processing happened.
121The PHP script would then return a value to the Perl script indicating success
122or failure of the request. This had the horrible performance penalty of
123needing to invoke PHP every time a new request was received. Now, the entire
124process is handled within the same Perl script -- All of the PHP code to
125process the DNSBL request has been ported over to Perl -- So there is no
126calling an external executable again and again. Additionally, Perl runs faster
127than PHP with all other factors being equal.
128
1292) With the old PHP script, since it had to be invoked anew from within the
130Perl script with each request, this also meant that a new database connection
131had to be setup with each request. This also caused a performance penalty.
132Now, since everything is handled from within a single script, a single
133database connection can be maintained the entire time the script is running.
134
1353) Previously, when the DNSBL script did it's database queries to pull the
136IP addresses and exit policies of Tor routers, it did it the same way that the
137main application does, which means joining two large tables together on the
138router fingerprint key. While this works fine for the main application and
139it's very large queries, it did not suit the performance needs of a DNS
140server. Now, I have added two new in-memory database tables specifically for
141the DNSBL functionality. These two tables are populated during the update
142cycle, and contain only the necessary information (prejoined) required by the
143DNSBL server. The fact that they are in memory and are a lot smaller than the
144other tables should help the DNSBL server to return queries much quicker.
145These two tables act just like the set of NetworkStatus and Descriptor tables
146in that only one is ever active at a given time. The update cycle will always
147be updating the non-active table in the background while requests can continue
148being served by the active table. When the update is done successfully, a flag
149in the Status table is toggled to tell the application to begin using the
150other table as the active one, and the process repeats -- No downtime for
151updates.
152
153Fixed a bug that would cause the DNSBL server to only return "NXDOMAIN"
154responses if the database connection was lost until the script was restarted,
155even if the database connection came back up later. Now, the server will
156return "SERVFAIL" responses while the database server is down, but it will
157resume correct operation once the database server comes back up.
158
159Various other minor bug fixes, mainly relating to the "Tor Exit Status" and
160"Tor Exit Query" functionality that was added in the last release.
161
162--Version 3.0--
163Complete redesign of the way that the application determines if you are
164accessing the site through the Tor network or not, or if the provided IP
165belongs to a Tor server capable of exiting to the specified IP and port (See
166section on "Tor Exit Query" page, below). Previously, we would simply check to
167see if the IP address that the user was coming from was a Tor server with the
168'Exit' flag set to true, and tell them they were coming through the Tor
169network if so. Now, we check if the user is coming from the IP address of a
170Tor server, regardless of it's 'Exit' flag status. If so, we pull the Exit
171Policy for the matching Tor server(s), look at what IP and Port the client is
172accessing us on, and parse the exit policy to determine if the Tor server(s)
173would allow or deny such an access. We then give the user information on each
174Tor server that matches their exit IP, letting them know if it would allow
175access to us or not considering it's exit policy. Finally, we also tell the
176user if it appears that they are coming to the site via a Tor Hidden Service
177or from the local machine directly. This is determined by checking if the user
178is coming to the site from the '127.0.0.1' IP address. Note that the
179application now handles situations where there are multiple Tor servers with
180IP's that match where the user is coming from (Or the IP provided, in the case
181of the "Tor Exit Query" page, see below). In these cases, it will cycle through
182each applicable Tor server to provide Exit Policy match information.
183
184Addition of "Tor Exit Status" page. This page provides the same information
185about whether a user is accessing the site through the Tor network as is
186available on the main page, but without all the other information. This may be
187easier for someone who just wants a simple answer for "Is my Tor installation
188working?", and should serve as a good entry point for such situations. This
189page also contains a link to the main Tor documentation page.
190
191Addition of "Tor Exit Query" page. This page allows a user to enter in an IP
192to check if it matches that of one or more Tor servers, and, if it does,
193checks to see if those Tor servers are capable of exiting to the destination
194IP address and port that the user provides.
195
196Addition of a DNSBL server. This allows a standard, non-web interface method
197for clients to query whether or not an IP address belongs to an active Tor
198server, and whether or not an IP address belongs to an active Tor server that
199would allow exiting to a specified destination IP address and port. Please
200see the "README_DNSBL" file in the source distribution for full setup and
201usage information.
202===============================================================================
203}}}
204===============================================================================
205
206===============================================================================
207Version 2 Changes {{{
208===============================================================================
209--Version 2.0--
210
211Small performance enhancement to background update process. When clearing old
212data from the descriptor and network status tables, we now use the "truncate
213table" command rather than the "delete from" command. This is faster because
214"truncate table" deletes all records from the table at once, while "delete
215from" deletes records one row at a time.
216
217Enhancement of "Require Flags" custom query option so that the user now has
218three options available for each flag: "Off", "Yes", and "No". "Off" means
219the status of the flag is not a factor in the search. "Yes" means a router
220must have flag set in order to show up in result set. "No" means that a router
221must not have flag set in order to show up in result set. Previously, a user
222only had the equivalent of the "Off" and "Yes" options. Also, when a flag is
223set to "Off", it's column header in the result list will have a blue
224background, "Yes" will have a green background, and "No" will have a red
225background. This further increases the level of flexibility with searches.
226
227Addition of "Country Code" field to "Tor Server Providing Network Status
228Opinion" section. 
229
230Addition of background color to drop-down lists and edit box in advanced
231search section.
232
233Minor changes to text in custom query section to facilitate clarity.
234
235
236--Version 2.1--
237
238Addition of "Aggregate Network Statistic Graphs / Details" page. This page
239contains four graphs of network-wide aggregate information: Number of Routers
240by Country Code, Number of Routers by Observed Bandwidth, Number of Routers
241by Time Running, and an aggregate summary of various criteria including router
242flags.
243
244Addition of "EventDNS" and "Hibernating" statistics to newly renamed
245"Aggregate Network Statistics Summary" section on main page.
246
247Improvement to the way that the "Aggregate Network Statistics Summary" section
248of the main page gets it's data. Previously, each piece of information used
249was collected by a separate SQL query. Now, all of this has been joined into
250one large query to cut out the overhead of multiple SQL calls.
251
252Change to CSS which affects the highlight color of links which are on a white
253background, for increased readability.
254
255
256--Version 2.2--
257
258Fixed a bug in the code that detects whether or not the user is connecting to
259the server through the Tor network. Previously, it would tell a user they were
260connecting through the Tor network if their IP address matched the IP address
261of any Tor server. Now, it will only tell the user they are connecting through
262the Tor network if their IP address matches the IP address of a Tor server AND
263that Tor server is an exit node.
264
265Addition of exit node only CSV file download, for those who don't want the
266IP's of all Tor servers.
267
268Addition of graph of exit routers by country code to Network Detail page. This
269is useful for letting us see where we are most likely to exit the Tor network.
270
271Addition of "BadDirectory" flag information everywhere we make use of flags.
272The "BadDirectory" flag was added in Tor version 0.1.2.5-alpha.
273
274Minor cleanups to documentation to enhance readability.
275
276Fixed minor bug in SQL database create script.
277
278
279--Version 2.3--
280
281Redesign of the "Custom / Advanced Query Options" box on the main page. I am
282now using drop-down lists for the sort request, sort order, and address mode
283parameters instead of radio buttons, which takes up a lot less screen real-
284estate and also makes adding new options for these parameters in the future
285more practical.
286
287Slight changes to the "Application Server Details" (Previously "Application
288Server Information") box on the main page to enhance readability.
289
290Addition of the "Number of Descriptors In Cache" field to the "Application
291Server Details" box.
292
293Movement of the "Application Server Details" box to the bottom of the page.
294This has the dual purpose of improving page readability as well as making the
295"Approximate Page Generation Time" figure more accurate, since it is now
296calculated closer to the bottom of the page. Previously, the PHP code which
297generates the "Custom / Advanced Query Options" box still ran after this time
298was calculated.
299
300Update of source URL at bottom of page to new domain.
301
302
303--Version 2.4--
304Modified "Aggregate Network Statistic Summary" box to also show "percent of
305total network" values for each statistic listed. This allows you to easily see
306what percent of Tor routers are exit nodes, what percent are mirroring the
307directory, what percent of the total network your current result set makes up,
308etc.
309
310Modified "Network Status Opinion Source" box to allow clicking on the nickname
311of the router to jump directly to its router detail page. This makes it easy
312for a user to get detailed information about the source of the network data
313that they are seeing.
314
315Modified code that detects whether a user is accessing the site through the
316Tor network or not. Now, if the user is accessing through the Tor network, the
317name of their exit node is displayed in addition to the IP address. Also, the
318user can click on the name of the exit node to jump directly to its router
319detail page. This makes it easy for a user to get detailed information about
320the exit node they are currently coming through.
321
322Modified page footer to also include a link to the change history and license
323of the application.
324
325Removed the "$MinRouterThreshold" variable from the config file, and all code
326that made use of the variable. This really became obsolete when version 1.4 of
327the application was released and we started using two sets of tables in the
328database for storing router information instead of one. Since that time, a
329user will always have their page generated from the active set of router
330tables in the database, while the next refresh operation is being performed on
331the inactive set. This makes this variable, which was used to see if a
332database refresh was in progress and display an error to the user back when we
333used a single set of tables, obsolete.
334
335Fixed a bug in the generation of the Comma Separated Value (CSV) list of exit
336nodes. A comma was incorrectly being added after the last entry in the file,
337which might have caused problems for parsers.
338
339Added "Number of Routers by Platform" graph to network detail page. This lets
340us easily see how popular different operating systems are for running Tor
341routers.
342
343Modified "Number of Routers by Time Running (Weeks)" graph on network detail
344page to be full page width. This makes this graph easier to read since it
345usually has a lot of items along the x axis.
346
347
348--Version 2.5--
349Fixed lots of minor HTML and CSS errors. All pages now validate as "CSS
350version 2.1" and "HTML 4.01 Transitional".
351
352Modified the handling of all SQL queries which return a result set so that the
353result set populates into an associative array rather than a numerically
354indexed array. This allows items in the result set to be referred to by column
355name rather than a numerical array index. This is a significant step towards
356being able to offer the user the ability to do things such as select which
357columns they want displayed on the page, etc, as it is much more flexible
358than using numerical indexes because your entire result set handling code is
359no longer affected by re-arranging the order of items in your query, or adding
360and removing items on the fly. It is also generally considered a database
361programming best practice, as a lot of confusion and potential for bugs is
362eliminated by being able to use easily recognizable column names as opposed to
363numerical indexes.
364
365Modified the "Address Display Mode" in the "Custom / Advanced Query Options"
366so that users now have a third choice -- "Hostname + IP Address". Previously,
367the user could only choose one at a time, and had no way to view both
368simultaneously. "IP Address Only" mode is still the default as the "Hostname +
369IP Address" mode can result in a much larger amount of data being returned,
370but now the option is there for those who want it.
371
372
373--Version 2.6--
374Added the ability for users to select which columns they want displayed in the
375main router table. This should be good for ensuring that the page does not
376grow larger and larger as new informational items about Tor routers become
377available, since we can just maintain reasonable default settings and leave
378the obscure stuff off unless a user intentionally turns it on. Also, the SQL
379query for obtaining the main router list has been made dynamic so that it will
380only request columns from the database if the user will actually be displaying
381them.
382
383Added "Fingerprint" as a column display option.
384
385Removed "Address Mode" from "Custom / Advanced Query Options" since it is made
386obsolete by the users ability to select which columns they want displayed,
387which offers more granularity.
388
389Efficiency improvement in the way that it is determined if a given flag
390column for a given router should display the red "x" or green check mark.
391Previously, there was an "If" statement that set the appropriate CSS class for
392the table data cell based on whether a flag variable for that router was '0'
393or '1'. Now, there is a CSS class that ends in '0' and '1', and the variable
394value is just dumped directly into the class statement in the appropriate
395place. This saves up to '$NumberOfDifferentFlags X $NumberOfRoutersInResultSet'
396'If' statements from being executed on each page load, normally many thousand.
397
398Fixed a bug in the generation of CSV files that was causing a comma to be
399added after the last column in a row. According to RFC 4180, this is incorrect.
400Also, added a newline character (\n) to the end of files.
401
402Added "Comma Separated Value (CSV) List of Current Result Set" option. This
403lets a user get a comma separated value (CSV) file of their current search
404result set, exactly as displayed on screen (Including sort preferences, column
405display preferences, and any other custom query parameters that may be
406applied). The first record (row) in the generated CSV file will contain the
407column names for reference. This should be very useful for users wishing to
408export the data from a custom query into an external data source.
409
410
411--Version 2.7--
412Moved the column display options to their own page, rather than having them on
413the main page in the "Custom / Advanced Query Options" box. You can get to the
414column display options by following the "Custom / Advanced Display Options"
415link from the top of the page and then clicking on the "Column Display
416Preferences" link. This should provide a much more comfortable interface for
417customizing column display options.
418
419Added the ability for users to re-configure the order that columns display in.
420Previously, users could only add and remove columns. This should allow much
421more flexibility to users wishing to customize the look of the page.
422
423Updated "Comma Separated Value (CSV) List of Current Result Set" functionality
424to support the newly added ability of users to re-configure column display
425order. This way, the CSV file of the current result set benefits from the same
426level of flexibility as the main page display.
427
428
429--Version 2.8--
430Added the ability for users to display four additional columns on the main
431page: "Platform", "Contact", "EventDNS", & "Hibernating". Users can sort by
432the new columns and, in the case of the "EventDNS" and "Hibernating" items,
433filter query results based on whether they are true or false, as they are
434treated as "Flags" by the application. All four of the newly added columns are
435set to "Off" by default.
436
437Updated the "Comma Separated Value (CSV) List of Current Result Set" script to
438support the addition of the new columns.
439
440Bug fix to the "Comma Separated Value (CSV) List of Current Result Set" script:
441Commas (,) and double-quotes (") are now replaced with a dash (-) and a single-
442quote ('), respectively, when they occur in a field to be written to the CSV
443file, as these characters would cause problems for automatic parsers.
444
445Modified the "Router Detail" page to display information on the "EventDNS" and
446"Hibernating" items alongside the other flags, since it has now been
447determined that the application will be treating these items like any other
448flag. Previously, these two items were displayed in the "General Information"
449section of the page, not the "Router Flags" section.
450
451Modified the order in which some items display in the "Aggregate Network
452Statistic Summary" section of the main page and the "Aggregate Summary --
453Number of Routers Matching Specified Criteria" graph on the "Network Detail"
454page to enhance consistency throughout the application.
455
456Minor source code cleanups to enhance consistency between scripts.
457
458
459--Version 2.9--
460Various application-wide code cleanups to fix all known situations that would
461generate PHP warnings.
462
463Fixed a rare division by zero bug that could occur during the generation of
464the bandwidth history graphs on the router detail page.
465
466Updates to the way "Uptime" information is presented. Previously, the "Router
467Detail" page would calculate the real-time uptime of the router (By looking
468at the difference between the current time and when the router descriptor was
469last published, and adding this value to the published "Uptime" value in the
470descriptor, compensating for time zone differences), but the other places that
471made use of the "Uptime" value did not, such as the main page, the "Network
472Detail" page, and the "Comma Separated Value (CSV) List of Current Result Set"
473functionality. These places would simply use the static "Uptime" value from
474the latest descriptor, and would not perform any real-time calculations on it.
475Now, all places that make use of the "Uptime" value perform the real-time
476calculations on it. This eliminates discrepancies between what the "Router
477Detail" page shows and what is shown everywhere else. Additionally, code to
478gracefully deal with situations where a certain descriptors publish time is
479obviously wrong, such as when it's in the future, was added to all places
480doing the "Uptime" calculations.
481
482Modified all places that display a "DirPort" value to say "None" rather than
483"0" for routers that do not mirror the directory. This is less confusing.
484
485Modified all places that display a "CountryCode" value to say "N/A" rather than
486nothing for routers where country code information could not be retrieved.
487Again, less confusing.
488
489Made the "Tor Network Status" text at the top and bottom of each page a link
490to get back to the main page. This should be more user-friendly than having to
491hit "back" to get to the main page when on the "Network Detail" and "Router
492Detail" pages. The links also exist on the main page itself, which will just
493refresh the page with the user's current settings.
494
495Added two new array variables to the config file to allow the default column
496display options to be set on a global scale. These options are what will be
497used when the user has not yet performed any customization on their display
498preferences. Both the active/inactive columns and their display order can be
499specified.
500
501Changed default column display preferences -- Added "Hostname" and removed
502"Bad Dir" and "Bad Exit".
503
504Removed support for the "EventDNS" descriptor flag entirely. The logic for this
505functionality was faulty, and since all new Tor versions have EventDNS enabled
506by default, and the Tor developers plan to remove the old DNS logic entirely
507at some time in the future (According to the "dir-spec" document), I decided
508to just go ahead and remove this now since it is becoming irrelevant.
509
510Removed "IRIX" as a listed operating system on the "Platform Graph", as it
511seems there have been no Tor servers running on this OS for some time now.
512
513Other minor fixes/enhancements.
514===============================================================================
515}}}
516===============================================================================
517
518===============================================================================
519Version 1 Changes {{{
520===============================================================================
521--Version 1.0--
522
523Initial release.
524
525
526--Version 1.1--
527
528Addition of router detail page.
529
530Addition of real-time-calculated router uptime to router detail page.
531
532Addition of bandwidth graphs to router detail page. This functionality makes
533use of the free 'JPGraph' PHP libraries.
534
535Addition of country code data to main and router detail pages. This
536functionality makes use of the free 'GeoIP' PHP API and country database.
537
538Separation of database refresh operation from main page render operation. The
539database refresh operation has been moved out of the web root into it's own
540script, 'tns_update.php'. This greatly increases page render speed in
541situations where the local-cache is expired.
542
543Addition of 'tns_agent.php' script to handle background scheduled database
544refresh operations.
545
546Movement of the SQL database creation script out of the web root.
547
548Addition of ability to click on a column header on main page to sort. Multiple
549clicks alternate sort direction.
550
551Addition of code to handle situations where a user attempts to load a page
552while a background database refresh is in progress. In these situations, the
553user will be notified of the database refresh being in progress, and the page
554will automatically reload in 10 seconds, retaining any sort or search criteria
555that was initially passed by the user.
556
557Various performance improvements during main page render, some major. Code
558cleanups. Implementation of CSS / HTML restructuring to greatly reduce the
559size of page.
560
561
562--Version 1.2--
563
564Application-wide security fixes.
565
566Multiple XSS vulnerabilities fixed.
567
568Possible SQL injection vulnerability fixed.
569
570Code cleanups, further performance enhancements.
571                                               
572
573--Version 1.3--
574                       
575Major changes to the way the application gets it's network status information
576and router descriptors.
577
578Previously, for network status information, the application would cycle
579through the local Tor server's "cached-status" documents of Authority servers
580you explicitly allowed in the application config file, using a different one
581for each local-cache refresh. This had two problems. First, it meant that you
582would get a different number of routers listed, and oftentimes different
583properties listed for a specific router depending on which Authority server's
584cached-status doc had been used. Second, and this is the bigger of the two
585problems, is that this is not the way the Tor network works. The Tor network
586leaves it up to each client/server to calculate what it believes to be the
587correct view of the network based on the multiple sources of network status
588information it has available. This is important for security reasons, and
589plays a significant role in making it harder for someone to play some bad
590tricks on network users. So, now network status information is obtained by
591asking the local Tor server's control port to list all routers it has an
592opinion about. This ensures the data being presented has been through the
593proper "voting" process done by the Tor software, and is what the local Tor
594server believes to be correct.
595
596Previously, for individual router descriptors, the application would do one
597of two things. One, the default, was to directly ask whichever Authority
598server was used for the last local-cache refresh. This was bad, as it
599basically meant that for the duration of the current cache life, every
600visitor going to the "router_detail" page was causing a request for a
601descriptor to be sent to that Authority server. Not what we want for the
602Authority servers, I'm sure. Two, a user could specify that they always wanted
603to use a certain Tor server for descriptor requests. This fixed the issue with
604hammering the Authority servers, but only if people used the option. Now,
605router descriptors are also obtained through the local Tor server's control
606port. Also, router descriptors are no longer written to files on the hard
607drive. This was unnecessary and slow.
608
609These changes allowed a lot of clean-up to be done in the config file. There
610are a lot less variables in there now.
611
612 
613--Version 1.4--
614
615Addition of an option to export the IP Addresses of all current Tor routers to
616a CSV (Comma Separated Value) file. This may be of some use for people looking
617to get a quick, current list of Tor router IP's, whether to formulate block
618lists, or to assist with other Tor network status apps / pages.
619
620Addition of "Bandwidth" and "Uptime" columns to main page. The bandwidth
621reading is obtained from the "Bandwidth Observed" parameter of the router
622descriptor and is displayed in KB/s. The uptime reading is obtained from the
623"Uptime" parameter of the router descriptor and is displayed in days. Both of
624these columns are sortable.
625
626Back end changes to make the addition of the "Bandwidth" and "Uptime" columns
627to the main page, described above, possible. These changes consisted of making
628the scheduled background update process request and parse the descriptors of
629every router that the local Tor server has an opinion about, as identified by
630it's network status request response, so that the bandwidth and uptime
631information (and everything else in the descriptor) could be inserted into the
632database at this stage to be available for use on the main page. Previously,
633descriptors were only requested and parsed on an as-needed basis when a user
634loaded the "router_detail.php" page, and the data parsed from them was not
635stored. Now, it's all inserted into the database during the main update
636process which opens up the possibilities for all kinds on new stuff. The
637downside to doing it this way is that the main update process CAN take
638considerably longer (especially when the local Tor server is very busy), which
639led to the second major back end change: Using two router (local-cache) tables
640instead of one. Basically, only one table is marked as active at any given
641time, and all page loads use the active table. When the update process runs,
642it runs on the non-active table, and marks it as the active table upon
643successful completion. This prevents users from seeing the "Database refresh in
644progress" error message, as they will instead just be seeing the old data
645until the new data is ready. I was quite serious about not causing a
646performance hit to page load times due to the new functionality, and this was
647the solution implemented to avoid that.
648         
649
650--Version 1.5--
651
652Major performance enhancements to both the background update process and the
653main page load process.
654
655First, for the update process, we are now obtaining the full network status
656opinion document and the full recent descriptor document from the control port
657of the Tor server. Previously, we were obtaining the full network status
658opinion document, and then, as we parsed out this file, we requested server
659descriptors of the Tor server's control port individually. This tended to
660sometimes cause somewhat of a load on the Tor server and cause the descriptors
661to be fed back very slowly, sometimes taking up to a half hour for a full
662refresh. Now, since we grab both full documents all at once, it only takes the
663Tor server a few seconds to provide them. Second, we are now writing the
664parsed network status information and the parsed descriptor information into
665two separate database tables (NetworkStatus & Descriptor). This makes for
666cleaner design and tables with less columns. And, in keeping with the spirit
667of the updates made in Version 1.4, there is two of each of these tables
668(NetworkStatus & Descriptor) so that one set can be updated while the other
669set can continue to be used by folks loading the page and running queries,
670etc., until the new set is ready.
671
672Performance improvements to the load time of the main page were obtained by
673switching to the MySQL MyISAM storage engine, instead of the InnoDB engine we
674had been using previously. MyISAM is significantly faster than InnoDB, and,
675since we currently don't make use of transactions, there is no reason not to
676use it. Also, indexes were added to the NetworkStatus and Descriptor tables
677on the "Fingerprint" column, since this is what is used for the join of these
678two tables during page load. This further increased the query speed.
679
680Some other small performance improvements were implemented, especially on the
681"router_detail.php" page.
682
683The update process now has more robust error handling.
684
685Addition of "Count" column to main page.
686
687Addition of green check marks and red x's to indicate whether a flag is "Yes"
688or "No". Previously, it would just print "Yes" or "No".
689
690Modifications of font selections and background images to hopefully achieve
691two things: Fit more in a smaller space, and make the page easier to read.
692
693
694--Version 1.6--     
695
696The application now performs reverse-DNS lookups during the update process and
697stores this information in the database. This enables a user to choose whether
698they would like addresses displayed as IP or Hostname. Of course, whichever
699display they choose, it is sortable.
700
701Added Hostname information to the router detail page as well.
702
703Added "Last Update Elapsed Time" field to main page. Good way to see if your
704system is experiencing problems during the background updates.
705
706Added "Current Descriptor Signature" field to the main page for the Network
707Status Source router information section.
708
709Minor CSS changes to improve layout and formatting in certain situations. 
710
711
712--Version 1.7--
713
714Changes to the way variable handling is done. I moved all state maintaining
715variables into PHP session, such as all of the "Flags" variables and the
716Address Display Mode, SortRequest, and SortOrder variables. Also, wherever
717possible because of addition to session, variables were removed from the URL's
718in the anchor tags of the generated page. The only ones that were left in
719URL's were variables that need to be manipulated by clicking on a link, namely
720the SortRequest and SortOrder variables. This makes the URL's in the anchor
721tags of the generated page much shorter and cleaner, since a whole lot less is
722being passed around via GET. This in turn reduces the generated page size,
723sometimes considerably depending on the custom query options in effect.
724Another nice benefit to doing things this way is that if a user has custom
725options set, completely browses away from the site, and later comes back
726within their same browser session, all of their options will be configured as
727they were when they left.
728
729Also, variables that needed to remain in URL's have shorter names to further
730reduce the amount of data being passed around via GET, and hence the length
731of the URL's in the generated page.
732
733Further cleanups to HTML formatting and CSS on both the main page and the
734router detail page.
735
736Addition of timer to bottom of main page to indicate how long page generation
737took on the server.
738
739 
740--Version 1.8-- 
741
742Changes / cleanup to CSS. All CSS information is now defined in one external
743style sheet which resides in the "web/css" directory, and the different parts
744of the code that need the style sheet simply reference it rather than defining
745everything at the top of every HTML page output to the browser.
746
747Addition of row highlighting for Mozilla Firefox / Opera. This makes it easier
748to visually track which row you are currently moused over. This feature does
749not currently work in Internet Explorer since that would require JavaScript,
750and I'm trying to keep this app JavaScript free for those who browse with it
751disabled.
752
753When sorting by IP Addresses, they are now sorted naturally, rather than as
754strings. This should make the IP Address search quite a bit more meaningful.
755This change also applies to the CSV (Comma Separated Value) file list of IP's.
756
757
758--Version 1.9-- 
759
760Added proper escaping of problem characters to all strings that get populated
761from data parsed from router descriptors and network status documents before
762database inserts are performed. This should prevent the update process from
763dying when these characters are encountered, which would sometimes happen.
764
765Now using the standard "gethostbyaddr" PHP function to do hostname lookups.
766Previously, I was doing some custom parsing on the output of the Unix "host"
767command, as I thought it would be faster, but, after comparing the two, I see
768no speed degradation with using "gethostbyaddr". The advantage of using
769"gethostbyaddr" over "host" is that we are not using a platform-specific
770command which limits where the application can run without modification.
771
772Addition of Advanced Search functionality, which lets you perform free-text
773searches on the following data: Fingerprint, Router Name, Country Code,
774Bandwidth, Uptime, Last Descriptor Published, IP Address, Hostname, Onion
775Router Port, Directory Server Port, Platform, & Contact. You can apply the
776following modifiers when searching the above data: Equals, Contains, Is Less
777Than, or Is Greater Than. The Advanced Search works in conjunction with the
778other Custom Query options (Sort By, Sort Order, Address Display Mode, and
779Require Flags), allowing a great deal of flexibility to customize the result
780set as desired.
781
782Addition of indexes where necessary in the database to better facilitate
783speedy free-text searches.
784
785Addition of "Hostname" field to "Tor Server Providing Network Status Opinion"
786section.
787
788Addition of feature to tell user if they are accessing the page through the
789Tor network or not, color coded.
790
791Additional escaping of potentially troublesome HTML characters before
792displaying on page for "Contact" field on main page and router detail page.
793===============================================================================
794}}}
795===============================================================================
796
797NOTE: This product includes GeoLite data created by MaxMind, available from
798http://www.maxmind.com/.
799
Note: See TracBrowser for help on using the browser.