How Data Travels | Ethernet, TCP & MQTT
Ethernet, TCP and MQTT play different roles when a sensor publishes a reading. An MQTT message can travel over TCP/IP on an Ethernet network.
The key idea
Ethernet carries frames on the local link. TCP provides an ordered byte stream between endpoints over IP, and MQTT uses that connection to carry publications to a broker that serves subscribers.
What to remember
- Separate the local link, transport connection and messaging service.
- Check broker-level acceptance when diagnosing missing publications.
Check your understanding
A TCP connection to the broker works. What could still prevent a subscriber from seeing a reading?
Show the explanation
The publication may use a different topic, the subscription may be absent, or broker permissions may block delivery.