-
Notifications
You must be signed in to change notification settings - Fork 1
/
lunes_constants.h
executable file
·32 lines (28 loc) · 1.38 KB
/
lunes_constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ##############################################################################################
* Advanced RTI System, ARTÌS http://pads.cs.unibo.it
* Large Unstructured NEtwork Simulator (LUNES)
*
* Description:
* Model level parameters for LUNES
*
* Authors:
* First version by Gabriele D'Angelo <g.dangelo@unibo.it>
*
############################################################################################### */
#ifndef __LUNES_CONSTANTS_H
#define __LUNES_CONSTANTS_H
// General parameters
#define TOPOLOGY_GRAPH_FILE "test-graph-cleaned.dot" // Graph definition to be used for network construction
#define MAX_TTL 10 // TTL of new messages, standard value
#define MEAN_NEW_MESSAGE 2000 // Generation of new transactions and checks: exponential distribution, mean value
#define PERC_GENERATORS 100.00 // Percentage of nodes that generate new messages
// Dissemination protocols
#define BROADCAST 0 // Probabilistic broadcast
#define GOSSIP_FIXED_PROB 1 // Fixed probability
#define DANDELION 8
#define DANDELIONPLUS 6
//
#ifdef DEGREE_DEPENDENT_GOSSIP_SUPPORT
#define DEGREE_DEPENDENT_GOSSIP 7 // Degree Dependent Gossip
#endif
#endif /* __LUNES_CONSTANTS_H */