Skip to content
Castreon
Delivery

Network and upload — RIST and SRT without losses, the line protected

Updated 11 Oct 2026

Push outputs (RIST, SRT, RTMP, UDP) and viewers all use the same upload line. From Castreon 1.4.0, the server manages it by itself: it does not let the line fill up, and it gives RIST and SRT outputs room to recover lost packets. Everything is configured in Settings → Network and upload (all plans).

Why it matters

RIST and SRT resend the packets that get lost on the way. After a short line drop (a second or two), every output has to resend everything that was lost at once — for a few moments, several times its bitrate.

  • Without any protection, when all outputs do this together, the line fills up. The queue builds up in the router, which drops packets from every stream; the receivers ask for even more retransmissions, and some routers stop responding altogether.
  • With a tight limit on each output, the line no longer fills up, but the retransmissions after a drop no longer fit: the receiver is left with packets lost for good, and viewers see a broken picture.

Castreon solves both problems with a shaper on the server: the server never sends more than the line can carry, and the bandwidth is shared fairly between streams. Retransmissions after a drop use the free bandwidth without harming the others, so the limit of each output can stay wide.

The settings

Setting What it means
Line upload (Mbit/s) the line's upload speed, from the contract. If you are not sure, measure it at night over a cable and enter a slightly lower value
Line shaper On (recommended) keeps all server traffic below the line
Card to the internet usually Automatic — the card of the default route
Shaper at (% of upload) 95 % by default — leaves room for PPPoE / VLAN headers and for line variations
RIST / SRT retransmission limit Automatic (recommended), Manual or No limit — see below

The shaper applies as soon as you save. If the value you entered would sit below what the server is sending at that moment (for example 100 instead of 1000), the panel asks you to confirm before saving.

The retransmission limit

Mode Limit of each RIST output SRT
Automatic, with the shaper active bitrate × 4 + 2 Mbit/s — full recovery after short drops; the line is protected by the shaper resends at most once more the bitrate (maxbw=0&oheadbw=100)
Automatic, without the shaper (upload not set) bitrate × 3 + 1.5 Mbit/s — a compromise as above
Manual bitrate × the chosen factor (1.5–10) + 1 Mbit/s as above; below ×2, less
No limit the RIST default (100 Mbit/s per stream), as up to Castreon 1.3.6 nothing set by Castreon

The bitrate comes from the profile when the channel is transcoded and from the measured peak when the picture is copied (on the first start of a new channel, while it is being measured, the limit is provisional).

The limit applies when the channel starts. After changing the upload, the shaper or the limit, press Apply now: the channels with RIST / SRT outputs restart one at a time, 3 seconds apart, and get the new limit. Otherwise they get it at their next restart.

A limit you write yourself in the output address is kept: RIST bandwidth=… in kbps, SRT maxbw=… in bytes per second. Never set the RIST limit below the channel bitrate — recovery would stop completely.

What you see in the panel

  • Settings → Network and upload: how much the server is sending now and what percentage of the line, the shaper's state (card, type, rate), the packets dropped by the shaper (when the line was full) and the policy that channels get when they start.
  • On each RIST output, on the channel page: the retransmissions requested by the receiver and Refused by the limit — the retransmissions the limit did not let go out.
  • Alerts: RIST limit cuts recovery (retransmissions refused in the last minute — the receiver may lose packets) and the line is almost full (upload above 90 % of the line for a whole minute). The channel alert also reaches notifications, in the Push outputs family.
  • The channel log shows at every start the applied policy and the limit of each RIST and SRT output.

The RIST buffer — the same at both ends

Buffer / latency is the time RIST has to recover a packet. Each end has its own buffer: the sender keeps the packets it has sent only as long as its own buffer says. Set the same value at the sender and at the receiver. A larger buffer (for example 4000–8000 ms) leaves more time for recovery — the retransmissions after a drop spread over several seconds and need less bandwidth at once —, at the cost of a longer delay on that stream.

Technical requirements

  • The shaper uses Linux traffic control: CAKE (recommended; included in Linux kernels 4.19 and newer, for example Ubuntu 20.04, 22.04, 24.04) or, if it is missing, HTB with fq_codel. The tc command comes from the iproute2 package.
  • The Castreon service must be allowed to configure the network card. The standard installation runs as root, so it works right away. If you run Castreon with a dedicated user, add the CAP_NET_ADMIN capability:
sudo mkdir -p /etc/systemd/system/castreon.service.d
printf '[Service]\nAmbientCapabilities=CAP_NET_ADMIN\n' | sudo tee /etc/systemd/system/castreon.service.d/net-admin.conf
sudo systemctl daemon-reload && sudo systemctl restart castreon
  • Castreon never touches a traffic configuration someone else has put on the same card — the panel then tells you why the shaper is not active. If the card is restarted (for example by the network), Castreon puts the shaper back within seconds. When you turn the shaper off, the card goes back to the system's configuration.

Privacy

Cookies & local storage

Strictly necessary cookies are always active. Analytics and marketing use Google services and only start if you accept them — until then nothing is sent to Google. You can withdraw your consent here at any time.

Strictly necessary

Without them, sign-in, forms and your chosen language don’t work. They don’t require consent (§ 25(2) no. 2 TDDDG).

Always active
Name Purpose Duration Type
castreon-session Keeps your session: sign-in and chosen language 2 hours, renewed on every visit Cookie
XSRF-TOKEN Protects forms against forged requests 2 hours, renewed on every visit Cookie
remember_web_… Only if you tick “Remember me” at sign-in Until you sign out, max. 400 days Cookie
__cf_bm Cloudflare: tells visitors and bots apart, only when traffic is being checked 30 minutes Cookie · Cloudflare
castreon:consent Remembers your cookie choice 12 months Local storage
theme Customer account appearance: light, dark or system Until you change it Local storage

Analytics

Google Analytics 4 (Google Ireland Ltd.): which pages are visited, where visits come from and on which type of device — with pseudonymous identifiers, without storing your IP address. Helps us improve the website.

Name Purpose Duration Type
_ga Google Analytics: recognises the visitor (pseudonymous ID) 13 months Cookie · Google Analytics
_ga_VHWQRPHPEF Google Analytics: keeps the state of the visit 13 months Cookie · Google Analytics

Marketing

Google Ads (Google Ireland Ltd.): measures whether visits from Google ads lead to a trial or a plan, and allows Castreon ads to be shown on other websites (remarketing).

Name Purpose Duration Type
_gcl_au, _gcl_aw Google Ads: links the visit to the ad click (conversions) 90 days Cookie · Google Ads
IDE, test_cookie Google Ads: remarketing and ad measurement, on Google domains (doubleclick.net) Up to 13 months Cookie · Google (third party)