The document discusses TRM-RPL, a trust-based routing metric designed to enhance the RPL routing protocol used in the Internet of Things (IoT), particularly in smart factories. This model aims to detect and resist routing attacks while ensuring Quality of Service (QoS) and addresses both node and link trust through a multidimensional approach. Experimental results demonstrate that TRM-RPL outperforms the standard RPL in terms of effectiveness and resilience to various security threats.