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