Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 95 22:44:00 W
From:      Angelo Turetta <turetta@trust.stylo.it>
To:        "'SMTP:amurai@spec.co.jp'" <amurai@spec.co.jp>, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   16550 SIO  &  user level PPP.
Message-ID:  <30BA3358@trust.stylo.it>

next in thread | raw e-mail | index | archive | help


Hi,

I didn't receive an answer to my previous message, so please Cc: any reply 
directly to me: I'm not on this list.

I've set up a FreeBSD 2.05R machine acting as a dial-up gateway to the 
Internet for my LAN. I'm using ppp (ijppp 0.94) in auto mode to connect to 
my ISP, and I've noticed a strange behaviour: when I send out packets at 
full line speed (V34 modem on a 38400bps 16550) for more than just a few 
seconds, ppp hangs. I haven't got any problem receiving at full band.

The easiest way to produce this locking is to try to 'ftp put' a 300-500KB 
file on my ISP's server, or to send them a large mail attachment. Given the 
fast response from the remote end, the modem has its TX led always lit, and 
TR led blinking, as it periodically pauses the PC from sending data: then, 
suddenly the modem hangs up, and ppp never tries to restore the connection 
(as it would on transient line drop.)
Even if I try to trigger a dial event from another console, nothing happens. 
Only way out, 'kill -TERM' ppp process and restart it.

Do you think this may depend on bad configuration of the SIO chip? It's 
correctly probed as 16550 at boot: is there something special to do to 
enable the FIFO queue?

I have LQR disable & LQR deny in my ppp.conf: do you think this can be a 
problem?

I attach some data to help you diagnose my problem.

Thanks for any help

Angelo.


(configuration items from a sample 'telnet localhost 3000' session...)
=====================================================
  ppp ON unix> display
  Current configuration option settings..

  Name            My Side         His Side
  ----------------------------------------
  vjcomp          enable          accept
  lqr             disable         deny
  chap            disable         accept
  pap             disable         accept
  acfcomp         enable          accept
  protocomp       enable          accept
  pred1           enable          accept
  proxy           disable         deny

  ppp ON unix> show proto
      Protocol     in        out      Protocol      in       out
     IP       :     1820,     2489   VJ_UNCOMP:     1388,     1989
     VJ_COMP  :     7122,     6062   COMPD    :        0,        0
     LCP      :     3198,     3158   IPCP     :       80,       80
     CCP      :        0,       40   PAP      :        0,        0
     LQR      :        0,        0   CHAP     :        0,        0
     Others   :        0,        0

  ppp ON unix> show compress
  Out:  6062 (compress) / 8051 (total)  596 (miss) / 10998 (search)
  In:  7122 (compress), 1388 (uncompress)  0 (error),  0 (tossed)

  ppp ON unix> show modem
  device: /dev/cuaa2  speed: 38400
  cs8, none parity
  connect count: 40
  outq: 1
  DialScript  = ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" ATE1Q0 OK-AT-OK 
\dATDT\T TIMEOUT 40 CONNECT
  LoginScript = TIMEOUT 5 name:-\rname: xxxxx word: xxxxxx\r
  PhoneNumber = xxxxxx

  ppp ON unix> show debug
  01: Phase

===================================================

Here follows a commented PPPLOG file section relative to a multiple hang 
session. Notice that after the second hang, ppp survived at least two line 
drops (then I stopped my testing...): I mean, after hanging the usual way, 
it re-issued a dial when solicited from another console. Anyway, this is not 
the common behaviour: it usually ends normal operations after that error, 
though it still accepts telnet sessions.

11-16 23:23:07 [259] Using interface: tun0
11-16 23:23:07 [260] Listening at 3000.
11-16 23:23:07 [260] PPP Started.
dial OK!
login OK!
11-16 23:25:37 [260] *Connected!
11-16 23:25:39 [260] Phase: Authenticate
11-16 23:25:39 [260]  his = 0, mine = 0
11-16 23:25:39 [260] Phase: Network
11-16 23:25:39 [260] OsLinkup: 194.20.20.7
write: No such process
 ---- ( ... 10 more lines identical to the previous one: omitted ... )
 ---- ( BTW, what are they for? Thay waste a lot of space in log files :-()
 -------------- IN THE MEANWHILE, A FTP PUT WAS STARTED
11-16 23:39:51 [260] Disconnected!
 -------------- FIRST HANG OCCURS !!
11-16 23:39:51 [260] Connect time: 854 secs
11-16 23:39:51 [260] Phase: Dead
11-16 23:39:51 [260] OsLinkdown: 194.20.20.7
11-16 23:39:51 [260] Phase: Terminate
 -------------- kill -TERM 260
11-16 23:40:26 [260] SIGTERM
write: No such process
 ---- ( ... 13 more lines identical to the previous one: omitted ... )
11-16 23:40:26 [260] PPP Terminated.
 -------------- Restarted ppp -auto. Re-triggered dial: after a couple
 -------------- of minutes the transfer automatically resumes
11-16 23:40:35 [625] Using interface: tun0
11-16 23:40:35 [626] Listening at 3000.
11-16 23:40:35 [626] PPP Started.
dial OK!
login OK!
11-16 23:41:20 [626] *Connected!
11-16 23:41:22 [626] Phase: Authenticate
11-16 23:41:22 [626]  his = 0, mine = 0
11-16 23:41:22 [626] Phase: Network
11-16 23:41:22 [626] OsLinkup: 194.20.20.7
write: No such process
 -------------- SECOND HANG OCCURS !!
11-16 23:44:22 [626] Disconnected!
11-16 23:44:23 [626] Connect time: 183 secs
11-16 23:44:23 [626] Phase: Dead
11-16 23:44:23 [626] OsLinkdown: 194.20.20.7
11-16 23:44:23 [626] Phase: Terminate
11-16 23:44:47 [626] SIGTERM
write: No such process
write: No such process
write: No such process
11-16 23:44:47 [626] PPP Terminated.
 -------------- Restarted ppp -auto
11-16 23:44:59 [675] Using interface: tun0
11-16 23:44:59 [676] Listening at 3000.
11-16 23:44:59 [676] PPP Started.
dial OK!
login OK!
11-16 23:45:23 [676] *Connected!
11-16 23:45:25 [676] Phase: Authenticate
11-16 23:45:25 [676]  his = 0, mine = 0
11-16 23:45:25 [676] Phase: Network
11-16 23:45:26 [676] OsLinkup: 194.20.20.7
write: No such process
 -------------- THIRD HANG OCCURS !!
11-16 23:47:33 [676] Disconnected!
11-16 23:47:33 [676] Connect time: 130 secs
11-16 23:47:33 [676] Phase: Dead
11-16 23:47:33 [676] OsLinkdown: 194.20.20.7
11-16 23:47:33 [676] Phase: Terminate
dial OK!
login OK!
11-16 23:48:54 [676] *Connected!
11-16 23:48:56 [676] Phase: Authenticate
11-16 23:48:56 [676]  his = 0, mine = 0
11-16 23:48:56 [676] Phase: Network
11-16 23:48:57 [676] OsLinkup: 194.20.20.7
write: No such process
 -------------- FOURTH HANG OCCURS !!
11-16 23:49:42 [676] Disconnected!
11-16 23:49:42 [676] Connect time: 48 secs
11-16 23:49:42 [676] Phase: Dead
11-16 23:49:42 [676] OsLinkdown: 194.20.20.7
11-16 23:49:42 [676] Phase: Terminate
dial OK!
login OK!
11-16 23:51:05 [676] *Connected!
11-16 23:51:08 [676] Phase: Authenticate
11-16 23:51:08 [676]  his = 0, mine = 0
11-16 23:51:08 [676] Phase: Network
11-16 23:51:08 [676] OsLinkup: 194.20.20.7

 -------------------------------------------------------------------
Angelo Turetta
System Administrator - Stylo Multimedia - Italy
<aturetta@stylo.it>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30BA3358>