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