Got it

PPP Link Establishment Process

Latest reply: Jan 16, 2022 07:05:41 861 16 12 0 0

A PPP link is established using LCP negotiation and NCP negotiation between two communicating devices:

  • LCP negotiation: The two communicating devices      negotiate the link layer attributes such as the MRU and authentication      mode.

  • NCP negotiation: The two communicating devices      negotiate the format and type of packets to be transmitted.

The following figure shows the PPP link establishment process.

Figure 1 PPP link establishment process

1

The PPP link establishment process is as follows:

  1. PPP starts and ends with the Dead phase. Two      communicating devices stay in the Dead phase for a very short period and      then enter the Establishment phase after detecting that the physical      connection status is Up.

  2. In the Establishment phase, the two devices      perform LCP negotiation to negotiate the following items: the working mode      such as single-link PPP (SP) or MP, MRU, authentication mode, magic number,      and asynchronous character mapping. If LCP negotiation is successful, LCP      enters the Opened state, indicating that the lower-layer link has been      established.

  3. If authentication is configured, the two devices      enter the Authentication phase and perform CHAP or PAP authentication. If      no authentication is configured, the two devices enter the Network phase.

  4. In the Authentication phase, the two devices      enter the Termination phase to tear down the link if authentication fails.      At this time, LCP enters the Closed state. If authentication is      successful, the two devices enter the Network phase. LCP remains Opened,      whereas the NCP status changes from Initial to Starting.

  5. In the Network phase, the two devices perform NCP      negotiation, which includes the Internet Protocol Control Protocol (IPCP)      negotiation and Multiprotocol Label Switching Control Protocol (MPLSCP)      negotiation. During IPCP negotiation, the two devices negotiate IP      addresses for their connected interfaces. During NCP negotiation, the two      devices select a network layer protocol. After the negotiation succeeds      (that is, the NCP negotiation status is Opened), network layer protocol      packets can be sent over the PPP link.

  6. After NCP negotiation succeeds, packets can be      sent over the PPP link. If the PPP connection is interrupted during PPP      operation, the two devices enter the Termination phase, the physical link      is disconnected, PPP authentication fails, or the negotiation timeout      period expires.

  7. In the Termination phase, the two devices enter      the Dead phase after all resources are released.

While configuring, maintaining and terminating a point-to-point link, PPP goes through the following phases.

Link Dead Phase

The Link Dead phase is also known as the physical-layer not ready phase. A PPP link begins and ends with this phase.

When two communicating devices detect that the physical link between them is activated (for example, carrier signals are detected on the physical link), PPP enters the Link Establishment phase.

In the Link Establishment phase, the two devices negotiate link layer attributes. The LCP status changes according to different events. In the Link Dead phase, LCP is in the Initial or Starting state. Once a physical link becomes available, the LCP status changes.

If a link is terminated, PPP also enters the Link Dead phase.

PPP stays in the Link Dead phase for a short period of time.

Link Establishment Phase

In the Link Establishment phase, two communicating devices exchange Configure packets to negotiate link layer attributes. After the two devices finish exchanging Configure packets, PPP enters either the Authentication phase or the Network-Layer Protocol phase, depending on whether authentication is required.

In the Link Establishment phase, the LCP status changes twice.

  • In the Link Dead phase, LCP is in the Initial or      Starting state. When detecting that a link is available, the physical      layer sends an Up event to the link layer. After receiving the Up event,      the link layer changes the LCP status to Request-Sent. Then a      Configure-Request packet is sent to establish a link.

  • The receipt of a Configure-Ack packet causes the      LCP status to change to Opened. After LCP enters the Opened state, the      device that receives a Configure-Ack packet enters the next phase.

The process occurs in the same manner on the other device. Any non-LCP packets received in this phase are discarded.

Authentication Phase

The Authentication phase is optional. By default, PPP does not perform authentication during PPP link establishment. If authentication is required, the authentication protocol must be specified in the Link Establishment phase.

PPP authentication is performed on:

  • Hosts and switchs that connect to a PPP network      server through switched circuits or dial-up lines

  • Dedicated links

PPP provides two authentication modes: PAP authentication and CHAP authentication.

The authentication mode is negotiated by the two communicating devices in the Link Establishment phase. Link quality monitoring may occur concurrently but cannot delay authentication indefinitely.

Only LCP packets, authentication packets, and link quality monitoring packets are allowed in the Authentication phase. All other packets received in this phase are discarded. The receipt of a Configure-Request packet will cause a return to the Link Establishment phase from the Authentication phase.

Network-Layer Protocol Phase

In the Network-Layer Protocol phase, each network layer protocol, such as IP, IPX, or AppleTalk must be separately configured by using the appropriate NCP. For example, IPCP is used to configure the IP protocol. Each NCP may be in Opened or Closed state at any time. After an NCP enters the Opened state, PPP will transmit network-layer protocol packets.

The receipt of a Configure-Request packet will cause a return to the Link Establishment phase from the Network-Layer Protocol phase.

Link Termination Phase

In the Link Termination phase, a link is terminated. PPP can terminate a link at any time. This may occur because of the loss of carrier, an authentication failure, a link quality monitoring failure, or the administrative termination of the link.

In the Link Establishment phase, LCP Terminate packets may be exchanged to close a link. When the link is closing, the link layer instructs the network layer protocols to take appropriate actions and instructs the physical layer to disconnect to terminate the link.


Excellent Post
View more
  • x
  • convention:

Not really bad, well done friend
View more
  • x
  • convention:

Great post.
View more
  • x
  • convention:

lucian2003
lucian2003 Created Mar 11, 2021 01:43:36 (0) (0)
thanks  
Interesting post. Thanks
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

lucian2003
lucian2003 Created Mar 10, 2021 17:16:07 (0) (0)
Your welcome  
Great sharing
View more
  • x
  • convention:

Important information
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Good share
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.