Menu

Problem with Client / server sample applicati

Help
2008-01-07
2013-06-04
  • Hemanshu Patel

    Hemanshu Patel - 2008-01-07

    Dear users,
    I am having difficulties in using Opendiameter.

    I have installed ACE-5.6
                     Boost 1_34
                     Xercex*_2-7
                     Opendiameter-1.0.7-i

    Everything goes well, and i have followed everything given in Dosc, including setting of Environment variables,etc.
    Now when i go to start sample server it gives following message

    [root@localhost libdiameter]# ./aaa_test_server1
    ./aaa_test_server1: error while loading shared libraries: libACEXML-5.6.so: cannot open shared object file: No such file or directory
    [root@localhost libdiameter]#                                 

    I have check for file name libACEXML-5.6.so, it is there in /usr/local/lib , i have included this folder in $PATH variable as well, yet it shows above mentioned msg.

    Please help regarding this, how can i start sample client and Server application.

    Regards,

    Hemanshu Patel

     
    • bhargav bhatkalkar

      dear friends
      i am a newlearner of open diameter software
      i have installed the open diameter - i version and i did not have any problem in installation.
      now when i run client/server sample applications in /libdiameter i am getting out put something like this

      (10534|3086493392) Starting diameter core
      (10534|3086493392)             Product :
      (10534|3086493392)             Version : 0
      (10534|3086493392)           Vendor Id : 0
      (10534|3086493392)  Vendor Specific Id : (10534|3086493392)      Vendor=--- ---
      (10534|3086493392)  Vendor Specific Id : (10534|3086493392)      Vendor=--- ---
      (10534|3086493392)          Dictionary :
      (10534|3086493392)            Identity :
      (10534|3086493392)               Realm :
      (10534|3086493392)          TCP Listen : 0
      (10534|3086493392)         SCTP Listen : 0
      (10534|3086493392)   Watch-Dog timeout : 0
      (10534|3086493392)            Use IPv6 : 0
      (10534|3086493392) Re-transmission Int : 0
      (10534|3086493392)    Max Re-trans Int : 0
      (10534|3086493392)    Recv Buffer Size : 2048
      (10534|3086493392) Dumping Peer Table
      (10534|3086493392)      Expire Time 0
      (10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
      (10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
      (10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
      (10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
      (10534|3086493392)  Dumping Route Table
      (10534|3086493392)            Exp Time : 0
      (10534|3086493392)              Route  : Realm = , Action = 0, Redirect-Usage = 0
      (10534|3086493392)                       Application Id=0, Vendor=0
      (10534|3086493392)                          Server = , metric = 0
      (10534|3086493392)      Default Route
      (10534|3086493392)              Route  : Realm = , Action = 0, Redirect-Usage = 0
      (10534|3086493392)                       Application Id=0, Vendor=0
      (10534|3086493392)                          Server = , metric = 0
      (10534|3086493392)            Max Sess : 0
      (10534|3086493392)  Auth Stateful Auth : stateless
      (10534|3086493392)     Auth Session(T) : 0
      (10534|3086493392)    Auth Lifetime(T) : 0
      (10534|3086493392)       Auth Grace(T) : 0
      (10534|3086493392)       Auth Abort(T) : 0
      (10534|3086493392)     Acct Session(T) : 0
      (10534|3086493392)    Acct Interim Int : 0
      (10534|3086493392)      Acct Real-Time : 0
      (10534|3086493392)           Debug Log : disabled
      (10534|3086493392)           Trace Log : disabled
      (10534|3086493392)            Info Log : disabled
      (10534|3086493392)         Console Log : disabled
      (10534|3086493392)          Syslog Log : disabled
      terminate called without an active exception
      Aborted

      i cannot see anything set in the output.
      i have used the xml file called libdiameter/config/agent.local.xml and the structure is like this

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE configuration SYSTEM "configuration.dtd">
      <configuration>
         <general>
            <product>Open Diameter</product>
            <version>1</version>
            <vendor_id>0</vendor_id>

      <supported_vendor_id>0</supported_vendor_id>
            <supported_vendor_id>1</supported_vendor_id>
            <auth_application_id>1</auth_application_id>
            <auth_application_id>2</auth_application_id>
            <auth_application_id>10000</auth_application_id>
            <auth_application_id>20000</auth_application_id>
            <acct_application_id>3</acct_application_id>
            <acct_application_id>4</acct_application_id>
            <vendor_specific_application_id>
                <vendor_id>31</vendor_id>
                <auth_application_id>1</auth_application_id>
            </vendor_specific_application_id>
            <vendor_specific_application_id>
                <vendor_id>41</vendor_id>
                <acct_application_id>6</acct_application_id>
            </vendor_specific_application_id>
         </general>
         <parser>
            <dictionary>config/dictionary.xml</dictionary>
         </parser>
         <transport_mngt>
            <identity>proxy.inter     mediate.net</identity>
            <realm>intermediate.net</realm>
            <tcp_listen_port>1812</tcp_listen_port>
            <sctp_listen_port>1813</sctp_listen_port>
            <use_ipv6>0</use_ipv6>
            <watchdog_timeout>4</watchdog_timeout>
            <reconnect_interval>30</reconnect_interval>
            <reconnect_max>3</reconnect_max>
            <request_retransmission_interval>10</request_retransmission_interval>
            <max_request_retransmission_count>3</max_request_retransmission_count>
            <receive_buffer_size>2048</receive_buffer_size>
            <advertised_hostname>agent1.isp.net</advertised_hostname>
            <peer_table>
                <expiration_time>1</expiration_time>
                <peer>
                    <hostname>server.isp.net</hostname>
                    <port>1811</port>
                    <tls_enabled>0</tls_enabled>
                </peer>
                <peer>
                    <hostname>nas.access1.net</hostname>
                    <port>1811</port>
                    <tls_enabled>0</tls_enabled>
                </peer>
                <peer>
                    <hostname>nas.access2.net</hostname>
                    <port>1811</port>
                    <tls_enabled>0</tls_enabled>
                </peer>
                <peer>
                    <hostname>nas.access3.net</hostname>
                    <port>1811</port>
                    <tls_enabled>0</tls_enabled>
                </peer>
            </peer_table>
            <route_table>
                <expire_time>0</expire_time>
                <route>
                   <realm>access1.net</realm>
                   <role>0</role>
                   <redirect_usage>0</redirect_usage>
                   <application>
                      <application_id>0</application_id>
                      <vendor_id>0</vendor_id>
                      <peer_entry>
                          <server>nas.access1.net</server>
                          <metric>2</metric>
                      </peer_entry>
                   </application>
                   <application>
                      <application_id>1</application_id>
                      <vendor_id>0</vendor_id>
                      <peer_entry>
                          <server>nas.access1.net</server>
                          <metric>2</metric>
                      </peer_entry>
                      <peer_entry>
                          <server>nas2.access1.net</server>
                          <metric>4</metric>
                      </peer_entry>
                      <peer_entry>
                          <server>nas3.access1.net</server>
                          <metric>5</metric>
                      </peer_entry>
                   </application>
                </route>
                <route>
                   <realm>access2.net</realm>
                   <role>1</role>
                   <redirect_usage>6</redirect_usage>
                   <application>
                      <application_id>1</application_id>
                      <vendor_id>0</vendor_id>
                      <peer_entry>
                          <server>nas.access2.net</server>
                          <metric>2</metric>
                      </peer_entry>
                   </application>
                </route>
                <route>
                   <realm>access3.net</realm>
                   <role>0</role>
                   <redirect_usage>0</redirect_usage>
                   <application>
                      <application_id>0</application_id>
                      <vendor_id>6</vendor_id>
                      <peer_entry>
                          <server>nas.access3.net</server>
                          <metric>2</metric>
                      </peer_entry>
                      <peer_entry>
                          <server>nas2.access3.net</server>
                          <metric>4</metric>
                      </peer_entry>
                      <peer_entry>
                          <server>nas3.access3.net</server>
                          <metric>5</metric>
                      </peer_entry>
                   </application>
                   <application>
                      <application_id>1</application_id>
                      <vendor_id>0</vendor_id>
                      <peer_entry>
                          <server>nas.access3.net</server>
                          <metric>2</metric>
                      </peer_entry>
                      <peer_entry>
                          <server>nas2.access3.net</server>
                          <metric>4</metric>
                      </peer_entry>
                      <peer_entry>
                          <server>nas3.access3.net</server>
                          <metric>5</metric>
                      </peer_entry>
                   </application>
                </route>
                <default_route>
                   <realm>access1.net</realm>
                   <role>0</role>
                   <redirect_usage>0</redirect_usage>
                   <application>
                      <application_id>0</application_id>
                      <vendor_id>0</vendor_id>
                      <peer_entry>
                          <server>nas.access1.net</server>
                          <metric>4</metric>
                      </peer_entry>
                 </application>
      </transport_mngt>
         <session_mngt>
            <max_sessions>10000</max_sessions>
            <auth_sessions>
               <stateful>1</stateful>
               <session_timeout>30</session_timeout>
               <lifetime_timeout>360</lifetime_timeout>
               <grace_period_timeout>30</grace_period_timeout>
               <abort_retry_timeout>20</abort_retry_timeout>
            </auth_sessions>
            <acct_sessions>
               <session_timeout>30</session_timeout>
               <interim_interval>5</interim_interval>
               <realtime>1</realtime>
            </acct_sessions>
         </session_mngt>
         <log>
            <flags>
               <debug>enabled</debug>
               <trace>enabled</trace>
               <info>enabled</info>
            </flags>
            <target>
               <console>enabled</console>
               <syslog>enabled</syslog>
            </target>
         </log>
      </configuration>

      can anybody please help me to find out how to make the stuff work please
      thanks in prior
      bhargav.bhatkalkar

       

       
      • bhargav bhatkalkar

        hi all
        i have installed open diameter-1.0.7-h version succesfully. when i started testing of client2 and server2 sample programmes in libdiametr i fell in problems.
        actually i am a little confused about configuration files-isp.local.xml and nas1.local.xml.
        my details are as bellow

        i am using two pc both are installed with open diameter and fedora
        for  CLIENT  test i am using following details in configuration files

        1.identity-bhargav
        2.realm-linux173[the name of server pc]
        2.TCP port-1811
        3.TLS-0

        in peer table the below details

        1.hostname-linux173
        2.port-1812
        3.TLS enabled-0

        in root table the below  details
        1.realm-linux173[name of server pc]
        2.server-linux173
        and remaining things are as before.

        for SERVER testing i am using following details in configuration files

        1.identity-linux173
        2.realm-bhargav[the name if client pc]
        2.TCP port-1812
        3.TLS-0

        in peer table the below details

        1.hostname-bhargav
        2.port-1811
        3.TLS enabled-0

        in root table the below  details
        1.realm-bhargav[name of client pc]
        2.server-bhargav
        and remaining things are as before.

        so do help me in configuring the configuration files of both server and client.
        i have traid a lot of variation but i am not able to find the correct out put.
        if i have to specify any other realm then how?cause i dont have any extension[ex:aaa.abc.com]to my both pc's host name.
        the error what i am right now getting  is as below

        for client test

        [root@bhargav libdiameter]# ./aaa_sample_client2
        (26101|3086001872) Starting diameter core
        (26101|3086001872)             Product : Open Diameter
        (26101|3086001872)             Version : 1
        (26101|3086001872)           Vendor Id : 0
        (26101|3086001872)    Supported Vendor : 0
        (26101|3086001872)    Supported Vendor : 1
        (26101|3086001872)    Auth Application : 1
        (26101|3086001872)    Auth Application : 2
        (26101|3086001872)    Auth Application : 10000
        (26101|3086001872)    Acct Application : 3
        (26101|3086001872)    Acct Application : 4
        (26101|3086001872)    Acct Application : 20000
        (26101|3086001872)  Vendor Specific Id :  Auth=1  Acct=4
        (26101|3086001872)                        Vendor=31
        (26101|3086001872)                        Vendor=32
        (26101|3086001872)                        Vendor=33
        (26101|3086001872)  Vendor Specific Id :  Auth=5  Acct=6
        (26101|3086001872)                        Vendor=41
        (26101|3086001872)                        Vendor=42
        (26101|3086001872)                        Vendor=43
        (26101|3086001872)          Dictionary : config/dictionary.xml
        (26101|3086001872)            Identity : bhargav
        (26101|3086001872)               Realm : linux173
        (26101|3086001872)          TCP Listen : 1811
        (26101|3086001872)          TLS Listen : 0
        (26101|3086001872)   Watch-Dog timeout : 1
        (26101|3086001872)   Request Retry Int : 10
        (26101|3086001872)   Max Request Retry : 3
        (26101|3086001872)      Retry interval : 30
        (26101|3086001872)  Peer Table :
        (26101|3086001872)                Peer : Host = linux173, Port = 1812, TLS = 0
        (26101|3086001872)  Route Table:
        (26101|3086001872)              Route  : Realm = linux173, Action = 0, Redirect-Usage = 0
        (26101|3086001872)                       Application Id=0, Vendor=0
        (26101|3086001872)                          Server = linux173, metric = 0
        (26101|3086001872)                       Application Id=1, Vendor=0
        (26101|3086001872)                          Server = linux173, metric = 1
        (26101|3086001872)  Default Route:
        (26101|3086001872)              Route  : Realm = root@linux173 , Action = 0, Redirect-Usage = 0
        (26101|3086001872)                       Application Id=1, Vendor=0
        (26101|3086001872)                          Server = linux173, metric = 4
        (26101|3086001872)       Stateful Auth : 1
        (26101|3086001872)          Session(T) : 30
        (26101|3086001872)         Lifetime(T) : 360
        (26101|3086001872)            Grace(T) : 30
        (26101|3086001872)            Abort(T) : 20
        (26101|3086001872)            Max Sess : 10000
        (26101|3086001872)          Session(T) : 30
        (26101|3086001872)    Interim Interval : 5
        (26101|3086001872)  Real-Time Required : 1
        (26101|3086001872)           Debug Log : disabled
        (26101|3086001872)           Trace Log : disabled
        (26101|3086001872)            Info Log : disabled
        (26101|3086001872)         Console Log : enabled
        (26101|3086001872)          Syslog Log : disabled
        (26101|3086001872) Listening at 1811
        (26101|3086001872) Connection attempt to linux173:1812
        (26101|94469008) ACE transport error: Connection refused
        (26101|94469008) Transport interface error: Connector [111=Connection refused]
        ACE_INET_Addr::ACE_INET_Addr: dynamic.peer.com: Success
        (26101|3086001872) Connection attempt to dynamic.peer.com:1812
        Waiting till this AAA has connectivity
        (26101|120830864) ACE transport error: Connection refused
        (26101|120830864) Transport interface error: Connector [111=Connection refused]
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity
        Waiting till this AAA has connectivity

        for server test

        [root@LINUX173 libdiameter]# ./aaa_sample_server2
        (4742|46912508760608) Starting diameter core
        (4742|46912508760608)             Product : Open Diameter
        (4742|46912508760608)             Version : 1
        (4742|46912508760608)           Vendor Id : 0
        (4742|46912508760608)    Supported Vendor : 0
        (4742|46912508760608)    Supported Vendor : 1
        (4742|46912508760608)    Auth Application : 1
        (4742|46912508760608)    Auth Application : 2
        (4742|46912508760608)    Auth Application : 10000
        (4742|46912508760608)    Acct Application : 3
        (4742|46912508760608)    Acct Application : 4
        (4742|46912508760608)    Acct Application : 20000
        (4742|46912508760608)  Vendor Specific Id :  Auth=1  Acct=4
        (4742|46912508760608)                        Vendor=31
        (4742|46912508760608)                        Vendor=32
        (4742|46912508760608)                        Vendor=33
        (4742|46912508760608)  Vendor Specific Id :  Auth=5  Acct=6
        (4742|46912508760608)                        Vendor=41
        (4742|46912508760608)                        Vendor=42
        (4742|46912508760608)                        Vendor=43
        (4742|46912508760608)          Dictionary : config/dictionary.xml
        (4742|46912508760608)            Identity : linux173
        (4742|46912508760608)               Realm : linux173
        (4742|46912508760608)          TCP Listen : 1812
        (4742|46912508760608)          TLS Listen : 0
        (4742|46912508760608)   Watch-Dog timeout : 4
        (4742|46912508760608)   Request Retry Int : 10
        (4742|46912508760608)   Max Request Retry : 3
        (4742|46912508760608)      Retry interval : 30
        (4742|46912508760608)        Host IP Addr : 192.168.1.100:0
        (4742|46912508760608)        Host IP Addr : 192.168.1.101:0
        (4742|46912508760608)        Host IP Addr : 192.168.1.102:0
        (4742|46912508760608)  Peer Table :
        (4742|46912508760608)                Peer : Host = bhargav, Port = 1811, TLS = 0
        (4742|46912508760608)  Route Table:
        (4742|46912508760608)              Route  : Realm = bhargav, Action = 0, Redirect-Usage = 0
        (4742|46912508760608)                       Application Id=0, Vendor=0
        (4742|46912508760608)                          Server = bhargav, metric = 0
        (4742|46912508760608)                       Application Id=1, Vendor=0
        (4742|46912508760608)                          Server = bhargav, metric = 1
        (4742|46912508760608)  Default Route:
        (4742|46912508760608)       Stateful Auth : 0
        (4742|46912508760608)          Session(T) : 30
        (4742|46912508760608)         Lifetime(T) : 360
        (4742|46912508760608)            Grace(T) : 30
        (4742|46912508760608)            Abort(T) : 20
        (4742|46912508760608)            Max Sess : 10000
        (4742|46912508760608)          Session(T) : 30
        (4742|46912508760608)    Interim Interval : 5
        (4742|46912508760608)  Real-Time Required : 1
        (4742|46912508760608)           Debug Log : enabled
        (4742|46912508760608)           Trace Log : enabled
        (4742|46912508760608)            Info Log : enabled
        (4742|46912508760608)         Console Log : enabled
        (4742|46912508760608)          Syslog Log : enabled
        name = PROXYABLE-ERROR, code = 0, applid = 0
        name = NON-PROXYABLE-ERROR, code = 0, applid = 0
        name = Example, code = 9999999, applid = 0
        name = Abort-Session, code = 274, applid = 0
        name = Capabilities-Exchange, code = 257, applid = 0
        name = Device-Watchdog, code = 280, applid = 0
        name = Disconnect-Peer, code = 282, applid = 0
        name = Re-Auth, code = 258, applid = 0
        name = Session-Termination, code = 275, applid = 0
        name = AA, code = 265, applid = 1
        name = AA-Mobile-Node, code = 260, applid = 2
        name = Home-Agent-MIP, code = 262, applid = 2
        name = Diameter-EAP, code = 268, applid = 2000
        name = Test-Auth, code = 300, applid = 10000
        name = Accounting, code = 271, applid = 20000
        (4742|46912508760608) ACE transport error: Address already in use
        (4742|46912508760608) Connection attempt to bhargav:1811
        Just wait here and let factory take care of new sessions
        (4742|1147169088) ACE transport error: Connection refused
        (4742|1147169088) Transport interface error: Connector [111=Connection refused]
        Just wait here and let factory take care of new sessions
        Just wait here and let factory take care of new sessions
        (4742|1115699520) Retrying peer connection
        (4742|1115699520) Connection attempt to bhargav:1811
        (4742|1157658944) ACE transport error: Connection refused
        (4742|1157658944) Transport interface error: Connector [111=Connection refused]
        Just wait here and let factory take care of new sessions

        one more point is that both my pc are in same n/w and have diffrent ip-address

        please respond to me ASAP
        my mail-id:bhargav.b@renovau.com

         

Log in to post a comment.