background image
ISDN Protocols and Design 575
Figure 8-25
Typical Occasional Connections Between Routers
Both PAP and CHAP require the exchange of messages between devices. The dialed-to router
expects to receive a user name and password from the dialing router with both PAP and CHAP.
With PAP, the user name and password are sent by the dialing router. With CHAP, the dialed-
to router sends a message (called a challenge) that asks the dialing router to send its user name
and password. The challenge includes a random number, which is part of the input into the MD5
hash algorithm. The dialing router replies with the MD5 hash value, which is a function of its
ID (host name), its password, and the random number supplied in the challenge. The dialed-to
router repeats the same hash algorithm; if the received value matches the computed value, the
Frame Relay
4
ISDN
Frame
Relay
5
3
ISDN
1
ISDN
ISDN
Permanent
Access Link
2
Home
Office
ch08.fm Page 575 Monday, March 20, 2000 5:17 PM