Distributed detection of flooding and gray hole attacks in Wireless Sensor Network | IEEE Conference Publication | IEEE Xplore