“Report 2: Implementation Phase A Comparative Study of MQTT…

Section 3 Proposed Method / Approach

  • State that this is a Comparative Study (Track 2)
  • List the two protocols:
    • MQTT (proposed)
    • HTTP (baseline)
  • Explain in 1 paragraph why these two are compared refer back to the literature review findingsSection 4 System Design
  • Draw an architecture diagram showing:
    • Sensor Broker/Server Client
  • Explain each component:
    • What it does
    • How it connects to the next component
  • Explain the workflow step by stepSection 5 Dataset
  • This project does not use a real dataset the data is simulated in Python to represent a typical IoT sensor device
  • Describe the simulated data:
    • What is being simulated: a sensor device sending readings (e.g. temperature or humidity values)
    • Payload size: 100 bytes per message
    • Transmission interval: 1 message every 1 second
    • Test duration: 10 minutes per protocol
    • Total messages sent: 600 messages per protocol
  • Define the test scenarios:
    • Both protocols are tested separately but under identical conditions
    • Same payload size, same interval, same duration, same machine
  • Preprocessing:
    • No preprocessing needed data is generated and sent directly
    • Timestamps are recorded at send and receive time for latency calculation
    • Packet size is recorded for bandwidth measurement
    • Message delivery is tracked for reliability calculationSection 6 Experimental Setup
  • List all tools used:
    • Python
    • Paho-MQTT
    • Flask
    • Mosquitto
    • Wireshark / Scapy
  • Define configuration:
    • Payload size: 100 bytes
    • Transmission interval: 1 second
    • Test duration: 10 minutes
  • Mention hardware:
    • Your laptop specs (RAM, processor)Section 7 Implementation Details
  • Describe how the simulation was built step by step:
    • Setting up Mosquitto broker
    • Setting up Flask server
    • Writing the MQTT publisher client
    • Writing the HTTP client
  • Explain the testing process:
    • How messages are sent
    • How metrics are measured
  • Mention any challenges faced and how they were solvedSection 8 Results
  • Run the simulation and collect real numbers for both protocols
  • Present results in a comparison table showing MQTT vs HTTP across all 4 metrics:
    • Latency
    • Bandwidth Usage
    • Power Consumption
    • Reliability
  • Add graphs comparing both protocols fairly one graph per metric is ideal
  • Make sure both protocols are tested under identical conditions so the comparison is fair
  • Do not favor one protocol present the numbers as they are

WRITE MY PAPER

Comments

Leave a Reply