Method for preparing a decision tree for packet processing
First Claim
1. Method for selection of a splitting point value for use in preparation of a decision tree on the basis of a set of packet processing rules for processing data packets, comprising at least the steps of selecting a splitting point candidate value from a set of rule parameter range end values in the parameter dimension being studied, changing a first counter for each rule with a first range end value being equal to said selected candidate value, changing a second counter for each rule with a second range end value being equal to said selected candidate value, and computing a goodness value for said selected candidate value at least partially on the basis of the values of said first and second counters.
13 Assignments
0 Petitions
Accused Products
Abstract
The invention relates to methods for processing data packets according to a set of rules, and especially for preparing of decision trees for selecting the correct rule for processing of a data packet. In preparation of a decision tree, a splitting point within a dimension being studied is chosen as follows. The rules are sorted to allow monotonous iteration through all range end values specified in the rules in the dimension being studied. The range end values are then iterated through in a monotonous fashion, either increasing or decreasing. At each iteration, the number of range low end values and the number of range high end values being equal to the current iteration value is counted. From these counts and the accumulated results from the corresponding counts in previous iterations, the numbers of rules with ranges in different positions relative to the current iteration value are deduced, and from these values, the goodness of the iteration value is calculated. After iteration of all range end values within the studied dimension, the iteration value with the best goodness is selected.
7 Citations
14 Claims
-
1. Method for selection of a splitting point value for use in preparation of a decision tree on the basis of a set of packet processing rules for processing data packets, comprising at least the steps of
selecting a splitting point candidate value from a set of rule parameter range end values in the parameter dimension being studied, changing a first counter for each rule with a first range end value being equal to said selected candidate value, changing a second counter for each rule with a second range end value being equal to said selected candidate value, and computing a goodness value for said selected candidate value at least partially on the basis of the values of said first and second counters.
-
5. A computer program for processing data packets according to a set of rules, comprising at least
program instructions for selecting a splitting point candidate value from a set of rule parameter range end values in the parameter dimension being studied, program instructions for changing a first counter for each rule with a first range end value being equal to said selected candidate value, program instructions for changing a second counter for each rule with a second range end value being equal to said selected candidate value, and program instructions for computing a goodness value for said selected candidate value at least partially on the basis of the values of said first and second counters.
-
10. An electronic device for processing of data packets according to a set of rules, comprising at least
selecing means for selecting a splitting point candidate value from a set of rule parameter range end values in the parameter dimension being studied, first changing means for changing a first counter for each rule with a first range end value being equal to said selected candidate value, second changing means for changing a second counter for each rule with a second range end value being equal to said selected candidate value, and computing means for computing a goodness value for said selected candidate value at least partially on the basis of the values of said first and second counters.
Specification