A management framework for Wireless Sensor Networks