Slashdot Mirror


World's Smallest IPv6 Stack By Cisco, Atmel, SICS

B Rog writes "Cisco, Atmel, and the Swedish Institute of Computer Science have released uIPv6, the world's smallest IPv6 compliant IPv6 stack, as open source for the Contiki embedded operating system. The intent is to bring IP addresses to the masses by giving devices such as thermometers or lightbulbs an IPv6 stack. With a code size of 11 kilobytes and a dynamic memory usage of less than 2 kilobytes (yes, kilobytes!), it certainly fits the bill of the ultra-low-power microcontrollers typically used in such devices. When every lightbulb has an IP address, the vast address range of IPv6 sounds like a pretty good idea."

31 of 287 comments (clear)

  1. Sweet by mypalmike · · Score: 5, Funny

    With a code size of 11 kilobytes and a dynamic memory usage of less than 2 kilobytes (yes, kilobytes!), it certainly fits the bill of the ultra-low-power microcontrollers typically used in such devices.

    With my IPv6-enabled Commodore 64, I'm ready to surf both IPv6 websites.

    --
    There are 0x40000000 types of people: those who understand 32-bit IEEE 754 floating point, and those who don't.
    1. Re:Sweet by fm6 · · Score: 4, Insightful

      And in fact, the Wikipedia page for Contiki links to a web server running on a C64! Shall we see if we can Slashdot it?

      Whenever I trash MS-DOS 1.0 on Slashdot, I get a contradictions ("arguments" presumes too much actual knowledge) from people who insist that it's the best OS that could have been implemented on the hardware available in 1981. The counterexamples I usually answer are things like CP/M (the leader before commodity PCs took over), QNX (now sold as an embedded OS, but originally meant as a desktop system), and CTOS (utterly dead now, but my favorite at one time) that all had more power and lower hardware requirements. These examples go right by people because they've never heard of these OSs. (Except maybe CP/M, and then they assume that it's the same level as MS-DOS 1.0, because 1.0 was based on QDOS, and QDOS pretended to be a CP/M clone.) I'm very pleased to learn about Contiki, even though I'll probably never work with it, since it's a prime example that you can even do high-powered OSs with GUIs on 80s-era hardware.

    2. Re:Sweet by Talderas · · Score: 3, Funny

      This is how it all begins. Soon each thread in your clothing will have an IPv6 stack powered by the static built up by movement. Then when it detects a thread break, it sends a notification to your iDoEverything to let you know your shirt is damaged.

      Yes, this is how we'll end up running out of IPv6 addresses, thermometers and light bulbs.

      --
      "Lack of speed can be overcome. In the worst case by patience." --Znork
    3. Re:Sweet by NoOneInParticular · · Score: 5, Funny
      Well, even then we might be hard pressed to exhaust the space. Remember: 2^128 ~ 10^38. With 10^49 atoms on earth, if we convert the entire earth mass into ipv6 stacks, we would need stacks using less than 10^11 atoms to actually exhaust the address space. 10^11 atoms is pretty small, e.g., taking silocon at 28 grams/mole, this will roughly translate to 10^-11 grams of chip per ipv6 stack. That's a very small chip, and no earth left to move around on.

      Though I really like your take on multi-threading.

  2. Lightbulb on the internet? by snowraver1 · · Score: 4, Funny

    Why would anyone want to have a light bulb with a data connection? Oh the switch to the bathroom? Go to the computer, click file --> power --> lights -->bathroom. Select lights 1, 2, & 3. Click enable, then confirm. Got that?

    --
    Copyright 2010. All rights reserved. This comment may not be copied in any way including, but not limited to caching.
    1. Re:Lightbulb on the internet? by Anonymous Coward · · Score: 3, Funny

      Stop flashing my bathroom lights!

    2. Re:Lightbulb on the internet? by Shados · · Score: 4, Funny

      IP Addresses on everything is useful so you can ping the chocolate cake you made to see if your significant other stole it.

    3. Re:Lightbulb on the internet? by stoanhart · · Score: 4, Interesting

      So your standard $50 DVD player can dim the lights in your living room when a movie starts?

      That's just one example of hundreds of little features that become trivial when everything in your house (not just bulbs) has a data connection.

    4. Re:Lightbulb on the internet? by OrangeTide · · Score: 3, Funny

      My significant other has her own IP address so I can ping her to check her latency.

      --
      “Common sense is not so common.” — Voltaire
    5. Re:Lightbulb on the internet? by pwnies · · Score: 3, Interesting

      It's not just for internet connectivity purposes. The range of addresses used by IPv6 is broad enough that everyday objects can be identified with an IPv6 address for indexing and tracking purposes.

      Let's say Wallmart is selling a lawn furniture set, and each one has a unique IPv6 address. Suddenly, keeping track of the stock is immensely easier. Need to know if the furniture set that the person returned was really the one that he bought from Wallmart? No worries, just scan the IPv6 chip in it. An employee has a garden gnome that looks suspiciously like the one that disappeared from the store a few weeks ago? Scan it and find out.

      It's uses are significant. Don't dismiss the possibilities of having mundane objects having an address.

    6. Re:Lightbulb on the internet? by snowraver1 · · Score: 4, Funny

      Yes, a lightbulb conroller. Lets keep the lingo with the networking world and call it a "switch". We could give it a nice simple human interface and place it on the wall, about chest height. Perhaps one per room. Then all users would have to do is go to the light panel and "switch" on the light. I like where this is going.

      --
      Copyright 2010. All rights reserved. This comment may not be copied in any way including, but not limited to caching.
    7. Re:Lightbulb on the internet? by Anonymous Coward · · Score: 3, Funny

      Get off your candles or you'll wave your lawn?

    8. Re:Lightbulb on the internet? by Splab · · Score: 5, Funny

      Gonna be real fun when the local script kiddie turns your house into a disco.

    9. Re:Lightbulb on the internet? by Zerth · · Score: 5, Funny

      With IPv6, instead of using multiple ports at one address, she can use the same port at multiple addresses! It all depends on whether she likes to multiplex or be serially promiscuous.

    10. Re:Lightbulb on the internet? by Zerth · · Score: 4, Funny

      About 1,000 ms from connect to 220

      Although she gave me a 452 when I pulled my DATA from its envelope, she was 354 soon enough and after about 570,000 ms she 250'd,

      That might be why she's been giving you the 521 to you lately.

    11. Re:Lightbulb on the internet? by tixxit · · Score: 3, Interesting

      I can understand the argument for lightbulbs, but light sockets make sense (single expense, rather than perpetual). It could tell you whether the bulb is on, could be turned on/off remotely or on a timer controlled by your comp, whether the bulb needs to be replaced, estimated life, energy used.

      Just imagine a house that gives you recommendations for power savings: "If you turned your computer off at night, you could save $50/year!" OR, with the click of a button you could put your house in "power savings mode" while you head out to work, or go on vacation.

      Sure we could do these things using other tech, but why? IPv6 is a standard, ubiquitous (well, at some point it will be), and can be implemented in only 11kb =]

    12. Re:Lightbulb on the internet? by ChrisA90278 · · Score: 3, Informative

      Why would anyone want to have a light bulb with a data connection?

      Car manufactures want this. Have you ever seen the wire bundles in cars? If the lights had network address all you'd need one just ONE wire ad the switch on the dash would broadcast the "turn on" command. Every light bulb and every switch could have just one wire.

      In your house it is the same. Light switches would simply issue commands and the light woould wait for a command to turn off/on. Housewiring would be hugely simplifed. and then automation would be easy. Room sensors could detect if people were there and kill the lights. All of this without mods to existing building.

      Think of how much you could save if a 20 story building used network lights? Millions.

    13. Re:Lightbulb on the internet? by Anpheus · · Score: 5, Funny

      "Could you turn up the volume"
      "Sure thing"
      "Ok, now can you turn off the lights please?"
      "Yeah, no problem."
      "Ok, now the volume is low again. Could you do both?"
      "Uh..." *fiddles with remote control* *picks up laptop and opens a terminal and starts coding*
      "I'm... I'm leaving you for someone who can watch a movie without opening up vim. It's not you, it's... I'm just an emacs girl at heart."

    14. Re:Lightbulb on the internet? by Joce640k · · Score: 3, Interesting

      What happens when your "controller" runs out of output connectors?

      Say I want to add another lamp but the controller box has no more ports. Am I supposed to go and replace it? I bet that won't be cheap.

      Now if each bulb has it's own intelligence I don't need to, I just plug it in and it will report to the central PC over the power cable.

      --
      No sig today...
  3. Please specify OS licence by pembo13 · · Score: 4, Insightful

    At least on Slashdot, it would be nice if posters specified the OSI approved license as it tends to be import for different types of software.

    The FAQ says it uses the 3-clause BSD license.

    I personnaly like stuff like this to be BSD, while applications are GPL

    --
    "Thanks for all the money you paid to us. We've used it to buy off ISO among other things" -Microsoft
  4. Lightbulb? by EdIII · · Score: 4, Interesting

    Not everything needs an IP address. That's just silly.

    There is still the rather big issue of security. I don't think it has been addressed to anyone's satisfaction yet. Certainly not mine.

    Right now the worst somebody could do is take out my computer. I could deal with that, given enough time and resources. However, dealing with the loss of my computer requires "light" and "coffee". You take that away from me and I am really screwed. Without my computer I am bereft of all the wonderful porn on the internet. Of course, I have a backup plan that involves a rather large library of tapes and magazines. Once again, I still need light!

    Put IP addresses in light bulbs and other appliances and you risk a natural disaster creating a large population of pissed off men in the dark unable to "relieve their stress".

    How's that for a "Ripple of Evil"?

    1. Re:Lightbulb? by cavtroop · · Score: 4, Interesting

      How about more nefarious things, like home heating/cooling systems. Power outlets that heart monitors are plugged into. Space heaters, electrical closets.

      Kill the power to the fridge. Damn, there goes $400 worth of food. Turn on someones microwave while they are on vacation, and they come back to a $500 electric bill.

      Not to mention the worry about botnets. Right now, they number in the millions. If every appliance can suddenly participate, it'll be billions.

      No thanks, you can keep my appliances/lights/furnaces/toiletpaper off the net. Thanks, k, bye.

    2. Re:Lightbulb? by kamochan · · Score: 3, Funny

      I certainly would hate it if someone DDOS'd my toilet.

  5. The IP stack isn't the limiting factor by John.P.Jones · · Score: 5, Insightful

    Making the IP stack smaller will not allow low power devices to harness the power of the Internet because while it lowers the bar for technically interacting on the Internet we can't do so safely with a device that can't also implement sane security.

    If a light fixture can't execute a secure authentication mechanism to determine whether it really should be turned off/on then it really shouldn't be taking those controls (or reporting its status) to IP queries. These requirements are already beyond the resources needed for less optimized IPv6 implementations this brings us back to Amdahl's law doesn't it... Don't optimize blindly.

    1. Re:The IP stack isn't the limiting factor by c_oflynn · · Score: 3, Interesting

      You CAN fit authentication into these devices. The Contiki example was in a device with 16K of RAM and 128K of ROM.

      So the fact you have a tiny stack leaves enough room to run authentication. Simple authentication, yes, but hopefully enough...

    2. Re:The IP stack isn't the limiting factor by diablovision · · Score: 3, Insightful

      That's actually a really huge microcontroller, on the order of $10 a unit. The cheaper ones, under $1, often have 256 bytes or fewer of RAM. Some don't even have RAM, just a set of general purpose registers and some IO addresses. And RAM is relatively power hungry, which acts as a continual anchor on microcontroller designs. Power is far more important than memory size.

      Personally, I think 2KB of RAM is ludicrous for a software stack. But the again, my favorite model has just 4KB.

      802.15.4 can be implemented in 100 bytes of RAM. Who in hell needs IPv6 on a MCU? And why in hell would manufacturers add $10 to their unit costs (of say, a $.50 light socket) to enable IPv6 and its attendant problems?

      Braindead.

      --
      120 characters isn't enough to explain it.
  6. Which way is this impressive? by johnw · · Score: 4, Insightful

    With a code size of 11 kilobytes and a dynamic memory usage of less than 2 kilobytes (yes, kilobytes!)

    I'm left wondering whether the submitter thinks this is impressively small or impressively large. Perhaps I'm getting old, but to me 11 kilobytes seems rather large. I might be impressed by someone squeezing a stack into, say, 301 bytes, but surely you can implement *anything* in 11 kilobytes.

  7. Re: Better than that by apankrat · · Score: 3, Interesting

    > Go to the computer, click file ..

    Now imagine that this computer is a size of a card deck, with a touchscreen. And it understands which area of the house it is in. And it automatically shows you all actionable elements in the interior - lights, fireplace, shades, speakers, etc. And it has an IR transmitter, so it also acts as a TV remote. And it has a WiFi, so it is hooked up to all networked devices in the house such as DVR and media box. And it run a SIP client that is hooked up to a landline. And a module for the cell calls. That would've been pretty sweet, wouldn't it ?

    --
    3.243F6A8885A308D313
  8. Actually that's a pretty good idea by wandazulu · · Score: 4, Interesting

    Laugh if you will, but a light bulb with an IP address would be a good idea for an environment which has thousands and thousands of them. Any industrial plant, stadium, etc., would probably benefit from being able to generate a report based on pinging each bulb to see which responded and which didn't, and to change the ones that didn't.

    One place I think this could really be useful is an airport...think of all those lights everywhere, scattered about the runways and taxiways.

  9. Re:in the ipv6 future by need4mospd · · Score: 3, Insightful

    You turn me on. -Kitchen "sparky" Lightbulb

  10. CTOS by turgid · · Score: 3, Funny

    I hear that the first version of Duke Nukem Forever was written for CTOS and that Elvis, Roy and George are basing the next AmigaOS on its source code. Jesus is not available for comment.