cell ID from PfFfMacScheduler

50 views
Skip to first unread message

Shyam Parekh

unread,
Oct 9, 2024, 4:40:40 AM10/9/24
to ns-3-users
Is it possible to find the current cell ID while executing scheduling code of PfFfMacScheduler?

Thanks,

Shyam

Shyam Parekh

unread,
Oct 16, 2024, 2:49:33 AM10/16/24
to ns-3-users
I'm still stuck on trying to obtain the current cell ID from an instance of PfFfMacScheduler. I have been trying different ideas, but to no avail. I'm trying to follow the attached screen shot to first obtain the instance of EnbMac or EnbRrc thinking the cell ID may be available from there. Please let me know if you can help.

Thanks,

Shyam
Screenshot from 2024-10-15 23-30-00.png

Gabriel Ferreira

unread,
Oct 16, 2024, 4:28:39 AM10/16/24
to ns-3-users
From the MAC, it is easy to get it. And then you just need to pass it to the scheduler by creating a new field in the parameters structures used to exchange data between MAC and scheduler.

Shyam Parekh

unread,
Oct 16, 2024, 4:39:23 AM10/16/24
to ns-3-users
Thanks Gabriel! Let me give it a try.

Shyam

Katerina Koutlia

unread,
Oct 16, 2024, 8:58:03 AM10/16/24
to ns-3-...@googlegroups.com
Hi,

Maybe you could add a virtual function Set/Get the cellId in a FfMacScheduler. These functions will be implemented by each scheduler, such as the PF in your case. 
Then, in InstallSingleEnbDevice inside the LteHelper, you will set the cellId by accessing the scheduler through the component-carrier-enb (notice that component-carrier-enb holds a pointer of the scheduler) and using the Set function (e.g. SetCellId() ) - so it would be sth like cc->GetFfMacScheduler()->SetCellId();.

BR,
Kat

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/ce2d3b12-a15e-4c44-adcb-12826a163115n%40googlegroups.com.
Message has been deleted

Shyam Parekh

unread,
Oct 18, 2024, 10:53:51 AM10/18/24
to ns-3-users
Thank you Katerina! This is very helpful.

Shyam
Reply all
Reply to author
Forward
0 new messages