F5 - Optimising-TCP-in-todays-changing-network-environment
F5 - Optimising-TCP-in-todays-changing-network-environment
F5 - Optimising-TCP-in-todays-changing-network-environment
F5 Agility 2014 2
TCP Performance challenges
• Varying conditions based on connection
• 3G limited bandwdith/high latency vs 4G High bandwidth and low latency
• Loss & queuing
• Bursty transmissions
• Delays when mobile device switches between wi-fi and carrier
F5 Agility 2014 3
How TMOS can
help adjust to
TCP behavior ?
Pure « FastL4 » config winthin TMOS
• Some of the TCP Parameters are negotiated during 3-WAY Handshake (MSS for example)
• No buffering done by TMOS
Built for the application
Application Services
FastL4
SaaS
ePVA ToS/QoS FRAG TCP defaults
Control Adaptations Mgmt (Timeout, MSS,
…) Available
everywhere
FPGA
F5 Agility 2014 5
FastL4 config
F5 Agility 2014 6
FastL4 : usual parameters tuned
• Reset on Timeout:
• Helpful to properly reset connections from
stateful devices (or Routers XLAT tables)
• Must be aligned with the other « timeouts »
in the network
• Mostly enabled (default)
F5 Agility 2014 7
FastL4 : usual parameters tuned
• MSS Override:
• Help enforce a different MSS (Ethernet
MTU(1500) – IP Hdrs(20)-TCP Hdrs(20))
• IP Tunneling protocols carrying TCP
segments requires MSS changes
F5 Agility 2014 8
FastL4 : usual parameters tuned
F5 Agility 2014 9
FastL4 : usual parameters tuned
F5 Agility 2014 10
FastL4 : usual parameters tuned
X
X 1 – No Ack received
2 – Ack received with no Cookie
3 – Ack received with corresponding cookie
F5 Agility 2014 11
Is it enough to make TCP optimum and efficient ?
CONGESTION
Impact QoE
APPLICATIONS
Exhaust network resources
LOSS
Reduce the throughput
ROADS
Multiple path for a single DELAY
connection Increase number of packets
in flight
F5 Agility 2014 12
Reminder: TCP Slow Start and cwnd
Between TCP RFC and now, networks have changed as well as the computers and stacks
F5 Agility 2014 13
Packet transmission behavior
70000
• Stretch Acks
40000
• Exponential CWND growth
• High latency 30000
• High bandwidth
• Small buffers 20000
10000
0
1 11 21 31 41
Normal TCP
Poor Experience
Congestion Packet Loss Caused by Packet
Loss
F5 Agility 2014 15
The New TCP Express
Client Network Data center
Application Services
SaaS
Resource Proxy Ack Congestion Loss Quality of
Management Behavior Behavior Control Detection Service
Tailored to the Available
location everywhere
Professional Services and Support
F5 Agility 2014 16
The New TCP Express
Client Network Data center
*New in 11.5
F5 Agility 2014 17
The New TCP Express
Client Network Data center
• Full proxy
SaaS
Resource Proxy Ack Congestion Loss Quality of
Management Behavior Behavior Control Detection Service
Tailored to the Available
location everywhere
Professional Services and Support
*New in 11.5
F5 Agility 2014 18
The New TCP Express
Client Network Data center
SaaS
Resource Proxy Ack Congestion Loss Quality of
Management Behavior Behavior Control Detection Service
Tailored to the Available
location everywhere
Professional Services and Support
F5 Agility 2014 19
The New TCP Express
Client Network Data center
CONGESTION CONTROL
Optimized for the device Built for the application
Profile
Always on, A network
• New Algorithms always fast, and The New TCP Express built for
on any device innovation
• Woodside
• Vegas SaaS
Resource Proxy Ack Congestion Loss Quality of
• Illinois
Tailored to the
Management Behavior Behavior Control Detection Service
Available
location everywhere
• H-TCP Professional Services and Support
• Initial Congestion
Window Size
*New in 11.5
F5 Agility 2014 20
Congestion Control Algorithms
• F5 created algorithm.
• Hybird loss and latency based algorithm.
TCP Woodside
• Minimizes buffer bloat by constantly monitoring
network buffering.
F5 Agility 2014 21
The New TCP Express
Client Network Data center
LOSS
OptimizedDETECTION
for the device Built for the application
• Forward Error
Correction (FEC) Always on,
always fast, and The New TCP Express
A network
built for
on any device innovation
• Retransmission Timeout
SaaS
Resource Proxy Ack Congestion Loss Quality of
Management Behavior Behavior Control Detection Service
Tailored to the Available
location everywhere
Professional Services and Support
*New in 11.5
F5 Agility 2014 22
The New TCP Express
Client Network Data center
QUALITY OFdevice
Optimized for the SERVICE Built for the application
• QoS
Always on, A network
• MD5 Signature always fast, and The New TCP Express built for
on any device innovation
SaaS
Resource Proxy Ack Congestion Loss Quality of
Management Behavior Behavior Control Detection Service
Tailored to the Available
location everywhere
Professional Services and Support
F5 Agility 2014 23
Multipath TCP
Mobility
What’s New
• The ability to connect and maintain a continuous Mobile Network
3G/4G LTE Multipath TCP
connection to the internet over multiple wired and
wireless connections
BIG-IP Platform
Benefit
Improve the user experience by altering how packets
are sent based on feedback received from client.
F5 Agility 2014 25
Recent Advancements in TCP Profiles
• TCP-mobile-optimized
Increase initial • MPTCP-mobile-optimized
congestion window to • WAM-TCP-LAN-Optimized
minimum of 16 • WAM-TCP-WAN-
Optimized
New Congestion
Control Algorithms
• MPTCP-mobile-optimized
Rate Pacing
MPTCP
F5 Agility 2014 26
Next Steps