Copyright (c) 2010-2011 The FreeBSD Foundation All rights reserved. This documentation was written at the Centre for Advanced Internet Architectures, Swinburne University of Technology, Melbourne, Australia by David Hayes under sponsorship from the FreeBSD Foundation. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this l...
NAMEcc_vegas - Vegas Congestion Control Algorithm
DESCRIPTIONThe Vegas congestion control algorithm uses what the authors term the actual and expected transmission rates to determine whether there is congestion along the network path i.e.
- actual rate = (total data sent in a RTT) / RTT
- expected rate = cwnd / RTTmin
- diff = expected - actual
where RTT is the measured instantaneous round trip time and RTTmin is the smallest round trip time observed during the connection.
The algorithm aims to keep diff between two parameters alpha and beta, such that:
- alpha < diff < beta
If diff > beta, congestion is inferred and cwnd is decremented by one packet (or the maximum TCP segment size). If diff < alpha, then cwnd is incremented by one packet. Alpha and beta govern the amount of buffering along the path.
The implementation was done in a clean-room fashion, and is based on the paper referenced in the Sx SEE ALSO section below.
IMPLEMENTATION NOTESThe time from the transmission of a marked packet until the receipt of an acknowledgement for that packet is measured once per RTT. This implementation does not implement Brakmo's and Peterson's original duplicate ACK policy since clock ticks in today's machines are not as coarse as they were (i.e. 500ms) when Vegas was originally designed. Note that modern TCP recovery processes such as fast retransmit and SACK are enabled by default in the TCP stack.
MIB VariablesThe algorithm exposes the following tunable variables in the net.inet.tcp.cc.vegas branch of the sysctl(3) MIB:
- Query or set the Vegas alpha parameter as a number of buffers on the path. When setting alpha, the value must satisfy: 0 < alpha < beta. Default is 1.
- Query or set the Vegas beta parameter as a number of buffers on the path. When setting beta, the value must satisfy: 0 < alpha < beta. Default is 3.
SEE ALSOcc_chd4, cc_cubic4, cc_hd4, cc_htcp4, cc_newreno4, h_ertt4, mod_cc4, tcp(4), khelp(9), mod_cc9
- "L. S. Brakmo" "L. L. Peterson" "TCP Vegas: end to end congestion avoidance on a global internet" "IEEE J. Sel. Areas Commun." "October 1995" "13" "8" "1465-1480"
ACKNOWLEDGEMENTSDevelopment and testing of this software were made possible in part by grants from the FreeBSD Foundation and Cisco University Research Program Fund at Community Foundation Silicon Valley.
HISTORYThe ifconfig congestion control module first appeared in Fx 9.0 .
The module was first released in 2010 by David Hayes whilst working on the NewTCP research project at Swinburne University of Technology's Centre for Advanced Internet Architectures, Melbourne, Australia. More details are available at: