Use CAMs To Increase Line Speeds

Sept. 17, 2001
Many network designers are discovering that the fastest and easiest way to process packets at the ever-increasing line speeds is to offload the packet classification function to a coprocessor. One of the best coprocessors for this function is a...

Many network designers are discovering that the fastest and easiest way to process packets at the ever-increasing line speeds is to offload the packet classification function to a coprocessor. One of the best coprocessors for this function is a content addressable memory (CAM), also known as an associative memory. A CAM eliminates the massive amount of time normally spent by an NPU in search routines when attempting to identify and classify packets. With the right CAM, processing speeds of well over 100 million packets/s can be achieved.

A CAM is a special RAM, usually SRAM, although DRAM versions are available too. Each bit of storage has an associated bit comparator and, in some cases, an OR gate (see the figure). This combination lets the CAM compare an external input to the content of the RAM. Data stored in the CAM cells, like source and destination addresses, is compared to an external data input. The packet header field or a part thereof is provided to the CAM, which simultaneously compares it to all of the CAM contents. Then, if a match is achieved, the packet header provides an output indication. The operation of the CAM is the reverse of a regular RAM, where the input is an address and the output is the data. In a CAM, engineers provide the data and the CAM returns the address that will be used to develop and initiate forwarding instructions to the processor.

CAMs may produce more than one match during a comparison. In such cases, the lowest address of those matches is usually provided to the output. But this is handled differently in various commercial CAMs.

There are two types of CAMs: binary and ternary. Binary CAMs make only 0 and 1 comparisons, while ternary CAMs compare 0, 1, and X (don't care) states. Ternary CAMs are most efficient because individual bits or fields of bits may be ignored or masked in a comparison. Some CAMs also feature "greater than" or "less than" comparisons.

Sources of commercial CAMs include Kawasaki LSI, Lara Networks, MOSAID, Music Semiconductor, SiberCore Technologies, and Virage Logic.

Sponsored Recommendations

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!