This is SLIP-troubles in view mode; [Up]
Date: Sun 20-Nov-1991 23:21:15 From: zazula@bonehead.tucson.az.us (Ralph Zazula) Subject: SLIP troubles (lost carrier) Hi - For some reason or another my modem keeps loosing it's connection to my SLIP server. I'm using Louis Mamakos SLIP implementation on a dedicated phone line. What I would like to do is force the connection to stay open all of the time. If it goes down, it should automatically redial. It seems to do this about 80% of the time but, when it doesn't, I have no way of resetting the connection until I get home (which could be hours...). So far today, it looks like I've lost the carrier about 7 times: # grep lost /usr/dialupip/log/dial.log 11/20 03:48:10 228 makecall: Outbound interface "slip0": lost carrier 11/20 03:52:52 466 makecall: Outbound interface "slip0": lost carrier 11/20 09:28:53 471 makecall: Outbound interface "slip0": lost carrier 11/20 10:18:51 652 makecall: Outbound interface "slip0": lost carrier 11/20 10:56:47 671 makecall: Outbound interface "slip0": lost carrier 11/20 10:58:16 797 makecall: Outbound interface "slip0": lost carrier 11/20 11:13:23 810 makecall: Outbound interface "slip0": lost carrier This is *always* correlated with heavy activity on the phone connection. (I went to bed at 4:00am with a FTP running, it failed. At around 10:00 someone started sending me a large (looks like 3M+ so far) mail message, it's still going...) I've gone as far as calling the phone company to have the line checked but what they said was basically "if you hear a dial-tone, it works...". It seems that most programs (ftp, sendmail, kermit) will be okay if the line goes down and comes back up quickly. Currently, I have a cron entry that runs ping(1) every 10 minutes to send packets out and cause a BRINGUP if the line is down. This doesn't work all of the time either because sometimes the SLIP connection is in the FAILCALL state and won't dial until I do a SSOFTFLAGS 300. In any case, a 10 min. lag is not what I want. So, it appears from the above excerpt from dial.log that SLIP "knows" it's lost the connection. How can I configure it to redial when it gets that message *every time*? Here is a recent dial log (you can see my 10 min ping go out at 10:20) What I wanted was the line to go back up at 10:18:51. What was going on between 10:18:51 and 10:20???????? ---------------------------- 11/20 09:30:50 652 makecall: Connected to "ts73a-01.telcom.arizona.edu" via "slip0" 11/20 09:30:50 652 set_inactivity: Timeout for "slip0" set to 9999999 11/20 09:30:50 652 makecall: Outbound interface "slip0" starting ipkts = 8278, opkts = 8296 11/20 09:30:50 652 makecall: "slip0" IF flags changed from 0x0000 to 0x0011 11/20 09:30:50 652 makecall: "slip0" SOFT flags changed from 0x0000 to 0x0322 11/20 09:46:50 652 makecall: Outbound interface "slip0" up 16 minutes 11/20 10:00:50 652 makecall: Outbound interface "slip0" up 30 minutes 11/20 10:16:50 652 makecall: Outbound interface "slip0" up 46 minutes 11/20 10:18:51 652 makecall: Outbound interface "slip0": lost carrier 11/20 10:18:51 652 hangup: Process 652 got signal 0 for "slip0" 11/20 10:18:51 652 hangup: Outbound interface "slip0" up 2881 seconds 11/20 10:18:51 652 hangup: Inpackets = 2306, Outpackets = 2294, Average = 1.60 packets/sec 11/20 10:18:51 652 set_inactivity: Timeout for "slip0" set to 300 11/20 10:18:51 652 hangup: Disconnected "slip0" 11/20 10:20:00 157 diald: Authorized packet [128.196.252.55 -> 128.196.252.2], proto ICMP (1) 11/20 10:20:03 671 makecall: Attempting connection to "ts73a-01.telcom.arizona.edu" via "slip0" -------------------------- Thanks for any help, Ralph
Date: Sun 24-Nov-1991 01:54:31 From: benseb@next.sdsc.edu (Booker C. Bense) Subject: Re: SLIP troubles (lost carrier) In article <1991Nov20.162117.2136@arizona.edu> zazula@bonehead.tucson.az.us (Ralph Zazula) writes: > > Hi - > > For some reason or another my modem keeps loosing it's connection to > my SLIP server. I'm using Louis Mamakos SLIP implementation on a dedicated > phone line. What I would like to do is force the connection to stay open > all of the time. If it goes down, it should automatically redial. It seems > to do this about 80% of the time but, when it doesn't, I have no way of > resetting the connection until I get home (which could be hours...). - Do you have a T2500 modem ? I do and I have exactly the same problem, I believe it's because of the really bad implementation of v32 in the t2500, the new t3000's are supposed to be much better. I'm seriously considering getting one of the new XyZel v32bis modems, ( of course, I have to then convince CerfNet that they should have v32bis connections %-) -Anyway here's my solution , it's a cron job I have run every 10 minutes, when I want the connection to stay up. Use "touch /tmp/net_down" to turn it off. No Warranties Implied, If asked the secretary will disavow all knowledge of this script. #!/bin/csh -f # # Check if ip stuff is working if not Kill -HUP diald # #set echo #set verbose set MACHINE_ON_NET = 'foo.bar.edu' /bin/rm -f /tmp/net_up # # Set a flag to stop the script # if ( -f /tmp/net_down ) then exit endif /usr/etc/ping $MACHINE_ON_NET 10 100 >& /tmp/net_up & /usr/bin/sleep 60 # # If it's hung grep for diald and Ca # set line_ct = ( `/usr/ucb/wc -l /tmp/net_up` ) if ( $line_ct[1] < 10 ) then set id = ( `/bin/ps -ag | /usr/bin/egrep 'Ca.*diald' | /bin/grep -v egrep` ) /bin/kill -HUP $id[1] /usr/dialupip/bin/duioctl slip0 SSOFTFLAGS 300 ping $MACHINE_ON_NET 10 10 >& /dev/null endif exit
Date: Sun 24-Nov-1991 07:24:35 From: zazula@bonehead.tucson.az.us (Ralph Zazula) Subject: Re: SLIP troubles (lost carrier) > - Do you have a T2500 modem ? I do and I have exactly the same > problem, I believe it's because of the really bad implementation of > v32 in the t2500, the new t3000's are supposed to be much better. I'm using an INCOMM 9605. I'll give that shell script a try (I was planning on getting around to one of those soon). The problem with that is FTP usually times out much quicker than 10 min (900 sec, right?). So, could I (we) possible get a "custom" copy of diald (or whichever one it is) that would be more agressive at keeping the line up (Mr. Mamakos?). I suppose I could run the script more often... Thanks again, Ralph
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.