atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
2 stars 3 forks source link

Gather topology/request samples and tests in one place #168

Closed sajith closed 1 year ago

sajith commented 1 year ago

We have topology files in three places:

With topology files under sdx-controller/samples/topologies and the sample test request that we've been testing with (namely test_sample.json), TESolver fail to find a solution. With the topology files in pce/tests/data/topologies, things work as expected (a solution is found, and it breaks down to links in three domains). This has been quite confusing.

I am proposing four steps to avoid future confusion (once the current release target is met):


Related to:

YufengXin commented 1 year ago

make sense to me

YufengXin commented 1 year ago

The current topology and request json files were all generated by me manually for testing. I'm waiting for the completion of the Kytos-LC integration so we can generate a suite of realistic testing files.

sajith commented 1 year ago

I compared the topology files with some "better" diffing tools (plain old diff is not very helpful) such as difftastic and jsondiff.com. The big difference is that the the topology that broke during the demo had some really high latency values.

https://github.com/atlanticwave-sdx/sdx-controller/blob/cb46d516926e53fb55ceb1fe9dc82e399dba971a/samples/topologies/amlight.json#L12

https://github.com/atlanticwave-sdx/sdx-controller/blob/cb46d516926e53fb55ceb1fe9dc82e399dba971a/samples/topologies/amlight.json#L46

https://github.com/atlanticwave-sdx/sdx-controller/blob/cb46d516926e53fb55ceb1fe9dc82e399dba971a/samples/topologies/amlight.json#L80

https://github.com/atlanticwave-sdx/sdx-controller/blob/cb46d516926e53fb55ceb1fe9dc82e399dba971a/samples/topologies/amlight.json#L114

... and so on. You get the idea. :-)

sajith commented 1 year ago

Perhaps this will work: https://jsoncompare.com/#!/diff/id=3eb161670c9ab0c9934c33dbfc53d5aa/

YufengXin commented 1 year ago

Great! Oh, poor TE solver.... So, need to add the realistic upper bound on the latency and lower bound on the bandwidth as part of the validation....