DIAMETER INSTALLATION.....

275 views
Skip to first unread message

satish

unread,
Jan 6, 2012, 4:22:10 AM1/6/12
to mobicents-public
Hi

Im trying to install DIAMETER (CLIENT & SERVER) in a single machine
with different JBOSS servers. By changing the The example.properties
file

Client Side example.properties

# Act as "client" or "server" (default: server)
example.mode=client

# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 /
mobicents.org)
destination.ip=172.16.6.106
destination.port=3868
destination.realm=mobicents.org

# The Remote IP Address, Port and Realm (default: 127.0.0.1 / 3868 /
mobicents.org)
origin.ip=127.0.0.1
origin.port=21812
origin.realm=mobicents.org

----------------------------------------------------------------------------------------------------------------------

Server Side example.properties

# Act as "client" or "server" (default: server)
example.mode=server

# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 /
mobicents.org)
origin.ip=172.16.6.106
origin.port=3868
origin.realm=mobicents.org

# The Remote IP Address, Port and Realm (default: 127.0.0.1 / 3868 /
mobicents.org)
destination.ip=127.0.0.1
destination.port=21812
destination.realm=mobicents.org
-----------------------------------------------------------------------------------------------------------------------

After starting the Both JBOSS Servers im getting the Out put as.

CLIENT SIDE:
-----------------------

11:56:55,518 INFO [ServiceManagementImpl] Activated
ServiceID[name=DiameterBaseExampleService,vendor=org.mobicents,version=1.0]
11:56:55,622 INFO [DiameterBaseExampleSbb]
################################################################################
11:56:55,622 INFO [DiameterBaseExampleSbb] ### D I A M E T E R E X
A M P L E A P P L I C A T I O N :: S T A R T E D ##
11:56:55,623 INFO [DiameterBaseExampleSbb]
################################################################################
11:56:55,623 INFO [DiameterBaseExampleSbb] Connected to 0 peers.
11:56:55,626 INFO [DiameterBaseExampleSbb] Diameter Base Example ::
Initialized in ENT mode.




11:57:25,632 INFO [DiameterBaseResourceAdaptor] Activity started
[Diameter Session ID[127.0.0.1;308;2980499801]]
11:57:25,638 INFO [DiameterBaseExampleSbb] Creating Accounting-
Request...
11:57:25,641 INFO [DiameterBaseExampleSbb] Created Accounting-Request
[
+----------------------------------- HEADER
----------------------------------+
| Version.................1
| Message-Length..........0
| Command-Flags...........R[true] P[true] E[false] T[false]
| Command-Code............271
| Application-Id..........19302
| Hop-By-Hop Identifier...0
| End-To-End Identifier...0
+------------------------------------ AVPs
-----------------------------------+
| AVP: Code[260] VendorID[0] Value[<Grouped>]
Flags[M=true;E=false;V=false]
| AVP: Code[266] VendorID[0] Value[193]
Flags[M=true;E=false;V=false]
| AVP: Code[259] VendorID[0] Value[19302]
Flags[M=true;E=false;V=false]
| AVP: Code[263] VendorID[0] Value[127.0.0.1;308;2980499801]
Flags[M=true;E=false;V=false]
| AVP: Code[264] VendorID[0] Value[127.0.0.1]
Flags[M=true;E=false;V=false]
| AVP: Code[296] VendorID[0] Value[mobicents.org]
Flags[M=true;E=false;V=false]
| AVP: Code[293] VendorID[0] Value[172.16.6.106:3868]
Flags[M=true;E=false;V=false]
| AVP: Code[283] VendorID[0] Value[mobicents.org]
Flags[M=true;E=false;V=false]
| AVP: Code[553] VendorID[193] Value[<Grouped>]
Flags[M=true;E=false;V=true]
| AVP: Code[555] VendorID[193] Value[0] Flags[M=true;E=false;V=true]
| AVP: Code[554] VendorID[193] Value[00001000]
Flags[M=true;E=false;V=true]
| AVP: Code[606] VendorID[193] Value[<Grouped>]
Flags[M=true;E=false;V=true]
| AVP: Code[611] VendorID[193] Value[2] Flags[M=true;E=false;V=true]
| AVP: Code[612] VendorID[193] Value[<Grouped>]
Flags[M=true;E=false;V=true]
| AVP: Code[617] VendorID[193] Value[10]
Flags[M=true;E=false;V=true]
| AVP: Code[485] VendorID[0] Value[0] Flags[M=true;E=false;V=false]
| AVP: Code[480] VendorID[0] Value[1] Flags[M=true;E=false;V=false]
| AVP: Code[615] VendorID[193] Value[0] Flags[M=true;E=false;V=true]
| AVP: Code[607] VendorID[193] Value[<Grouped>]
Flags[M=true;E=false;V=true]
| AVP: Code[608] VendorID[193] Value[0] Flags[M=true;E=false;V=true]
| AVP: Code[609] VendorID[193] Value[510]
Flags[M=true;E=false;V=true]
| AVP: Code[607] VendorID[193] Value[<Grouped>]
Flags[M=true;E=false;V=true]
| AVP: Code[608] VendorID[193] Value[14]
Flags[M=true;E=false;V=true]
| AVP: Code[609] VendorID[193] Value[20]
Flags[M=true;E=false;V=true]
+-----------------------------------------------------------------------------
+
]
11:57:25,641 INFO [DiameterBaseExampleSbb] Sending Accounting-
Request...
11:57:25,642 INFO [AccountingSessionFactory] Diameter Base
AccountingSessionFactory :: stateChanged ::
source[org.jdiameter.client.impl.app.acc.ClientAccSessionImpl@f4d3fddf] ::
oldState[IDLE], newState[PENDING_EVENT]
11:57:25,642 INFO [AccountingSessionFactory] Diameter Base
AccountingSessionFactory :: stateChanged ::
source[org.jdiameter.client.impl.app.acc.ClientAccSessionImpl@f4d3fddf] ::
oldState[PENDING_EVENT], newState[IDLE]
11:57:25,643 INFO [AccSessionFactoryImpl] failedSendRecord ::
appSession[org.jdiameter.client.impl.app.acc.ClientAccSessionImpl@f4d3fddf],
Request[MessageImpl{commandCode=271, flags=192}]
11:57:25,644 INFO [DiameterBaseExampleSbb] Sent Accounting-Request



SERVER SIDE
-----------------------

11:46:49,805 INFO [DiameterBaseResourceAdaptor] Diameter Base RA ::
Successfully initialized stack.
11:46:49,806 INFO [DiameterBaseResourceAdaptor]
DiameterBaseResourceAdaptor -- running in LOCAL mode.
11:46:49,881 INFO [DiameterCCAResourceAdaptor] Activating Diameter
CCA RA Entity
11:46:49,882 INFO [DiameterStackMultiplexer] Diameter Stack Mux ::
Registering 1 applications.
11:46:49,882 INFO [DiameterStackMultiplexer] Diameter Stack Mux ::
Adding Listener for [AppId [Vendor-Id:0; Auth-Application-Id:4; Acct-
Application-Id:0]].
11:46:49,884 INFO [DiameterCCAResourceAdaptor] Diameter CCA RA ::
Successfully initialized stack.
11:46:49,884 INFO [DiameterCCAResourceAdaptor] DiameterCCA -- running
in local mode.
11:46:50,081 INFO [DiameterBaseExampleSbb]
################################################################################
11:46:50,101 INFO [DiameterBaseExampleSbb] ### D I A M E T E R E X
A M P L E A P P L I C A T I O N :: S T A R T E D ##
11:46:50,102 INFO [DiameterBaseExampleSbb]
################################################################################
11:46:50,108 INFO [DiameterBaseExampleSbb] Connected to 0 peers.
11:46:50,113 INFO [DiameterBaseExampleSbb] Diameter Base Example ::
Initialized in SERVER mode.






But my problem is CLIENT REQUEST is not landing on the SERVER. (Not
DIsplaying Anything).

Im not able to analyze the problem,

Can anybody help me to resolve this.

~SATISH.

Alexandre Mendonça

unread,
Jan 6, 2012, 6:02:13 AM1/6/12
to mobicent...@googlegroups.com
Hi Satish,

You will not be able to establish communication between 127.0.0.1 (your machine localhost) and 172.16.6.106 (your private network). You need to use different addresses but in the same network.

Regards,

--
Alexandre Mendonça // JBoss R&D
http://ammendonca.blogspot.com/

satish

unread,
Jan 6, 2012, 8:55:36 AM1/6/12
to mobicents-public
Hi,

both the addresses are of the same network.In one we start jboss with
diameter example as client mode in loop back address(127.0.0.1) and in
the other we start jboss with diameter example as server mode with
physical ip(172.16.6.106)

Server and client intialize successfully but when client sends request
it does not reach server.Enabling debug logs we found that realm does
not match with ip-address.

Looks like an issue with jdiameter-config.xml

Client side jdiameter-config.xml is

<LocalPeer>
<URI value="aaa://127.0.0.1:3868" />
<!-- URI value="aaa://mobicents.open-ims.test:1812" /--> <!--
OpenIMS Example -->
<IPAddresses>
<IPAddress value="127.0.0.1 />
</IPAddresses>
<Realm value="mobicents.org" />
.....
<Network>
<Peers>
<!-- Testsuite -->
<Peer name="aaa://127.0.0.1:21812" attempt_connect="false"
rating="1" />

<!-- Ericsson SDK Client -->
<!-- Peer name="aaa://127.0.0.1:11812" attempt_connect="false"
rating="1"/-->

<!-- Ericsson SDK Emulator -->
<!-- Peer name="aaa://127.0.0.1:21812" attempt_connect="true"
rating="1" /-->

<!-- Sh / CCA / Cx/Dx -->
<!-- Peer name="aaa://uac.mobicents.org" attempt_connect="false"
rating="1" /-->

<!-- Sh (OpenIMS) -->
<!-- Peer name="aaa://hss.open-ims.test" attempt_connect="true"
rating="1" /-->
</Peers>
<Realms>
<!-- Ericsson SDK Client/Emulator and Testsuite -->
<Realm name="mobicents.org" peers="127.0.0.1"
local_action="LOCAL" dynamic="false" exp_time="1">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Realm>


On Server side the configuration is

<LocalPeer>
<URI value="aaa://127.0.0.1:3868" />
<!-- URI value="aaa://mobicents.open-ims.test:1812" /--> <!--
OpenIMS Example -->
<IPAddresses>
<IPAddress value="127.0.0.1" />
</IPAddresses>
<Realm value="mobicents.org" />

<Network>
<Peers>
<!-- Testsuite -->
<Peer name="aaa://127.0.0.1:21812" attempt_connect="false"
rating="1" />

<!-- Ericsson SDK Client -->
<!-- Peer name="aaa://127.0.0.1:11812" attempt_connect="false"
rating="1"/-->

<!-- Ericsson SDK Emulator -->
<!-- Peer name="aaa://127.0.0.1:21812" attempt_connect="true"
rating="1" /-->

<!-- Sh / CCA / Cx/Dx -->
<!-- Peer name="aaa://uac.mobicents.org" attempt_connect="false"
rating="1" /-->

<!-- Sh (OpenIMS) -->
<!-- Peer name="aaa://hss.open-ims.test" attempt_connect="true"
rating="1" /-->
</Peers>
<Realms>
<!-- Ericsson SDK Client/Emulator and Testsuite -->
<Realm name="mobicents.org" peers="127.0.0.1"
local_action="LOCAL" dynamic="false" exp_time="1">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Realm>


any help for the same would be appreciated

~Satish.

On Jan 6, 4:02 pm, Alexandre Mendonça <brains...@gmail.com> wrote:
> Hi Satish,
>
> You will not be able to establish communication between 127.0.0.1 (your
> machine localhost) and 172.16.6.106 (your private network). You need to use
> different addresses but in the same network.
>
> Regards,
>
> --
> *Alexandre Mendonça* // JBoss R&Dhttp://ammendonca.blogspot.com/

Alexandre Mendonça

unread,
Jan 6, 2012, 9:04:39 AM1/6/12
to mobicent...@googlegroups.com
Hi Satish,

127.0.0.1 and 172.16.6.106 are not the same network, even if they are in the same machine. the loopback interface does not "talk" outside.

Also, your configuration looks the same to me, both to server and client.

Try to use two 172.16.6.xxx addresses or, if you don't have the chance, use 127.0.0.1 and 127.0.0.2 addresses, for instance.

Regards,

--
Alexandre Mendonça // JBoss R&D

satish

unread,
Jan 9, 2012, 2:09:20 AM1/9/12
to mobicents-public
Hey,

Now we tried deploying across two different machines of the same
network and i do not see any request landing on the server inspite of
logs saying that.

It would be great if we could be pointed to stand alone diameter
client and diameter server examples as opposed to the example
downloaded from Mobicents which is a jboss application

Dowloaded FULL BUNDLE SOURCE CODE from the given link

http://www.mobicents.org/diameter/diameter-downloads.html



~satish.



On Jan 6, 7:04 pm, Alexandre Mendonça <brains...@gmail.com> wrote:
> Hi Satish,
>
> 127.0.0.1 and 172.16.6.106 are not the same network, even if they are in
> the same machine. the loopback interface does not "talk" outside.
>
> Also, your configuration looks the same to me, both to server and client.
>
> Try to use two 172.16.6.xxx addresses or, if you don't have the
> chance, use 127.0.0.1
> and 127.0.0.2 addresses, for instance.
>
> Regards,
>
> --
> *Alexandre Mendonça* // JBoss R&Dhttp://ammendonca.blogspot.com/
>
> ...
>
> read more »

Bartosz Baranowski

unread,
Jan 9, 2012, 2:38:17 AM1/9/12
to mobicent...@googlegroups.com
Please provide example source you use + log.

Judging by symptoms it seems that you did not register listener on server for that appplication. If you did not, server does not advertise support for this application, even though its defined in configuration.

Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

satish reddy

unread,
Jan 9, 2012, 5:02:44 AM1/9/12
to mobicent...@googlegroups.com
Hi

I downloaded the source code from the link.

http://www.mobicents.org/diameter/diameter-downloads.html
 
and i am running two instances of JBOSS from CLIENT(172.16.2.233) and SERVER(172.16.2.233)

and i attached the following files from both CLIENT AND SERVER Side..

1.  JBOSS Server Log from both Server and Client
2.  jdiameter-confg.xml from the path jboss/server/default/deploy/mobicents-diameter-mux-1.4.0.CR1.sar
3. example.properties.


thanks
~Satish
--
Satish K. Reddy

Mob: 91 9886283639
serverSide.rar
clientSide.rar

Alexandre Mendonça

unread,
Jan 16, 2012, 5:48:05 PM1/16/12
to mobicent...@googlegroups.com
Hi,

I think you wanted to say Server @ 172.16.6.106 and Client @ 172.16.2.233, both at port 3868. At least that's what's on the jdiameter-config files.

Now, in order to connect each other, you'll need to, at least:

1) Have the client address as a Peer in the server configuration, with attempt_connect set to "true", eg:

    <Peers>
      <Peer name="aaa://172.16.2.233:3868" attempt_connect="true" rating="1" />
    </Peers>

2) Have both server and client adresses in the desired realm entry, eg:

    <Realms>
      <Realm name="mobicents.org" peers="172.16.6.106, 172.16.2.233" local_action="LOCAL" dynamic="false" exp_time="1">
        <ApplicationID>
          <VendorId value="193" />
          <AuthApplId value="0" />
          <AcctApplId value="19302" />
        </ApplicationID>
      </Realm>
    </Realms>

This should enable them to connect to each other, which doesn't seem to be happening, from logs.

You should also fix the example.properties files with the correct values, namely the ports seem incorrect.

Regards,

--
Alexandre Mendonça // JBoss R&D
http://ammendonca.blogspot.com/



satish

unread,
Jan 19, 2012, 1:45:57 AM1/19/12
to mobicents-public
Hi Alexandre,

Thanks for the reply.

One correction in my above mail


CLIENT is RUNNING on 172.16.2.233 with port ( ORIGIN PORT : 3868).

SERVER is RUNNING on another machine 172.16.6.106 with port (ORIGIN
PORT : 21812).


Both Client and Servers are running on two separate machines in the
network.

I want to send a charging Request to the server from client.

i do not see any request landing on the server inspite of
logs saying that.

It would be great if we could be pointed to stand alone diameter
client and diameter server examples


Thanks

Satish.

satish reddy

unread,
Jan 19, 2012, 4:52:16 AM1/19/12
to mobicents-public
Hi Alexandre,

Now im able to connect the SERVER(172.16.6.106)  from the CLIENT (172.16.2.233).

But the problem is
 
Server is saying UNKNOWN PEER. (im giving the Server logs)

15:03:31,883 INFO  [TCPTransportClient] Read thread is stopped for socket [Socket[addr=172.16.2.233/172.16.2.233,port=3868,localport=42909]]
15:03:41,944 INFO  [TCPTransportClient] Read thread is stopped for socket [Socket[addr=172.16.2.233/172.16.2.233,port=3868,localport=42909]]
15:04:42,996 WARN  [PeerImpl] Received message for unknown peer [172.16.6.106:21812]. Answering with 3002 (UNABLE_TO_DELIVER) Result-Code.
15:04:42,997 WARN  [RouterImpl] Could not find route info for Hop-by-Hop Id [1967923391]. Table size is [0]


Im not able to continue, can you plese suggest me how i have to approach to solve this problem.

For your reference im giving jdiameter-config.xml files from both CLIENT and SERV ER.


Thanks

Satish.

CLIENT-jdiameter-config.xml
SERVER-jdiameter-config.xml

Alexandre Mendonça

unread,
Jan 19, 2012, 10:30:47 AM1/19/12
to mobicent...@googlegroups.com
Hi,

Would need to see more logs, it seems the connection is not correctly established for some reason.

Please attach the server.log (in JBOSS_HOME/server/default/log/server.log), and if possible, with DEBUG level enabled, by starting JBoss with parameter -Djboss.server.log.threshold=DEBUG.

By the way.. the attempt_connect seems wrong, as the server is the one trying to establish connection, while it should be the client. Try to change and see if it helps.

Regards,

--
Alexandre Mendonça // JBoss R&D
http://ammendonca.blogspot.com/



satish reddy

unread,
Jan 20, 2012, 2:02:38 AM1/20/12
to mobicent...@googlegroups.com


Hi alex

Im attaching the both side logs by enabling DEBUG MODE.


and also i changed the attempt_connect as

CLIENT SIDE : true
Server Side : false.

after the change only i collected the logs.


Thanks & Regards

Satish.



ClientSide-server.log
SERVERSIDE-server.log
Reply all
Reply to author
Forward
0 new messages