Professional Documents
Culture Documents
First and foremost, we would like to thank our guide Prof. (Dr.)
Narendra Shekokar for his timely guidance and suggestions, without
which this project would not have seen completion.
We hex dump the .pcap file. This results in an array of hex strings,
each string containing data of a single packet.
Then, we club a pair of consecutive characters to form a byte value(8
bits).
Each byte is interpreted as a pixel value in gray scale.
We consider only the first 784 bytes or 1568 characters to form a
28x28 image.
If packet data is less than 784 bytes, pad the image with 0 bytes to
complete.
The images are of size 28*28, which is fed into the neural network. The
architecture is as follows:
First Convolution Layer, with 32 filters. Generates 32 convoluted
images of the same dimension.
First Max Pool Layer, which reduces the dimension to 14*14.
Second Convolution Layer, with 64 filters. Generate 64 convoluted
images of the same dimension.
Second Max Pool layer, which reduces the dimension to 7*7.
Fully Connected Layer, with 256 nodes.
Two LSTM layers.
Figure: CNN+LSTM
Current methods used for traffic classification are not efficient due to
various reasons mentioned above.
These shortcomings can be overcome by deep learning.
We propose a model based on a combination of CNN and RNN in
order to exploit both the spatial and temporal features present in
network flow.