cgrebeld
Tue Jan 27 09:39:50 CST 2004
I realize UDP is not guaranteed, but I am wondering if there is some
way to tweak the algorithm Windows uses for discarding packets so that
I can be 99% certain that my packets won't get discarded on the
recieving end. IE. number of spots in a recieve queue or some kind of
timeout value.
Is there some registry keys or something that can be modified for this
purpose?
"Feroze [MSFT]" <ferozed@online.microsoft.com> wrote in message news:<#YgSDgH5DHA.1936@TK2MSFTNGP12.phx.gbl>...
> Remember that UDP is not a guaranteed delivery mechanism. Packets could be
> discarded (even if you are doing loopback) at any time. I dont know what
> kind of "holes" you are seeing, but this could explain any loss of packets
> that you see.
>
> --
> Remove "user" from the email address to reply to the author.
>
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> Use of included script samples are subject to the terms specified at
>
http://www.microsoft.com/info/cpyright.htm
>
>
>
>
> "Chris G" <cgrebeld@hotmail.com> wrote in message
> news:74c403e9.0401221743.39c505c1@posting.google.com...
> > Hi, My application needs to read UDP packets which are coming at a
> > rate of about 50Hz. (For 1 or 2 second bursts). When I examine what
> > has been recieved, I see holes of missing data, perhaps 10 missing
> > packets per second.
> >
> > I believe the problem is that my (C#) synchronous UDP client cannot
> > reliably Recieve() from the socket at that rate, even at the highest
> > priority, even with the most minimal overhead.
> >
> > Is there a way to increase the size of the recieve buffer for my
> > socket so that the tcp/ip stack doesn't discard packets when my
> > application gets delayed? (I know TCP would be better, but it's not
> > an option)
> >
> > Thanks