Date: Fri, 1 Aug 1997 14:41:45 -0500 (CDT) From: Dave Bodenstab <imdave@mcs.net> To: brian@awfulhak.org, stephane@freenet.mb.ca Cc: questions@FreeBSD.ORG Subject: Re: Line Speed in PPP? Message-ID: <199708011941.OAA05055@imdave.pr.mcs.net>
next in thread | raw e-mail | index | archive | help
> > > I was just wondering if there is a way to check the connect rate in > > iijppp? > > Depends on what you mean by the connect rate. You can "set log > +connect" to see your modems connect rate (assuming your modem's > configured to tell). > > If you mean "How many bytes per second", I've got this on a list of > things to do. > > > Thank you, > > Stephane Raimbault > > -- > Brian <brian@awfulhak.org>, <brian@freebsd.org> > <http://www.awfulhak.org> > Don't _EVER_ lose your sense of humour.... > If you want the current *line* speed, this varies over time as the latest modems regotiate between themselves to adjust to varying phone line conditions. I use the following to, at least, report the last speed used by the modem. This is modem specific (I have a USR 33.6 fax/modem) and some modems may not have any equivalent option. The USR has several ``AT'' commands to report statistics; I use I6 and the undocumented I11 in my dial strings. That way the results show up in the log file (``set log Connect'' must also be enabled.) My dial string is: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATI6I11 OK ATZ OK AT&F&A3&B1&H1&K3&R2X4 TIMEOUT 30 OK ATDT\\T CONNECT" ^^^^^^^^^^ The results in the log file are: Jul 26 12:11:54 base486 ppp[680]: Connect: ATI6I11 Jul 26 12:11:54 base486 ppp[680]: Connect: USRobotics Sportster 33600 V.34+ Fax Link Diagnostics... Jul 26 12:11:54 base486 ppp[680]: Connect: Jul 26 12:11:54 base486 ppp[680]: Connect: Chars sent 24868 Chars Received 311439 Jul 26 12:11:54 base486 ppp[680]: Connect: Chars lost 0 Jul 26 12:11:54 base486 ppp[680]: Connect: Octets sent 18417 Octets Received 220971 Jul 26 12:11:54 base486 ppp[680]: Connect: Blocks sent 2961 Blocks Received 2279 Jul 26 12:11:54 base486 ppp[680]: Connect: Blocks resent 7 Jul 26 12:11:54 base486 ppp[680]: Connect: Jul 26 12:11:54 base486 ppp[680]: Connect: Retrains Requested 1 Retrains Granted 1 Jul 26 12:11:54 base486 ppp[680]: Connect: Line Reversals 0 Blers 932 Jul 26 12:11:54 base486 ppp[680]: Connect: Link Timeouts 3 Link Naks 2 Jul 26 12:11:54 base486 ppp[680]: Connect: Jul 26 12:11:54 base486 ppp[680]: Connect: Data Compression V42BIS 512/6 Jul 26 12:11:55 base486 ppp[680]: Connect: Equalization Long Jul 26 12:11:55 base486 ppp[680]: Connect: Fallback Enabled Jul 26 12:11:55 base486 ppp[680]: Connect: Protocol LAPM 128/15 Jul 26 12:11:55 base486 ppp[680]: Connect: Speed 19200/26400 Jul 26 12:11:55 base486 ppp[680]: Connect: Last Call 00:10:49 Jul 26 12:11:55 base486 ppp[680]: Connect: Jul 26 12:11:55 base486 ppp[680]: Connect: Disconnect Reason is Loss of Carrier Jul 26 12:11:55 base486 ppp[680]: Connect: USRobotics Sportster 33600 V.34+ Fax Link Diagnostics... Jul 26 12:11:55 base486 ppp[680]: Connect: Jul 26 12:11:55 base486 ppp[680]: Connect: Modulation V.34 Jul 26 12:11:55 base486 ppp[680]: Connect: Carrier Freq (Hz) 1959/1959 Jul 26 12:11:55 base486 ppp[680]: Connect: Symbol Rate 3429/3429 Jul 26 12:11:56 base486 ppp[680]: Connect: Trellis Code 64S-4D/16S-4D Jul 26 12:11:56 base486 ppp[680]: Connect: Nonlinear Encoding ON/ON Jul 26 12:11:56 base486 ppp[680]: Connect: Precoding ON/OFF Jul 26 12:11:56 base486 ppp[680]: Connect: Shaping ON/ON Jul 26 12:11:56 base486 ppp[680]: Connect: Preemphasis (-dB) 6/10 Jul 26 12:11:56 base486 ppp[680]: Connect: Recv/Xmit Level (-dB) 32/11 Jul 26 12:11:56 base486 ppp[680]: Connect: Roundtrip Delay (msec) 3 Jul 26 12:11:56 base486 ppp[680]: Connect: Jul 26 12:11:56 base486 ppp[680]: Connect: OK At least I can see what the last speed was. Dave Bodenstab imdave@mcs.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708011941.OAA05055>