- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Friend's,
finally i have come out from "no free buffer for rx":). Just by increasing the UDP packet size from 512 to 1472 bytes. So if we increase the UDP packet size the number of call "recivefrom" minimize. and processor have enough time to handel the receive packets. now can any one tell me what is the maximum limit for udp packet size for nios-ii, because as i increase the UDP packet size from 1472 to 2048. it stop receiving the packets. Regards kaushalLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maximum packet size is determined by MTU: http://en.wikipedia.org/wiki/maximum_transmission_unit
So Your packet size 2048 bytes doesn't make any sense.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A UDP packet can have a size of up to 64k (including headers), but if the transport interface used under IP doesn't support packets this size, it will either be fragmented or dropped. I think that a most IP stacks just choose to drop them. In order to avoid fragmentation on an Ethernet link, the biggest payload size is 1472 bytes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanking you Daixiwen/Socrates,
i have set the packet size 1472 bytes for further processing. as in UDP case fragmented packet increase unreliability because of chance of dropping packet,so fix my packet size 1472. Thanx Kaushal- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Most 'real' UDP/IP stacks fragment UDP datagrams that exceed the ethernet (or other network) frame size.
For instance NFS (over UDP) will typically do 8k transfers as a single UDP packet that gets transferred as 6 back-to-back ethernet frames.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page