PacketTags on LTE

498 views
Skip to first unread message

Konstantinos

unread,
Feb 23, 2013, 8:44:04 AM2/23/13
to ns-3-...@googlegroups.com
Hi,

I have created a simple LTE scenario and I have installed PacketSink application on some UEs and a simple application that schedules packets with a specific packet tag attached.

I configured a callback in order to print this packet tag when a packet is received using this:
Config::ConnectWithoutContext("/NodeList/*/ApplicationList/*/$ns3::PacketSink/Rx",MakeCallback (&ReceivePacket));

The ReceivePacket is just a void method to print a text (a value in the tag).
 
Even though I see received packets in FlowMonitor, I can't see any text printing, like there is no tag.
With the same configuration (same applications) in a WiFi network, it worked. 
I'm wondering if there is something "wrong" (a bug) with LTE when copying the files across and not copying the tags.

Regards,
Konstantinos

Konstantinos

unread,
Feb 23, 2013, 10:56:16 AM2/23/13
to ns-3-...@googlegroups.com
In case you want to test it I attach the source code.
It is based on ns-3.16 example of lena-epc.
test_lte.cc
myapp.h

Mamatha Vemula

unread,
Feb 25, 2013, 9:52:39 AM2/25/13
to ns-3-...@googlegroups.com
Hello sir,
I need a help from you.
In my college I asked to do a project on ns3. Iam new to it.
Could you please suggest me any project which i can implement in 2 or 3 days?
Could you please help me..

Thank you very much in advance..

Regards,
Mamatha.

Konstantinos

unread,
Feb 25, 2013, 12:31:29 PM2/25/13
to ns-3-...@googlegroups.com
I found a work around with the use of Packet Header (Seq_Ts_Header in Applications). But still can't unterstand what was the problem with Packet Tags.

Nicola Baldo

unread,
Mar 15, 2013, 4:36:09 PM3/15/13
to ns-3-...@googlegroups.com
I suggest to try changing this:

  packet->AddPacketTag(tag);

into this:

  packet->AddByteTag(tag);

in MyApp::SendPacket(). The issue is that LTE RLC performs segmentation and concatenation of packets: I think a PacketTag can't survive this, but a ByteTag should.



Konstantinos

unread,
Mar 17, 2013, 5:14:31 PM3/17/13
to ns-3-...@googlegroups.com
Dear Nicola,

Yes, that solve one part of the problem.. meaning that the byte tag is available in the packet throughout LTE network
However, I can't find an easy way to read it. For packet tags, there was PeekPacketTag but no such method is currently available for Byte Tags.
I will try to create a similar method using the PrintByteTags to see how I can access ByteTags.

Azade Eta

unread,
Sep 25, 2014, 10:42:22 PM9/25/14
to ns-3-...@googlegroups.com
Dear Konstantinos

I have the same problem. I defined a new Tag for my self, and add it to my packet before sending by remotehost. (AddPAcketTag)
But, unfortunately, there is no tag when packet received by IPv4-list-routing in UE node.
I need to read packet tag there to decide on routing, 
Do you solve the problem?
Thank you

Azade

Tommaso Pecorella

unread,
Sep 26, 2014, 1:30:43 AM9/26/14
to ns-3-...@googlegroups.com
This topic has been discussed previously. Many times.

T.

Azade Eta

unread,
Sep 26, 2014, 1:47:22 AM9/26/14
to ns-3-...@googlegroups.com
Thank you
I want to add Tag to send over Lte network, based on this post, i found that using addByteTag instead of AddPacketTag may solve the problem, however there is no peek method to retrieve tag in UE
I did not find answer in other topics, could you please guide me?
I defined my Tag class and all necessary methods completely.

Thank you
Azade

Tommaso Pecorella

unread,
Sep 26, 2014, 2:46:27 AM9/26/14
to ns-3-...@googlegroups.com
No, I will not guide you, because the ns-3 manual already covers this topic with great detail.
This forum is NOT a substitute for the manual.
Reply all
Reply to author
Forward
0 new messages