encyclopegia.org

UIP (software)

The uIP is an open-source implementation of the TCP/IP network protocol stack intended for use with tiny 8- and 16-bit microcontrollers.[src] It was initially developed by Adam Dunkels of the Networked Embedded Systems group at the Swedish Institute of Computer Science, licensed under a BSD style license, and further developed by a wide group of developers.[src] uIP can be very useful in embedded systems because it requires very small amounts of code and RAM.[src] It has been ported to several platforms, including DSP platforms.[src] In October 2008, Cisco, Atmel, and SICS announced a fully compliant IPv6 extension to uIP, called uIPv6.[src]

The uIP is an open-source implementation of the TCP/IP network protocol stack intended for use with tiny 8- and 16-bit microcontrollers.[src] It was initially developed by Adam Dunkels of the Networked Embedded Systems group at the Swedish Institute of Computer Science, licensed under a BSD style license, and further developed by a wide group of developers.[src] uIP can be very useful in embedded systems because it requires very small amounts of code and RAM.[src] It has been ported to several platforms, including DSP platforms.[src] In October 2008, Cisco, Atmel, and SICS announced a fully compliant IPv6 extension to uIP, called uIPv6.[src] ==Implementation== uIP makes many unusual design choices in order to reduce the resources it requires.[src] uIP's native software interface is designed for small computer systems with no operating system.[src] It can be called in a timed loop, and the call manages all the retries and other network behavior.[src] The hardware driver is called after uIP is called.[src] uIP builds the packet, and then the driver sends it, and optionally receives a response.[src] It is normal for IP protocol stack software to keep many copies of different IP packets, for transmission, reception and to keep copies in case they need to be resent.[src] uIP is economical in its use of memory because it uses only one packet buffer.[src] First, it uses the packet buffer in a half-duplex way, using it in turn for transmission and reception.[src] Also, when uIP needs to retransmit a packet, it calls the application code in a way that requests for the previous data to be reproduced.[src] Another oddity is how uIP manages connections.[src] Most IP implementations have one task per connection, and the task communicates with a task in a distant computer on the other end of the connection.[src] In uIP, no multitasking operating system is assumed.[src] Connections are held in an array.[src] On each call, uIP tries to serve a connection, making a subroutine call to application code that responds to, or sends data.[src] The size of the connection array is a number that can be adjusted when uIP is recompiled.[src] uIP is fully compliant with the RFCs that define TCP, UDP and IP.[src] It also implements the mandatory maintenance protocol ICMP.[src] ==Versions== uIP 0.9 is the version with the least dependence on operating systems, the smallest resource use, and the only version that presents a pure event loop API, but in its original form does not support IP version 6, only the older, more common IPv4.[src] It may be used in embedded systems with very small amounts of resources.[src] It was delivered with a set of examples of higher-level protocols that also run on an event loop system, including HTTP (a simple web server), SMTP (simple mail transmission protocol), FTP (file transfer protocol), telnet (terminal emulation), and others.[src] Despite the examples and its small size, uIP 0.9 can be difficult to apply because it does not use any form of socket API.[src] uIP is widely used code with well-known weaknesses.[src] The design minimizes and separates 32-bit arithmetic so that it can be adjusted or optimized for 8 and 16-bit CPUs.[src] Also, 16-bit software timers (common on small microcontrollers) can overflow and cause defective operation.[src] This can be fixed with a timer system that does not overflow (e.g.[src] the timers count down or use modular arithmetic).[src] Another issue is that its single packet buffer can have substantial throughput problems because a PC host usually delays the "ACK" packet, waiting for more packets.[src] In slow, serial port implementations, the ack-throughput can be fixed by modifying uIP to send every packet as two half-packet fragments.[src] uIP systems with fast ethernet or WiFi can modify the hardware driver to send every packet twice.[src] Some PCs do not correctly respond to a fast uIP system on a local Ethernet, because the uIP system can start a responding packet before the PC is ready to receive it.[src] The solution is to call the uIP system less frequently in the main loop (Windows PCs are designed for a response time of about 1 millisecond).[src] Typical implementations of uIP have a fixed IP address, which can make them impractical in real networks, although some have implemented DHCP.[src] Later versions of uIP, including the reference version of uIPv6, are integrated with Contiki, an operating system that uses coroutines for cooperative multitasking.[src] Contiki provides the multitasking needed by a simplified socket API, simplifying the use of uIP.[src] These versions may be less popular than 0.9 however.[src] Many examples of embedded code do not use them.[src] ==See also== Internet Engineering Task Force List of TCP and UDP port numbers lwIP –another TCP/IP stack project (also created by Dunkels), but more fully-featured and aimed at more capable hardware ==References== ==External links== uIP source uIP port for AVR microcontrollers uIP-based Webserver using OpenRISC-embedded SoC[src]

47 sentences · 47 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"UIP (software)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/uip-software. Accessed 25 November 2026.

Chicago

"UIP (software)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/uip-software.

APA

encyclopegia.org. (2025). UIP (software). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/uip-software

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Ubuntu Software Center

stub · references available

customs software

stub · references available

access software

stub · references available

Free Software Song

stub · references available

software framework

stub · references available

route planning software

stub · references available

data loss prevention software

stub · references available

UIP

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1310696541 · 0.5 · snapshot enwiki-001310696541

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.