discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] UDP Sink sending bursty packets


From: Jeff Long
Subject: Re: [Discuss-gnuradio] UDP Sink sending bursty packets
Date: Sun, 4 Mar 2018 07:44:29 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

Try yourblock.set_max_noutput_items(1024/itemsize)

On 03/03/2018 09:57 PM, Firdavs Pulat wrote:
Hello everyone,

I have a B200mini device I'm communicating over USB to a pc which is running the gnuradio software. The gnuradio does some processing (e.g., low-pass filtering, data type conversion, etc), and finally gets to the UDP sink block where packets are generated and sent through Ethernet to an external device. The issue I'm having is that, in the UDP block, noutput_items*d_itemsize size is alot larger than the UDP payload size (1024 bytes). So, UDP gets 4-6K worth of bytes and bursts it all out really fast (I can see this behavior in Wireshark), then waits to buffer up another 4-6K bytes, and sends it all out really fast. This process then continues. Is there a way to smooth this out so that it's not bursting bunch of packets all at once? Otherwise the external device isn't able to keep up and it's leading to tons of dropped packets.

I tried setting the max output buffer in python but I get this warning when I run: gr::log :WARN: flat_flowgraph - Block (endian_swap_impl0) max output buffer set to 2048 instead of requested 512.

Any ideas on what I can do to change this behaviour?

Thanks!



_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]