LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2003, 03:29 AM   #1
comtronics
LQ Newbie
 
Registered: May 2003
Location: Perth
Distribution: debian (sid, woody)
Posts: 28

Rep: Reputation: 15
Angry PPP connection slow


Hello

I have set up a server which connects to the internet for the rest od my network. Its a 56k modem which usually (in win) connects at about 50kbps. At the moment its connecting at 33.6k. Ive tried everything I can think of. (me being a newbe means i havent tried very much at all) So I turn to the wiser and more experienced people of linux.

can anyone help, or give sugestions?

Ryan
 
Old 08-24-2003, 03:40 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
What type of modem, and what have you set its values at?

Whats the command string for the modem?
 
Old 08-24-2003, 04:42 AM   #3
comtronics
LQ Newbie
 
Registered: May 2003
Location: Perth
Distribution: debian (sid, woody)
Posts: 28

Original Poster
Rep: Reputation: 15
Ok i have a rockwell(or compatiable) 56k modem.

I think this is what your are looking for:
'' ATZ
OK ATE0V1&C1&D2S0=0
OK ATM1X4W2

If you want i could put up ppp part of messages.

Ryan
 
Old 08-24-2003, 05:01 AM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
First use irqtune to set the priority of the modems irq to 0.

Then issue the command

setserial /dev/cua spd_vhi

use of course the com channel for your modem instead of cua.

irqtune is part of the hwtools package is you haven't already got it.
 
Old 08-24-2003, 05:19 AM   #5
comtronics
LQ Newbie
 
Registered: May 2003
Location: Perth
Distribution: debian (sid, woody)
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the help. Im find out if it works next time i dial up, which will probably be sometime later in the week.

Just out of curiosity what did i just do?

Ryan
 
Old 08-24-2003, 05:23 AM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You just made the modem HIgh Priority on your computer, so it takes precedence.

Its needed cuz otherwise its Interrupt requests might not be high enough on the list to interrupt other tasks to get its stuff processed quickly. Especially important when its establishing contact with the ISP.
 
Old 08-27-2003, 10:14 PM   #7
comtronics
LQ Newbie
 
Registered: May 2003
Location: Perth
Distribution: debian (sid, woody)
Posts: 28

Original Poster
Rep: Reputation: 15
ok after doing what you told me to do ,my connection still seems to be slow.
Just to double check my dodgy judgment is there a program or some way of checking my connection speed?

Ryan
 
Old 08-28-2003, 12:22 AM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
The easiest thing to do would be to ping a site from linux and windows and compare times.

in linux:
ping -c 5 www.google.com

in windows:
bring up a console (usually under accessories as c promt or similar)
ping www.google.com

and compare the round trip times average, from Linux I get
round-trip min/avg/max = 93.0/96.8/108.2 ms

96.8ms for my average roundtrip. I'm in the UK on 1Mb Cable modem and thats about right.
 
Old 08-30-2003, 06:31 AM   #9
comtronics
LQ Newbie
 
Registered: May 2003
Location: Perth
Distribution: debian (sid, woody)
Posts: 28

Original Poster
Rep: Reputation: 15
I compared the ping times when connected from win to linux, they're basically the same. I edited the chatscript to be the same as whats in the moden log on win. Now it say in linux logs that im connecting at 49kbps, which is about right. But I still have a problem.

whenever i download something (say apt-get update or any file ffrom a site) whatever I the web page download rate is reduced to several hundred bytes, if it can connect at all. It seem that that ever I start first (meaning having serveral downloads at once) gets high priority over the total bandwidth.

Is there a way to fix or get around this?

Ryan
 
Old 08-30-2003, 07:44 AM   #10
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
So basically you want to control bandwidth based on what your downloading, the best thing for that would probably be something like squid.

I've got this HOWTO http://www.tldp.org/HOWTO/Bandwidth-Limiting-HOWTO/
which you may find useful. Its got the details from installing squid to controlling nadwidth based on files. apt-get is .deb, maybe .tar.gz .zip files generally downloadable files, which is what you want to restrict. The HOWTO goes on about avi and such just substitute the files types.
 
Old 09-01-2003, 07:05 AM   #11
comtronics
LQ Newbie
 
Registered: May 2003
Location: Perth
Distribution: debian (sid, woody)
Posts: 28

Original Poster
Rep: Reputation: 15
Looking at the how-to site Im not sure it will fix things, infact it might make things worse. Im not sure if I mentioned but my server is an old 686, 24Mb ram and a 800Mb hard drive, with 100Mb of that in swap. so not only dont i have the speed for squid pooling but i defientially have the memory. I know this could easily be solved with a larger hard drive (which I should invest in) but its a matter of money.

Is there any other solutions, I think were starting to get on the right track.

any ideas.

Ryan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
ppp connection slow fuske Linux - Networking 1 06-06-2004 02:16 AM
ppp connection very slow tjpick Linux - Networking 2 10-26-2003 01:20 AM
Slow PPP connection RHrulz Linux - Networking 2 12-06-2002 03:34 PM
ppp either very slow or doesn't work vance Linux - Networking 5 08-17-2001 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration