  Network traffic generation is one of the primary techniques that is used to
design and analyze the performance of network security systems. However, due to
the diversity of IoT networks in terms of devices, applications and protocols,
the traditional network traffic generator tools are unable to generate the IoT
specific protocols traffic. Hence, the traditional traffic generator tools
cannot be used for designing and testing the performance of IoT-specific
security solutions. In order to design an IoT-based traffic generation
framework, two main challenges include IoT device modelling and generating the
IoT normal and attack traffic simultaneously. Therefore, in this work, we
propose an open-source framework for IoT traffic generation which supports the
two widely used IoT application layer protocols, i.e., MQTT and CoAP. The
proposed framework allows a user to create an IoT use case, add customized IoT
devices into it and generate normal and malicious IoT traffic over a real-time
network. Furthermore, we set up a real-time IoT smart home use case to manifest
the applicability of the proposed framework for developing the security
solutions for IoT smart home by emulating the real world IoT devices. The
experimental results demonstrate that the proposed framework can be effectively
used to develop better security solutions for IoT networks without physically
deploying the real-time use case.
