Securing IoT against Botnet and DDoS attacks