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.
...
- 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 # 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: 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
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: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
...
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 java -jar sctpclient-with-dependencies.jar 1.1.1.1 7891 1.1.1.3 12346 |
...