From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,af05f53aea96c61a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-10-22 13:51:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cup.hp.com!not-for-mail From: Rick Jones Newsgroups: comp.unix.tru64 Subject: Re: FTP is slow when a low packet loss occur Date: 22 Oct 2002 20:43:13 GMT Organization: the Unofficial HP Sender: Rick Jones Message-ID: References: NNTP-Posting-Host: tardy.cup.hp.com User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (HP-UX/B.11.00 (9000/785)) Xref: archiver1.google.com comp.unix.tru64:8919 [ This is a repost of the following article: ] [ From: Rick Jones ] [ Subject: Re: FTP is slow when a low packet loss occur ] [ Newsgroups: comp.unix.tru64 ] [ Message-ID: ] Jerry Leslie 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...