Product Documentation

Application Layer Gateway for RTSP Protocol

Aug 30, 2016

Real Time Streaming Protocol (RTSP) is an application-level protocol for the transfer of real-time media data. Used for establishing and controlling media sessions between end points, RTSP is a control channel protocol between the media client and the media server. The typical communication is between a client and a streaming media server.

Streaming media from a private network to a public network requires translating IP addresses and port numbers over the network. NetScaler functionality includes an Application Layer Gateway (ALG) for RTSP, which can be used with Large Scale NAT (LSN) to parse the media stream and make any necessary changes to ensure that the protocol continues to work over the network.

How IP address translation is performed depends on the type and direction of the message, and the type of media supported by the client-server deployment. Messages are translated as follows:

  • Outbound request—Private IP address to NetScaler-owned public IP address called LSN IP address.
  • Inbound response—LSN IP address to private IP address.
  • Inbound request—No translation.
  • Outbound response—Private IP address to LSN pool IP address.

Limitations of RTSP ALG

The RTSP ALG does not support the following:

  • Multicast RTSP sessions
  • RTSP session over UDP
  • Admin partitions
  • NetScaler clusters
  • RTSP Authentication
  • HTTP tunneling

Configuring RTSP ALG

Configure RTSP ALG as part of the LSN configuration. For instructions on configuring LSN, see Configuring DS-Lite. While configuring LSN, make sure that you:

  • Set the following parameters while adding an LSN application profile:
    • IP Pooling = PAIRED
    • Address and Port Mapping = ENDPOINT-INDEPENDENT
    • Filtering = ENDPOINT-INDEPENDENT

 

  • Enable RTSP ALG in the LSN group
  • Create a RTSP ALG profile and bind the RTSP ALG profile to the LSN group

To enable RTSP ALG for an LSN configuration by using the NetScaler command line

At the command prompt, type:

  • add lsn group <groupname> -clientname <string> [-rtspalg ( ENABLED | DISABLED )]
  • show lsn group <groupname>

To enable RTSP ALG for an LSN configuration by using the NetScaler command line

At the command prompt, type:

  • add lsn rtspalgprofile <rtspalgprofilename> [-rtspIdleTimeout <positive_integer>] -rtspportrange <port[-port]> [-rtspTransportProtocol (TCP|UDP)]
  • show lsn rtspalgprofile <rtspalgprofilename>

Sample RTSP ALG Configuration

The following sample DS-Lite configuration, RTSP ALG is enabled for TCP traffic from B4 devices in the network 2001:DB8::4:0/96.

Sample RTSP ALG Configuration 복사

> add lsn client LSN-DSLITE-CLIENT-5

Done

> bind lsn client LSN-DSLITE-CLIENT-5 -network6 2001:DB8::4:0/96

Done

> add lsn pool LSN-DSLITE-POOL-5

Done

> bind lsn pool LSN-DSLITE-POOL-5 203.0.113.61 - 203.0.113.70

Done

> add lsn ip6profile LSN-DSLITE-PROFILE-5 -type DS-Lite -network6 2001:DB8::5:6

Done

> add lsn appsprofile LSN-DSLITE-APPS-PROFILE-5 TCP -ippooling PAIRED –mapping ENDPOINT-INDEPENDENT -filtering ENDPOINT-INDEPENDENT

Done

> add lsn rtspalgprofile RTSPALGPROFILE-5 -rtspIdleTimeout 1000 -rtspportrange 554 

Done

> add lsn group LSN-DSLITE-GROUP-5 -clientname LSN-DSLITE-CLIENT-5 -portblocksize 1024 -ip6profile LSN-DSLITE-PROFILE-5 -rtspalg ENABLED

Done

> bind lsn group LSN-DSLITE-GROUP-5 -poolname LSN-DSLITE-POOL-5

Done

> bind lsn group LSN-DSLITE-GROUP-5 -appsprofilename LSN-DSLITE-APPS-PROFILE-5

Done

> bind lsn group LSN-DSLITE-GROUP-5 -rtspalgprofilename RTSPALGPROFILE-5

Done