Fab is run the router between the client and the server.
It depends on local router info so it can run only there for the moment. Specifically inside the directory home/xarokk/roc/tunneling
.
As currently configured fab support the following commands:
xarokk@Cellsim:~/roc/tunneling$ fab --list
Available commands:
clear_borrowing
clear_codel
clear_ipip
clear_limit
clear_sfq
clear_tcplp
clear_tcpvegas
delete_nat
restore_nat
run_exp Experiment traffic and background traffic from client, if mix chosen
setup_borrowing
setup_codel
setup_ipip
setup_limit
setup_sfq
setup_tcplp
setup_tcpvegas
sync Sync exp result folders from client to router
When running an experiment the parameters are:
exp
: name of experiment. Should be similar to the corresponding command you used for setup. For example to run the TCP-LP experiment the code istcplp
mixed
:mix
orno
dependind if you want just the primary traffic or both primary and secondaryexp_no
: The number of the experiment. For new set of experiments is good to give a name in front. Likedelay_1
duration
: the duration of the experiments. Typically used60s
delay
(optional): '' ordelay
depending if you want the primary traffic to have a random delay (10-50ms) between requests or not. Default isdelay
Below are explained all the steps. For combining check also the script run_all.sh
(it assumes the limit is already installed)
Setup limit in server of router withe setup_limit
command using role router
or server
. Example:
xarokk@Cellsim:~/roc/tunneling$ fab -R server setup_limit
[xarokk2@147.83.118.124] Executing task 'setup_limit'
[xarokk2@147.83.118.124] sudo: ./tc_bandwidth_server.bash start
[xarokk2@147.83.118.124] out: sudo password:
[xarokk2@147.83.118.124] out: Starting bandwidth shaping: done
[xarokk2@147.83.118.124] out:
Done.
Disconnecting from xarokk2@147.83.118.124... done.
IMPORTANT: In the setup it is not normal if the output has errors. Sometimes it happens with tcplp
and tcpvegas
. Contact for degub.
Use the existing commands. For example:
xarokk@Cellsim:~/roc/tunneling$ nano fabfile.py
xarokk@Cellsim:~/roc/tunneling$ fab setup_ipip
[xarokk@147.83.118.126] Executing task 'setup_ipip_router'
[xarokk@147.83.118.126] sudo: ./ipip-client.sh
...
Done.
Disconnecting from xarokk2@147.83.118.124... done.
Disconnecting from xarokk@147.83.118.126... done.
Use command with the corresponding arguments and wait for 3 mins until the experiment is done for sure:
xarokk@Cellsim:~/roc/tunneling$ fab run_exp:exp=ipip,mixed=mix,expno=1,duration=60s; sleep 3m
These experiments will be performed with
It needs to be run after one or all the experiment to put the data in the router in the folder /home/xarokk/manos/exps
You need to provide the usual password.
xarokk@Cellsim:~/roc/tunneling$ fab sync
Use the existing commands. For example:
xarokk@Cellsim:~/roc/tunneling$ fab clear_ipip
[xarokk@147.83.118.126] Executing task 'clear_ipip_router'
...
Done.
Disconnecting from xarokk2@147.83.118.124... done.
Disconnecting from xarokk@147.83.118.126... done.
IMPORTANT: In the clear it is normal if the output has errors in tcplp
and tcpvegas
. Don't worry about them. Everythin went fine.
Clear limit in server of router withe clear_limit
command using role router
or server
. Example:
xarokk@Cellsim:~/roc/tunneling$ fab -R server clear_limit
[xarokk2@147.83.118.124] Executing task 'clear_limit'
[xarokk2@147.83.118.124] sudo: ./tc_bandwidth_server.bash stop
[xarokk2@147.83.118.124] out: sudo password:
[xarokk2@147.83.118.124] out: Stopping bandwidth shaping: done
[xarokk2@147.83.118.124] out:
Done.
Disconnecting from xarokk2@147.83.118.124... done.
If the results are synced locally in anyway from the directory /home/xarokk/manos/exps
then use can used the srcipt plot.py to generate results but it needs customization for considering only new results. The script should be located in the folder where the experiment folders are. For example:
manos@laptop:~/CSCWD/exps$ ls
baseline borrowing_router_codel_1 codel sfq_router
baseline_router borrowing_router_codel_both codel_router sfq_router_nodelay
borrowing borrowing_router_sfq_1 codel_router_nodelay tcplp
borrowing_codel_1_router borrowing_router_sfq_both ipip tcplp_router
borrowing_codel_both borrowing_sfq_1_router ipip_router tcpvegas
borrowing_codel_both_router borrowing_sfq_both plot.py tcpvegas_router
borrowing_router borrowing_sfq_both_router sfq tunneling