Anyone here managed to create a custom scheduler?

13 views
Skip to first unread message

Angèle Hager Hafaiedh

unread,
Sep 15, 2025, 4:45:15 AM (5 days ago) Sep 15
to 5G-LENA-users
 I want to implement a scheduling algorithm that is alternative to the existing PF and RR.
Since I am new in NS3 and 5G-LENA, I 'd like to know if anyone would want to help me.

Thank you in advance

Gabriel Ferreira

unread,
Sep 15, 2025, 6:51:45 AM (5 days ago) Sep 15
to 5G-LENA-users
Instead of asking such a generic question, can't you be more specific?
What exactly do you want help with?
What exactly are you not understanding?

The logic of schedulers is actually pretty simple, TDMA/OFDMA do the bulk of work.
The only thing that changes is the scheduling policy  (implemented by GetUeCompareDlFn() GetUeCompareUlFn).
The scheduling then uses these to compare the set of existing active UEs via  std::sort (ueVector.begin (), ueVector.end (), GetUeCompareDlFn ());

TL;DR: You just need to create a copy of one of the existing scheduler policy source files, rename file and classes to your policy name, add them to the CMakeLists file, and reconfigure.
Then change the implementation of GetUeCompareDlFn to match the behaviour you want. That is it.
Reply all
Reply to author
Forward
0 new messages