Quality Assessment and Security in Industrial Internet of Things