The pcap format, abbreviated from packet capture, is a common file format for saving network data. More details on the pcap format can be found at http://wiki.wireshark.org/Development/LibpcapFileFormat.
If you want to save your captured network packets to a file and later reuse them for further processing, this recipe can be a working example for you.