Running non http UDP application on Cloud Foundry


Suryaveer Chauhan
 

I have just installed a local CF using CF_NISE_INSTALLER.

I wish to run a SIP application, which runs on PORT 5060 and UDP.
Whatever I have read about CF, I understand that there's a HTTP proxy to route the incoming requests.

Is there a way I can run this application on CF.

I greatly appreciate some help.

Thanks


James Bayer
 

none of the CF routers, either the HTTP gorouter or the upcoming TCP router
[1] support routing UDP.

there is way to turn on "container to container networking" but it's not
advised in a multi-tenant environment because any container can connect to
any other container directly. you would also have to expose each
application host (DEA or Diego Cell) to the outside world if you want
clients to hit it from outside CF.

[1] https://github.com/cloudfoundry-incubator/cf-routing-release

On Fri, Nov 6, 2015 at 1:51 PM, Suryaveer Chauhan <
chauhan.suryaveer(a)gmail.com> wrote:

I have just installed a local CF using CF_NISE_INSTALLER.

I wish to run a SIP application, which runs on PORT 5060 and UDP.
Whatever I have read about CF, I understand that there's a HTTP proxy to
route the incoming requests.

Is there a way I can run this application on CF.

I greatly appreciate some help.

Thanks


--
Thank you,

James Bayer


Atul Kshirsagar
 

Generic UDP routing is kind of hard for multi packet protocols (like SIP or CoAP), you want to make sure packets belonging to same message are routed to same instance of your app. There are two ways to achieve this:
1) Protocol specific UDP routers (stateful) that understand the protocol and can route packets belonging to same message to same instance of your app.
2) Based on source IP route the packets to same instance of app (might not result in most optimal load balancing).

Anyways as James pointed out there is no support for UDP routing in CF. For your use case if it is an option for you to use SIP over tcp then tcp router, which is being developed for CF right now , can be an option for you.

Regards,
Atul