There is a message sender which could be a user device and it sends a command to an IoT device and receive a response. Also, message receiver is a IoT device and it collects data or control the device. A sender and a receiver should know each client’s status for exact control. Wrong message delivery could be the reason of error or wrong operation. Therefore, each client has to keep the requirement of reliable message transmission.