This paper expounds intrusion detection methods and technologies in network security,introducing the principles and processes,advantages and disadvantages of host based and network-based intrusion detection.It proposes targeted defense technologies to enhance network security and ensure stable operation of information systems.