Skip to content

fix weights between router and node.#31

Open
Stfort52 wants to merge 56 commits intobooksim:masterfrom
Stfort52:master
Open

fix weights between router and node.#31
Stfort52 wants to merge 56 commits intobooksim:masterfrom
Stfort52:master

Conversation

@Stfort52
Copy link

@Stfort52 Stfort52 commented Jan 5, 2022

The anynet simulation fails with weighed nodes. For example, the example given in anynet.cpp like the one below fails.

/*
 example 2:
 router 0 node 0 node 1 5 node 2 5

 Router 0 is directly connected to node 0-2. Channel latency is 5cycles for 1 and 2. In 
 this case the latency specification is bidirectional, the injeciton and ejection lat
 for node 1 and 2 are 5-cycle
*/ 

I believe that this is because of the way the original code adds weights to the nodes,
as it does not take into account that node directives can be a head in the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant