Packet reliability in gRPC - checksum?

816 views
Skip to first unread message

agup...@slb.com

unread,
Nov 15, 2017, 2:43:43 PM11/15/17
to grpc.io
Hi,

Does gRPC out of the box provide any guarantees for packet integrity over the network? Do we need to implement CRC or checksum as a field in the protobuf spec and use that to ensure that no packet corruption happened? 

This is in content of gRPC with Google cloud endpoints (ESP) if that matters. Also, SSL is enabled between client and ESP. 

-Abhishek

Evan Jones

unread,
Nov 16, 2017, 10:57:22 AM11/16/17
to grpc.io
I spent more time than I would like investigating an issue caused by packet corruption in the past [1]. As a result, I am a firm believer that protocols carrying "important" data should be checksummed. In your case: If you are using SSL, that protocol itself carries strong cryptographic hashes over the data, which serves the same purpose. If corruption occurs, it is likely the SSL protocol will cause a connection break, but your application will not receive corrupt data. I would consider this sufficient.

Reply all
Reply to author
Forward
0 new messages