ack_window

The 'ack_window' directive defines the software acknowledgment window size for RTMP streaming sessions.

Syntaxack_window size;
Defaultnone
Context
Arguments1

Description

The 'ack_window' directive in the NGINX RTMP module sets the size of the acknowledgment (ACK) window for RTMP connections. This parameter is crucial for optimizing flow control in streaming, as it determines how many packets can be sent without waiting for acknowledgment from the receiver. A larger acknowledgment window can potentially improve throughput, especially in high-bandwidth scenarios, while a smaller window may reduce memory usage and latency for devices with limited resources.

When configuring the 'ack_window', it is important to consider the nature of the streams being handled. In real-time streaming scenarios, a smaller window size can help with faster delivery of packets as the network congestion increases. Conversely, for high-quality video-on-demand streams with stable connections, a larger acknowledgment window might enhance performance by allowing more packets to be sent and reducing the frequency of acknowledgments. However, adjustments to this parameter should be thoroughly tested to ensure optimal performance in your specific streaming context.

Config Example

ack_window 2000;

Setting the 'ack_window' too large may lead to increased latency in streaming delivery.

If set too small, it may result in frequent acknowledgments, making it inefficient for high-bandwidth streams.

← Back to all directives