Research Article
Design and Implementation of an Anomaly Network Traffic Detection Model Integrating Temporal and Spatial Features
| Input: raw txt file | | Output: data [] | | File = Open () | | For line in file.readlines() do | | Set Flag = 0 | | For i = 3 to 19 do | | Flag = 1 | | If determine whether a data packet is over: | | Flag = 0 | | Break | | END if | | END for | | Store the package data in the intermediate list mid_data [] | | IF Flag = 0: | | Write mid_data[] data to the list data[] | | mid_data = [] | | END if | | END for |
|