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