OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Networking => Topic started by: Dariusz Piatkowski on November 12, 2018, 05:12:52 am

Title: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 12, 2018, 05:12:52 am
Yeah...as simple as it sounds, what are the fastest TCP/IP rates you are seeing in Firefox (or Seamonkey I suppose) in OS/2? (u/l and d/l)

The reason I ask: I recently upgraded to a Gigabit Fibre to Home setup. Previously was using a Fibre to Box and Coax to home and that was getting me a 125 Mbps, which was steadily supplied and no complaints on my OS/2 machine (other then the initial trouble I had, but that was a cable issue).

Well, now with the full Gigabit (confirmed with a modem speed test itself) I am just barely hitting 140Mbps in OS/2 (testing on https://www.speedtest.net/) while the Win7 box is hitting 340 Mbps (yeah, it sucks, my crappy Netgear X6 R8000 router is a POS, advertised as Gigabit, but hell no...nowhere near). This is on a hard-wire side, not even talking WiFi.

If you are hitting higher speeds, what are your setups? I'm using the MMRE 1.1.3 drivers here which drive the motherboard NIC (RealTek 8139C+/8169/8169S/8110S/8168/8111/8101E family).

Thanks!
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Matt Walsh on November 12, 2018, 04:26:46 pm
I can get 112mb/sec on Windows and 42 mb/sec on Arca with the latest drivers.  Mostly seem to slow down due to CPU overload with all the ads on lots of sites.   I have a dual core athalon A6-7470 and better CPU's on Windows due to it's need for faster hardware to perform.  I do have latest Arca MultiMac drivers, but haven't tried any special editing of files.  Hope this helps.
Matt
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Rolf on November 12, 2018, 05:55:59 pm
I only have a subscription for max 50 Mbps. That's enough for me.
Under Windows, eCS / ArcaOS and Ubuntu, I'm exactly as fast on all systems. I come to 52 Mbps.
On Windows, I have an Intel I217-LM chip on board.
Under eCS 2.2 and ArcaOS I have a RTL 8169S-32 card.
Under Ubuntu I have a RTL 8111.
Under eCS I have the driver "Realtek 8111/8168/8169 (MultiMac32-R8169)" (R8169.OS2 Sep 2015). Under ArcaOS I have the driver Realtek 8139C + / 8169 / 8169S ... (MultiMac32-MMRE)" (MMRE.OS2 Oct 2017).

Rolf
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Daniel on November 12, 2018, 07:54:00 pm
Mr. Walsh. You may want to try an add blocking Hosts file. The site  http://winhelp2002.mvps.org/hosts.htm (http://winhelp2002.mvps.org/hosts.htm) is Windows oriented but the plain text version at http://winhelp2002.mvps.org/hosts.txt (http://winhelp2002.mvps.org/hosts.txt) may be used directly.

Your hosts file should be found at x:\mptn\etc\hosts, where "x" is your boot drive. If you have not modified your hosts file you can just back it up to, say, "hosts.bak" and replace it with the downloaded file. It is a commented text file. Not only does it block lots of ads (adverts) it also blocks many malware sites. The file at the site is updated regularly.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Matt Walsh on November 12, 2018, 10:51:35 pm
Thanks Daniel.  Didn't get faster on speedtest, but nice to have less ads.
MJW
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: David Graser on November 13, 2018, 12:58:19 am
I can see no difference when running and testing with either Windows or AcraOS.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Daniel on November 13, 2018, 01:19:57 am
Make sure the hosts.txt file is renamed "hosts" with no extension. I should have made that clear. Also, if you have modified your hosts file add the changes to the beginning just before the line "# [Start of entries generated by MVPS HOSTS]".  Most people don't modify their hosts file, but it can be handy to give names to computers and printers on your local network, or on the Internet for that matter.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: roberto on November 13, 2018, 04:23:30 pm
Well, I just did a test out of curiosity, and it gave me a surprising result. ARCAOS503 of 373.2mbps. And with the host file proposed by Daniel modifying the line # :: 1 localhost # [IPv6] with #. It has given me 410mbps.
I'm not sure but maybe it could be the config.sys, putting the IFS before the device = network driver. In my case DEVICE = H: \ IBMCOM \ MACS \ E1000B.OS2
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Daniel on November 14, 2018, 12:48:45 am
Adding the ad and malware blocking hosts file shouldn't increase your download speed (as far as I know), but it decreases the size of downloads. This speeds up page loading. Some sites show no change. With others the change is just short of miraculous. YMMV
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Remy on November 14, 2018, 06:56:57 pm
Do you have Injoy firewall ?
If yes, get the latest driver from them (they found and rewrote the driver after I opened a ticket to them), it resolved my speed problem under ArcaOS.
Which firefow build do you use ?
Try to use a direct speedtest without firefox (I think you already did it).
https://www.os2world.com/forum/index.php/topic,1486.msg17980.html#msg17980

You can give a try to the Realtek 8139C + / 8169 / 8169S driver too which If I did well understand uses a more "optimized process" than MMRE.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 15, 2018, 05:36:48 am
Guys,

Regarding the original content...I am not running anything else on my tcpip config, such as Injoy, etc.

To establish a better comparison point I will try to run with the native RealTek drivers, got a few versions kicking around here.

Another point noting, came to find out that my fancy 'Gigabit Fibre' connection only happens to peak at some 450mbps on the 1Gig LAN port side of the ISP's modem (Bell Home Hub 3000). Clearly this is not right, I am not getting the usable 1Gig. Having said that, the technician who came in to do the troubleshooting did acknowledge that they are having problems with Huawei hardware, specifically the ONT connection and the main-line splitter. Apparently the Alcatel hardware on the other hand does not have these problems and regularly hits the max speeds.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Ian Manners on November 15, 2018, 06:35:12 am
What is in your x:\mptn\etc\inetcfg.ini
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Remy on November 15, 2018, 12:44:05 pm
MMRE uses ""Receive Lookahead" transfer mode to the protocol while R8169.OS2 uses "ReceiveChain" transfer mode
May be this could impact max speed...
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 16, 2018, 05:05:27 am
What is in your x:\mptn\etc\inetcfg.ini

Here it is:

Code: [Select]
#Inetcfg: CURRENT DEFAULT MINIMUM MAXIMUM

keepalive 60 7800 0 7800 KeepAlive (sec)
tcpswinsize 246723 32768 1024 246723 TCP SendWindow Size
tcprwinsize 246723 32768 1024 246723 TCP RecvWindow Size
udpswinsize 246723 9216 1024 246723 UDP SendWindow Size
udprwinsize 246723 41600 1024 246723 UDP RecvWindow Size
lingertime 120 120 0 65535 Linger Time (sec)
probecnt 8 8 1 8 Number Of KeepAlive Probes
ipforward 0 0 0 1 IP Forwarding flag ON/OFF
mtudiscover 1 1 0 1 TCP Path MTU Discovery ON/OFF
arpkillc 1200 1200 180 15300 ARP Complete TimeOut (sec)
arpkilli 180 180 60 1200 ARP InComplete TimeOut (sec)
lipcstswinsize 20480 10240 1024 246723 LIPC Stream SendWindow Size
lipcstrwinsize 20480 10240 1024 246723 LIPC Stream RecvWindow Size
lipcdgswinsize 8192 2048 1024 246723 LIPC Dgram SendWindow Size
lipcdgrwinsize 8192 4096 1024 246723 LIPC Dgram RecvWindow Size
synattack 0 0 0 1 SYN Attack Flag ON/OFF
syncookie 0 0 0 1 SYN Cookie Flag ON/OFF
firewall 0 0 0 1 FIREWALL ON/OFF
multidefrt 1 1 0 1 Multiple Default Routes ON/OFF
winscale 1 1 0 1 TCP Window Scale ON/OFF
timestmp 0 0 0 1 TCP TimeStamps ON/OFF
realslow 20 20 1 100 TCP TW Q Slow Timeout ticks
perfhttp 1 1 0 1 Fast Path HTTP ON/OFF
tcpttl 64 64 1 255 TCP  TTL (hops)
udpttl 64 64 1 255 UDP  TTL (hops)
icmpttl 64 64 1 255 ICMP TTL (hops)
fragttl 60 60 1 255 Fragment TTL (sec)
reusetw 1 1 0 1 Reuse Time Wait ON/OFF
msl 30 30 1 16384 TCP MaxSegLifeTime (sec)
cc 0 0 0 1 TTCP function ON/OFF
sack 1 0 0 1 Selective ACK ON/OFF

The send and recv windows are at max size, the only thing I did not adjust is the LIPC stuff...not sure what it is and initial search strangely did not return matching hits. I haven't gotten around to reviewing it again since the last time I did some of that tunning (when I originally moved from DSL to the Fibre125 mbps ISP.

I will tell you this, I switched to the "Realtek Gigabit 8111/8168/8169 driver (MultiMac32-R8169) for OS/2" drivers for my NIC. Having tested multiple times I am no longer seeing a TRAP in AFINET that I was seeing with the MMRE drivers. The TRAP would only happen during the upload part of the test, at speeds I was not seeing in the past (about 150 mbps). Will monitor this further because if the driver itself is the cause I will put in a ticket with AN and hopefully this gets some attention.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Lars on November 16, 2018, 11:53:48 am
At eCS times, "sack" was always set to zero. I am fairly sure it should still be this way as the feature was broken and nobody has touched AFINETK.SYS since.

And that said, that's the likely reason for the TRAP in AFINETK.SYS that you are experiencing
(make sure you use SOCKETSK.SYS and AFINETK.SYS and not SOCKETS.SYS and AFINET.SYS !)
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 17, 2018, 05:02:08 pm
Hi Lars,

At eCS times, "sack" was always set to zero. I am fairly sure it should still be this way as the feature was broken and nobody has touched AFINETK.SYS since.

And that said, that's the likely reason for the TRAP in AFINETK.SYS that you are experiencing
(make sure you use SOCKETSK.SYS and AFINETK.SYS and not SOCKETS.SYS and AFINET.SYS !)

Alright, great point. I went back to re-test this. Indeed, shutting OFF SACK prevents the TRAP from occuring with the MMRE drivers. I have not gone back to the MultiMac32-R8169 drivers yet to re-test, but will do so next.

I am pretty sure I have tried this once before, probably a good year ago when I had originaly moved from a DSL to my Fibre 125 mbps connection. At that time I found out that various sites would not connect reliably with the SACK=OFF setting. Certainly something like https://www.speedtest.net/ completely fails the test after about a 5 sec burst of traffic. Other testing sites do seem to work though.

Regardless, the normal Internet usage for me is not about using the speed testing sites, so if SACK=OFF works elsewhere it would certainly make sense to keep it that way.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Lars on November 18, 2018, 01:32:23 am
No.
I have "Sack" disabled and www.speedtest.net works perfect  for me. You Must have a different Problem in your System.
The window Sizes should be a multiple of the MTU (or MSS,I cannot remember) and Not Just the Maximum.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Ian Manners on November 18, 2018, 07:57:57 am
Quote
The window Sizes should be a multiple of the MTU (or MSS,I cannot remember) and Not Just the Maximum.

I use multiples of MTU, still not sure if that's right as some people say MSS, others say MTU, and the odd person says its irrelevant..
I do know if you simply use maximum values your connection can become jerky with unexpected timeouts and dropped connections.

I use manual MTU values, one day I might experiment with the window sizes to see what happens with different values and auto MTU/MSS values but it's not a high priority thing for me as what I currently have works, though an MTU of 1500 should work fine for me I've discovered the best for me is around 1000 (which ever number is closer in multiples of eight ). <== changed No. 8 to written eight
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 18, 2018, 06:43:43 pm
No.
I have "Sack" disabled and www.speedtest.net works perfect  for me. You Must have a different Problem in your System.
The window Sizes should be a multiple of the MTU (or MSS,I cannot remember) and Not Just the Maximum.

Hmm...OK, that's promising...so what is the config you are running (inetcfg.ini)?

I am more than happy to replicate it here and report back.

BTW: Regarding the previous MMRE SACK on/off discussion...put on a couple more days on the MMRE.OS2 driver with SACK=OFF, however this still resulted in a TRAP during the upload speed test, so I'm now back to R8169.OS2, so far the same tests pass...I will put on a few more days of use and report back.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dave Yeo on November 18, 2018, 07:03:03 pm
I played around with speednet.net on a new install. I couldn't get it to run at all with my usual Mozilla setup, due to noscript I assume. There are a lot of scripts and some of them trigger a high CPU load. I restarted the browser in safe mode, got to see all the ads and the browser would hang after the download test with one core pegged and eventually the hung script popup would let me kill the script. Updated my hosts file which got rid of the ads but the upload test still hung. I tested both SM and FF.
Your traps might be caused by whatever was hanging the browsers here, which appears to be too many scripts with at least one our browser doesn't like.
What does work fine is the command line Python script,
Code: [Select]
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
python speedtest-cli
You may want to take the browser out of the equation or at least do tests with the Python script and compare.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 18, 2018, 07:49:25 pm
Hey Dave!

...What does work fine is the command line Python script,
Code: [Select]
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
python speedtest-cli
You may want to take the browser out of the equation or at least do tests with the Python script and compare.

Thanks for the reminder...I did actually use this in the past, as per your earlier suggestion from a year ago, and now i went back to re-test using that process as well. I picked the same server ID to keep the results somewhat consistent with what i'm seeing across different machines on my LAN, here is what I get:

Code: [Select]
[G:\util\misc]python speedtest-cli --server 17394
Retrieving speedtest.net configuration...
Testing from Bell Canada (65.92.109.81)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by Bell Canada (Toronto, ON) [331.11 km]: 17.667 ms
Testing download speed..........................................................
Download: 301.52 Mbit/s
Testing upload speed............................................................
Upload: 117.86 Mbit/s

The d/l values match up pretty well to what I'm seeing on other devices, the u/l however is significantly smaller. I will look into the window sizing again and see what Lars' comment might uncover.

Thanks again, this is definitely the better (more stable for sure) way of testing.

EDIT
====
Found the following testing site (http://www.dospeedtest.com/) that matches the Python script CLI test results pretty closely, so at least on my machine with FF 45.9 executing the test it appears to cause no adverse effects.

Also, I put together a quick speedtest.cmd file (see attached) that calls the Python script Dave provided and tosses-up a few entries you can chose from (runs a default test against a BELL server, which is one of the big national tel providers in Canada). You can pick your own servers of course, see the results of:

Code: [Select]
python speedtest-cli --list

...but that will be a long list, so you may want to pipe this into a file or a page-at-a-time view:

Code: [Select]
python speedtest-cli --list |less
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 19, 2018, 02:28:16 am
Hi Ian,

I use multiples of MTU, still not sure if that's right as some people say MSS, others say MTU, and the odd person says its irrelevant..

Yeah, as I started to look deeper into this I had the same initial reaction. But...there is good news, the inetcfg values we are looking at, specifically the 'tcprwinsize' values have their counterpart in the WIN world, that parameter is RWIN. There are a pile of articles out there that talk about the MTU <=> RWIN relationship.

Here is a link to a pretty good write-up, including a test that will check your setups and provide some walk-through analysis and recommendations, https://www.speedguide.net/analyzer.php

For now, I have throttled back my settings to as follows (just showing the relevant window size settings):

Code: [Select]
#Inetcfg: CURRENT DEFAULT MINIMUM MAXIMUM

keepalive 60 7800 0 7800 KeepAlive (sec)
tcpswinsize 127776 32768 1024 246723 TCP SendWindow Size
tcprwinsize 127776 32768 1024 246723 TCP RecvWindow Size
udpswinsize 127776 9216 1024 246723 UDP SendWindow Size
udprwinsize 127776 41600 1024 246723 UDP RecvWindow Size
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: Dariusz Piatkowski on November 22, 2018, 04:46:47 am
Brief update...I went back to the non-MMRE drivers, the reason being: continued TRAPs with the MMRE, even with SACK=OFF.

As Lars pointed out, could be my overall settings (althought I backed down on the window sizing, using about 1/2 of the buffer now as compared to where I started), or it could be that the generic Unix to OS/2 layer that allows the bigger drivers pool to be utilized has some inherent problems that I'm seeing symptoms of.

Anyways, just FYI re: my experience, if anyone else has a well working high-speed setup please post your config.
Title: Re: Fastest tcp/ip throughput in OS/2?
Post by: guzzi on November 23, 2018, 01:56:16 am
My connection is not nearly as fast, but I get the max speed it allows:
Testing download speed..
......................
Download: 60.96 Mbit/s
Testing upload speed....
........................
Upload: 19.17 Mbit/s