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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


