Sampling Techniques to Accelerate Pattern Matching in Network Intrusion Detection Systems