jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1 | *** QuickStart *** |
| 2 | |
| 3 | REQUIREMENTS |
| 4 | |
| 5 | Linux |
| 6 | OpenGGSN was developed and tested using Redhat 7.1 and Redhat |
| 7 | 7.2. It should run also on other Linux distributions as well as |
| 8 | FreeBSD and Solaris, but this is untested. Please tell me of any |
| 9 | testing results. |
| 10 | |
| 11 | Tun |
| 12 | Both ggsn and sgsnemu uses the tun package. You need at least tun |
| 13 | version 1.1. See http://vtun.sourceforge.net/tun/ for instructions on |
| 14 | installation. Tun should be included from linux kernel version 2.4, so |
| 15 | you might not need to manually install tun. |
| 16 | |
| 17 | COMPILATION |
| 18 | ./configure |
| 19 | make clean |
| 20 | make |
| 21 | |
| 22 | INSTALLATION |
| 23 | Need to be root to do this |
| 24 | make install |
| 25 | Add /usr/local/lib to /etc/ld.so.conf |
| 26 | Run ldconfig |
| 27 | |
| 28 | RUNNING |
| 29 | |
| 30 | sgsnemu |
| 31 | Edit the configuration file sgsnemu.conf found under |
| 32 | openggsn/examples. |
| 33 | Start the emulator using the command: |
| 34 | |
| 35 | sgsnemu -c examples/sgsnemu.conf -l 10.20.30.50 -r 10.20.30.40 --apn internet |
| 36 | |
| 37 | This will cause the sgsn emulator to bind to local address 10.20.30.50 |
| 38 | and connect to the ggsn found at 10.20.30.40. It will first send off |
| 39 | an ECHO_REQUEST message. After this it will attemt to establish a pdp |
| 40 | context. If successful it will create a local interface and set up |
| 41 | routing. Now you should be able to ping through the connection. Use a |
| 42 | network analysator such as ethereal to monitor the traffic. |
| 43 | |
| 44 | ggsn |
| 45 | Edit the configuration file ggsn.conf found under openggsn/examples. |
| 46 | Start the ggsn using the command: |
| 47 | ggsn --fg -c examples/ggsn.conf -l 10.20.30.40 |
| 48 | This will run the ggsn in foreground using the local interface |
| 49 | 10.20.30.40 |
| 50 | |
| 51 | |
| 52 | *** Features *** |
| 53 | |
| 54 | OpenGGSN is an open source implementation of GPRS Support Nodes |
| 55 | (GSNs). It implements the GPRS tunneling protocol (GTP) version 0. |
| 56 | |
| 57 | OpenGGSN provides 3 components: |
| 58 | * gtplib |
| 59 | * ggsn |
| 60 | * sgsnemu |
| 61 | |
| 62 | gtplib |
| 63 | This library contain all functionality retating to the GTP |
| 64 | protocol. Use this libraty if you want to implement your own |
| 65 | GSN. Currently gtplib supports GTPv0. |
| 66 | |
| 67 | ggsn |
| 68 | The ggsn implements a Gateway GPRS Support Node. The GGSN is a |
| 69 | small application which is provided in order to test and demonstrate |
| 70 | the use of gtplib. It is fully compliant to the 3GPP standards, but |
| 71 | lack important functionality such as charging and management. Use this |
| 72 | application as a starting point if you want to build your own GGSN |
| 73 | with your own fancy VPN, management and charging functionality. |
| 74 | |
| 75 | sgsnemu This application emulates a Serving GPRS Support Node. sgsnemu |
| 76 | enable you to test your 3GPP core network without the need to invest |
| 77 | in a 3G radio access network. An important application of sgsnemu is |
| 78 | the testing of roaming connectivity through a GPRS roaming exchange. |
| 79 | |
| 80 | *** Required software *** |
| 81 | |
| 82 | TUN |
| 83 | http://vtun.sourceforge.net/tun/ |
| 84 | |
| 85 | Both ggsn and sgsnemu uses the tun package. You need at least tun |
| 86 | version 1.1. See the above web page for instructions on installation. |
| 87 | |
| 88 | GENGETOPT |
| 89 | http://www.gnu.org/software/gengetopt/gengetopt.html |
| 90 | |
| 91 | Gengetopt is required if you want to change the options defined in the |
| 92 | cmdline.ggo source file. You need at least gengetopt version 2.8 (Not |
| 93 | released yet 2002-12-12). |
| 94 | |
| 95 | If you are just going to compile the programs you don't need |
| 96 | gengetopt. |
| 97 | |
| 98 | To use gengetopt do the following: |
| 99 | cd ggsn |
| 100 | ../../gengetopt-2.8rc/src/gengetopt < cmdline.ggo --conf-parser |
| 101 | insert #define _GNU_SOURCE in the top of cmdline.c to get rid of warnings. |
| 102 | |
| 103 | To use gengetopt do the following: |
| 104 | cd sgsnemu |
| 105 | ../../gengetopt-2.8rc/src/gengetopt < cmdline.ggo --conf-parser |
| 106 | insert #define _GNU_SOURCE in the top of cmdline.c to get rid of warnings. |
| 107 | |
| 108 | libPropList-0.10.1 (??? I can't remember if I use this???) |
| 109 | ftp://ftp.windowmaker.org/pub/libs |
| 110 | |
| 111 | *** Compilation and Installation *** |
| 112 | |
| 113 | To generate everything: |
| 114 | See http://sources.redhat.com/autobook/autobook/autobook_25.html#SEC25 |
| 115 | 1 edit configure.in |
| 116 | 2 run aclocal |
| 117 | 3 run autoheader |
| 118 | (run automake --add-missing) |
| 119 | 4 run automake |
| 120 | 5 run autoconf |
| 121 | 6 run ./configure |
| 122 | 7 rin make clean |
| 123 | 8 run make |
| 124 | 9 run make install |
| 125 | 10 Add /usr/local/lib to /etc/ld.so.conf |
| 126 | 11 run ldconfig |
| 127 | |
| 128 | |
| 129 | *** Installation of libraries |
| 130 | |
| 131 | cd gtp |
| 132 | make install |
| 133 | Add /usr/local/lib to /etc/ld.so.conf |
| 134 | run ldconfig |
| 135 | |
| 136 | On RedHat add /usr/local/lib to /etc/ld.so.conf |
| 137 | http://www.dwheeler.com/program-library/Program-Library-HOWTO/shared-libraries.html |
| 138 | |
| 139 | *** Running ggsn *** |
| 140 | Use ggsn -h for a list of available options. |
| 141 | |
| 142 | *** Running sgsnemu *** |
| 143 | Use sgsnemu -h for a list of available options. |
| 144 | |