[PERSON] proposed a multi-objective Gray Wolf Optimization Algorithm (MGWO) to reduce the QoS objectives. The simulation results validated the effectiveness of the MGWO algorithm in reducing the delay and energy consumption compared to the existing algorithms [4]. [PERSON] proposed a distributed load balancing protocol using particle swarm optimization for secure data management to maintain the integrity of the network communication and the simulation results showed that compared to other solutions, The proposed protocol achieved the best results compared to other solutions, with a 20% improvement in energy consumption, a 17% improvement in success rate, a 14% reduction in end-to-end delay, a 20% increase in energy efficiency, a 17% improvement in success rate, and a 19% reduction in network cost [5]. [PERSON] proposed a privacy-preserving authentication scheme for demand response management in SGs called BPPS, and their experimental results showed that the MIM-DCSK scheme is a promising solution for low-power and low-cost short-range wireless communications [6]. [PERSON] proposed a new multidimensional indexed modulated differential chaotic shift keying scheme called the MIM-DCSK scheme and the experimental results showed that the MIM-DCSK scheme is a promising solution for low-power and low-cost short-range wireless communication [7]. [PERSON] designed a lightweight \((t,n)\) threshold secret sharing \((t/n-SS)\) scheme to enhance the security and efficiency of healthcare data sharing, and the simulation and performance evaluation results showed that this \(t/n-SS\) scheme is energy-efficient, storage-saving, and more fault-tolerant than other similar schemes [8]. These researchers started by constructing a reliable information transmission network with the goal of improving the efficiency and security of multi-user information transmission, and have achieved significant improvements in throughput, latency, energy consumption, and security, which provide strong support for information security and other fields. According to the characteristics of AES encryption, this paper not only pre-calculated the S-box and Mixcolumn matrix, which have high computational overhead, to reduce the computational overhead, but also combined the differential computation to design a more secure S-box, which further ensures the security of the ciphertext. After that, this paper combined the TLS protocol with the AES encryption algorithm and integrated it into the multithreaded C/S architecture, so as to carry out multilevel data security protection during the transmission of ciphertexts in the five-layer structure of the TCP/IP architecture, and to improve the confidentiality, integrity and reliability of the data. The main contributions of this paper are as follows:  
1. An optimization scheme combining an AES encryption algorithm and pre-processing mechanism (Pre) is proposed. This paper designed and implemented an encryption transmission scheme that combines an AES encryption algorithm with a preprocessing mechanism. This scheme improves the efficiency and security of data communication by optimizing the key steps of the encryption algorithm. 2. The performance advantages of the AES+Pre scheme in port intelligent device communication were verified. Through experimental analysis, it was proven that the AES+Pre scheme is significantly better than the traditional AES encryption scheme in terms of average transmission delay, throughput and acceleration ratio. The experimental results showed that compared with the traditional AES scheme, the average transmission delay was reduced by 49.1%, the throughput was increased by 96.4%, and the acceleration ratio reached 1.96. 3. Compared and analyzed the performance of AES+Pre with other mainstream encryption schemes. In this paper, AES+Pre was compared with ECC, RSA and other mainstream encryption schemes.