Skip to content

Conversation

@wischhof
Copy link
Contributor

@wischhof wischhof commented May 2, 2025

This small patch adds a new flag (d2dEnforceEnbBoundOnSideLink , by default turned off) to LtePhyUeD2D. If enabled, it restricts D2D sidelink communication of a node to the cell the node is in. This can be used to model a (worst-case, since resources are still shared) scenario where nodes cannot communicate with other nodes via D2D if they are managed by different base stations.

Beyond this small new feature, the pull request also includes several other commits with small improvements (hope it's ok to include it here for simplicity, we can also submit separate pull requests):

a) Bugfix for MAC throughput calculation: in src/stack/mac/buffer/harq/LteHarqBufferRx.h a single static variable was used to sum up all received bytes. This is ok, if we have a scenario with a single base station - however, with multiple base stations, all base stations will add to this single static variable, leading to incorrect values reported for throughput. Please not that since now packet events and the throughput(...) calculation is used, the unit has also changed from Byte/s (Bps) to bits/s (bps).
b) add a new statistic "macNodeId" which reports the MacId assigned to a node by the binder
c) Fixes to log messages in LteAmc: misleading logs in LteAmc.cc are correct now.
d) Updated fingerprints (needed since we add new statistics, etc.)

Comments & suggestions always welcome.

Thank you again for Simu5G & making it publicly available!

Lars

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