Project

General

Profile

OsmoGGSN » History » Version 12

wirelesss, 12/15/2016 03:22 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 12 wirelesss
It is expected that complete openbsc project and dependencies are pre-installed. Please check if package @libc-ares-dev@ is installed.
22 12 wirelesss
23 5 wirelesss
Ubuntu 16.10, kernel 4.8.0-30-generic is used. 
24 5 wirelesss
25 5 wirelesss
* Installing dependencies and build library @libgtpnl@
26 5 wirelesss
27 6 wirelesss
You can install those packages with:
28 5 wirelesss
29 5 wirelesss
<pre>
30 5 wirelesss
sudo apt install libtalloc-dev libpcsclite libmnl-dev
31 5 wirelesss
</pre>
32 1 laforge
33 12 wirelesss
Please follow instructions provided at [[cellular-infrastructure:Build from source]] in order to install following library and projects :
34 1 laforge
35 6 wirelesss
Information about dependencies between Osmocom projects is given at the above link:
36 6 wirelesss
37 5 wirelesss
* libgtpnl
38 5 wirelesss
39 5 wirelesss
<pre>
40 5 wirelesss
  sudo make install
41 5 wirelesss
  sudo ldconfig
42 5 wirelesss
</pre>
43 5 wirelesss
44 5 wirelesss
* libosmocore 
45 5 wirelesss
* openggsn
46 5 wirelesss
47 5 wirelesss
<pre>
48 1 laforge
./configure --enable-gtp-linux
49 8 wirelesss
make 
50 8 wirelesss
sudo make install
51 8 wirelesss
sudo ldconfig
52 5 wirelesss
</pre>
53 5 wirelesss
54 5 wirelesss
Following message is shown at end of the command @ ./configure --enable-gtp-linux@ response:
55 5 wirelesss
56 5 wirelesss
<pre>
57 5 wirelesss
openggsn Configuration:
58 5 wirelesss
  GTP Linux kernel support:			yes
59 6 wirelesss
</pre>
60 6 wirelesss
61 6 wirelesss
This means that appropriate header files are available.
62 1 laforge
63 7 wirelesss
64 7 wirelesss
h2. Using OpenGGSN with kernel-gtp 
65 7 wirelesss
66 7 wirelesss
In order to find out whether gtp.ko module is available we can enter following command:
67 1 laforge
68 7 wirelesss
<pre>
69 7 wirelesss
find /lib/modules/`uname -r` -name gtp.ko
70 7 wirelesss
</pre>
71 7 wirelesss
72 11 wirelesss
Output below shows that gtp.ko module is present
73 7 wirelesss
74 1 laforge
<pre>
75 10 wirelesss
/lib/modules/4.8.0-30-generic/kernel/drivers/net/gtp.ko
76 7 wirelesss
</pre>
77 1 laforge
78 7 wirelesss
79 8 wirelesss
We are loading module gtp from kernel by entering command <pre>sudo modprobe gtp </pre> 
80 1 laforge
81 11 wirelesss
command: 
82 11 wirelesss
<pre>
83 11 wirelesss
lsmod | grep gtp
84 11 wirelesss
</pre>
85 7 wirelesss
86 8 wirelesss
give us information about gtp and related udp tunnel:
87 7 wirelesss
88 7 wirelesss
<pre>
89 7 wirelesss
gtp                    28672  0
90 7 wirelesss
udp_tunnel             16384  1 gtp
91 1 laforge
</pre>
92 1 laforge
93 1 laforge
94 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.   
95 11 wirelesss
96 11 wirelesss
97 11 wirelesss
Note: OpenGGSN is started by: 
98 11 wirelesss
<pre>
99 11 wirelesss
sudo  ggsn --gtp-linux -c ggsn.conf -f
100 11 wirelesss
</pre>
101 11 wirelesss
102 11 wirelesss
related output is: 
103 11 wirelesss
104 11 wirelesss
<pre>
105 7 wirelesss
gtp.c:701 GTP: gtp_newgsn() started
106 7 wirelesss
gtp-kernel.c:156 GTP kernel configured
107 7 wirelesss
</pre>
108 7 wirelesss
109 7 wirelesss
110 7 wirelesss
 
Add picture from clipboard (Maximum size: 48.8 MB)