Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Rick Jones <foo@bar.baz.invalid>
Subject: Re: FTP is slow when a low packet loss occur
Date: 22 Oct 2002 20:43:13 GMT	[thread overview]
Message-ID: <ap4d91$od3$2@web1.cup.hp.com> (raw)
In-Reply-To: ao4405$gl3$1@web1.cup.hp.com

[ This is a repost of the following article:                               ]
[ From: Rick Jones <foo@bar.baz.invalid>                                   ]
[ Subject: Re: FTP is slow when a low packet loss occur                    ]
[ Newsgroups: comp.unix.tru64                                              ]
[ Message-ID: <ao4405$gl3$1@web1.cup.hp.com>                               ]

Jerry Leslie <LESLIE@jrlvax.houston.rr.com> wrote:
> Libor (libor.bucinsky@ct.cz) wrote:
> : I am running a server Compaq DS10 with digital UNIX. The server is
> : deployed in network with several subnets separated by routers and
> : firewall. Recently I found a problem when people were trying to
> : download a data from different network subnets. The FTP transfer was
> : really slow and sometimes got stuck. A have a closer look at the data
> : traffic with sniffer and I realised that a low packet loss (up to 8%)

Actually, 8% isn't that low of a packet loss rate.

> : happened time to time during the transfer. What amazed me was the
> : server reaction when such a packet loss begun:
> : 1. server sent couple of packets 
> : 2. clent did not recieved them all, and asked server for
> : retransmission (by ACK with appropriate sequence number)

An ACK is not an explicit request for retransmission. It is simply a
statement of the next "in-order" sequence number the receiver expects
or expected to receive.

> : 3. server received the ACK, but ignored it and continued sending the
> : data

Right - a single ACK like that could simply be the result of packet
re-ordering on the network.  Was the sniffer program running on the
server itself, or elsewhere in the network? If on the server itself
you can assume the server received the segment, otherwise, the
assumption isn't quite a s strong.

> : 4. client repeated the ACK twice (or more)

Was the ACK completely the same each time? I cannot speak to the Tru64
stack directly, but "standard" fast retransmit algorithms have a fast
retransmit after three completely duplicate ACKs, which typically
means at least four ACK's with the same ACKnumber because the first
typcially advances the window.

Generally, one needs a TCP window of 6 or so times the MSS to have any
decnet chance of getting fast retransmissions.

> : 5. finally server stopped sending anything for 1,7 to 3 seconds and
> : then sent requested retransmission.

That would be the server's retransmission timer expiring, that timer
being based on the round-trip-time of the connection and probably the
variance and some fudge factor.

> : The sequence is very similiar or the same when other packet was lost.
> : The reason for timeout is not clear to me.

Presumeably the returning ACKs were not sufficient to trigger the fast
retransmission heuristics in the sending TCP stack.

> : When FTP client is located in the same subnet with server, FTP
> : transfer is working fine and very fast (with no packet loss of
> : course).

> It sounds like auto-negotiation problems between a switch and the
> ALPHA.  It's been discussed several times in comp.os.vms, as well as
> comp.unix.aix and comp.sys.hp.hpux.

A duplex mismatch between the server and the switch would also appear
in transfers with clients located in the same subnet. Since transfers
to clients in the same subnet are aparantly unaffected, I would doubt
that it is a duplex mismatch between the server and the switch. It
could be a duplex mismatch on the client or the router, or simply a
lossy router or somesuch. If possible, check link-level stats on the
router and client, and TCP-level stats on the client for clues.

rick jones
-- 
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to raj in cup.hp.com  but NOT BOTH...

-- 
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to raj in cup.hp.com  but NOT BOTH...


  parent reply	other threads:[~2002-10-22 20:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 18:19 FTP is slow when a low packet loss occur Libor
2002-10-08 23:31 ` Jerry Leslie
     [not found]   ` <ao4405$gl3$1@web1.cup.hp.com>
2002-10-22 20:43     ` Rick Jones [this message]
2002-10-18 16:00 ` Måns Nilsson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox