├── iisy_sw ├── simple_example │ ├── decision_tree │ │ ├── action.txt │ │ ├── topology.json │ │ ├── tree.txt │ │ ├── Makefile │ │ ├── decision_tree.p4 │ │ └── mycontroller.py │ ├── kmeans │ │ ├── topology.json │ │ ├── Makefile │ │ ├── mycontroller.py │ │ └── kmeans.p4 │ ├── naive_bayes │ │ ├── topology.json │ │ ├── Makefile │ │ ├── mycontroller.py │ │ └── bayes.p4 │ ├── svm │ │ ├── topology.json │ │ ├── Makefile │ │ ├── mycontroller.py │ │ └── svm.p4 │ └── readme.md ├── framework │ ├── action.txt │ ├── README.md │ ├── Makefile │ ├── Extractfeature.py │ ├── svm.py │ ├── kmeans.py │ ├── Machinelearning.py │ ├── naivebayes.py │ ├── basic.p4 │ ├── Runtime.py │ └── mycontroller.py └── IoT_ML │ ├── README.md │ ├── iot_kmeans.py │ ├── iot_svm.py │ ├── iot_naivebayes.py │ └── iot_decisiontree.py ├── trace_processing ├── replacement_numeric ├── README.md └── set_features.sh ├── iisy_hw ├── README.md ├── iisy_decision_tree.p4 ├── iisy_naive_bayes.p4 ├── iisy_kmeans.p4 ├── iisy_svm.p4 └── commands.txt └── README.md /iisy_sw/simple_example/decision_tree/action.txt: -------------------------------------------------------------------------------- 1 | Drop : 0 2 | Forward to port 2: 2 3 | Forward to port 3: 3 4 | Forward to port 4: 4 5 | class 0: [3] 6 | class 1: [3] 7 | class 2: [3] 8 | class 3: [3] 9 | class 4: [2] -------------------------------------------------------------------------------- /iisy_sw/framework/action.txt: -------------------------------------------------------------------------------- 1 | Drop : 0 2 | Forward to port 2: 2 3 | Forward to port 3: 3 4 | Forward to port 4: 4 5 | class 0: [2] 6 | class 1: [3] 7 | class 2: [4] 8 | class 3: [3] 9 | class 4: [2] 10 | 11 | 12 | -------------------------------------------------------------------------------- /iisy_sw/simple_example/kmeans/topology.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosts": [ 3 | "h1", 4 | "h2" 5 | ], 6 | "switches": { 7 | "s1": { } 8 | }, 9 | "links": [ 10 | ["h1", "s1"], ["s1", "h2"],["s1", "h3"],["s1", "h4"] 11 | 12 | ] 13 | } -------------------------------------------------------------------------------- /iisy_sw/simple_example/naive_bayes/topology.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosts": [ 3 | "h1", 4 | "h2" 5 | ], 6 | "switches": { 7 | "s1": { } 8 | }, 9 | "links": [ 10 | ["h1", "s1"], ["s1", "h2"],["s1", "h3"],["s1", "h4"] 11 | 12 | ] 13 | } -------------------------------------------------------------------------------- /iisy_sw/simple_example/decision_tree/topology.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosts": [ 3 | "h1", 4 | "h2" 5 | ], 6 | "switches": { 7 | "s1": { } 8 | }, 9 | "links": [ 10 | ["h1", "s1"], ["s1", "h2"],["s1", "h3"],["s1", "h4"] 11 | 12 | ] 13 | } -------------------------------------------------------------------------------- /iisy_sw/simple_example/svm/topology.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosts": [ 3 | "h1", 4 | "h2", 5 | "h3" 6 | ], 7 | "switches": { 8 | "s1": { } 9 | }, 10 | "links": [ 11 | ["h1", "s1"], ["s1", "h2"],["s1", "h3"],["s1", "h4"] 12 | 13 | ] 14 | } -------------------------------------------------------------------------------- /iisy_sw/IoT_ML/README.md: -------------------------------------------------------------------------------- 1 | # IoT Traces Analysis 2 | 3 | This folder contains the scripts to run the IoT traces through the training of four different machine learning models, using scikit-learn. 4 | 5 | To invoke the scripts, use: 6 | python3