-1

Problem: I am unable to publish uplink measures to TTN(The Things Network,MQTT Broker) through MQTT Publisher Client. Follow these steps...

  1. Installed Eclipse Mosquitto providers a CLI to subscribe and to publish messages.

  2. Start Mosquitto Service. start mosquitto service

  3. MQTT command to publish uplink measure:

    mosquitto_pub -h eu.thethings.network -p 1883 -u applicationid-P ttn-account-v2.xXXXXXXXXXXXXXXXXXXXXXXXXX -t applicationid/devices/deviceid/up -m '{"port":1,"payload_raw":"AWcAuw=="}' -d
    
  4. MQTT command to subscribe uplink measure:

    mosquitto_sub -h eu.thethings.network -p 1883 -u applicationid -P ttn-account-v2.x2Q20I2hDo1XXXXXXXXXXXXXXXXX -t applicationid/devices/deviceid/up
    
hardillb
  • 54,545
  • 11
  • 67
  • 105
Manish Pareek
  • 69
  • 1
  • 5
  • Why are you planning to run a DoS attack on TTN's broker? – hardillb Nov 19 '19 at 10:49
  • I have no intentions to run a DoS attack on TTN's broker. I want to send uplink request to TTN's broker using MQTT publisher client. I have updated my question accordingly. – Manish Pareek Nov 19 '19 at 12:24
  • That's not what the original question asked, you were asking how to use JMeter to load test somebody else's infrastructure, that sounds very much like a DoS – hardillb Nov 19 '19 at 12:27
  • Yes, You are right earlier question sounds like a Dos that's why after your comment i updated my question so that it is easy to understand. – Manish Pareek Nov 19 '19 at 12:30
  • Since you have now substantially changed the scope of the question I suggest you delete this one and re-ask it – hardillb Nov 19 '19 at 12:31

1 Answers1

1

Double check that you can really reach to this 52.169.76.255 host and 1883 port using telnet tool or equivalent, for example I cannot connect to this server.

According to WHOIS information the IP address belongs to Microsoft corporation so my expectation is that you're trying to test an application which is deployed in Azure cloud infrastructure. I would recommend checking if port 1883 is open for incoming connections and if not you will need to configure the VM and open the port (you might also need to do the same in the OS firewall)

Once you will be able to establish the connection using telnet (or equivalent) JMeter should also be able to connect and send/receive the messages.

Just in case check out Testing the MQTT Messaging Broker for IoT - A Guide

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • I have no intentions to run a DoS attack on TTN's broker. I want to send uplink request to TTN's broker using MQTT publisher client. I have updated my question accordingly. – Manish Pareek Nov 19 '19 at 12:28