Packet Analysis for Network Security