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