Research Article

OpenCBD: A Network-Encrypted Unknown Traffic Identification Scheme Based on Open-Set Recognition

Algorithm 1

Preprocessing algorithm for traffic data.
Input: the original network traffic dataset , the number of classes of traffic .
Output: packet vector set ;
1: Fordo
2:  Randomly select consecutive 10 packets to form flows;
3:  Fordo
4:  Read the payload part of the packet ;
5:  Ifthen
6:   ;
7:  Else
8:   ;
9:  End if
10:  ;
11:  ;
12:  If second then
13:   Continue;
14:  Else
15:   Add between and ;
16:  End if
17: End for
18: Generate packet vector set ;
19: End for
20: Return packet vector set .