Security Countermeasures for Topology and Flooding Attacks in Low Power and Lossy Networks