Multiple dpss applications within a single Fedora 14 VM, possible?

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Viktor S. Wold Eide on 12-02-2013 09:26:32 AM
Hi,

I'm trying to run multiple onePK dpss applications at the same time within a single Fedora 14 VM, so far without success. Is this something that should work?

First I tried with a single ./dpss_mp_32-0.6.0.5 process. The configuration file dpss.conf has a "MAX_CLIENTS 4" line, which indicates that it should be possible. However, the second dpss application will not start and just exits. It seems to be a connection refused.

Second, I tried to start another ./dpss_mp_32-0.6.0.5 process connecting to a different IOL router. However, this second ./dpss_mp_32-0.6.0.5 process receives an "bind: Address already in use" and exits.
Regards
Viktor

Subject: RE: Multiple dpss applications within a single Fedora 14 VM, possible?
Replied by: Joseph Clarke on 12-02-2013 11:09:15 AM
Currently, you cannot set MAX_CLIENTS higher than 2.  This is a known limitation.  That should still allow you to connect two applications to the same DPSS main process.  The custom encryption example has two apps running on the same VM using the DPSS.  Take a look at the custom encryption example under /home/cisco/onePK-sdk-c-rel-0.6.0.5/c/sample-apps/CustomEncryption/c to see if that helps clarify things for you.

Subject: RE: Multiple dpss applications within a single Fedora 14 VM, possible?
Replied by: Viktor S. Wold Eide on 13-02-2013 09:26:15 AM
Thanks a lot for the advice Joseph,

The CustomEncryption application was helpful and I got it working when running as user "cisco".

I have been using a separate user account on the Fedora 14 VM and that might have been part of the problem. The CustomEncryption application did not work when I used my own user account. More specifically, everything looked fine until the ./demo.startapps command. The communication from the client to the server was blocked as long as app100 and app101 were running.

Slightly related. I did have some problems with a dpps test application earlier, due to GRE packets being rejected by the Fedora 14 VM iptables setup. I think the GRE packets in that case were caught by the following rule:
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

Subject: RE: Multiple dpss applications within a single Fedora 14 VM, possible?
Replied by: Joseph Clarke on 13-02-2013 11:19:01 AM
Yep, we have been recommending people disable the VM's host firewall by going to System > Administration > Firewall.

Attachments

    Outcomes