Discussion I designed a binary communication protocol with only 4 message types. I challenge you to find a fifth.
I've been developing INER (Intention, Notification, Event, Response), a small binary semantic protocol designed around authoritative client-server communication.
The idea is simple: instead of defining a new message category for every kind of interaction, INER uses four fundamental message types that can be composed to build entire communication systems.
Here are the four:
Intention (Client → Server): Requests an action that the server must evaluate. This includes anything from moving a player to querying information.
Notification (Client → Server): Communicates information without requesting an action. Telemetry, diagnostics, or reporting something that happened on the client are examples.
Event (Server → Client): Communicates an occurrence or state update from the authority.
Response (Server → Client): Communicates the outcome of an Intention, linked through a correlationId.
That's it.
INER also defines a compact binary representation, with headers ranging from 4 to 7 bytes, depending on the message type.
It's important to understand what INER doesn't try to do.
It doesn't define sockets, threading, retransmission, delivery guarantees, or when messages should be sent. It doesn't dictate application logic or payload formats.
It defines what a message means, its direction, and how its header is represented in binary.
The protocol assumes one Authority (the server) and its Obedients (the clients). It's not designed for peer-to-peer or server-to-server communication.
Here's my challenge.
Find a fifth fundamental message type that cannot be semantically represented by any of these four.
Not a specific operation like "Cancel", "Ping", "Acknowledge", or "Subscribe". Those can already be expressed using the existing types and application-defined payloads.
I'm looking for a genuinely distinct semantic category.
For example:
Want to request information? Intention → Response.
Want to report client-side telemetry? Notification.
Want to broadcast a state change? Event.
Want to cancel an operation? Another Intention.
Want to acknowledge an Event? Notification.
You can define your own message IDs, payloads, and application-level behavior. INER deliberately leaves those decisions to the application.
I've been trying to find a communication scenario within this model that requires a fifth category, and so far, I haven't found one.
I'm not claiming I've mathematically proven that four types are universally sufficient. I'm challenging you to find a counterexample.
If you can describe a legitimate authoritative client-server interaction that doesn't fit these four types without distorting their meanings, I'd genuinely like to hear it.
And if you think one of the existing definitions is too broad, that's also worth discussing.
The protocol is implemented in my C++17 networking library, LightnerX:
https://github.com/pietroth/LightnerX
So, can you break the four-type model?
6
u/beders 1d ago
Only two are necessary: request & response - give them a type and you are done.
There’s nothing intrinsically valuable in having those 4.
The interesting part is the payload which will differ per message type.
2
u/__Blank_________ 1d ago
Maybe split Intent into Intent/Command (mutates state) and Eval/Query (readonly)
1
u/pangapingus 1d ago
Is this for stateful app use? If so I have no qualms, even bring in the niceties of preflights with Notification as long as Response can be sent in regards to a Notification; but your descriptions here say Response only sent in regards to an Intention.
1
u/NuggetsAreFree 1d ago
I don't think this generalizes well. The necessity of the message types arises out of rules you have arbitrarily chosen regarding what messages can contain and how they are actionable. If you throw those rules out, the message types can be simplified. I don't really see a lot of value here.
1
u/dddbbb mourning gamedev.city 1d ago
How does the server request a response from a client?