-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure-testbed.py
executable file
·35 lines (26 loc) · 907 Bytes
/
configure-testbed.py
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
#!/usr/bin/env python3
#
# This script configures the network so that you can run manual
# traffic on it. Change it as you like.
#
# You normally don't need to run this script as the framework takes
# care of setting up the tested for you.
#
from aqmt import Testbed, logger
if __name__ == '__main__':
testbed = Testbed()
testbed.bitrate = 100*1000*1000
testbed.rtt_clients = 0 # in ms
testbed.rtt_servera = 15 # in ms
testbed.rtt_serverb = 15 # in ms
testbed.netem_clients_params = ""
testbed.netem_servera_params = ""
testbed.netem_serverb_params = ""
#testbed.aqm('pie', 'ecn')
#testbed.aqm('fq_codel', 'ecn')
testbed.aqm('pfifo_aqmt')
testbed.cc('a', 'cubic', Testbed.ECN_ALLOW)
testbed.cc('b', 'cubic', Testbed.ECN_INITIATE)
testbed.reset(log_level=logger.INFO)
testbed.setup(log_level=logger.INFO)
print(testbed.get_setup())