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