SINR calculation over LTE network

257 views
Skip to first unread message

Hemanth Akaash

unread,
Jul 2, 2019, 9:52:11 AM7/2/19
to ns-3-users
     I've been trying to simulate a simple LTE network.
The objective is to calculate the SINR between the UE and eNodeB.

The udp packets are generated and sent over the network from eNodeB to UE, the throughput is also calculated.

The next part is to calculate the SINR,

Can someone suggest me how to carry on with the task.

I've attached my code here.
ideone.cc

Tommaso Zugno

unread,
Jul 4, 2019, 2:58:26 AM7/4/19
to ns-3-users
Hi,

The LTE module provides some traces for the output of the SINR value, to enable them use lteHelper->EnableTraces (). At the end of your simulation, you will find the SINR statistics in the files DlRsrpSinrStats.txt and UlSinrStats.txt. More information here: https://www.nsnam.org/docs/models/html/lte-user.html#simulation-output

Best,
Tommaso

Q

unread,
Apr 15, 2020, 3:33:17 PM4/15/20
to ns-3-users
Hello. 

How could I go about getting the same SINR information in the DlRsrpSinrStats.txt file in my C++ simulation? 

What I'm imagining is something like a GetSinr() method I could call at various times in during the simulation. Does something like this exist? How can I go about achieving this?

Thank you.
- Q

KS

unread,
Apr 15, 2020, 3:45:28 PM4/15/20
to ns-3-users
Do you have any idea how to solve this issue in the following link:
Any help is appreciated!!!!

Zoraze Ali

unread,
Apr 16, 2020, 4:03:00 AM4/16/20
to ns-3-users
Hi Q,

All the stats in LTE module are hooked to a particular trace source. For example, the DlRsrpSinrStats.txt file is the information reported by the "ReportCurrentCellRsrpSinr" trace source in LteUePhy class. What you can do is just bind/connect a method in your simulation script to listen to this trace. There are many examples in LTE module and outside LTE module to learn how to connect to a trace source.

Kind regards,
Zoraze

Bharat Agarwal

unread,
Apr 18, 2020, 4:09:47 PM4/18/20
to ns-3-users
Hi Did you get any method on how to use SINR values in the script from dlrsrpsinr.txt file which I can use to calculate the data rate using Shannon capacity theorem?

Bharat Agarwal

unread,
Apr 19, 2020, 6:45:39 AM4/19/20
to ns-3-users
See when I use lteHelper->EnableTraces() I got Dlrsrpsinr.txt file in which I have SINR values I have to use these values in the script so that I can calculate the data rate using Shannon theorem. 
In the thread, you have mentioned the bind and connect method. But do you have any working example where it has been shown how it works?

Like how I can read the values of SINR from the file and store them in the array for further calculations?

Zoraze Ali

unread,
Apr 19, 2020, 8:04:05 AM4/19/20
to ns-3-users
Hi Bharat,

Have a look at the ns-3 documentation about the tracing, specifically the section "Connect with config":


I already mentioned the trace source name in my previous reply, and I also mentioned that there are examples inside LTE module and all over ns-3 using traces, though, not specifically this trace. Please read and try to learn.

If you have difficulty in learning to connect a trace, try to search the old threads in the group, which is always very helpful. If still, you are unable to understand, please create a new thread and let us know what you didn't understand. I will try my best to help you to learn.

Kind regards,
Zoraze
Reply all
Reply to author
Forward
0 new messages