Certain aspects of a method and system for an adaptive queue and buffer control based on monitoring and active congestion avoidance in a packet network switch are provided. When memory from a memory source is not available for allocation to one or more adaptive queues in a network device, such as a network switch, the TCP window size associated with the one ore more adaptive queues may be reduced. The window size may be reduced to a target size by utilizing one or more reduction steps, wherein the reduction steps may be programmable. When portions of the memory source become available for allocation to the adaptive queues, the window size may be increased. The window size may be increased to a target size by utilizing one or more increase steps, wherein the increase steps may be programmable.
展开▼