network performance tool UDP/IP & ICP/IP in Python

Sockets, TCP/IP, (XML-)RPC und ähnliche Themen gehören in dieses Forum
Antworten
guenther_slx
User
Beiträge: 1
Registriert: Samstag 23. Dezember 2006, 18:16

Grüß euch!
Basierend auf einem ganz einfachen Client / Server Chat-Programm soll die Übertragungsdauer ("Performance") von UDP und TCP erfasst werden - alles in Python. Der Output könnte so aussehen:

time to send 10 blocks of 65536 bytes is 0.289 seconds
time to send 20 blocks of 32768 bytes is 0.948 seconds
time to send 40 blocks of 16384 bytes is 1.223 seconds
time to send 80 blocks of 8192 bytes is 0.995 seconds
time to send 160 blocks of 4096 bytes is 1.096 seconds
time to send 320 blocks of 2048 bytes is 1.196 seconds
time to send 640 blocks of 1024 bytes is 1.000 seconds
time to send 1280 blocks of 512 bytes is 1.056 seconds
time to send 2560 blocks of 256 bytes is 1.225 seconds
time to send 5120 blocks of 128 bytes is 1.001 seconds
time to send 10240 blocks of 64 bytes is 1.080 seconds
time to send 20480 blocks of 32 bytes is 1.056 seconds
time to send 40960 blocks of 16 bytes is 1.242 seconds
time to send 81920 blocks of 8 bytes is 1.022 seconds

vielleicht hat jemand von euch schon so etwas in der Art gemacht? Mein Hauptproblem liegt in der Erfassung der Zeitdifferenz zwischen Client und Server (Sender / Empfänger).

Danke, Günther
Antworten