In this paper,the function of adaptive distributed intrusion detection system is discussed,and an agent-based layered structure model of intrusion detection system is presented.The model,with strict precaution against intrusion and high robust and reliability of system,can be used in complex-net environment.