Re: Langsame TCP Verbindung

From: Alexander Langer <alex(at)cichlids.com>
Date: Wed, 20 Oct 1999 16:01:16 +0200

Thus spake Yves Jaeger (yves.jaeger(at)kryptokom.de):

> Ich habe jetzt den Client als Benchmark-Programm entwickelt, der
> einen n bytes langen Datenblock m mal zum Server schickt und die
> Zeit misst, wielange dieses Spielchen gedauert hat.

Hast Du UNP Vol.1 mal gelesen?

Es gibt da diverse Tricks, die vom Stack benuttzt werden.
Einer von denen ist, dass z.b. 150 ms (oder so?) gewartet wird, bevor
zurueckgeschickt wird, damit evtl. nachkommende Daten mit in die
Übertragung einbezogen werden können.

Wenn Du das nicht durch sockopts ausstellst, ist das standard-maessig
eingestellt.

bing misst die Netzperformance:
alex:~ $ bing -S 2048 localhost neutron
BING localhost (127.0.0.1) and neutron.cichlids.com (192.168.0.1)
        44 and 2048 data bytes
32064 bits in 0.448ms: 71571429bps, 0.000014ms per bit
32064 bits in 0.444ms: 72216216bps, 0.000014ms per bit
32064 bits in 0.445ms: 72053933bps, 0.000014ms per bit
32064 bits in 0.420ms: 76342857bps, 0.000013ms per bit
32064 bits in 0.422ms: 75981043bps, 0.000013ms per bit
32064 bits in 0.428ms: 74915888bps, 0.000013ms per bit
32064 bits in 0.437ms: 73372998bps, 0.000014ms per bit
32064 bits in 0.436ms: 73541284bps, 0.000014ms per bit
32064 bits in 0.437ms: 73372998bps, 0.000014ms per bit
32064 bits in 0.439ms: 73038724bps, 0.000014ms per bit
^C
--- localhost statistics ---
bytes out in dup loss rtt (ms): min avg max
   44 92558 92450 0% 0.044 3.706 98.059
2048 92558 87408 5% 0.080 3.672 98.122

--- neutron.cichlids.com statistics ---
bytes out in dup loss rtt (ms): min avg max
   44 92557 91508 6956 1% 0.192 11.641 103.344
   2048 92557 84805 7102 8% 0.667 21.954
17631.783

--- estimated link characteristics ---
estimated throughput 73038724bps
                                        ^^^^^^^^^^^^
minimum delay per packet 0.138ms (10106 bits)

average statistics (experimental) :
packet loss: small -6%, big -5%, total -2%
warning: rtt big host1 3.672ms < rtt small host2 3.706ms
average throughput 3109086bps
average delay per packet 7.926ms (578872 bits)
weighted average throughput 3201115bps

Ich hab Fast Ethernet, und 73MBit kommen da schon fast dran.
Der Rest könnte a) FreeBSD's xl Performance sein (wird in -current
gerade verbessert) oder b) mein Hub, der kein Full-Duplex macht.

> Weis jemand von euch, woher diese Einbrueche im Durchsatz kommt ??

s.o.

Alex

-- 
I doubt, therefore I might be. 
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 20 Oct 1999 - 15:58:36 CEST

search this site