Lehrstuhl Netzarchitekturen und Netzdienste
Institut für Informatik Technische Universität München
Performance Andre Ryll, B.Eng. Content TCP Basics revisited Facts - - PowerPoint PPT Presentation
Lehrstuhl Netzarchitekturen und Netzdienste Institut fr Informatik Technische Universitt Mnchen Measuring TCP Tail Loss Probe Performance Andre Ryll, B.Eng. Content TCP Basics revisited Facts TCP Header TCP Loss Recovery
Lehrstuhl Netzarchitekturen und Netzdienste
Institut für Informatik Technische Universität München
TCP Tail Loss Probe
2
TCP Basics revisited
TCP Loss Recovery
Tail Loss Probe Test Setup Measurements Results Conclusion
TCP Tail Loss Probe
3
ISO OSI Layer 4 (Transport Protocol) Connection oriented Reliable (retransmissions) Ordered (sequence numbers) Error-Checked (checksum) Stream of octets Counterpart: UDP (message oriented, unreliable, out-of-order)
TCP Tail Loss Probe
4
SYN flag
FIN flag
ACK flag
acknowledgment number
sequence number
TCP Tail Loss Probe
5
TCP Tail Loss Probe
6
TCP Tail Loss Probe
7
TCP Tail Loss Probe
8
TCP Tail Loss Probe
9
TCP Tail Loss Probe
10
TCP Tail Loss Probe
11
TCP Tail Loss Probe
12
A: ACKed segment L: Lost segment S: SACKed segment
losses After TLP Repair AAAL AAAA TLP Probe AALL AALS Early Retransmit (ER) ALLL ALLS Early Retransmit (ER) LLLL LLLS Forward ACK >=5 L ..LS Forward ACK
TCP Tail Loss Probe
13
Lightweight and fast network
nginx webserver lynx webbrowser with –dump
iptables for packet filtering
TCP Tail Loss Probe
14
Lightweight and fast network
nginx webserver lynx webbrowser with –dump
iptables for packet filtering
Inbound traffic passes to nginx Outbound non-TCP pass TCP NFQUEUE C/C++ user-space application
Last segments are dropped
TCP Tail Loss Probe
15
Transfer size: 100 segments (approx. 144kB) Varying tail loss: 0 – 20 segments Varying network conditions sysctl interface to change TCP parameters Measured:
Option plain ER TLP tcp_early_retrans 2 3 tcp_fack 1 1 tcp_sack 1 1 Type Bandwidth RTT high-speed 100MBit/s 10ms mobile 7.2MBit/s 100ms satellite 1MBit/s 800ms
TCP Tail Loss Probe
16
high-speed network
Legend: plain ER TLP
TCP Tail Loss Probe
17
high-speed mobile satellite
Legend: plain ER TLP
TCP Tail Loss Probe
18
high-speed Plain ER TLP ttotal 0.3595 +0.6% 0.3574 0.2214
trecover 0.2396 +1.3% 0.2365 0.0447
satellite Plain ER TLP ttotal 8.2145 -0.1% 8.2248 8.1948
trecover 2.4792 +0.3% 2.4720 2.4331
mobile Plain ER TLP ttotal 1.2091 -1.7% 1.2300 1.0944
trecover 0.4392 +7.8% 0.4073 0.3310
(5 lost packets)
TCP Tail Loss Probe
19
TLP is an improvement in all tested cases Time to first retransmission reduced by up to 81% Total transfer time reduced by up to 38% My measurements show:
TCP Tail Loss Probe
20