Download and unzip Simulations.zip.
1. Q-CPS
src source code root. Under this directory:
a). package algorithmQCPS
algorithmQCPS/MajorPath.javaConstruct the initial network and process concurrent requests in the networkalgorithmQCPS/FunctionFindPath.javaFind paths for concurrent requests in the networkalgorithmQCPS/CalDis.javaCalculate distance between two nodesalgorithmQCPS/entangle_SwapPerform BSM and establish end-to-end long-distance entanglementalgorithmQCPS/outPut_resultOutput the successful paths
b). package runQCPS
runQCPS/Simulations.javaThe simulation experiment calculates average residual energy, the number of node, throughput and correct rate in the Q-CPS protocol
c). package RWfileQCPS
RWfile/GenerateNetworkNode.javaGenerate a random network
d). package topoQCPS
topo/link.javaDefine quantum links in a quantum networktopo/node.javaDefine quantum nodes in a quantum network
2. Q-CFPSR
src source code root. Under this directory:
a). package algorithm
algorithm/MajorPath.javaConstruct the initial network and process concurrent requests in the networkalgorithm/FunctionFindPath.javaFind paths for concurrent requests in the networkalgorithm/CalDis.javaCalculate distance between two nodesalgorithm/LinkDistribute.javaDistributing quantum entanglement between adjacent nodesalgorithm/outPut_Major_path.javaOutput the major path in P1algorithm/repairPath.javaFind repair paths in Q-CFPSR protocols.algorithm/EntanglementSwapPerform BSM and establish end-to-end long-distance entanglementalgorithm/outPut_resultOutput the successful paths
b). package run
run/Simulations.javaThe simulation experiment calculates the average residual energy, the number of node, throughput and correct rate in the Q-CFPSR protocols.
c). package RWfile
RWfile/GenerateNetworkNode.javaGenerate a random network
d). package topo
topo/link.javaDefine quantum links in a quantum networktopo/node.javaDefine quantum nodes in a quantum network
3. Q-CFPSR-WR
src source code root. Under this directory:
a). package algorithm
algorithm/MajorPath.javaConstruct the initial network and process concurrent requests in the networkalgorithm/FunctionFindPath.javaFind paths for concurrent requests in the networkalgorithm/CalDis.javaCalculate distance between two nodesalgorithm/LinkDistribute.javaDistributing quantum entanglement between adjacent nodesalgorithm/EntanglementSwapPerform BSM and establish end-to-end long-distance entanglementalgorithm/outPut_direct_resultOutput the successful paths
b). package run
run/Simulations.javaThe simulation experiment calculates the average residual energy, the number of node, throughput and correct rate in the Q-CFPSR-WR protocols.
c). package RWfile
RWfile/GenerateNetworkNode.javaGenerate a random network
d). package topo
topo/link.javaDefine quantum links in a quantum networktopo/node.javaDefine quantum nodes in a quantum network
Install Java(jdk vesion is 15) and eclipse (version is 2021-03 (4.19.0)) for simulation.
git clone https://github.com/WeicongHuang/QWN-Routing.git.
Unzip Simulations.zip.
1). run QCPS\src\Simulations.java
2). run Q-CFPSR\src\Simulations.java
3). run Q-CFPSR-WR\src\Simulations.java
1). Draw histograms of average residual energy, the number of node, throughput and correct rate according to Q-CFPSR/examples/CFPSR__Performance.xls in Q-CFPSR.
2). Draw histograms of average residual energy, the number of node, throughput and correct rate according to Q-CFPSR-WR/examples/CFPSR-WR-Performance.xls in Q-CFPSR-WR.
3). Draw histograms of average residual energy, the number of node, throughput and correct rate according to QCPS/examples/QCPS__Performance.xls in QCPS.