To know more about torrent download, I used wireshark to capture the packets transferred during the download. I was able to find that a file is split into multiple pieces that comes from different peers. Also, a single piece was transmitted as many different chunks of equal size. The piece id and length is the information available to identify the chunks.
I was able to get piece ids of different pieces transferred. But now how can I rearrange these pieces in the correct order? Does the piece id has any significance in this respect?
Also, How do torrent clients reassemble and store pieces? tells about hash values. From where can I get these values from the packets captured using wireshark?