Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* FTP is slow when a low packet loss occur
@ 2002-10-08 18:19 Libor
  2002-10-08 23:31 ` Jerry Leslie
  2002-10-18 16:00 ` Måns Nilsson
  0 siblings, 2 replies; 4+ messages in thread
From: Libor @ 2002-10-08 18:19 UTC (permalink / raw)


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%)
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)
3. server received the ACK, but ignored it and continued sending the
data
4. client repeated the ACK twice (or more)
5. finally server stopped sending anything for 1,7 to 3 seconds and
then sent requested retransmission.

The sequence is very similiar or the same when other packet was lost.
The reason for timeout is not clear to me.
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).

Has anybody seen this problem before?
Thanks for any hints
 Libor Bucinsky


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FTP is slow when a low packet loss occur
  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-18 16:00 ` Måns Nilsson
  1 sibling, 1 reply; 4+ messages in thread
From: Jerry Leslie @ 2002-10-08 23:31 UTC (permalink / raw)


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%)
: 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)
: 3. server received the ACK, but ignored it and continued sending the
: data
: 4. client repeated the ACK twice (or more)
: 5. finally server stopped sending anything for 1,7 to 3 seconds and
: then sent requested retransmission.
: 
: The sequence is very similiar or the same when other packet was lost.
: The reason for timeout is not clear to me.
: 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).
: 
: Has anybody seen this problem before?
: Thanks for any hints
:  Libor Bucinsky

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.

The solution is to set the ALPHAs NIC and the switch's port to 100 Mbit
and full duplex.  


--Jerry Leslie   (my opinions are strictly my own)
  Note: leslie@jrlvax.houston.rr.com is invalid for email


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FTP is slow when a low packet loss occur
  2002-10-08 18:19 FTP is slow when a low packet loss occur Libor
  2002-10-08 23:31 ` Jerry Leslie
@ 2002-10-18 16:00 ` Måns Nilsson
  1 sibling, 0 replies; 4+ messages in thread
From: Måns Nilsson @ 2002-10-18 16:00 UTC (permalink / raw)


Thus spoke Libor:
> 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%)
 
8% packet loss is anything but low! Below 1% is tolerable, but still
detrimental to performance. What kind of wet string with tin cans are
you using for network? 

Other possible culprits include simplex-duplex mismatch, broken cables,
and overloaded routers. Reasonable performance could be:

# date ; ping -f -c 1000 kthnoc-1.sunet.se ; date ; traceroute kthnoc-1.sunet.se
Fri Oct 18 17:56:06 CEST 2002
PING kthnoc-1.sunet.se (130.242.204.213): 56 data bytes
--- kthnoc-1.sunet.se ping statistics ---
1005 packets transmitted, 1000 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 10.916/12.963/35.524/2.260 ms
Fri Oct 18 17:56:10 CEST 2002
traceroute to kthnoc-1.sunet.se (130.242.204.213), 64 hops max, 40 byte packets
 1  askeby.besserwisser.org (213.212.3.193)  1.876 ms  2.160 ms  1.773 ms
 2  213.80.0.135 (213.80.0.135)  5.71 ms  4.928 ms  4.913 ms
 3  213.212.22.93 (213.212.22.93)  7.16 ms  6.693 ms  6.500 ms
 4  213.212.32.33 (213.212.32.33)  6.902 ms  7.159 ms  6.965 ms
 5  213.80.89.30 (213.80.89.30)  12.980 ms  8.750 ms  8.242 ms
 6  stk-pr-2-srp1-0.sunet.se (194.68.132.19)  9.529 ms  9.353 ms  12.898 ms
 7  KTHNOC-1-SRP4.sunet.se (130.242.94.1)  10.28 ms *  11.230 ms

4 seconds for 1000 pings. 
Note that this is a flood ping over the Internet, across two ISP's, the
Internet exchange between them,  and a DSL line. No packet loss (except
some retransmits due to collisions in the hub my box is connected to).
Yes, this is not TCP, but I can expect similar data quality for TCP.
Anything less than this is broken.

-- 
M�ns Nilsson         Systems Specialist
+46 70 681 7204         KTHNOC
                        MN1334-RIPE


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FTP is slow when a low packet loss occur
       [not found]   ` <ao4405$gl3$1@web1.cup.hp.com>
@ 2002-10-22 20:43     ` Rick Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Rick Jones @ 2002-10-22 20:43 UTC (permalink / raw)


[ 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...


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-22 20:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2002-10-18 16:00 ` Måns Nilsson

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