How do I compare MQTT and TCP packets ?

0 votes

I have run some traffic from one server to another. In the first scenario, the packets were sent through TCP protocol. In the another scenario, the packets were sent through MQTT protocol (which also runs over TCP). Through the MQTT exchange scenario, the packets sent from server1 to server2 are 3 times more than the packets sent from servier1 to server2 when I used just the TCP.

Aug 27, 2018 in IoT (Internet of Things) by Matt
• 2,260 points
52 views

1 answer to this question.

0 votes

It depends on the higher-level protocols (above TCP). The MQTT protocol sends PUBACK for QOS 1, so would double the number of packets from just a send of the payload. Your protocol is secret, so we cannot comment on it. A Wireshark PCAP would allow you to diagnose the imbalance.

answered Aug 27, 2018 by anonymous2
• 4,260 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

How to connect Raspberry Pi and lighting the LED?

You might want to try instead to ...READ MORE

answered Jul 23, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
26 views
0 votes
1 answer

How to use the data I receive from Azure IoT Hub?

The payload you receive will be a ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
73 views
0 votes
1 answer

How to read data from MQTT in Eclipse Paho?

You don't read data from a MQTT ...READ MORE

answered Aug 9, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
64 views
0 votes
1 answer
0 votes
1 answer

MQTT connection consumes less power

HTTP(S) doesn't keep a connection open - ...READ MORE

answered Jul 24, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
55 views
0 votes
1 answer

Need to enclose MQTTCLient Instance in try catch block

The instance doesn't need to be surrounded by try/catch, but ...READ MORE

answered Aug 21, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
66 views
0 votes
1 answer
0 votes
1 answer

Invalid MQTT publish topic on Google Cloud IoT

It's pretty simple. You have the incorrect ...READ MORE

answered Feb 26 in IoT (Internet of Things) by Upasana
• 8,530 points
132 views
0 votes
1 answer
0 votes
1 answer

How to get Unicast, Dns and Gateway Address in UWP?

Try this code Snippet I found here: https://social.msdn.microsoft.com/Forums/en-US/27a8b7a8-8071-4bc1-bbd4-e7c1fc2bd8d7/windows-10-iot-core-how-do-you-create-a-tcp-server-and-client?forum=WindowsIoT ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
123 views