<div dir="ltr">Hi Pau,<div><br></div><div>Thanks for the help so far.  I have tried using the kernel-gtp mode and only managed to cause crashes in the omso-ggsn program.  I have updated to the latest git repository for the osmo-ggsn.</div><div><br></div><div>I followed the instructions here <a href="https://osmocom.org/projects/openggsn/wiki/Kernel_GTP">https://osmocom.org/projects/openggsn/wiki/Kernel_GTP</a> to load the kernel gtp module and the 'lsmod | grep gtp' shows the same as the results in the instructions.</div><div><br></div><div>After that the instructions mention using openggsn.  I'm not sure if there is further configuration required for the kernel gtp module - do I need to create a tunnel? Or should this be done by osmo-ggsn as it did for the gtpu-mode tun setting?</div><div><br></div><div><div>[Thread debugging using libthread_db enabled]</div><div>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".</div><div><0002> ggsn.c:203 APN(S1U): Starting</div><div><0002> ggsn.c:281 APN(S1U): Opening Kernel GTP device gtp0</div><div><0002> gtp-kernel.c:75 Initialized GTP kernel mode (genl ID is 30)</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>gtp_kernel_init (gsn=0x0, devname=0x6a6fe0 "gtp0", </div><div>    prefix=prefix@entry=0x6a76e0, ipup=0x0) at gtp-kernel.c:94</div><div>94<span style="white-space:pre">               </span>if (gtp_dev_create(-1, devname, gsn->fd0, gsn->fd1u) < 0) {</div></div><div><br></div><div>I have tried, without success, to find a sample config file with the kernel-gtp mode in for osmo-ggsn. Is there a sample config file for osmo-ggsn with the kernel-gtp mode selected?</div><div><br></div><div>This is my current config file - I have gone through various attempts with different tun_device names.</div><div><br></div><div><div>!</div><div>! OpenGGSN (0.94.1-adac) configuration saved from vty</div><div>!!</div><div>!</div><div>! kernel-gtp</div><div>log stderr</div><div>  logging filter all 1</div><div>  logging color 1</div><div>  logging print category 0</div><div>  logging timestamp 0</div><div>  logging level ip info</div><div>  logging level tun info</div><div>  logging level ggsn info</div><div>  logging level sgsn notice</div><div>  logging level icmp6 notice</div><div>  logging level lglobal notice</div><div>  logging level llapd notice</div><div>  logging level linp notice</div><div>  logging level lmux notice</div><div>  logging level lmi notice</div><div>  logging level lmib notice</div><div>  logging level lsms notice</div><div>  logging level lctrl notice</div><div>  logging level lgtp info</div><div>  logging level lstats notice</div><div>  logging level lgsup notice</div><div>  logging level loap notice</div><div>  logging level lss7 notice</div><div>  logging level lsccp notice</div><div>  logging level lsua notice</div><div>  logging level lm3ua notice</div><div>  logging level lmgcp notice</div><div>!</div><div>stats interval 5</div><div>!</div><div>line vty</div><div> no login</div><div>!</div><div>ggsn tun1</div><div> gtp state-dir /tmp</div><div> gtp bind-ip 172.16.8.1</div><div> apn S1U</div><div>  gtpu-mode kernel-gtp</div><div>  tun-device gtp0</div><div>  type-support v4</div><div>  ip prefix dynamic <a href="http://10.1.1.0/24">10.1.1.0/24</a></div><div>  ip dns 0 192.168.100.1</div><div>  ip dns 1 8.8.8.8</div><div>  ip ifconfig <a href="http://10.1.1.2/24">10.1.1.2/24</a></div><div>  no shutdown</div><div> default-apn S1U</div><div> no shutdown ggsn</div></div><div><br></div><div>Thanks</div><div><br></div><div>Dave</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 29, 2018 at 3:14 PM, Pau Espin Pedrol <span dir="ltr"><<a href="mailto:pespin@sysmocom.de" target="_blank">pespin@sysmocom.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dave,<br>
<br>
I never personally used it, but as far as I know you should be able to get more performance by using "gtpu-mode kernel-gtp" instead of "gtpu-mode tun" in your config, to avoid doing all packet processing in userspace. Please someone else confirm this. I think you need a capable kernel and libgtpnl to be able to use it.<br>
<br>
Also, it would be nice if you could provide a linux "perf" output on osmo-ggsn while running your test setup so we can spot possible optimizations to improve osmo-ggsn performance.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
- Pau Espin Pedrol <<a href="mailto:pespin@sysmocom.de" target="_blank">pespin@sysmocom.de</a>>         <a href="http://www.sysmocom.de/" rel="noreferrer" target="_blank">http://www.sysmocom.de/</a><br>
==============================<wbr>==============================<wbr>===========<br>
* sysmocom - systems for mobile communications GmbH<br>
* Alt-Moabit 93<br>
* 10559 Berlin, Germany<br>
* Sitz / Registered office: Berlin, HRB 134158 B<br>
* Geschaeftsfuehrer / Managing Director: Harald Welte<br>
</font></span></blockquote></div><br></div>