Rapid matching classification method for data packets
A classification method and data packet technology, applied in the direction of electrical components, transmission systems, etc., can solve problems such as performance degradation, and achieve the effect of speeding up matching filtering, effective forwarding effect and efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] Such as figure 1 As shown, a method for fast matching and classification of data packets, first classifies the existing rule base according to the set classification rules, compares the priority of the rules of the same class, and deletes the previous rules according to the principle of repeated rules; Then, in the same type of rules, the method of sequential matching and priority collection is used for rule matching; finally, according to the matching rules, corresponding commands are executed.
Embodiment 2
[0025] On the basis of Embodiment 1, the classification rules described in this embodiment divide the rules into four categories: MAC address, IP address, port, and protocol according to the 8-tuple. In classes, the priority follows the rules;
[0026] For example, if a rule is if {*, *, 192.168.137.23, 192.168.137.73, *, *, ICMP, 100}, then discard, then the rule can be an ip address rule or a protocol rule; if If it is an ip address rule, it is if {*, *, 192.168.137.23, 192.168.137.73, *, *, *, 100}, then discarded; if it is a protocol rule, it is if {*, *, *, *, *, *, ICMP, 100}, then drop;
[0027] The priority is divided into 1-255, the priority value is an integer, the bigger the better;
[0028] For rules with the same size priority, according to the time priority, the later priority is greater, and the later rule replaces the previous rule;
[0029] If multiple rules have different priorities, the rule with higher priority will be selected.
Embodiment 3
[0031] On the basis of embodiment 1 or 2, the specific operation steps of the method described in this embodiment are as follows:
[0032] 1) Divide the continuously enriched filtering rule base into 4 categories according to the classification rules, and arrange them in order to make the filtering rules orderly;
[0033] 2) Match each filter rule according to the sequential matching strategy, compare its priority, and select the appropriate matching rule;
[0034] 3) According to the obtained matching rules, the data packets are passed and discarded.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 