Few doubts regarding "lena-simple-epc" code for LTE EPC in NS3

163 views
Skip to first unread message

Pradip Barik

unread,
Sep 13, 2017, 6:45:30 AM9/13/17
to ns-3-users
Hi,

I am new to NS3. I am trying to simulate a basic LTE-EPC scenario with one BS and one UE.
There are one uplink and one downlink packets transmission between UE and RemoteHost. For the Point-to-Point, I have added the commands to generate pcap and trace file.

-------------------------------------------------------------------------------------------
 //Uncomment to enable PCAP tracing
  p2ph.EnablePcapAll("lena-epc-first");

  AsciiTraceHelper ascii;
  p2ph.EnableAsciiAll (ascii.CreateFileStream ("lte_first.tr"));
-------------------------------------------------------------------------------------------

I have the following doubts.
1. p2ph traces are only for the RemoteHost to pgw link. How to generate the traces for the communication between UE and eNB?
2. The code (attached) have generated four pcap files. Out of which, two files have data.

1    0.000000    1.0.0.2    7.0.0.2    UDP    1054    49153 → 1234 Len=1024

Where source (RemoteHost) address is 1.0.0.2 and destination (PGW) address is 7.0.0.2.
Why the address is 1.0.0.2? why not 1.0.0.1? Same for 7.0.0.2
What are the four pcap files signifies? "lena-epc-first-0-2", "lena-epc-first-0-3", "lena-epc-first-1-1", "lena-epc-first-2-2"
Node 0 is RemoteHost, Node 1 is eNB and Node 2 is UE. Why the device IDs (i.e. 2, 3, 1 and 2) are selected for the nodes?

3. If we want to change some parameters such as Tx power of UE, Tx power of eNB, how can I do that?

Please reply to this topic of you know the answer of my doubts. Thanks.
The code is attached.

Pradip
Research Scholar, IIT KGP


lena-simple-epc.cc

Tikhomirov

unread,
Jan 14, 2018, 1:31:57 PM1/14/18
to ns-3-users
I also ran into this problem.
However, I'm trying to simulate a lena-simple-epc scenario  with two BS and two UE.
I got the following files: lena-epc-first-0-2.pcap; lena-epc-first-0-3.pcap; lena-epc-first-0-4.pcap; lena-epc-first-1-1.pcap; lena-epc-first-2-2.pcap; lena-epc-first-3-2.pcap.
As I understood from this link, https://www.nsnam.org/doxygen/point-to-point-epc-helper_8cc_source.html node 0 is SGW, node 1 is TUN, node 3 is MME.
But I'm not sure of the correctness of this. I also do not understand why the essence of these files, and what are the reasons for appearance. I also do not understand where is remotehost and ENB. 
I ask the community to describe in more detail how this works.


среда, 13 сентября 2017 г., 13:45:30 UTC+3 пользователь Pradip Barik написал:
Reply all
Reply to author
Forward
0 new messages