This book introduces network attack and defense technologies from the shallower to the deeper. First of all, this book starts with the different threats faced by network security, introduces the basic principles of various attack techniques, and gives certain example analyses. Then, the defense technology of network security is systematically introduced from the aspects of network security, access control mechanism, firewall technology, intrusion detection, etc., And then the technologies and methods of network security management are analyzed. This book is comprehensive and step-by-step, and is suitable as a textbook for information security-related majors in colleges and universities.