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