3. Point-To-Point Protocol PPP VD
-
Upload
cao-hong-minh -
Category
Documents
-
view
235 -
download
1
description
Transcript of 3. Point-To-Point Protocol PPP VD
![Page 1: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/1.jpg)
Module 3
Point-to-Point Protocol (PPP)
![Page 2: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/2.jpg)
Objectives
Serial point-to-point linkPPP - point-to-point protocolHDLCConfiguring PPP and HDLC
![Page 3: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/3.jpg)
Serial point-to-point links
![Page 4: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/4.jpg)
Introduction to Serial Communication
WAN technologies are based on serial transmission at the physical layer. This means that the bits of a frame are transmitted one at a time over the physical medium.Some of the many different serial communicationsstandards are the following:• RS-232-E • V.35 • High Speed Serial Interface (HSSI)
![Page 5: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/5.jpg)
Time-Division Multiplexing
![Page 6: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/6.jpg)
Demarcation Point
The point in the network where the responsibility of the service provider or "telco" ends.
![Page 7: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/7.jpg)
DTE-DCE
![Page 8: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/8.jpg)
Serial Connection Options
•Mechanical/physical•Electrical•Functional•Procedural
![Page 9: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/9.jpg)
PPPPoint-to-Point Protocol
![Page 10: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/10.jpg)
PPP’s Intro
PPP provides router-to-router and host-to-networkPPP: most popular WAN protocols•Control of data link setup•Assignment and management of IP address•Network protocol multiplexing•Link configuration and link quality testing•Error detection
PPP: Layered Architecture•Layer 1, Layer 2, Layer 3 / OSI Model
![Page 11: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/11.jpg)
PPP Layered Architecture – Physical Layer
![Page 12: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/12.jpg)
PPP Layered Architecture - Physical Layer
PPP can used with physical interfaces•Asynchronous serial•Synchronous serial•HSSI•ISDN
![Page 13: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/13.jpg)
PPP - Data link Layer
![Page 14: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/14.jpg)
PPP - Data link Layer
Data-link Layer• LCP (Link Control Protocol)
• A Link Control Protocol (LCP) for establishing, configuring, and testing the data-link connection
• NCP (Network Control Protocol)• A family of Network Control Protocols (NCPs) for
establishing and configuring different network-layer protocols.
• PPP is designed to allow the simultaneous use of multiple network-layer protocols.
• PPP supports other protocols besides IP, including Internetwork Packet Exchange (IPX) and Appletalk
![Page 15: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/15.jpg)
LCP features
PPP callback
![Page 16: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/16.jpg)
LCP features
LCP also handles•Limits on size of packet•Terminates the link•Determines when a link is functioning
property or failing
![Page 17: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/17.jpg)
PPP and the Network Layer
![Page 18: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/18.jpg)
PPP FrameFlag: 1 byte, Indicates the beginning or end of frameAddress: 1 byte, Broadcast addr – 11111111Control: 1 byteProtocol: 2 byte, identify the protocol that is encapsulated in data field of frame Data: PacketFCS: 2 or 4 byte, error control
![Page 19: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/19.jpg)
Establishing a PPP Session
![Page 20: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/20.jpg)
PPP Session Establishment (Detail)
1. Link establishment - (LCPs)
2. Authentication - Optional (LCPs)
3. Link quality determination - Optional (LCPs)
4. Network layer protocol configuration (NCPs)
5. Link termination (LCPs)
![Page 21: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/21.jpg)
Link-establishment phase
In this phase each PPP device sends LCP frames to configure and test the data link. LCP frames contain a configuration option field that allows devices to negotiate the use of options such as the maximum transmission unit (MTU), compression of certain PPP fields, and the link-authentication protocol. If a configuration option is not included in an LCP packet, the default value for that configuration option is assumed.Before any network layer packets can be exchanged, LCP must first open the connection and negotiate the configuration parameters. This phase is complete when a configuration acknowledgment framehas been sent and received.
![Page 22: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/22.jpg)
Authentication Phase (Optional)
After the link has been established and the authentication protocol decided on, the peer may be authenticated. Authentication, if used, takes place before the network layer protocol phase is entered. As part of this phase, LCP also allows for an optional link-quality determination test.• The link is tested to determine whether the link quality is
good enough to bring up network layer protocols
![Page 23: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/23.jpg)
Network Layer Protocol Phase
In this phase the PPP devices send NCP packets to choose and configure one or more network layer protocols, such as IP. Once each of the chosen network layer protocols has been configured, packets from each network layer protocol can be sent over the link.
![Page 24: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/24.jpg)
The show interfaces command reveals the LCP and NCP states under PPP configuration.
LCPNCP
Show interface
![Page 25: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/25.jpg)
Link termination
LCP can terminate the link at any time.
This is usually done at the request of a user.
Can happen because of a physical event, such as the loss of a carrier or a timeout.
If LCP closes the link, it informs the network-layer protocols so that they can take appropriate action.
![Page 26: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/26.jpg)
PPP Authentication Protocols
1. Link establishment - (LCPs)
2. Authentication - Optional (LCPs)
3. Link quality determination - Optional (LCPs)
4. Network layer protocol configuration (NCPs)
5. Link termination (LCPs)
![Page 27: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/27.jpg)
Password Authentication Protocol (PAP)
PAP provides a simple method for a remote node to establish its identity, using a two-way handshake.
After the PPP link establishment phase is complete, a username/password pair is repeatedly sent by the remote node across the link until authentication is acknowledged or theconnection is terminated.
PAP is not a strong authentication protocol.
Passwords are sent across the link in clear text and there is no protection from playback or repeated trial-and-error attacks.
The remote node is in control of the frequency and timing of thelogin attempts.
![Page 28: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/28.jpg)
Challenge Handshake Authentication Protocol (CHAP)
CHAP is used at the startup of a link and periodically verifies the identity of the remote node using a three-way handshake.
After the PPP link establishment phase is complete, the local router sends a "challenge" message to the remote node.
The remote node responds with a value calculated using a one-way hash function, which is typically Message Digest 5 (MD5).
This response is based on the password and challenge message.
The local router checks the response against its own calculation of the expected hash value.
If the values match, the authentication is acknowledged, otherwise the connection is immediately terminated.
![Page 29: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/29.jpg)
CHAP Step by Step
![Page 30: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/30.jpg)
CHAP Step by Step
![Page 31: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/31.jpg)
CHAP Step by Step
![Page 32: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/32.jpg)
HDLCHigh-level Data-link Control
![Page 33: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/33.jpg)
High-level Data-link Control (Original)A data-link layer protocol that encapsulates data on synchronous serialError free and flow controlDoes not support multiple protocols on a single linkISO- 1979
![Page 34: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/34.jpg)
High-level Data-link Control (Original)
![Page 35: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/35.jpg)
Cisco:•Offers a proprietary version of HDLC•Multiple protocols supported on a single-link
High-level Data-link Control (Cisco)
![Page 36: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/36.jpg)
HDLC Encapsulation
![Page 37: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/37.jpg)
Configuring PPP and HDLC
![Page 38: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/38.jpg)
Configuring PPP
Enables PPP encapsulation on serial interface 0/0
Router#configure terminalRouter(config)#username HQ password boardwalkRouter(config)#interface serial 0/0Router(config-if)#encapsulation pppRouter(config-if)#ppp authentication chap|pap
![Page 39: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/39.jpg)
172.25.3.0/24Serial .1/S0.2/S0
DCEDTE
hostname SantaCruzusername HQ password boardwalk
interface Serial0ip address 172.25.3.2 255.255.255.0encapsulation pppppp authentication chap
hostname HQusername SantaCruz password boardwalk
interface Serial0ip address 172.25.3.1 255.255.255.0encapsulation pppppp authentication chap
Configuring PPP
![Page 40: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/40.jpg)
Configuring PPP
![Page 41: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/41.jpg)
Configuring PPP Multilink (MLP)
Router(config)#interface serial 0/0Router(config-if)#encapsulation pppRouter(config-if)#ppp multilink
![Page 42: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/42.jpg)
Configuring PPP Authentication
![Page 43: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/43.jpg)
PAP Configuration
![Page 44: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/44.jpg)
CHAP Configuration
![Page 45: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/45.jpg)
Verifying PPP
![Page 46: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/46.jpg)
PPP Configuration Commands
![Page 47: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/47.jpg)
Debug PPP Authentication
![Page 48: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/48.jpg)
Configuring HDLC Encapsulation
![Page 49: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/49.jpg)
Troubleshooting a Serial Interface
• Some possible problem states can be identified in the interface status line of the show interface serial display:
• Serial x is down, line protocol is down.• Serial x is up, line protocol is down.• Serial x is up, line protocol is up (looped).• Serial x is administratively down, line
protocol is down.
![Page 50: 3. Point-To-Point Protocol PPP VD](https://reader031.fdocuments.us/reader031/viewer/2022013122/5695d5171a28ab9b02a401f3/html5/thumbnails/50.jpg)
GOOD LUCK WITH THIS MODULE!