3.2.1.1 State Machine

The following figure shows the state machine for a CBCP answerer.

Callback state diagram--answerer states

Figure 4: Callback state diagram--answerer states

The answerer state machine has the following states as represented by the Current State variable.

State name

Description

CBCP_STATE_WAIT_FOR_RESPONSE

In this state, the answerer will wait for the Callback Response message to be received from the caller. After this message is received, the answerer will proceed to CBCP_STATE_DONE after sending the Callback Acknowledgment message.

CBCP_STATE_DONE

The answerer will be in this state if it has sent out the Callback Acknowledgment message for the Callback Response message received from the caller. The answerer will continue to process the Callback Response messages from the caller until the time that the PPP session is terminated. This is to ensure that the answerer is processing the messages sufficiently so that the Callback Acknowledgment message reaches the caller.

The preceding description covers the state transitions for a successful CBCP negotiation. Failure transitions are covered in the state machine diagram earlier in this section and are also covered in section 3.2.5.