ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
STREAMS - Wikipedia, the free encyclopedia

STREAMS

From Wikipedia, the free encyclopedia

In computer networking, STREAMS is the native framework in Unix System V for implementing character devices.

STREAMS was designed as a modular architecture for implementing full-duplex, bidirectional character I/O between kernel or user space processes and device drivers. Its most frequent uses have been in developing terminal I/O and networking subsystems. In System V Release 4, the entire terminal interface was reimplemented using STREAMS[1]. An important concept in STREAMS is the ability to push drivers — custom code modules that can modify the functionality of a network interface or other device — together to form a stack. Several of these drivers can be chained together in order.

Contents

[edit] History

STREAMS was first introduced in Eighth Edition Research Unix by Dennis Ritchie, where it was used for the terminal I/O subsystem and the TCP/IP protocol. This version heroically attempted to fit the new functionality under the existing device I/O system calls (open, close, read, write, and ioctl), which limited its application to terminal I/O and protocols providing pipe-like I/O semantics. It was ported to System V Release 3 by Robert Israel, Gil McGrath, Dave Olander, Her-Daw Che, and Maury Bach as part of a wider framework intended to support a variety of transport protocols, including TCP/IP, ISO Class 4 transport, SNA LU 6.2, and the AT&T NPACK protocol (used in RFS). This port added the putmsg, getmsg, and poll system calls, which are nearly equivalent to the send, recv, and select calls from Berkeley sockets. In subsequent releases, STREAMS was used for the terminal I/O framework and pipes, providing useful new functionality like bi-directional pipes and file descriptor passing. A port for Unicos was also produced.

While the original Bell Labs research implementation [2] was criticized for slowness, the System V.3 and later third-party implementations did not suffer from serious speed issues.

Concurrent with the System V.3 port, AT&T developed protocol-independent STREAMS message passing guidelines for the link, network, transport, and session layers of the OSI model (layers 2-5). Due to the typically close implementation coupling of the network and transport protocols in a given protocol stack, and the typical practice of implementing layers 5-7 outside of the kernel, only the link and transport layer interfaces have been widely adopted in practice. In conjunction with the transport message passing model, the Transport Layer Interface (later adopted as the X/Open Transport Interface) was defined to provide a transport protocol-independent API for application development. The TLI/XTI API is roughly equivalent to BSD sockets, and most systems now provide a sockets emulation for use with the TCP/IP protocol stack (either on top of the TLI/XTI API or as an alternative API on top of the underlying STREAMS transport message passing model).

STREAMS was required for conformance with the Single UNIX Specification versions 1 (UNIX 95) and 2 (UNIX 98), but has been marked as optional in version 3 (UNIX 03).

[edit] Implementations

STREAMS has mostly been used in the System V Unix world; however, other implementations exist:

  • Plan 9 also features STREAMS networking.
  • Apple Computer licensed the Mentat implementation of STREAMS for use on the Mac OS starting in version 7.5.2, as part of their Open Transport networking system. The STREAMS architecture remains in the Classic environment on the PowerPC version of Mac OS X, but the native networking architecture is essentially Berkeley sockets.
  • Linux has STREAMS in the form of LiS [3] [4] and more recently as OpenSS7 Fast STREAMS [5]. STREAMS functionality is not included with the Linux kernel; the kernel developers consider it technically inadequate, and the compatibility layers in Linux for other operating systems convert STREAMS operations into sockets as early as possible [6].
  • It is rumored that an early port of TCP/IP for Windows NT by Lachman Associates included a full implementation of the System V.3 STREAMS model.
  • Novell Netware also utilizes STREAMS in its TCP/IP stack, licensed the Mentat.

[edit] References

  1. ^ Goodheart, Benny (1994). The Magic Garden Explained:The Interals of UNIX System V Release 4. Prentice Hall, 51-53, 403-527. ISBN 0-13-098138-9. 
  2. ^ Dennis M. Ritchie. "A Stream Input-Output System". 1897-1910. AT&T Retrieved on 2006-05-19.
  3. ^ LiS: Linux STREAMS, Francisco Ballesteros, Linux Journal, Sat 01 May 1999
  4. ^ LiS home page
  5. ^ OpenSS7 download page
  6. ^ Alan Cox, Streams and Linux, Linux Kernel Mailing List, 28 June 1998

[edit] External links

Languages


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -