Programmable network technology controls network devices and data packets through software-defined and programming techniques, enhancing network flexibility, scalability, and automation capabilities, thereby laying a solid foundation for the development of multimodal networks. Based on a programmable architecture, this paper designed a data packet routing and forwarding mechanism for six modalities: identity, content, geographical location, elastic address space, IPv4, and IPv6, and implemented packet parsing, routing lookup, and forwarding at the data plane. Simultaneously, a multimodal network control system was constructed to support functions such as packet parsing, topology management, flow table generation and distribution, and network measurement. It integrated resource coordination and scheduling algorithms to analyze network status in real time, compute routing rules, and distribute flow tables. Through traffic feature extraction, this paper achieves security detection and builds a multimodal network traffic time-series model based on deep learning to realize anomaly detection and identification, introducing intrinsic security features to ensure system availability and reliability. Experimental results demonstrate that the proposed scheme enables unified communication and control of multimodal networks, supporting multiple modalities. The control system is functionally complete and performs stably, with a topology scale exceeding 2000 nodes and end-to-end latency below 100ms. The security detection function can identify abnormal traffic and network modalities in real time, with an anomaly detection accuracy rate of 96.49% and a modality recognition accuracy rate of 99.72%.