Project

General

Profile

OsmoGGSN » History » Version 11

wirelesss, 12/13/2016 03:05 PM

1 2 laforge
h1. [[OpenGGSN]]
2 1 laforge
3 2 laforge
[[OpenGGSN]] is an implementation of the Gateway GPRS Support Node ("GGSN":http://en.wikipedia.org/wiki/GGSN) element in the GPRS core network.
4 2 laforge
5 3 laforge
[[OpenGGSN]] was developed in 2002 to 2004 by Mondru AB and was abandoned for some years before adopted by the Osmocom project around 2010.
6 1 laforge
7 3 laforge
h2. Source Code / git repository
8 3 laforge
9 3 laforge
The source code is maintained in the osmcoom git at http://git.osmocom.org/openggsn/
10 3 laforge
11 3 laforge
h2. Binary packages
12 1 laforge
13 1 laforge
OpenGGSN packages are created as part of the Osmocom nightly debian builds, see [[cellular-infrastructure:NightlyBuilds]]
14 4 laforge
15 4 laforge
h2. Support / mailing lists
16 4 laforge
17 4 laforge
Please direct any questions regarding use, configuration or development of OpenGGSN to the osmocom-net-gprs@lists.osmocom.org mailing list, to which you can subscribe at https://lists.osmocom.org/mailman/listinfo/osmocom-net-gprs
18 5 wirelesss
19 7 wirelesss
h2. Building OpenGGSN with kernel-gtp 
20 5 wirelesss
21 5 wirelesss
Ubuntu 16.10, kernel 4.8.0-30-generic is used. 
22 5 wirelesss
23 5 wirelesss
* Installing dependencies and build library @libgtpnl@
24 5 wirelesss
25 6 wirelesss
You can install those packages with:
26 5 wirelesss
27 5 wirelesss
<pre>
28 5 wirelesss
sudo apt install libtalloc-dev libpcsclite libmnl-dev
29 5 wirelesss
</pre>
30 5 wirelesss
31 9 wirelesss
Please follow instructions provided at [[cellular-infrastructure:Build from source]] in order to install these library and projects :
32 1 laforge
33 6 wirelesss
Information about dependencies between Osmocom projects is given at the above link:
34 6 wirelesss
35 5 wirelesss
* libgtpnl
36 5 wirelesss
37 5 wirelesss
<pre>
38 5 wirelesss
  sudo make install
39 5 wirelesss
  sudo ldconfig
40 5 wirelesss
</pre>
41 5 wirelesss
42 5 wirelesss
* libosmocore 
43 5 wirelesss
* openggsn
44 5 wirelesss
45 5 wirelesss
<pre>
46 1 laforge
./configure --enable-gtp-linux
47 8 wirelesss
make 
48 8 wirelesss
sudo make install
49 8 wirelesss
sudo ldconfig
50 5 wirelesss
</pre>
51 5 wirelesss
52 5 wirelesss
Following message is shown at end of the command @ ./configure --enable-gtp-linux@ response:
53 5 wirelesss
54 5 wirelesss
<pre>
55 5 wirelesss
openggsn Configuration:
56 5 wirelesss
  GTP Linux kernel support:			yes
57 6 wirelesss
</pre>
58 6 wirelesss
59 6 wirelesss
This means that appropriate header files are available.
60 1 laforge
61 7 wirelesss
62 7 wirelesss
h2. Using OpenGGSN with kernel-gtp 
63 7 wirelesss
64 7 wirelesss
In order to find out whether gtp.ko module is available we can enter following command:
65 1 laforge
66 7 wirelesss
<pre>
67 7 wirelesss
find /lib/modules/`uname -r` -name gtp.ko
68 7 wirelesss
</pre>
69 7 wirelesss
70 11 wirelesss
Output below shows that gtp.ko module is present
71 7 wirelesss
72 1 laforge
<pre>
73 10 wirelesss
/lib/modules/4.8.0-30-generic/kernel/drivers/net/gtp.ko
74 7 wirelesss
</pre>
75 1 laforge
76 7 wirelesss
77 8 wirelesss
We are loading module gtp from kernel by entering command <pre>sudo modprobe gtp </pre> 
78 1 laforge
79 11 wirelesss
command: 
80 11 wirelesss
<pre>
81 11 wirelesss
lsmod | grep gtp
82 11 wirelesss
</pre>
83 7 wirelesss
84 8 wirelesss
give us information about gtp and related udp tunnel:
85 7 wirelesss
86 7 wirelesss
<pre>
87 7 wirelesss
gtp                    28672  0
88 7 wirelesss
udp_tunnel             16384  1 gtp
89 1 laforge
</pre>
90 1 laforge
91 1 laforge
92 11 wirelesss
Furthermore we can use: <pre> strace ggsn -c ggsn.conf -f </pre>  to determine if Ubuntu 16.10, kernel 4.8.0-30 is in use.   
93 11 wirelesss
94 11 wirelesss
95 11 wirelesss
Note: OpenGGSN is started by: 
96 11 wirelesss
<pre>
97 11 wirelesss
sudo  ggsn --gtp-linux -c ggsn.conf -f
98 11 wirelesss
</pre>
99 11 wirelesss
100 11 wirelesss
related output is: 
101 11 wirelesss
102 11 wirelesss
<pre>
103 11 wirelesss
gtp.c:701 GTP: gtp_newgsn() started
104 11 wirelesss
gtp-kernel.c:156 GTP kernel configured
105 11 wirelesss
</pre>
106 7 wirelesss
107 7 wirelesss
108 7 wirelesss
109 7 wirelesss
110 7 wirelesss
111 7 wirelesss
112 7 wirelesss