FabianEckermann / ns-3_c-v2x

Cellular Vehicle-to-Everything (C-V2X) Mode 4 model for ns-3
GNU General Public License v2.0
79 stars 38 forks source link

Why resource reservation period is divided by 10? #4

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, Thanks for sharing your work. I was having a look at the LteUeMac class, in there you are dividing the m_pRsvp (resource reservation period) by 10. Could you please tell me the reason? Is it as per the 3GPP standard?

https://github.com/FabianEckermann/ns-3_c-v2x/blob/ab82b929653b30eb6669f9ea6e42c2343f4c813c/src/lte/model/lte-ue-mac.cc#L3266

Kind regards, Zoraze

FabianEckermann commented 3 years ago

Hi, as the mentioned line calculates a frame number, the time to the next transmission calculated by reselection counter * resource reservation period in ms is divided by 10, as 1 frame contains 10 subframes (1ms = 1 subframe).