Skip to main content

RTSP faults

An RTSP session carries media in RTP packets. StanagNetSim can interrupt the session or impair those packets over UDP or interleaved TCP. Choose the endpoint according to who should experience the fault.

An RTSP camera streams video through STANAG NetSim to two cloud viewers. The camera input stays steady while delivery to the viewers drops to zero during a destination disconnect.

The shaded interval marks the destination’s disconnect window. The camera keeps streaming into the simulator. After the window ends, each viewer can reconnect and receive video again.

EndpointWhere the fault actsWhere to observe it
RTSP inputOn received RTP, before the input jitter buffer and shared filters. The buffer can absorb some delay or reordering.Compare Original input with a receiving destination. All destinations use this input.
RTSP destinationOn the packetized publication shared by its viewers. A disconnect closes the publication’s current viewer sessions.Observe a viewer connected to this URL. A sibling destination can serve as a comparison.

Set up the session​

  1. In Channel setup, select RTSP and enter an Endpoint name. For an input, enter the upstream stream URL, set Latency (ms) for jitter buffering, and use Prefer TCP when appropriate.
  2. For a destination, enter a bind address, port and path, for example rtsp://0.0.0.0:8554/stream. Select MPEG-TS over RTP or Separate tracks. Separate tracks also exposes the track codec and optional KLV track. Set credentials if your publication requires them.
  3. Save and start the channel. Connect a viewer to the server’s reachable host address using the configured port and path. Verify playback before applying the rule.

Channel setup for an RTSP destination publishing MPEG-TS over RTP on the stream path at port 8554.

Example — interrupt one publication​

Under Live simulation → Transport faults, locate the named destination. Select Add fault → Disconnect, set Active for (s) to 3 and leave Recurring off. With auto apply off, select Apply transport faults. Attach two viewers to this publication and select Run once. Both sessions close. After the window ends, viewers that retry can reconnect. Reopen the stream in a viewer that requires a manual reconnect.

RTSP destination rule editor showing a manual-only disconnect with a three-second duration.

The example shows a saved rule on a stopped channel. Start the channel to enable Run once. To repeat the interruption automatically, enable Recurring. The illustrated timing starts the first window after 10 seconds of media flow and repeats every 20 seconds.

For recovery timing, compare Fault ended at, Peer connected at and the subsequent media-flow timestamp in the endpoint panel. At the viewer, check when decoded playback actually returns. The After simulation monitor taps the shared stream upstream of this publication and can keep playing throughout the interruption.

Exercise packet delivery​

Choose Drop packets, Delay packets, Reorder packets or Corrupt payload to keep the session open while impairing RTP media. Percentage samples eligible packets. K out of every N selects a consecutive burst in each group. For delay, set Added delay (ms). For reorder, set Maximum hold (ms). Compare the viewer’s RTP sequence, payload or decoded playback with a clean run. Endpoint queue overflow has its own counter.

For input experiments, put the rule on Input source and compare the outcome across destinations. For a shared MPEG-TS or KLV change, use the processing filters. Fault placement and filters