Device and method for network traffic classification
Patent Information
- Application Number
- PCT/CN2023/080516
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-12
Smart Images

Figure CN2023080516_12092024_PF_FP_ABST
Abstract
Description
DEVICE AND METHOD FOR NETWORK TRAFFIC CLASSIFICATIONTECHNICAL FIELD
[0001] The present disclosure relates to devices and methods in the field of network communications. For instance, the disclosure relates to devices and methods for network traffic classification.BACKGROUND
[0002] Network traffic classification is a process of identifying the type of data being transmitted over a network and categorizing it based on its content, application, or protocol. This technology plays a crucial role in communications networks. Network traffic classification enables the efficient and effective management of network resources, and enhances the security of the network by identifying and blocking malicious traffic.
[0003] Over the years, various methods for network traffic classification have been proposed and implemented, including packet analysis and machine learning-based approaches.
[0004] A typical packet analysis-based approach is deep packet inspection (DPI) . In DPI, the packet header and / or payload is inspected and searched for patterns that match known character strings from a continuously updated database of identifiers, preferably using a catalog of rules.
[0005] In recent years, there has been a significant increase in the use of machine learning techniques for network traffic classification, due to their ability to handle complex and diverse network traffic and provide high levels of accuracy. For instance, convolutional neural networks (CNNs) and decision trees have been used for traffic classification.
[0006] Network traffic classification is a vital technology in modern communications networks, and its development has been driven by the need for efficient and effective network management and enhanced network security. With the continued growth of network traffic, the development of network traffic classification is likely to remain an active area of research and innovation.
[0007] SUMMARY
[0008] A problem with DPI-based solutions is that they do not work with encrypted traffic. DPI is only appropriate for the classification of non-encrypted traffic. However, the percentage of encrypted traffic in modern communications networks is increasing.
[0009] Machine learning-based traffic classification can cope with encrypted traffic by, e.g., leveraging the size and direction of a few packets in a flow. Conventional machine learning models, such as CNNs and decision trees, may combine both prediction performance and faithful explainability-by-design. However, they only output automatically (or machine) generated / predicted rules. These rules cannot be modified after being generated without annihilating the faithfulness of the explanations. Therefore, these methods do not provide the ability to select rules after the rules have been learned. If a user intends to modify / select the rules based on user-specific priorities, the machine learning models need to be re-trained. Moreover, rules generated according to some machine learning models are not intuitive (explainable) , even for the simplest models (e.g., decision trees) . Thus, these approaches cannot provide both faithful explanations and the integration of user-specific priorities. Faithful explainability may be a legal and / or technical requirement for artificial intelligence (AI) -based approaches.
[0010] In view of the above-mentioned problems and disadvantages, this disclosure aims to improve network traffic classification. For instance, an objective of this disclosure may be to provide a solution for traffic classification that can provide faithful rule-based explanations to support its predictions. A further objective of this disclosure may be to generate an explainable and configurable ruleset for traffic classification, such as users (or a network management entity) can easily modify / select a part of the ruleset according to user-specific priorities / needs. In this disclosure, network traffic classification may be simply referred to as traffic classification.
[0011] These and other objectives are achieved by the subject matter of the independent claims. Further implementation forms are apparent from the dependent claims, the description and the drawings.
[0012] A first aspect of the present disclosure provides a device for traffic classification. The device is configured to obtain a training dataset, in which the training dataset comprises a set of training traffic flows and a set of corresponding labels. The device is further configured to train a rule-based representation learning model using the training dataset, to obtain a trained rule-based representation learning model and a first ruleset comprising a set of first rules. The device is further configured to select a subset of the first ruleset as a second ruleset comprising a set of second rules, and perform traffic classification for one or more real traffic flows using the trained rule-based representation learning model based on the second ruleset.
[0013] Optionally, the training dataset may be a pre-defined dataset that comprises labeled training traffic flows as ground truth (i.e., the traffic flow is the input, and the corresponding label is the expected output) . Alternatively, the training traffic flows may be captured in a communications network. The corresponding labels may be manually generated for each corresponding traffic flow.
[0014] Optionally, the obtained first ruleset has no redundancies. That is, there are no duplicate rules within the first ruleset. Each first rule is unique and distinct from the others.
[0015] It is noted that the real traffic flow may be referred to as a traffic flow that is generated by a communications network during an inference phase of the trained rule-based representation learning model. Optionally, the real traffic flow may be encrypted or unencrypted.
[0016] By selecting a subset of the first rule set as the second ruleset, and using the second ruleset for inferencing, user priorities / preferences / needs may be fulfilled without re-training of the learning model. In this way, the present disclosure provides an end-to-end model for rule learning, end-user preferences integration and classification for the task of traffic classification.
[0017] In an implementation form of the first aspect, each first rule may comprise one or more features of a respective training traffic flow linked to a corresponding label.
[0018] Optionally, one or more features of a training traffic flow may correspond to statistics of the training traffic flow. For instance, a feature in the first rule may be a packet size, a direction (uplink or downlink) , or a type (point-to-point, broadcast, multipoint, etc. ) of a packet of a traffic flow. Other statistics are not excluded. The first rule may comprise a combination of a plurality of features.
[0019] In this way, the present disclosure provides an explainable model for traffic classification. For instance, it offers the possibility to sort rules (the first rules) to ease readability (e.g., according to packet numbers of each traffic flow) .
[0020] In a further implementation form of the first aspect, each first rule may be associated with a weight. The trained rule-based representation learning model may be explainable based on the first ruleset.
[0021] It is noted that an explainable learning model is a model that the actions and decisions of the model can be easily understood, analyzed, and interpreted by humans.
[0022] In this way, the model according to the present disclosure can provide faithful explanations with respect to the generated first ruleset.
[0023] In a further implementation form of the first aspect, the set of second rules may be selected according to one or more properties of weight, length, and coverage of each first rule.
[0024] Optionally, the weight may be used to indicate the importance of a respective first rule for a prediction. The length may be indicative of a quantity of features in the respective first rule. The coverage may be indicative of a ratio (or percentage) of flows in the training dataset on which a respective first rule is activated.
[0025] In this way, the model according to the present disclosure can be used to generate explanations that are aware of user-specific priorities (e.g., short rules, rules with the largest weight, most-specific rules, rules with the most coverage, rules involving early packets, etc. ) .
[0026] In a further implementation form of the first aspect, the device may be configured to combine the set of second rules using coefficients as ranking criteria, to obtain the second ruleset.
[0027] In a further implementation form of the first aspect, the device may be configured to perform the traffic classification based on a combination of one or more rules of the first ruleset and one or more user-defined rules, in which each user-defined rule is based on a logical operation of the plurality of features of the training dataset.
[0028] A second aspect of the present disclosure provides a method. The method is performed by a device and comprises the following steps:
[0029] - obtaining a training dataset, wherein the training dataset comprises a set of training traffic flows and a set of corresponding labels;
[0030] - training a rule-based representation learning model using the training dataset, to obtain a trained rule-based representation learning model and a first ruleset comprising a set of first rules;
[0031] - selecting a subset of the first ruleset as a second ruleset comprising a set of second rules; and
[0032] - performing traffic classification for one or more real traffic flows using the trained rule-based representation learning model based on the second ruleset.
[0033] In an implementation form of the second aspect, each first rule may comprise one or more features of a respective training traffic flow linked to a corresponding label.
[0034] In a further implementation form of the second aspect, each first rule may be associated with a weight. The trained rule-based representation learning model may be explainable based on the first ruleset.
[0035] In a further implementation form of the second aspect, the set of second rules may be selected according to one or more properties of weight, length, and coverage of each first rule.
[0036] In a further implementation form of the second aspect, the method may comprise combining, by the device, the set of second rules using coefficients as ranking criteria, to obtain as the second ruleset.
[0037] In a further implementation form of the second aspect, the method may comprise performing, by the device, the traffic classification based on a combination of one or more rules of the first ruleset and one or more user-defined rules, in which each user-defined rule is based on a logical operation of the plurality of features of the training dataset.
[0038] The method of the second aspect or any implementation thereof may have the same optional features and benefit from the same technical advantages as the device of the first aspect or any implementation thereof.
[0039] A third aspect of the present disclosure provides a computer program comprising instructions which, when the program is executed by a computer, cause the computer to perform the method according to the second aspect or any implementation forms thereof.
[0040] A fourth aspect of the present disclosure provides a computer-readable medium comprising instructions which, when executed by a computer, cause the computer to carry out the method according to the second aspect or any implementation form thereof.
[0041] A fifth aspect of the present disclosure provides a chipset comprising instructions which,when executed by the chipset, cause the chipset to carry out the method according to the second aspect or any implementation form thereof.
[0042] It has to be noted that all devices, elements, units, and means described in the present application could be implemented in software or hardware elements or any kind of combination thereof. All steps which are performed by the various entities described in the present application as well as the functionalities described to be performed by the various entities are intended to mean that the respective entity is adapted to or configured to perform the respective steps and functionalities. Even if, in the following description, a specific functionality or step to be performed by external entities is not reflected in the description of a specific detailed element of that entity, which performs that specific step or functionality, it should be clear for a skilled person that these methods and functionalities can be implemented in respective software or hardware elements, or any kind of combination thereof.BRIEF DESCRIPTION OF DRAWINGS
[0043] The above-described aspects and implementation forms will be explained in thefollowing description in relation to the enclosed drawings, in which
[0044] FIG. 1 shows an illustration of a method according to the present disclosure;
[0045] FIG. 2 shows a flow chart of a method according to the present disclosure;
[0046] FIG. 3 shows an illustration of a detailed training process according to the present disclosure;
[0047] FIG. 4 shows an illustration of a detailed rule selection process according to the present disclosure;
[0048] FIG. 5 shows an illustration of a detailed inference process according to the present disclosure;
[0049] FIG. 6 shows an example of a rule-based representation learning model according to the present disclosure;
[0050] FIG. 7 shows a diagram of a method according to this disclosure; and
[0051] FIG. 8 shows a device according to this disclosure.DETAILED DESCRIPTION OF EMBODIMENTS
[0052] For performing traffic classification, the present disclosure generally provides a solution to generate a catalog of rules based on a representation learning classifier at training time, and to integrate arbitrary end-user preferences in order to select the most relevant subset for inference. In the figures of the present disclosure, corresponding elements may share the same features and function likewise.
[0053] FIG. 1 shows an illustration of a method according to the present disclosure. The method is for traffic classification and is based on machine learning techniques. The method is performed by a device and mainly comprises three processes: a training process 101, a rule selection process 102, and an inference process 103.
[0054] In the training process 101, the device is configured to obtain a training dataset 130. The training dataset comprises a set of training flows and a set of corresponding labels, which may be denoted as (X, y) . X denotes or identifies a traffic flow, and y denotes a corresponding category (label) of the traffic flow X. The label may indicate, e.g., to which application (or service) the traffic flow belongs. The device is further configured to train a rule-based representation learning model 110 using the training dataset 130, to obtain a trained rule-based representation learning model 110’ and a first ruleset 120. The first ruleset 120 comprises a set of first rules.
[0055] In this process, the device generates the first ruleset 120 as a catalog of rules using the rule-based representation learning model 110 to ensure faithful explanations.
[0056] In the rule selection process 102, the device is configured to select a subset of the first ruleset 120 as a second ruleset 140. The selection may be based on user preferences 150. Optionally, the user preferences 150 may also be taken into account during the training process 101. Examples of user preferences 150 may include, but are not limited to, one or more of: favor short rules; favor rules with packets at the beginning of a traffic flow; favor rules that are more specific (i.e., rules activated not for all applications but for a few applications) ; cap the maximum number of rules for each / all applications, etc. That is, in general, the rule selection may be based on the weight, length, and / or coverage of each first rule. Optionally, the selected first rules may be mixed with user-defined rule (s) to build the second ruleset 140.
[0057] It is noted that it is also possible that the all the first rules are selected as the second rules. In this case, the first ruleset 120 is the same as the second ruleset 140.
[0058] For instance, N first rules may be associated with a corresponding category. According to user preference, J out of the N first rules can be selected as the second ruleset. These J selected first rules are referred to as second rules, which are activated during the inference process 103. N and J are integers, and J is smaller than N.
[0059] In the inference process 103, the device is configured to perform traffic classification for one or more real traffic flows 170 using the trained rule-based representation learning model 110’ based on the second ruleset 140. The device may be further configured to output one or more activated second rules associated with an estimated category 180 of a respective real traffic flow.
[0060] For instance, for each real traffic flow 170, the device is configured to predict / estimate a category 180 of the respective real traffic flow based on the second ruleset 140. When the device estimates a category of the respective real traffic flow, the device may also output any activated second rule (s) that supports this estimation. In this way, the estimation result can be explainable.
[0061] In this way, the device may classify network traffic based on the second ruleset, which can be considered as a user-specific ruleset. The user-specific ruleset can be presented as a supporting explanation. For instance, solely the activated rules need to be analyzed by an end-user. The activated rules can be sorted according to end-user preferences to ease readability (e.g., according to packet numbers) .
[0062] FIG. 2 shows a flow chart of a method according to the present disclosure. The method of FIG. 2 and the method of FIG. 1 share the same features and function.
[0063] FIG. 3 shows an illustration of a detailed training process 101 according to the present disclosure. The detailed training process 101 of FIG. 3 can be applied to FIG. 1 and FIG. 2. In the training process 101, the device is configured to obtain the training dataset 130 as ground truth. For instance, the training dataset 130 may comprise traffic flows {X_1, X_2, …, X_T} and corresponding labels {y_1, y_2, …, y_T} . For instance, each labelmay be an application (or service) name from {A_1, A_2, …, A_M} (or service names, etc) . T denotes the number of training samples in the training dataset 130. M denotes the number of categories (e.g., applications, services, and the like) .
[0064] The device trains a rule-based representation learning model 110 using the training dataset 130, to obtain a trained rule-based representation learning model 110’ and a first ruleset 120 comprising a set of first rules. The first rules may be denoted as {r_1, …, r_N} . N denotes the number of the first rules in the first ruleset.
[0065] Optionally, each first rule may contain features connected by various logical operators (e.g., conjunctions, disjunctions, AND, OR, etc. ) . For instance, r_i = (u_i1 AND u_i2 ) OR u_i3. r_i denotes an i-th first rule. u_i1, u_i2, and u_i3 denote features associated with the i-th first rule.
[0066] The number of features in each first rule may be referred to as the length of the first rule. Optionally, the length and the number of the first rules may be monitored and adjusted (if necessary) based on the architecture of the rule-based representation learning model 110 / 110’. For instance, the architecture may include but is not limited to: the number of logical layers, and the number of units (or neurons) per layer.
[0067] The length and number of rules are monitored based on the architecture of the model (e.g., the number of logical layers, and number of units per layer respectively) .
[0068] Generally, a rule-based representation learning model comprises an input layer 310, one or more logical layers 320, 330, and an output layer 340. The logical layer may also be referred to as a hidden layer or middle layer. In the present disclosure, the units of the last logical layer 330 may be obtained / output as the first ruleset 130. The last logical layer 330 is directly connected with the output layer 340. Each unit of the last logical layer 330 may play a role in deciding that an input traffic flow r_i belongs to a respective label A_i. Hence, each unit of the last logical layer 330 may be seen as a first rule that is learned during the training process 101.
[0069] FIG. 4 shows an illustration of a detailed rule selection process 102 according to the present disclosure. The detailed rule selection process of FIG. 4 can be applied to (or combined with) FIGs. 1-3. In the detailed rule selection process 102, the device is configured to select a subset of the first ruleset as a second ruleset comprising a set of second rules.
[0070] Optionally, the device may be configured to select the subset of the first ruleset based on coefficients (or weights) associated with the plurality of first rules. That is, each first rule may be associated with a respective coefficient (or weight) . The coefficients (or weights) may be learned during the training process 101.
[0071] For instance, the device may be configured to integrate user preferences 150 (e.g., rules selection according to their weight / length / coverage or their composition like the packets used) for obtaining the second ruleset. The device may select the second rules of {r_1, …, r_F} with F ≤ N, e.g., based on a ranking that takes into account user preferences while maintaining performance (e.g., using the coefficients as part of ranking criteria) and faithfulness. These rules can also be mixed with user-defined rules to build the second rule set, which may be seen as a final inference rulebook for inference.
[0072] As exemplarily illustrated in FIG. 2, after obtaining the first ruleset {r_1, …, r_N} from the last logical layer 330 in the training process 101, the device selects r_1 and r_N for application A_1 as the second ruleset. For application A_M, r_2 and r_ (N-1) are selected as the second rule set. For each first rule that is not selected for a corresponding label in the output layer 340, the corresponding connection is removed for the following inference phase.
[0073] FIG. 5 shows an illustration of a detailed inference process 103 according to the present disclosure. The detailed inference process 103 of FIG. 5 can be applied to (or combined with) FIGs. 1-4.
[0074] In the detailed inference process 103, the device is configured to perform traffic classification for one or more real traffic flows 170 using the trained rule-based representation learning model 110’ based on the second ruleset 140.
[0075] In this way, the device can classify traffic flow based on user-specific set of rules (i.e., the second ruleset) and present them to an end-user as a supporting explanation. Solely the activated parts of a rule need to be analyzed by the end-user, which can be sorted according to end-user preferences to ease readability (e.g., according to packet order) .
[0076] As disclosed earlier, a first rule may contain features connected by various logical operators. Similarly, a second rule may comprise corresponding features of logical operators. One or more of the corresponding features may be activated or deactivated during the inference process 103. This can be based on user preference 150 as well and can be done in the rule selection process 102. For instance, a first rule of r_i = (u_i1 AND u_i2 ) OR u_i3. When this first rule r_i is selected as the second rule, then r_i’ = (u_i1 AND u_i2) . That is, u_i1 and u_i2 are activated, and u_i3 is not activated during the inference process 103.
[0077] An example of a rule selection may be as follows. After training, two following first rules may be obtained to determine that a traffic flow belongs to a certain application:
[0078] - first rule #1: ( (D13 = Up) AND (S4 > 83) AND (S4 < 738) AND (S5 < 132) AND (S10 > 341) AND (S14 > 58) ) ;
[0079] OR
[0080] - first rule #2: ( (S1 > 58) OR (S2 < 34) OR (S3 > 55) OR (S4 > 579) OR (S10 > 1167) OR (S15 < 18) OR (S17 > 1243) ) .
[0081] It is noted that SX denotes the size of an X-th packet in the traffic flow, and DX denotes the direction (e.g., downlink and uplink) of the X-th packet.
[0082] According to this disclosure, there are no redundancies in each first rule. For example, in a conventional decision tree-based solution, an activated path to reach a decision may be: ( (S7 > 366) AND (S7 > 368) AND (S7 > 373) AND (S7 > 552) ) . However, the first three elements in this path are redundant in view of the fourth element. According to this disclosure, a shorter rule without any redundancies can be obtained as the first rule. That is, elements / conditions of each first rule do not overlap. Moreover, readability can be improved.
[0083] During rule selection process 102, the above-mentioned first rule #1 may be selected / activated as a second rule, e.g., according to a user’s preference. Further, the first rule #1 may be sorted, e.g., according to packet sequence order, as: ( (S4 > 83) AND (S4 < 738) AND (S5 < 132) AND (D9 = Up) AND (S10 > 341) AND (D13 = Up) and (S14 > 58) ) . This can improve readability and improve traffic analysis.
[0084] FIG. 6 shows an example of a rule-based representation learning model according to the present disclosure. The rule-based representation learning model in FIG. 6 may be built based on the (to-be-trained) rule-based representation learning model 110 and the trained rule-based representation learning model in FIGs. 1-5. In FIGs. 1-6, corresponding elements may share similar features and function likewise.
[0085] The rule-based representation learning model in FIG. 6 can be applied to both the training process 101 and the inference process 103. In the training process 101, the traffic flow input may be from the training dataset. In the inference process 103, the traffic flow input may be from one or more real traffic data flows.
[0086] A traffic flow input may be associated with a plurality of statistics, such as but not limited to packet size. The rule-based representation learning model may comprise a binarization layer that is adapted to binarize statistics of the traffic flow input. For instance, once the traffic flow input is input into the model, the statistics of the traffic flow may be obtained (e.g, by an input layer) . The statistics may comprise information on packet size, which may be in a continuous form. The binarization layer may be generally adapted to divide a continuous feature into several bins. For instance, the continuous form of a packet size may be divided into several intervals. By choosing an appropriate number of bins, the number of rules obtained finally may be adjusted. Moreover, by performing binarization (or feature discretization) , overlapping features may be reduced.
[0087] The rule-based representation learning model of this disclosure may further comprise a plurality of logical layers that are adapted to learn / infer data representations using logical rules. To this end, a logical layer may comprise a plurality of conjunction units (e.g., c1, c2, and so on) and a plurality of disjunction units (e.g., d1, d2, and so on) . It is noted that the number of conjunction units and disjunction units in each logical layer shall not be limited. As depicted in FIG. 6, each conjunction unit may be adapted to perform an “AND” operation on features (e.g., rules) connected to its previous layer; while each disjunction unit may be adapted to perform a “OR” operation on features (e.g., rules) connected to its previous layer. The last logical layer, e.g., logical layer L in FIG. 6, may be adapted to output final rules {r1, …, rN} . These final rules {r1, …, rN} are analyzed (e.g., linearly combined) by the fully connected layer and a corresponding label is determined for the traffic flow input.
[0088] The rule-based representation learning model may comprise one binarization layer, a plurality of logical layers, and one fully connected layer. The number of the logical layers may be varied and can be flexibly adjusted according to specific situations. In the example of FIG. 6, two logical layers are exemplarily shown. It shall be understood that other quantities of the logical layers are also possible and are not excluded for the rule-based representation learning model according to this disclosure.
[0089] FIG. 7 shows a diagram of a method 700 according to this disclosure.
[0090] The method 700 is performed by a device and is for traffic classification. The method 700 comprises the following steps:
[0091] - step 701: obtaining a training dataset, in which the training dataset comprises a set of training traffic flows and a set of corresponding labels;
[0092] - step 702: training a rule-based representation learning model using the training dataset, to obtain a trained rule-based representation learning model and a first ruleset comprising a set of first rules;
[0093] - step 703: selecting a subset of the first ruleset as a second ruleset comprising a set of second rules; and
[0094] - step 704: performing traffic classification for one or more real traffic flows using the trained rule-based representation learning model based on the second ruleset.
[0095] It is noted that the steps of method 700 may share the same functions and details from the perspective of FIGs. 1-6 described above.
[0096] In summary, the present disclosure provides a solution for traffic classification that involves a unique end-to-end model for rule learning, end-user preferences integration and classification. Few and short rules without redundancies can be obtained. Parts of the learned rules may be activated / deactivated during inference. Solely the activated part of the rules is to be analyzed by the end-user. Rules may be sorted to ease readability.
[0097] The present disclosure may be applied to any computer and / or communications network to which traffic classification can be applied, such as but not limited to: a mobile communications network, a local area network (LAN) , a wide area network (WAN) , and a wireless LAN (WLAN) .
[0098] FIG. 8 shows a device 800 according to this disclosure. The device is configured to perform the method from the perspective of FIGs. 1-7 described above. According to this disclosure, the device 800 comprises a processing circuitry (or a chipset) configured to perform, conduct or initiate the various operations of the device described herein, respectively. The processing circuitry may comprise hardware and software. The hardware may comprise analog circuitry or digital circuitry, or both analog and digital circuitry. The digital circuitry may comprise components such as application-specific integrated circuits (ASICs) , field-programmable arrays (FPGAs) , digital signal processors (DSPs) , or multi-purpose processors. Optionally, the processing circuitry comprises one or more processors 810 and a non-transitory memory 820 connected to the one or more processors 810. The non-transitory memory 820 may carry executable program code which, when executed by the one or more processors 810, causes the device 800 to perform, conduct or initiate the operations or methods described in this disclosure. The device 800 may comprise other components that are not shown in FIG. 8, such as a transceiver module adapted to receive or intercept traffic flows and transmit classification results.
[0099] The present disclosure has been described in conjunction with various aspects as examples as well as implementations. However, other variations can be understood and effected by those persons skilled in the art and practicing the claimed subject matter, from the studies of the drawings, this disclosure and the independent claims. In the claims as well as in the description the word “comprising” does not exclude other elements or steps and the indefinite article “a” or “an” does not exclude a plurality. A single element or another unit may fulfill the functions of several entities or items recited in the claims. The mere fact that certain measures are recited in the mutual different dependent claims does not indicate that a combination of these measures cannot be used in an advantageous implementation.
Claims
1.A device (800) for traffic classification, the device (800) being configured to:obtain a training dataset (130) , wherein the training dataset (130) comprises a set of training traffic flows and a set of corresponding labels;train a rule-based representation learning model (110) using the training dataset (130) , to obtain a trained rule-based representation learning model (110’) and a first ruleset (120) comprising a set of first rules;select a subset of the first ruleset (120) as a second ruleset (140) comprising a set of second rules;perform traffic classification for one or more real traffic flows (170) using the trained rule-based representation learning model (110’) based on the second ruleset (140) .2.The device (800) according to claim 1, wherein each first rule comprises one or more features of a respective training traffic flow linked to a corresponding label.3.The device (800) according to claim 2, wherein each first rule comprises a plurality of features, wherein the plurality of features are combinable using logical operators.4.The device (800) according to any one of claims 1 to 3, wherein each first rule is associated with a weight, and the trained rule-based representation learning model (110’) is explainable based on the first ruleset (120) .5.The device (800) according to any one of claims 1 to 4, wherein the set of second rules are selected according to one or more properties of weight, length, and coverage of each first rule.6.The device (800) according to any one of claims 1 to 5, wherein the set of second rules are combined using coefficients as ranking criteria.7.The device (800) according to any one of claims 3 to 6, wherein the device (800) is configured to perform the traffic classification based on a combination of one or more rules of the first ruleset and one or more user-defined rules, wherein each user-defined rule is based on a logical operation of the plurality of features of the training dataset (130) .8.A method (700) for traffic classification, the method comprising:obtaining (701) a training dataset, wherein the training dataset comprises a set of training traffic flows and a set of corresponding labels;training (702) a rule-based representation learning model using the training dataset, to obtain a trained rule-based representation learning model and a first ruleset comprising a set of first rules;selecting (703) a subset of the first ruleset as a second ruleset comprising a set of second rules; andperforming (704) traffic classification for one or more real traffic flows using the trained rule-based representation learning model based on the second ruleset.9.The method (700) according to claim 8, wherein each first rule comprises one or more features of a respective training traffic flow linked to a corresponding label.10.The method (700) according to claim 9, wherein each first rule comprises a plurality of features, wherein the plurality of features are combinable using logical operators.11.The method (700) according to any one of claims 8 to 10, wherein each first rule is associated with a weight, and the trained rule-based representation learning model is explainable based on the first ruleset.12.The method (700) according to any one of claims 8 to 11, wherein the set of second rules are selected according to one or more properties of weight, length, and coverage of each first rule.13.The method (700) according to any one of claims 8 to 12, wherein the set of second rules are combined using coefficients as ranking criteria.14.The method (700) according to any one of claims 10 to 13, wherein the method comprises performing the traffic classification based on a combination of one or more rules of the first ruleset and one or more user-defined rules, wherein each user-defined rule is based on a logical operation of the plurality of features of the training dataset.15.A computer program comprising instructions which, when the program is executed by a first computer, cause the first computer to perform the method according to any one of claims 8 to 14.
Citation Information
Patent Citations
Method and system for automatic online identification of network traffic patterns
CN108028807A
Rule type application traffic classification method and system based on model interpretation
CN114726800A
Machine learning model interpretation
US20190156216A1
Hybrid rule-based and machine learning predictions
US20200311601A1
Rule induction to find and describe patterns in data
US20200394530A1
