Yeah, I don't think there's a general answer to this. Really depends on your requirements.
That said, over the years I have designed and used base protocols for this kind of thing, that are simple enough, robust enough and have proven to work well.
They are basically all based on the following packet structure:
* A header, containing:
** Sometimes a 'magic' sequence (can help identify the start of packets);
** A packet 'role" ID (defines what the packet contains, can be a "command", pure data, etc.);
** The packet size;
** Sometimes a packet 'sequence number' (if the protocol allows retrying);
* Possible 'data';
* A CRC of some kind of the whole packet (can be included in the header or at the end of the packet).
Depending on the requirements, the protocol can also include the fact that all packets must be acknowledged.