1 /* Copyright (c) 2012-2019. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef _S4U_KADEMLIA_HPP
8 #define _S4U_KADEMLIA_HPP
10 #include <simgrid/s4u.hpp>
17 #define max_join_trials 4
19 #define RECEIVE_TIMEOUT 1
21 #define find_node_timeout 10
22 #define find_node_global_timeout 50
24 #define kademlia_alpha 3
25 #define BUCKET_SIZE 20
27 #define identifier_size 32
28 #define max_answers_to_ask 20
30 #define random_lookup_interval 100
34 #define JOIN_BUCKETS_QUERIES 5
36 #define RANDOM_LOOKUP_NODE 0