Scalable network fingerprinting for IoT devices