Re: First UDP message to a specific IP gets lost
- From: "Ole Dittmann" <ole@xxxxxxxxxxxxxx>
- Date: Tue, 12 Aug 2008 13:03:08 +0200
I made a test program that sends just one datagram and then waits for keyboard input. Also that single message never arrives if it is the first one after some time.
And I also used wireshark but it tells me only what I can see on my own: First messages are send but they never arrive. At least it assured me that I'am not having a bug in my sending/recieving programs.
But yes, that ARP may be the cause. But I think that It shouldnt lead to complete loss of first message - a little delay maybe.
"Dave Lowther" <davel@xxxxxxxxx> wrote in message news:eYYIv4D$IHA.2056@xxxxxxxxxxxxxxxxxxxxxxx
"Ole Dittmann" <ole@xxxxxxxxxxxxxx> wrote in message news:uBcOZs8%23IHA.984@xxxxxxxxxxxxxxxxxxxxxxxHi,
I am working on a show controlling system based on UDP Communication.
Problem is:
When I send a message specifically to an IP adress I did not communicate
with for some time then it gets lost.
The next messages after a short time will work. But every time I wait again
for some minutes the first message after waiting gets lost again.
Sounds like it might be caused by ARP but I have no direct experience of this situation on Windows.
Perhaps something like this is happening, you could check with WireShark.
a) First UDP send stores the send data in the socket.
b) Then windows has to ARP to get destination MAC
c) If you try to send too much more here before ARP reply some data may be lost.
d) Windows gets ARP reply now knows destination MAC and sends stored data.
e) Time passes and ARP cache entry is deleted
f) Go to a)
.
- Follow-Ups:
- Re: First UDP message to a specific IP gets lost
- From: Dave Lowther
- Re: First UDP message to a specific IP gets lost
- References:
- First UDP message to a specific IP gets lost
- From: Ole Dittmann
- Re: First UDP message to a specific IP gets lost
- From: Dave Lowther
- First UDP message to a specific IP gets lost
- Prev by Date: Re: First UDP message to a specific IP gets lost
- Next by Date: Re: First UDP message to a specific IP gets lost
- Previous by thread: Re: First UDP message to a specific IP gets lost
- Next by thread: Re: First UDP message to a specific IP gets lost
- Index(es):
Relevant Pages
|
Loading