Research Article
Design and Implementation of an Anomaly Network Traffic Detection Model Integrating Temporal and Spatial Features
| | Input: csv file containing raw traffic | | | Output: a txt file with hexadecimal data converted from the raw traffic data | | | For i = 0 to data_excel.length do | | | IF determine whether the data packet has been divided into streams | | | Count = 0 | | | For j = i+1 to data_excel.length do | | | If 5-tuple equal | | | Count+ = 1 | | | If Count > threshold: | | | Change the file name of the stream | | | Count = 0 | | | END if | | | Open a file | | | Use the hexdump function to convert the data packet into hexadecimal and write it into the same file | | | Mark that the packet has been divided into traffics | | | END if | | | END for | | | END for |
|