{'fraction_non_alphanumeric': 0.03667953667953668, 'fraction_numerical': 0.009652509652509652, 'mean_word_length': 5.321138211382114, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Performance Comparison of Different Feature Sets for Network Traffic Classification using Recursive Feature Elimination and One-Vs-Rest Random Forest Algorithms

Network traffic classification is an identification process of network applications like Yahoo, YouTube, Facebook, and Skype. Network traffic classification is required by network management to manage resources and to know different applications that can help network operators provide good Quality of Service, secure network, and monitor network. In this paper, we focused on the 7th layer of OSI model and using only TCP data. In recent years, there is much machine learning research to solve this problem either using supervised, unsupervised, or deep learning. Different feature sets are used to find the best performance for network traffic classification using Recursive Feature Elimination feature selections and One-Vs-Rest Random Forest classifiers. Six sets are compared: flow-based, session-based, time-based, packet-based, flow+ session-based, and packet+time-based. Furthermore, we have class imbalance problems in multiclass that make this difficult due to imbalance distribution, presence of outliers, and irrelevant features. Using this method, we can solve these problems. From the experiment, we get flow-based as the best feature set for network traffic classification with f1-score 0.81, GM 0.85, and model build time is 2634.987 s. Actually, we also can use packet-based, flow+session-based, and packet+time-based with a good classifier but need more time to model build.