HNHacker News
TopNewBestAskShowJobs

mbbrutman

345 karma · joined November 10, 2021

http://www.brutman.com/
submissionscomments
mbbrutman··on mTCP: TCP/IP applications for DOS PCs
I discovered NCSA Telnet late, after it was obsolete, but it inspired me greatly. I still have not looked at the source code, but it is tucked away somewhere.
mbbrutman··on mTCP: TCP/IP applications for DOS PCs
Each program is linked against a TCP/IP library. #defines control what parts each program gets, depending on what it needs.

The DOS TSR approach would make TCP/IP a common service for DOS programs. I went with the library approach for speed and customization purposes.

mbbrutman··on mTCP: TCP/IP applications for DOS PCs
I use the 3C503 in a lot of machines. It is not a great performer, but it is well supported and solid. And it is an 8 bit card, which is handy for the older PC and XT class machines.

Other notable cards for older machines include the NE1000 (8 bit), NE2000, Intel 8/16, Western Digital or SMC 8000 series. Many PCI cards work well; just look for a packet driver. For those of you without real slots the Xircom PE3-10BT device is great, but they are getting more expensive in the wild.

SLIP and PPP work. PLIP works too, but I have not tested it myself.

And there are even packet drivers that allow for Token Ring and Arcnet to be used; they emulate Ethernet.

mbbrutman··on mTCP: TCP/IP applications for DOS PCs
Probably not .. that is a diminishing returns kind of thing. If I'm the only user and there are not a lot of programs that need it, it's not worth the effort.

What I have now can best be described as cooperative multitasking with custom contexts. Example: the FTP server and HTTP server keep track of each user connection, provide them a buffer, and know the state of the session and how far into the file they are that is being transferred. (True multithreading would generalize that kind of context as a set of registers and a stack for each thread.)

mbbrutman··on mTCP: TCP/IP applications for DOS PCs
Ouch - I thought I had it and I missed it. I'll email you a patched version.
mbbrutman··on mTCP: TCP/IP applications for DOS PCs
For those of you missing context, mTCP is a TCP/IP library and some of the more common applications. It runs on anything from an old 41 year old IBM PC up to emulated virtual machines.

Applications include fresh implementations of a DHCP client, FTP client and server, HTTP server, IRC client, Telnet Client, SNTP client, Ping, and some other goodies. (These are not stale ports of old code.) Everything runs in 16 bit DOS and the library is open source.

The target is retro-computing hobbyists and people stuck with embedded solutions that use DOS. A good FTP client can be a godsend in that situation.

mbbrutman··on mTCP: TCP/IP applications for DOS PCs
My jokes don't always land well. I'll consider this a success.

I prefer to look at DOS as "stable."

mbbrutman··on Show HN: 500+ Hours so far on the 4.77Mhz DOS web server
Thanks. It's still going, now at 530 hours. The fan noise is getting irritating. :)
mbbrutman··on 4.77Mhz Web server with reasonable performance (1984 PCjr)
There was a news item recently featuring somebody running an old PC clone as a web server. I wanted to post a follow-up showing a low-end machine with a more full-featured web site.

The machine is an IBM PCjr which was introduced in 1983. The machine is an Intel 8088 running at 4.77Mhz. A jrIDE sidecar has been added to add an IDE interface and fill the system memory out. Storage is a 4GB CF card on the IDE interface. A Xircom PE3-10BT Ethernet adapter is attached to the parallel port, which has been modified to be bi-directional. The floppy drive has been upgraded to a 720KB double density drive, but that was not really necessary as the machine boots and runs from the CF card.

Software is IBM PC DOS 5.02 and mTCP. I run the HTTP server as a long term test of the underlying TCP/IP code. (Another mTCP release is due soon.) Up to eight concurrent connections are supported, but each one slows the others down as they are sharing CPU time and network bandwidth.

My router is setup to use dynamic DNS and the machine is hidden behind the router. So it is not exposed to all of the badness of the open Internet, but it still is dealing with bots probing for PHP, Wordpress and other vulnerabilities on port 80.

The machine is capable of much better performance (2x) when a proper Ethernet card is used; the Xircom is bottlenecked by the parallel port. I only have one PCjr bus-to-ISA bus adapter and I did not want to tie it up while I am working on designing a new one.

For monitoring I have it broadcasting a UDP packet for each log entry that it makes. So there is a local disk log, and I can snoop on it from another machine in the house. This lets me run it without a monitor while still being able to check on it.

The machine has been up and running over 120 hours now. If you follow the status page from the main page you can see the real-time stats, including dropped packets, objects served, etc. If you look carefully you will see that my own internal network is quite noisy and that is giving it more to contend with.

I intend to run the machine this way indefinitely, with the occasional maintenance window. I don't expect the machine to weather a DOS attack. If it stays running and does not crash that is a victory.

More details on the Reddit post: https://www.reddit.com/r/vintagecomputing/comments/uptyr1/be...

Bonus: Make the machine beep! Every time it serves an object it beeps.

mbbrutman··on A website hosted on a 37 year old IBM PCjr
Direct link to the status page: http://brutmanlabs.org/status.

The content is reasonable for retro-computing. The numbers on the status page going up are priceless. :)

mbbrutman··on Show HN: My website, hosted on a 386 25 MHz, 4 MiB of RAM, 38400 baud internet
For the record, the machine is running the mTCP web server: http://www.brutman.com/mTCP/mTCP_HTTPServ.html

I wrote it back in 2014 and I've hosted brutman.com on it at times. My usual machine to run it on for torture testing is a PCjr with a hard drive and Ethernet. This 386 would be so much happier with an Ethernet card; the serial port connection is really hurting the performance.

A new version of mTCP is in the works; look for it in the next two months.

mbbrutman··on Building a Stratum 1 Time Server for 16 bit DOS
I was a little surprised by that too. It is definitely calling itself stratum 1, which is strictly defined to be the computer with the high precision device directly attached to it.

Keep in mind though that strata and accuracy are two different things. Presumably the further away from the high precision time device you are, the less precision you will get. Even though my PCjr is technically a stratum 1 server, the accuracy is miserable compared to real stratum 1 servers that are serving time that is in the microseconds range of accuracy.

mbbrutman··on Building a Stratum 1 Time Server for 16 bit DOS
This particular machine was the victim of some cost cutting, so there is no RI line. Data Carrier Detect is available and it is usually used for this. (I got my wiring inspiration from other projects.)
← PreviousPage 2 of 2