Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
ef293e0c
Commit
ef293e0c
authored
1 year ago
by
famelis
Committed by
famelis
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: added text file with the commands used in the hackfest3
parent
b5443b56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!235
Release TeraFlowSDN 3.0
,
!164
Merge 3rd hackfest material to develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tests/hackfest3/commands.txt
+111
-0
111 additions, 0 deletions
src/tests/hackfest3/commands.txt
with
111 additions
and
0 deletions
src/tests/hackfest3/commands.txt
0 → 100644
+
111
−
0
View file @
ef293e0c
################## TFS deployment and setup #######################
###### Deployment
# To deploy TFS:
cd ~/contoller
source my_deploy.sh
./deploy.sh
###### Experiments
# To onboard the experiment
cd ~/contoller
# Setup the compiled files
./src/tests/hackfest3/setup.sh
# Register the devices
./src/tests/hackfest3/run_test_01_bootstrap.sh
# Create the service
./src/tests/hackfest3/run_test_02_create_service.sh
# Delete the service
./src/tests/hackfest3/run_test_03_delete_service.sh
# Cleanup TFS
./src/tests/hackfest3/run_test_04_cleanup.sh
########################## MININET ##################
# To get the mininet cli
cd ~/ngsdn-tutorial
make mn-cli
#### screen
# To open a screen in mininet
# For client
MN: client screen -S <name>
# For server
MN: server screen -S <name>
# To get out
Press <Ctrl+A> + d
# To reconnect
MN: client screen -r <name>
####################### PROBE ######################
### old probe
# agent
source tfs_runtime_env_vars.sh
cd ~/controller/src/tests/hackfest3/probe/probe-tfs
./deploy.sh
./connect_to_mininet.sh
./tfsagent
# pinger
# In mininet
cd ~/ngsdn-tutorial
make mn-cli
MN: client ./tfsping
### new probe
cd ~/controller/src/tests/hackfest3/new-probe
./copy.sh
# agent:
# import PYTHONPATH by tfs_enviromental variables
source tfs_runtime_env_vars.sh
python agent.py
# pinger
# In mininet
cd ~/ngsdn-tutorial
make mn-cli
MN: client python ping2.py 10.0.0.2
# To enter delay or packet loss
cd ~/controller/src/tests/hackfest3/new-probe
./connect_to_mininet.sh
tc qdisc add dev <switch-iface> root netem delay <x>ms
tc qdisc add dev <switch-iface> root netem loss <x>%
################ INT (interactive session 2) ###########
# build the new code
cd ~/controller/src/tests/hackfest3/int
build_p4.sh <p4-program to build>
# copy the receiver, sender and helper script to docker container
cd ~/controller/src/tests/hackfest3/int
./copy_int_helpers.sh
./connect_to_mininet.sh
./install-scapy.sh
# Run the receiver in server screen
cd ~/ngsdn-tutorial
make mn-cli
MN: server screen -S rec
MN/Screen: python receive.py
<Ctrl+A> + d
# Run the sender in client
MN: client python send.py 10.0.0.1 "test" 1
# Check the output in receiver
MN: server screen -r rec
<Ctrl+A> + d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment