netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udp packet not reach application
       [not found] <517AC60F.9010609@gmail.com>
@ 2013-04-29 13:36 ` Min Wang
  2013-04-29 16:26   ` Rick Jones
  2013-04-30  2:15   ` Cong Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Min Wang @ 2013-04-29 13:36 UTC (permalink / raw)
  To: netdev

HI

since Linux-net mailing list no longer active, so post here. Hope it is  
the right place.


I have following issue ( kernel 3.2.28), google around, could not find 
any good similar case.

one the host:
     all the  /proc/sys/net/ipv4/conf/*/rp_filter are 0

    a device sent udp traffics to  my udp app ( listen on port x)


At first, it was working as my app did get udp traffic.

After a while, strace showed that my app stuck at recvfrom, no udp traffic.

But tcpdump did show that the udp traffic was still coming/alive.


Even if I restart my app, strace still showed it was stuck at recv_from.


it seems the kernel stop or did not deliver the udp packet to my app at 
some point.


So I have to restart NIC interface, then I could see udp traffic 
received at my app. (strange also?)


What could be wrong? Driver? or Kernel or my app?

At which point the kernel could possibly stop delivering the packets to 
upper layer even though traffic seen from tcpdump?


Thanks a lot!



min

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: udp packet not reach application
  2013-04-29 13:36 ` udp packet not reach application Min Wang
@ 2013-04-29 16:26   ` Rick Jones
  2013-04-30  2:15   ` Cong Wang
  1 sibling, 0 replies; 3+ messages in thread
From: Rick Jones @ 2013-04-29 16:26 UTC (permalink / raw)
  To: Min Wang; +Cc: netdev

What does netstat -s say in the UDP and IP sections?

What does tcpdump say about the checksums of the incoming UDP datagrams 
which are not being given to your application?

If you happen to send a UDP datagram from the local host to your 
application, is it received?  That is, sending a UDP datagram to your 
application via some path that does not go through this NIC?

Does your NIC claim to support checksum offload?

Just what is your NIC?

rick jones

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: udp packet not reach application
  2013-04-29 13:36 ` udp packet not reach application Min Wang
  2013-04-29 16:26   ` Rick Jones
@ 2013-04-30  2:15   ` Cong Wang
  1 sibling, 0 replies; 3+ messages in thread
From: Cong Wang @ 2013-04-30  2:15 UTC (permalink / raw)
  To: netdev

On Mon, 29 Apr 2013 at 13:36 GMT, Min Wang <ser.basis@gmail.com> wrote:
>
> At first, it was working as my app did get udp traffic.
>
> After a while, strace showed that my app stuck at recvfrom, no udp traffic.
>
> But tcpdump did show that the udp traffic was still coming/alive.
>

Try dropwatch to see where the packets get dropped.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-30  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <517AC60F.9010609@gmail.com>
2013-04-29 13:36 ` udp packet not reach application Min Wang
2013-04-29 16:26   ` Rick Jones
2013-04-30  2:15   ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).