The invention discloses an equipment type identification and network intrusion detection method for the Internet of Things. the intrusion detection system is composed of an equipment type identification matching system and an abnormity detection system, and the type identification system can extract equipment characteristics according to characteristics of periodic communication of the equipment,classify and gather the equipment characteristics according to periodic statistical characteristics and the like, and classify the equipment into abstract types; The pattern recognition system based on the GRU neural network of the anomaly detection system can learn and memorize normal communication behaviors so as to establish a normal behavior sequence model, and due to the fact that the GRU neural network is designed for each device type, the recognition precision is higher, and the false alarm rate is greatly reduced; The gateway is adopted to monitor the communication condition of all Internet of Things devices in the network, so that all Internet of Things devices are directly or indirectly connected to the gateway, all communication between the Internet and the Internet and local communication between the Internet and the Internet of Things devices can be detected, local data processing is carried out through the gateway with higher performance, and shortage of resources of Internet of Things devices is avoided.