This user guide explains how to launch the pnc-simulator/ACTN simulator and initialize it with administrative APIs. "pnc-simulator" is our internal project name for ACTN simulator. Throughout this guide, terms "pnc-simulator", "ACTN simulator" and "the simulator" are used interchangeably.

Step 1. Fetch the simulator docker image

First, pull down the simulator image from public docker hub.

docker pull dzhanghuawei/pncsimulator:1.0.6

Step 2. Start the simulator container(s)

After compiling the pnc-simulator image locally or fetching the docker image from remote registry, execute the command below to start the container:

docker run –p 18181:8181 –d –name pncsimu-18181 –t dzhanghuawei/pncsimulator:1.0.6

It should be noted that, we redirect the request from host:18181 to container:8181. You can configure whatever port, mapping to container:8181 at your discretion. Be careful, if setting up multiple domain controllers, make sure to assign different external ports for them.

After starting the container, you should be able to verify the running container by:

docker container ps –a | grep pncsimu

Step 3. Initialize the simulator(s)

The simulator offers a set of administrative APIs which are designed for initialization and management purposes.

To initialize the simulator for each domain:
curl –X POST –H "content-type:application/json" http://${SERVER_IP:SERVER_PORT}/pncsimu/v1/reload-data -d @INITIAL_DATA_FILE

In our case, we use 18181 as SERVER_PORT for domain1 and 28181 for domain2.

Here, INITIAL_DATA_FILE is a JSON representation describing the status of operational datastore.

The file is formatted as follows.

To reset the simulator to the most recent initialization point:
curl –X POST –H "content-type:application/json" http://${SERVER_IP:SERVER_PORT}/pncsimu/v1/reload-data -d'{}'


Please be noted that, in the perspective of ONAP eco-system, ACTN simulators act like local domain controllers. Therefore, to demonstrate ONAP/SDNC's cross-domain managing capabilities, two or more domain controllers are expected from ONAP/SDNC.

For demonstration purposes, two domain controllers are required, both need to be properly launched and initialized. The initialization payloads are attached below.

pnc-init-payload-1

pnc-init-payload-2    

Other Helper Tools

ACTN Viewer

ACTN viewer is a tool that can visualize the ACTN topologies provided by the PNC simulators.  To use the tool, please download the attached file, and modify controllers.json to reflect the PNC simulators' IP addresses.  NOTE: this tool is not mandatory for the PNC simulator. Since actn-viewer is an executable file, please do NOT use it if you have security concerns. 

actn-viewer.rar


Topology Generator

Topology Generator is a tool to help generate ACTN topology JSON file which can be injectecd in the PNC simulator (i.e., step 3). The tool provides an graphical user interface which allows the user to design the topology intuitively. The tool is available in onap's github link below.  However, one needs to install the draw.io attached below in order to use it.  NOTE: this tool is not mandatory for the PNC simulator. Since draw.io is an executable file, please do NOT use it if you have security concerns. 

https://github.com/onap/integration-ietf-actn-tools/tree/master/actn-topo-generator


draw.io.7z


  • No labels

10 Comments

  1. Hi Zhang Min

    I would love to try this use case.
    Please tell me the repository to get pncsimu:1.0.5.

    I could not get the image.

    Yukihiro Kishimoto

    1. Dear Zhang Min, Where can we find pncsimu:1.0.5 image ? Could  you please guide us?

  2. Hi Yukihiro,Gulsum

         Sorry for late replay,  I have contacted Henry Yu from Transport Team to answer these questions.

  3. Yukihiro Kishimoto @gulsum atici,  Thank you for your interest,  we are planning to open source the ACTN simulator, as wall as other ACTN tools under the folloiwng git repo which has just been created:

    https://gerrit.onap.org/r/admin/repos/integration/ietf-actn-tools

    However, since the source code of the simulator is huge, it may take us some time to complete the process (e.g., code refactoring, check code copy rights, etc.).  That said, we do have a docker image of the simulator available. Do you have a lab where we can help install the image?     

  4. Dear Henry, 

    I have checked that this repository is empty.  We have lab and It will be great if we could install the image to our lab together.

    Thanks,


  5. Dear Henry, 

    Thank you for suggesting that helping with the installation, we also have a lab. But it does not have GitLab to expose outside. Unfortunately, it is only for private use. Would you mind pushing the image somewhere git or something? That way, we can try the Use Case.

    1. Hi Yukihiro, Thanks for your interest. We are working on finding a way to providing the docker image of the PNC simulator. Meanwhile,  would you like to complete the E2E network slicing call flow first, by skipping the SDNC call? (This will allow you to continue your network slicing testing without PNC simulator) Once this step of the testing is successful, we can then enable the call to SDNC (and install the PNC simulator) for a complete testing.  If this is acceptable, please refer to JIRA SO-3444 on how to configure TN NSSMF skip the SDNC call.   


      SO-3444 - Getting issue details... STATUS


  6. Hello, I try to setup the ACTN simulator,

    In step 2 it says "

    docker run –p 18181:8181 –d –name pncsimu-18181 –t dzhanghuawei/pncsimulator:1.0.6

    docker: invalid reference format."


    I checked but don't find why. Could somebody help me? The step 1 went well.


    thank you

    BR,

  7. Hello,

    We try the ACTN Simulator by using this wiki page " ACTN Simulator User Guide ".

    We have downloaded the latest actn simulator.


    In this command "curl -X POST -H "content-type:application/json" http://135.41.21.24:18181/pncsimu/v1/reload-data -d @pnc-init-payload-1"

    We have an error "{"code":500,"message":"org.onosproject.yangutils.CodecConverter.objectNodeToDataNodeWithParentRid(CodecConverter.java:163)"}" but we don't have access to the code.

    So we can't check to see from where come this error. Maybe a version problem ?


    could you check and see what could it be? Could you help us to solve the issue?

    Thank you,

    Best regards


    Marine

  8. user-14b30

    Hi Marine,

    Sorry for the late reply.

    Yes, it looks like a version problem. 

    There are three wiki pages, each of which corresponds to a different Onap version and Pnc version.

    https://wiki.onap.org/display/DW/ACTN+Simulator+User+Guide R8 Guilin pncsimulator:1.0.6

    https://wiki.onap.org/display/DW/R9+ACTN+Simulator+User+Guide R9 Istanbul pncsimulator:1.0.9

    https://wiki.onap.org/display/DW/CCVPN+Closed-Loop+PNC+simulator+QuickStart R10 Jarkata pncsimulator:1.1.0

    Please follow the instruction on those pages to setup and initialize the pncsimulator accordingly.

    Also, we are actively working on open source the PNCsimulator.

    We will post new progress on this page regularly, please bear with us:)


    Best, 

    Decheng