Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modem (Settings) Optimizing...how to think about? 4

Status
Not open for further replies.

richardhot

Instructor
Jun 21, 2002
167
US
Hello,

Should one assume default modem settings are suboptimal and try to tweak them?
Is there a utility that does this reliably? Freeware?
Comments? Ideas? Recommendations?

Would like to optimize without going crazy and would like to find idiot-proof automatic-as-possible way to do this if feasible...
Thanks richardhot

ps.

Standard discussion looks like this:



Modem Settings:
The next stage is to make sure that the modem is configured for optimum performance. Click on "Start" up to "Settings" then across to "Control Panel". Once in the control panel, double click on "Modems". Select your modem and click "Properties". Make sure the Maximum Speed is set to 115200 (57600 if you have a 28.8 modem). Make sure that "Only Connect At This Speed" is UNCHECKED. Click the connection tab. Ensure that you have 8 data bits, Parity set to none and 1 stop bit. Click on "Port Settings" and push the receive buffers up to 16. Then click on "Advanced" and you will see the following.




All of the above settings (except the Extra Settings which are modem dependant) are the optimum. If you have an initialisation string for your modem type that into the extra settings box. If you don't have one you may be able to get one from your modem manufacturer or your ISP's helpdesk. If not try one of the following generic strings.

Rockwell Chipsets
Kflex
AT+MS=56,1,33600,56000%E0S91=15
AT+MS=56,1,33600,56000%E0
AT+MS=K56FLEX,1,3400,56000

V 90
AT+MS=12,1,33600,56000
AT+MS=12,1,3400,1,5600
AT+MS=12,1,3400,56000
AT+MS=V90,1,3400,56000

USR Chipsets
AT&F1 is adequate for most USR modems

If none of the above works try Asking Mr Modem here you can find init strings for most modems.

Now lets look under the surface a bit at some of the other things we can tweak to get the best performance. I'll explain them first then tell you how to make the changes at the end.

MTU
MTU or Maximum Transmission Unit is the largest TCP/IP packet that your PC will send. Windows sets this as 1500 by default. 1500 is fine for lans but the Internet standard MTU is 576. You are better off having an MTU of 576 because even if your own ISP also has an MTU of 1500 there is no doubt that on thier journey accross the net your packets will pass through routers that have an MTU of 576. When this happens your packet becomes fragmented. That is to say that your packet is broken down into smaller packets and each one has it's own header added.

MSS
MSS or Maximum Segment Size is the maximum size of the TCP/IP Packet minus the headers, this is the actual data you are sending. The MSS ideally should be MTU -40 as the header layer is 40 bytes. So for an MTU of 576 the ideal MSS would be 536

RWIN
The RWIN or Recieve WINdow is the maximum amount of data your computer is willing to receive at any one moment. Setting this too high will mean a greater loss of data if a packet is lost (this translates to lag in a game). If it is set too low then it will be very slow (and the game will be laggy). The RWIN should be an integer of MSS. Ideally MSS X 2 4 6 8 or 10. The optimum is MSS x 4 which in our case is 536 x 4 so our ideal RWIN is 2144 You can try higher ie MSS x 6 but remember, too high and it will have the opposite effect of what you are trying to acheive.

TTL
The TTL is the Time To Live for each packet or the maximumum amount of hops the data will travel. In order to get from one machine to another the data hops from 1 router to another until it gets to its destination. The default TTL is 32 which should be fine but as the Internet is growing all the time I would reccommend a TTL of 64

The easiest way to understand how these elements fit together is via the old email analogy. Think of an email, the MSS is the letter itself,Tthe MTU is the envolope that the letter is put into and then sent. Tthe RWIN is the letterbox that the letter drops through when it arrives. The TTL is how far the postman is willing to take the letter.

Now the important bit, how do we change these settings. Well we can hack the registry. After much thought though I decided not to post the registry settings though. There is too much potental for disaster if you are not familiar with editing the registry. For those that want them they are readily available on the net, just do an Alta Vista search. The easiest and safest way to do it is by using one of the many purpose made utilities. I personally use MTUSpeed Pro but there are plenty out there.
 
First, what are your reported connection speed, throughput, and actual download rate?
There are things that can be done, easily, without jumping through hoops, but only if there's a specific issue you wish to deal with. Going by the school of thought; "If it works, don't fix it!" Cheers,
Jim
iamcan.gif
 
Hello once again Richard

And may I say that this subject is tricky, Dickie. But you have the man from Canada on the trail, so it should end well (Hi Jim).

Well you use the same modem as me and my speed (as given by the cursor held over the communication lights in the taskbar)is given as 54667 bps - not bad. My son with his PC and a 10 metre extension cable usually gets around 48000. The difference other than 6667 is that I use a modem accelerator.

I have tried others and found not an iota of difference with or without until I was introduced to Rob Vonk. I am not a purist like Jim (forgive me if I'm wrong there Jim), but I do know that this works for me. Here's the link; see what you think. It's called EasyMTU (maximum transmissable unit) and it's the easiest one to use that I have ever seen.

Regards
Phil
 
Heh, Hi Phil!
Yeah, call me a purist.
I don't like adding more software than is necessary to do a job, and in this case, everything can be done with a registry tweak, and/or adding an init string.
The easiest stuff is adding a string, but like I said above, it depends on what's going on NOW.
If there are specific issues causing a slower connect, or poor throughput, then an init string can fix that. If it's simply an MTU issue, then Windows networking can fix it, no need for more software...however...EasyMTU is probably the "easiest" way for someone to adjust stuff, without knowing anything about what they're adjusting, nor why. ;-) Cheers,
Jim
iamcan.gif
 
Hello, all
Thank you both. Most helpful as always.
Will try items you mentioned...would like idiot-proof as possible, "fire and forget"....

If it's true that many default settings are suboptimal, you'd think (naively?)that automated tweaking would be desirable...assuming, of course, one is not messed up along the way by changes...I have read of cases where people used utilities ("Modem Boost") and had more hassles...no one wants more hassles...only improved performance..

Thanks to all for usual savvy points and tips.
richardhot
 
Hello...

Am studying up on all the first-class leads.

(Repeat plea: get all these ideas into "Dummies "-style

series of look-up/Q&A books)

Thanks...you guys are amazing!
richardhot
 

Question about Receive Buffer/Transmit Buffer settings as corrective to ISP connections problems:

Forgot to mention:
Noticed that Control Panel/Modem/General/Connection/Port Settings shows:

Receive Buffer at notch 3; Transmit Buffer at notch 4.

It says above: Lower these settings for connection problems(I'm paraphrasing...don't have it in front of me)

Any thoughts and pointers as to how much to lower what?
thanks
richardhot
 
Don't lower anything, set them as high as possible.
Hardware will over-ride any Win settings anyhow, on a hard modem. Winmodems, aka soft modems, need adjusting.
If you are having a connection problem, and/or a speed problem, please give details, and we'll give you some suggestions.
I'll give some anyhow :-D
All modems can be controlled by an initialization string. In windows, it's hidden from view, but you can add stuff to it easily. What you add, is dependent on what the problem is.
All init string add ons go in the Extra Settings box of Advanced modem properties in Device mangler.
For slow connections (less than 33.6) try these:
+MS=K56,0
+MS=V90,1,,,36000,56000
For stability problems, drop offs, etc., try these:
S202=32S95=1
S11=50
For dialling problems on tone lines, try this:
S10=50
Any other init strings you want for a specific problem, just ask.
Caveat: I do NOT deal with TI chipset (USR/3com) modems. ;-) however, most others, Rockwell/Conexant, PCTel, Cirrus/Ambient/Intel all have the same basic command set, and take the same init strings, based on the Hayes standard. Cheers,
Jim
iamcan.gif
 
Hello, all

Thank you all for splendid points and pointers.
A few things that are still confusing:

If Win 98SE automatically self-optimizes modem, does that mean fiddling with settings will always be overridden and is useless/temporary/counterproductive even?

Not clear: relationship between auto-optimize setup in Win98SE and user's ability to fight(say) disconnects.

Another confusion: since disconnect problem (to take one example) is (in my case) episodic (related to ISP congestion/peak loads, perhaps?)

What does that imply in terms of remedies?

I guess one could of course experiment and simply see what works empirically...

Lastly: any comments on/reviews of "modem optimizers/utilities" whether freeware or shareware. There are several floating around that one sees mentioned..it would be lovely if one could install a safe utility that would automatically monitor and adjust the modem settings/MTU-type stuff without messing up and complicating the picture further...happiness would be a "fire and forget"
"assistant", so to speak...

Thanks
richardhot
 
Win98 SE doesn't do anything to the modem, nor it's settings. It's all done in the modem driver setup.
The defaults work, in most cases, but tweaking can make it work better.
The only thing windows seems to think is better, is a default MTU of 1500, and that is NOT optimized for dial-up.
EasyMTU will fix that easily ;-) or you can edit the registry.
There is no such thing as "auto-optimize". Everyones modem, Windows configuration, ISP, and phone lines are different. What works for you may not work at all for someone else.
Your ISP should maintain a minimum of reliable service. If you get disconnects because of overloading, then THEY are not providing a very good service (too many users on one modem bank/server).
What you CAN do, is optimize your system for peak performance, under the conditions you're forced to operate with. If drop offs are a problem, then lets address that specific problem. A program such as EasyMTU may help certain things, but not others, and drop offs/disconnects is NOT one of them.
You WILL have to experimant a bit. There is no "magic button" you can push, and have it all work perfectly, all the time.
Here's what I'd do:
1.) Phone ISP and complain loud and long about disconnects/slowdowns during peak times.
2.) Phone them again, complain about the same things.
3.) Don't believe them when they tell you that you need a new driver, or "it's a windows setting", it's not.
4.) Try an init string add-on to see if it helps.
5.) Phone ISP again, explain the init string you used, and if it helped, then explain again how you shouldn't have to use an init string to connect or stay connected. You're paying, they should fix it. Period.

EasyMTU has a button for "Default Settings", which will restore the registry to the original (before you installed the program) settings.
Get it, install it, play with it. You can always go back.
Take note of the settings that work, and ones that don't.
Phone ISP again (at least twice) and explain again what works, and what doesn't, and ask why you should have to resort to this sort of thing when it's not up to you to fix a congestion problem at their end.
[/rant]
I hope this helps a bit.
Unfortunately, to "optimize" a dial-up connection, a certain amount of knowledge is needed, even to run EasyMTU with any success, it helps to know WHAT you're changing, and why. Cheers,
Jim
iamcan.gif
 
Hello,

Thanks so much!

You guys should have an adviisory oanel show on the tube where people call in.
I'm serious.
richardhot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top