Wire protocol is documented at: https://github.com/apache/zookeeper/blob/master/src/zookeeper.jute
There is also a tool to analyze the ZK messages, which might help for your case: https://github.com/twitter/zktraffic On Sun, Jan 1, 2017 at 11:24 PM, Ankit Shah <[email protected]> wrote: > Hi, > > I need to debug the data being exchanged between my kafka consumer and > zookeeper using tcpdump. I went through the zookeeper documentation but > could not find any write up about the zookeeper communication protocol i.e > I get the following data dump using wireshark after removing headers. How > do I interpret the data part? > > Frame 1: 78 bytes on wire (624 bits), 78 bytes captured (624 bits) > Ethernet II, Src: 22:00:0a:xx:xx:xx (22:00:xx:xx:xx:xx), Dst: > fe:ff:xx:xx:xx:xx (fe:ff:ff:xx:xx:xx) > Internet Protocol Version 4, Src: 10.234.xxx.xxx, Dst: 10.231.xxx.xxx > Transmission Control Protocol, Src Port: 51720 (51720), Dst Port: 2181 > (2181), Seq: 1, Ack: 1, Len: 12 > Data (12 bytes) > Data: 00000008fffffffe0000000b > [Length: 12] > -- Cheers Michael.
