ENPTES Free trial

SRT in practice: latency, modes and passphrase

An SRT link has four settings that the two ends must agree on. This page is the reference for each one.

Short answer

Set the SRT latency to three to four times the round-trip time between the two ends, never below 120 ms, and use the same value on both sides. Make the listener the end that can be reached from outside on a UDP port and the caller the other end. Use the same passphrase on both ends, and fill in the Stream ID only when the receiving server asks for one.

The Program monitor of NWK Live Production with a sports broadcast on air and the scoreboard over the picture
The Program monitor of NWK Live Production with a sports broadcast on air and the scoreboard over the picture
On this page
  1. Latency: how to choose the number
  2. The two ends and the larger value
  3. Caller and listener
  4. Passphrase
  5. Stream ID
  6. Where each setting is in NWK Live Production
  7. Related questions

Latency: how to choose the number

The SRT latency is the time each packet waits before it is delivered. During that time a lost packet can be asked for and sent again. The protocol document recommends three to four times the round-trip time (RTT) between the two ends and gives 120 ms as the minimum.

  1. Measure the round-trip time with a ping from one end to the other, on the lines that will be used, at a time of day close to the event.
  2. Multiply the highest value you saw by four.
  3. If the result is below 120 ms, use 120 ms or more.
  4. Add margin when one of the ends is on a cellular network or on a shared line, where the round-trip time changes from minute to minute.

The two ends and the larger value

Each end has its own latency field. According to the protocol document, the connection uses the larger of the two values. A low value on one side does not lower the latency of the link if the other side asks for more, and that is a common reason for a link that has more delay than the operator expected.

Caller and listener

The mode says who starts the connection. It does not say who sends the video: a listener can send or receive.

One end is the listener and the other is the caller. Two callers or two listeners never connect. The step-by-step for two sites is in send a signal from one site to another over SRT, and the causes of a link that does not open are in SRT does not connect.

Passphrase

The passphrase turns on the encryption of the link. The protocol document says the receiver must know the passphrase the sender uses: the two ends type exactly the same text, with the same capital letters and no space at the end.

  • Use a passphrase on every link that crosses the internet. An open listener accepts whoever finds the port.
  • Use a long random text, not the name of the event.

Stream ID

The Stream ID is a text that the caller sends when it connects. The protocol document limits it to 512 characters and describes its purpose: the listener reads the Stream ID and decides whether to accept the connection and what to do with it. A server that receives several streams on the same port uses the Stream ID to tell them apart.

Where each setting is in NWK Live Production

SettingSRT input (receive)SRT destination (send the Program)
ModeConnection: Pull the signal from an address (caller) or Wait for the sender on this computer (listener)The template: SRT (send to a server) or SRT (wait for connection)
Address and portAddress and PortServer (URL)
LatencyLatency (ms). The default is 200 msSet the latency on the receiver
PassphrasePassword, optional, 10 to 79 charactersSRT password, optional, 10 to 79 characters
Stream IDStream ID, optionalAdded to the address as &streamid=…

For the input, NWK indicates 200 ms on the local network and 500 to 2000 ms over the internet, the same as the sender. The gear on the thumbnail changes the address, the port, the latency, the password or the Stream ID, and the Reconnect button applies the change. See receive video over SRT and stream over SRT.

Related questions

What is a good SRT latency over the internet?

Three to four times the round-trip time between the two ends, with 120 ms as the minimum, according to the protocol document.

Do both ends need the same SRT latency?

The connection opens with different values and uses the larger of the two, according to the protocol document. Writing the same value on both ends avoids a link with more delay than you planned.

Does the SRT listener send or receive?

Either. Caller and listener only say who starts the connection.

In the NWK help center

Sources and references

Written and reviewed by the NWK Live Production team (Setor 360 Tecnologia e Eventos Ltda). Published .

NWK receives SRT as an input and sends the Program over SRT as a destination, in caller or listener mode, with optional password.

Try NWK free for 7 days