diff --git a/ACI IoT Network Traffic Dataset Analysis/Dataset/README.md b/ACI IoT Network Traffic Dataset Analysis/Dataset/README.md new file mode 100644 index 000000000..e4f69271e --- /dev/null +++ b/ACI IoT Network Traffic Dataset Analysis/Dataset/README.md @@ -0,0 +1 @@ +Link: https://www.kaggle.com/datasets/emilynack/aci-iot-network-traffic-dataset-2023 diff --git a/ACI IoT Network Traffic Dataset Analysis/Images/Bar Graph.png b/ACI IoT Network Traffic Dataset Analysis/Images/Bar Graph.png new file mode 100644 index 000000000..2d390c3bd Binary files /dev/null and b/ACI IoT Network Traffic Dataset Analysis/Images/Bar Graph.png differ diff --git a/ACI IoT Network Traffic Dataset Analysis/Images/Pie Chart.png b/ACI IoT Network Traffic Dataset Analysis/Images/Pie Chart.png new file mode 100644 index 000000000..86449d357 Binary files /dev/null and b/ACI IoT Network Traffic Dataset Analysis/Images/Pie Chart.png differ diff --git a/ACI IoT Network Traffic Dataset Analysis/Model/ACI_IoT_Network_Traffic_Dataset_Analysis.ipynb b/ACI IoT Network Traffic Dataset Analysis/Model/ACI_IoT_Network_Traffic_Dataset_Analysis.ipynb new file mode 100644 index 000000000..66c7e6e01 --- /dev/null +++ b/ACI IoT Network Traffic Dataset Analysis/Model/ACI_IoT_Network_Traffic_Dataset_Analysis.ipynb @@ -0,0 +1,3194 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "YwuxWrIj26L7" + }, + "source": [ + "# ACI IoT Network Traffic" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "eA-t2jeQ2_Ay" + }, + "source": [ + "## Get dataset" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "id": "f2-gDXPihjaF" + }, + "outputs": [], + "source": [ + "import numpy as np\n", + "import pandas as pd\n", + "import tensorflow as tf\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "D:\\ML\\ACI IoT Network Traffic Dataset Analysis\\Model\n" + ] + } + ], + "source": [ + "import os\n", + "print(os.getcwd())" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | srcip | \n", + "sport | \n", + "dstip | \n", + "dsport | \n", + "protocol_m | \n", + "sttl | \n", + "total_len | \n", + "payload | \n", + "stime | \n", + "label | \n", + "
---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "192.168.1.81 | \n", + "60683 | \n", + "239.255.255.250 | \n", + "1900 | \n", + "udp | \n", + "2 | \n", + "362 | \n", + "4e4f54494659202a20485454502f312e310d0a4e54533a... | \n", + "1698670981 | \n", + "Benign | \n", + "
1 | \n", + "192.168.1.9 | \n", + "53160 | \n", + "239.255.255.250 | \n", + "1900 | \n", + "udp | \n", + "1 | \n", + "204 | \n", + "4d2d534541524348202a20485454502f312e310d0a484f... | \n", + "1698670984 | \n", + "Benign | \n", + "
2 | \n", + "192.168.1.9 | \n", + "53160 | \n", + "239.255.255.250 | \n", + "1900 | \n", + "udp | \n", + "1 | \n", + "204 | \n", + "4d2d534541524348202a20485454502f312e310d0a484f... | \n", + "1698670985 | \n", + "Benign | \n", + "
3 | \n", + "192.168.1.9 | \n", + "53160 | \n", + "239.255.255.250 | \n", + "1900 | \n", + "udp | \n", + "1 | \n", + "204 | \n", + "4d2d534541524348202a20485454502f312e310d0a484f... | \n", + "1698670986 | \n", + "Benign | \n", + "
4 | \n", + "192.168.1.9 | \n", + "53160 | \n", + "239.255.255.250 | \n", + "1900 | \n", + "udp | \n", + "1 | \n", + "204 | \n", + "4d2d534541524348202a20485454502f312e310d0a484f... | \n", + "1698670987 | \n", + "Benign | \n", + "