]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/smm/18.net/2.t
THIS BRANCH IS OBSOLETE, PLEASE READ:
[FreeBSD/FreeBSD.git] / share / doc / smm / 18.net / 2.t
1 .\" Copyright (c) 1983, 1986, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)2.t 8.1 (Berkeley) 6/8/93
29 .\"
30 .nr H2 1
31 .\".ds RH Overview
32 .br
33 .ne 2i
34 .NH
35 \s+2Overview\s0
36 .PP
37 If we consider
38 the International Standards Organization's (ISO)
39 Open System Interconnection (OSI) model of
40 network communication [ISO81] [Zimmermann80],
41 the networking facilities
42 described here correspond to a portion of the
43 session layer (layer 3) and all of the transport and
44 network layers (layers 2 and 1, respectively).
45 .PP
46 The network layer provides possibly imperfect
47 data transport services with minimal addressing
48 structure.
49 Addressing at this level is normally host to host,
50 with implicit or explicit routing optionally supported
51 by the communicating agents. 
52 .PP
53 At the transport
54 layer the notions of reliable transfer, data sequencing,
55 flow control, and service addressing are normally
56 included.  Reliability is usually managed by 
57 explicit acknowledgement of data delivered.  Failure
58 to acknowledge a transfer results in retransmission of
59 the data.  Sequencing may be handled by tagging
60 each message handed to the network layer by a
61 \fIsequence number\fP and maintaining
62 state at the endpoints of communication to utilize
63 received sequence numbers in reordering data which
64 arrives out of order.
65 .PP
66 The session layer facilities may provide forms of
67 addressing which are mapped into formats required
68 by the transport layer, service authentication
69 and client authentication, etc.  Various systems
70 also provide services such as data encryption and
71 address and protocol translation.
72 .PP
73 The following sections begin by describing some of the common
74 data structures and utility routines, then examine
75 the internal layering.  The contents of each layer
76 and its interface are considered.  Certain of the
77 interfaces are protocol implementation specific.  For
78 these cases examples have been drawn from the Internet [Cerf78]
79 protocol family.  Later sections cover routing issues,
80 the design of the raw socket interface and other
81 miscellaneous topics.