[ previous ] [ next ] [ threads ]
 
 From:  Scott Ullrich <sullrich at gmail dot com>
 To:  Dinesh Nair <dinesh at alphaque dot com>
 Cc:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall-dev] FreeBSD 6.0-based alpha version 1.3a1 available
 Date:  Mon, 21 Nov 2005 17:51:33 -0500
From our tests (using netio, a centrino 1.6 ghz laptop as client and a
Athlon64 as the server) fastforwarding increases performance about 2
megabits on a 266 megahertz WRAP to 28.5 megabit.   inflight is really
meant for overly congested links and really hurts performance.    NOTE
that this is on pfSense with PF.  Either way this may be interesting
to others here.    I have forwarded the test results below done by
Holger.

Test setup (some runs repeated twice):

centrino 1,6 GHz 10/100/1000 in 100 mbit/s full duplex mode running as
netio client
 |
LAN
WRAP 266 MHz/128 MB running pfSense 0.93.2 with factory default config
WAN
 |
Athlon64 3200+ 10/100/1000 in 100 mbit/s full duplex mode running as
netio server


----------------------------------------------------------
Original settings of pfsense 0.93.2:
net.inet.ip.fastforwarding=1
net.inet.tcp.inflight=1
net.inet.tcp.syncookies=1
net.inet.tcp.recvspace=65228
net.inet.tcp.sendspace=65228
net.inet.tcp.delayed_ack=0

D:\flash\netio>nt -t 192.168.10.10

NETIO - Network Throughput Benchmark, Version 1.14
(C) 1997-2001 Kai Uwe Rommel

TCP/IP connection established.
Packet size  1 KByte:   2520 KByte/s
Packet size  2 KByte:   2552 KByte/s
Packet size  4 KByte:   3162 KByte/s
Packet size  8 KByte:   3376 KByte/s
Packet size 16 KByte:   3512 KByte/s
Packet size 32 KByte:   3641 KByte/s

----------------------------------------------------------
modified inflight to 0:
net.inet.ip.fastforwarding=1
net.inet.tcp.inflight=0
net.inet.tcp.syncookies=1
net.inet.tcp.recvspace=65228
net.inet.tcp.sendspace=65228
net.inet.tcp.delayed_ack=0

D:\flash\netio>nt -t 192.168.10.10

NETIO - Network Throughput Benchmark, Version 1.14
(C) 1997-2001 Kai Uwe Rommel

TCP/IP connection established.
Packet size  1 KByte:   2516 KByte/s
Packet size  2 KByte:   2566 KByte/s
Packet size  4 KByte:   3236 KByte/s
Packet size  8 KByte:   3368 KByte/s
Packet size 16 KByte:   3442 KByte/s
Packet size 32 KByte:   3558 KByte/s

D:\flash\netio>nt -t 192.168.10.10

NETIO - Network Throughput Benchmark, Version 1.14
(C) 1997-2001 Kai Uwe Rommel

TCP/IP connection established.
Packet size  1 KByte:   2538 KByte/s
Packet size  2 KByte:   2602 KByte/s
Packet size  4 KByte:   3200 KByte/s
Packet size  8 KByte:   3303 KByte/s
Packet size 16 KByte:   3403 KByte/s
Packet size 32 KByte:   3583 KByte/s

----------------------------------------------------------
modified fastforwarding & inflight to 0:
net.inet.ip.fastforwarding=0
net.inet.tcp.inflight=0
net.inet.tcp.syncookies=1
net.inet.tcp.recvspace=65228
net.inet.tcp.sendspace=65228
net.inet.tcp.delayed_ack=0

D:\flash\netio>nt -t 192.168.10.10

NETIO - Network Throughput Benchmark, Version 1.14
(C) 1997-2001 Kai Uwe Rommel

TCP/IP connection established.
Packet size  1 KByte:   2235 KByte/s
Packet size  2 KByte:   2243 KByte/s
Packet size  4 KByte:   2835 KByte/s
Packet size  8 KByte:   3070 KByte/s
Packet size 16 KByte:   3169 KByte/s
Packet size 32 KByte:   3376 KByte/s

----------------------------------------------------------
fastforwarding & inflight back at 1 & some other modifications:
net.inet.ip.fastforwarding=1
net.inet.tcp.inflight=1
net.inet.tcp.syncookies=1
net.inet.tcp.recvspace=65535
net.inet.tcp.sendspace=65535
net.inet.tcp.delayed_ack=1

D:\flash\netio>nt -t 192.168.10.10

NETIO - Network Throughput Benchmark, Version 1.14
(C) 1997-2001 Kai Uwe Rommel

TCP/IP connection established.
Packet size  1 KByte:   2513 KByte/s
Packet size  2 KByte:   2565 KByte/s
Packet size  4 KByte:   3173 KByte/s
Packet size  8 KByte:   3379 KByte/s
Packet size 16 KByte:   3456 KByte/s
Packet size 32 KByte:   3568 KByte/s

D:\flash\netio>nt -t 192.168.10.10

NETIO - Network Throughput Benchmark, Version 1.14
(C) 1997-2001 Kai Uwe Rommel

TCP/IP connection established.
Packet size  1 KByte:   2511 KByte/s
Packet size  2 KByte:   2518 KByte/s
Packet size  4 KByte:   3157 KByte/s
Packet size  8 KByte:   3066 KByte/s
Packet size 16 KByte:   3407 KByte/s
Packet size 32 KByte:   3556 KByte/s

D:\flash\netio>
-------------------------------------------------------------------------

Holger


On 11/21/05, Dinesh Nair <dinesh at alphaque dot com> wrote:
>
>
> On 11/21/05 14:33 Dinesh Nair said the following:
> > there're some sysctls we can play with. from exec.php, try the following
> > command:
> >
> >  sysctl net.inet.tcp.inflight.enable=0
> >
> > and test to see of throughput increases. if it does, i'll make it the
> > default in the next alpha release.
>
> it's bad form replying to myself, but another sysctl tweak we can try is,
>
> sysctl net.inet.ip.fastforwarding=1
>
> this supposedly increases packet forwarding performance by about 40%-60%.
>
> --
> Regards,                           /\_/\   "All dogs go to heaven."
> dinesh at alphaque dot com                (0 0)    http://www.alphaque.com/
> +==========================----oOO--(_)--OOo----==========================+
> | for a in past present future; do                                        |
> |   for b in clients employers associates relatives neighbours pets; do   |
> |   echo "The opinions here in no way reflect the opinions of my $a $b."  |
> | done; done                                                              |
> +=========================================================================+
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash dev dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash dev dash help at lists dot m0n0 dot ch
>
>