home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / internet / ppp_4.faq < prev    next >
Encoding:
Text File  |  2003-06-11  |  9.9 KB  |  219 lines

  1. Archive-name: ppp-faq/part4
  2. Version: $Revision: 3.13 $
  3. Last-modified: $Date: 1995/11/13 20:10:18 $
  4. URL: http://cs.uni-bonn.de/ppp/part4.html
  5.  
  6.                                                   PPP questions and answers
  7.                     4. MISC. PPP QUESTIONS WITH ANSWERS
  8.                                      
  9.        Does somebody have a patent on PPP?
  10.       
  11.        Is it possible to use PPP as link layer in ISDN?
  12.       
  13.        My ppp does infinite configuration negotiation. What's wrong?
  14.       
  15.        My ppp gets strange configure rejects. What's wrong?
  16.       
  17.        What is Asychronous HDLC?
  18.       
  19. 4.1 Does somebody have a patent on PPP?
  20.  
  21.  
  22. From: emv@msen.com (Edward Vielmetti)
  23. Newsgroups: comp.protocols.tcp-ip,comp.unix.sysv386,comp.protocols.ppp
  24. Subject: Re: Public domain PPP for SCO 2.0??
  25. Date: 8 Dec 1992 06:04:52 GMT
  26.  
  27.    [Somebody] wrote:
  28.    
  29.    Doesn't matter.  I just read (in another newsgroup) that DEC has a
  30.    patent on PPP, and is asking $5000 for a license.  That means no public
  31.    domain PPP, and a rapidly increasing reluctance to support it from OEMs.
  32.     Stick with SLIP until something better comes along.  This is *not*
  33.    true.
  34.    
  35.    DEC has a patent application outstanding for the negotiation of a 48 bit
  36.    checksum which might be used in one of the option negotiation phases.
  37.    It is not an essential part of PPP; many implementations currently do
  38.    not use this little tiny algorithm in the way they work, and they work
  39.    just fine.
  40.    
  41.    There is no indication that the 48 bit FCS will be accepted or
  42.    standardized on by the IETF - from my reading of the  mailing lists
  43.    traffic that is unlikely at this point.
  44.    
  45.    There are free PPPs and there will continue to be free PPPs.  You will
  46.    also more likely buy PPPs as part of hardware you buy.
  47.    
  48. 4.2 Is it possible to use PPP as link layer in ISDN?
  49.  
  50.    [Somebody] wrote: Is it possible to use PPP as link layer in ISDN?  If
  51.    yes, what about signalling? Do you need to combine PPP with the I.451
  52.    for basic call control? PPP over ISDN is described by RFC 1618. It
  53.    promotes PPP in bit-sync or in octet-sync HDLC over ISDN B-channels, or
  54.    PPP in X25 / PPP in Frame Relay over ISDN D-channel.
  55.    
  56. 4.3 My ppp does infinite configuration negotiation.
  57. What's wrong?
  58.  
  59.   4.3.1 [CABLE PROBLEM]
  60.   
  61.    Each other month somebody posts a question which essentially is the one
  62.    above. It could, of course, be some very strange set of configurations
  63.    options which get the ppp to never terminate the negotiation process
  64.    (typical situations listed in further down). One other possibility was
  65.    seen many times on the derivatives of public ppp for suns, namely
  66.    pppd-1.01beta and dp-2.x.
  67.    
  68.    Detailed symptoms (from a posting on the net, I saw similar logfiles
  69.    some  months ago):
  70.    
  71.  
  72.   Typical debugging log output:
  73.  
  74.   Dec 18 16:11:01 pppd[1694]: Starting ppp daemon version 1.0beta patchleve
  75. l 1
  76.   Dec 18 16:11:01 pppd[1694]: warning... not a process group leader
  77.   Dec 18 16:11:01 pppd[1694]: pgrpid = 1694
  78.   Dec 18 16:11:01 pppd[1694]: popped stream module : ttcompat
  79.   Dec 18 16:11:01 pppd[1694]: popped stream module : ldterm
  80.   Dec 18 16:11:01 pppd[1694]: Using unit ppp0
  81.   Dec 18 16:11:01 pppd[1694]: hostname = Riga
  82.   Dec 18 16:11:01 pppd[1694]: connect: ppp0 /dev/ttya
  83.   Dec 18 16:11:01 pppd[1694]: fsm_sconfreq(c021): Sent id 1.
  84.   Dec 18 16:11:01 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  85.   Dec 18 16:11:01 pppd[1694]: Setting itimer for 3 seconds.
  86.   Dec 18 16:11:04 pppd[1694]: Alarm
  87.   Dec 18 16:11:04 pppd[1694]: fsm_sconfreq(c021): Sent id 2.
  88.   Dec 18 16:11:04 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  89.   Dec 18 16:11:04 pppd[1694]: Setting itimer for 3 seconds.
  90.   Dec 18 16:11:04 pppd[1694]: Setting itimer for 3 seconds.
  91.   Dec 18 16:11:07 pppd[1694]: Alarm
  92.   Dec 18 16:11:07 pppd[1694]: fsm_sconfreq(c021): Sent id 3.
  93.   Dec 18 16:11:07 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  94.   Dec 18 16:11:07 pppd[1694]: Setting itimer for 3 seconds.
  95.   Dec 18 16:11:07 pppd[1694]: Setting itimer for 3 seconds.
  96.  
  97.   ... [lots of repetitious logging deleted] ...
  98.  
  99.   Dec 18 17:02:24 pppd[1694]: Alarm
  100.   Dec 18 17:02:24 pppd[1694]: fsm_sconfreq(c021): Sent id 254.
  101.   Dec 18 17:02:24 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  102.   Dec 18 17:02:24 pppd[1694]: Setting itimer for 3 seconds.
  103.   Dec 18 17:02:24 pppd[1694]: Setting itimer for 3 seconds.
  104.   Dec 18 17:02:26 pppd[1694]: Hangup
  105.   Dec 18 17:02:26 pppd[1694]: Untimeout 6194:16b38.
  106.   Dec 18 17:02:26 pppd[1694]: Setting itimer for 0 seconds.
  107.   Dec 18 17:02:26 pppd[1694]: str_restore: pushed module ldterm
  108.   Dec 18 17:02:26 pppd[1694]: str_restore: pushed module ttcompat
  109.   Dec 18 17:02:26 pppd[1694]: fcntl(F_SETFL, fdflags): Bad file number
  110.  
  111.    The above final is caused by sending a SIGHUP to the pppd process
  112.    (however three successive SIGKILL's seem to be necessary to really   get
  113.    rid of it).
  114.    
  115.      The warning "not a process group leader" appears to be the   innocent
  116.    result of a subtle coding bug, with no later effects,   but I haven't
  117.    tried fixing it (variable "pid" uninitialized).
  118.    
  119.      During all this, there seems to be no activity on the serial line, as
  120.     evident from an Interfaker(tm) breakout patch box.  I was desperate
  121.    enough to lower the speed to 50 bps in order to verify this.
  122.    
  123.      At the same time, "netstat -i" does show increasing figures for the
  124.    ppp0 interface in the "Opkts" column, but in no other column.
  125.    
  126.    Solution: in all cases I could solve, it was a case of missing modem
  127.    control lines in the cables, leading to 'cts' floating to 'false'. The
  128.    LCP FSM happily sent configuration requests (they went to the serial
  129.    line driver buffer (and not out)), waited for an answer, got none, timed
  130.    out, and retried. After lots more of retries, especially on a big
  131.    machine, the send buffer finally does overflow, and ppp stops with an
  132.    error message.
  133.    
  134.    You just have to connect 2,3,4,5,6,7,8 and 20 to the modem to repair it,
  135.    or to wire a reasonably complete null-modem cable. No, there is no
  136.    software hack, except when you patch the sources yourself. And that
  137.    would be a bad idea in my opinion. Even a small Sparcstation SLC can
  138.    overload any modem on a serial line, and you would get lots of
  139.    unnecessary packet drops because of that.
  140.    
  141.                                                                        i.s.
  142.                                                                            
  143.   4.3.2 [ADDRESS CONFIGURATION ERROR]
  144.   
  145.    Each other month somebody posts a question which essentially is the one
  146.    above. It could, of course, be some very strange set of configurations
  147.    options which get the ppp to never terminate the negotiation process,
  148.    but this seems unlikely. This does happen under dp-2.3 [and probably
  149.    others, i.s.] when both sides of the link have differing opinions as to
  150.    what the 2 IP addresses should be.  If the remote-address offered from
  151.    the remote side doesn't match the locally configured version then dp-2.3
  152.    will send back an REJ packet.  The remote side will then resend the
  153.    original address again and the loop will continue.
  154.    
  155.    To see if this is the case check the log for address REJ's.  Then decode
  156.    the two hex addresses and print it out in the normal dot notation.  This
  157.    is the IP address pair of what dp-2.x expected and what it got.  Now
  158.    either reconfigure dp-2.x to expect this address or change the address
  159.    that the other side is sending.
  160.    
  161.                                     Wolfgang Rupprecht <wolfgang@wsrcc.com>
  162.                                                                            
  163. 4.4 What is Asychronous HDLC?
  164.  
  165.    It's HDLC with a character-by-character encapsulation, rather than a
  166.    bit-by-bit encapsulation. The details are discussed in the RFC1331,
  167.    appendix A. Basically, the flag character, the escape character and
  168.    (possibly) control characters are escaped by prepending the escape
  169.    character and XORing them with 0x20, while sync hdlc transparently
  170.    inserts '0' bits after sequences of 5 '1' bits to be sure to never
  171.    transmit the flag character in the frame.
  172.    
  173.    A short description of the part of ISO 3309:1991 that describes async
  174.    (ISO calls it start/stop mode) HDLC is available with anonymous ftp from
  175.    ftp.uni-erlangen.de in pub/doc/ISO/english/async-HDLC.
  176.    
  177.    
  178.    
  179. 4.5 My ppp gets strange configure rejects. What's wrong?
  180.  
  181.    Every few days, s.b. posts a similar question, which melts down to the
  182.    above, when you look at it.
  183.    
  184.    The symptoms are, e.g.:
  185.    
  186.  
  187. Feb  6 09:04:08 steffi ppp[232]: demuxprotrej: Unrecognized Protocol-Reject
  188.  for protocol 29801!
  189. Feb  6 09:04:09 steffi ppp[232]: demuxprotrej: Unrecognized Protocol-Reject
  190.  for protocol 67!
  191. Feb  6 09:04:09 steffi ppp[232]: demuxprotrej: Unrecognized Protocol-Reject
  192.  for protocol 15405!
  193. Feb  6 09:04:11 steffi ppp[232]: demuxprotrej: Unrecognized Protocol-Reject
  194.  for protocol 15405!
  195. ...
  196.  
  197.    Pre-ppp-2.1 implementations (I think); this includes dp-2.x and probably
  198.    early dp-3.x'es are too stupid to detect the old (RFC1172) vs. new  (RFC
  199.    1332 and later) format of VJ compression, although it differs in the
  200.    length and the length is explicit in each option. They tend to be off by
  201.    2 bytes after seeing such an option, and doing horrible things to
  202.    logfiles, like the cited ones.
  203.    
  204.    dp-2.x users should use DP_ARGS=vjmode,draft for talking to nearly
  205.    everything, or switch to ppp-2.1.2 if they don't need autodialup in the
  206.    next few months.
  207.    
  208.    The faulty side is the other one.
  209.    
  210.                                                                        i.s.
  211.                                                                            
  212.    
  213. -- 
  214. -- 
  215.     Ignatios Souvatzis
  216. -
  217. Solaris 2.1:  it's slow, needs 200M of disk space and comes without C compiler,
  218. which makes it remarkably close to MS-Windows. oleg@gd.cs.csufresno.edu
  219.