Re: UDP question



On Sep 13, 11:05 pm, David Schwartz <dav...@xxxxxxxxxxxxx> wrote:
On Sep 12, 11:37 pm, Jack <junw2...@xxxxxxxxx> wrote:

I wrote a simple UDP client using sendto and a simple UDP server using
recvfrom.
When I run both the client and server on the same machine, about 25
percent UDP messages are dropped. If I run the client and server on
different machines, only a few UDP messages are dropped.
What is the problem?

When you detect packet loss, you need to slow down. The problem is
that your code has no transmit pacing. On different machines, the
network paces transmissions for you to some extent.

DS

The UDP client is very simple. It is just sendto within a for loop,
like:
for(int i =0; i < 1000; i++)
{
sendto();
}

Is the sending rate of running the UDP client and server on the same
machine different from that of running the UDP client and server on
two different machines?

Thanks.

.



Relevant Pages

  • Re: Ms office should also be in a client/server environment
    ... Supposedly there will be a server based version of Excel (that I assume you ... > windows client and office as many machines comes preinstalled from the ... so thats why I want that if microsoft builds some office server ... > preinstalled with windows client and office too. ...
    (microsoft.public.office.developer.automation)
  • Re: nessus returning an empty report
    ... There is communication between the client and server, ... I have scanned localhost, 127.0.0.1 and other machines on the network, ... I've mailed the nessus mailing list and had some suggestions from them. ...
    (Pen-Test)
  • Re: What is the minimum-size UDP packet?
    ... > with the server but for scalability reasons there is not a one to one map ... A client may disconnect ... If the server hasn't received a valid session ID via UDP from the ... Connectionless - there is no connection. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: What is the minimum-size UDP packet?
    ... > with the server but for scalability reasons there is not a one to one map ... A client may disconnect ... If the server hasn't received a valid session ID via UDP from the ... Connectionless - there is no connection. ...
    (microsoft.public.win2000.networking)
  • My goal is a _really slow_ connection
    ... We try to transfer a small file from server 172.16.3.1 via ... How do I keep the server from repeating too ... Is there an option / a command to make the IP level on the client ... udp 191 ...
    (alt.os.linux.suse)