Forum Discussion
kuhn_52743
Nimbostratus
Jul 21, 2009RTSP/TCP connection merging
Hello,
I am new to iRules and want to know if it is possible to do something like this:
I have a pool member that is a media streaming server, so clients usually connect to it using RTSP over TCP to establish streaming sessions.
What I want to do is have a client connect as usual, but have a separate client (which may or may not be on the same host) connect on a separate TCP connection. This second client wants to issue commands to control the RTSP session that was opened by the first client. The server doesn't support this - it needs to view everything over a single RTSP/TCP connection.
Wondering if I can write an iRule to "merge" the two client side RTSP/TCP connections, into a single server side connection. So if either client sends an RTSP command, it would get forwarded on to the server using a shared server side TCP connection. When the server responded, the iRule would have to "route" the response to the correct client side connection.
The two clients could be assumed to use a common session id in the RTSP urls, so the iRule would be able to parse the URL to make the association between the two clients (in other words, to know that those two client connections need to get merged to the same server side connection.)
Anybody ever do anything similar to this?
- Colin_Walker_12Historic F5 AccountThat sounds pretty complex, more on sorting out the logic of when to actually forward all information to one connection vs. only forwarding some information than on actually executing on that logic.
- Colin_Walker_12Historic F5 AccountIf all you're looking for is to multiplex to the back end, then all you'd really need to do is turn on OneConnect. OneConnect holds open and re-uses connections made to the back end servers while managing new connections to the clients as they connect, to cut down on TCP overhead for the servers.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects