In: Categories » Electronics and communication » Protocols » PPP Overview
|
To make remote connections possible, users need to have the following components installed on their devices: application software (such as FTP, Telnet, or a web browser), protocol stacks (TCP/IP, IPX, AppleTalk), and link-layer protocols (such as PPP). When sent out across the dialup connection, the higher-layer protocols are framed in link-layer protocols (such as PPP) much like Ethernet link-layer framing encapsulates IP datagrams on a LAN. This article introduces the following concepts:
Common Remote-Access ProtocolsFor datagram transmission over point-to-point lines, two standard protocols exist: Serial Line Internet Protocol (SLIP) and PPP. SLIP, described in RFC 1055, works only with IP on point-to-point serial connections. PPP, on the other hand, can facilitate multiprotocol connections over synchronous and asynchronous circuits. Therefore, PPP is the most widely used protocol for remote dial access. PPP FramingAs mentioned, PPP can transmit packets over asynchronous or synchronous links. The packet's framing type is dictated by the medium in use. Asynchronous High-Level Data Link Control (AHDLC) framing is used for asynchronous links, and bit-synchronous framing is used for synchronous links. Cisco supports the following PPP framing types for different interfaces:
PPP Negotiation PhasesAs soon as the encapsulation type described in the preceding section has been confirmed, the link media type is no longer relevant to PPP connection establishment. PPP establishes network protocol connectivity in three functional phases:
The negotiation steps are bidirectional and sequential. In other words, LCP negotiation, including authentication (if configured), must be completed before the NCP negotiation can begin. When a PPP link is operational, it remains in this state until LCP or NCP initiates termination or the physical link fails. When LCP closes the link, all NCP connections associated with the link close as well. Conversely, the NCP-initiated termination is not guaranteed to close the PPP link. LCP and NCP are discussed in detail in the following sections from a more theoretical perspective. LCPLCP deals with options that are link-dependent and protocol-independent. As mentioned, LCP negotiation is bidirectional, which means that both ends of the connection must agree on their options and acknowledge its peer's request. Some of the options negotiated during the LCP phase include magic number (to detect loopback), callback, multilink, link compression, and authentication. Authentication in terms of LCP translates into whether authentication is to be used and, if so, which protocol will facilitate the authentication. However, this is not the actual authentication process. As soon as the LCP phase has been negotiated successfully, the LCP connection is considered open. Now the authentication process as determined by LCP can begin. NCPNCP is the final step of the PPP negotiation process. NCP deals with protocol-dependent options such as the protocol address, protocol compression, and so forth. The individual NCP options correspond to the type of protocol configured on the interface. For instance, if IP is the chosen protocol, IPCP (IP Control Protocol) is negotiated. The protocol address is the NCP option that is always negotiated. Sometimes it is the only option negotiated. It is possible for the NAS to provide the protocol address to the dial-in client or simply acknowledge whatever protocol address the peer requests. For a remote Cisco router to accept an address from the NAS it has dialed into, the client router needs to be configured to do so. IPCP is the primary NCP and is used here to explain the NCP parameters. As part of the IPCP process, usually three different options are negotiated: the IP address, IP/TCP header compression, and the DNS and WINS primary and secondary servers. Keep in mind that the DNS and WINS options relate to Microsoft Windows PC clients only. During the IPCP negotiations, the roles of a client and a NAS are different. The access server is required to supply the negotiation parameters (IP address, DNS and WINS address, and so on) for itself and often for a client as well. On the other hand, the client needs to be configured to be able to retrieve this information from the NAS. Another option in the IPCP negotiations is, as mentioned, the TCP/IP header compression. This might decrease a header's size from 40 to 5 bytes. The negotiation of this option includes whether the peer can accept a packet with the compressed header. This feature is recommended for transmissions whose packet sizes are small, such as Telnet or WWW. LCP OptionsPPP offers a number of features that are negotiated at the LCP level that can prove very useful when implemented in an internetwork:
These services are described next. AuthenticationBefore you begin learning about the PPP authentication process and techniques, you should become familiar with the following terms:
When authentication is requested by either side of the connection during LCP negotiation, the actual authentication takes place after the LCP stage is completed. Authentication is accomplished to check the peer's validity. This is done by verifying the preassigned name (often called the userid or host name) and the secret (often called the password). The name/secret combination can be stored locally or remotely on an AAA server. The two most popular PPP authentication techniques are Password Authentication Protocol (PAP) and Challenge Handshake Authentication Protocol (CHAP). Both ensure that unauthorized individuals can't access the remote-access server (RAS). Their differences are discussed in greater detail later. As is the case with all other PPP negotiation phases, authentication is bidirectional. This means that both ends of the connection are required to authenticate one another. Consequently, authentication needs to be enabled at both ends. The Cisco NAS differentiates among types of call direction. Depending on the type, the NAS takes certain action when it comes to authentication. This is done to protect the network against security violations. Table 1 lists the types of calls and the NAS's subsequent responses.
The following subsections describe PAP and CHAP in more detail. PAPPAP is the less-secure of the two PPP authentication protocols, because the secret is sent over the wire in clear text. Therefore, if the packet is captured, the secret contained in it can be used in a malicious attack. Understandably, because of this drawback, PAP isn't a preferred method of authenticationunless, of course, it is the only one supported. PAP implements a two-way handshake sequence to verify its peer's identity:
NOTE The secret in Step 1 does not need to be identical for both peers. They each can have their own. CHAPCHAP is quite a bit more secure than PAP. During CHAP authentication, the secret itself is never sent across the connection, some parts of communication are encrypted, and the challenges are constantly repeated to ensure that the connection is authorized at all times. Unlike PAP, CHAP uses a three-way handshake for identification purposes:
NOTE Because the hash values need to be identical for CHAP authentication to work, the secret value must be shared between both peers. This requirement is different form the PAP implementation. PPP CallbackPPP callback is an option negotiated during LCP that allows a caller to request that a called party should place another callback to the initiating peer. For this discussion, the party requesting a callback is the client, and the party accepting the request and making the callback is the server. PPP callback is useful whenever centralized control over a call is desired, such as for the purposes of bill consolidation, dialup call savings, and even security, because the callbacks are placed only to preconfigured numbers. Although normally authentication is considered an optional PPP feature, it must be enabled and passed for the callback feature to work. The sequence of a PPP callback is as follows:
PPP is negotiated upon the client-initiated call only. The callback does not require a new PPP negotiation. NOTE If the server decides that the client is not authorized for a callback service, the response depends on whether dial-on-demand routing is implemented for the connection. If DDR is used, the callback server continues processing the initial call as if there were no callback request to begin with. If you want to disconnect a user who failed callback authorization, you can issue an optional command on the server. If the connection is non-DDR, the callback server disconnects the initial call by default. PPP CompressionCompression can significantly improve throughput on slow links. Cisco IOS offers PPP compression for all upper-layer protocols through Compression Control Protocol (CCP). This type of compression is considered a per-interface compression. PPP CCP is an optional feature and is negotiated after the LCP phase. Cisco supports two CCP compression algorithms:
Both of these algorithms base their operation on "dictionaries" of past data compression. When dictionaries become full, information is renewed. The choice of an algorithm depends on each individual case. Compression should be used with care, because it can be a burden on system resources. Keep in mind that the rate of compression is dependent on the data type. For instance, text files are very good candidates for compression versus already-compressed file formats that would not yield a better than 1:1 compression ratio. Also, whenever possible, hardware compression should be chosen over software compression. Although PPP compression can be bidirectional, it is recommended that only the remote client side perform compression. This way, the NAS can decompress the client's communication but doesn't compress its own. The reason for this is so that the NAS itself avoids performing compression that can use four times as much CPU power as decompression. Multilink PPPMultilink PPP (MPPP) is a technique of fragmenting packets and sending them over multiple data links to the PPP peer for reassembly. The benefit of MPPP lies in its ability to temporarily use additional bandwidth that's available between the two peers. MPPP is identified by an additional 4-byte header that dictates the fragment sequencing. MPPP can be used in the following scenarios:
MPPP TermsBefore you can understand the ins and outs of MPPP, you should become familiar with the following terms:
MPPP OperationEvery MPPP bundle needs to be controlled by a single interface, the bundle master, which is a virtual-access interface. The multilink PPP process starts out with LCP negotiation, including the MRRU option that takes place on the physical interface. PPP LCP negotiation determines whether MPPP can be used on the link. The bundle is identified by a peer's name, its endpoint discriminator, or both. Therefore, the PPP authentication is required to complete so that the peers can identify each other, name the bundle, and check whether another bundle of the same name already exists. If a bundle already exists, the new call simply joins in. No new negotiations of any sort are required for additional calls. At this point, the NAS sets up a virtual-access interface as the bundle master. From this moment, all PPP negotiations are transferred from the physical interface to the virtual-access interface. The physical interface becomes a part of a bundle governed by a bundle master. Whatever NCP parameters are negotiated for the master are automatically applied to the rest of the bundle members. MPPP Operation IssuesThree major issues are associated with MPPP's operation:
Bandwidth Allocation ProtocolThe specification for BAP is an extension of the MPPP concept. It was created to control the number of connections that an authorized user is allowed to establish at any time. BAP creates a standard set of rules that let MPPP change bandwidth on demand without the need for end-user participation in the configuration changes. As a result, the NAS can manage the usage of its access ports per caller. BAP administers the method in which individual links are added to and deleted from an MPPP bundle. While LCP is negotiated, BAP is decided on, and a distinguishing link discriminator is given to every link in an MPPP bundle. It allows peers to specify which link is brought up or disconnected when the bandwidth increase or decrease is requested. BAP can operate in two different modes: active and passive. Active mode means that the device can initiate or accept any type of connection request and determine whether links should be added to or removed from a multilink bundle. Active mode is for dialer interfaces, but not for virtual-template interfaces. Passive mode means that the device only responds to calls by accepting a call request, a callback request, or an addition or removal of a link by an active peer. Passive mode can be used for virtual-template interfaces and dialer interfaces. BAP supports ISDN and asynchronous serial interfaces. When talking about BAP operation over dialer interfaces, only legacy dial-on-demand routing (DDR) dialer configurations are discussed. BAP does not support DDR dialer profiles. BAP OperationThe first member link of the MPPP bundle is not negotiated under BAP. The subsequent member links, however, require BAP management. Although the first link does not belong to BAP, it does carry all BAP information packets. There are a total of eight BAP packet types:
BAP follows Cisco's MPPP implementation in its judgment of load by monitoring the bundle master. The bundle load determines the need for bandwidth aggregation. Only with BAP, both peers have to agree on the bandwidth aggregation decision. PPP Frame Format
|
legal disclaimer
1) Our website is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringements, please read the Terms of service and contact us to investigate the problem.
2) The E-articles directory team is not responsible for inaccuracies, falsehoods, or any other types of misinformation this tutorial may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. Please read the Terms of service
Useful tools and features
related articles
Although momentum is building for a standardized protocol for instant messaging, interoperability among IM applications continues to be vexed by unresolved business and security issues. Recently, the Internet Engineering Task Force (IETF)-sponsored protocol that would be a key to interoperability was criticized for being insecure by IM software vendors such as AOL Time Warner Inc. and IBM’s Lotus Software. The Lotus-AOL test used a variation of Simple Implementation Protocol (SIP) known as SIP for Instant Messaging ...
2. Detecting Unauthorized 802.11 Cards and Access Points
The first goal is detection. Can we tell when someone powers on a card within range of the local network? This can be done with off-the-shelf components and free software. The Cisco Aironet driver included with the more recent Linux kernels supports "RF Monitor" mode, which permits promiscuous monitoring of 802.11 packets - specifically, monitoring raw 802.11 frames to detect if there are any telltale frames broadcast by a rogue access point or card. As outlined in the original 802.11 specification, ther...
3. The HTTP Request and Response Codes
The HTTP protocol can be likened to a conversation based on a series of questions and answers, which we refer to respectively as HTTP requests and HTTP responses. The contents of HTTP requests and responses are easy to read and understand, being near to plain English in their syntax. This section examines the structure of these requests and responses, along with a few examples of the sorts of data they may contain. The HTTP Request After opening a connection to the intended serv...
4. INFRASTRUCTURE PROTOCOLS AND APPLICATIONS
H.323 H.323 defines packet standards for terminal equipment and services for multimedia communications over local and wide area networks communicating with systems connected to telephony networks such as ISDN. The initial version of this standard came from the International Telecommunications Union (ITU) in June 1996. It defines communication over IP-based local area networks (LANs). A later version (v2), adopted in January 1998, extended it over wide are...
The IN protocols and concepts can be used to implement enhanced wireless services rapidly and to have these services available across serving areas in an untethered wireless network. Some of these services are listed below: Voice-Based User Identification. This service employs a form of automatic speech recognition to validate the identity of the speaker. Access to services can then be restricted to the user whose voice (phrase) has been used to train the recognition device. Voice-Based Featur...
6. Wireless LAN and Personal Area Network
The Wireless Internet is not just wireless communications across town or the country. It is also local—sometimes in a home or office building. Wireless LANs are just becoming popular with economically priced wireless Ethernet equipment. Standards such as IEEE 802.11, HiperLAN2, and Home RF are leading the way to untethered communications in-building or outside over small areas. Another important development is the Personal Area Network, also known as Bluetooth. Let’s take a look at each of th...
7. The Domain Concept
The solution to all of these problems is the network domain. In a domain, you only have a single name and password, which gets you into every shared PC and printer on the network. Everyone's account information resides on a central computer called a domain controllera computer so important, it's usually locked away in a closet or a data-center room. A domain controller keeps track of who is allowed to log on, who is logged on, and what each person is allowed to do on the network. When you log onto the domain with your PC,...










