added measurement of faulty packets