FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-19-2007, 08:36 PM
Richard
 
Default Tcp Tuning for boardband ?

is there a way to adjust the tcp stack for faster browsing the net, heard
there are some settings, for that... anyone have a link to a "How to" page
for gusty ? *( Have a 15 Meg connection )

I know in Windows (oops) there was a boardband tuning .exe app, that made a
Major differences in download speeds...

-Rich

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-19-2007, 09:02 PM
Vincent Trouilliez
 
Default Tcp Tuning for boardband ?

> is there a way to adjust the tcp stack for faster browsing the net, heard
> there are some settings, for that... anyone have a link to a "How to" page
> for gusty ? *( Have a 15 Meg connection )
>
> I know in Windows (oops) there was a boardband tuning .exe app, that made a
> Major differences in download speeds...

Hmmm... I have a 30Mbps cable link, browsing speed is veery
snappy/responsive, and download speed is as fast as 30MBps allows, I get
a steady 3.3MB/s when servers allow. IOW, however the stack is set up,
it seems perfectly adequate, as far as I can see ! ;-)

So unless you are looking after some educational experiment, I say
don't bother tweaking anything, it just works as it is ;-)

Regards,

--
Vince

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-19-2007, 09:31 PM
Hal Burgiss
 
Default Tcp Tuning for boardband ?

On Mon, Nov 19, 2007 at 04:36:54PM -0500, Richard wrote:
> is there a way to adjust the tcp stack for faster browsing the net, heard
> there are some settings, for that... anyone have a link to a "How to" page
> for gusty ? *( Have a 15 Meg connection )
>
> I know in Windows (oops) there was a boardband tuning .exe app, that made a
> Major differences in download speeds...

That's because Windows ha[sd] a very brain dead dial-up optimized networking
stack. Linux has the real thing. Not needed (except in maybe very
unusual circumstances).

--
Hal


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-20-2007, 03:36 AM
Richard
 
Default Tcp Tuning for boardband ?

On Monday 19 November 2007 5:31:02 pm Hal Burgiss wrote:
> On Mon, Nov 19, 2007 at 04:36:54PM -0500, Richard wrote:
> > is there a way to adjust the tcp stack for faster browsing the net, heard
> > there are some settings, for that... anyone have a link to a "How to"
> > page for gusty ? *( Have a 15 Meg connection )
> >
> > I know in Windows (oops) there was a boardband tuning .exe app, that made
> > a Major differences in download speeds...
>
> That's because Windows ha[sd] a very brain dead dial-up optimized
> networking stack. Linux has the real thing. Not needed (except in maybe
> very
> unusual circumstances).
>
> --
> Hal

Hal, your right about Windows... very brain dead..in the tcp stack...
however, been googling the net and found this for linux tcp tuning.

Add the following to /etc/sysctl.conf

# Tweaks for faster broadband...
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1
------------
Now, I thought I would as,k the the network specialist
out there, if these setting would make any real diff.

Thanks -
Richard


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-20-2007, 08:05 AM
Thilo Six
 
Default Tcp Tuning for boardband ?

Richard wrote the following on 20.11.2007 05:36

<<-snip->>

> net.core.rmem_max = 524288

> net.core.wmem_max = 524288
> net.ipv4.tcp_wmem = 4096 87380 524288
> net.ipv4.tcp_rmem = 4096 87380 524288

those i used in the past
but i havenīt any numbers compared to without them

> net.ipv4.tcp_rfc1337 = 1
> net.ipv4.ip_no_pmtu_disc = 0
> net.ipv4.tcp_sack = 1
> net.ipv4.tcp_fack = 1
> net.ipv4.tcp_window_scaling = 1

use "window scaling" with caution.
see:
http://lwn.net/Articles/92727/


> net.ipv4.tcp_timestamps = 1
> net.ipv4.tcp_ecn = 0
> net.ipv4.route.flush = 1
> ------------
> Now, I thought I would as,k the the network specialist
> out there, if these setting would make any real diff.

the tcp buffers can make a difference in my experience, but those settings
are Link relatet.
So play a little around to find the setting that works for you best.

Apart from that.
A real big difference in network speed is to install a local DNS cache such
as "pdnsd".
That will greatly reduce network delay in Nameresolution and therefore speed
up you surfing greatly.


> Thanks -
> Richard

HTH
--
Thilo

key: 0x4A411E09


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-20-2007, 10:31 AM
Hal Burgiss
 
Default Tcp Tuning for boardband ?

On Mon, Nov 19, 2007 at 11:36:47PM -0500, Richard wrote:
>
> # Tweaks for faster broadband...
> net.core.rmem_default = 524288
> net.core.rmem_max = 524288
> net.core.wmem_default = 524288
> net.core.wmem_max = 524288
> net.ipv4.tcp_wmem = 4096 87380 524288
> net.ipv4.tcp_rmem = 4096 87380 524288
> net.ipv4.tcp_mem = 524288 524288 524288
> net.ipv4.tcp_rfc1337 = 1
> net.ipv4.ip_no_pmtu_disc = 0
> net.ipv4.tcp_sack = 1
> net.ipv4.tcp_fack = 1
> net.ipv4.tcp_window_scaling = 1
> net.ipv4.tcp_timestamps = 1
> net.ipv4.tcp_ecn = 0
> net.ipv4.route.flush = 1

Some of those are the defaults anyway (visible with sysctl -a). You
can always enable them, find a speed test site do a before/after test.

--
Hal


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-20-2007, 01:01 PM
Smoot Carl-Mitchell
 
Default Tcp Tuning for boardband ?

On Tue, 2007-11-20 at 10:05 +0100, Thilo Six wrote:

> use "window scaling" with caution.
> see:
> http://lwn.net/Articles/92727/

I agree. I ran into this problem at a hotel's Internet access. The
provider had busted routers. It took me a while to diagnose the problem
and of course the provider's help desk people did not have a clue what
the problem was.

BTW, window scaling is on by default in the Linux networking stack.
Normally, this is fine, since the scaling is negotiated between the TCP
endpoints. If one side does not support it, it gets turned off. However,
if there are busted routers in the middle, then all bets are off.

Window scaling along with increasing the size of the TCP send and
receive buffers can help when utilizing high speed network pipes with
low packet loss and relatively high but consistent latencies. Unless you
are transferring large amounts of data, the default settings are
probably adequate. This is because TCP tunes itself to the available end
to end network bandwidth and network latency. Even if you have a 15
megabit connection, that does not mean you have 15 megabits of available
bandwidth to all remote destinations.
--
Smoot Carl-Mitchell
System/Network Architect
email: smoot@tic.com
cell: +1 602 421 9005
home: +1 480 922 7313

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-20-2007, 02:11 PM
Richard
 
Default Tcp Tuning for boardband ?

On Tuesday 20 November 2007 4:05:14 am you wrote:
> Richard wrote the following on 20.11.2007 05:36
>
> <<-snip->>
>
> > net.core.rmem_max = 524288
> >
> > net.core.wmem_max = 524288
> > net.ipv4.tcp_wmem = 4096 87380 524288
> > net.ipv4.tcp_rmem = 4096 87380 524288
>
> those i used in the past
> but i havenīt any numbers compared to without them

I can add these to the config file above with no issues, right ?




> > net.ipv4.tcp_rfc1337 = 1
> > net.ipv4.ip_no_pmtu_disc = 0
> > net.ipv4.tcp_sack = 1
> > net.ipv4.tcp_fack = 1
> > net.ipv4.tcp_window_scaling = 1
>
> use "window scaling" with caution.
> see:
> http://lwn.net/Articles/92727/

Thilo, can I add these too, but CHANGE the window_scaling = 0
according to the link you listed, this way, it would be compatible with the
broken routers out there, or NO ?



>
> > net.ipv4.tcp_timestamps = 1
> > net.ipv4.tcp_ecn = 0
> > net.ipv4.route.flush = 1
> > ------------
> > Now, I thought I would as,k the the network specialist
> > out there, if these setting would make any real diff.
>
> the tcp buffers can make a difference in my experience, but those settings
> are Link relatet.
> So play a little around to find the setting that works for you best.

these above would be okay as well ?




>
> Apart from that.
> A real big difference in network speed is to install a local DNS cache such
> as "pdnsd".
> That will greatly reduce network delay in Nameresolution and therefore
> speed up you surfing greatly.

Thanks very much, will look into this pdnsd dns cache for my laptop.

Richard




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-20-2007, 05:28 PM
Smoot Carl-Mitchell
 
Default Tcp Tuning for boardband ?

On Tue, 2007-11-20 at 10:11 -0500, Richard wrote:

> Thilo, can I add these too, but CHANGE the window_scaling = 0
> according to the link you listed, this way, it would be compatible with the
> broken routers out there, or NO ?

Without window scaling the maximum TCP window size is limited to 64K.
Many of the other settings will not matter because of this limit. This
basically means the total number of bytes "in flight" on the network
without window scaling is set to this maximum by the protocol. e.g.
window size is a 16 bit unsigned number in the TCP header.
--
Smoot Carl-Mitchell
System/Network Architect
email: smoot@tic.com
cell: +1 602 421 9005
home: +1 480 922 7313

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 11:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright Đ2007 - 2008, www.linux-archive.org