1 / 22

PPP services

PPP services. It defines the format of the frame to be exchanged between devices. It defines how two devices can negotiate the establishment of the link and the exchanged of data. It defines how network layer data are encapsulated in the data link frame.

kioko
Télécharger la présentation

PPP services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PPP services • It defines the format of the frame to be exchanged between devices. • It defines how two devices can negotiate the establishment of the link and the exchanged of data. • It defines how network layer data are encapsulated in the data link frame. • It defines how two devices can authenticate each other.

  2. PPP is not a single protocol but a protocol suite and consists of: • 1. Framing method (frame/packet delineation): Serial lines provide bit transport, thus a means for finding the start of packets is required. • 2. Link control protocol (LCP): • LCP is used for establishing a data link including options for the operation. • 3. Network control protocol (NCP): • Each network protocol, e.g. IP, has its own NCP for establishing and configuring the network-layer operation.

  3. 4. Authentication protocols (CHAP, PAP, EAP): • Client (and optional server) authentication make sure the right communication partners talk to each other. • 5. Encryption protocols (ECP, DES, AES etc.) for privacy. • usually client) and the responder (R, usually server).

  4. 6. Bandwidth control (BACP): „Bonding“ of multiple channels (Multilink PPP-MLPPP) to provide more bandwidth. • 7. Compression control (CCP). • Serial lines are usually comparably slow. Compression provides more throughput. •  PPP affords error detection (checksum). •  PPP allows to dynamically assign an IP address (NCP). •  PPP provides authentication (PAP / CHAP) •  PPP is a symmetric protocol: the 2 parties in a PPP session are the initiator (I,

  5. PPP FRAME

  6. NCP (Network Control Protocol):  Dynamic assignment of IP address.  Dynamic assignment of DNS primary and secondary server.  The host must set a default route to the PPP interface since there is no default gateway IP address (the link is point-to-point with no IP address = unnumbered).

  7. LCP (Link Control Protocol):  Used for establishing the link.  Allows to negotiate link options: Authentication protocol to be used. Header compression / address field compression. MRU (maximum receive unit).  Periodically test the link (LCP Echo request / reply).  Bring down the link gracefully when no longer in use.

  8. Transition states A PPP connection goes through different phases called transition sates.

  9. Transition States • Idle state. The idle state means that the link is not being used. There is no active carrier, and the line is quiet. • Establishing link. When one of the end point starts the communication, the connection goes into the establishing state. In this state, options are negotiated between the two parties. If the negotiation is successful, the system goes to the authenticating state (if authentication is required) or directly to the networking state. • Authenticating state. The authenticating state is optional. If the result is successful , the connection goes to the networking state; otherwise, it goes to the terminating state.

  10. Transition States • Networking State. When a connection reaches this state, the exchange of user control and data packets can be started. The connection remains in this state until one of the endpoints wants to terminate the connection. • Terminating state. When the connection is in the terminating state, several packets are exchanged between the two ends for house cleaning and closing the link.

  11. PPPStack • PPP is a data-link layer protocol, PPP uses a stack of other protocols to establish the link, to authenticate the parties involved, and to carry the network layer data. • Three sets of protocols are used by PPP: Link control protocol, authentication protocols, and network control protocol.

  12. Protocol stack

  13. LCP packet encapsulated in a frame

  14. Authentication Protocols • Authentication plays a very important role in PPP because PPP is designed for use over dial-up links where verification of user identity is necessary. • Authentication means validating the identity of a user who needs to access a set of resources. • PPP uses two protocols for authentication: Password Authentication Protocol (PAP) and Challenge Handshake Authentication Protocol (CHAP)

  15. PAP • The PAP is a simple authentication procedure with two steps: • The user who wants to access a system sends an ID (identification) and a password. • The system checks the validity of the identification and password and either accepts or denies a connection. • For those systems that require greater security, PAP is not enough. A third party with access to the link can easily pick up the password and access the system resources.

  16. PAP

  17. PAP packets

  18. CHAP • The CHAP protocol is a three-way handshaking authentication protocol that provides greater security than PAP. • In this method, the password is kept secret; it is never sent on-line. Steps • The system sends to the user a challenge packet containing a challenge value, usually a few bytes. • The user applies a predefined function that takes the challenge value and the user’s own password and creates a result. The user sends the result in the response packet to the system.

  19. CHAP • The system does the same. It applies the same function to the password of the user and the challenge value to create a result. If the result created is the same as the result sent in the response packet, access is granted; otherwise, it is denied.

  20. CHAP

  21. CHAP packets

  22. An example

More Related