You might want to clarify a little bit your question.
What do you want to do?
Do you want / need a traffic generator? (if this is the case, I can suggest you this page).
As for traffic capture, there are various ways to do so.
I tend to tell you about one of the most used, that is Wireshark.
What is your purpose?