# Why am I dropping data over the UDP network?

**URL:** <https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908>\
**Category:** GNU Radio\
**Created:** [July 11, 2014, 7:05pm UTC](https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908 "2014-07-11T19:05:15Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![WardS\_Marcus\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@WardS\_Marcus\_D](https://www.ruby-forum.com/u/WardS_Marcus_D)\
**Post date:** [July 17, 2014, 5:44pm UTC](https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908/21 "2014-07-17T17:44:49Z")

</div>

Thanks for the idea brad, I’ll check that out right now.

---

<div class="post-metadata">

**Author:** ![WardS\_Marcus\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@WardS\_Marcus\_D](https://www.ruby-forum.com/u/WardS_Marcus_D)\
**Post date:** [July 17, 2014, 5:39pm UTC](https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908/22 "2014-07-17T17:39:16Z")

</div>

Lou,

The OS I’m using is Ubuntu 14.04 LTS and I am getting the signal on the  
received side when I use UDP. It’s just my biggest concern is why is my  
data still dropping even though it’s independent of the sample rate  
rising or lowering?

I’m currently experimenting with TCP to see if I wouldn’t drop data, but  
am dealing with a socket connection error.

Marcus

---

<div class="post-metadata">

**Author:** ![WardS\_Marcus\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@WardS\_Marcus\_D](https://www.ruby-forum.com/u/WardS_Marcus_D)\
**Post date:** [July 17, 2014, 5:51pm UTC](https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908/23 "2014-07-17T17:51:43Z")

</div>

Alan,

I also agree with that, which is why I think it’s probably the reason  
why I might be losing packets.

Right now, I’m experimenting with TCP since during my readings I’ve read  
that it ensures delivery of all packets and also checks for errors. The  
current problem with TCP is that I’m getting a socket error:  
(socket.error:[Errno 111] connection refused) no matter how many ports I  
open or change it to.

Marcus

From: [discuss-gnuradio-bounces+marcus.ward=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+marcus.ward=removed_email_address@domain.invalid)  
[[mailto:discuss-gnuradio-bounces+marcus.ward=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+marcus.ward=removed_email_address@domain.invalid)] On  
Behalf Of Silverfox  
Sent: Wednesday, July 16, 2014 3:49 PM  
To: ‘GNURadio D.ion List’  
Subject: Re: [Discuss-gnuradio] Why am I dropping data over the UDP  
network?

It is my understanding that the UDP protocol does not quarentee delivery  
to the destination. That is, it has no recovery mechanism for  
undelivered packets.  
Alan

From:  
[discuss-gnuradio-bounces+alan.r.hill=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+alan.r.hill=removed_email_address@domain.invalid)[mailto:discuss-gnuradio-bounces+alan.r.hill=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+alan.r.hill=removed_email_address@domain.invalid)  
[[mailto:discuss-gnuradio-bounces+alan.r.hill=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+alan.r.hill=removed_email_address@domain.invalid)] On  
Behalf Of Marcus L.  
Sent: Wednesday, July 16, 2014 11:09 AM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Cc: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] Why am I dropping data over the UDP  
network?

I’m talking about the UDP traffic between the host and the N2xx device.

on Jul 16, 2014, madengr  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
Marcus,

What OS are you using? I had the same issue (UDP not getting through on  
receive side) with Fedora 20, even with Firewall “supposedly” turned off  
(i.e. Trusted Zone selected). Manually adding the port exemption (I  
believe  
I used port 65000) let the UDP through and it worked.

Lou  
KD4HSO

Ward, Marcus D. wrote

> I don’t think it’s a firewall rule problem, but do you think opening up  
> ports would solve my problem? I know the port I’m currently using on the  
> TCP connection is port#: 1234 which deals with Mercurial and git default  
> ports for serving Hyper Text.
> 
> When I had the UDP connection, I was using the same port (1234) except  
> that in UDP, that port deals with a VLC media player.

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Why-am-I-dropping-data-over-the-UDP-network-tp49283p49387.html](http://gnuradio.4.n7.nabble.com/Why-am-I-dropping-data-over-the-UDP-network-tp49283p49387.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![WardS\_Marcus\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ccd318/32.png) [@WardS\_Marcus\_D](https://www.ruby-forum.com/u/WardS_Marcus_D)\
**Post date:** [July 17, 2014, 6:16pm UTC](https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908/24 "2014-07-17T18:16:39Z")

</div>

Make sure on the server you’re binding to 0.0.0.0 (use netstat -na to  
confirm).  
  
TCP may help over UDP unless the dropped packets  
were caused by congestion, which seems like a likely culprit.   
  
  
[Brad H.]

[Previous page](https://www.ruby-forum.com/t/why-am-i-dropping-data-over-the-udp-network/230908.md?page=1)
