An industrial internet architecture based on SDN and fog computing