Tweaking Connection under Linux 7.0

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
Stooge
Regular Member
Posts: 187
Joined: Mon Sep 25, 2000 12:00 am
Location: Alberta

Tweaking Connection under Linux 7.0

Post by Stooge »

Ive posted this in the Tweaking forum. Know one replied back,

Im hoping someone here will know. I cant seem to figuer out how to change my rwin under linux, here is my analyser test

TCP options string = 020405b40402080a0003c9550000000001030300
MTU = 1500
MTU is fully optimized for broadband.
MSS = 1460
Maximum useful data in each packet = 1448, which is less than MSS because of Timestamps, or other TCP/IP options used.
Default Receive Window (RWIN) = 32120
RWIN Scaling (RFC1323) = 0 bits
Unscaled Receive Window = 32120
RWIN is a multiple of MSS
Other values for RWIN that might work well with your current MTU/MSS:
513920 (MSS x 44 * scale factor of 8)
256960 (MSS x 44 * scale factor of 4)
128480 (MSS x 44 * scale factor of 2)
64240 (MSS x 44)
bandwidth * delay product:
Your RcvWindow limits you to: 1284.8 kbps (160.6 KBytes/s) @ 200ms
Your RcvWindow limits you to: 513.92 kbps (64.24 KBytes/s) @ 500ms
MTU Discovery (RFC1191) = ON
Time to live left = 51 hops
TTL value is ok.
Timestamps (RFC1323) = ON
Note: Timestamps add 12 bytes to the TCP header of each packet, reducing the space available for useful data.
Selective Acknowledgements (RFC2018) = ON
IP type of service field (RFC1349)= 00000000
User avatar
blebs
Posts: 12819
Joined: Sat Dec 02, 2000 12:00 am
Location: North Canton, Ohio

Post by blebs »

To assure you that your not being ignored, I'll post that I haven't a clue. Someone should be around who works with Linux and if not, give Stef a PM, he may know where you need to be looking.
Stooge
Regular Member
Posts: 187
Joined: Mon Sep 25, 2000 12:00 am
Location: Alberta

Post by Stooge »

Well i know found out how to change the rwin. One problem though, The number i add isint the number that gets put in. for example if i add the number 256960 the number that will show up will be 318000 or whatever.

What would be a good rwin for cable ?
User avatar
blebs
Posts: 12819
Joined: Sat Dec 02, 2000 12:00 am
Location: North Canton, Ohio

Post by blebs »

I'm using 256960 on Win98se and cable. It works fine for me.
From what I see in your test, you need to find out how to shut off timestamping then find out why RWIN isn't showing the correct value. I wish I knew something about Linux!

Stef is a Linux person and should be able to help you on this.
master7
Posts: 2359
Joined: Sun Nov 11, 2001 4:57 pm
Location: Atlanta, GA

Post by master7 »

You say Linux 7.0. Are you talking about Red Hat 7.0 or what? Please include your distro information if it's not Red Hat.
i'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet
User avatar
Stef
Advanced Member
Posts: 712
Joined: Sun Apr 16, 2000 12:00 am
Location: Edmonton, Alberta, Canada

Post by Stef »

Which kernel version are you running?

I can give you a complete listing of the tune'able IPv4 parameters in Linux, just give me a version number :D

BTW, you can also tweak routes on your network by using the Linux route utility.

Lets say we wanted to increase the MSS and TCP window of our default gateway

First, delete the default gateway:

route del default gw $Gateway

Then re-install that gateway with specifying the MSS and TCP window:

route add default gw $Gateway dev $Interface mss $mss window $tcpwin

Where:
$Gateway = your ISP default gateway ( IP address or hostname )
$Interface = the interface connected to your ISP's network
$mss = MTU - IP headers
$tcpwin = TCP window size in kbytes

If you let me know which DHCP client you are using I can give you directions on how to edit the configuration file so this is done automatically on every DHCP release/renew/request.

In Linux, we can manipulate anything and everything :D
Stef
master7
Posts: 2359
Joined: Sun Nov 11, 2001 4:57 pm
Location: Atlanta, GA

Post by master7 »



In Linux, we can manipulate anything and everything :D
Amen :D
i'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet
User avatar
Stef
Advanced Member
Posts: 712
Joined: Sun Apr 16, 2000 12:00 am
Location: Edmonton, Alberta, Canada

Post by Stef »

Originally posted by Stooge
Well i know found out how to change the rwin. One problem though, The number i add isint the number that gets put in. for example if i add the number 256960 the number that will show up will be 318000 or whatever.

What would be a good rwin for cable ?
SpeedGuide's TCP anyliser isn't accurate. Use the one at DSLReports.

Here's my tweak test, my RWIN is as listed on this URL:

http://monitor.dslreports.com/tweak/blo ... via=normal

BTW, you can get your kernel version two different ways.

One is two execute kernelversion as root. Another is to run cat /proc/version as root.

Stef
Stooge
Regular Member
Posts: 187
Joined: Mon Sep 25, 2000 12:00 am
Location: Alberta

Post by Stooge »

Im running Mandrake 7.0,. My kernel is 2.2.14-1mdklinus (gcc version 2.95.2.

Also when i reboot my CPU the rwin goes right back to default. I cant get my rwin to stay after rebooting.

And another question. Ive been looking at my performance Monitor and it shows a large Cache. Takes up all my memory,. Anyway i can decrease the Cache size ?

thanks for the info btw :)
User avatar
Stef
Advanced Member
Posts: 712
Joined: Sun Apr 16, 2000 12:00 am
Location: Edmonton, Alberta, Canada

Post by Stef »

First, I wouild recomemd that you upgrade to the latest 2.2.x series of kernels. You can get it at http://www.kernel.org :D (right now 2.2.20 is the latest stable of that tree)

You need to write a script that resets your desired settings in the kernel. Consult your Mandrake mailling lists for more details, they got Mandrake pro's there.

Linux's disk cache size is calculated at boot and the results are based on total system memory.

You can find more information in the kernel docs and those are over at LinuxHQ.com

Here's one link on the parameters that affect VM and disk access:

http://www.linuxhq.com/kernel/v2.2/doc/ ... m.txt.html

Here's a few links that details the finner tunning of the kernel's IPV4 variables.

http://www.linuxhq.com/kernel/v2.2/doc/ ... l.txt.html

http://www.psc.edu/networking/perf_tune.html#Linux

http://www.linux.com/enhance/tuneup/dat ... 000815.htm

Have fun reading :D

Stef
Post Reply