A java packet sniffer designed for anomaly based IDS