Skip to content

ThomasHabets/gtping

Repository files navigation

gtping/README

 GTP Ping

   By Thomas Habets <[email protected]> 2008-2010


Description
-----------
Like ping(8), but uses GTP ping requests to ping GGSNs and anything
else that will answer them.

Tested and works on Linux, FreeBSD, OpenBSD, IRIX and Solaris. Should
work on many more.

The Linux network code exposes more info about why a packet is
lost. Could be good to know.

GTP Specs at 3GPP:
  http://www.3gpp.org/ftp/Specs/2009-03/Rel-8/29_series/29060-870.zip
  http://www.3gpp.org/ftp/Specs/2009-03/Rel-8/29_series/29274-811.zip

3GPP don't seem to believe in preservation of history, so these links
are broken. But googling for these file names should give you a mirror.
This looks like yet another sign that it's *extremely* rare to find
a telco engineer who understands packet switching or the Internet.

http://wired-n-wireless.blogspot.com/2009/02/gtpc-v2.html

License
-------
GPL, see the COPYING file.


Installing
----------
See INSTALL file.


Support
-------
Official help mailing list is [email protected].


Example use
-----------
$ ./gtping -c 3 1.2.3.4
GTPing 0.14
GTPING 1.2.3.4 (1.2.3.4) 12 bytes of data.
12 bytes from 1.2.3.4: seq=0 ttl=64 ToS=be time=353.40 ms
12 bytes from 1.2.3.4: seq=1 ttl=64 ToS=be time=606.16 ms
12 bytes from 1.2.3.4: seq=2 ttl=64 ToS=be time=63.55 ms

--- brick GTP ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 3000ms
0 out of order, 0 dups, 0 connection refused, 0 ICMP error
rtt min/avg/max/mdev = 63.551/341.039/606.161/221.692 ms

$ ./gtping -r1 4.2.2.1
GTPing 0.14
GTPING traceroute to 4.2.2.1 (4.2.2.1) 12 bytes of data.
   1 From x.x.x.x ToS=cs6 ttl=64 time=1.97 ms: TTL exceeded
   2 From x.x.x.x ToS=cs6 ttl=63 time=2.68 ms: TTL exceeded
   3 From x.x.x.x ToS=cs6 ttl=126 time=20.25 ms: TTL exceeded
   4 From 195.84.210.29 ToS=cs6 ttl=252 time=23.11 ms: TTL exceeded
   5 From 4.68.111.17 ToS=cs6 ttl=248 time=45.18 ms: TTL exceeded
   6 From 4.69.134.25 ToS=cs6 ttl=248 time=35.63 ms: TTL exceeded
   7 From 4.69.134.30 ToS=be ttl=57 time=45.78 ms: TTL exceeded
   8 From 4.69.141.150 ToS=be ttl=58 time=46.75 ms: TTL exceeded
   9 From 4.69.133.89 ToS=be ttl=59 time=51.69 ms: TTL exceeded
  10 From 4.69.141.170 ToS=be ttl=59 time=41.87 ms: TTL exceeded
  11 From 4.69.132.133 ToS=be ttl=59 time=57.38 ms: TTL exceeded
  12 From 4.69.139.98 ToS=cs6 ttl=246 time=57.91 ms: TTL exceeded
  13 From 4.2.2.1 ToS=be ttl=246 time=57.89 ms: Port closed

Projects using gtping
---------------------

  [1] gtp-guard - https://github.com/acassen/gtp-guard
      gtping is integrated for GTPc testing of gtp-guard, see the test/ folder.

----------------------------------------------------------------------------
Send questions/suggestions/patches/rants/routers to [email protected]