This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

HI All,

I am very new to world of wireshark and pcap. I just like to understand that after capturing packets by tshark, it got stored in PCAP file. This PCAP file is compressed file? e.g Suppose the data transferred on wire is 1 MB so after capturing this data the PCAP file created by tshark will be 1MB or less than that?

This question is marked "community wiki".

asked 21 Apr '15, 23:49

Aditi's gravatar image

Aditi
16446
accept rate: 0%


It will be more than that, unless you decide to capture only parts of each frame. The data on the wire is divided into multiple frames, with each frame carrying a couple of protocol headers (which adds to the PCAP file size compared to the raw data). Plus each frame has a frame header in the PCAP file, and the PCAP file again has a file header. So no, the file size is greater than 1MB under normal circumstances, and PCAP does not compress.

permanent link

answered 22 Apr '15, 02:04

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×238
×6

question asked: 21 Apr '15, 23:49

question was seen: 5,816 times

last updated: 22 Apr '15, 02:04

p​o​w​e​r​e​d by O​S​Q​A