Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is an ideal way to get the number of packets per second on a Linux box?

Would I use tcpdump or are there better methods?

share|improve this question

closed as not constructive by kce, mdpc, chutz, Dave M, Scott Pack Jan 17 '13 at 14:18

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

if you need an exact number then yes, I'd use that. but if it's roughly then you might want to look into MRTG - Tobi Oetiker's MRTG - The Multi Router Traffic Grapher.

share|improve this answer

What do you need? Long term monitoring of packet statistics? Graphing? Further analysis?

If you just want to look at packet rates on a box, use iptraf.

share|improve this answer
Just to get an idea on a size of a ddos attack and the kind – Tiffany Walker Jan 16 '13 at 20:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.