861e2915d9012646a70d44347ac9e43f8f5fb9f3
[oweals/gnunet.git] / TODO
1 0.9.0pre1:
2 * FS: [CG]
3   - generate SUSPEND events (publish, unindex, search, download) AND free memory!
4     => test SUSPEND events
5   - actually call 'sync' functions (publish, unindex, search, download)
6   - code review:
7     => refactor fs.c to join common code segments!
8     => document directory structure (and use #define's for the directory names!)
9     => ensure all files & dirs are cleaned up! (at least during 'clean' runs)
10   - persistence testing (publish, unindex, search, download):
11     => need driver!
12     => schedule suspending tasks DURING event handler => good coverage!
13   - gnunet-service-fs (hot-path routing, load-based routing, nitpicks)  
14   - [gnunet-service-fs.c:208]: member 'LocalGetContext::results_bf_size' is never used
15   - [gnunet-service-fs.c:501]: member 'PendingRequest::used_pids_size' is never used
16   - [gnunet-service-fs.c:654]: member 'ConnectedPeer::last_client_replies' is never used
17   - [gnunet-service-fs.c:669]: member 'ConnectedPeer::avg_delay' is never used
18   - [gnunet-service-fs.c:675]: member 'ConnectedPeer::avg_priority' is never used
19   - [gnunet-service-fs.c:688]: member 'ConnectedPeer::pending_requests' is never used
20   - [gnunet-service-fs.c:694]: member 'ConnectedPeer::last_p2p_replies_woff' is never used
21   - [gnunet-service-fs.c:700]: member 'ConnectedPeer::last_client_replies_woff' is never used
22   - GAP improvements:
23     + active reply route caching design & implementation of service; gap extension!
24 * MIGRATION [CG]
25   - on-demand encoding => move logic to block-library!?
26   - peer selection => how to consider latency/bw/etc?
27   - content transmission => how often the same block?
28   - how to select delay before next migration? 
29   - migration to us
30   - testing
31   - integrate with FS or not? (peer list, index/on-demand encoding, block code,
32     inbound priority assignment; all would be easier with tight integration!)
33 * TBENCH: [MW]
34   - good to have for transport/DV evaluation! 
35 * DV: [Nate]
36   - write DV API (need to move declarations from dv_api.c to gnunet_dv_service.h!)
37   - implement DV service 
38   - implement DV library (looks done)
39   - implement DV transport plugin
40   - implement testcases 
41   - implement performance tests (needs tbench)
42 * TOPOLOGY:
43   - needs more testing (especially F2F topology) & transport blacklisting
44 * UTIL:
45   - only connect() sockets that are ready (select()) [Nils]
46     [On W32, we need to select after calling socket before doing connect etc.]
47 * GNUNET-GTK:
48   - use g_main_context_set_poll_func to integrate GTK with GNUnet Scheduler!? (YUCK!)
49   - OR: add scheduler API to enable integration with GTK main loop instead of doing our own select
50   - use g_main_context_pending, g_main_context_query / g_main_context_check / g_main_context_dispatch
51     and NEVER g_main_loop_run (can this be done? might be the clean way to do this! But how
52     to integrate this with "gtk_main"?  Docu says:
53     "It's OK to use the GLib main loop directly instead of gtk_main(), though it involves 
54      slightly more typing. See GMainLoop in the GLib documentation."
55     => so maybe it "just works"?
56 * SETUP:
57   - design & implement new setup tool
58
59 0.9.0pre2:
60 * TRACEKIT: [MW]
61   - good to have for DV/DHT evaluation!
62 * DHT: [Nate]
63   - implement DHT service 
64   - implement testcases
65   - implement performance tests
66 * TRANSPORT:
67   - HTTP backend [MW]
68 * ARM: [Safey]
69   - need to get rid of synchronous API for service starts (cause all kinds of problems)
70     [=> eliminate for need to tell ARM about service starts most of the time!] [Safey]
71   - better tracking of which config changes actually need to cause process restarts by ARM.
72   - listen for requests to discover dependencies between services (and avoid
73     having to explicitly program start requests)
74   - better crash management (attach debugging support, capture and analyze
75     debug output, detect random vs. deterministic crashes)
76   - shutdown sequence?
77 * FS: [CG]
78   - datastore reservation (publishing)
79   - location URIs (publish, search, download)
80   - utilize in-line files in meta data always (including in search results or
81     when download is triggered manually and for probes); currently the data is
82     only used when users do a general 'recursive' download
83   - non-anonymous FS service (needs DHT)
84     + DHT integration for search
85     + CS-DHT-functions (DHT-put of LOC)
86     + P2P-functions (DHT-get)
87   - collection API & tests
88     + gnunet-pseudonym (collection support)
89   - implement FS performance tests
90     + insert
91     + download
92     + search
93     + unindex
94 * MIGRATION:
95   - improved content selection (not just 'get_random')
96
97 0.9.0pre3:
98 * Determine RC bugs and fix those!
99 * TESTING: [Nate]
100   - modify configuration to allow controlling connections for non-local starts
101   - testbed creation with topology (needs working F2F topology) 
102   - testbed with churn 
103   - implement testcases for distributed testing
104   - test basic peer re-configure 
105   - test topology creation 
106   - test churn generation 
107   - consider changing API for peer-group termination to 
108     call continuation when done
109 * NAT/UPNP: [MW]
110   - finalize API design
111   - code clean up
112   - testing
113   - integration with transport service
114 * MYSQL database backends: [CG]
115   - datacache
116   - datastore
117 * FS:
118   - reconstruct IBLOCKS from DBLOCKS if possible (during download; see FIXME in fs_download)
119
120
121 0.9.0:
122 * new webpage:
123   - expand bibliography
124   - convert documentation pages to books
125   - update books (especially for developers)
126   - create good Drupal theme for GNUnet
127   - make a NICE download page and figure out how to enable developers to publish TGZs nicely
128   - port "contact" page
129   - add content type for "todo" items?
130 * POSTGRES database backends: [CG]
131   - datacache
132   - datastore
133 * Determine RC bugs and fix those!
134
135 0.9.x:
136 * TRANSPORT: [MW]
137   - SMTP transport backend
138   - HTTPS transport backend
139     + improved HTTPS support in MHD
140     + actual plugin
141   - Implement method of learning our external addresses from
142     other peers; need some kind of threshold-based
143     scheme, limiting both the total number of addresses that we accept 
144     this way as well as requiring multiple confirmations; also, we
145     should possibly try to confirm that the given address works for
146     us ourselves (loopback-style) before adding it to the list
147     + we may be able to simplify WELCOME messages (no need to add 
148       addresses there anymore, but may help to learn them there anyway...).
149     + we probably want some kind of voting/counting for learning IP addresses
150       (maybe including IP addresses in ads proportional to how often others
151        report them? we at least need some protection against >64k HELLOs!),
152     + provide a way to give the user a list of "learned" IP addresses and
153       a way to easily "veto" addresses off the list!
154       => If MiM attacker uses vetoed address, blacklist the specific IP for
155          the presumed neighbour!
156   - implement gnunet-transport (transport configurator / tester)
157   - UPnP-based IP detection
158     (Note: build library always, build service when libxml2/etc. are available)
159 * FS: [CG]
160   - Remove KBlocks in gnunet-unindex (see discussion with Kenneth Almquist on gnunet-devs in 9/2009)
161 * PEERINFO: [CG]
162   - expire 'ancient' HELLOs (those without valid addresses AND that 
163     we have not 'used' (for their public keys) in a while; need a way
164     to track actual 'use')
165   - make sue we also trigger notifications whenever HELLOs expire
166 * VPN
167
168
169
170 Optimizations:
171 * TCP:
172   - should use hash map to look up sessions
173 * STATISTICS:
174   - should use BIO instead of mmap
175 * TRANSPORT:
176   - need to periodically probe latency/transport cost changes & possibly switch transport
177   - should use hash map to look up Neighbours (service AND plugins!)
178 * DATASTORE (?):
179   - check for duplicates on insertion (currently, same content is frequently
180     stored again [seen with KBLOCKS and SBLOCKS]!)
181 * PEERINFO:
182   - merge multiple HELLOs of the same peer in the transmission queue
183     (theoretically reduces overhead; bounds message queue size)
184   - merge multiple iteration requests over "all" peers in the queue
185     (theoretically reduces overhead; bounds messgae queue size)
186 * FS:
187   - use different queue prioritization for probe-downloads vs. normal downloads (!?)
188
189 Minor features:
190 * TCP:
191   - repeatedly resolve hostname and look up interfaces to determine our own IP
192   - [./transport/plugin_transport_tcp.c:391]: (style) struct or union member 'Plugin::address_update_task' is never used (related to issue above)
193 * TRANSPORT:
194   - [./transport/gnunet-service-transport.c:173]: (style) struct or union member 'TransportPlugin::rebuild' is never used (related to TCP not refreshing external addresses?)
195 * BLOCKS:
196   - testcase would be nice...