Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto route metric 'delay' causes empty chunk in L3NetworkConfiguratorBase.cc #913

Closed
Zenith-Xiang opened this issue Oct 7, 2023 · 1 comment
Assignees
Labels

Comments

@Zenith-Xiang
Copy link

When I change the autoroute metric from 'errorRate' to 'delay' in Wireless04 of the tutorial ini file (https://github.com/inet-framework/inet/blob/master/tutorials/wireless/omnetpp.ini), I encounter an error 'Returning an empty chunk is not allowed'.

I checked the code in L3NetworkConfiguratorBase.cc and found that there is only an empty packet in the 'delay' part (Line 386).
But in the 'errorRate' part, the new packet is inserted with some bytes and tags (Line 408-414).

After I copying those codes from 'errorRate' part to 'delay' part, the 'empty chunk' error no longer occurs.
Is it reasonable to do so?

@levy levy self-assigned this Oct 9, 2023
@levy levy added the Bug label Oct 9, 2023
@levy
Copy link
Contributor

levy commented Oct 9, 2023

Thanks for the bug report! Yes, the packet length doesn't matter because the 'delay' metric calculates with the signal propagation time.

@levy levy closed this as completed in 7644baf Oct 9, 2023
levy added a commit that referenced this issue Sep 19, 2024
…m "errorRate" to "delay" autoroute metric.

This fix is a temporary kludge but currently there's no other way to make this work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants