Skip to content

Run First come, First serve (FCFS)

Matthew Aguirre edited this page Feb 8, 2018 · 1 revision

Start XCN

./cnr.scn

Run XCN Framework for CNR

./run_bridge_fcfs.sh

This will start the XCN nodes as described in the cnr.eel file, tell each node to run the EMANE-side client for communications, and then start the bridge server. The bridge server runs as a first-come, first-serve so each CNR-side client that connects will be 'pop' off an IP address of the EMANE-side to attach to.

Known Limitation

In this situation, EMANE/XCN is treated as a fully-connected network. Further configuration is required if specific pairing of CNR to EMANE node is desired. Such configuration is possible, but is more in-depth and requires knowledge of all incoming CNR-side IP addresses.

Start each CNR-side client

  • java -jar cnr-bridge-1.0.jar -server BRIDGE_SERVER_IP
  • If using the WindowsCNRLauncher, specify the IP address and press Run.

Ending Simulation

CTRL + C to end the .\run_bridge_fcfs.sh script and then run .\kill.sh to kill all XCN docker instances.

Logging

To get detailed logging, a -log LEVEL argument can be sent on the Java commandline.

java -jar cnr-bridge-1.0.jar -server BRIDGE_SERVER_IP -log FINER

Levels are:

  • ALL
  • FINEST
  • FINER
  • FINE
  • CONFIG
  • INFO
  • WARNING
  • SEVERE
  • OFF