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

BitTorrent capture

0

does anybody know how wireshark identify p2p traffic? Port number? or payload checking?

asked 11 Apr '11, 12:27

LeviVic's gravatar image

LeviVic
1223
accept rate: 0%


One Answer:

2

The bittorrent dissector registers itself as a heuristic dissector to tcp. The heuristic works by first ensuring that the TCP payload is at least 20 bytes in length, that the first byte is equal to the value of 19 (0x13), and that the 19 bytes following that value are equal to the string, "BitTorrent protocol". If all of that is true, then the payload is assumed to be bittorrent traffic; otherwise, it's assumed not to be.

answered 12 Apr '11, 12:16

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%

Thanks, you are quite right. How about other p2p protocols, dose wireshark has the ability detecting them?

(12 Apr '11, 12:21) LeviVic

Each p2p protocol would have to be checked individually.

(12 Apr '11, 12:25) cmaynard ♦♦