Mask quintuple rule matching method and device thereof
A matching device and quintuple technology, applied in electrical components, digital transmission systems, data exchange networks, etc., can solve the problems of TCAM storage space overhead and weak rule expansion, so as to improve rule capacity and utilization rate , cost-saving effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] Taking a network data traffic processing device as an example, there are three IPv4 mask quintuple rules, the SIP and DIP address fields are expressed in the form of a suffix mask, and the SP, DP, and P fields are all masked with 0. And the length of the result is a fixed 4 bytes, as shown in Table 1:
[0034] Database User Data SIP=1.1.1.0 / 24, DIP=2.2.2.0 / 24, SP=10000, DP=80, P=6 Result A SIP=1.1.2.0 / 24, DIP=2.2.2.0 / 24, SP=10000, DP=80, P=6 Result B SIP=1.1.3.0 / 24, DIP=2.2.2.0 / 24, SP=10000, DP=80, P=6 Result C
[0035] Table 1
[0036] According to the traditional storage method, 3 rule storage spaces are occupied, and the part that does not care about is represented by X, and the TCAM storage space consumed by the matching part of the 3 mask quintuple rules in Table 1 is 20*3=60 bytes, the result Partially consumed storage space is 4*3=12 bytes, such as figure 1 shown.
[0037] A rule matching method provided in this embodiment ...
Embodiment 2
[0045] In a rule matching method provided by this embodiment, a rule valid flag is introduced into the result part corresponding to each rule, occupying 1 bit storage space, and the flag is set when the mask rule entry is created to indicate whether there is a corresponding The mask quintuple rule.
[0046] The merged rules use the value of the 2-bit merge bit as the offset of the result part to index the result corresponding to each rule, and judge whether the rule exists according to whether the rule valid flag is set in the result. The specific rule matching process is as follows Figure 4 As shown, the specific steps include:
[0047] Step 4.1, the program starts;
[0048] Step 4.2, data message input;
[0049] Step 4.3, extracting the quintuple information according to the data message, and sending it to the TCAM for rule entry search;
[0050] Step 4.4, the merged rule uses the value of the merge bit as the offset of the result part to index the result corresponding t...
Embodiment 3
[0055] A mask quintuple rule matching device applied in a three-state content addressable memory TCAM chip provided by this embodiment specifically includes:
[0056] The rule merging module is used for merging bit feature recognition on the suffix mask in the mask quintuple rule in the Database part, and merging a plurality of mask quintuple rules comprising identified merging bits into one rule;
[0057] The matching result index module is used to jointly store the corresponding matching results of the merged rules in the User Data part corresponding to the merged rules, and assign the above-mentioned merged bits as indexes to the corresponding matching results;
[0058] The matching module is configured to index the final matching result based on the merging bit after the quintuple information of the data packet matches the merging rule.
[0059] In a kind of rule matching device provided by this embodiment, the rule merging module further includes: a merging bit identifica...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap