The invention relates to a method for resisting the attack of the security protocol refusing service in the wireless transmission layer, which belongs to intelligent information processing technology field. The invention is based on wireless transmission layer security protocol, combined with timer, access control, and server random number response and client terminal riddle mechanism, which resist three kinds of service-refusing attacks effectively, at first, it adds a handshake timer, data timer, for the wireless transmission layer security protocol, it resists the handshake quitting attack through the handshake timer, then uses access control mechanism, it resists the quitting security connection attacks through combining the data timer and the access control mechanism, finally, the server random response mechanism and the client terminal riddle mechanism are used to resist the exponential attack. The invention resists the three kinds of attacks, simple, easy, the security is upgraded greatly.