A method and device for searching and matching data
A data search and data technology, applied in the field of communication, can solve the problems of long delay of packet header matching search and high power consumption of TCAM
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] The embodiment of the present invention provides a method for data search and matching, such as figure 1 As shown, the method includes:
[0061] 101. Acquire a matching type field of the data.
[0062] Wherein, the TCAM memory has the advantages of fast parallel search and simple access mode and is widely used. Such as Ethernet packet header prediction, access control list, routing table lookup, etc.
[0063] Specifically, for example, when the TCAM memory is used to predict the Ethernet packet, the matching type field may be the protocol type field of the message.
[0064] If the TCAM memory is used to look up the access control list, the matching type field is the key of the access control list.
[0065] 102. According to the matching type field of the data, use a first memory to search for a matching result corresponding to the matching type field, and the first memory stores a first matching rule set.
[0066] Wherein, the first matching rule set includes at lea...
Embodiment 2
[0088] The embodiment of the present invention provides a method for data search and matching. The method is described in detail by taking the prediction and analysis of Ethernet packets as an example, wherein the matching type field is specifically the protocol type field of the message in the Ethernet packet, and the The matching rule includes a protocol type field and a processing action index of the packet corresponding to the protocol type field.
[0089] For example, suppose an Ethernet packet contains content such as figure 2 As shown, it includes a standard Ethernet packet header, two IEEE802.1Q packets, an Internet Protocol version 4 packet, a transmission control protocol packet, and a data payload. Among them, the length of the standard Ethernet packet header and the fixed-length packet IEEE802.1Q is fixed. The length information is as follows: figure 2 Marked; Internet Protocol Version 4 and Transmission Control Protocol are variable-length messages, and the len...
Embodiment 3
[0137] In view of this, the embodiment of the present invention provides a device for data search and matching, such as Figure 5 As shown, the device includes: a first acquisition unit 501, a first search unit 502, a second search unit 503, a control unit 504, and a second acquisition unit 505;
[0138] The first obtaining unit 501 is configured to obtain the matching type field of the data;
[0139] The first search unit 502 is configured to search and match the matching result corresponding to the matching type field through the first memory according to the matching type field of the data;
[0140] Wherein, the first memory stores a first matching rule set, the first matching rule set includes at least one matching rule, and the matching rule includes a correspondence between a matching type field and a matching result, and the first memory is three State content addressable memory TCAM;
[0141] The second search unit 503 is configured to search and match the matching r...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com