Method and device for realizing stateful operation in stateless network protocol

Disclosed is a method for realizing a stateful operation in a stateless network protocol, comprising: receiving a first session instruction comprising a first physical session identifier and initiated by an Internet of Things application; after the first session instruction is parsed, creating a platform logic session node for the parsed first session instruction, and storing the platform logic session node in a platform session linked list corresponding to an Internet of Things terminal identifier carried by the first session instruction; establishing a session connection with an Internet of Things terminal corresponding to the Internet of Things terminal identifier carried by the first session instruction, and generating a logic session identifier; and returning a logic session establishment success message carrying the logic session identifier to the Internet of Things application and the Internet of Things terminal, so that the Internet of Things application and the Internet of Things terminal complete message delivery by means of the logic session identifier. The solution can solve a variety of problems existing in session delivery in the related art, and realizes a stateful operation of an Internet of Things application on an Internet of Things terminal in a stateless network.