Information technology —- Telecommunications and information exchange between systems — High-level data link control (HDLC) procedures — Elements of procedures

Specifies elements of data link control procedures for synchronous or start/stop, code-transparent data transmission using the HDLC frame structure specified in ISO/IEC 3309 and independent frame numbering in both directions. These HDLC elements of procedures are defined specifically in terms of the actions that occur on receipt of commands at a secondary station or a combined station.

Technologies de l'information — Télécommunications et échange d'informations entre systèmes — Procédures de commande de liaison de données à haut niveau (HDLC) — Éléments de procédures

General Information

Status
Withdrawn
Publication Date
22-Dec-1993
Withdrawal Date
22-Dec-1993
Current Stage
9599 - Withdrawal of International Standard
Completion Date
22-Aug-2002
Ref Project

Relations

Buy Standard

Standard
ISO/IEC 4335:1993 - Information technology —- Telecommunications and information exchange between systems -- High-level data link control (HDLC) procedures -- Elements of procedures
English language
42 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

INTERNATIONAL ISO/IEC
STANDARD 4335
Fifth edition
1993-12-15
Information technology -
Telecommunications and information .
exchange between systems - High-level
data link control (HDLC) procedures -
Elements of procedures
Technologies de /‘information - T&?communications et Gchange
d’informations entre syst&mes - Pro&dues de commande de
liaison de don&es 9 haut niveau (HDLC) - &ments de proce’dures
Reference number
ISO/IEC 4335: 1993(E)

---------------------- Page: 1 ----------------------
ISO/IEC 4335:1993(E)
Page
Contents
. . .
111
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Foreword
iv
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Introduction
1
1 scope .
1
2 Normative references .
1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Definitions
3
4 Data link channel states .
3
5 Modes .
6
..............................................................................
6 Control field and parameters
.................................................................................. 9
7 Commands and responses
18
8 Exception condition reporting and recovery .
Annexes
22
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A Time-out function considerations
24
B Examples of the use of commands and responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
0 ISO/IEC 1993
All rights reserved. Unless otherwise specified, no part of this publication may be
reproduced or utilized in any form or by any means, electronic or mechanical, including
photocopying and microfilm, without permission in writing from the publisher.
ISO/IEC Copyright Office l Case postale 56 l CH-1211 Genkve 20 l Switzerland
Printed in Switzerland
ii

---------------------- Page: 2 ----------------------
0 ISO/IEC ISO/IEC 4335:1993(E)
Foreword
IS0 (the International Organization for Standardization) and IEC (the Inter-
national Electrotechnical Commission) form the specialized system for worldwide
standardization. National bodies that are members of IS0 or IEC participate in
the development of International Standards through technical committees estab-
lished by the respective organization to deal with particular fields of technical
activity. IS0 and IEC technical committees collaborate in fields of mutual inter-
est. Other international organizations, governmental and non-governmental, in
liaison with IS0 and IEC, also take part in the work.
In the field of information technology, IS0 and IEC have established a joint
technical committee, ISO/IEC JTC 1. Draft International Standards adopted by
the joint technical committee are circulated to national bodies for voting. Publi-
cation as an International Standard requires approval by at least 75 % of the na-
tional bodies casting a vote.
International Standard ISO/IEC 4335 was prepared by Joint Technical Committee
ISO/IEC JTC 1, Informution technology, Subcommittee SC 6, Telecommuni-
cations and information exchange between systems.
This fifth edition cancels and replaces the fourth edition (ISO/IEC 4335:1991),
and incorporates ISO/IEC 433YAmd. 4.
Annexes A and B of this International Standard are for information only.
. . .
111

---------------------- Page: 3 ----------------------
o ISO/IEC
ISO/IEC 4335:1993(E)
Introduction
General
High-level data link control (HDLC) procedures are designed to permit synchronous
or start/stop, code-transparent data transmission. This International Standard describes
the HDLC elements of procedures. Further studies are in progress to identify and
define additional elements of procedures which may be included at a later date.
In HDLC procedures, the normal cycle of the code-transparent data communication
between two data stations consists of the transfer of frames containing information
from the data source to the data sink acknowledged by a frame in the opposite
direction. Until the data station comprising the data source receives an
acknowledgement, it holds the original information in memory in case the need should
arise for retransmissions.
Data sequence integrity between the data source and the data sink is effected by means
of a numbering scheme, which is cyclic within a modulus specified in this
International Standard and measured in terms of frames. An independent numbering
scheme is used for each data source/data sink combination on the data link.
HDLC procedures are applicable to unbalanced data links and to balanced data links.
Unbalanced data links
An unbalanced data link involves two or more participating data stations. For control
purposes, one data station on the data link assumes responsibility for the organization
of data flow and for unrecoverable data link level error conditions. The data station
assuming these responsibilities is known as the primary station, and the frames it
transmits are referred to as command frames. The other data stations on the data link
are known as the secondary stations, and the frames they transmit are referred to as
response frames.
For the transfer of data between the primary station and the secondary stations, two
cases of data link control are considered (see figures 1 and 2). In the first case, the
data station comprising the data source performs a primary station data link control
function and controls the data station comprising the data sink that is associated with a
secondary station data link control function, by select-type commands.
iv

---------------------- Page: 4 ----------------------
ISO/IEC 4335:1993(E)
oISO/IEC
In the second case, the data station comprising the data sink performs a primary
station data link control function and controls the data station comprising the data
source that is associated with a secondary station data link control function, by poll-
type commands.
The information flows from the data source to the data sink, and the
acknowledgements are always transmitted in the opposite direction.
These two cases of control may be combined so that the data link becomes capable of
two-way alternate communication, or two-way simultaneous communication.
Balanced data links
A balanced data link involves only two participating data stations. For control
purposes, each data station assumes responsibility for the organization of its data flow
and for unrecoverable data link level error conditions associated with the
transmissions that it originates. Each data station is known as a combined station and
is capable of transmitting and receiving both command and response frames.
For the transfer of data between combined stations, the data link control functions
illustrated in figure 3 are utilized. The data source in each combined station controls
the data sink in the other combined station by the use of select-type commands. The
information flows from the data source to the data sink, and the acknowledgements are
always transmitted in the opposite direction. The poll-type commands may be used by
each combined station to solicit acknowledgements and status responses from the
other combined station.
Select/information
A
Secondary
Primary
station station
4
I
Acknowledgement
Data sink
Data source
Figure 1 - Unbalanced data link configuration (case 1)
Poll/acknowledgement
>
Secondary
Primary
station station
b
Information
Data source
Data sink
Figure 2 - Unbalanced data link configuration (case 2)
Select/infoxmation/acknowledgement/poll
D
Combined Combined
station
station
r=
I I
Select/information/acknowledgement/poll
Data sink/data source
Data sink/data source
Figure 3 - Balanced data link configuration
V

---------------------- Page: 5 ----------------------
This page intentionally left blank

---------------------- Page: 6 ----------------------
ISO/IEC 4335:1993(E)
INTERNATIONAL STANDARD @ Isomc
Telecommunications and
Information technology -
information exchange between systems - High-level data link
Elements of procedures
control (HDLC) procedures -
1 Scope ISO/IEC 3309 : 1993, Information technology -
Telecommunications and information exchange between
This International Standard specifies elements of data link
systems - High-level data link control {HDK)
control procedures for synchronous or start/stop, code-
procedures - Frame structure.
transparent data transmission using the HDLC frame structure
specified in ISO/IEC 3309 and independent f&me numbering
3 Definitions
in both directions.
For the purposes of this International Standard, the following
These HDLC elements of procedures are defined specifically
definitions apply (see also IS0 2382-9).
in terms of the actions that occur on receipt of commands at a
secondary station or a combined station. 3.1 abort: A function invoked by a sending primary,
secondary or combined station causing the recipient to
This International Standard is intended to cover a wide range
discard (and ignore) all bit sequences transmitted by the
of applications; for example one-way, two-way alternate or
sender since the preceding flag sequence.
two-simultaneous data communication between data stations
which are usually buffered, including operations on different 3.2 accept: The condition assumed by a data station
types of data circuits; for example multipointlpoint-to-point, (primary, secondary or combined station) upon accepting a
duplex/half-duplex, correctly received frame for processing.
switched/non-switched,
synchronous/start-stop, etc.
3.3 address field (A): The sequence of eight (or any
The defined HDLC elements of procedures are to be multiple of eight, if extended) bits immediately following the
considered as a common basis for establishing different types flag sequence of a frame identifying the
opening
of control procedures. This International Standard does not secondary/combined station sending (or designated to
define any single system and should not be regarded as a receive) the frame.
specification for a data communication system. Not all of the
3.4 address field extension: Enlarging the address field
commands or responses are required for a particular system
to include more addressing information.
implementation.
A secondary/combined station’s
3.5 basic status:
2 Normative references capability to send or receive a frame containing an
information field.
The following standards contain provisions which, through
reference in this text, constitute provisions of this 3.6 centralized control: A control in which all the
International Standard. At the time of publication, the
primary station functions of the data link are centralized in
editions indicated were valid. All standards are subject to one data station.
revision, and parties to agreements based on this International
3.7 combined: That part of a data station that supports the
Standard are encouraged to investigate the possibility of
combined station control functions of the data link.
applying the most recent editions of the standards indicated
below. Members of IEC and IS0 maintain registers of NOTE -The combined station generates commands and
currently valid International Standards. responses for transmission and interprets received commands and
responses. Specific responsibilities assigned to a combined station
IS0 2382-9 : 1984, Data processing - Vocabulary -Part 9:
include:
Data communication.
1

---------------------- Page: 7 ----------------------
0 ISO/IEC
ISO/IEC 4335:1993(E)
initialization of control signal interchange; b) address/control field interpretation;
organization of data flow; c) command/response generation, transmission and
interpretation; and
interpretation of received commands and generation of
appropriate responses; and d) frame check sequence computation and interpretation.
actions regarding error control and error recovery functions at 3.17 data transmission: See IS0 2382-9, term 09.01.02.
the data link level.
3.18 duplex transmission: See IS0 2382-9, term
3.8 command: In data communication, an instruction 09.03.01.
represented in the control field of a frame and transmitted by
3.19 exception condition: The condition assumed by a
the primary/combined station. It causes the addressed
secondary/combined station upon receipt of a frame which it
secondary/combined station to execute a specific data link
cannot execute due either to a transmission error or to an
control function.
internal processing malfunction.
3.9 command frame:
3.20 flag sequence (F): the unique sequence of eight bits
a) All frames transmitted by a primary station. (01111110) employed to delimit the opening and closing of a
frame.
b) Those frames transmitted by a combined station that
contain the address of the other combined station. 3.21 frame: The sequence of address, control, information,
and FCS fields, bracketed by opening and closing flag
3.10 contention mode: A mode of transmission in which
sequences.
a transmitter can send on its own initiative.
NOTE - A valid frame is at least 32 bits in length and contains an
3.11 control escape (CE): The unique sequence of eight
address field, a control field and a frame check sequence. A frame
bits (10111110) employed to indicate the following octet has
may or may not include an information field.
been modified according to the transparency algorithm for
start/stop transmission environments. 3.22 frame check sequence (FCS): The field
immediately preceding the closing flag sequence of a frame,
3.12 control field (C): The sequence of eight (or sixteen,
containing the bit sequence that provides for the detection of
if extended) bits immediately following the address field of a
transmission errors by the receiver.
hme.
3.23 half-duplex transmission: See IS0 2382-9, term
NOTE - The content of the control field is interpreted by:
09.03.02.
a) the receiving secondary/combined station, designated by the
3.24 higher level: The conceptual level of control or
address field, as a command instructing the performance of
processing logic existing in the hierarchical structure of a data
some specific function; and
station (primary, secondary or combined station) that is above
b) the receiving primary/combined station as a response from the data link level and upon which the performance of data
the secondary/combined station, designated by the address link level functions are dependent; for example device
field, to one or more commands. control, buffer allocation, station management, etc.
3.13 control field extension: Enlarging the control field 3.25 information field (INFO): The sequence of bits,
to include additional control information. occurring between the last bit of the control field and the first
bit of the frame check sequence.
3.14 data communication: See IS0 2382-9, term
09.01.03. NOTE - The information field contents of I and UI frames are not
interpreted at the data link level.
3.15 data link: An assembly of two or more terminal
installations and the interconnecting line operating according 3.26 interframe time fill: The sequence or condition
to a particular method that permits information to be transmitted between frames.
exchanged.
3.27 intraframe time fill: In start/stop transmission, the
NOTE - In this context, the term “terminal installation” does not sequence or condition transmitted within a frame when the
include the data source and the data sink. next octet is not available for contiguous transmission
immediately following the preceding octet. For synchronous
3.16 data link level: The conceptual level of control or
transmission, there is no provision for intraframe time fill.
processing logic existing in the hierarchical structure of a data
station (primary, secondary or combined station) that is 3.28 invalid frame: A sequence of bits, following the
responsible for maintaining control of the data link. receipt of an apparent opening flag sequence, that either
NOTE - The data link level functions provide an interface is terminated by an abort sequence; or
a)
between the data station high level logic and the data link. These
contains less than 32 bits before an apparent closing
b)
functions include:
flag sequence is detected.
a) transparency;

---------------------- Page: 8 ----------------------
o ISO/IEC
ISO/IEC 4335:1993(E)
4.1.2 Abort
3.29 primary station:
The data station that supports the primary station control 4.1.2.1 Synchronous transmission
functions of the data link, i.e. that generates commands for
Aborting a frame shall be accomplished by transmitting at
transmission and interprets received responses.
least seven contiguous “1” bits (with no inserted “0” bits) to
responsibilities
NOTE - Specific assigned to the primary end the frame. Receipt of seven contiguous “1” bits shall be
include: interpreted as an abort and the receiving data station shall
ignore the frame.
a) initialization of control signal interchange;
NOTE - If more than seven ” 1” bits are sent to abort, care should
b) organization of data flow; and
be taken because if 15 or more “1” bits are sent, including those
actions regarding error control
and error recovery functions at already transmitted at the time of the decision to abort, an idle data
Cl
the data link level. link channel state will result.
3.30 primary/secondary station: The general case 4.1.2.2 Start/stop transmission
where the station may be either a primary station or a
Aborting a frame shall be accomplished by transmitting the
secondary station.
two-octet sequence “control escape-closing flag”. Receipt of
3.31 response: In data communication, a reply represented this sequence shall be interpreted as an abort and the
in the control of a response frame that advises the receiving data station shall ignore the frame.
primary/combined station with respect to the action taken by
4.13 Interframe time fill
the secondary/combined station to one or more commands.
4.13.1 Synchronous transmission
3.32 response frame:
Interframe time fill shall be accomplished transmitting
bY
All frames transmitted by a secondary station.
4
contiguous flags between frames.
b) Those frames transmitted by a combined station that
4.1.3.2 Start/stop transmission
contain the address of the transmitting combined
station. Interframe time fill shall be accomplished by the transmission
of either continuous flags or marking condition (logical “1”
The data station that executes
3.33 secondary station:
state) between frames. Selection of the interframe time fill
data link control functions as instructed by the primary
method depends on systems requirements.
station.
4.1.4 Intraframe time fill
- A secondary station interprets received commands and
responses for transmission. 4.1.4.1 Synchronous transmission
generates
3.34 secondary station status: The current condition of There is no provision for time fill within a frame.
a secondary station with respect to processing the series of
4.1.4.2 Start/stop transmission
commands received from the primary station.
Inter-octet time fill within a frame shall be accomplished by
3.35 two-way alternate data communication: See
transmitting continuous mark-hold condition (logical “1”
IS0 2382-9, term 09.0503.
state). There is no provision for time fill within an octet (i.e.,
3.36 two-way simultaneous data communication: between the start element and stop element).
See IS0 2382-9, term 09.0502.
4.2 Idle data link channel state
commands: The commands that do
3.37 unnumbered
4.2.1 Synchronous transmission
not contain sequence numbers in the control field.
A data link channel is in an idle state when a continuous “1”
3.38 unnumbered responses: The responses that do not
state is detected that has persisted for at least 15 bit times;
contain sequence numbers in the control field.
detection of the idle state at the data link level shall be
considered to indicate that the remote data station has
4 Data link channel states
relinquished its right to continue transmission.
4.1 Active data link channel state
4.2.2 Start/stop transmission
4.1.1 General
A data link channel is in the idle state when a continuous
A data link channel is in an active state when the primary mark-hold condition persists for the period of time
determined by a system-specified timeout function. The
station, a secondary station or a combined station is actively
transmitting a frame, a single abort sequence, or interframe duration of this timer is not a subject of this International
Standard.
time fill. In the active state, the right to continue transmission
shall be reserved.
5 Modes
Three operation .a1 modes and three non-operational modes are
defined.
3

---------------------- Page: 9 ----------------------
o ISO/IEC
ISO/IEC 4335:1993(E)
These two disconnected modes (NDM and ADM) are
5.1 Operational modes
provided to prevent a secondary/combined station Tom
The three operational modes are:
appearing on the data link in a fully operational mode during
a) normal response mode (NRM); unusual situations or exception conditions since such
operation could cause:
asynchronous response mode (ARM); and
b)
a) unintended contention in ARM;
asynchronous balanced mode (ABM).
Cl
b) sequence number mismatch between the primary
5.1.1 Normal response mode (NRM)
station and the secondary station, or between
In NRM, which is an unbalanced data link operational mode, combined station; or
the secondary station shall initiate transmission only as the
ambiguity in the primary/combined station as to the
Cl
result of receiving explicit permission to do so from the
status of the secondary/other combined station.
primary station. After receiving permission, the secondary
station shall initiate a response transmission. The response A secondary station shall be system predefined as to the
transmission shall consist of one or more frames while condition(s) that causes it to assume a disconnected mode.
maintaining an active data link channel state. The last frame The disconnected mode (NDM or ADM) shall also be system
of the response transmission shall be explicitly indicated by predefined. A combined station shall be system predefined as
the secondary station. Following indication of the last frame, to the condition(s) that causes it to assume the asynchronous
the secondary station shall stop transmitting until explicit disconnected mode (ADM).
permission is again received from the primary station.
The secondary station capability in a disconnected mode shall
5.1.2 Asynchronous response mode (ARM) be limited to:
In ARM, which is an unbalanced data link operational mode, accepting and responding to one of several
4
the secondary station may initiate transmission without appropriate mode-setting commands [set normal
receiving explicit permission to do so from the primary response mode (SNRM), set asynchronous response
Such an asynchronous transmission may contain
station. mode (SARM), set normal response mode extended
single or multiple frames and shall be used for information (SNRME), set asynchronous response mode
field transfer and/or to indicate status changes in the extended (SARME), set initialization mode (SIM),
secondary station (for example, the number of the next and disconnect (DISC)];
expected information frame, transition from a ready to a busy
accepting and responding to an exchange
b)
condition or vice versa, occurrence of an exception
identification (XID) command;
condition).
accepting and responding to a test (TEST) command;
c)
5.13 Asynchronous balanced mode (ABM)
accepting and responding to an unnumbered poll
d)
In ABM, which is a balanced data link operational mode,
(UP) command;
either combined station may send commands at any time and
may initiate response frame transmission without receiving transmitting a disconnected mode (DM), request
4
explicit permission to do so from the other combined station. initialization mode (RIM), exchange identification
Such an asynchronous transmission may contain single or (XID), or request disconnect (RD) response frame at
multiple frames and shall be used for information field a respond opportunity to solicit a specific action on
transfer and/or to indicate status changes in the combined the part of the primary station;
station (for example, the number of the next expected
accepting an unnumbered information
f) WI)
information frame, transition from a ready to ‘a busy condition
command; and
or vice versa, occurrence of an exception condition).
transmitting a UI response at a respond opportunity.
g)
5.2 Non-operational modes
The capability of a combined station, as a receiver of
The three non-operational modes are:
commands, in the asynchronous disconnected mode, shall be
normal disconnected mode (NDM); the same as that stated above for a secondary station
a)
[appropriate mode setting commands for a combined station
asynchronous disconnected mode (ADM); and
b)
include the set asynchronous balanced mode (SABM), set
initialization mode (IM).
asynchronous balanced mode extended (SABME), SIM and
C)
DISC commands]. In addition, since the combined station
The disconnected modes (NDM and ADM) differ from the
has the ability to transmit commands at any time, the
operational modes in that the secondary/combined station is
combined station may transmit an appropriate mode setting,
logically disconnected from the data link; i.e. no information
XID, UI or TEST command.
(I) or supervisory frames are transmitted or accepted. The
initialization mode (IM) differs from the operational modes in A secondary/combined station in a disconnected mode (NDM
that the secondary/combined station data link control program or ADM) shall, as a minimum capability, be capable of
is either in need of regeneration or is in need of an exchange generating the DM response with the F bit set to “1” in
of the parameters to be used in an operational mode. response to a command frame received with the P bit set to
4

---------------------- Page: 10 ----------------------
o ISO/IEC
ISO/IEC 4335:1993(E)
response, as appropriate. Any command with the P bit set to
“O”, other than the implemented mode setting, XID, UI,
A secondary/combined station in a disconnected mode (NDM
TEST or UP commands as described above, may be ignored
or ADM) receiving a DISC command shall respond with the
by the secondary station in NDM.
DM responses. A sewndary/wmbined station in the
initialization mode receiving a DISC command shall respond 5.2.2 Asynchronous disconnected mode (ADM)
with the unnumbered acknowledgment (UA) response if it is
In ADM, which is an unbalanced data link or balanced data
capable of actioning the command. A secondary/command
link non-operational mode, the secondary/combined station
station in an operational mode receiving a DISC command
shall be logically disconnected from the data link and shall,
shall respond with the UA response.
therefore, not be permitted to accept information in I
Examples of possible conditions (in addition to receiving a command frames/I command or response frames,
DISC command) which shall cause a secondary/combined respectively, or to transmit information in I response frames/I
station to enter a disconnected mode are: command or response frames, respectively. The
secondary/combined station shall, however, be permitted to
the secondary/combined station power is turned on,
a)
accept information in UI command frames/U1 command or
or restored following a temporary loss of power;
response frames, respectively, or to transmit information in
the secondary/combined station data link level logic UI response frames/U1 command or response frames,
b)
is manually reset; and respectively. The secondary station, or combined station as a
receiver of commands, has asynchronous mode respond
the secondary/combined station terminal is manually
C>
opportunity and may initiate a response transmission in two-
switched from a local (home) condition to a
way alternate exchange upon detection of an idle data link
connected-on-the-data-link (on-line) condition.
channel state, and in two-way simultaneous exchange at any
A secondary/combined station in a non-operational time. Such a response transmission shall only consist of a UI
shall not establish a frame reject exception condition. response frame, a request for a mode setting command (DM),
a request for exchange of identification (XID), or a request
5.2.1 Normal disconnected mode (NDM)
for initialization (RIM) if the secondary station, or combined
station as a receiver of commands, determines it is unable to
In NDM, which is an unbalanced data link non-operational
function. The combined station, as a transmitter of command
mode, the secondary station shall be logically disconnected
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.