Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
This page describes the ODTN Phase1.0 demonstration details which is done with Cassini equipment, and what is achieved by ODTN Phase1.0 development.
Scope
- Point to point OLS network
- Directly connected transponders, or OLS configured out-of-band
- TAPI NB, OpenConfig SB
- No optical configuration (Configure only port enable/disable and frame mapping)
Available Devices
Cassini
Available models
- OpenConfig model
- Each vendor support different OpenConfig model, please check detailed version from here: https://wiki.onosproject.org/display/ODTN/Available+OpenConfig+models+and+versions+for+phase+1
- TAPI model
- v2.0.2
Available TAPI NBI endpoints
- tapi-common
- context
- get-service-interface-point-details
- get-service-interface-point-list
- tapi-connectivity
- create-connectivity-service
- delete-connectivity-service
- get-connectivity-service-details
- get-connectivity-service-list
STC testing on singleONOSinstance
ONOS instance setup
onos setup
# This scrip is used to test ODTN on single ONOS instance in branch 2.0 # Before this script: # 1. Make sure the default Python version is 2.x # 2. Run ONOS locally (bazel run onos-local -- clean) # 3. Start sshd service, and make sure "ssh $USER@localhost" operation doesn't need passwd # 4. Emulator configuration could be found under directory $HOME/emulator # env configuration based on the default ONOS environment # single ONOS instance runs on local machine directly ONOS_ROOT="${ONOS_ROOT:-~/onos}" source ${ONOS_ROOT}/tools/dev/bash_profile source ${ONOS_ROOT}/tools/build/envDefaults unset OC2 unset OC3 export OC1="127.0.0.1" export OCI="$OC1" export ONOS_INSTANCES="$OC1" export ONOS_USER=$USER OV=`echo $ONOS_VERSION | sed "s/\.$USER/-SNAPSHOT/g" ` export ONOS_INSTLL_DIR=/tmp/onos-${OV}/apache-karaf-${KARAF_VERSION}/data export EMULATOR_ROOT="${EMULATOR_ROOT:-$HOME/emulator}" for t in {1..60}; do echo "$t-th times curl request" curl --fail -sS http://localhost:8181/onos/v1/applications --user "onos:rocks" 1>/dev/null 2>&1 && break; sleep 2 done # run the emulators cd ${EMULATOR_ROOT} # The emulators run as docker containers. docker-compose up -d
About the emulator
The directory ${EMULATOR_ROOT} contains:
- File "docker-compose.yaml"
- Directory "emulator-oc-cassini"
- File "net-summary.json" - This file contains one-line json content to describe the network topology briefly ("{"device_num":"2","port_num":"64","link_num":"12"}"), aiming to help information check for topology discovery.
The topology view shows:
odtn-service installation and topology discovery
stc command
stc net-setup-odtn
creation and deletion for line-side/client-side connectivities
# If the previous command was executed successfully. stc net-odtn-restconf