Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I measure radio related energy consumption in ns3 mmwave module? #172

Closed
arghasen10 opened this issue Oct 9, 2020 · 11 comments
Closed

Comments

@arghasen10
Copy link
Contributor

Hi,
I want to simulate mmwave module in different scenarios and want to produce a comparative study of energy consumption. Can we do that?
If not how should I proceed?

@tommasozugno
Copy link
Member

You can use the trace file RxPacketTrace.txt to count the number of transmitted OFDM symbols and then multiply it by the energy per symbol.

@arghasen10
Copy link
Contributor Author

@tommasozugno what should be the value of energy per symbol in mmwave?

@arghasen10
Copy link
Contributor Author

@tommasozugno I want to focus on different states (such as IDLE, CONNECTED, Deep Sleep, Light Sleep, Micro Sleep, Data Transmission and Reception) and generate a rough energy consumption in these states. From the RxPacketTrace.txt file, one can only observe the simulation time when Ul or Dl data transfer happened. Can we somehow generate a c-DRX time from the RxPacketTrace.txt file? If I have the c DRX duration then I can figure out energy consumption (Power * time_taken) in different states such as Sleep, Data Transmission and Reception, Connected States. Already power consumption in different states is mentioned in 3GPP specs

@tommasozugno
Copy link
Member

You can easily compute it from the transmission power and the symbol period.
Currently the simulator does not support any DRX features, the UEs are either CONNECTED or IDLE.

@arghasen10
Copy link
Contributor Author

@tommasozugno
So is this relation correct?

Energy = Power * time
or, E = Tx Power(30dbm or 1 Watt) * symbols (Number of symbols allocated) * time(1 ms or size of subframe in time domain)

@tommasozugno
Copy link
Member

You should multiply by the symbol period, not the subframe period. If you are using the latest release, which supports the NR frame structure, the symbol period depends on the numerology index you select. With numerology index 2 (the default one), the symbol period is 17.84 us (see https://www.sharetechnote.com/html/5G/5G_FrameStructure.html#OFDM_Symbol_Duration).

@arghasen10
Copy link
Contributor Author

Thank you very much for clearing all my doubts.

@arghasen10
Copy link
Contributor Author

@tommasozugno I want to implement DRX or cDRX in my simulation. As you told it is not implemented yet, Is there any possible way so that I can change the RRC State from CONNECTED_NORMALLY to a new state of RRC_INACTIVE. As per the 3GPP guidelines for every 160ms of a cycle I want to keep the UE in Connected mode for an on duration timer of 10ms and then I want to keep it in RRC_INACTIVE mode for rest of the time and if any PDCCH is received in that period I want to skip it. Can I implement this in my simulation?

@tommasozugno
Copy link
Member

This module relies on the RRC models included in the lte module. You should modify the classes LteEnbRrc and LteUeRrc, which implements the RRC instances at the BS and UT side, respectively. You can have a look at the official ns-3 lte module documentation to better understand how these work.

@arghasen10
Copy link
Contributor Author

arghasen10 commented Nov 8, 2020

@tommasozugno I have built a MmWave Energy Model mostly based on ns3 WifiRadioEnergyModel.
Can I create a pull request for your team's verification of it?

@tommasozugno
Copy link
Member

Sure!

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

No branches or pull requests

2 participants