This paper briefly describes the concept of all-IP IoT convergence-related technologies with the main line of research on the optimization of AI network security management. 6LoWPAN technology is also introduced to realize the seamless integration of low-power mesh network and core IP backbone, so as to realize the optimization of AI network security management technology. Aiming at the 6LoWPAN hierarchical routing algorithm’s problems such as control message redundancy and unreasonable parent node selection, a load-balancing-based hierarchical routing algorithm (LB-HiLow) is proposed and optimized by two improvement mechanisms, namely, optimal parent node selection and path repair. Finally, the effect of the AI network security management optimization algorithm under the all-IP IoT convergence technology is analyzed through the assessment of network security posture and the control of network security risk. The results show that the 6LoWPAN technology introduced in this paper can meet most of the application requirements for AI network security management. In addition, the effect of using the method of this paper on network security risk control reaches a good level, and the total score of the overall risk control evaluation reaches 85.86.The experiment verifies that the posture prediction performs well in both real-time and prediction accuracy, and is applicable to the posture prediction evaluation of AI network security management under the all-IP IoT convergence technology.