Get the cell id of the eNodeB

1,321 views
Skip to first unread message

Harsha Vardhan Gudivada

unread,
Dec 17, 2012, 1:35:57 PM12/17/12
to ns-3-...@googlegroups.com, nba...@cttc.es
Hi,
    Can any one tell me how to get the cell id of a eNodeB inside its scheduler code ( for example inside rr-ff-mac-scheduler.cc)?

If EnbRlcPath is available, I can get the cell id using FindCellIdFromEnbRlcPath function. But I don't know how to get the EnbRlcPath of an eNodeB. In lte-helper.cc, function DlRxPduCallback is getting the path for calculating the imsi. I could not understand who is calling the DlRxPduCallback function with proper path. If this path is available, I can calculate the cell id inside the scheduler.
--
Regards
G.Harsha Vardhan
BTech 4th year
Department of CSE
IIT Hyderabad
India

Van Le Anh

unread,
Oct 10, 2013, 6:36:29 AM10/10/13
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com
Hi. Did you know how to get cell ID inside scheduler code? Could you please tell me how to do this ?

Thanks in advance,
Regards
Van.

Vào 19:35:57 UTC+1 Thứ hai, ngày 17 tháng mười hai năm 2012, Harsha Vardhan Gudivada đã viết:

Davide D

unread,
Oct 14, 2013, 10:30:51 AM10/14/13
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com


i think you should use the ns3::RadioBearerStatsCalculator module in particular the uint32_t GetDlCellId (uint64_t imsi, uint8_t lcid) and uint32_t GetUlCellId (uint64_t imsi, uint8_t lcid) methods.

Davide

Nicola Baldo

unread,
Oct 21, 2013, 6:04:53 AM10/21/13
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com
The CellId is not available within the scheduler because it's not foreseen by the FF API, however you can easily implement a hack to pass this info to the scheduler.

Dipak Ghosal

unread,
May 8, 2014, 6:06:59 PM5/8/14
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com
Hi Nicola, 

Can please elaborate on  what a easy hack is?  I am learning C++ as I  work with NS-3 so  I am a little lost. 

Also, I was trying to add another parameter (number of rbg assigned to each RNTI)  in the macstat helper. Do you know if there is any structural problem that would prevent adding this information in the callback. For some reason, I am keep getting a compile error that effectively says that callback function does not match. 

Thanks. 

Dipak 

Nicola Baldo

unread,
May 12, 2014, 4:51:10 AM5/12/14
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com
Hi Dipak,


On Friday, May 9, 2014 12:06:59 AM UTC+2, Dipak Ghosal wrote:
Hi Nicola, 

Can please elaborate on  what a easy hack is?  I am learning C++ as I  work with NS-3 so  I am a little lost. 

for example you could add a public method SetCellId(uint16_t cellId) to the scheduler, and then call it from LteHelper at the point where the CellId is allocated - should be upon installing the eNB device if I recall correctly.
 

Also, I was trying to add another parameter (number of rbg assigned to each RNTI)  in the macstat helper. Do you know if there is any structural problem that would prevent adding this information in the callback. For some reason, I am keep getting a compile error that effectively says that callback function does not match. 

I guess you have a mismatch in the signature of the callback. Please see the section on callbacks of the ns-3 manual for further details.

Dipak Ghosal

unread,
May 12, 2014, 5:16:40 PM5/12/14
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com

Got it Thanks. 

Dipak 

Dipak Ghosal

unread,
May 12, 2014, 11:22:35 PM5/12/14
to ns-3-...@googlegroups.com, nba...@cttc.es, harsh...@gmail.com
Hi Nicola, 

I got the hack to work. Essentially, I defined (as you suggested)  a public function SetCellid in lte-enb-mac which is called from lte-helper to pass the cell id. Then I pass the cellid to the scheduler (say pf-ff-mac) through the params.  Not sure if this is the cleanest way but it works.  If you think there is a better way please let me know. 

Regarding passing back the rbgrnti variable in the scheduler to the macstathelper using the callback: I need to make  the rbgrnti visible to lteenbmac because that's were the callback is being fired. So I need to write have a public method in the scheduler to get this data when the callback is fired, right? 

BTW, have you done any more work on the two level scheduler?  

Best regards, 

Dipak 

On Monday, May 12, 2014 1:51:10 AM UTC-7, Nicola Baldo wrote:
Hi Dipak,

On Friday, May 9, 2014 12:06:59 AM UTC+2, Dipak Ghosal wrote:
Hi Nicola, 

Can please elaborate on  what a easy hack is?  I am learning C++ as I  work with NS-3 so  I am a little lost. 

for example you could add a public method SetCellId(uint16_t cellId) to the scheduler, and then call it from LteHelper at the point where the CellId is allocated - should be upon installing the eNB device if I recall correctl
 
Also, I was trying to add another parameter (number of rbg assigned to each RNTI)  in the macstat helper. Do you know if there is any structural problem that would prevent adding this information in the callback. For some reason, I am keep getting a compile error that effectively says that callback function does not match. 
Reply all
Reply to author
Forward
0 new messages