Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Tcp to Udp modifications

Altera_Forum
Honored Contributor II
826 Views

Hi, 

I'm working on Simple socket server example in which it uses tcp/ip...since I need high transmission speed without control flow... I'd like to use the udp/ip...what kind of modifications should I do in Simple Socket Server example to use udp instead of tcp???? 

 

Regards
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
95 Views

What bitrate do You need?

Altera_Forum
Honored Contributor II
95 Views

at least 5Mbps...

Altera_Forum
Honored Contributor II
95 Views

I think that this wikipedia page (http://en.wikipedia.org/wiki/bsd_socket) is a good start to learn how to use the API, and it shows the difference between UDP and TCP handling, from both the server and client sides. 

Remember that with UDP you may loose packets, as you have no flow control or acknowledge mechanism.
Altera_Forum
Honored Contributor II
95 Views

edit simple_socket_server.c file and write your own UDP code, disable the previous one completely.

Altera_Forum
Honored Contributor II
95 Views

Hello Daixiwen , 

what is the maximum data rate we can achieve on nios using UDP..?
Altera_Forum
Honored Contributor II
95 Views

It depends on too many factors to give a generic answer. You must run some tests.

Reply