sfc-aqua / quisp

Open source implementation of quantum internet simulation package
BSD 3-Clause "New" or "Revised" License
89 stars 36 forks source link

OSPF fails on simple branched networks #560

Open fgrosshans opened 5 months ago

fgrosshans commented 5 months ago

Describe the bug When using a branched network (e.g. a 3-star) which the network simulation crashes with the message LinkStateDatabase::updateLinkStateDatabase: input lsa is outdated -- in module (quisp::modules::routing_daemon::RoutingDaemon) BugNet.EndNode[1].qrsa.rd (id=43), at t=0.00000480332s, event #377 To Reproduce Steps to reproduce the behavior (with the attached files, removing the .txt extension):

  1. Download the attached files topology_bottleneck.ned.txt and FredTest.ini.txt and remove the .txt extensions.
  2. .ini file name 'FredTest.ini'
  3. Network name 'BugNet'
  4. Any parameter settings 'configuration:ShowBug'
  5. Any additional actions to cause the bug (none)
  6. If it's deep in the simulation, timestamp t=0.00000480332s/event # 377.
  7. What we see : it crashes with an error message about LinkStateDatabase

Expected behavior Actually what happens with the network NoBugNet, configuration NoBug from the same files. In that file, one of the arms of the 3-star is longer (700m insteand of 100m) and everything goes fine. When the arm is shorter (699m or less, like 100m in BugNet), the bug appears again.

Desktop (please complete the following information):

Additional context That bug is is also triggered by Three_BSA_Star from quisp_tutorial.ini, but I think my example networks are simpler (less components) and, I hope, will simplify the bug search