Re: [twsocket] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Wilfried Mestdagh
Hello Udvari,

TWSocketServer does not handle UDP, only TCP.

---
Rgds, Wilfried
http://www.mestdagh.biz

Thursday, March 17, 2005, 16:28, Udvari Andrs Lszl wrote:

 Hi List,

 I wrote a little client-server application, which measures UDP
 datagram transfer speed. The server is using TWSocketServer, and sends
 a 1500 byte length UDP datagram in every half seconds. The number of
 datagrams to be sent is a parameter, tipically some 100, below 1000.
 The client side receive these packets measures the speed
 (bytes/second) and the counts the missing or lost packets (every
 packet has an incremental unique id).

 But on the client side there is a strange behaviour: in about every
 minute no datagram is coming for some seconds, and after that all of
 them coming in one bunch, like if emptying some kind of buffer. After
 that everything returns normal for about another 1 minute. 

 Is it a normal behaviour, or am I doing something wrong? On the
 server side everything seems to be OK, according to log file every
 packet is sent with correct timing.

 Thanks for your help:
 Andras

 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


RE: [twsocket] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Udvari András László
Thanks, but it has the same  behaviour with 1100 byte long packets, which is 
well under the size of the MTU. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcello Vezzelli
Sent: Thursday, March 17, 2005 5:17 PM
To: ICS support mailing
Subject: Re: [twsocket] UDP datagramreceive periodically freezes for seconds

Udvari Andrs Lszl ha scritto:

 Hi List,
 
 I wrote a little client-server application, which measures UDP datagram 
 transfer speed. The server is using TWSocketServer, and sends a 1500 byte 
 length UDP datagram in every half seconds. The number of datagrams to be sent 
 is a parameter, tipically some 100, below 1000. The client side receive these 
 packets measures the speed (bytes/second) and the counts the missing or lost 
 packets (every packet has an incremental unique id).
 
 But on the client side there is a strange behaviour: in about every minute no 
 datagram is coming for some seconds, and after that all of them coming in one 
 bunch, like if emptying some kind of buffer. After that everything returns 
 normal for about another 1 minute. 
 
 Is it a normal behaviour, or am I doing something wrong? On the server side 
 everything seems to be OK, according to log file every packet is sent with 
 correct timing.

You should pay attention to the maximum MTU of your network, which is 
likely to be lower than 1500.
One explanation to your problem could be that some network device (could 
be windows network layer too) waits for UDP fragments then sends 
reconstructed packets in a short time.
Try to lower packet size to 1400, or exactly to your network MTU.

-- 
Marcello Vezzelli
CTO
Software Development Department
E-Works s.r.l.
tel. +39 059 2929081
fax +39 059 2925035
Direzionale 70 - Via Giardini 456/c
41100 Modena - Italy

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be