Socket latencies  
Author Message
Daniela B





PostPosted: 2006-7-23 22:40:00 Top

java-programmer, Socket latencies Hi all,

I am working on a Java project and I am interested in measuring TCP
performance over long delay links. Do you know if there is any way to
simulate delay using Sockets, keeping the TCP protocol behaviour
intact? I wrote a FilterInputStream that waits for some time and then
reads from the stream, but I am afraid it could be not very accurate.

Thank you.
Daniela B

 
JPractitioner





PostPosted: 2006-7-24 19:44:00 Top

java-programmer >> Socket latencies Maybe you can do it with some Thread static methods
i.e. Thread.sleep(int x), or Thread.yield (this way, the thread for the
connection will be delayed untill some other thread doing something
else is done).

By the way, hardware is a factor to performance as well.

May i know, what you intend to conclude with the outcome of this
finding? and what do u mean by long delay links?


Thanks.

Daniela B wrote:
> Hi all,
>
> I am working on a Java project and I am interested in measuring TCP
> performance over long delay links. Do you know if there is any way to
> simulate delay using Sockets, keeping the TCP protocol behaviour
> intact? I wrote a FilterInputStream that waits for some time and then
> reads from the stream, but I am afraid it could be not very accurate.
>
> Thank you.
> Daniela B

 
Daniela B





PostPosted: 2006-7-24 20:35:00 Top

java-programmer >> Socket latencies I am working on a project that should simulate latency for deep space
links. Now I am simulating it with a proxy that is supposed to receive
every sent packet, delays it and sends it to the destination. But
unfortunately this is very likely to corrupt the performance of TCP.

 
 
Rogan Dawes





PostPosted: 2006-7-24 22:07:00 Top

java-programmer >> Socket latencies Daniela B wrote:
> I am working on a project that should simulate latency for deep space
> links. Now I am simulating it with a proxy that is supposed to receive
> every sent packet, delays it and sends it to the destination. But
> unfortunately this is very likely to corrupt the performance of TCP.
>

http://www.cs.stir.ac.uk/~kjt/software/comms/jasper.html

Might be a good place to start. Found it on the first page of a google
search for "TCP protocol simulator"

Rogan
 
 
Daniela B





PostPosted: 2006-7-24 22:31:00 Top

java-programmer >> Socket latencies I am working on a project that should simulate latency for deep space
links. Now I am simulating it with a proxy that is supposed to receive
every sent packet, delays it and sends it to the destination. But
unfortunately this is very likely to corrupt the performance of TCP.