FlowCoder is an interactive WYSIWYG network programming and testing tool. It allows building packets for a variety of network protocols, sending them out to a network, waiting for a response, matching requests with replies, keeping the state, etc.
SafePCAP is a scriptable editor and anonymizer for network packet capture (Pcap) files. It allows sanitizing Pcap files at all stack layers before sharing them with untrusted parties.
ProofREADER is a scriptable packet analyzer. It allows easy programmatic Pcap file analysis with Python.
All the major tasks can be automated.