[j-sim-users] Delays in TCP applications
Hung-ying Tyan
tyanh at ieee.org
Tue Jan 9 20:30:35 CST 2007
What is the number of bytes received from the normal case and what is the
amount dropped from the normal case? Was it because the TCP timeouts?
Have you checked the trace at the receiver side? It is hard to tell from a
qualitative description.
HT
On 1/10/07, Richard Haywood <haywood.richard at googlemail.com> wrote:
>
> I've got a simple application simulated which sets send data over a
> TCP connection at regular intervals.
>
> Socket s_ = new Socket(args_[0], Integer.parseInt(args_[1]));
> s_.setSoTimeout(30);
> OutputStream os_ = s_.getOutputStream();
> BufferedOutputStream ops_ = new BufferedOutputStream(os_);
> while (!stop) {
> ((drcl.comp.WorkerThread)Thread.currentThread()).sleepNow(20);
> ops_.write(prepData());
> ops_.flush();
> counter++;
> }
>
>
> I am running this on one node and running a suitable receiver on
> another. In between the two nodes is a couple of network links which
> have loss models on them. When no losses are imposed then the right
> number of packets are sent in a set amount of time. When losses are
> imposed then the number of packets in the same period of time falls
> because the execution of the write and flush methods take longer than
> in the error free case and I have no idea what causes this extra delay
> nore how I can over come it.
> Thanks for your help
> RH
> _______________________________________________
> j-sim-users mailing list
> j-sim-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/j-sim-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/j-sim-users/attachments/20070110/cbc0914d/attachment.html
More information about the j-sim-users
mailing list