UDP (User Datagram Protocol) is an essential transport layer protocol in networking, known for its simplicity and speed. It plays a significant role in broadcasting and streaming applications, including digital TV delivery, where data packet loss can be tolerated but speed and delays are crucial.
One of the key applications of UDP is in the delivery of TV content over multicast networks. This approach is commonly used across a range of sectors, with some of the most prevalent use cases as follows:
Media Address configure the destination of the UDP stream. The format for this address is as follows:
udp://[interface@]address[:port][#options]
In square bracket optional parameters.
interface
- local interface name, such as eth0
. If this field is not defined, the UDP stream will be delivered according to the system routesaddress
- IPv4 address of the multicast group, localhost, or remote host for unicast deliveryport
- network port for UDP delivery. If not specified, the default port 1234
is usedAdditional options can be defined after the #
symbol and are separated by the &
symbol, similar to the parameters in a typical URL. Here are the available options:
socket_size=bytes
- defines custom size of the system socket. If not specified, the default value is taken from the system configuration: sysctl net.core.wmem_default
sync
- enables the transmission of UDP in a separate thread with bitrate syncingno_sync
- disable bitrate syncing if it has been enabled globallycbr=Kbps
- enables bitrate syncing and turns on the insertion of stuffing packets to achieve a constant bitratettl=n
- controls the lifetime of the datagram to prevent it from looping indefinitely due to routing errors. The default value is 32
sap
- turn on SAP. Read more on Session Announcement Protocol for MulticastHere are some examples of how the media address format can be used in different scenarios with Astra:
239.255.0.1
via a specific network interface like eth0
, the address would look like this: udp://[email protected]
239.255.0.2
and you want the system to determine the route (interface), the address would be: udp://239.255.0.2
192.168.1.100
, the address would look like this: udp://192.168.1.100
239.255.0.3
on a specific port, say 5000
, the address would be: udp://239.255.0.3:5000
24000Kbit/s
, the address would be: udp://239.255.0.4#cbr=24000
udp://127.0.0.1:11000
To configure a new UDP output using the Web Interface, begin by selecting "New Stream" from the main menu. Then, in the Output List, click on the gear icon and set the "Output Type" to UDP. Alternatively, you can modify an existing stream by opening its settings, adding a New Output, and clicking on the corresponding gear icon.
Most options presented in the web interface correspond directly to the components of the UDP address, as described in the "Media Address Format" section.