GTP pcap

1,594 views
Skip to first unread message

Mazaher Kianpour

unread,
Feb 23, 2015, 6:17:44 AM2/23/15
to ns-3-...@googlegroups.com
Dear all,
I am new to NS-3. How can I have a pcap file of GTP packets. I need all kinds of this protocol (GTP-U, GTP-C and GTP')?
It would be appreciated if someone could help me.

Kind Regards,
MK

Tommaso Pecorella

unread,
Feb 23, 2015, 7:05:27 AM2/23/15
to ns-3-...@googlegroups.com
Hi,

as far as I know, GTP is not implemented in ns-3.

T.

Mazaher Kianpour

unread,
Feb 24, 2015, 3:33:39 AM2/24/15
to ns-3-...@googlegroups.com
Thanks Tommaso.

There is a class named "epc-gtpu-header" to implement GTP-U in EPC. I wonder how I can capture these packets.

Mazaher

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Feb 24, 2015, 3:41:39 AM2/24/15
to ns-3-...@googlegroups.com
Right, I didn't notice those.
It seems that they're sent over the S1 and X2 interfaces. Tap those.
Also, try enabling caps everywhere and see in which pcap file you can find 'em.

T.

Mazaher Kianpour

unread,
Feb 28, 2015, 1:56:04 AM2/28/15
to ns-3-...@googlegroups.com

Konstantinos

unread,
Feb 28, 2015, 5:00:34 AM2/28/15
to ns-3-...@googlegroups.com
Hi Mazaher, 

As specified in the LTE documentation (https://www.nsnam.org/docs/release/3.22/models/html/lte-design.html#s1-u) GTP-U packets are transmitted over the S1-U link.
Tommaso already suggested you to enable the PCAP on those. They might not be publicly accessible at the moment, but you can write a method to extend this.

GTP-C packets are implemented without actual sending any packets (https://www.nsnam.org/docs/release/3.22/models/html/lte-design.html#s11). 

Mazaher Kianpour

unread,
Mar 3, 2015, 9:10:36 AM3/3/15
to ns-3-...@googlegroups.com
Thanks Konstantinos,

Actually I only need a pcap file of GTP packets to inject some attacks into those packets, then test my strategies to detect attacks and prevent to occur. I am new to NS-3 and I do not want to spend time to learn it due to I have to do somethings else, and I need to concentrate on them. Would you please instruct me how to create that pcap file easily and quickly?
It would be really appreciate if you help me.
Regards,
Mazaher

--

Konstantinos

unread,
Mar 3, 2015, 9:26:29 AM3/3/15
to ns-3-...@googlegroups.com
If you are going to use NS-3 for your evaluation, you need to spend time and learn it, not all of it, but the parts that you want to use. There is no shortcut. 
Study the ns-3 tutorial, it explains how to generate pcap trace files. You will find that you can enable them from the corresponding NetDevice(helper).
Then identify the place in the NS-3 where these netdevices are created as explained in the ns-3 documentation posted in the previous reply (I do not know because I am not interested in analysing GTP). Then you can change the code and enable pcap (preferably by creating a new method).


On Tuesday, March 3, 2015 at 2:10:36 PM UTC, Mazaher Kianpour wrote:
Thanks Konstantinos,

Actually I only need a pcap file of GTP packets to inject some attacks into those packets, then test my strategies to detect attacks and prevent to occur. I am new to NS-3 and I do not want to spend time to learn it due to I have to do somethings else, and I need to concentrate on them. Would you please instruct me how to create that pcap file easily and quickly?
It would be really appreciate if you help me.
Regards,
Mazaher
On Sat, Feb 28, 2015 at 1:30 PM, Konstantinos <dinos.k...@gmail.com> wrote:
Hi Mazaher, 

As specified in the LTE documentation (https://www.nsnam.org/docs/release/3.22/models/html/lte-design.html#s1-u) GTP-U packets are transmitted over the S1-U link.
Tommaso already suggested you to enable the PCAP on those. They might not be publicly accessible at the moment, but you can write a method to extend this.

GTP-C packets are implemented without actual sending any packets (https://www.nsnam.org/docs/release/3.22/models/html/lte-design.html#s11). 


On Saturday, February 28, 2015 at 6:56:04 AM UTC, Mazaher Kianpour wrote:

Dear all,
I am new to NS-3. How can I have a pcap file of GTP packets. I need all kinds of this protocol (GTP-U, GTP-C and GTP')?
It would be appreciated if someone could help me.

Kind Regards,
MK

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Tommaso Pecorella

unread,
Mar 3, 2015, 11:43:59 AM3/3/15
to ns-3-...@googlegroups.com
If you don't have the time to learn the tools you're using, your data and results will be flawed to the roots.
You will not be able to understand if the data you get are right, wrong or what, you'll make simple and stupid mistakes, and your whole research will be jeopardized.

As a researcher, if and when I find out a paper or a research and I even slightly suspect that the authors didn't fully understand the tools they claim to use, my reaction is always the same, and you can easily guess what it is.
If you still keep up on this attitude, be my guest. However, don't ask for help: you'll not get it.

If, on the opposite, want to do a proper research, then you'll be welcomed. You can ask questions and we'll odo our best to support you. However, as Kostantinos said, there's no shortcut.
 
Have fun,

T.
Reply all
Reply to author
Forward
0 new messages