| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Thu, 30 Nov 2006 15:29:10 GMT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| strinet ManualDescription: OpenSS7 Online ManualsA PDF version of this document is available here. OpenSS7 INET NetworkingOpenSS7 INET Networking Installation and Reference ManualAbout This ManualThis is Edition 6, last updated 2007-06-24, of The OpenSS7 INET Networking Installation and Reference Manual, for Version 0.9.2 release 6 of the OpenSS7 INET Networking package. PrefaceNoticeThis package is released and distributed under the GPL (see GNU General Public License). Please note, however, that there are different licensing terms for the manual pages and some of the documentation (derived from OpenGroup1 publications and other sources). Consult the permission notices contained in the documentation for more information. This manual is released under the FDL (see GNU Free Documentation License) with all sections invariant. AbstractThis manual provides a Installation and Reference Manual for OpenSS7 INET Networking. ObjectiveThe objective of this manual is to provide a guide for the STREAMS programmer when developing STREAMS modules, drivers and application programs for OpenSS7 INET Networking. This guide provides information to developers on the use of the STREAMS mechanism at user and kernel levels. STREAMS was incorporated in UNIX System V Release 3 to augment the character input/output (I/O) mechanism and to support development of communication services. STREAMS provides developers with integral functions, a set of utility routines, and facilities that expedite software design and implementation. Intent
The intent of this manual is to act as an introductory guide to the STREAMS programmer. It
is intended to be read alone and is not intended to replace or supplement the
OpenSS7 INET Networking manual pages. For a reference for writing code, the manual pages
(see AudienceThis manual is intended for a highly technical audience. The reader should already be familiar with Linux kernel programming, the Linux file system, character devices, driver input and output, interrupts, software interrupt handling, scheduling, process contexts, multiprocessor locks, etc. The guide is intended for network and systems programmers, who use the STREAMS mechanism at user and kernel levels for Linux and UNIX system communication services. Readers of the guide are expected to possess prior knowledge of the Linux and UNIX system, programming, networking, and data communication. RevisionsTake care that you are working with a current version of this manual: you will not be notified of updates. To ensure that you are working with a current version, contact the Author, or check The OpenSS7 Project website for a current version. A current version of this manual is normally distributed with the OpenSS7 INET Networking package, strinet-0.9.2.6.2 Version Control
strinet.texi,v
Revision 0.9.2.24 2007/02/28 06:31:02 brian
- updates and corrections, #ifdef instead of #if
Revision 0.9.2.23 2007/01/03 14:54:41 brian
- documentation updates for release
Revision 0.9.2.22 2007/01/03 12:30:26 brian
- documentation updates for release
Revision 0.9.2.21 2006/09/18 01:07:06 brian
- updated manuals and release texi docs
Revision 0.9.2.20 2006/08/28 10:47:07 brian
- correction
Revision 0.9.2.19 2006/08/28 10:32:55 brian
- updated references
Revision 0.9.2.18 2006/08/27 12:27:03 brian
- finalizing auto release files
Revision 0.9.2.17 2006/08/26 09:18:40 brian
- better release file generation
Revision 0.9.2.16 2006/08/23 11:00:44 brian
- added preface, corrections and updates for release
Revision 0.9.2.15 2006/08/22 12:57:25 brian
- updated documentation
Revision 0.9.2.14 2006/03/22 10:02:05 brian
- added makefile target index
Revision 0.9.2.13 2006/03/03 11:41:06 brian
- 32/64-bit compatibility, SMP testing
Revision 0.9.2.12 2005/07/08 13:16:15 brian
- updates to documentation
Revision 0.9.2.11 2005/06/24 13:38:59 brian
- added troubleshooting section to manuals
Revision 0.9.2.10 2005/05/14 08:28:50 brian
- copyright header correction
Revision 0.9.2.9 2005/04/11 20:48:41 brian
- documentation updates and corrections
Revision 0.9.2.8 2005/03/15 00:56:47 brian
- Updated version numbering in texinfo files.
Revision 0.9.2.7 2005/03/15 00:51:44 brian
- Updated version numbering in texinfo files.
Revision 0.9.2.6 2005/02/17 20:00:20 brian
- Fixes for texi documentation.
Revision 0.9.2.5 2005/01/24 11:57:58 brian
- Updated texinfo headers.
Revision 0.9.2.4 2004/12/19 15:15:14 brian
- Corrected include position.
Revision 0.9.2.3 2004/08/22 04:26:13 brian
- Converted to common files.
Revision 0.9.2.2 2004/08/20 21:14:13 brian
- Updated documentation.
Revision 0.9.2.1 2004/08/16 11:40:41 brian
- Documentation updates.
Revision 0.9 2004/04/03 12:44:16 brian
- Initial cut of new strinet package.
ISO 9000 ComplianceOnly the TeX, texinfo, or roff source for this manual is controlled. An opaque (printed, postscript or portable document format) version of this manual is an UNCONTROLLED VERSION. DisclaimerOpenSS7 Corporation disclaims all warranties with regard to this documentation including all implied warranties of merchantability, fitness for a particular purpose, non-infringement, or title; that the contents of the manual are suitable for any purpose, or that the implementation of such contents will not infringe on any third party patents, copyrights, trademarks or other rights. In no event shall OpenSS7 Corporation be liable for any direct, indirect, special or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with any use of this manual or the performance or implementation of the contents thereof. OpenSS7 Corporation reserves the right to revise this software and documentation for any reason, including but not limited to, conformity with standards promulgated by various agencies, utilization of advances in the state of the technical arts, or the reflection of changes in the design of any techniques, or procedures embodied, described, or referred to herein. OpenSS7 Corporation is under no obligation to provide any feature listed herein. U.S. Government Restricted RightsIf you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you. If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users). If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). AcknowledgementsAs with most open source projects, this project would not have been possible without the valiant efforts and productive software of the Free Software Foundation and the Linux Kernel Community. SponsorsFunding for completion of the OpenSS7 OpenSS7 INET Networking package was provided in part by:
Additional funding for The OpenSS7 Project was provided by: ContributorsThe primary contributor to the OpenSS7 OpenSS7 INET Networking package is Brian F. G. Bidulock. The following is a list of significant contributors to The OpenSS7 Project:
AuthorsThe authors of the OpenSS7 OpenSS7 INET Networking package include:
See Author Index, for a complete listing and cross-index of authors to sections of this manual. MaintainerThe maintainer of the OpenSS7 OpenSS7 INET Networking package is:
Please send bug reports to bugs@openss7.org using the send-pr script included in the package, only after reading the BUGS file in the release, or See Problem Reports. Web ResourcesThe OpenSS7 Project provides a website dedicated to the software packages released by the OpenSS7 Project. Bug ReportsPlease send bug reports to bugs@openss7.org using the send-pr script included in the OpenSS7 INET Networking package, only after reading the BUGS file in the release, or See Problem Reports. You can access the OpenSS7 GNATS database directly via the web, however, the preferred method for sending new bug reports is via mail with the send-pr script. Mailing ListsThe OpenSS7 Project provides a number of general discussion Mailing Lists for discussion concerning the OpenSS7 OpenSS7 INET Networking package as well as other packages released by The OpenSS7 Project. These are mailman mailing lists and so have convenient web interfaces for subscribers to control their settings. See http://www.openss7.org/mailinglist.html. The mailing lists are as follows:
SpamTo avoid spam being sent to the members of the OpenSS7 mailing list(s), we have blocked mail from non-subscribers. Please subscribe to the mailing list before attempting to post to them. (Attempts to post when not subscribed get bounced.) As an additional measure against spam, subscriber lists for all OpenSS7 mailing lists are not accessible to non-subscribers; for most lists subscriber lists are only accessible to the list administrator. This keeps your mailing address from being picked off our website by bulk mailers. Acceptable Use PolicyIt is acceptable to post professional and courteous messages regarding the OpenSS7 package or any general information or questions concerning STREAMS, SS7, SIGTRAN, SCTP or telecommunications applications in general. Large AttachmentsThe mailing list is blocked from messages of greater than Quick Start GuideOpenSS7 INET NetworkingPackage strinet-0.9.2.6 was released under GPLv2 2007-06-24. The OpenSS7 INET Networking package is an implementation of the Internet Protocol suite for Linux Fast-STREAMS directly over Linux NET4 Sockets implementation, using a STREAMS over Sockets approach. This permits modules to be pushed on UDP or TCP Streams and allows use of the XTI/TLI library with Internet Protocols on Linux. The package now also includes direct STREAMS implementations of RAW IP and UDP, and will include direct implementations of TI loop back devices and TCP in the future. The package currently includes the following STREAMS kernel modules and drivers:
The OpenSS7 INET Networking package includes kernel modules, SVR 4.2 STREAMS drivers, modules, libraries, utilities, test programs, daemons, and development environment for the development and execution of Internet Protocols (INET) protocol stack components and applications for the Linux Fast-STREAMS environment. This distribution is only currently applicable to Linux 2.4 and 2.6 kernels and was targeted
at ReleaseThis is the strinet-0.9.2.6 package, released 2007-06-24. This `0.9.2.6' release, and the latest version, can be obtained from the download area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/strinet-0.9.2.6.tar.bz2 The release is available as an autoconf(1) tarball, src.rpm or dsc, or as a set of binary rpms or debs. See the download page for the autoconf(1) tarballs, src.rpms or dscs. See the strinet package page for tarballs, source and binary packages. Please see the NEWS file for release notes and history of user visible changes for the current version, and the ChangeLog file for a more detailed history of implementation changes. The TODO file lists features not yet implemented and other outstanding items. Please see the INSTALL, INSTALL-strinet and README-make, files (or see Installation) for installation instructions. When working from cvs(1) or git(1), please see the README-cvs, file (or see Downloading from CVS). An abbreviated installation procedure that works for most applications appears below. This release of the package is published strictly under Version 2 of the GNU Public License which can be found in the file COPYING. Package specific licensing terms (if any) can be found in the file LICENSES. Please respect these licensing arrangements. If you are interested in different licensing terms, please contact the copyright holder, or OpenSS7 Corporation <sales@openss7.com>. See README-alpha (if it exists) for alpha release information. PrerequisitesThe quickest and easiest way to ensure that all prerequisites are met is to download and install this package from within the OpenSS7 Master Package, openss7-0.9.2.F, instead of separately. Prerequisites for the OpenSS7 INET Networking package are as follows:
(Note: If you acquired strinet a part of the OpenSS7 Master Package, then the dependencies listed below will already have been met by unpacking the master package.)
When configuring and building multiple OpenSS7 Project release packages, place all of the source packages (unpacked tarballs) at the same directory level and all build directories at the same directory level (e.g. all source packages under /usr/src). When installing packages that install as kernel modules, it is necessary to have the correct kernel development package installed. For the following distributions, use the following commands: Ubuntu: $> apt-get install linux-headers
Debian: $> apt-get install kernel-headers
Fedora: $> yum install kernel-devel
You also need the same version of gcc(1) compiler with which the kernel was built. If it is not the default, add `CC=kgcc' on the line after `./configure', for example: $> ../strinet-0.9.2.6/configure CC='gcc-3.4' InstallationThe following commands will download, configure, build, check, install, validate, uninstall and remove the package: $> wget http://www.openss7.org/tarballs/strinet-0.9.2.6.tar.bz2
$> tar -xjvf strinet-0.9.2.6.tar.bz2
$> mkdir build
$> pushd build
$> ../strinet-0.9.2.6/configure --enable-autotest
$> make
$> make check
$> sudo make install
$> sudo make installcheck
$> sudo make uninstall
$> popd
$> sudo rm -rf build
$> rm -rf strinet-0.9.2.6
$> rm -f strinet-0.9.2.6.tar.bz2
If you have problems, try building with the logging targets instead. If the make of a logging target fails, an automatic problem report will be generated that can be mailed to The OpenSS7 Project.6 Installation steps using the logging targets proceed as follows: $> wget http://www.openss7.org/tarballs/strinet-0.9.2.6.tar.bz2
$> tar -xjvf strinet-0.9.2.6.tar.bz2
$> mkdir build
$> pushd build
$> ../strinet-0.9.2.6/configure --enable-autotest
$> make compile.log
$> make check.log
$> sudo make install.log
$> sudo make installcheck.log
$> sudo make uninstall.log
$> popd
$> sudo rm -rf build
$> rm -rf strinet-0.9.2.6
$> rm -f strinet-0.9.2.6.tar.bz2
See README-make for additional specialized make targets. For custom applications, see the INSTALL and INSTALL-strinet files or the see Installation, as listed below. If you encounter troubles, see Troubleshooting, before issuing a bug report. Brief Installation InstructionsThe OpenSS7 INET Networking package is available from the downloads area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/strinet-0.9.2.6.tar.bz2 Unpack the tarball using a command such as: $> tar -xjvf strinet-0.9.2.6.tar.bz2 The tarball will unpack into the relative subdirectory named after the package name: strinet-0.9.2.6. The package builds using the GNU autoconf utilities and the configure script. To build the package, we recommend using a separate build directory as follows: $> mkdir build
$> cd build
$> ../strinet-0.9.2.6/configure
In general, the package configures and builds without adding any special options to the configure script. For general options to the configure script, see the GNU INSTALL file in the distribution: $> less ../strinet-0.9.2.6/INSTALL For specific options to the configure script, see the INSTALL-strinet file in the distribution, or simply execute the configure script with the --help option like so: $> ../strinet-0.9.2.6/configure --help After configuring the package, the package can be compiled simply by issuing the `make' command: $> make Some specialized makefile targets exists, see the README-make file in the distribution or simply invoke the `help' target like so: $> make help | less After successfully building the package, the package can be checked by invoking the `check' make target like so: $> make check After successfully checking the package, the package can be installed by invoking the `install' make target (as root) like so: $> sudo make install The test suites that ship with the package can be invoked after the package has been installed by invoking the `installcheck' target. This target can either be invoked as root, or as a normal user, like so: $> make installcheck (Note: you must add the --enable-autotest flag to configure, above for the test suites to be invoked with `make installcheck'.) The package can be cleanly removed by invoking the `uninstall' target (as root): $> sudo make uninstall Then the build directory and tarball can be simply removed: $> cd ..
$> rm -rf build
$> rm -rf strinet-0.9.2.6
$> rm -f strinet-0.9.2.6.tar.bz2
Detailed Installation InstructionsMore detailed installation instructions can be found in the Installation, contained in the distribution in `text', `info', `html' and `pdf' formats: $> cd ../strinet-0.9.2.6
$> less doc/manual/strinet.txt
$> lynx doc/manual/strinet.html
$> info doc/manual/strinet.info
$> xpdf doc/manual/strinet.pdf
The `text' version of the manual is always available in the MANUAL file in the release. The current manual is also always available online from The OpenSS7 Project website at: $> lynx http://www.openss7.org/strinet_manual.html 1 IntroductionThis manual documents the design, implementation, installation, operation and future development schedule of the OpenSS7 INET Networking package. 1.1 OverviewThis manual documents the design, implementation, installation, operation and future development of the OpenSS7 INET Networking package. The OpenSS7 INET Networking package is an X/Open Transport Interface (XTI/TLI) package for Linux that can be used with Linux Fast-STREAMS7. It includes development tools, header files and manual pages for OpenSS7 INET Networking. 1.2 Organization of this ManualThis manual is organized (loosely) into several sections as follows:
1.3 Conventions and DefinitionsThis manual uses texinfo typographic conventions. 2 ObjectiveThe OpenSS7 INET Networking package is intended to provide compatibility with UNIX System V Release 4 networking components based on the Transport Provider Interface and the XTI/TLI interface described in X/Open Networking Services, in a single add-on package to Linux Fast-STREAMS. One purpose in achieving this compatibility is the porting of legacy applications from UNIX to Linux using the capabilities of STREAMS and Linux Fast-STREAMS. Another objective of providing Transport Provider Interface Streams for Linux Fast-STREAMS was to permit sctp(4), tcp(4), udp(4) and rawip(4) Streams to be opened, linked under multiplexing drivers, and to have STREAMS modules pushed over them. The purpose was to provide access to the Internet Protocol suite to STREAMS modules and drivers written for the strss7-0.9a.7 sigtran-0.9.2.3 and strvoip-0.9.2.3 packages under the OpenSS7 Project, as well as to provide ISO over TCP capabilities for the striso-0.9.2.3 package. The initial approach to implementing INET drivers was to provide an in-kernel STREAMS over Socket approach. Under this approach, the STREAMS inet(4) driver converts between TPI primitives received from the Stream head and in-kernel calls to an internally opened socket of the appropriate type. While this provided an adequate mechanism for providing Internet Protocol STREAMS presenting the TPI service interface, it is rather inefficient. The second approach that is available in this release is a complete STREAMS implementation of
the udp(4) and rawip(4) drivers, as well as the start of a skeleton for a fully
STREAMS-based tcp(4) driver. Performance tests using the
netperf-2.3.6 package shows that these second generation implementations of
udp(4) and rawip(4) compete for performance with Linux native sockets.
The ability to link these Streams underneath multiplexing drivers or pushed beneath modules for
protocols such as The result is stable, production grade, 64-bit clean TPI implementations of Internet Protocols for Linux Fast-STREAMS that can be used by other STREAMS modules and drivers. 3 Reference3.1 FilesSTRINET creates the following kernel modules files in the kernel modules directory, /lib/modules/2.4.20-28.7/:8
STRINET installs the following kernel module files in the kernel modules directory, /lib/modules/2.4.20-28.7/strinet/:9
STRINET installs the following header files in the system include directory, /usr/include/strinet/:
STRINET installs the following test programs in the system libexec directory, /usr/libexec/strinet/:10
STRINET installs the following utility programs in the system binary directory, /usr/sbin/:
STRINET installs the following init scripts in the system init directory, /etc/rc.d/init.d/ (non-Debian) or /etc/init.d/ (Debian):
STRINET installs the following system configuration files in the configuration directory, /etc/:
STRINET installs the following system configuration file in the system configuration directory, /etc/sysconfig/ (non-Debian) or /etc/default/ (Debian):
STRINET installs the following info files in the system info directory, /usr/share/info/:
STRINET installs the following manual page macros and reference database files in the system man directory, /usr/share/man/:11
STRINET installs the following manual pages in the system man directory, /usr/share/man/man3/:
STRINET installs the following manual pages in the system man directory, /usr/share/man/man4/:
STRINET installs the following manual pages in the system man directory, /usr/share/man/man5/:
STRINET installs the following manual pages in the system man directory, /usr/share/man/man7/:
STRINET installs the following manual pages in the system man directory, /usr/share/man/man8/:
3.2 DriversThe OpenSS7 INET Networking package provides the following STREAMS drivers:
3.3 ModulesThe OpenSS7 INET Networking package provides the following STREAMS modules: The OpenSS7 INET Networking package does not currently provide any STREAMS modules. 3.4 LibrariesThe OpenSS7 INET Networking package provides the following shared object and static libraries: The OpenSS7 INET Networking package does not currently provide any libraries. 3.5 Utilities3.5.1 Init ScriptsFollowing are System V Init Scripts that are installed by the package:
3.5.2 Administrative UtilitiesFollowing are user utilities for manipulating INET:
3.5.3 Performance Test ProgramsFollowing are performance test programs: The OpenSS7 INET Networking package does not yet contain any performance programs. For performance testing of various transport providers, see the netperf-2.3.6 package. 3.5.4 Conformance Test ProgramsFollowing are conformance and validation test programs included in the package:
For the proper way to execute these validation test programs in a conformance and validation test suite, see Running Test Suites. 3.5.5 Problem Report ScriptsThe OpenSS7 INET Networking package installs customized problem reporting scripts for reporting problems associated with test suite execution and other difficulties. This problem reporting script is installed in the /usr/libexec/strinet/ subdirectory as follows:
For more information on the use of the problem reporting scripts, see Generating Problem Reports. 4 DevelopmentOpenSS7 INET Networking provides all of the header files, shared object and static libraries, manual pages and documentation necessary for the development of both user space applications programs and kernel space STREAMS modules and drivers based on the package. The sections that follow describe these development facilities. 4.1 Header FilesHeader files are installed, typically, in the /usr/include/strinet/ subdirectory. To use the header files from the package, `-I/usr/include/strinet' must be included in the gcc command line as a preprocessor option. In general, `-I' include preprocessor directives on the gcc command line should be ordered in the reverse order of the dependencies between packages. So, for example, if the include files from all add-on packages are required, the order of these directives would be: `-I/usr/include/strinet' `-I/usr/include/strxns' `-I/usr/include/strcompat' `-I/usr/include/streams'. Following are the user visible header files provided by the strinet-0.9.2.6 package in the directory /usr/include/strinet:
4.1.1 User Space ProgramsTypical include files for interacting with Transport providers from user space include the xti.h header file. Additional header files for interacting with specific drivers or modules may also be required. The xti.h header file is for interacting with the XTI library. 4.1.2 Kernel Space Drivers and ModulesTypical include files for writing STREAMS module and drivers implementing transport providers in kernels space include xti.h and xti_inet.h. The header files provide access to definitions for the TPI interface and additional XTI definitions for use by STREAMS drivers and modules. Additional header files for interacting with specific drivers or modules may also be required. Aside from including this header files, the general procedures for compiling STREAMS modules and drivers also apply to STREAMS modules and drivers written to the Transport Provider Interface. 4.2 LibrariesShared or static version of the libxnet library may be linked when using the strinet-0.9.2.6 package.12 The library may either be specified on the gcc command line as a shared library (e.g. `-lxnet') or as a static library (e.g. `/usr/lib/libxnet.a'). If the shared object library is linked, include the following options on the gcc command line:
If the static library is linked, include the following options on the gcc command line:
4.3 Kernel ModulesDeveloping TPI kernel modules is similar to user space programs with regard to header files. /usr/include/strxnet should be placed as an include directory to search on the gcc command line. The rules for compiling Linux kernel modules and the rules for compiling STREAMS modules and drivers should be followed. In particular, several important intricacies should be considered:
4.4 Manual PagesThe strinet-0.9.2.6 package installs a number of manual pages in the /usr/share/man directory as follows: The following manual pages are installed in Section 3 of the manual (in the subdirectory /usr/share/man/man3):
The following manual pages are installed in Section 4 of the manual (in the subdirectory /usr/share/man/man4): |