Method and device for writing tcam table of tri-state content addressable memory

A technology of content addressing and storage, which is applied in the field of communication, can solve problems such as wasting TCAM table resources, and achieve the effect of saving TCAM table resources and convenient management

Active Publication Date: 2021-04-06
ZTE CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The embodiment of the present invention provides a method and device for writing the TCAM table of the tri-state content addressable memory, so as to at least solve the problem of wasting TCAM table resources in the related art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for writing tcam table of tri-state content addressable memory
  • Method and device for writing tcam table of tri-state content addressable memory
  • Method and device for writing tcam table of tri-state content addressable memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041]The technical solution in this application file can operate on a core router device that has a multi-NP line card.

[0042]figure 1 It is a flow chart of a three-state content addressing memory TCAM table according to an embodiment of the present invention, such asfigure 1 As shown, the method includes the following steps:

[0043]Step S102, the relevant service of the access control list ACL is applied to the aggregated port;

[0044]Step S104, write all of the ACLs to the TCAM table of the network processor NP where the aggregate port is located.

[0045]It is necessary to supplement that the member ports in the aggregate port may belong to different NPs, ie in the above embodiments, may be written in a TCAM table of multiple NPs. There is no direct connection relationship between the aggregate port and NP, which is a collection of two different technical levels.

[0046]It should be noted that the relevant service of the ACL means that the service can match Match the ACL rule, specificall...

Embodiment 2

[0121]In this embodiment, a writing device of a tri-state content addressing memory TCAM table is provided, and is applied to a routing device, which is used to implement the above-described embodiments and preferred embodiments, and will not be described without further explanation. As used herein, the term "module" can achieve a combination of software and / or hardware of a predetermined function. Although the apparatus described below is preferably implemented in software, the implementation of hardware, or combinations of software and hardware may also be conceived.

[0122]According to an embodiment of the present invention, a writing device of a tri-state content addressing memory TCAM table includes:

[0123]Write table module, configured to write all rule entries contained in the aggregate port to the TCAM table of the network processor Np of the aggregate port of the aggregate port.

[0124]Alternatively, all rule entries contained in the ACL are written to the TCAM table of the ne...

Embodiment 3

[0132]Embodiments of the present invention also provide a storage medium. Alternatively, in the present embodiment, the storage medium can be set to store program code for performing the following steps:

[0133]S1, after applying the relevant service of the access control list ACL to the aggregate port, write all rule entries contained in the ACL to the TCAM table where the member port of the aggregate port is located.

[0134]Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U disk, a read-only memory (ROM, RAD-ONLY MEMORY), random access memory (RAM, RANDOM Access Memory), mobile hard disk, magnetic Various media such as disc or optical discs can store the program code.

[0135]Alternatively, in the present embodiment, the processor performs the method steps in the above embodiment according to the program code stored in the storage medium.

[0136]Alternatively, the specific examples in this embodiment can refer to the examples described in t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method and device for writing a TCAM table of a three-state content addressable memory, wherein the method includes: after applying an access control list (ACL)-related service to an aggregation port, writing all rule entries contained in the ACL to the The member ports of the aggregation port are located in the TCAM table of the network processor NP. By adopting the above technical solution, the problem of wasting TCAM table resources in related technologies is solved, the TCAM table resources are effectively saved, and at the same time, convenient management of multi-NP TCAM tables by routing equipment is realized.

Description

Technical field[0001]The present invention relates to the field of communications, and in particular, to a method and apparatus for a tri-state content addressing memory TCAM table.Background technique[0002]In the relevant technique, access control list (ACL) Access control list is a library tool. The high-end router uses ACL to achieve classification and control of port traffic, flow mirror, routing strategy, policy routing, etc. Features. The ACL can filter filtration in the message in the message, the most common filter field is the five-tuple, namely the source IP address, the destination IP address, the protocol number, source port number, and destination port number.[0003]An ACL list (list) can have multiple rules (Rule), each rule describes a certain match condition. For a given message, it is judged from the first rule to match whether it matches. Once the rule is in the match, the action set in the rules (Permit / Deny) is returned.[0004]The aggregate port is a logical port...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityPatents(China)
IPC IPC(8): H04L12/741H04L12/26H04L29/06H04L45/74
CPCH04L43/026H04L63/0236H04L63/0263H04L63/101H04L45/74591
Inventor吴小娟陈文迅
OwnerZTE CORP