2. II. Scope of the software organization.
The system is based upon two main programs: the Handler program that
drives the channel hardware unit, and the Network program which
carries out the user's transmission requests.
As the communication is full duplex, each of these programs can be
viewed as divided into two parts: one is concerned with the output
data, the other with the input. (See Fig. 1)
These two programs exchange data through a pool of buffers, and
logical information through an interface table.
In the following we only focus on the output part of each program
(See Fig. 2). The input part would be very similar.
2.1. II-1. Network program.
2.1.1. II-1-1. Multiplex function.
This program multiplexes the outgoing messages (and distributes the
incoming messages). The multiplexing consists in stacking up all the
user's (or caller, or party) requests and filling up the pool of
buffers so as to keep the handler busy emitting.
Multiplexing (and distribution) is based on the link identification
numbers. (Link = logical connection between two users). The
multiplexing problem is closely related to the interface between a
user's program and the network program, that is in
fact...(unreadable) operating system (See below: Questions).
2.1.2. II-1-2. Output message processing.
When a user's program wants to send out text it should indicate the
following information (through a macro, or as call parameters): text
location, text length in bytes, and destination.
Using these data the Network program:
* prepares a 16 bit Host heading (1 bit: trace, 2 bits: spares, 8
bits: link identification no., 5 bits: destination host)
* inserts a 16 bits marking between the header and the text so as
to start the text at a word boundary. This marking consists of
a one preceding the first bit of the text and, in turn,
preceded by fifteen zeros to fill up the gap.
* checks the length of the user's text - if it exceeds 1006 bytes
+- -+
|8080 (max host message length) - 32 (heading + marking)|
|-------------------------------------------------------|
| 8 (byte = 8 bits) |
+- -+
the program breaks down the text into a sequence of messages whose
maximum length is 1006 bytes - Each of these messages is preceded by
a heading as explained above.
Remark: in that case one of the heading space bits could be used for
indicating that several messages belong to the same text.
* _transcodes_ the EBCDIC characters constituting the messages
into ASCII characters.
* _fills_ the buffers of the pool with the content of the
messages.
* _updates_ the content of the interface table and moves the
filling pointers (see below).
2.2. II-2. Handler program.
This program is initiated either by the network program, or by the
I/O interrupt.
This program will be very short. It will be coded in master mode
(privileged instructions) and should be integrated in the I/O
supervisor of the operating system.
This program:
* _controls_ the channel hardware unit. It initiates the
emission, eventually provides data chaining between the
buffers, tests the different device status upon receiving an
interrupt.
* _empties_ the buffers that are filled up by the network
program.
* _explores_ and _updates_ the interface table (see below).
* can eventually insure a control transmission procedure with the
IMP (See Questions).
2.3.1. II-3-1 Buffers.
They should be large enough for containing the maximum host message
text + heading and marking (1006 + 4 = 1010 bytes).
Consequently the buffer size could be chosen equal to 256 words (1024
bytes). As for the buffer number it will determine the link
utilization frequency -
It is through this table that the network program informs the handler
with the location and length of the emitting data.
This table could be a ring table with 2 pointers: one for filling,
the other for extracting. They are respectively updated by the
network and the handler program.
[Length] of the message
contained
in the buffer
^
|
+--------------+----------+
| Buffer addr. | nb bytes |
+--------------+----------+
| | | <== Filling pointer
+--------------+----------+ |
| | V
| |
// //
| |
| |
| |
+--------------+----------+
| Buffer addr. | nb bytes | <== eEtracting pointer
+--------------+----------+ |
| Buffer addr. | nb bytes | V
+--------------+----------+