Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* PPP again
       [not found] <19970211160841Z232186-147+3@mea.tmt.tele.fi>
@ 1997-02-11 20:23 ` Aaron S. Carmichael
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron S. Carmichael @ 1997-02-11 20:23 UTC (permalink / raw)


well I have tried to use 38400 as the speed for my PPP connection like it
was suggested but for some reason I cannot keep the connection. PPPD
gets a sighup and exits. If I use 57600 no problem. So I have gotten the
speed of the connection up a bit with the folowing settings

/etc/ppp/options
crtscts
57600
/dev/cua0
defaultroute
mru 128
mtu 128
bsdcomp 15,15

the script that starts pppd is

setserial /dev/cua0 spd_vhi
pppd connect 'chat -v "" ATZ OK ATDTphone# CONNECT "" ogin: name ord:
pssword'

this is the resulting log

Feb 11 14:12:13 zargh chat[399]: expect (CONNECT)
Feb 11 14:12:13 zargh chat[399]: ^M
Feb 11 14:12:36 zargh chat[399]: ATDTphone#^M^M
Feb 11 14:12:36 zargh chat[399]: CONNECT -- got it
Feb 11 14:12:36 zargh chat[399]: send (^M)
Feb 11 14:12:36 zargh chat[399]: expect (ogin:)
Feb 11 14:12:36 zargh chat[399]:  9600^M
Feb 11 14:12:38 zargh chat[399]: ^M
Feb 11 14:12:38 zargh chat[399]: Welcome to the Meta Network & Iris
On-line Network^M
Feb 11 14:12:38 zargh chat[399]: System Name: dialup-2.tmn.com^M
Feb 11 14:12:38 zargh chat[399]: ^M
Feb 11 14:12:38 zargh chat[399]: tmn!login: -- got it
Feb 11 14:12:38 zargh chat[399]: send (name^M)
Feb 11 14:12:39 zargh chat[399]: expect (ord:)
Feb 11 14:12:39 zargh chat[399]: name^M
Feb 11 14:12:39 zargh chat[399]: Password: -- got it
Feb 11 14:12:39 zargh chat[399]: send (password^M)
Feb 11 14:12:39 zargh pppd[398]: Serial connection established.
Feb 11 14:12:40 zargh pppd[398]: Using interface ppp0
Feb 11 14:12:40 zargh pppd[398]: Connect: ppp0 <--> /dev/cua0
Feb 11 14:12:43 zargh pppd[398]: local  IP address my ip
Feb 11 14:12:43 zargh pppd[398]: remote IP address remote ip

The pain bout the mtu/mru is the choppy text display, granted it is fater
then with a higher mtu/mru but it is still slow..
I am now getting about .7 - .9 kbps rather then .5 but damn if that isn't
still slow.

Anyhow the system I am running on it a 166Mhz UDB w/ 64 megs of ram and
redhat 3.0.3. The modem is a Zoom 288 fax/modem.

So I'll toss it out into the wind again and see if anyone else has any
suggestions. Like why the hell can't I jsut change the speed from 57600 to
38400 (I have tried sp_normal)

Thanks for any more responses

aaron

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP again
       [not found] <Pine.LNX.3.93.970211150921.7044D-100000@chet.brysonweb.com>
@ 1997-02-12  0:36 ` Michal Jaegermann
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1997-02-12  0:36 UTC (permalink / raw)


> 
> 
> So I have gotten the
> speed of the connection up a bit with the folowing settings
> 
....
> /dev/cua0
      ^^^^
    This is wrong for reasons repeated over and over again.  It should
    be /dev/ttyS0.
....
> mru 128
> mtu 128

These are way too low.  The smallest packet you can get is 256 bytes
plus 40 bytes of a header - so minimal values for these are really 296.
Small packets are good for an interactive use, but not so good for
transfers.

If I remember all of this is described in PPP-HOWTO (or one of similar
documents which come with PPP distribution).

  Michal

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP again
       [not found] <199702120036.RAA22866@ellpspace.math.ualberta.ca>
@ 1997-02-12  4:01 ` Aaron S. Carmichael
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron S. Carmichael @ 1997-02-12  4:01 UTC (permalink / raw)


On Tue, 11 Feb 1997, Michal Jaegermann wrote:
> > /dev/cua0
>       ^^^^
>     This is wrong for reasons repeated over and over again.  It should
>     be /dev/ttyS0.
> ....
> > mru 128
> > mtu 128
> 
> These are way too low.  The smallest packet you can get is 256 bytes
> plus 40 bytes of a header - so minimal values for these are really 296.
> Small packets are good for an interactive use, but not so good for
> transfers.
> 
> If I remember all of this is described in PPP-HOWTO (or one of similar
> documents which come with PPP distribution).
> 
>   Michal
> 

From ppp-howto

          $2 - name of the tty device (such as /dev/cua0)

where do you get ttys0? 
dial out ya use cua#...

From man PPPD

       mru <n>
              Set the MRU [Maximum Receive Unit] value to <n> for
              negotiation.  pppd will ask the peer to send  pack-
              ets  of  no  more  than <n> bytes.  The minimum MRU
              value is 128.  The default MRU value  is  1500.   A
              value  of  296  is  recommended  for slow links (40
              bytes for TCP/IP header + 256 bytes of data).

aaron

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP again
       [not found] <Pine.LNX.3.93.970211225624.9608A-100000@chet.brysonweb.com>
@ 1997-02-12 15:32 ` Michal Jaegermann
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1997-02-12 15:32 UTC (permalink / raw)


> 
Aaron S. Carmichael quotes:
> 
> >From ppp-howto
> 
>           $2 - name of the tty device (such as /dev/cua0)
> 
> where do you get ttys0? 
> dial out ya use cua#...

Sigh!  I wonder how many times this will return.  See below
for details.  Didn't you ever see an incorrect Linux documentation?

> >From man PPPD
> 
>        mru <n>
>               Set the MRU [Maximum Receive Unit] value to <n> for
>               negotiation.  pppd will ask the peer to send  pack-
>               ets  of  no  more  than <n> bytes.  The minimum MRU
>               value is 128.  The default MRU value  is  1500.   A
>               value  of  296  is  recommended  for slow links (40
>               bytes for TCP/IP header + 256 bytes of data).

Ok, so maybe new versions of ppp allow for 128 bytes packetes.  As you
can see from a quoted text this leaves you with 88 bytes for data - like
in a very old kermit, waxed nostalgic. :-)  Seems to be a bit excessive,
especially in a light of your description what is happening, and what
you qoute recommends 296 for a "small" mru anyway.

And now back to regularly scheduled explanations (from Ted Ts'o, who
wrote /dev/cuaXX driver in the first place).  In case you wonder pppd
does proper locking protocol; insert 'lock' in your '/etc/ppp/options'
and just make sure that some of your programs are not using binary locks
while others text format.

   Regards,
   Michal

 Message-Id: <9605131751.AA13288@dcl.MIT.EDU>
 In-Reply-To: Tony Nugent's message of Mon, 13 May 1996 07:57:09 +1000,
	 <199605122157.HAA03287@sctnugen.ppp.gu.edu.au>
 Address: 1 Amherst St., Cambridge, MA 02139
 Phone: (617) 253-8091
 Precedence: bulk
 From: "Theodore Y. Ts'o" <tytso@mit.edu>
 To: Tony Nugent <tonyn@sctnugen.ppp.gu.edu.au>
 Cc: linux-net@vger.rutgers.edu, linux-ppp@vger.rutgers.edu
 Subject: Re: /dev/cua? Vs /dev/ttyS? (was: Re: co-existance of pppd and
 mgetty ?)
 Date: Mon, 13 May 1996 19:51:04 +0200
 Status: ROr

    Date:        Mon, 13 May 1996 07:57:09 +1000
    From: Tony Nugent <tonyn@sctnugen.ppp.gu.edu.au>

    Can someone kindly explain the difference between the /dev/cua? and
    /dev/ttyS? devices?

 /dev/ttySxx devices are fully POSIX-compliant TTY devices.  If you are
 only going to be using one set of tty devices, you should be using
 /dev/ttySxx. 

 /dev/cuaXX devices are different from /dev/ttySXX in two ways --- first
 of all, they will allow you to open the device even if CLOCAL is not set
 and the O_NONBLOCK flag was not given to the open device.  This allows
 programs that don't use the POSIX-mondated interface for opening
 /dev/ttySxx devices to be able to use /dev/cuaXX to make outgoing phone
 calls on their modem (cu stands for "callout", and is taken from SunOS).

 The second way in which /dev/cuaXX differs from /dev/ttySXX is that if
 they are used, they will trigger a simplistic kernel-based locking
 scheme:  If /dev/ttySXX is opened by one or more processes, then an
 attempt to open /dev/cuaXX will return EAGAIN.  If /dev/cuaXX is opened
 by one or more processes, then an attempt to open /dev/ttySXX will
 result the open blocking until /dev/cuaXX is closed, and the carrier
 detect line goes high.

 While this will allow for simple lockouts between a user using a modem
 for callout and a getty listening on the line for logins, it doesn't
 work if you need to arbitrate between multiple programs wanting to do
 dialout --- for example, users wanting to do dialout and UUCP.

 I originally implemented the cuaXX/ttySXX lockout mechanism back before
 FSSTND established a standard convention for the use of tty lock files.
 Now that it's there, people should use the tty lock files and not try
 using /dev/cuaXX.  The only reason why /dev/cuaXX hasn't disappeared yet
 is for backwards compatibility reasons.

						 - Ted

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-02-12 15:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.93.970211225624.9608A-100000@chet.brysonweb.com>
1997-02-12 15:32 ` PPP again Michal Jaegermann
     [not found] <199702120036.RAA22866@ellpspace.math.ualberta.ca>
1997-02-12  4:01 ` Aaron S. Carmichael
     [not found] <Pine.LNX.3.93.970211150921.7044D-100000@chet.brysonweb.com>
1997-02-12  0:36 ` Michal Jaegermann
     [not found] <19970211160841Z232186-147+3@mea.tmt.tele.fi>
1997-02-11 20:23 ` Aaron S. Carmichael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox