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
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.)
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.
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.
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 openon 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.
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.
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.