TCP performance Flashcards
diff between flow and congestion control?
Flow control: do not overload the receiver. –Congestion control: do not overload the network.
why is tcp no longer as good?
it was designed to work on a low speed network relative to today, performance is impacted by improved speeds
how do we prevent wrapped sequence numbers in tcp?
PAWS
protection against wrapped sequence nums
uses tcp extension header with timestamps, compares timestamps as well as sequence number
how can single-packet trans. be sped up?
pipelining - tx continues sending data before the first ack
what is the bandwidtch delay product?
capacity of a “pipe” - the path between tx and rx
bdp - data-rate x RTT
what is end-to-end flow control?
Receiver may wish to control transmission from sender, e.g. due to load at receiver • End-to-end flow control: –Receiver signals sender to control sending rate.
how does bdp relate to tcp rwnd?
rwnd size dictactes the utilisation of the pipe. if rwnd > bdp then 100% util,
otherwise its a fraction
e.g. Example: 1Gbps Ethernet, TRTT = 1ms: – BDP: 109 ´0.001 = 125,000 bytes. – 65,536 / 125,000 = ~52% utilisation. • Example: 1Gbps, TRTT = 200ms: – BDP: 109 ´0.2 = 25MB. – 65,536 / 25MB = ~0.003% utilisation.
so you wanna increase your rwnd using a window scale option, recommeneded that this is used with paws
what is congestion collapse?
Congestive collapse is the condition in which congestion prevents or limits useful communication. Congestion collapse generally occurs at choke points in the network, where incoming traffic exceeds outgoing bandwidth
what causes congestion? what are the effects of congestion?
Congestion effects: – Higher end-to-end delay. – Lost packets. – Network instability, – Loss of service,
• Causes of congestion: – Buffer overflow in routers. – Unpredictable traffic patterns. – Route changes. – Time-of-day traffic. – etc…
how does tcp reno do congestion control?
slow start (exp) into sawtooth (linear)
restarts at N/2 and increases linearly per RTT
what is jfi? flaw?
Jain’s Fairness Index (JFI): – Widely used. – A “power” measure.
JFI assumes that resources can be consumed equally by systems/flows being measured
Different TCP variants behave differently: –unequal shares of available resources