Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Socket latencies

Thread view: 
Daniela B - 23 Jul 2006 15:39 GMT
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 - 24 Jul 2006 12:43 GMT
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.

> Hi all,
>
[quoted text clipped - 6 lines]
> Thank you.
> Daniela B
Daniela B - 24 Jul 2006 13:34 GMT
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 - 24 Jul 2006 15:07 GMT
> 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 - 24 Jul 2006 15:31 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.