A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
examples-to-run.py
Go to the documentation of this file.
1
#! /usr/bin/env python3
2
3
# A list of C++ examples to run in order to ensure that they remain
4
# buildable and runnable over time. Each tuple in the list contains
5
#
6
# (example_name, do_run, do_valgrind_run).
7
#
8
# See test.py for more information.
9
cpp_examples = [
10
(
"mixed-wired-wireless"
,
"True"
,
"True"
),
11
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::AarfcdWifiManager"
,
"True"
,
"True"
),
12
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::AmrrWifiManager"
,
"True"
,
"False"
),
13
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::CaraWifiManager"
,
"True"
,
"False"
),
14
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::IdealWifiManager"
,
"True"
,
"False"
),
15
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::MinstrelWifiManager"
,
"True"
,
"False"
),
16
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::OnoeWifiManager"
,
"True"
,
"False"
),
17
(
"wifi-multirate --totalTime=0.3s --rateManager=ns3::RraaWifiManager"
,
"True"
,
"False"
),
18
(
"wifi-adhoc"
,
"False"
,
"True"
),
# Takes too long to run
19
(
"wifi-ap --verbose=0"
,
"True"
,
"True"
),
# Don't let it spew to stdout
20
(
"wifi-clear-channel-cmu"
,
"False"
,
"True"
),
# Requires specific hardware
21
(
"wifi-simple-adhoc"
,
"True"
,
"True"
),
22
(
"wifi-simple-adhoc-grid"
,
"True"
,
"True"
),
23
(
"wifi-simple-infra"
,
"True"
,
"True"
),
24
(
"wifi-simple-interference"
,
"True"
,
"True"
),
25
(
"wifi-wired-bridging"
,
"True"
,
"True"
),
26
(
"wifi-sleep"
,
"True"
,
"True"
),
27
(
"wifi-blockack"
,
"True"
,
"True"
),
28
(
"wifi-timing-attributes --simulationTime=1s"
,
"True"
,
"True"
),
29
(
30
"wifi-power-adaptation-distance --manager=ns3::ParfWifiManager --outputFileName=parf --steps=5 --stepsSize=10"
,
31
"True"
,
32
"True"
,
33
),
34
(
35
"wifi-power-adaptation-distance --manager=ns3::AparfWifiManager --outputFileName=aparf --steps=5 --stepsSize=10"
,
36
"True"
,
37
"False"
,
38
),
39
(
40
"wifi-power-adaptation-distance --manager=ns3::RrpaaWifiManager --outputFileName=rrpaa --steps=5 --stepsSize=10"
,
41
"True"
,
42
"False"
,
43
),
44
(
45
"wifi-rate-adaptation-distance --standard=802.11a --staManager=ns3::MinstrelWifiManager --apManager=ns3::MinstrelWifiManager --outputFileName=minstrel --stepsSize=50 --stepsTime=0.1"
,
46
"True"
,
47
"False"
,
48
),
49
(
50
"wifi-rate-adaptation-distance --standard=802.11a --staManager=ns3::MinstrelWifiManager --apManager=ns3::MinstrelWifiManager --outputFileName=minstrel --stepsSize=50 --stepsTime=0.1 --STA1_x=-200"
,
51
"True"
,
52
"False"
,
53
),
54
(
55
"wifi-rate-adaptation-distance --staManager=ns3::MinstrelHtWifiManager --apManager=ns3::MinstrelHtWifiManager --outputFileName=minstrelHt --shortGuardInterval=true --channelWidth=40 --stepsSize=50 --stepsTime=0.1"
,
56
"True"
,
57
"False"
,
58
),
59
(
"wifi-power-adaptation-interference --simuTime=5"
,
"True"
,
"False"
),
60
(
"wifi-dsss-validation"
,
"True"
,
"True"
),
61
(
"wifi-ofdm-validation"
,
"True"
,
"True"
),
62
(
"wifi-ofdm-ht-validation"
,
"True"
,
"True"
),
63
(
"wifi-ofdm-vht-validation"
,
"True"
,
"True"
),
64
(
"wifi-ofdm-he-validation"
,
"True"
,
"True"
),
65
(
"wifi-error-models-comparison"
,
"True"
,
"True"
),
66
(
"wifi-80211n-mimo --simulationTime=0.1s --step=10"
,
"True"
,
"True"
),
67
(
68
"wifi-ht-network --simulationTime=0.2s --frequency=5 --useRts=0 --minExpectedThroughput=5 --maxExpectedThroughput=135"
,
69
"True"
,
70
"True"
,
71
),
72
(
73
"wifi-ht-network --simulationTime=0.2s --frequency=5 --useRts=1 --minExpectedThroughput=5 --maxExpectedThroughput=132"
,
74
"True"
,
75
"True"
,
76
),
77
(
78
"wifi-ht-network --simulationTime=0.2s --frequency=2.4 --useRts=0 --minExpectedThroughput=5 --maxExpectedThroughput=132"
,
79
"True"
,
80
"True"
,
81
),
82
(
83
"wifi-ht-network --simulationTime=0.2s --frequency=2.4 --useRts=1 --minExpectedThroughput=5 --maxExpectedThroughput=129"
,
84
"True"
,
85
"True"
,
86
),
87
(
88
"wifi-vht-network --simulationTime=0.2s --useRts=0 --minExpectedThroughput=5 --maxExpectedThroughput=620"
,
89
"True"
,
90
"True"
,
91
),
92
(
93
"wifi-vht-network --simulationTime=0.2s --useRts=1 --minExpectedThroughput=5 --maxExpectedThroughput=557"
,
94
"True"
,
95
"True"
,
96
),
97
(
98
"wifi-vht-network --simulationTime=0.2s --useRts=0 --use80Plus80=1 --minExpectedThroughput=5 --maxExpectedThroughput=620"
,
99
"True"
,
100
"True"
,
101
),
102
(
103
"wifi-he-network --simulationTime=0.25s --frequency=5 --useRts=0 --minExpectedThroughput=6 --maxExpectedThroughput=844"
,
104
"True"
,
105
"True"
,
106
),
107
(
108
"wifi-he-network --simulationTime=0.25s --frequency=5 --useRts=0 --use80Plus80=1 --minExpectedThroughput=6 --maxExpectedThroughput=844"
,
109
"True"
,
110
"True"
,
111
),
112
(
113
"wifi-he-network --simulationTime=0.3s --frequency=5 --useRts=0 --useExtendedBlockAck=1 --minExpectedThroughput=6 --maxExpectedThroughput=1033"
,
114
"True"
,
115
"True"
,
116
),
117
(
118
"wifi-he-network --simulationTime=0.3s --frequency=5 --useRts=1 --minExpectedThroughput=6 --maxExpectedThroughput=745"
,
119
"True"
,
120
"True"
,
121
),
122
(
123
"wifi-he-network --simulationTime=0.25s --frequency=2.4 --useRts=0 --minExpectedThroughput=6 --maxExpectedThroughput=238"
,
124
"True"
,
125
"True"
,
126
),
127
(
128
"wifi-he-network --simulationTime=0.3s --frequency=2.4 --useRts=1 --minExpectedThroughput=6 --maxExpectedThroughput=223"
,
129
"True"
,
130
"True"
,
131
),
132
(
133
"wifi-he-network --simulationTime=0.3s --udp=0 --downlink=1 --useRts=0 --nStations=4 --dlAckType=ACK-SU-FORMAT --enableUlOfdma=1 --enableBsrp=0 --mcs=4 --minExpectedThroughput=20 --maxExpectedThroughput=212"
,
134
"True"
,
135
"True"
,
136
),
137
(
138
"wifi-he-network --simulationTime=0.3s --frequency=2.4 --udp=0 --downlink=1 --useRts=1 --nStations=5 --dlAckType=MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mcs=5 --minExpectedThroughput=21 --maxExpectedThroughput=56"
,
139
"True"
,
140
"True"
,
141
),
142
(
143
"wifi-he-network --simulationTime=0.3s --udp=0 --downlink=1 --useRts=0 --nStations=5 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=0 --mcs=6 --muSchedAccessReqInterval=50ms --minExpectedThroughput=31 --maxExpectedThroughput=290"
,
144
"True"
,
145
"True"
,
146
),
147
(
148
"wifi-he-network --simulationTime=0.3s --udp=1 --downlink=0 --useRts=1 --nStations=5 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mcs=5 --muSchedAccessReqInterval=50ms --minExpectedThroughput=46 --maxExpectedThroughput=327"
,
149
"True"
,
150
"True"
,
151
),
152
(
153
"wifi-eht-network --simulationTime=0.1s --frequency=5 --useRts=0 --minExpectedThroughput=6 --maxExpectedThroughput=760"
,
154
"True"
,
155
"True"
,
156
),
157
(
158
"wifi-eht-network --simulationTime=0.1s --frequency=5 --useRts=0 --use80Plus80=1 --minExpectedThroughput=6 --maxExpectedThroughput=760"
,
159
"True"
,
160
"True"
,
161
),
162
(
163
"wifi-eht-network --simulationTime=0.1s --frequency=5 --useRts=0 --mpduBufferSize=1024 --frequency2=6 --minExpectedThroughput=7 --maxExpectedThroughput=1444"
,
164
"True"
,
165
"True"
,
166
),
167
(
168
"wifi-eht-network --simulationTime=0.1s --frequency=5 --useRts=1 --minExpectedThroughput=6 --maxExpectedThroughput=660"
,
169
"True"
,
170
"True"
,
171
),
172
(
173
"wifi-eht-network --simulationTime=0.1s --frequency=2.4 --useRts=0 --mpduBufferSize=512 --frequency2=5 --minExpectedThroughput=7 --maxExpectedThroughput=512"
,
174
"True"
,
175
"True"
,
176
),
177
(
178
"wifi-eht-network --simulationTime=0.1s --frequency=2.4 --useRts=1 --minExpectedThroughput=5 --maxExpectedThroughput=240"
,
179
"True"
,
180
"True"
,
181
),
182
(
183
"wifi-eht-network --simulationTime=0.23s --udp=0 --downlink=1 --useRts=0 --nStations=4 --dlAckType=ACK-SU-FORMAT --enableUlOfdma=1 --enableBsrp=0 --mcs=6 --frequency2=6 --minExpectedThroughput=35 --maxExpectedThroughput=404"
,
184
"True"
,
185
"True"
,
186
),
187
(
188
"wifi-eht-network --simulationTime=0.25s --frequency=2.4 --udp=0 --downlink=1 --useRts=0 --nStations=5 --dlAckType=MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mcs=5 --frequency2=5 --mpduBufferSize=1024 --minExpectedThroughput=50 --maxExpectedThroughput=120"
,
189
"True"
,
190
"True"
,
191
),
192
(
193
"wifi-eht-network --simulationTime=0.3s --udp=0 --downlink=1 --useRts=1 --nStations=5 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=0 --mcs=6 --muSchedAccessReqInterval=50ms --frequency2=2.4 --minExpectedThroughput=50 --maxExpectedThroughput=140"
,
194
"True"
,
195
"True"
,
196
),
197
(
198
"wifi-eht-network --simulationTime=0.25s --udp=0 --downlink=0 --useRts=0 --nStations=4 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mpduBufferSize=1024 --mcs=8 --muSchedAccessReqInterval=45ms --frequency2=6 --minExpectedThroughput=50 --maxExpectedThroughput=550 --RngRun=7"
,
199
"True"
,
200
"True"
,
201
),
202
(
203
"wifi-eht-network --simulationTime=0.2s --frequency=2.4 --frequency2=5 --guardInterval=1600 --udp=0 --downlink=1 --useRts=0 --mpduBufferSize=512 --emlsrLinks=0,1 --emlsrPaddingDelay=32 --emlsrTransitionDelay=32 --channelSwitchDelay=32us --emlsrAuxSwitch=True --emlsrAuxTxCapable=True --minExpectedThroughput=5 --maxExpectedThroughput=200"
,
204
"True"
,
205
"True"
,
206
),
207
(
208
"wifi-eht-network --simulationTime=0.2s --frequency=2.4 --frequency2=5 --guardInterval=1600 --udp=0 --downlink=1 --useRts=1 --mpduBufferSize=512 --emlsrLinks=0,1 --emlsrPaddingDelay=64 --emlsrTransitionDelay=64 --channelSwitchDelay=64us --emlsrMgrTypeId=ns3::AdvancedEmlsrManager --emlsrAuxSwitch=False --emlsrAuxTxCapable=True --minExpectedThroughput=5 --maxExpectedThroughput=190"
,
209
"True"
,
210
"True"
,
211
),
212
(
213
"wifi-eht-network --simulationTime=0.2s --frequency=2.4 --frequency2=5 --guardInterval=1600 --udp=0 --downlink=0 --useRts=0 --mpduBufferSize=512 --emlsrLinks=0,1 --emlsrPaddingDelay=0 --emlsrTransitionDelay=0 --channelSwitchDelay=1ns --emlsrMgrTypeId=ns3::AdvancedEmlsrManager --emlsrAuxSwitch=False --emlsrAuxTxCapable=False --minExpectedThroughput=5 --maxExpectedThroughput=40 --RngRun=7"
,
214
"True"
,
215
"True"
,
216
),
217
(
218
"wifi-eht-network --simulationTime=0.3s --frequency=2.4 --frequency2=5 --frequency3=6 --guardInterval=1600 --udp=0 --downlink=1 --useRts=0 --mpduBufferSize=512 --emlsrLinks=0,1,2 --emlsrPaddingDelay=32 --emlsrTransitionDelay=32 --channelSwitchDelay=32us --emlsrAuxSwitch=True --emlsrAuxTxCapable=True --nStations=4 --dlAckType=AGGR-MU-BAR --enableUlOfdma=1 --enableBsrp=0 --mcs=0,3,5,9,10 --minExpectedThroughput=8 --maxExpectedThroughput=300 --RngRun=6"
,
219
"True"
,
220
"True"
,
221
),
222
(
223
"wifi-eht-network --simulationTime=0.3s --frequency=2.4 --frequency2=5 --frequency3=6 --guardInterval=1600 --udp=0 --downlink=0 --useRts=1 --mpduBufferSize=512 --emlsrLinks=0,1,2 --emlsrPaddingDelay=64 --emlsrTransitionDelay=64 --channelSwitchDelay=64us --emlsrAuxSwitch=False --emlsrAuxTxCapable=True --nStations=4 --dlAckType=MU-BAR --enableUlOfdma=1 --enableBsrp=1 --mcs=1,4,8,11,13 --minExpectedThroughput=10 --maxExpectedThroughput=260 --RngRun=4"
,
224
"True"
,
225
"True"
,
226
),
227
(
228
"wifi-eht-network --simulationTime=0.3s --frequency=2.4 --frequency2=5 --frequency3=6 --guardInterval=1600 --udp=0 --downlink=0 --useRts=1 --mpduBufferSize=512 --emlsrLinks=0,1,2 --emlsrPaddingDelay=0 --emlsrTransitionDelay=0 --channelSwitchDelay=1ns --emlsrMgrTypeId=ns3::AdvancedEmlsrManager --emlsrAuxSwitch=False --emlsrAuxTxCapable=False --nStations=4 --dlAckType=ACK-SU-FORMAT --enableUlOfdma=1 --enableBsrp=1 --mcs=1,5,8,11 --minExpectedThroughput=8 --maxExpectedThroughput=288 --RngRun=5"
,
229
"True"
,
230
"True"
,
231
),
232
(
233
"wifi-simple-ht-hidden-stations --simulationTime=1s --enableRts=0 --nMpdus=32 --minExpectedThroughput=59 --maxExpectedThroughput=60"
,
234
"True"
,
235
"True"
,
236
),
237
(
238
"wifi-simple-ht-hidden-stations --simulationTime=1s --enableRts=1 --nMpdus=32 --minExpectedThroughput=57 --maxExpectedThroughput=58"
,
239
"True"
,
240
"True"
,
241
),
242
(
"wifi-mixed-network --simulationTime=1s"
,
"True"
,
"True"
),
243
(
"wifi-aggregation --simulationTime=1s --verifyResults=1"
,
"True"
,
"True"
),
244
(
"wifi-txop-aggregation --simulationTime=1s --verifyResults=1"
,
"True"
,
"True"
),
245
(
"wifi-80211e-txop --simulationTime=1s --verifyResults=1"
,
"True"
,
"True"
),
246
(
247
"wifi-multi-tos --simulationTime=1s --nWifi=16 --useRts=1 --useShortGuardInterval=1"
,
248
"True"
,
249
"True"
,
250
),
251
(
"wifi-tcp"
,
"True"
,
"True"
),
252
(
"wifi-hidden-terminal --wifiManager=Arf"
,
"True"
,
"True"
),
253
(
"wifi-hidden-terminal --wifiManager=Aarf"
,
"True"
,
"True"
),
254
(
"wifi-hidden-terminal --wifiManager=Aarfcd"
,
"True"
,
"True"
),
255
(
"wifi-hidden-terminal --wifiManager=Onoe"
,
"True"
,
"True"
),
256
(
"wifi-hidden-terminal --wifiManager=Amrr"
,
"True"
,
"True"
),
257
(
"wifi-hidden-terminal --wifiManager=Minstrel"
,
"True"
,
"True"
),
258
(
"wifi-hidden-terminal --wifiManager=Cara"
,
"True"
,
"True"
),
259
(
"wifi-hidden-terminal --wifiManager=Rraa"
,
"True"
,
"True"
),
260
(
"wifi-hidden-terminal --wifiManager=Rrpaa"
,
"True"
,
"True"
),
261
(
262
"wifi-spectrum-per-example --distance=52 --index=3 --wifiType=ns3::SpectrumWifiPhy --simulationTime=1s"
,
263
"True"
,
264
"True"
,
265
),
266
(
267
"wifi-spectrum-per-example --distance=24 --index=31 --wifiType=ns3::YansWifiPhy --simulationTime=1s"
,
268
"True"
,
269
"False"
,
270
),
271
(
272
"wifi-spectrum-per-interference --distance=24 --index=31 --simulationTime=1s --waveformPower=0.1"
,
273
"True"
,
274
"True"
,
275
),
276
(
"wifi-spectrum-saturation-example --simulationTime=1s --index=63"
,
"True"
,
"True"
),
277
(
278
"wifi-backward-compatibility --apVersion=80211a --staVersion=80211n_5GHZ --simulationTime=1s"
,
279
"True"
,
280
"True"
,
281
),
282
(
283
"wifi-backward-compatibility --apVersion=80211a --staVersion=80211n_5GHZ --apRaa=Ideal --staRaa=Ideal --simulationTime=1s"
,
284
"True"
,
285
"False"
,
286
),
287
(
288
"wifi-backward-compatibility --apVersion=80211a --staVersion=80211ac --simulationTime=1s"
,
289
"True"
,
290
"False"
,
291
),
292
(
293
"wifi-backward-compatibility --apVersion=80211a --staVersion=80211ac --apRaa=Ideal --staRaa=Ideal --simulationTime=1s"
,
294
"True"
,
295
"False"
,
296
),
297
(
298
"wifi-multicast --minExpectedPackets=10"
,
299
"True"
,
300
"True"
,
301
),
302
(
303
"wifi-multicast --gcrRetransmissionPolicy=GcrUr --minExpectedPackets=10"
,
304
"True"
,
305
"True"
,
306
),
307
(
308
"wifi-multicast --gcrRetransmissionPolicy=GcrUr --multicastFrameErrorRate=0.2 --minExpectedPackets=10"
,
309
"True"
,
310
"True"
,
311
),
312
(
313
"wifi-multicast --gcrRetransmissionPolicy=GcrUr --maxAmpduLength=65535 --maxPackets=0 --nStations=4 --dataRate=50Mbps --gcrProtection=Rts-Cts --rtsThreshold=0 --simulationTime=1 --minExpectedThroughput=35 --maxExpectedThroughput=40"
,
314
"True"
,
315
"True"
,
316
),
317
(
318
"wifi-multicast --gcrRetransmissionPolicy=GcrUr --maxAmpduLength=65535 --maxPackets=0 --nStations=4 --dataRate=50Mbps --gcrProtection=Cts-To-Self --simulationTime=1 --minExpectedThroughput=40 --maxExpectedThroughput=45"
,
319
"True"
,
320
"True"
,
321
),
322
(
323
"wifi-multicast --gcrRetransmissionPolicy=GcrBlockAck --minExpectedPackets=10"
,
324
"True"
,
325
"True"
,
326
),
327
(
328
"wifi-multicast --gcrRetransmissionPolicy=GcrBlockAck --multicastFrameErrorRate=0.2 --minExpectedPackets=10"
,
329
"True"
,
330
"True"
,
331
),
332
(
333
"wifi-multicast --gcrRetransmissionPolicy=GcrBlockAck --maxAmpduLength=65535 --maxPackets=0 --nStations=4 --dataRate=100Mbps --gcrProtection=Rts-Cts --rtsThreshold=0 --simulationTime=1s --minExpectedThroughput=100 --maxExpectedThroughput=100"
,
334
"True"
,
335
"True"
,
336
),
337
(
338
"wifi-multicast --gcrRetransmissionPolicy=GcrBlockAck --maxAmpduLength=65535 --maxPackets=0 --nStations=4 --dataRate=100Mbps --gcrProtection=Cts-To-Self --simulationTime=1s --minExpectedThroughput=100 --maxExpectedThroughput=100"
,
339
"True"
,
340
"True"
,
341
),
342
]
343
344
# A list of Python examples to run in order to ensure that they remain
345
# runnable over time. Each tuple in the list contains
346
#
347
# (example_name, do_run).
348
#
349
# See test.py for more information.
350
python_examples = [
351
(
"wifi-ap.py"
,
"True"
),
352
(
"mixed-wired-wireless.py"
,
"True"
),
353
]
examples
wireless
examples-to-run.py
Generated on Tue Apr 8 2025 15:27:10 for ns-3 by
1.11.0