The Diameter scenario pack is bundled with example configuration and scenario files.
The examples may be found in the <scenario_simulator>/diameter-examples
directory.
The Basic Diameter Examples are stand-alone scenarios using the Scenario Simulator only. The Diameter Rhino examples show Diameter integrating with the Rhino TAS.
Basic Diameter Examples
1 |
Add the following entries to
|
---|---|
2 |
To start Scenario Simulator instances without TLS:
|
3 |
To start Scenario Simulator instances with TLS:
|
For simulator TLS configuration, please see the Diameter RA documentation. For general TLS configuration of Java Virtual Machine, please see the JSSE Reference Guide. |
Diameter Rhino Examples
The following examples combine the Rhino Diameter RA and Scenario Simulator.
Prerequisites for all examples
For all examples, ensure you have the following applications installed:
-
ant
-
Rhino SDK 2.4
-
Diameter RA 3.0.0
-
Scenario-Simulator
For all examples, ensure the following line is in your /etc/hosts
file on the local host:
127.0.0.1 diameterserver diameterclient
Examples
1 |
Install RhinoSDK and licence |
---|---|
2 |
Start RhinoSDK. |
3 |
Undeploy any deployed Diameter RA examples |
4 |
Install the Diameter RA cca example:
|
5 |
Start scenario-simulator:
|
6 |
Wait until the client has connected to the server --- check the Rhino log:
|
7 |
Run the Diameter session as per the Diameter CCA examples instructions, for example:
|
8 |
Check the Rhino log and scenario-simulator log to see Diameter traffic between the client and server. |
1 |
Install RhinoSDK and licence |
---|---|
2 |
Start RhinoSDK. |
3 |
Undeploy any deployed Diameter RA examples |
4 |
Install the Diameter RA shserver example:
|
5 |
Start scenario-simulator:
|
6 |
Wait until the client has connected to the server --- check the Rhino log:
|
7 |
Run the Diameter session from the Scenario Simulator console:
|
8 |
Check the Rhino log and scenario-simulator log to see Diameter traffic between the client and server. |
1 |
Install RhinoSDK and licence |
---|---|
2 |
Start RhinoSDK. |
3 |
Undeploy any deployed Diameter RA examples |
4 |
Follow the Diameter documentation to install the Diameter RA shserver example with TLS. |
5 |
Start scenario-simulator:
|
6 |
Wait until the client has connected to the server --- check the Rhino log:
|
7 |
Run the Diameter session from the Scenario Simulator console:
|
1 |
Deploy diameter ro example ( |
---|---|
2 |
To test the ro example start simulator with server scenarios loaded:
|
3 |
To test the ro-simulator start simulator with client scenarios loaded:
|
Scenarios for client and server can successfully run with both endpoints simulated.
This scenario depends on configuration setting Simulator.ApplicationId.4=diameter-ro-v8d0 in server.properties .
|
1 |
Deploy Diameter mediation example distributed with Diameter RA. |
---|---|
2 |
Start separate Scenario Simulators for each endpoint as needed for the mediation example.
|
3 |
Wait until all the peers are connected before running the scenarios. |