[uip-users] udp in uip

9 views
Skip to first unread message

Samuel Engelmajer

unread,
Feb 28, 2007, 9:47:12 AM2/28/07
to uip-...@sics.se

Hi all,

here is a simple question.
I'm a newcomer to uip/lwip stacks. I'm designing an Ethernet architecture
for an embedded 16-bit processor.
I need both TCP and UDP connection.

Is UDP well implemented in uip - I mean, reliable? Previous mails indicate
some bugs. Does lwip really offer better udp service?

Thanks,

Samuel Engelmajer

Steve DeLaney

unread,
Feb 28, 2007, 10:15:44 AM2/28/07
to uip-...@sics.se

We're using udp for tftp and it seems to be working well. There was a change
we needed to make in uip.c to allow remote tftp server to switch from well
known port 69, to dynamic service port.

Please keep us posted on your results with UDP. That will help us get
benchmark to verify the stability.

Till Harbaum

unread,
Feb 28, 2007, 10:23:53 AM2/28/07
to uip-...@sics.se, Samuel Engelmajer
Hi,

what do you mean by "reliable"? UDP is per se unreliable. That's how UDP
works.

I have been using uip as a udp receiver and never encountered any problems.
Furthermore do some of the protocols in uip like e.g. dhcp rely on udp and
wouldn't work without it.

Till

--
Dr. Till Harbaum <Ti...@Harbaum.org>

Alexandre Pereira Nunes

unread,
Feb 28, 2007, 11:05:56 AM2/28/07
to uip-...@sics.se
Samuel Engelmajer escreveu:

I'm assuming that by "reliable" you mean trustworthy. In that case, yes,
the damn thing just works.


The only overall difference between lwip and uip regarding udp is that
lwip handles multiple incoming/outgoing packets and (AFAIK) IP
fragmentation (which may be relevant if you need to send or receive
packets bigger than your interface mtu). The overal capability of
handling multiple packets maybe irrelevant depending on the type of tcp
and udp applications you intend to run.

BTW, uip has simple ip fragmentation but that's more like a hack than a
feature, and I don't think you can use that to handle a packet larger
than your mtu.

- Alexandre

Glenn Jones

unread,
Feb 28, 2007, 6:17:15 PM2/28/07
to uip-...@sics.se
Hi Steve, is your tftp code available anywhere?

Glenn

Steve DeLaney

unread,
Feb 28, 2007, 6:33:50 PM2/28/07
to uip-...@sics.se
Not so far, I'm just completing this for a commercial project.
Since the uC is RTOS-free it had to be designed to run asynchronously.

Regards,
Steve

Available for questions at
Onramp123 at yahoo dot com

Nico Coesel (Dealogic)

unread,
Mar 1, 2007, 4:08:59 AM3/1/07
to uip-...@sics.se
Samuel,
The changes I posted are not really bugs, just some minor improvements to be
able to receive broadcasts. UDP itself seems to work fine with uIP 1.0.

Nico Coesel

-----Oorspronkelijk bericht-----
Van: owner-u...@sics.se [mailto:owner-u...@sics.se] Namens Samuel
Engelmajer
Verzonden: woensdag 28 februari 2007 15:47
Aan: uip-...@sics.se
Onderwerp: [uip-users] udp in uip

Reply all
Reply to author
Forward
0 new messages