help with slow ppp connection

help with slow ppp connection

Post by Samuel Davidof » Wed, 18 Aug 1999 04:00:00



I'm using chat and pppd to connect to my ISP through my USRobitcs 56k
modem on LinuxPPC. My problem is my connection seems slower than it is
on the mac side.

I have /dev/ttyS0 set to 230400 baud through stty.
I have setserial flagged at spd_vhi (though this isn't neccesary)
My pppd options include '115200' (for some reason 230400 won't work),
'crtscts' and 'bsd_cmp 15,15' i think these are the relevant settings.

the chat log reports that i am connection above 50000 so i'm guessing
the problem is with pppd.

so, any ideas what the problem could be?

btw, does anyone know a reliable way to check modem connection speeds?
I've been judging from ftp transfers, and netscape loadings.

thanks,
sam

 
 
 

help with slow ppp connection

Post by Chris Butl » Thu, 19 Aug 1999 04:00:00


[comp.os.linux.networking - Tue, 17 Aug 1999 09:47:38 -0400] * Samuel wrote *

Quote:> I have /dev/ttyS0 set to 230400 baud through stty.
> I have setserial flagged at spd_vhi (though this isn't neccesary)
> My pppd options include '115200' (for some reason 230400 won't work),
> 'crtscts' and 'bsd_cmp 15,15' i think these are the relevant settings.
> the chat log reports that i am connection above 50000 so i'm guessing
> the problem is with pppd.

What are the MTU and MRU settings?

(You can check this with "ifconfig ppp0" when you're connected)

The best setting for PPP is 576 (for both).

--
Chris Butler


 
 
 

help with slow ppp connection

Post by Ronald Col » Thu, 19 Aug 1999 04:00:00



> [comp.os.linux.networking - Tue, 17 Aug 1999 09:47:38 -0400] * Samuel wrote *
> > I have /dev/ttyS0 set to 230400 baud through stty.
> > I have setserial flagged at spd_vhi (though this isn't neccesary)
> > My pppd options include '115200' (for some reason 230400 won't work),
> > 'crtscts' and 'bsd_cmp 15,15' i think these are the relevant settings.
> > the chat log reports that i am connection above 50000 so i'm guessing
> > the problem is with pppd.

> What are the MTU and MRU settings?

> (You can check this with "ifconfig ppp0" when you're connected)

> The best setting for PPP is 576 (for both).

Maybe for a 14.4 modem... but for a 56k, I can run pretty close to
full steam with 1500.

--
Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412

President, CEO                             Fax: (760) 499-9152
My PGP fingerprint: 15 6E C7 91 5F AF 17 C4  24 93 CB 6B EB 38 B5 E5

 
 
 

help with slow ppp connection

Post by Samuel Davidof » Thu, 19 Aug 1999 04:00:00





> > [comp.os.linux.networking - Tue, 17 Aug 1999 09:47:38 -0400] * Samuel wrote
> > *
> > > I have /dev/ttyS0 set to 230400 baud through stty.
> > > I have setserial flagged at spd_vhi (though this isn't neccesary)
> > > My pppd options include '115200' (for some reason 230400 won't work),
> > > 'crtscts' and 'bsd_cmp 15,15' i think these are the relevant settings.
> > > the chat log reports that i am connection above 50000 so i'm guessing
> > > the problem is with pppd.

> > What are the MTU and MRU settings?

> > (You can check this with "ifconfig ppp0" when you're connected)

> > The best setting for PPP is 576 (for both).

> Maybe for a 14.4 modem... but for a 56k, I can run pretty close to
> full steam with 1500.

And 1500 is the default setting of pppd so I don't think that's my
problem. Thanks anyway though. Any other suggestions?

Sam

 
 
 

help with slow ppp connection

Post by Eric L. Schot » Wed, 25 Aug 1999 04:00:00



> And 1500 is the default setting of pppd so I don't think that's my
> problem. Thanks anyway though. Any other suggestions?

The TrinityOS project suggests setting the TCP window to 8192:

   Both Slackware and Redhat, out of the box, do NOT optimize the TCP/IP
   window size.  This can make a BIG difference with performance.  For more
   information, check out [URLs in Section 5]:
         RFC 1106 - High Latency WAN links - Section 4.1
         RFC 793 - Transmission Control Protocol

         Redhat5:
      NOTE:  Users that have NOT installed the initscripts-3.67-1.i386.rpm
             patch RPM, the correct line numbers will be 119 and 134.  
             Personally, I recommend that you just install the RPM NOW!

      Edit "/etc/sysconfig/network-scripts/ifup" and around
      lines 134, 136, 141, 149, and 158, find the lines:

         134:    "route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}"
              and
         136:    "route add -host ${IPADDR} ${DEVICE}"
              and
         141:    "route add default gw ${GATEWAY} metric 1 ${DEVICE}"
              and
         149:    "route add default gw ${GATEWAY} ${DEVICE}"
              and
         158:    "route add default gw $gw ${DEVICE}"

      and change them to:
         134:    "route add -net ${NETWORK} netmask ${NETMASK} window 8192 ${DEVICE}"
              and
         136:    "route add -host ${IPADDR} window 8192 ${DEVICE}"
              and
         141:    "route add default gw ${GATEWAY} window 8192 metric 1 ${DEVICE}"
              and
         149:    "route add default gw ${GATEWAY} window 8192 ${DEVICE}"
              and
         158:    "route add default gw $gw window 8192 ${DEVICE}"

 
 
 

1. Slow PPP Connection But Minicom Connection Fine

I have a USR/3Com 56K Faxmodem (ISA PnP). I have set up the correct
IRQs, ports, etc. and verified that they are working fine. When I dial
out with Minicom, I get a good connection, usually at around 50K. But
when I dial the same number with a chatscript running under pppd I only
get a 9.6K connection. I can get a 50K connection from the chatscript if
I run it AFTER I have dialed the same number from Minicom and then
exited. The modem init strings for both Minicom and chat are the same
(AT&F1), and I have all the settings in pppd as recommended (pppd
connect 'chat -v -f /etc/ppp/chatscript -detach crtscts modem
defaultroute /dev/modem 115200 user'myusername'). Any ideas on what is
causing this and how to fix it?
Thanks in advance
Chris Turner

2. PS/2 Mouse Busy Problem

3. PPP Connection slow down HELP!!

4. RealAudio ?

5. help with linux PPP (slow connection)

6. Warning: Unable to load any usable fontset?

7. Help: Slow ppp connection with USR Robitics Sport 28.8

8. emulation things

9. help I have a very slow ppp connection

10. Help: Slow ppp connection with USR Robitics Courier Dual Standard 28.8

11. Slow PPP connection : HELP / Personal experience with irqturn?

12. Help : ppp connection slow on my 28800

13. RH5.1 PPP connection: PPP connection persists, telnet session times out