MQTT over UDP combines MQTT semantics (topics, payloads, publish/subscribe) with UDP's low overhead and a custom application-level reliability layer — ACK/NAK, retry, fragmentation, and reassembly. Purpose-built for IoT telemetry, industrial automation, and constrained devices with limited memory and CPU.
Removes TCP connection overhead entirely — ultra-fast delivery for time-critical IoT telemetry and industrial control where every millisecond counts.
Application-level ACK/NAK, retry, and fragmentation/reassembly — delivery guarantees without TCP's heavy connection state and handshake overhead.
Compact 30-byte binary header with minimal memory and CPU footprint — ideal for embedded MCUs, low-power sensor nodes, and edge gateways.
Clients construct MQTT-style payloads, fragment them into UDP segments, and transmit with an application-level reliability layer. The broker validates, buffers, and reassembles before dispatching to subscribers.
Each UDP packet consists of a fixed 30-byte binary header followed by variable-length RawData. Minimum packet size is 32 bytes; MTU target is 1472 bytes for standard Ethernet.
| Code | Type | Direction |
|---|---|---|
| 0x0001 | MSG_PUBLISH | Client → Server |
| 0x0002 | MSG_SUBSCRIBE | Client → Server |
| 0x0003 | MSG_UNSUBSCRIBE | Client → Server |
| 0x0004 | MSG_PINGREQ | Client → Server |
| 0x0005 | MSG_CONNECT | Client → Server |
| 0x0006 | MSG_DISCONNECT | Client → Server |
| Code | Type | Meaning |
|---|---|---|
| 0x1001 | ACK_SUCCESS | Segment acknowledged |
| 0x1002 | ACK_COMPLETE | Full message received |
| 0x2001 | NAK_AUTH_FAIL | Auth failure |
| 0x2002 | NAK_INVALID_SEG | Bad segment number |
| 0x2003 | NAK_CHECKSUM | CRC mismatch |
| 0x2004/5 | NAK_MALFORMED/SIG | Invalid packet |
XEUPD bridges the gap between UDP speed and enterprise-grade reliability — addressing every UDP limitation while maintaining the latency advantage over TCP-based MQTT.
| Feature | MQTT / TCP | MQTT / UDP | XEUPD |
|---|---|---|---|
| Transport | TCP | UDP | UDP + Reliability Layer |
| Connection | Stateful (3-way HS) | Connectionless | Session-aware over UDP |
| Reliability | Built-in | None | Custom ACK + Retry |
| Latency | Moderate | Very Low | Ultra-Low |
| Scalability | Medium | Very High | Extremely High |
| IoT Suitability | Good | Very Good | Excellent |
| Security | TLS | DTLS / Custom | XEUPD Secure Layer |
| Best Use Cases | Standard Messaging | Gaming, VoIP | IoT, Medical, Telemetry |