Pular para o conteúdo principal

[EN] SRT: The Engineering of Low Latency and Packet Recovery


The SRT (Secure Reliable Transport) protocol transformed the public internet into a viable medium for professional video contribution by replacing the paradigm of unpredictable transport with deterministic latency and intelligent recovery. While TCP-based protocols suffer from Head-of-Line Blocking and pure UDP ignores data integrity, SRT utilizes a selective retransmission mechanism that guarantees the delivery of every frame without interrupting the continuous streaming flow, even under adverse network conditions.

Knowledge Architecture: Study First

To master the fine-tuning and engineering of SRT, it is imperative to understand the pillars that support its technology stack:

Concept: NAK Recovery and Fixed Latency

Unlike TCP, which confirms every received packet (ACK), SRT operates primarily via NAK (Negative Acknowledgement). The receiver monitors packet number sequences in real-time; upon detecting a gap, it immediately sends a "packet not received" signal. The secret of its resilience lies in the configurable latency buffer: the receiver holds packets for a precisely defined time, creating a window of opportunity for retransmissions requested via NAK to arrive and be reordered before playout.

Operation and Internal Structure: SRT

SRT's internal mechanics overlay UDP with a layer of congestion control and high-precision timestamping.
  • TSBPD (Time-Stamped-Based Packet Delivery): Each packet carries a timestamp from the encoder. The receiver uses this data to deliver packets to the application at exactly the same rhythm they were generated, eliminating network jitter.
  • Selective Retransmission: The transmitter keeps a copy of recently sent packets in memory (send buffer). When it receives a NAK, it resends only the missing packets, avoiding the overhead of retransmitting data that has already reached the destination.

Calculating and Adjusting Minimum Latency

Adjusting latency is a video engineer's most critical decision. The value must be calculated based on the network's RTT. The gold standard formula is: Latency = RTT * Multiplier. For stable professional networks, a multiplier of 3 to 4 is used. On unstable or long-distance networks (packet loss above 5%), 5 to 8 is recommended. Why this calculation? A complete retransmission cycle (Detect loss -> Send NAK -> Transmitter receives NAK -> Retransmitted packet arrives) consumes exactly 1 RTT. Setting latency to 4x RTT ensures the protocol has at least four attempts to recover the same packet before playout time expires. If your RTT is 100ms, your safe latency should be at least 400ms. Adjusting below this on jittery networks will result in dropped frames and image artifacts.

To learn more about the subject:


Technical Disclaimer and Intellectual Property Notice

This blog presents analyses and facts based exclusively on technical documentation, RFCs, and publicly available materials on the global computer network. The information contained herein is compiled for strictly educational and technical reference purposes.

Lack of Affiliation: This project is independent and has no official affiliation, endorsement, or link with the developers, companies, or rights holders of the mentioned technologies. All trademarks and logos cited belong to their respective owners.

Liability: The implementation of any protocol or configuration based on these notes is the sole responsibility of the user. The author disclaims any liability arising from the misuse of this information.

Rights and Corrections: We fully respect intellectual property. If you are the rights holder of any material or technology cited here and identify the need for corrections, adjustments, or wish to make official comments, please send a private message directly to the author for immediate resolution.

Comentários

Postagens mais visitadas deste blog

[ES] QUIC: La Evolución de la Capa de Transporte y el Fin del Bloqueo de Fila

El protocolo QUIC representa la evolución definitiva de la capa de transporte, fusionando la agilidad del UDP con la confiabilidad del TCP y la seguridad nativa de TLS 1.3 en una única pila integrada. Diseñado originalmente por Google y ahora estandarizado como RFC 9000, QUIC resuelve la mayor limitación estructural de la internet moderna: el bloqueo de inicio de línea (Head-of-Line Blocking), permitiendo que la web sea no solo más rápida, sino fundamentalmente más resiliente en redes inestables. Arquitectura de Conocimiento: Estudie Antes Para comprender la complejidad de QUIC, es imperativo que haya asimilado los conceptos de: UDP: El motor de transporte sin estado que QUIC utiliza como vehículo. TCP: El paradigma de conexión que QUIC busca optimizar y reemplazar. TLS 1.3: El protocolo de cifrado que es inseparable del transporte en QUIC. Concepto: La Eliminación del Head-of-Line Blocking En el TCP clásico, si un solo paquete de una conexión multiplexada (que cont...

[PT] TCP: O Arquiteto da Confiabilidade em Redes de Dados

Enquanto o Protocolo de Internet (IP) é frequentemente comparado ao sistema de endereçamento de envelopes, o Transmission Control Protocol (TCP) é o serviço de correio registrado que garante que o conteúdo não apenas chegue ao destino, mas chegue na ordem correta e sem corrupção de dados. Em uma rede inerentemente não confiável e baseada em melhor esforço, o TCP atua como a camada lógica que transforma o caos da comutação de pacotes em um fluxo contínuo e ordenado de informações. Ele é um protocolo orientado à conexão, o que significa que antes de qualquer dado ser transmitido, uma sessão formal deve ser estabelecida e mantida entre as duas extremidades. Pré-requisitos e Contexto Técnico Para compreender profundamente o funcionamento do TCP, é recomendável que o leitor esteja familiarizado com os conceitos de endereçamento e roteamento do IP (Internet Protocol) , conforme explorado em nossas publicações anteriores. O TCP opera sobre a camada IP, adicionando a inteligência de contro...

[ES] Jitter: La Ingeniería de la Resiliencia contra la Inestabilidad de la Red

[ES] Jitter: La Ingeniería de la Resiliencia contra la Inestabilidad de la Red El Jitter, técnicamente conocido como Variación del Retraso de Paquetes (PDV), es el enemigo invisible de las comunicaciones en tiempo real, representando la inestabilidad en el tiempo de llegada de los datos al destino. Mientras que una latencia alta y constante (RTT estable) puede compensarse, el Jitter ,la oscilación impredecible de ese retraso, causa distorsiones fatales en flujos de audio y vídeo, exigiendo estrategias sofisticadas de búfer para garantizar la inteligibilidad de la información. Arquitectura de Conocimiento Estudie Antes RTT La base de tiempo sobre la cual se mide el Jitter. UDP El transporte que expone la aplicación directamente al Jitter de la red. Concepto El Origen de la Inconsistencia El Jitter ocurre principalmente en los búferes de los enrutadores intermedios. Cuando el tráfico de internet oscila, los paquetes de una misma llamada de vídeo pueden enfrentar colas de tamaños difer...