19.08.2013 Views

AN2120: Connecting an M68HC08 Family Microcontroller to an ...

AN2120: Connecting an M68HC08 Family Microcontroller to an ...

AN2120: Connecting an M68HC08 Family Microcontroller to an ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Application Note<br />

LCP Negotiations<br />

The link control pro<strong>to</strong>col (LCP) is used <strong>to</strong> establish the connection<br />

through <strong>an</strong> exch<strong>an</strong>ge of configure packets. LCP negotiations are the first<br />

<strong>to</strong> take place during the PPP session.<br />

The mech<strong>an</strong>ism for PPP negotiations relies on the packet codes<br />

described in Table 2.<br />

Table 2. Packet Codes<br />

Type Packet Type Defined In Description<br />

0 Vendor specific RFC2153 Proprietary vendor extensions<br />

1 Configure-request RFC1661 Configuration options the sender desires <strong>to</strong> negotiate<br />

2 Configure-ack RFC1661 Configuration options the sender is acknowledging<br />

3 Configure-nak RFC1661<br />

4 Configure-reject RFC1661<br />

5 Terminate-request RFC1661 Terminate this link<br />

6 Terminate-ack RFC1661 Terminate acknowledge<br />

Unacceptable configuration options from the configure-request<br />

packet; acceptable values are included<br />

Configuration options are not recognizable or are not acceptable<br />

for negotiations<br />

7 Code-reject RFC1661 Reception of <strong>an</strong> LCP packet with <strong>an</strong> unknown code<br />

8 Pro<strong>to</strong>col-reject RFC1661 Reception of a PPP packet with <strong>an</strong> unknown pro<strong>to</strong>col field<br />

9 Echo-request RFC1661 Initiation of a Ioopback mech<strong>an</strong>ism<br />

10 Echo-reply RFC1661 Response <strong>to</strong> <strong>an</strong> echo-request<br />

11 Discard-request RFC1661 Discard this packet for testing <strong>an</strong>d debugging purposes<br />

Figure 16 shows <strong>an</strong> example of the first LCP packet tr<strong>an</strong>smitted by <strong>an</strong><br />

ISP.<br />

LCP Packet<br />

0000: 7F FF 03 C0 21 01 71 00 2B 01 04 06 40 05 06 3A 5D 8B B4 02 06 00<br />

0016: 00 00 00 11 04 06 40 17 04 00 64 00 02 03 04 C0 23 13 09 03 08 00<br />

002C: 03 0A 2C 2C 95 7F 7F<br />

NOTE: The figure shows a packet without applying the escape sequence.<br />

Figure 16. First LCP Packet Tr<strong>an</strong>smitted by <strong>an</strong> ISP<br />

<strong>AN2120</strong><br />

20 MOTOROLA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!