Skip to content
Snippets Groups Projects
Commit 5d08b6db authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Changed bandwidth to 10Gb/s and fixed inconsistencies between metrics when calculating RTT

parent 14acc1b2
No related branches found
No related tags found
No related merge requests found
......@@ -28,37 +28,37 @@ from py2neo import Graph
from clmcservice.graphapi.utilities import build_network_graph
# static network configuration data used for testing cases
# static network configuration data used for testing cases, latencies reported in milliseconds
links = [
{
"src-switch": "dpid1",
"dst-switch": "dpid2",
"latency": 7.5
"latency": 7.5 * 1000
},
{
"src-switch": "dpid1",
"dst-switch": "dpid3",
"latency": 9
"latency": 9 * 1000
},
{
"src-switch": "dpid1",
"dst-switch": "dpid5",
"latency": 15
"latency": 15 * 1000
},
{
"src-switch": "dpid2",
"dst-switch": "dpid4",
"latency": 10
"latency": 10 * 1000
},
{
"src-switch": "dpid3",
"dst-switch": "dpid4",
"latency": 12.5
"latency": 12.5 * 1000
},
{
"src-switch": "dpid5",
"dst-switch": "dpid6",
"latency": 4.5
"latency": 4.5 * 1000
}
]
......
......@@ -314,7 +314,7 @@ def build_network_graph(graph, switches, links, clusters):
destination = switches[destination]
# retrieve the latency for this link
latency = link["latency"]
latency = link["latency"] / 1000 # convert to seconds
# create or retrieve the from node
from_node, created = find_or_create_node(graph, "Switch", return_created=True, name=source)
......
......@@ -16,7 +16,8 @@ exclog.ignore =
network_configuration_path = /opt/clmc/src/service/resources/GraphAPI/network_clusters.json
network_bandwidth = 104857600
# 10000 Mb/s = 10 Gb/s
network_bandwidth = 10000
# PostgreSQL connection url
sqlalchemy.url = postgresql://clmc:clmc_service@localhost:5432/whoamidb
......
......@@ -16,7 +16,8 @@ exclog.ignore =
network_configuration_path = /opt/clmc/src/service/resources/GraphAPI/network_clusters.json
network_bandwidth = 104857600
# 10000 Mb/s = 10 Gb/s
network_bandwidth = 10000
# PostgreSQL connection url
sqlalchemy.url = postgresql://clmc:clmc_service@localhost:5432/whoamidb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment