Slashdot Mirror


World's Smallest Web Server (We Have a Winner)

sysadmn writes "This web server is the latest contender for "World's Smallest". Two chips and a diode - so they had to leave out Linux :-). It's based on the world's smallest implementation of a TCP/IP stack -- which is implmented on a small 8-pin low-power microcontroller using 512 words of program ROM. Where would you put a $1 web server? " If its real, its amazing.

3 of 189 comments (clear)

  1. Here's how it works by edwdig · · Score: 4

    Ok, this was on Slashdot about a month or two ago. Back then, I took some guess as to how it worked and emailed the author. He confirmed my suspictions. Here's the details.

    First things first: it does NOT use a FULL tcp or http implementation. The system has its network configuration hard coded into it. And it is designed to only work in a very specific environment - when wired directly to the serial port of a router running a SLIP connection.

    This means that data to or from the server only has one possible path. That simplifies the protocol tremendously. This setup also guarentees their are no transmission errors. (direct wiring from the serial port on the pc to the pins on the microprocessor. it either works or it doesn't, no errors.)

    Next, as for HTTP. It's not parsing your request at all. Send garbage and it'll work. It just looks at the port the connection is coming in on, then looks up the port number in a table, which tells it what file to send.

    Under those circumstances, it's not that hard to make a server that small if you know how to code in asm, especially not on a PIC chip.

    Ed

  2. You know what would rock? by DonkPunch · · Score: 3

    Beowulf cluster! Just wire up a bunch of them! A complete cluster that fits in your pocket!

    Although the phrase "pocket cluster" makes me a little uneasy....

    (No, I'm not serious.)

    --

    Save the whales. Feed the hungry. Free the mallocs.
  3. What, again? by anticypher · · Score: 3

    This webserver was on /. about 2 months ago. It was generally agreed the "compliant TCP/IP stack in 256x12 bit words" was bogus.

    Although the web page has been updated to include more info, I'm still a bit skeptical. Now it has a ROM and the iPIC, so they might be able to allow single connections and serve up a simple page.

    Lets see the source code (granted, its going to be hand crafted binary)

    the AC

    --
    Hemos is like...sci-fi fans;he thinks technology is cool, but he hasn't bothered to understand the science it's based on