done
[oweals/gnunet.git] / TODO
1 PHASE #1: (Goal: settle key design questions)
2
3 Util:
4 * improve disk API [Nils] (Nils, is this done? -Christian)
5 * Windows: use events instead of pipes to signal select()s [Nils]
6 * only connect() sockets that are ready (select()) [Nils]
7   [On W32, we need to select after calling socket before
8    doing connect etc.]
9
10 TESTCASES WANTED:
11 For these functions, it would be nice if we had testcases ("make check")
12 that would cause them to be executed and check that they are working:
13 * gnunet-service-peerinfo:
14   - change_host_trust / flush_trust 
15   - remove_garbage / 
16   - discard_hosts_helper / cron_clean_data_hosts
17 * gnunet-service-transport:
18   - try_unvalidated_addresses
19   - lookup_address_callback
20   - lookup_hello_callback
21   - plugin_env_lookup_address
22   - notify_clients_disconnect
23   - list_validated_addresses
24   - cleanup_validation
25   - disconnect_neighbour
26   - handle_set_quota
27 * plugin_transport_tcp.c:
28   - tcp_plugin_cancel
29   - tcp_plugin_address_pretty_printer / append_port
30   - tcp_plugin_set_receive_quota
31   - delayed_done
32 * transport_api:
33   - GNUNET_TRANSPORT_set_qutoa / send_set_quota
34   - hello_wait_timeout 
35   - transmit_ready
36   - transmit_timeout
37   - remove_from_any_list / remove_neighbour
38   - GNUNET_TRANSPORT_notify_transmit_ready_cancel
39 * core_api:
40   - timeout_request
41   - solicit_traffic / copy_and_free
42   - GNUNET_CORE_peer_configure / produce_configure_message
43 * gnunet-service-core:
44   - update_window
45   - find_client
46   - handle_client_request_configure
47   - set_key_retry_task
48   - align_and_deliver
49   - handle_transport_notify_disconnect
50 * hostlist (everything)
51 * topology (everything)
52
53
54
55 PHASE #2: (Goal: recover basic file-sharing functionality)
56
57 Datastores:
58 * implement sqlite-based sqstore/datastore service
59   + implement service (datastore + talks to plugin)
60   + implement library (talks to service)
61   + implement sqlite plugin (talks to DB)
62   + fix testcases (make them use CPS, complete their inner workings...)
63 * implement sqlite-based dstore services
64   + design API
65   + implement library (talks to service)
66   + implement service (talks to plugin)
67   + implement sqlite plugin (talks to DB)
68
69 Applications:
70 * DHT, DV
71 * FS / fs-libs
72
73
74
75 PHASE #3: (Goal: ready for pre-release) [completion-goal: end of 2009]
76
77 * testing
78 * setup
79 * gtk, qt GUIs
80 * tbench
81 * tracekit
82 * vpn
83
84 Transports:
85 * UDP backend (need LIBRARY to support (de)fragmentation!)
86 * HTTP backend
87 * Testing:
88   +  Testcases for set_quota, timeouts, disconnects, transmit_ready_cancel
89   + Better coverage of gnunet-service-transport (hello validation)
90   + direct test of plugins compliance to plugin API
91
92 Databases:
93 * sqlite, mysql & postgres backend
94
95
96
97 Minor TODO items:
98 * UTIL:
99   - crypto_hash: use libgcrypt (supports SHA-512 since 2003)
100   - container_bloomfilter: improve efficiency (see FIXME)
101 * SERVER:
102   - inefficient memmove
103 * TRANSPORT:
104   - transport_api: support forcing disconnects through low quotas!
105     (required for working F2F support!)
106   - API: consider having core provide deadline information for each message
107     (likely important for DV plugin which wants to loop back!)
108   - implement transport API to pretty-print transport address 
109     + transport_api extension (API extension!)
110     + service-transport extension (protocol extension)
111   - add calls to statistics in various places
112   - implement gnunet-transport (transport configurator / tester)
113   - UPnP-based IP detection
114     (Note: build library always, build service when libxml2/etc. are available)
115   - instantly filter addresses from *other* peers that 
116     are *equal* to our own address + port (i.e., localhost:2086).  We 
117     no longer filter those for outgoing (helps with loopback testing
118     and keeps the code clean), but we should filter strictly *impossible*
119     incoming addresses!  This is for efficiency, not correctness.
120   - We currently are happy to take any address told to us in a WELCOME
121     to our set of addresses; we should have some minimal threshold-based
122     scheme, limiting both the total number of addresses that we accept 
123     this way as well as requiring multiple confirmations; also, we
124     should possibly try to confirm that the given address works for
125     us ourselves (loopback-style) before adding it to the list
126     [SECURITY issue]
127     + we may be able to simplify WELCOME messages (no need to add 
128       addresses there anymore, but may help to learn them there anyway...).
129     + we probably want some kind of voting/counting for learning IP addresses
130       (maybe including IP addresses in ads proportional to how often others
131        report them? we at least need some protection against >64k HELLOs!),
132     + provide a way to give the user a list of "learned" IP addresses and
133       a way to easily "veto" addresses off the list!
134       => If MiM attacker uses vetoed address, blacklist the specific IP for
135          the presumed neighbour!
136   - not sure current way of doing ACKs works well-enough 
137     with unreliable transports where the ACK maybe lost;
138     the "is_new" check would then possibly prevent future
139     ACKs to be delivered, all while we're happily 
140     receiving messages from that peer!  Worse, the other
141     peer won't generate another ACK since it thinks we're
142     connected just fine...
143     Key questions:
144     + How necessary is ACKing in the first place? (alternatives?)
145     + Should we transmit ACKs in response to every HELLO? (would that 
146       fully address the problem?)
147   - latency measurements implemented in the transport
148     plugins makes it only work for bi-di transports
149     and results in code replication
150   - should latency be included in the ReceiveCallback and
151     NotifyConnect or passed on request?
152 * SETUP:
153   - auto-generate "defaults.conf" using gnunet-setup from "config.scm"
154   - integrate all options into "config.scm"
155   - change config-file writing to exclude options set to default values
156 * ARM:
157   - implement exponential back-off for service restarts
158   - better tracking of which config changes actually need to cause process restarts by ARM.
159   - have way to specify dependencies between services (to manage ARM restarts better)
160   - client-API is inefficient since it opens a TCP connection per service that is started
161     (instead of re-using connections).
162 * CORE: 
163   - code currently notifies clients about "encrypted" connections being up well before
164     we get the encrypted PONG; sometimes this may be OK (for topology killing
165     unwanted connnections), but of course not in general.  I suspect we want
166     to signal on PONG and have topology hook directly into transport to
167     kill plaintext connections before they have a chance to become encrypted
168     (may require minor hack in transport API)
169 * PEERINFO:
170   - have gnunet-peerinfo print actual host addresses again
171   - add option to gnunet-peerinfo to modify trust value
172 * POSTGRES-DB:
173   - finish postgres implementation; simplify other SQLs using new stats
174 * HTTPS transport
175   - PolariSSL for MHD?
176   - https integration
177 * GAP improvements:
178   - active reply route caching design & implementation of service,
179     gap extension!
180 * HOSTLIST:
181   - implement advertising of hostlist URL
182   - implement learning of hostlist URLs
183
184
185
186 => PRE-RELEASE
187
188 PHASE #4: [completion-goal: mid 2010]
189 * Documentation
190 * new webpage
191
192
193
194
195 Stuff to remember:
196 * Features eliminated from util:
197   - threading (goal: good riddance!)
198   - complex logging features [ectx-passing, target-kinds] (goal: good riddance!)
199   - complex configuration features [defaults, notifications] (goal: good riddance!)
200   - network traffic monitors (goal: eliminate)
201   - IPC semaphores (goal: d-bus? / eliminate?)
202   - second timers
203   - DNS lookup (goal: have async service; issue: still need synchronous resolution in places, current code may not be portable)
204   => code shrunk from 61 files to 34, 22k LOC to 15k LOC, 470k to 330k (with symbols)
205 * New features in util:
206   - scheduler
207   - service and program boot-strap code
208 * Major changes in util:
209   - more expressive server (replaces selector)
210 * Open questions: 
211   - how to integrate scheduler with GTK event loop!
212
213
214
215 Test coverage:
216 * UTIL      : 78.7%
217 * HELLO     : 93.7%
218 * ARM       : 69.9%
219 * RESOLVER  : 60.4%
220 * STATISTICS: 82.8%
221 * PEERINFO  : 71.5%
222 * TRANSPORT : 70.9%
223 * CORE      : 65.8%
224 ===================
225 * TOTAL     : 74.9%
226
227 Not yet tested:
228 * HOSTLIST  :  0.0%
229 * TOPOLOGY  :  0.0%