4.1 Connection Setup and Data Exchange
In the example illustrated in the following figure, the user initiates the PPP Over IrDA Dialup Protocol connection by initializing the client-side protocol as specified in section 3.3.3. The user then passes the phone number to the client-side PPP Over IrDA Dialup Protocol, as specified in section 3.3.4. It is assumed that server-side initialization, as specified in section 3.2.3, has already taken place:
The client sends a dial message, as specified in section 220.127.116.11, with the Number field containing "8001231234".
The server echoes the dial message back to the client as specified in section 18.104.22.168 (not shown in the following figure).
The server sends the dial response message containing the connection speed at which it can operate, in the form <CR><LF>CONNECT 9600<CR><LF>, where 9600 indicates the negotiated speed between the two modems (one modem being the PPP Over IrDA Dialup Protocol server and the other modem being the device at number 800-123-1234 from step 1).
Once the connection is established and the client side of the PPP Over IrDA Dialup Protocol indicates to the PPP layer to send data, the client sends a data message to the server, as specified in section 2.2.2.
The server sends a data message to the client, which is delivered to the PPP Protocol as specified in [RFC1662].
The client sends a hook message to the server.
The server echoes the hook message back to the client as specified in section 22.214.171.124 (not shown in the following figure).
The server sends the hook response message with the Response client field set to "NO CARRIER".
Figure 2: Example of PPP Over IrDA Dialup Protocol connection setup, data exchange, and connection teardown