Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

The whole site in one document for easy reference!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Network Interface Layer (OSI Data Link Layer) Protocols
           9  TCP/IP Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
                9  Point-to-Point Protocol (PPP)
                     9  PPP Fundamentals and Operation

Previous Topic/Section
PPP Components and General Operation
Previous Page
Pages in Current Topic/Section
1
2
3
Next Page
PPP Standards
Next Topic/Section

PPP Link Setup and Phases
(Page 2 of 3)

Link Dead Phase

By design, the PPP link always begins and ends in this phase. This phase represents the situation where there is no physical layer link established between the two devices. It remains here until the physical layer link is set up, at which point the link proceeds to the Link Establishment phase.

In our example, when A is first turned on, there is no physical layer connection (modem connection) between it and B. Once the connection is made, the link can proceed to phase 2. (Note that in a direct connection, such as a serial cable linking two PCs, the link may only stay in the Link Dead phase for a fraction of a second, until the physical layer connection is detected.)

Link Establishment Phase

The physical layer is now connected and LCP performs the basic setup of the link. Device A sends an LCP configuration request message to device B over the physical link, specifying the parameters it wishes to use. If Device B agrees, it replies with an acknowledgement. If B doesn't agree, it sends back a negative acknowledgment or rejection, telling device A what it won't accept. Device A can then try a different configuration request with new parameters that device B will hopefully accept. This process is described in more detail in the topic covering LCP.

Hopefully, A and B will eventually come to agreement. If so, the status of the link is considered LCP open, and will proceed to the Authentication phase. If they cannot come to an agreement, the physical link is terminated, and we go back to the Link Dead phase.

Authentication Phase

In many cases, a device may require authentication before it will permit connection of another device. (This is certainly usually the case when PPP is used for dial-up.) Authentication is not considered mandatory in PPP, however. When it is used, the appropriate authentication protocol (CHAP or PAP) is employed.

After successful authentication, the link proceeds to the Network-Layer Protocol phase. If authentication is not successful, the link fails and transitions to the Link Termination phase.

Network-Layer Protocol Phase

Once the basic link has been configured and authentication completed, the general setup of the LCP link is complete. Now, the specific configuration of the appropriate network layer protocol is performed by invoking the appropriate NCP, such as IPCP, IPXCP and so forth.

Each particular network layer protocol whose NCP is successfully configured is considered to be open on the LCP link. More than one NCP can be open on a particular PPP link, and each can be closed independently when it is no longer needed. After all necessary NCPs have been invoked, the link proceeds to the Link Open state, even if none were successfully opened.

Note: Some PPP features require the negotiation of additional options between the two devices just as the various network layer protocols do. These may perform their own link establishment process during the Network-Layer Protocol phase. For example, the PPP Compression Control Protocol (CCP) sets up data compression in this manner.


Link Open Phase

In this state, the LCP link and one or more NCP links are open and operational. Data can be passed for each NCP that has been successfully set up.

The link can be terminated at any time by either device for a variety of reasons. These may include user request (you hit the “disconnect” button when you want to log off your dial-up session); link quality problems (the modem hangs up on you due to line noise); or some other cause (you spend too much time in the bathroom and your ISP's idle timer logs you out J). When any of these occur the LCP link is broken and the link transitions to the Link Termination phase.

Link Termination Phase

The device terminating the link sends a special LCP termination frame, and the other device acknowledges it. The link then goes back to the Link Dead phase. In the case where the termination was by request and the physical layer connection is still active, the PPP implementation is supposed to specifically signal the physical layer to terminate the layer one connection.


Previous Topic/Section
PPP Components and General Operation
Previous Page
Pages in Current Topic/Section
1
2
3
Next Page
PPP Standards
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.