| 1 | [[PageOutline(2-4)]] |
| 2 | == Requirements == |
| 3 | |
| 4 | Since {{{freeDiameter}}} is extensible, the requirements may vary a lot depending on the extensions you are using. In this page, we are enumerating the requirements for the daemon only, which are common to all {{{freeDiameter}}} nodes. You should in addition check the documentation of the extensions you are planning to use for any addition. For example, for a backend server, the requirements will be much higher that for a simple routing agent or client. |
| 5 | |
| 6 | === Hardware === |
| 7 | |
| 8 | By design, the Diameter protocol is quite demanding in terms of ''memory'': for example, all requests that are sent must be kept until a corresponding answer is received. In addition, since communication channels must be protected either by TLS or IPsec, decent ''computational power'' is also required. For these reasons, a very small device such as small home gateway might not be suitable to run freeDiameter reliably. |
| 9 | |
| 10 | An average Desktop PC should provide ample resources for the daemon, unless the message load is particularly high -- well, the "real" application will probably have more severe requirements than the Diameter daemon anyway (database, ...) |
| 11 | |
| 12 | NOTE FOR LATER: Add some measurement figures!!! |
| 13 | |
| 14 | === Operating system === |
| 15 | |
| 16 | {{{freeDiameter}}} source is written in C language and obeys the POSIX API. It should run on any system that provides this API -- provided that other software dependencies can be met as well -- which mean most or all *NIX flavors. To date, {{{freeDiameter}}} has been compiled and tested on GNU/Linux distributions (Debian and Ubuntu) and FreeBSD (8.2 and 8.3). |
| 17 | |
| 18 | Since Microsoft Windows does not support the POSIX API, freeDiameter will not compile on this system. Some preliminary work has been made to compile with cygwin, but because the IPv6 support was not sufficient at that time, this environment is not supported. |
| 19 | |
| 20 | === Software dependencies === |
| 21 | |
| 22 | The system where {{{freeDiameter}}} will run must provide the following features: |
| 23 | |
| 24 | Pthreads:: |
| 25 | The {{{freeDiameter}}} implementation is multi-threaded, the system must provide a (stable enough) POSIX threads support. |
| 26 | |
| 27 | IPv6:: |
| 28 | The target system must support IPv6. Removing this requirement from {{{freeDiameter}}} would require a large change in the source code. |
| 29 | |
| 30 | SCTP:: |
| 31 | It is also recommended that the system supports SCTP (with a recent version of the [http://tools.ietf.org/html/draft-ietf-tsvwg-sctpsocket-21 SCTP socket API extension]), although {{{freeDiameter}}} can be compiled without support for SCTP through {{{cmake}}} configuration. Since the SCTP Socket API is not stable yet, it is quite difficult to provide a stable implementation which uses it... Hopefully, things will improve quickly... |
| 32 | |
| 33 | GNUTLS:: |
| 34 | Although the [libfreeDiameter] library is not dependent on the GNUTLS library, the daemon requires it. This should not be a problem, since the [http://www.gnu.org/software/gnutls/ gnutls library] is available already on many platforms. |
| 35 | |
| 36 | As stated before, some extensions may have additional requirements (database backend, ...) that you should also check. |
| 37 | |
| 38 | === Building environment === |
| 39 | |
| 40 | In order to compile {{{freeDiameter}}} from sources, you will require some tools such as cmake, flex, ... Please refer to these files for up-to-date information: |
| 41 | * [source:freeDiameter/INSTALL INSTALL]: very general instruction on building freeDiameter. |
| 42 | * [source:freeDiameter/INSTALL.FreeBSD INSTALL.FreeBSD]: Detailed instruction for building on the FreeBSD platform. |
| 43 | * [source:freeDiameter/INSTALL.Ubuntu INSTALL.Ubuntu]: Detailed instructions for Debian and Ubuntu distributions. |
| 44 | |
| 45 | A note about the compiler: it is possible that some parts of the {{{freeDiameter}}} daemon use non-standard GNU extensions, in particular for the debug facilities. {{{gcc}}} is known to compile the project, we have not tested different compilers at this time. |
| 46 | |
| 47 | ---- |