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