grpc-node icon indicating copy to clipboard operation
grpc-node copied to clipboard

How to capture gRPC keep alives with tcpdump?

Open josecazarin opened this issue 1 year ago • 2 comments

Hello!

I've tried all the possible combinations of filters in tcpdump for later inspection to try to capture gRPC keep alive probes, but I can never see them in Wireshark. So I don't know if the changes I'm making to my Go code are actually taking effect. Does anyone have an ideia on how to configure tcpdump to capture keep alive probes?

I'm trying to capture those probes in different services running on the same host, so I'm basically using gRPC as a local IPC mechanism.

Thank you so much!

josecazarin avatar May 17 '24 21:05 josecazarin

gRPC keepalives are implemented as HTTP2 pings. You should see those in the tcpdump output if you interpret the traffic as HTTP2.

murgatroid99 avatar May 17 '24 21:05 murgatroid99

If for any reason you think you are missing keepalives that should be there, please let me know how you have your server/client setup, library versions, etc in https://github.com/grpc/grpc-node/issues/2734 --- if you think your keepalives are working and you just want to inspect traffic, then please ignore my noise. :)

davidfiala avatar May 27 '24 23:05 davidfiala