...
- 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).
Load configuration
Code Block language bash theme Midnight onos-netcfg ONOSIP path/to/xran-cfg.json
Connect to ONOS: onos ONOSIP
Code Block language bash theme Midnight onos ONOSIP
Activate XRAN:
Code Block language bash theme Midnight app activate org.onosproject.xran
Check logs to see if the Server has started and binded to the IP address that you specified:
Code Block language bash theme Midnight onos> log:tail
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
Connect to ONOS: Enable debugging mode if you want to see send/received messages with:onos ONOSIP
Code Block language bash theme Midnight onos> log:set DEBUG
onos ONOSIP
Activate XRAN:
Code Block language bash theme Midnight app activate org.onosproject.xran
Check logs to see if the Server has started and binded to the IP address that you specifiedREST API calls to check nodes and links; credentials onos:rocks:
Code Block language bash theme Midnight onos> log:tail
Enable debugging mode if you want to see send/received messages with:
Code Block language bash theme Midnight onos> log:set DEBUG
REST API calls to check nodes and links; credentials onos:rocks:
Code Block language bash theme Midnight http://IP:http://IP:8181/onos/xran/nodes http://IP:8181/onos/xran/links
GUI to check topology; credentials onos:rocks (only shows primary links), IP can be localhost if you run onos locally:
Code Block language bash theme Midnight http://IP:8181/onos/ui
...
Optional: If you want to see a working version of the controller, we created a dummy eNodeB. It is a private repo, so you will need access; send request to dimitris@opennetworking.org. You can download it from: http://bitbucket.org/slowr/enodeb.
To run
.org. You can download it from: http://bitbucket.org/slowr/enodeb.
To run
Code Block | ||||
---|---|---|---|---|
| ||||
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
| ||||
Code Block | ||||
| ||||
java -jar sctpclient-with-dependencies.jar ONOS-IP ONOS-PORT ENODEB-IP ENODEB-PORT1.1.1.1 7891 1.1.1.3 12346 |
NB Example Triggers with CURL
...