3.1.1.2 Session States

The state of an SMP session has to be maintained. An SMP session can be in any one of several states, which are described here and in the "Server Details" and "Client Details" sections.

SESSION ESTABLISHED: The session is successfully established and both session endpoints can send and receive data. The SESSION ESTABLISHED state is reached as specified in section 3.3.2.2.

FIN RECEIVED: The client or server has received a FIN packet from its peer, indicating a request to close this session.

FIN SENT: The client or server has sent a FIN packet to its peer after the session is closed by the higher layer. The sending entity will also receive a FIN packet from its peer before entering the CLOSED state (section 3.1.4.4). However, if the transport connection will also be closed by the sending entity, it is unnecessary to wait to receive the FIN packet acknowledgement.

CLOSED: The session has been closed by the higher layer, either by closing the SMP session (section 3.1.4.4) or by shutting down the SMP connection (section 3.1.4.5), at which point data can no longer be sent or received.