Statistics for Multi-layered security in the Internet of the Things