(no commit message)
[oweals/gnunet.git] / TODO
1 0.9.0pre1:
2 * FS: [CG]
3   - test indexing
4   - test migration
5   - TTL/priority calculations
6   - hot-path routing, load considerations
7   - statistics
8   - active reply route caching design & implementation of service; gap extension!
9   - Indexing:
10 May 16 12:49:50 fs-13737 WARNING `open' failed on file `/home/grothoff/svn/gnunet/src/fs/H/\1a' at disk.c:1253 with error: No such file or directory
11 May 16 12:49:50 fs-13737 WARNING Could not access indexed file `ENUTBMBR' at offset 2064384: No such file or directory
12     NOTE: corrupted filename in open message
13     NOTE: odd directory name in open message
14
15 This calls 'receive' while receive is pending!
16
17 #0  0x00002b53fc14ef45 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
18 #1  0x00002b53fc151d80 in *__GI_abort () at abort.c:88
19 #2  0x00002b53fbcda6e4 in GNUNET_CONNECTION_receive (sock=0x2021740, max=65536, timeout=..., receiver=0x2b53fbcd43de <receive_helper>, receiver_cls=0x2031880) at connection.c:1180
20 #3  0x00002b53fbcd48a5 in GNUNET_CLIENT_receive (sock=0x2031880, handler=0x2b53fb6bc695 <process_result_message>, handler_cls=0x208b740, timeout=...) at client.c:535
21 #4  0x00002b53fb6bcd8b in GNUNET_DATASTORE_get_next (h=0x2034370, more=1) at datastore_api.c:1237
22 #5  0x00002b53fb6bce5b in GNUNET_DATASTORE_cancel (qe=0x208b740) at datastore_api.c:1271
23 #6  0x00000000004044c1 in shutdown_task (cls=0x0, tc=0x7fff251a8b00) at gnunet-service-fs.c:1376
24 #7  0x00002b53fbcf1f50 in run_ready (sched=0x7fff251a8b70) at scheduler.c:514
25 #8  0x00002b53fbcf2360 in GNUNET_SCHEDULER_run (task=0x2b53fbcf77e7 <service_task>, task_cls=0x7fff251a8e20) at scheduler.c:642
26 #9  0x00002b53fbcf86da in GNUNET_SERVICE_run (argc=3, argv=0x7fff251a9048, serviceName=0x409845 "fs", opt=GNUNET_SERVICE_OPTION_NONE, task=0x40801f <run>, task_cls=0x0) at service.c:1404
27 #10 0x0000000000408127 in main (argc=3, argv=0x7fff251a9048) at gnunet-service-fs.c:3536
28
29
30 May 18 10:53:51 transport-8149 WARNING External protocol violation detected at plugin_transport_tcp.c:1275.
31
32 * TBENCH: [MW]
33   - good to have for transport/DV evaluation! 
34 * DV: [Nate]
35   - write DV API (need to move declarations from dv_api.c to gnunet_dv_service.h!)
36   - implement DV service 
37   - implement DV library (looks done)
38   - implement DV transport plugin
39   - implement testcases 
40   - implement performance tests (needs tbench)
41 * TOPOLOGY:
42   - needs more testing (especially F2F topology) & transport blacklisting
43 * UTIL:
44   - only connect() sockets that are ready (select()) [Nils]
45     [On W32, we need to select after calling socket before doing connect etc.]
46   - add support for UNIX domain sockets [CG]
47 * GNUNET-GTK:
48   - use g_main_context_set_poll_func to integrate GTK with GNUnet Scheduler!? (YUCK!)
49   - OR: add scheduler API to enable integration with GTK main loop instead of doing our own select
50   - use g_main_context_pending, g_main_context_query / g_main_context_check / g_main_context_dispatch
51     and NEVER g_main_loop_run (can this be done? might be the clean way to do this! But how
52     to integrate this with "gtk_main"?  Docu says:
53     "It's OK to use the GLib main loop directly instead of gtk_main(), though it involves 
54      slightly more typing. See GMainLoop in the GLib documentation."
55     => so maybe it "just works"?
56 * SETUP:
57   - design & implement new setup tool
58
59 0.9.0pre2:
60 * TRACEKIT: [MW]
61   - good to have for DV/DHT evaluation!
62 * DHT: [Nate]
63   - implement DHT service 
64   - implement testcases
65   - implement performance tests
66 * TRANSPORT:
67   - HTTP backend [MW]
68 * ARM: [Safey]
69   - better crash management (attach debugging support, capture and analyze
70     debug output, detect random vs. deterministic crashes)
71   - discover dependencies between services
72     => need UNIX domain sockets first!
73   - handle gnunet-arm -k in combination with auto-start magic (what is the right thing here?)
74 * FS: [CG]
75   - datastore reservation (publishing)
76   - location URIs (publish, search, download)
77   - unindex on index failure
78   - utilize in-line files in meta data always (including in search results or
79     when download is triggered manually and for probes); currently the data is
80     only used when users do a general 'recursive' download
81   - non-anonymous FS service (needs DHT)
82     + DHT integration for search
83     + CS-DHT-functions (DHT-put of LOC)
84     + P2P-functions (DHT-get)
85   - collection API & tests
86     + gnunet-pseudonym (collection support)
87   - implement FS performance tests
88     + insert
89     + download
90     + search
91     + unindex
92 * MIGRATION:
93   - improved content selection (not just 'get_random')
94
95 0.9.0pre3:
96 * Determine RC bugs and fix those!
97 * TESTING: [Nate]
98   - modify configuration to allow controlling connections for non-local starts
99   - testbed creation with topology (needs working F2F topology) 
100   - testbed with churn 
101   - implement testcases for distributed testing
102   - test basic peer re-configure 
103   - test topology creation 
104   - test churn generation 
105   - consider changing API for peer-group termination to 
106     call continuation when done
107 * NAT/UPNP: [MW]
108   - finalize API design
109   - code clean up
110   - testing
111   - integration with transport service
112 * MYSQL database backends: [CG]
113   - datacache
114   - datastore
115 * FS:
116   - reconstruct IBLOCKS from DBLOCKS if possible (during download; see FIXME in fs_download)
117   - add support for pushing "already seen" search results to FS service for bloomfilter (can wait)
118   - use different 'priority' for probe downloads vs. normal downloads
119 * ARM:
120   - better tracking of which config changes actually need to cause process restarts by ARM.
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...