Device-to-Device (D2D) communication is a key enabling technology to replace base station-todevice(B2D) communication. D2D with IoT realization has spectral and energy-e cient features for ontime quality data transfer. However, the rapid growth of such networks and the dynamic quality of service demands of user equipment require robust and e cient service quality in disasters, outages, and adversarial conditions. To address this challenge, this paper proposes a triple modular redundancy based on the maximum distance separable (TMR-MDS) technique has been proposed, which modi es the repair bandwidth by utilizing more storage occupation and improving the D2D link availability in the system. The proposed TMR-MDS technique will be used, which is composed of two phases: trust management modules and triple modular redundancy storage modules. As part of the initial stage of trust management, a fuzzy logic model is employed to determine the user's trust value after the user's behavior is examined. Second, using the majority voting scheme to improve triple modular redundancy storage. Furthermore, if any problem occurs in the node, then it will self-organize. MATLAB is used to evaluate the performance of the proposed system. The overall system performance is evaluated in terms of the network's trust level, and the communication cost of the proposed strategy. As per the experimental results, the proposed TMR-MDS method has a better performance of 12.67%, 23.68%, and 25.87% than HBP [4], DR-MDS [5], and URL-RFC [6].