A hardware solution on multi-field packet classification