home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / ppp / 1008 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  7.6 KB

  1. Xref: sparky comp.protocols.ppp:1008 comp.sys.sun.apps:2818
  2. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!Riga.DoCS.UU.SE!andersa
  3. From: andersa@Riga.DoCS.UU.SE (Anders Andersson)
  4. Newsgroups: comp.protocols.ppp,comp.sys.sun.apps
  5. Subject: pppd on Sun--suggestions wanted
  6. Followup-To: comp.protocols.ppp
  7. Date: 18 Dec 1992 23:25:29 GMT
  8. Organization: Uppsala University, Sweden
  9. Lines: 150
  10. Distribution: world
  11. Message-ID: <1gtml9INN6c4@corax.udac.uu.se>
  12. Reply-To: Sun-staff@DoCS.UU.SE
  13. NNTP-Posting-Host: riga.docs.uu.se
  14. Keywords: pppd, streams, ptrace
  15.  
  16. [for last minute comments regarding pppd vs. other implementations,
  17.  see the last paragraph of this article]
  18.  
  19. We are trying to run the PPP implementation pppd, version 1.01beta,
  20. as distributed by Greg Christy (gmc@quotron.com).  According to
  21. colleagues at a neighbouring site of ours, pppd works after a little
  22. tweaking.  We have received their particular configuration files,
  23. and tried to apply whatever seems relevant to our environment.
  24. Still, we can't make the thing work.  Since this isn't an obvious
  25. bug with Greg's implementation, I'm turning to the net in the hope
  26. of receiving useful hints (but I'm sending this to Greg as well).
  27.  
  28. Building the kernel and the associated utilities (pppd and slstats)
  29. was a straight-forward task with no problems, following the
  30. instructions given (in Readme.streams).
  31.  
  32. Our test configuration differs somewhat from the intended target
  33. configuration.  This is of course in order to simplify testing;
  34. however, there might be subtle differences affecting the operation
  35. of pppd, and if you recognize any of the specifics stated below as
  36. being critical, I'd appreciate information about that.  Our target
  37. configuration is almost identical to the allegedly working set-up
  38. which our neighbouring site uses.
  39.  
  40.             test            target
  41. Host hardware:        Sun SLC <-> SLC        Sun SPARCstation 1 <-> ELC
  42. Host operating system:    SunOS 4.1.1        SunOS 4.1.1 or 4.1.3
  43. Type of medium:        direct RS-232 line    dial-up modem line
  44. Session start:        pppd started by root    interactive login from ELC
  45. Debugging log:        enabled            disabled
  46. IP address allocation:    separate C network    virtual LAN IP address(*)
  47. Interface preparation:    no ifconfig        ifconfig at boot
  48.  
  49. (*) By "virtual LAN IP address" I mean that the remote leaf host has
  50. an IP address logically belonging to our site's ethernet, and that
  51. the local routing host advertises this by means of proxy ARP.
  52.  
  53. We have tried to approach the target configuration as much as we
  54. consider reasonable at this stage, in one or a couple of the
  55. aspects mentioned above at the time, however without positive
  56. results.  The only things we haven't tried are moving to the
  57. target hardware, using SunOS 4.1.3, and hooking up a real modem.
  58.  
  59. I even tried to use trace(1) with option -p on the pppd process in
  60. the hope of obtaining more detailed information on what the deamon
  61. was actually doing, but that seemed to prevent the pppd process
  62. from performing some critical ioctl(2) properly.  Is this maybe
  63. a bug with trace(1) or ptrace(2), or is it just a case of the
  64. unavoidable fact that nothing can be observed without being
  65. affected by the observation?
  66.  
  67. Typical command line when run by root:
  68.  
  69.     pppd /dev/ttya 9600 192.36.168.1:
  70.  
  71. Typical command line when run as the result of a pseudo-user login:
  72.  
  73.     mesg n ; stty -tostop ; exec pppd 192.36.168.1:
  74.  
  75. We have tried various ifconfig commands both before and after starting
  76. pppd, but with no appearant change in overall behaviour (other than
  77. netstat(8) being dependent on the interface being up and running).
  78.  
  79. Typical debugging log output:
  80.  
  81. Dec 18 16:11:01 pppd[1694]: Starting ppp daemon version 1.0beta patchlevel 1
  82. Dec 18 16:11:01 pppd[1694]: warning... not a process group leader
  83. Dec 18 16:11:01 pppd[1694]: pgrpid = 1694
  84. Dec 18 16:11:01 pppd[1694]: popped stream module : ttcompat
  85. Dec 18 16:11:01 pppd[1694]: popped stream module : ldterm
  86. Dec 18 16:11:01 pppd[1694]: Using unit ppp0
  87. Dec 18 16:11:01 pppd[1694]: hostname = Riga
  88. Dec 18 16:11:01 pppd[1694]: connect: ppp0 /dev/ttya
  89. Dec 18 16:11:01 pppd[1694]: fsm_sconfreq(c021): Sent id 1.
  90. Dec 18 16:11:01 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  91. Dec 18 16:11:01 pppd[1694]: Setting itimer for 3 seconds.
  92. Dec 18 16:11:04 pppd[1694]: Alarm
  93. Dec 18 16:11:04 pppd[1694]: fsm_sconfreq(c021): Sent id 2.
  94. Dec 18 16:11:04 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  95. Dec 18 16:11:04 pppd[1694]: Setting itimer for 3 seconds.
  96. Dec 18 16:11:04 pppd[1694]: Setting itimer for 3 seconds.
  97. Dec 18 16:11:07 pppd[1694]: Alarm
  98. Dec 18 16:11:07 pppd[1694]: fsm_sconfreq(c021): Sent id 3.
  99. Dec 18 16:11:07 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  100. Dec 18 16:11:07 pppd[1694]: Setting itimer for 3 seconds.
  101. Dec 18 16:11:07 pppd[1694]: Setting itimer for 3 seconds.
  102.  
  103. ... [lots of repetitious logging deleted] ...
  104.  
  105. Dec 18 17:02:24 pppd[1694]: Alarm
  106. Dec 18 17:02:24 pppd[1694]: fsm_sconfreq(c021): Sent id 254.
  107. Dec 18 17:02:24 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  108. Dec 18 17:02:24 pppd[1694]: Setting itimer for 3 seconds.
  109. Dec 18 17:02:24 pppd[1694]: Setting itimer for 3 seconds.
  110. Dec 18 17:02:26 pppd[1694]: Hangup
  111. Dec 18 17:02:26 pppd[1694]: Untimeout 6194:16b38.
  112. Dec 18 17:02:26 pppd[1694]: Setting itimer for 0 seconds.
  113. Dec 18 17:02:26 pppd[1694]: str_restore: pushed module ldterm
  114. Dec 18 17:02:26 pppd[1694]: str_restore: pushed module ttcompat
  115. Dec 18 17:02:26 pppd[1694]: fcntl(F_SETFL, fdflags): Bad file number
  116.  
  117. The above final is caused by sending a SIGHUP to the pppd process
  118. (however three successive SIGKILL's seem to be necessary to really
  119. get rid of it).
  120.  
  121. The warning "not a process group leader" appears to be the
  122. innocent result of a subtle coding bug, with no later effects,
  123. but I haven't tried fixing it (variable "pid" uninitialized).
  124.  
  125. During all this, there seems to be no activity on the serial line, as
  126. evident from an Interfaker(tm) breakout patch box.  I was desperate
  127. enough to lower the speed to 50 bps in order to verify this.
  128.  
  129. At the same time, "netstat -i" does show increasing figures for the
  130. ppp0 interface in the "Opkts" column, but in no other column.  The
  131. slstats tool shows some figures in the (out) "pack" and "ip" columns
  132. too, but I haven't used this tool very much since I don't know what
  133. to look for.
  134.  
  135. The most obvious approach now seems to be to start riddling the code
  136. with debugging messages, but I don't feel too familiar with device
  137. drivers and streams programming myself...
  138.  
  139. We would appreciate suggestions as to what might be wrong, and what
  140. we can do about it.  Further questions regarding our configuration
  141. are also welcome.  Please send e-mail to Sun-staff@DoCS.UU.SE, as
  142. we don't read these groups regularly, and/or post at your own
  143. discretion if you consider it appropriate.  We will try to compile
  144. a summary of relevant items sent to us via e-mail and post it to
  145. these same groups, but that won't be until after the holidays.
  146. We will also keep Greg Christy informed about any useful changes to
  147. the pppd code that we might end up with.
  148.  
  149. ...
  150.  
  151. I wrote the above before finding out that there actually was a
  152. newsgroup comp.protocols.ppp and reading its FAQ.  Due to that, I
  153. might now consider trying ppp-1.1 by brad@cayman.com instead (it's
  154. not clear to me whether the word "superseded" in section 5.1.1.2
  155. of the FAQ refers to the BSD code, or to the pppd implementation
  156. as such).  However, I still think my questions above may be of
  157. some interest (unless people have really stopped using pppd; it
  158. doesn't look too old to me).  Strictly speaking, whether to use
  159. pppd or ppp is to me just yet another variable being added to
  160. those already listed above, thus doubling the amount of choices
  161. once again.  Tell us what you think.
  162. -- 
  163. Anders Andersson, Dept. of Computer Systems, Uppsala University
  164. Paper Mail: Box 325, S-751 05 UPPSALA, Sweden
  165. Phone: +46 18 183170   EMail: andersa@DoCS.UU.SE
  166.