/
perfor.cc
49 lines (35 loc) · 1.09 KB
/
perfor.cc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "args_sim.hpp"
#include "sim.hpp"
#include <iostream>
using namespace std;
int
main (int argc, const char* argv[])
{
// Arguments for the simulation.
args_sim a;
// The down rate in bps.
a.drate = 10 * 1e9;
// The up rate in bps.
a.urate = 2.5 * 1e9;
// The splitting ratio.
a.sratio = 32;
// The splitting probability.
a.s = 0.3;
// Integer parameters.
a.stages = 3;
// The probabilities that a remote node is active.
a.qs = {0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0};
// The probabilities that an ONU is connected to the other operator.
a.rs = {0, 0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009,
0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09,
0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0};
// The utilization values.
a.uvs = {1.0, 1.05, 1.1, 1.15, 1.2, 1.25, 1.3, 1.35, 1.4, 1.45,
1.5, 1.55, 1.6, 1.65, 1.7, 1.75, 1.8, 1.85, 1.9, 1.95,
2.0};
// The number of seeds, i.e., simulation runs for the given
// parameters.
a.seeds = 300;
sim<graph> s(a, cout);
return 0;
}