Forum Discussion

albert_forster_'s avatar
albert_forster_
Icon for Nimbostratus rankNimbostratus
Mar 31, 2005

Session Persistency via Irules using RTSP

Hi,

 

 

we have the following problem (challenge):

 

 

we have to route RTSP streaming requests to a particular Helix Server based on a field value contained in the RTSP methods.

 

 

For example if we start with streaming the first method is the OPTION method, which does not contain full URL:

 

 

OPTIONS rtsp://158.226.219.222:554 RTSP/1.0

 

 

The following RTSP methods however contain the full URL, e.g.

 

 

DESCRIBE rtsp://158.226.219.222:554/real9video.rm?msisdn=022222220&transid=8767882&plan=pre&opcoid=CUSTOMER&iver=3&gtime=1112096056&tokenname=opco1&guid=6834bee082744027ffa30003ba17d11c&life=0&key=5ED2B43301E4FDF4F5E0D1BAF38CA1FE RTSP/1.0

 

 

What we want to do is, everytime when a request comes to the F5 LB, the LB should analyze the URL and if e.g plan=pre, then the request shall be transferred to a particular pool member (Helix Server).

 

 

How can we define the appropriate IRule for this? We deactivated the HTTP profile on the LB to enable "native" RTSP streaming so that we don't have access to the HTTP methods for the IRule.

 

 

Probably we have to use the TCP (e.g. payload) method or something else.

 

 

We tried different things but it does not work properly.

 

 

Any ideas would be greatful.

 

 

Thanks a lot

 

 

Osman (osman.oendogan@siemens.com)

3 Replies

  • Anthony_King_85's avatar
    Anthony_King_85
    Historic F5 Account
    You have two options:

     

     

    1) Write a TCP payload iRule to parse the DESCRIBE method and make the appropriate LB decision (as you suggested).

     

     

    2) Wait for the forthcoming RTSP filter currently under prototype. It is being considered for the summer release. This filter will allow you to do exactly what you want easily using RTSP iRule events/commands.
  • Hi, when u said use tcp_payload to parse the DESCRIBE method, what did you mean by that? Do you have any rule example that i can refer? As i am facing the same problem with rtsp that use OPTION follow by DESCRIBE. Thanks
  • unRuleY_95363's avatar
    unRuleY_95363
    Historic F5 Account
    Try searching the forum for examples. The TCP payload approach is quite involved and I'd highly recommend using the native rtsp support provided with the rtsp profile.