-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathenv.sh
executable file
·81 lines (69 loc) · 2.37 KB
/
env.sh
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
#!/bin/bash
# Environment configuration
# Don't use relative paths as some commands are executed in a rooted sub-shell
# File and directory paths
# qperf binary
QPERF_BIN="$HOME/build-qperf/qperf"
# Certificate and key used by qperf
QPERF_CRT="$HOME/server.crt"
QPERF_KEY="$HOME/server.key"
# pepsal binary
PEPSAL_BIN="$HOME/pepsal/src/pepsal"
# iperf3 binary
IPERF_BIN="/usr/bin/iperf3"
# Default OpenSAND entity configurations
OPENSAND_CONFIGS="${SCRIPT_DIR}/config"
# Nginx configuration
NGINX_CONFIG="${SCRIPT_DIR}/config/nginx.conf"
# Output directory for all emulations (one subdirectory per emulation will be created)
RESULTS_DIR="$HOME/out"
# Opensand network config
# Emulation network used by the opensand entities
EMU_NET="10.3.3.0/24"
EMU_GW_IP="10.3.3.1/24"
EMU_ST_IP="10.3.3.2/24"
EMU_SAT_IP="10.3.3.254/24"
# Overlay network created by opensand to forward data through the emulated satellite
OVERLAY_NET_IPV6="fd81::/64"
OVERLAY_NET="10.81.81.0/24"
OVERLAY_GW_IP="10.81.81.1/24"
OVERLAY_ST_IP="10.81.81.2/24"
# Network at the gateway
GW_LAN_NET_IPV6="fd00:10:115:8::/64"
GW_LAN_NET="10.115.8.0/24"
GW_LAN_ROUTER_IP="10.115.8.1/24"
GW_LAN_PROXY_IP="10.115.8.10/24"
# Network at the satellite terminal
ST_LAN_NET_IPV6="fd00:192:168:3::/64"
ST_LAN_NET="192.168.3.0/24"
ST_LAN_ROUTER_IP="192.168.3.1/24"
ST_LAN_PROXY_IP="192.168.3.24/24"
# Network for the server
SV_LAN_NET="10.30.4.0/24"
SV_LAN_ROUTER_IP="10.30.4.1/24"
SV_LAN_SERVER_IP="10.30.4.18/24"
# Network for the client
CL_LAN_NET="192.168.26.0/24"
CL_LAN_ROUTER_IP="192.168.26.1/24"
CL_LAN_CLIENT_IP="192.168.26.34/24"
# Bridge mac addresses (specified in opensand configuration, see topology.conf)
BR_ST_MAC="de:ad:be:ef:00:02"
BR_EMU_MAC="de:ad:be:ef:00:ff"
BR_GW_MAC="de:ad:be:ef:00:01"
# Timings and advanced config
# How long to run the measurements (in seconds)
MEASURE_TIME=30
# Seconds to wait after the environment has been started and before the measurements are executed
MEASURE_WAIT=3
# Seconds to wait after a measurement before stopping the server and environment
MEASURE_GRACE=3
# Seconds to wait after one measurement run
RUN_WAIT=1
# Seconds between reports of a measurement
REPORT_INTERVAL=0.1
# Seconds to wait after sending a stop signal to a running command
CMD_SHUTDOWN_WAIT=0.1
# Seconds to wait after opening a new tmux session
TMUX_INIT_WAIT=0.1
# Name of the tmux socket to run all the sessions on
TMUX_SOCKET="opensand"