Archives
- April 2025
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- August 2010
- July 2010
DOS Wireless Networking, Continued
As I recently mentioned, wireless networking is extra difficult when the access point reboots itself at the slightest hint of heavier traffic. The faulty TP-Link router was temporarily replaced with a Netgear WG602 of similar vintage. The Netgear has been solid and has no trouble transferring tens of megabytes without a glitch.
I should note that although the TP-Link turned out to be bad, it has nicer diagnostics than the Netgear and it is slightly more tweakable. But a working AP wins out any day.
The next project was getting IBM’s TCP/IP 2.1 working wirelessly. The protocol stack is almost completely dynamically loadable and unloadable, and comes with a decent NFS client. I had previously got IBM TCP/IP going in a DOS VM without much difficulty, but convincing it to work with a Cisco Aironet 350 turned out to be surprisingly tricky.
Wireless IBM TCP/IP
The IBM TCP/IP stack was designed to coexist with other products and can use either NDIS or ODI drivers. On first try, I could not get either working at all. The NDIS driver refused to bind, and the Cisco ODI driver failed to be recognized by the TCPODI component of IBM TCP/IP.
The failure was rather odd. Although everything seemed to be configured properly, TCPODI kept saying “ERROR: Unknown adaptor transmission media.” That was not particularly enlightening, since the Aironet CSCODI driver should look like regular Ethernet to software.
Using Novell documentation, I went so far as to write a small utility which finds the LSL, queries all MLIDs, and dumps information about all the logical boards it finds. I still could not spot anything suspicious.
The only oddity was that CSCODI reported the line speed as 1 Mbps, which is actually unexpected because 802.11b should really be faster than that (11 Mbps theoretical maximum); even Aironet’s older ARLAN devices were faster than 1 Mbps, although the 2.4 GHz models did use 1 Mbps as a fallback transmission rate. On a hunch, I patched the MLID configuration table within CSCODI.COM driver to report 10 Mbps line speed (one byte changed from 1 to 10). Lo and behold, suddenly TCPODI decided that everything checked out and the TCP/IP stack loaded!
But it still did not work. More specifically, although traffic seemed to be going out, and packets were coming in, ARP was not working. Without that, nothing really works. And I wasn’t desperate enough to manually manage the ARP tables.
When running ‘TCPODI -i’ I noticed that ARP statistics showed zero packets processed and zero packets dropped, but a number of packets filtered. I failed to find out from IBM’s documentation what “filtered” really means. However, later I noticed that TCPODI also has an -a switch whose function is to “disable ARP filtering”.
So I tried starting TCPODI with the -a switch and… it worked! I could ping other machines, I could run FTP, and most importantly, I could mount NFS exports. A victory of mind over software, I suppose.
Return to ORiNOCO
With a reliable router in place, it was time to go back to the ORiNOCO wireless card. First I wanted to try IBM TCP/IP again since there’s an ODI driver for the ORiNOCO, and there would be no need for shims introducing additional points of failure.
TCPODI again refused to load, but this time I knew what to look for—the WVLAN43.COM driver reports the line speed as 11 Mbps (very sensibly) and that trips up TCPODI just like the 1 Mbps reported speed did with the Cisco Aironet 350. Same trick, patch one byte from 11 to 10, problem solved.
And again that wasn’t enough, because the TCP/IP stack started but there was no traffic, yet the green LED indicated that the station was associated with the AP. Then I remembered that I’d seen a similar problem before… the ODI NET.CFG syntax is tricky, and while strings do not have to be quoted, they will be uppercased if they’re not enclosed in quotes. And that’s a problem for WEP keys in ASCII format (and for SSIDs).
Added quotes to the keys, et voilà—ORiNOCO TCP/IP worked! FTP, NFS, the works.
Then it was time to revisit the Microsoft network client which uses ODI via the ODINSUP shim, and which I was previously unable to get working. As I suspected, the problem turned out to be the same as with TCP/IP—WEP keys in ASCII format needed to be properly quoted in NET.CFG. When the ODI driver was configured properly, the MS Networks Client 3.0 worked without a hitch.
Results
In the end I was able to get both the Cisco Aironet 350 and the Agere ORiNOCO PC Cards working to my satisfaction.
To get some sense of how slow 802.11b WiFi actually is, I copied a random roughly 42MB file over the wireless network in both directions between the ThinkPad 760XL and my NAS. The copying was done using the NDOS (4DOS) COPY command, with SMARTDRV loaded and write caching enabled. Here are the numbers:
A couple of things jump out. When copying files from the laptop to the NAS, the Microsoft network client is really slow. The IBM NFS client is faster than the MS Network Client; in the (arguably less interesting) laptop-to-NFS case massively so. The Microsoft network client has to go through the ODINSUP shim in the ORiNOCO case, but looking at the Cisco Aironet results, the shim must have negligible impact on performance. The Cisco Aironet 350 was faster, but not hugely so.
Real world file copy speeds were about 400 KB/s, which doesn’t sound like much, but filling up a hard disk with a size on the order of 1 gigabyte does not take terribly long at that rate. It also bears saying that although the 802.11b theoretical maximum rate is 11 Mbps, practical user data transfer rates are nowhere near that and values closer to 5 Mbps are to be expected under good conditions. The 400+ KB/s rates are actually not at all bad considering the host hardware (166 MHz Pentium MMX, a slow laptop hard disk). 440 KB/s is more or less exactly 3.6 Mbps, but that does not include any protocol overhead. Without testing some good bus-mastering Fast Ethernet CardBus card in the same laptop, I have to assume that even DOS can get reasonably close to the practical maximum 802.11b is capable of.
For my purposes, i.e. copying a few megabytes every now and then, any of the solutions (ORiNOCO or Aironet, MS Network Client or NFS) is perfectly acceptable. Overall, both the Cisco Aironet 350 and the Lucent/Agere ORiNOCO cards did the job. In both cases, setting them up was somewhat painful, and significantly more difficult than setting up wired Ethernet, but they did work in the end.
I slightly prefer the Aironet adapter, primarily because it does not require an extra driver in CONFIG.SYS, and it does not hurt that at least in my case it’s a little bit faster as well. But if I started out with a working ORiNOCO setup, I probably wouldn’t look for an alternative.
3 Responses to DOS Wireless Networking, Continued
It’s funny, because when idly scrolling through that Novell documentation, the first thing that caught my eye (as the first bright red exclamation mark in an otherwise all black document):
“We strongly recommend that you develop your protocol stack so that it is LAN medium and frame type independent.”
Yep. Clearly IBM didn’t read that 🙂 And I have real trouble imagining why they care that the underlying driver reports 10 Mbps speed.
Re performance:
It seems reasonable that the network hardware is the only real limit here.
IIRC Even a tired 4.77MHz XT using a WD/SMC8003 8-bit ISA network card and the microsoft client (using NetBEUI) can do about 37kbyte/sec
Btw re security: Seems like a good idea to have a separate file server instance running just for this client.
This site uses Akismet to reduce spam. Learn how your comment data is processed.