(This article is used for the shortcomings of the current teaching of computer network security technology in colleges and universities. It plans the experimental teaching of computer network security technology through actual attack and defense based on Sniffer, and proposes network attack and defense security strategies.)