done
[oweals/gnunet.git] / TODO
1 0.9.0pre0 [April]:
2 * HOSTLIST: seems to have NO 'tcp' in it, so cannot have any addresses!? [CG]
3 * WWW:
4   - Get IPv6 hooked up [AK, after April 12th]
5   - change DNS [CG, need DNS]
6
7 0.9.0pre1:
8 * PEERINFO:
9   - trust: need *fast* way to check/update trust in peers
10            (async peerinfo would not be right; certainly not with the
11             current API)
12 * UTIL:
13   - scheduler should change OS process priority based on task priority;   
14     should make better use of task priorities in general
15   - only connect() sockets that are ready (select()) [Nils]
16     [On W32, we need to select after calling socket before
17      doing connect etc.]
18 * HELLO: [CG]
19   - need function to test "equivalency" of HELLOs (or integrate with "merge"?); use in PEERINFO
20 * SETUP:
21   - design & implement new setup tool
22 * TBENCH: [MW]
23   - good to have for transport/DV evaluation! 
24 * DV: [Nate]
25   - write DV API (need to move declarations from dv_api.c to gnunet_dv_service.h!)
26   - implement DV service 
27   - implement DV library (looks done)
28   - implement DV transport plugin
29   - implement testcases 
30   - implement performance tests
31 * STATISTICS:
32   - does not seem to work with timeouts (especially if service is not running)
33 * TOPOLOGY:
34   - needs more testing (especially F2F topology)
35   - needs to re-try connecting after disconnect (currently, it
36     initially triggers a connection request, but if that connection
37     fails / goes down, it does not retry in a timely fashion;
38     cause seems to be the 'blacklist_after_attempt' being set to 1h,
39     which is rather long -- and should probably be adjusted based on
40     the number of connections / known peers)
41   - If the topology daemon crashes, peers that were put on the
42     blacklist with transport will never be removed from it (until
43     transport service dies); we should use the blacklist notification
44     API to learn about the exact set of blacklisted peers at all times
45     (FIXME: the transport_api implementation of blacklisting
46      also does not work nicely for this since it won't let us know about
47      disconnect-reconnect events and the implicit whitelisting
48      that might happen here; that's not so bad since we will
49      re-blacklist on pre-connect attempts anyway, so this is 
50      a minor issue; OTOH, we might want to be more explicit about
51      allowing/forbidding connects on pre-connect to avoid 
52      entering connect attempts to just be blacklisted shortly afterwards).
53   - the code uses the term 'blacklist' for both peers that are forbidden
54     to connect (i.e. F2F mode) as well as peers that we currently
55     won't try to actively connect to ourselves (since we just tried);
56     This is confusing.  We need two distinct terms (greylist?).
57   - move code to use hash table instead of linked list
58   - instead of periodically discarding blacklisted entries,
59     simply add task that is triggered at the right time (earlier free,
60     more balanced load)
61   - check if new HELLO learned is different from old HELLO
62     before resetting entire state!
63 * FS: [CG]
64   - support recursive download even if filename is NULL and we hence
65     do not generate files on disk (use temp_filename)
66   - bound parallelism (# fs downloads)
67   - distinguish in performance tracking and event signalling between
68     downloads that are actually running and those that are merely in the queue
69   - persistence support (publish, unindex, search, download)
70   - active migration support (in fs or in datastore or new daemon?)
71   - gnunet-service-fs (hot-path routing, load-based routing, nitpicks)
72   - [gnunet-service-fs.c:208]: member 'LocalGetContext::results_bf_size' is never used
73   - [gnunet-service-fs.c:501]: member 'PendingRequest::used_pids_size' is never used
74   - [gnunet-service-fs.c:654]: member 'ConnectedPeer::last_client_replies' is never used
75   - [gnunet-service-fs.c:669]: member 'ConnectedPeer::avg_delay' is never used
76   - [gnunet-service-fs.c:675]: member 'ConnectedPeer::avg_priority' is never used
77   - [gnunet-service-fs.c:688]: member 'ConnectedPeer::pending_requests' is never used
78   - [gnunet-service-fs.c:694]: member 'ConnectedPeer::last_p2p_replies_woff' is never used
79   - [gnunet-service-fs.c:700]: member 'ConnectedPeer::last_client_replies_woff' is never used
80   - GAP improvements:
81     + active reply route caching design & implementation of service; gap extension!
82 * DATASTORE:
83   - API lacks cancellation methods (needed? or is disconnect enough?); 
84     may also want to integrate request queuing here instead of gnunet-service-fs_drq.c 
85 * GNUNET-GTK:
86   - how to integrate scheduler with GTK event loop!?
87
88 0.9.0pre2:
89 * TRACEKIT: [MW]
90   - good to have for DV/DHT evaluation!
91 * DHT: [Nate]
92   - implement DHT service 
93   - implement DHT library
94   - implement testcases
95   - implement performance tests
96 * TRANSPORT:
97   - HTTP backend [MW]
98 * ARM: [Safey]
99   - need to get rid of synchronous API for service starts (cause all kinds of problems)
100     [=> eliminate for need to tell ARM about service starts most of the time!] [Safey]
101   - better tracking of which config changes actually need to cause process restarts by ARM.
102   - listen for requests to discover dependencies between services (and avoid
103     having to explicitly program start requests)
104   - better crash management (attach debugging support, capture and analyze
105     debug output, detect random vs. deterministic crashes)
106   - shutdown sequence?
107 * FS: [CG]
108   - datastore reservation (publishing)
109   - search: availability probes
110   - location URIs (publish, search, download)
111   - non-anonymous FS service (needs DHT)
112     + DHT integration for search
113     + CS-DHT-functions (DHT-put of LOC)
114     + P2P-functions (DHT-get)
115   - collection API & tests
116     + gnunet-pseudonym (collection support)
117   - implement FS performance tests
118     + insert
119     + download
120     + search
121     + unindex
122
123 0.9.0pre3:
124 * Determine RC bugs and fix those!
125 * TESTING: [Nate]
126   - modify configuration to allow controlling connections for non-local starts
127   - testbed creation with topology (needs working F2F topology) 
128   - testbed with churn 
129   - implement testcases for distributed testing
130   - test basic peer re-configure 
131   - test topology creation 
132   - test churn generation 
133   - consider changing API for peer-group termination to 
134     call continuation when done
135 * NAT/UPNP: [MW]
136   - finalize API design
137   - code clean up
138   - testing
139   - integration with transport service
140 * MYSQL database backends: [CG]
141   - datacache
142   - datastore
143
144 0.9.0:
145 * new webpage:
146   - expand bibliography
147   - convert documentation pages to books
148   - update books (especially for developers)
149   - create good Drupal theme for GNUnet
150   - make a NICE download page and figure out how to 
151     enable developers to publish TGZs nicely
152   - port "contact" page
153   - add content type for "todo" items?
154 * POSTGRES database backends: [CG]
155   - datacache
156   - datastore
157 * Determine RC bugs and fix those!
158
159 0.9.x:
160 * TRANSPORT: [MW]
161   - SMTP transport backend
162   - HTTPS transport backend
163     + improved HTTPS support in MHD
164     + actual plugin
165   - Implement method of learning our external addresses from
166     other peers; need some kind of threshold-based
167     scheme, limiting both the total number of addresses that we accept 
168     this way as well as requiring multiple confirmations; also, we
169     should possibly try to confirm that the given address works for
170     us ourselves (loopback-style) before adding it to the list
171     + we may be able to simplify WELCOME messages (no need to add 
172       addresses there anymore, but may help to learn them there anyway...).
173     + we probably want some kind of voting/counting for learning IP addresses
174       (maybe including IP addresses in ads proportional to how often others
175        report them? we at least need some protection against >64k HELLOs!),
176     + provide a way to give the user a list of "learned" IP addresses and
177       a way to easily "veto" addresses off the list!
178       => If MiM attacker uses vetoed address, blacklist the specific IP for
179          the presumed neighbour!
180   - implement gnunet-transport (transport configurator / tester)
181   - UPnP-based IP detection
182     (Note: build library always, build service when libxml2/etc. are available)
183 * FS: [CG]
184   - Remove KBlocks in gnunet-unindex (see discussion with Kenneth Almquist on gnunet-devs in 9/2009)
185   - Allow checking of presence of search results and/or content via command-line tools
186     (add options to gnunet-search / gnunet-download to limit search to local peer)
187 * PEERINFO: [CG]
188   - expire 'ancient' HELLOs (those without valid addresses AND that 
189     we have not 'used' (for their public keys) in a while; need a way
190     to track actual 'use')
191   - make sue we also trigger notifications whenever HELLOs expire
192 * VPN
193
194
195
196 Optimizations:
197 * TCP:
198   - should use hash map to look up sessions
199 * PEERINFO:
200   - api creates many, many short-lived TCP connections; either some
201     clients should use the API differently or we need to change the
202     API to enable re-use of connections to the service
203 * STATISTICS:
204   - should use BIO instead of mmap
205 * TRANSPORT:
206   - need to periodically probe latency/transport cost changes & possibly switch transport
207   - instantly filter addresses from *other* peers that 
208     are *equal* to our own address + port (i.e., localhost:2086).  We 
209     no longer filter those for outgoing (helps with loopback testing
210     and keeps the code clean), but we should filter strictly *impossible*
211     incoming addresses!  This is for efficiency, not correctness.
212   - should use hash map to look up Neighbours
213 * HOSTLIST:
214   - 'server' uses 'GNUNET_PEERINFO_iterate', should probably switch to notification API
215     (for more instant / up-to-date hostlists at lower cost) [OPTIMIZATION]
216 * DATASTORE (?):
217   - check for duplicates on insertion (currently, same content is frequently
218     stored again [seen with KBLOCKS and SBLOCKS]!)
219
220 Minor features:
221 * TCP:
222   - repeatedly resolve hostname and look up interfaces to determine our own IP
223   - [./transport/plugin_transport_tcp.c:391]: (style) struct or union member 'Plugin::address_update_task' is never used (related to issue above)
224 * TRANSPORT:
225   - [./transport/gnunet-service-transport.c:173]: (style) struct or union member 'TransportPlugin::rebuild' is never used (related to TCP not refreshing external addresses?)
226 * DATACACHE:
227   - add stats (# bytes available, # bytes used, # PUTs, # GETs, # GETs satisfied)
228 * FS:
229   - support inline data in directories for recursive file downloads (fs_download)
230