Research Article
Efficient Extraction of Network Event Types from NetFlows
Algorithm 2
Distribution of flows into time windows.
1: function DISTRIBUTEFLOWS(Flows) | 2: minTime time of the first flow Flows | 3: maxTime time of the last flow Flows | 4: intervalCount (maxTime − minTime)/winSize | 5: flowWindows | 6: for all flow Flows do | 7: idx = (flow.time − minTime)/winSize | 8: flowWindowsidx= flowWindowsidx flow flow distribution | 9: end for | 10: return flowWindows | 11: end function |
|