1 /* Copyright (c) 2012-2020. 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 constexpr double FIND_NODE_TIMEOUT = 10.0;
18 constexpr double FIND_NODE_GLOBAL_TIMEOUT = 50.0;
20 constexpr unsigned KADEMLIA_ALPHA = 3;
21 constexpr unsigned BUCKET_SIZE = 20;
23 constexpr int IDENTIFIER_SIZE = 32;
25 constexpr double RANDOM_LOOKUP_INTERVAL = 100.0;
27 constexpr unsigned MAX_STEPS = 10;
29 constexpr unsigned JOIN_BUCKETS_QUERIES = 5;
31 constexpr unsigned RANDOM_LOOKUP_NODE = 0;