Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Configure xran-cfg.json file to have IPs of all connecting CELLS and PLMN_ID and ECI in hex format. PLMN_ID should be 6 characters (from 0 to F) long (24bits) and ECI should be 8 characters (from 0 to F) long with always a 0 in the end (28 bits).
  2. Load configuration

    Code Block
    languagebash
    themeMidnight
    # Make sure that the xranc_bind_ip option binds to an IP that is defined on an interface (xranc_bind_ip is 1.1.1.1 in our example so: sudo ip addr add 1.1.1.1/32 dev eth0)
    onos-netcfg ONOSIP path/to/xran-cfg.json
  3. Connect to ONOS: onos ONOSIP

    Code Block
    languagebash
    themeMidnight
    onos ONOSIP
  4. Activate XRAN:

    Code Block
    languagebash
    themeMidnight
    app activate org.onosproject.xran
  5. Check logs to see if the Server has started and binded to the IP address that you specified:

    Code Block
    languagebash
    themeMidnight
    onos> log:tail
  6. Enable debugging mode if you want to see send/received messages with:

    Code Block
    languagebash
    themeMidnight
    onos> log:set DEBUG
  7. REST API calls to check nodes and links; credentials onos:rocks:

    Code Block
    languagebash
    themeMidnight
    http://IP:8181/onos/xran/nodes
    http://IP:8181/onos/xran/links
  8. GUI to check topology; credentials onos:rocks (only shows primary links), IP can be localhost if you run onos locally:

    Code Block
    languagebash
    themeMidnight
    http://IP:8181/onos/ui

...

Code Block
languagebash
themeMidnight
java -jar sctpclient-with-dependencies.jar ONOS-IP ONOS-PORT ENODEB-IP ENODEB-PORT


# Based on the example to run locally with two eNodeB's (first we add the two interfaces that are related to the eNodeBs, these IPs are the ones specified in the configuration as well):
sudo ip addr add 1.1.1.2/32 dev eth0
sudo ip addr add 1.1.1.3/32 dev eth0
java -jar sctpclient-with-dependencies.jar 1.1.1.1 7891 1.1.1.2 12345
java -jar sctpclient-with-dependencies.jar 1.1.1.1 7891 1.1.1.3 12346

...