A Smart Pre-Classifier to Reduce Power Consumption of TCAMs for Multi-dimensional Packet Classification