resulknad / networks2tester Goto Github PK
View Code? Open in Web Editor NEWUnofficial tester for second networks project. It constructs a graph, runs dijkstra on it and checks your implementation (whether all your next_hops are correct).
Unofficial tester for second networks project. It constructs a graph, runs dijkstra on it and checks your implementation (whether all your next_hops are correct).
It would be nice if the tester.log
would feature additional information except for things like:
2018/05/28 20:37:33 Path from dr1 (0) to subnet (34.78.96.0) isnt ok, weight in graph: 1.000000
2018/05/28 20:37:34 Path from dr1 (0) to subnet (34.78.96.0) isnt ok, weight in graph: 1.000000
My suggestion would be to write in there whenever an interface gets taken offline or online and when costs changes. That way it will become more debuggable.
Btw. thanks for the tester! You're awesome!
I currently can't run this with go 1.7 installed (Debian stable).
According to my logs, the complex2 test case should succeed, but my program fails test case 6. I have no idea why this occurs.
Maybe the path chosen by my implementation is different, but of the same cost..?
In the logs for test case 9 I found instances where the cost of an interface was set to 17. According to the RFC no metric can exceed 16, which indicates a bug in the tester.
2018/05/30 03:16:23 To 1.1.3.0 via 0.0.0.0 (next hop)
2018/05/30 03:16:23 To 1.1.4.0 via 1.1.3.2 (next hop)
2018/05/30 03:16:23 To 1.1.5.0 via 1.1.3.2 (next hop)
2018/05/30 03:16:23 To 1.1.2.0 via 1.1.3.2 (next hop)
2018/05/30 03:16:23 Set cost to 17.000000 in graph
2018/05/30 03:16:23 lvns server changed cost to 17
2018/05/30 03:16:23 Routes as reported by d1
2018/05/30 03:16:23 Path from d1 (0) to subnet (1.1.2.0) shouldnt exist
2018/05/30 03:16:23 Shouldnt have a path, but it does
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.