-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
122 lines (106 loc) · 3.49 KB
/
README
File metadata and controls
122 lines (106 loc) · 3.49 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
U2UP-NET SOFTWARE PROJECT
=========================
--------------------------------------------------------------------
Copyright (C) 2020 Samo Pogacnik <samo_pogacnik@t-2.net>
The U2UP-NET software project is provided under the terms of the
GNU Affero General Public License version 3, which is available in
the LICENSE file of this project.
--------------------------------------------------------------------
The U2UP-NET software is a "small-world-phenomenon" research attempt to
provide a sample network simulation and individual network node skeleton.
Features:
=========
- Check "design-notes" under docs...
Building:
=========
Configure:
----------
samo@hp450g3:~/Code/U2UP/u2up-net$
samo@hp450g3:~/Code/U2UP/u2up-net$ env BUILDIR=./build PREFIX=/usr/local ./configure
...
samo@hp450g3:~/Code/U2UP/u2up-net$
Make:
-----
samo@hp450g3:~/Code/U2UP/u2up-net$
samo@hp450g3:~/Code/U2UP/u2up-net$ make
...
samo@hp450g3:~/Code/U2UP/u2up-net$
Install:
--------
samo@hp450g3:~/Code/U2UP/u2up-net$
samo@hp450g3:~/Code/U2UP/u2up-net$ env DESTDIR=$(pwd)/install make install
...
samo@hp450g3:~/Code/U2UP/u2up-net$
Clean:
------
samo@hp450g3:~/Code/U2UP/u2up-net$
samo@hp450g3:~/Code/U2UP/u2up-net$ make clean
...
samo@hp450g3:~/Code/U2UP/u2up-net$
If you want to remove all files not under version control and you are using git:
--------------------------------------------------------------------------------
$ git clean -d -f -x
Simulation:
===========
$ ./u2up-netsim -h
Usage:
./u2up-netsim [options]
options:
-a, --auto-dump Automatically dump u2up network ring on node changes.
-b, --batch-nodes NUM Number of nodes to be created in a batch (default=1).
-m, --max-nodes NUM Maximum number of all nodes to be created (default=10).
-o, --outfile PREFIX Output [path/]filename prefix (default=./dump-net-ring).
-q, --log-quiet Disable all output.
-v, --log-verbose Enable verbose output.
-t, --log-trace Enable trace output.
-g, --log-debug Enable debug output.
-s, --log-syslog Enable syslog output (instead of stdout, stderr).
-n, --log-no-header No U2UP_LOG header added to every u2up_log_... output.
-f, --log-filter NAME Disable outout from U2UP_LOG module NAME prefix.
-h, --help Displays this text.
$
$ ./u2up-netsim -b 2 -m 10
batch-nodes: optarg=2
max-nodes: optarg=10
batch_nodes = 2
max_nodes = 10
outfile = ./dump-net-ring
start_time = 2020-05-23-1847
[94291.239380|6715|U2NETSIM] AUTH_BATCH timer set: 1 s
[94292.239508|6715|U2NETSIM] (0 nodes)
[94293.239792|6715|U2NETSIM] (2 nodes)
[94294.240624|6715|U2NETSIM] (4 nodes)
[94295.240996|6715|U2NETSIM] (6 nodes)
[94296.241264|6715|U2NETSIM] (8 nodes)
[94296.241401|6715|U2NETSIM] (all 10 nodes created)
...
$ ./u2up-netsim-cli -h
Usage:
./u2up-netsim-cli [options]
options:
-c, --cmd Execute command and exit.
-q, --quiet Disable all output.
-v, --verbose Enable verbose output.
-t, --trace Enable trace output.
-g, --debug Enable debug output.
-s, --syslog Redirect U2UP_LOG output to syslog (instead of stdout, stderr).
-n, --no-header No U2UP_LOG header added to every u2up_log_... output.
-h, --help Displays this text.
$
$ ./u2up-netsim-cli
netsim-cli>
netsim-cli> help
Press TAB-TAB to display all available commands.
Use TAB for auto-complete.
Use TAB-TAB for auto-suggest.
Use UP and DOWN keys to walk the commands history.
netsim-cli>
netsim-cli>
help
dump
log
node
quit
netsim-cli>
netsim-cli> quit
Bye...