⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smi.7

📁 No7信令,我需要交换类似的代码, 请店长审核,谢谢了,急着交换,谢谢
💻 7
📖 第 1 页 / 共 2 页
字号:
'\" t.\" -*- nroff -*-.\".\" @(#) smi.7,v 0.7.8.1 2001/12/11 13:16:08 brian Exp.\".\" =========================================================================.\".\" This manpage is Copyright (C) 1997-2001  Brian Bidulock..\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date.  The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein.  The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" =========================================================================.\".\" Last Modified 2001/12/11 13:16:08 by brian.\".\" smi.7,v.\" Revision 0.7.8.1  2001/12/11 13:16:08  brian.\" Branched for new development..\".\" Revision 0.7.6.1  2001/02/18 12:11:14  brian.\" New working branch for next release..\".\" Revision 0.7.4.1  2001/02/18 09:44:48  brian.\" Added new working branch..\".\" Revision 0.7.2.4  2001/01/17 00:29:10  brian.\" Working on man pages..\".\" Revision 0.7.2.3  2001/01/14 23:29:12  brian.\" Changed copyright notice..\".\" Revision 0.7.2.2  2001/01/14 11:07:53  brian.\" Changed headers back to GPL..\".\" Revision 0.7.2.1  2001/01/08 09:17:23  brian.\" Updated man pages somewhat..\".\" Revision 0.7  2000/11/29 02:09:56  brian.\" Added man pages for interfaces..\".\" Revision 0.7  2000/11/19 00:25:57  brian.\" Added man pages for streams drivers..\".\" =========================================================================.TH SS7 7 "2001/12/11 13:16:08" "SS7 STREAMS Man Page" "Linux STREAMS Programmer's Manual" .SH "NAME"smi \- Signalling System No. 7 - SS7 Management Interface (SMI).SH "SYNOPSIS".nf\fB#include <ss7/smi.h>\fR\fIfd\fB = open("\fI/dev/module\fB", \fIflags\fB);\fIret\fB = ioctl(\fIfd\fB, \fIcmd\fB, ... /* \fIarg\fB */ );.fi.SH "DESCRIPTION"This man page describes the STREAMS interface which is used to manage andconfigure SS7 modules and drivers conforming to the \fIOpenSS7\fR SS7Management Interface (SMI) specification.SMI is the common interface to \fIOpenSS7\fR modules and drivers configured bythe SS7 Configuration Daemon \fBss7d\fR(8) using \fBstreamio\fR(7)\fBI_PUSH\fR and \fBI_LINK\fR ioctls.  This interface is also available forthe development of special purposes management entities (e.g. SNMP, TMN) formanagement of the \fIOpenSS7\fR stack.  All SS7 drivers, modules andmultiplexors in the \fIOpenSS7\fR stack provide the SMI for management.The SMI consists of two subcomponents:.TP.I "PROTOCOL MANAGEMENT INTERFACE"SMI provides a protoocl management interface which utilizes \fBM_PROTO\fR and\fBM_PCPROTO\fR messages which can be exchanged with \fBputmsg\fR(2) and\fBgetmsg\fR(2) system calls on the stream head or control stream once theinterface is opened, or \fBM_CTL\fR(2) messages between modules.  The protooclmanagement interface supports general and layer-specific configuration, stateinquiry, event and statistics control (SNMP functions) which are normally usedby the SS7 Configuration Daemon \fBss7d\fR(8) on the driver interface ormultiplexor control channel before or after the SS7 protocol stack has beenconfigured..TP.I "INPUT OUTPUT CONTROL INTERFACE"SMI provides a control interface which utilizes \fBioctl\fR(2) transparentcalls, pass-through calls, or \fBI_STR\fR ioctl calls using \fBstreamio\fR(2)from a stream head or a multiplexor control stream.  The control interfaceprovides for the control of layer-specific and device-specific aspects whichare outside the scope of the SS7 protocol proper, such as interfaceconfiguration and is normally used by the SS7 Configuration Daemon\fBss7d\fR(8) or upstream modules during stack operation..SH "PROTOCOL MANAGEMENT INTERFACE"Protocol management primitives are provided to allow forprotocol-layer-specific configuration, state examination, statistical andevent retporting.  These primitives use a layer-specific  configuration structure\fImodname\fR\fB_config_t\fR, state machine structure \fImodname\fR\fB_statem_t\fR,statistics structure \fImodname\fR\fB_stats_t\fR and event categories.Protocol management primitives are exchanged using \fBM_PROTO\fR and\fBM_PCPROTO\fR messages in the same manner as protocol primitives, using\fBputmsg\fR(2) and \fBgetmsg\fR(2) system calls at the stream head or usingthe pass through mechanism provided by the control stream of an openmultiplexor (see \fBsls\fR(8) and \fBmtp\fR(8)).  These primitivies arenormally only used by the \fBss7d\fR(8) during configuration and operation,but may be used for testing and special purposes by user-level programs fromthe stream head.To avoid define clashes, protocol modules will also accept \fBM_CTL\fRmessages with these primitives for inter-module communications, and many ofthe primitive functions are also supported using the \fBioctl\fR(2) interfacedescribed in the next section..SS Protocol Configuration.PPProtocol management primitives are invoked by stack and layer management toconfigure or request configuration information from the layer serviceprovider.  Any \fBM_DATA\fR block attached to the primitives contains a\fImodname\fR\fB_config_t\fR structure (see below) which represents theconfiguration parameters.  Configuration requests should normally be sent as\fBM_PCPROTO\fR or \fBM_CTL\fR messages..PPEach \fIOpenSS7\fR module defines a configuration structure\fImodname\fR\fB_config_t\fR which contains the following two members:.RS.sp.nftypedef struct \fImodname\fR_config {    ss7_ulong   pvar;   /* protocol variant */    ss7_ulong   popt;   /* protocol options */    \fI...\fR    \fI/* additional level specific options */\fR    \fI...\fR} \fImodname\fR_config_t;.fi.RE.TP.I pvarThe \fIOpenSS7\fR stack provides the capability to run many SS7 protocolvariants simultaneously.  Therefore, all \fIOpenSS7\fR stack modules contain a\fIpvar\fR configuration parameter which contains the selected protocolvariant.  Currently defined protocol variants are as follows:.IP.B SS7_PVAR_ITUT_88ITU-T Q.700 Series Blue Book.br.B SS7_PVAR_ITUT_93ITU-T Q.700 Series White Book.br.B SS7_PVAR_ITUT_96ITU-T Q.700 Series Grey Book.br.B SS7_PVAR_ITUT_00ITU-T Q.700 Series Black Book.br.B SS7_PVAR_ETSI_88ETSI ETS 300 Series (based on Blue Book).br.B SS7_PVAR_ETSI_93ETSI ETS 300 Series (based on White Book).br.B SS7_PVAR_ETSI_96ETSI ETS 300 Series (based on Grey Book).br.B SS7_PVAR_ETSI_00ETSI ETS 300 Series (based on Black Book).br.B SS7_PVAR_ANSI_88ANSI T1.111-1988.br.B SS7_PVAR_ANSI_92ANSI T1.111-1992.br.B SS7_PVAR_ANSI_96ANSI T1.111-1996.br.B SS7_PVAR_ANSI_00ANSI T1.111-2000.br.B SS7_PVAR_JTTC_94Japan TTC JQ.700 Series (based on Blue Book).IPThese protocol variant parameters are defined in such a way that they can betested against the following to find the major variant:.IP.B SS7_PVAR_ITUTITU-T Q.700 Series.br.B SS7_PVAR_ETSIETSI ETS 300 Series (based on ITU-T).br.B SS7_PVAR_ANSIANSI T1.111.br.B SS7_PVAR_JTTCTTC JQ.700 Series.TP.I poptIn addition, each \fIOpenSS7\fR module can enable or disable a number of major optionswhich are described in the standards specifications.  Each \fIOpenSS7\fR module has a\fIpopt\fR configuration parameter which contains a bit vector of the enabledprotocol options for that module.  For a definition of the options at eachlevel, see the man page for the specific interface..TP.I ...Additional configuration members are layer-specific and are defined by thecorresponding layer interface specifications.  See section "SS7 STREAMSINTERFACES" for more information..PPEach \fIOpenSS7\fR module recognizes protocol management primitives forconfiguration.  These primitives are invoked by protocol layer management toconfigure or request configuration information from the layer serviceprovider.  Any \fBM_DATA\fR block attached to the primitives contains a\fImodname\fR\fB_config_t\fR structure (see above) which represents the configurationparameters.  Configuration request should normally be sent as \fBM_PCPROTO\fRmessages..TP.B SMI_CONFIG_SETUPTest if the configuration parameters provided in the attached \fBM_DATA\fRblock are settable and correct.  Any values set to \fI0xffffffff\fR in theconfiguration parameters should not be tested for change by the layer serviceprovider.  When successful, this request also write locks the configurationuntil a successful \fBSMI_CONFIG_COMMIT\fR is executed.This primitive contains only the \fIsmi_primitive\fR member..TP.B SMI_CONFIG_COMMITCommits the changes of a previous successful \fBSMI_CONFIG_TEST\fR operation.No configuration data is associated with this request and any attached\fBM_DATA\fR is ignored.  When successful, this request also releases thewrite locks on the configuration.This primitive contains only the \fIsmi_primitive\fR member..TP.B SMI_CONFIG_SETSets the configuration parameters to the values provided in the attached\fBM_DATA\fR block.  This request will fail if the configuration is writelocked.This primitive contains only the \fIsmi_primitive\fR member..TP.B SMI_CONFIG_GETGet the configuration parameters.  Any attached \fBM_DATA\fR is ignored.  Ifthe configuration is write locked, this request will only return the valueswhich have been setup for a commit and not necessarily the current values.This primitive contains only the \fIsmi_primitive\fR member..TP\fBERRORS\fR (see also "ERROR HANDLING")Upon success, the layer service provider will return a \fBSMI_OK_ACK\fR toconfirm a successful configuration request.  The provider attached a\fBM_DATA\fR block which contains the \fImodname\fR\fB_config_t\fR structure withthe results of the configuration request.Upon failure, the layer service provider will return a \fBSMI_ERROR_ACK\fR toreject the configuration request due to an error.  The provider attaches a\fBM_DATA\fR block which contains a \fImodname\fR\fB_config_t\fR structure with\fI0xffffffff\fR in any values which are in error.Error numbers \fIsmi_errno\fR which are specific to a configuration requestrejection are as follows:.RS.TP 16.B SMI_CONFLOCKEDThe request attempted to perform an illegal operation on a lockedconfiguration..TP.B SMI_NOCONFDATAThe request was missing configuration data (i.e. missing \fBM_DATA\fR block or\fBM_DATA\fR block too short..TP.B SMI_BADCONFDATASome configuration data was invalid.  The attached \fBM_DATA\fR block contains\fI0xffffffff\fR in the data elements which are considered invalid..RE.SS "Protocol State"Each \fIOpenSS7\fR module defines a state structure\fImodname\fR\fB_statem_t\fR which contains primary state machine variablesand flags.These structures may be included in \fBM_DATA\fR blocks and attached toprotocol management primitives affecting or indicating state.  The\fImodname\fR\fB_statem_t\fR structure is formatted as follows:.RS.sp.nftypedef struct {    smi_ulong   \fIsm_mod1\fR_state;    smi_ulong   \fIsm_mod2\fR_state;    smi_ulong       \fIsm_mod2_flag1\fR;    smi_ulong       \fIsm_mod2_flag2\fR;    smi_ulong   \fIsm_mod3\fR_state;    smi_ulong       \fIsm_mod3_flag1\fR;    smi_ulong   \fIsm_mod4\fR_state;} \fImodname\fR_statem_t;.fi.RE.TP\fIsm_modX\fR_state.TP\fIsm_modX_flagY\fR.PPProtocol management primitives may be invoked by stack or layer management torequest and return state information about the layer service provider.  Thismay be useful for resynchronization between protocol modules as well as fortesting and diagnostic purposes.  Any \fBM_DATA\fR block attached to theprimitive or acknowledgement contains a layer-specific\fImodname\fR\fB_statem_t\fR structure (see above) which represents thecurrent state of the layer protocol state machines.  State requests may besent as \fBM_PROTO\fR or \fBM_PCPROTO\fR messages depending on their urgency.Upstream modules may send a \fBM_CTL\fR message if desired..TP.B SMI_STATE_REQRequests that the layer service provider return the current state variablesassociated with the layer state machines.  This primitive uses the\fBsmi_state_req_t\fR structure which contains only the \fIsmi_primitive\fR..TP\fBERRORS\fR (see also "ERROR HANDLING")Upon success, the layer service provider will return a \fBSMI_OK_ACK\fR toconfirm the successful state request.  The provider attaches a \fBM_DATA\fRblock which contains the \fImodname\fR\fB_statem_t\fR structure containing thelayer-specific state variables.Upon failure, the layer service provider will return a \fBSMI_ERROR_ACK\fR toreject the state request.  Normally a request is successful and only thegeneral error codes (see "ERROR HANDLING") will be returned..SS "Protocol Statistics"Protocol management primitives may be invoked by the stack or layer managementto request and return statistical information collected during the operationof the layer service provider.  Any \fBM_DATA\fR block attached to theprimitive or acknowledgement contains a layer-specific\fImodname\fR\fB_stats_t\fR structure (see above) which represents currentcollection periods and the statistics collected during the collectioninterval by the provider.  Statistics requests should be sent as low priorityband \fBM_PROTO\fR or \fBM_CTL\fR messages.  The provider will respond withlow priority band \fBM_PROTO\fR or \fBM_CTL\fR messages for all but errorconditions, which are sent as \fBM_PCPROTO\fR.  \fBSMI_STATS_IND\fR messageswill all be sent as low priority band \fBM_PROTO\fR or \fRM_CTL\fR messages.This avoids congestion resulting from synchronized data collection intervalsacross a number of managed objects in the stack..TP.B SMI_STATS_SETSets the statistics collection and aggregation parameters as well clearing anycounts marked as \fI0xffffffff\fR provided in the attached \fBM_DATA\fR blockcontaining a \fImodname\fR\fB_stats_t\fR structure.This primitives uses the \fBsmi_stats_set_t\fR structure which contains the\fIsmi_primitive\fR as its only member..TP.B SMI_STATS_GETGets the statistics collection and aggregation parameters as well as thecounts for the current collection interval.This primitives uses the \fBsmi_stats_get_t\fR structure which contains the\fIsmi_primitive\fR as its only member..TP.B SMI_STATS_INDDelivers an indication of the aggregated statistics for a collection interval.An attached \fBM_DATA\fR block contains the aggregated statistics for thecollection interval.This primitives uses the \fBsmi_stats_ind_t\fR struct which contains thefollowing members:.RS.sp.nftypedef struct {    smi_ulong   smi_primitive;  /* SMI_STATS_IND */    smi_ulong   smi_interval;    smi_ulong   smi_timestamp;} smi_stats_ind_t;.fi.TP.I smi_intervalThe interval for which this indication corresponds (in jiffies).  This couldnormally be 5 minutes, 15 minutes, 30 minutes, 60 minutes..TP.I smi_timestampThe UNIX timestamp (seconds since epoch) corresponding to the beginning of theinterval for which statistics have been collected..RE.TP\fBERRORS\fR (see also "ERROR HANDLING")Upon success, the layer service provider will return a \fBSMI_OK_ACK\fR toconfirm the successful statistics request.  The provider attaches a\fBM_DATA\fR block which contians the \fImodname\fR\fB_stats_t\fR structurecontaining the layer-specific statistics parameters and counts.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -