Investigation of Security Weakness and Vulnerability in IoT Routing Protocol and Solution