Repository navigation
Run Scripts and NFQUEUE Lab
The repository includes scripts to create and reuse a local FikoRE NFQUEUE lab. This is the recommended workflow for real-traffic emulation.
The lab and the emulator configuration are separate concerns:
- The lab manages Linux namespaces,
vethpairs, routes andNFQUEUErules. - The
.inifile remains the source of truth for what FikoRE actually instantiates. - The
runaction usesCONFIG_FILEas-is and does not generate or patch a runtime copy.
-
run_scripts/run_fikore_nfqueue_lab.sh: creates, reuses, inspects and tears down the lab topology, then launches FikoRE on top of it. -
run_scripts/run_docker.sh: builds or launches the helper container for Docker backends. -
run_scripts/run_offline.sh: runs an offline simulation from a positional config file and then generates plots from the latest logs. -
run_scripts/run_emulated.sh: runs the NFQUEUE lab workflow with a positional emulation config file. -
run_scripts/run_api.sh: starts the control API, which serves the web dashboard onhttp://localhost:8100/and collects telemetry over UDP. See Runtime Control and Web Dashboard. -
run_scripts/run_iperf.sh: runs an offline iperf-shaped session throughfikore-iperf3on a scenario and forwards every argument. It createstransport/.venvon first use. -
run_scripts/fikorens,run_scripts/fikorens-open,run_scripts/fikorens-exec: wrappers to open shells or execute commands inside lab namespaces.
-
up: explicitly recreate the lab topology and save its state. -
run: launch FikoRE on the current lab. If no lab exists yet, it creates one first. -
status,shell,exec,capture-*,ue-add,ue-delanddown: reuse the saved lab state.
This avoids destructive behavior where the topology is recreated every time FikoRE is run.
UE to DN traffic always crosses the EMU node, which is where FikoRE runs and where the NFQUEUE rules are applied.
fkue1 ----\
fkue2 ----- EMU ---- fkdn
... /
Default addressing:
- UE1 to EMU:
10.201.1.2/30 <-> 10.201.1.1/30 - UE2 to EMU:
10.201.2.2/30 <-> 10.201.2.1/30 - DN to EMU:
10.255.0.2/24 <-> 10.255.0.1/24
Default queue mapping:
- UE1: UL
100, DL101 - UE2: UL
110, DL111
General formula:
UL = QUEUE_BASE + (UE - 1) * QUEUE_STEPDL = UL + 1
With the defaults, UE3 would use 120/121 only if the lab was created with enough UEs or if it is added later with ue-add 3.
All commands below assume the current directory is the repository root.
Create the lab:
sudo BACKEND=host UE_COUNT=2 run_scripts/run_fikore_nfqueue_lab.sh up
sudo run_scripts/run_fikore_nfqueue_lab.sh status
Open namespace shells:
run_scripts/fikorens-open dn
run_scripts/fikorens-open ue1
run_scripts/fikorens-open ue2
Run one-shot commands inside namespaces:
run_scripts/fikorens-exec dn iperf3 -s -p 5202
run_scripts/fikorens-exec ue1 iperf3 -c 10.255.0.2 -p 5202 -t 30
Start the dashboard:
FIKORE_API_HOST=0.0.0.0 bash run_scripts/run_api.sh
Launch FikoRE:
run_scripts/run_emulated.sh config/emulated_rural_n78_single_with_background.ini
Equivalent direct invocation:
sudo CONFIG_FILE="$PWD/config/emulated_rural_n78_single_with_background.ini" \
run_scripts/run_fikore_nfqueue_lab.sh run
The recommended emulated example is config/emulated_rural_n78_single_with_background.ini because it matches the default lab queue plan, keeps l4s_dual_queue: false so unattended baseline runs do not silently enable DualQ, adds simulated background users, and sends UDP telemetry to 127.0.0.1:8098, where the API collector listens. Use config/emulated_uma_n78_compare_with_background.ini or config/emulated_umi_n40_npn_compare_with_background.ini for an experiment that compares an L4S captured UE with a legacy one.
run_fikore_nfqueue_lab.sh does not rewrite monitoring keys. For host and docker-host, a collector on 127.0.0.1:8098 is usually fine if the .ini already says so. For Docker backends, keep CONFIG_FILE inside the repository so the container can read the same file through the bind mount. For docker-none, the .ini should explicitly target the host-side management IP, typically 172.30.0.1:8098.
Adding namespaces with ue-add does not modify the .ini; FikoRE only uses the UEs actually defined in the configuration file.