TCAM vs RAM – Differences in Search Operations

Architecturecpumemory

I understand the higher level of TCAM and how it differs from CAM and also RAM. My question is from the architectural point of view. I've read that TCAM search is really faster than RAM due to the parallelism, so TCAM can search for a content for the entire TCAM in parallel fashion in one clock cycle (which is why it is used in Routers). If this is correct, how is searching in RAM performed so I can compare between them?

Thank you.

Best Answer

The best scenario for a RAM search is that you have the data stored in a hash table, and you spend the cycles to calculate the hash, then you must go to that point in the table and read the value.

There are other RAM storage methods, but a full discussion of data structures and searching methods is beyond the scope of this site.