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

📄 sdl_udp.8

📁 No7信令,我需要交换类似的代码, 请店长审核,谢谢了,急着交换,谢谢
💻 8
字号:
'\" t.\" -*- nroff -*-.\".\" @(#) sdl_udp.8,v 0.7.8.1 2001/12/11 15:28:44 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 15:28:44 by brian.\".\" sdl_udp.8,v.\" Revision 0.7.8.1  2001/12/11 15:28:44  brian.\" Changed name of sdludp and sdlacb..\".\" Revision 0.7  2001/01/17 00:28:38  brian.\" Added sdl_udp man page..\".\" Revision 0.7.2.1  2001/01/14 11:07:55  brian.\" Changed headers back to GPL..\".\" Revision 0.7  2000/11/29 02:11:01  brian.\" Added man pages for drivers..\".\" =========================================================================.TH SDL_UDP 8 "2001/12/11 15:28:44" "OpenSS7 Man Page" "OpenSS7 Programmer's Manual".SH "NAME"sdl_udp \- SDL emulation using User Datagram Protocol (UDP).SH "SYNOPSIS".nf.B #include <sys/streams.h>.B #include <ss7/sdli.h>.B #include <ss7/sdli_ioctl.h>.sp\fIfd\fB = open("\fI/dev/ss7-sdl-udp0\fB", \fIflags\fB);\fIret\fB = ioctl(\fIfd\fB, \fIcmd\fB, ... /* \fIarg\fB */ );.fi.SH "DESCRIPTION".PPSDL_UDP emulates a Signalling Data Link using a Linux kernel UDP socket toemulate the physical communications channel.  Because a UDP communicationschannel does not exhibit the lower level characteristics of a realcommunications data link, and because certain line conditions (such as loss ofsychronization with flags) are not applicable to the emulation, the emulationis not complete..PPThe purpose of the SDL_UDP is to provide sufficient simulation of a realsignalling link to permit testing and experimentation with the \fIOpenSS7\fRprotocol stack.  SDL_UDP permits quick and easy configuration of simulatedsignalling links between multiple hosts and permits the formation ofcomplicated networks over an Ethernet LAN..PPIn every other respect, SDL_UDP is equivalent to a real Signalling Data Linkdevice driver and can be configured and used in conjunction with the othermodules and protocol layers within the \fIOpenSS7\fR stack just as any otherSDLI driver..SS "STREAMS Interfaces".PPThe STREAMS interface provided by the SDL_UDP driver conforms to theSignalling Data Link Interface (SDLI) as detailed in \fBsdli\fR(7), theLocal Management Interface (LMI) as detailed in \fBlmi\fR(7) and the DeviceControl Interface (DEVI) as detail in \fBdevi\fR(7)..SS "Module".PPSDL_UDP is provided by the \fIstreams-sdl-udp\fR kernel module.This module and modules upon which it depends is automatically loaded whenthe \fI/dev/ss7-sdl-udp0\fR device is opened in a properly configured system.There should be an entry in the \fI/etc/conf.modules\fR or\fI/etc/modules.conf\fR file such as:.sp.RS.nfalias char-major-252 streams-sdl-udp # driver ss7 sdl udp.fi.RE.PPWhere \fI252\fR is the character device major number of the\fI/dev/ss7-sdl-udp0\fR device special file..PPThe \fIstreams-sdl-udp\fR module is compatible with \fIOpenSS7\fR upper layermodules and can push the \fIstreams-sdt\fR and \fIstreams-sl\fR modules..SS "Operation".PPSDL_UDP is a Signalling Data Link Interface \fBsdli\fR(7) compliant driverwhich emulates an SS7 signalling link using Linux UDP sockets.  It includestraffic shaping algorithms which limit the effective ABR to a user-specifiedrate.  Because the driver is unable to detect frame errors, signal unit andframing errors will never be reported to the SUERM/AERM or EIM.  Recommendedtraffic shaping rates are 56 kbps, 64 kbps, 1.544 Mbps and 2.0 Mbps.  Thedriver uses FISU/LSSU compression schemes on both sides of the connection toavoid sending duplicate FISU/LSSUs except in two cases: LSSU SIB are alwayssent when requested, and the first two LSSU SINs or SIEs are sent to triggermovement of the L2 state machines from proving to alignment..SH "PROTOCOL INTERFACE".PPSDL_UDP supports the Signalling Data Link Interface (SDLI) as detailed in\fBsdli\fR(7).SDL_UDP supports both \fBM_PROTO\fR and \fBM_PCPROTO\fR requests andindications using the \fBputmsg\fR(2) and \fBgetmsg\fR(2) system calls..SS "Configuration".PPSDL_UDP supports all protocol variants and options.  Line based errors casewill not be reported (because they are not reported to the UDP socket unlessit represents socket failure).  Level 2 state machines are left repsonsible todetermine whether packets have been mis-sequenced or lost..PPBecause SDL_UDP does not perform line synchronization, the setting of \fIN\fR(the number of octets per SU during octet-counting mode) has no effect onstate machine operation.  The setting of \fIm\fR (the maximum SIF size) isrespected as long as it is less than the MTU of the UDP socket..SS "State".PPAs it does not monitor line sychnronization, SDL_UDP will never enteroctet-counting mode..SS "Statistics".PPBecause SDL_UDP only emulates the line, some statistics with respect to linesynchronization and errors will not be pegged..SS "Primitives".PPSDL_UDP supports the complete set of Protocol Service Primitives which aredescribed in detail in \fBsdli\fR(7)..SH "LOCAL MANAGEMENT INTERFACE".PPSDL_UDP supports the Local Management Interface (LMI) as detailed in\fBlmi\fR(7).  SDL_UDP supports both \fBM_PROTO\fR and \fBM_PCPROTO\fR requestsand indications using the \fBputmsg\fR(2) and \fBgetmsg\fR(2) system calls..SS "PPA Addressing".PPSDL_UDP is a \fIStyle 2\fR driver which must be attached to acommunications channel before it is enabled.The format of the Point of Physical Appearance (PPA) address is a pair of IPaddresses and port numbers which form a local and a remote UDP address in astructure such as follows:.sp.RS.nftypedef struct ppa {    struct sockaddr_in loc;    struct sockaddr_in rem;} ppa_t;.fi.RE.PPLocal and remote addresses are established by using this PPA address in the\fBLMI_ATTACH_REQ\fR for a \fIStyle 2\fR driver as documented in \fBlmi\fR(7).This PPA address will also be returned in response to a \fBLMI_INFO_REQ\fRrequest..PPThe local address and port and the remote address and port must be agreed uponby both sides of the connection through some other mechanism (i.e, staticconfiguration, management system).  The local side of the connection will beprepared to both transmit and recieve packets starting after the\fBLMI_ENABLE_REQ\fR has been confirmed..SS "Errors".PPThe only Local Management Interface errors which are reported by SDL_UDP areas follows:.TP.B LMI_BADPPA.TP.B LMI_INITFAILED.SH "DEVICE CONTROL INTERFACE".PPSDL_UDP supports the Device Control Interface (DEVI) as detail in\fBdevi\fR(7).  SDL_UDP only supports \fBI_STR\fR IOCTLs asdescribed in \fBstreamio\fR(2) and does not support transparent IOCTLs..SS "IOCTLS".PPThefollowing DEVI IOCTLs are applicable to SDL_UDP:.TP.BR DEV_IOCGIFTYPE ", " DEV_IOCSIFTYPEGets or sets the interface type.  Only the \fBDEV_TYPE_PACKET\fR interfacetype is valid for SDL_UDP..TP.BR DEV_IOCGGRPTYPE ", " DEV_IOCSGRPTYPEGets or sets the interface group type.  Only the \fBDEV_GTYPE_UDP\fR interfacegroup type is valid for SDL_UDP..TP.BR DEV_IOCGIFMODE ", " DEV_IOCSIFMODEGets or sets the interface mode.  Only the \fBDEV_GTYPE_PEER\fR interface modeis valid for SDL_UDP..TP.BR DEV_IOCGIFRATE ", " DEV_IOCSIFRATEGets or sets the interface rate.  SDL_UDP accepts bit rates in therange from \fI800\fR bps to \fI10\fR Mbps.  The default rate is \fI1.544\fRMbps.  Changing the interface rate changes traffic shaper parameters to effectthe new shaped effective bit rate..TP.BR DEV_IOCGIFCLOCK ", " DEV_IOCSIFCLOCKGets or sets the interface clocking.  Only the \fBDEV_CLOCK_SHAPER\fRinterface clocking is valid for SDL_UDP..TP.BR DEV_IOCGIFCODING ", " DEV_IOCSIFCODINGGets or sets the interface bit coding.  Only the \fBDEV_CODING_NONE\fRinterface bit coding is valid for SDL_UDP..TP.BR DEV_IOCGIFLEADS ", " DEV_IOCSIFLEADS ", " DEV_IOCCIFLEADSGets or sets the interface leads.  These controls have no effect on SDL_UDP..TP.BR DEV_IOCCDISCTX ", " DEV_IOCCCONNTXDisconnects or connects the transmit path.  For SDL_UDP this merelysuppresses and reestablishes the delivery of packets and does not perform ashutdown on the write side of the Linux UDP socket..TP.B DEV_PRIVATEThere are no device private IOCTLs for SDL_UDP..\" .SH "ERROR HANDLING".SH "CAVEATS".PPSDL_UDP was never intended to be used as, or in conjunction with, a real SS7signalling network.  It is intended for laboratory use and experimentationonly.  SDL_UDP makes no attempt to perform all of the Level 2 functions ofSS7.  It is mostly intended as a simple way of providing a large number ofL2 links for testing upper level protocol modules (such as MTP)..SH "SEE ALSO".PP.BR devi (7),.BR getmsg (2),.BR ioctl (2),.BR lmi (7),.BR mtpi (7),.BR putmsg (2),.BR read (2),.BR sdti (7),.BR sl (8),.BR sl (8),.BR sli (7),.BR slsi (7),.BR ss7d (8),.BR streamio (2),.BR write (2).SH "BUGS".PPNo known bugs..SH "AUTHOR".PPBrian F. G. Bidulock, <bidulock@openss7.org>.SH "HISTORY".PPThis STREAMS interface for SS7 is an original part of the \fIOpenSS7\fR package..SH "REFERENCES".PP.TStab(:);l 1 li..TH[Q702]:ITU-T Rec. Q.702 Signalling Data Link[Q703]:ITU-T Rec. Q.703 Signalling Link[Q704]:ITU-T Rec. Q.704 Message Transfer Part.TE.SH "COPYRIGHT NOTICE".PPCopyright \(co 1997-2001  Brian Bidulock.  All Rights Reserved..sp.ce 1PERMISSION NOTICE.PPPermission is granted to make and distribute verbatim copies of this manualprovided the copyright notice and this permission notice are preserved on allcopies..PPPermission is granted to copy and distribute modified versions of this manualunder the conditions for verbatim copyring, provided that the entire resultingderived work is distributed under the terms of a permission notice identicalto this one..PPSince the Linux kernel and libraries are constantly changing, this manual pagemay be incorrect or out-of-date.  The author(s) assume no responsibility forerrors or omissions, or for damage resulting from the use of the informationcontained herein.  The author(s) may not have taken the same level of care inthe production of this manual, which is licensed free of charge, as they mightwhen working professionally..PPFormatted or processed versions of this manual, if unaccompanied by thesource, must acknowledge the copyright and authors of this work.

⌨️ 快捷键说明

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