HDLC-Frame Protocol User’s Guide Edition 1 HP 9000 Networking Manufacturing Part Number : Z7345-90005 E0204 © Copyright 2004 Hewlett-Packard Company.
Legal Notices The information in this document is subject to change without notice. Hewlett-Packard makes no warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be held liable for errors contained herein or direct, indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this material. Warranty.
This software is based in part on the Fourth Berkeley Software Distribution under license from the Regents of the University of California. © copyright 1980, 1984, 1986 Novell, Inc. © copyright 1986-1992 Sun Microsystems, Inc. © copyright 1985-86, 1988 Massachusetts Institute of Technology. © copyright 1989-93 The Open Software Foundation, Inc. © copyright 1986 Digital Equipment Corporation. © copyright 1990 Motorola, Inc.
Printing History The manual publishing date and part number indicate its current edition. The publishing date will change when a new edition is published. Minor changes may be made without changing the publishing date. The manual part number will change when extensive changes are made. Manual updates may be issued between editions to correct errors or document product changes. To ensure that you receive the updated or new editions, you should subscribe to the appropriate product support service.
Preface The HDLC.FRAME Protocol Product is used in conjunction with Hewlett-Packard’s Advanced Communications Controller (ACC) product. This manual explains installing the HDLC.FRAME protocol module and configuring the module into the ACC product. Organization This manual contains the following chapters and appendix: Chapter 1 Chapter 1, “Overview,” presents an overview of the features provided by the HDLC.FRAME Protocol product.
Contents 1. Overview Introduction . . . . . . . . . . . . Product Features . . . . . . . . Supported Devices . . . . . . . Modes of Operation . . . . . . Data Rules. . . . . . . . . . . . Files Provided. . . . . . . . . . . ...... ...... ...... ...... ...... ...... ....... ....... ....... ....... ....... ....... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ....... ....... ....... ....... ....... ....... ...... ...... ...... ...... ...... ...... ......... .......
Contents RSIG - Report status on CTS or DCD signal state change . . . . . . . . . . . . . . . . . . . DSIG - Go down on loss of signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RTS - Control the RTS signal on transmitted frames. . . . . . . . . . . . . . . . . . . . . . . Select Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BADFR - Bad frame completion . . . . . . . . . . . . . . . . . . . . . . .
1 Chapter 1 Overview 11
Overview Introduction Introduction The HDLC.FRAME Protocol is part of the Advanced Communications Controller (ACC) family of products This manual provides configuration information that is specific to that protocol. Product Features The HDLC.FRAME protocol adds HDLC framing (including the checksum) to outgoing messages and strips the HDLC framing (including the checksum) from incoming messages. The HDLC.FRAME protocol performs frame checksum processing. The HDLC.
Overview Supported Devices Supported Devices The HDLC.FRAME protocol implementation may be used to support any protocol which requires HDLC framing conforming to the above published standard at the physical layer. Modes of Operation The HDLC.FRAME implementation supports a single mode of operation: • Two way continuous communication (normal) Data Rules This release of the HDLC.FRAME protocol product is qualified for use at line speeds up to the limit set by the interface card hardware.
Overview Files Provided Files Provided The HDLC.FRAME protocol is provided with all pre-loaded firmware files as part of the ACC Base Software product. The HDLC.FRAME protocol may also be used on the same ACC card as other protocols. For information on installing the ACC product, how to load the relocatable firmware files, and how to start up the ACC Subsystem, refer to the ACC Installation and Configuration Guide.
2 Chapter 2 Software Installation Note 15
Software Installation Note Notice Notice This chapter is only included to inform the reader that there are no specific steps or procedures involved in the installation of the Level 1 Framing protocol HDLC.FRAME. When the ACC Base System software is installed, this protocol is included in that installation.
3 Chapter 3 Using HDLC.
Using HDLC.FRAME Protocol Introduction Introduction For a complete description of the communications formats and protocol disciplines, the reader is referred to the ISO standard mentioned in the first chapter of this manual. The HDLC.FRAME protocol is a non-polled, bit oriented protocol. Each unit transmitted over a Level 1 link is termed a frame.
Using HDLC.FRAME Protocol Timeout Processing Timeout Processing There are no user-configurable timeouts in use with the HDLC.FRAME protocol. Application Control Requests All HDLC.FRAME terminals must be enabled prior to sending and receiving messages. The activate and deactivate requests have no effect on the HDLC.FRAME protocol.
Using HDLC.FRAME Protocol Link State Indications Link State Indications If the “DSIG” configuration bit is set then the UP/DOWN state of the HDLC.FRAME terminal is dependent on the state of the CTS and DCD signals. When CTS and DCD are both asserted, the HDLC.FRAME terminal is UP. 20 • If the “DSIG” configuration bit is clear then the state of the HDLC.FRAME terminal is not dependent on the state of the CTS and DCD signals. In this case the HDLC.FRAME terminal is always UP.
Using HDLC.FRAME Protocol Request Specific Processing Request Specific Processing Control Requests All control writes to this protocol share a common format. The first four bytes are defined as a header 15 14 13 12 11 10 9 Control Code 8 7 6 5 4 3 2 1 0 Control Length Packet Length(0) Control Code Defines the action to be taken by this request. Control Length The byte length of the data for this control request. This data immediately follows the header.
Using HDLC.FRAME Protocol Status and Error Messages Status and Error Messages Error conditions and important events are reported to the application program through three kinds of status codes. These are “Transmit completion”, “Unsolicited” and “Receive completion” status codes. The defines for these status codes are located in /usr/include/zcomstatus.h and /usr/include/zx25status.h. Transmit Completion Status Codes Transmit completion status is generated by the protocol on all transmit messages.
Using HDLC.FRAME Protocol Status and Error Messages The following transmit completion status codes may be generated by the HDLC.FRAME protocol. Table 3-1 Transmit Completion Status Codes Transmit Status Code IO_OK Description No error detected. This message was successfully transmitted to the receiving station. IO_DSBL Terminal disabled. Messages cannot be transmitted by a disabled terminal.
Using HDLC.FRAME Protocol Status and Error Messages Unsolicited Status Messages The unsolicited status messages (mrq.mrqcode = = ZCOM_MRQCODE_STATUS) are used to inform the application program of events which occur affecting communications with the remote station. The status code “No error detected” is used to inform the application that the remote station is communicating normally. This could occur when an terminal has been enabled, or after an error condition has been cleared.
Using HDLC.FRAME Protocol Status and Error Messages Table 3-2 Z7340A Interface Unsolicited Status Codes (Continued) Unsolicited Status Code Description IO_ALRDY_ENBL An enable request is received, while HDLC.FRAME is already enabled. No action is taken and this unsolicited status code is returned with the UP/DOWN bit set to reflect the state of the port. IO_ALRDY_DSBL A disable request is received, while HDLC.FRAME is already disabled. No action is taken.
Using HDLC.FRAME Protocol Status and Error Messages Receive Completion Status Codes1 If the BADFR bit is not set in the configuration, all messages received by the application from HDLC.FRAME will have a status code of zero. Received messages that have errors will not be returned by the protocol. See Chapter 4, “Protocol Specific Configuration.” If the BADFR bit is set, all messages, regardless of whether or not they have errors, are received by the application from HDLC.FRAME.
4 Chapter 4 Protocol Specific Configuration 27
Protocol Specific Configuration Introduction Introduction This chapter provides specific information on preparing the network configuration file when HDLC.FRAME is to be used. The parts of the network configuration file relevant to HDLC.FRAME are: • Interface definitions • Port definitions • Terminal definitions Interface Definitions Any card with HDLC.FRAME terminals configured, must have an interface definition line in the network configuration file.
Protocol Specific Configuration Port Definitions Port Definitions The ports used must be defined as operating in SDLC mode. They may be defined with either an external (modem supplied) clock, or an internal (Card supplied) clock. With an external clock, the speed is for documentation purposes only, and is not used by the ZCOM system. The clock multiplier should be x1, and the encoding mode may be NRZ or NRZI.
Protocol Specific Configuration Terminal Definitions Terminal Definitions Only one HDLC.FRAME terminal may be configured on each port. The only exception to this rule is that two Protocol Analyzer terminals (one for transmitted and one for received data) may also be configured on a subchannel.
Protocol Specific Configuration Terminal Definitions name A description of the HDLC.FRAME terminal, preferably including a reference to the location of the remote end of the link. This field is used in some ZMNTR displays. It may also be accessed programmatically from the Logical Terminal table using the “zinfo()” library function. An example Level 1 terminal definition line follows: Term 120 1:6 HDLC.
Protocol Specific Configuration HDLC.FRAME Configuration Values HDLC.FRAME Configuration Values Poll Word 15 14 13 12 11 10 9 8 7 6 5 4 Reserved (0) AZ R AZ T 0 CWE N RSI G DSI G R TS Reserved (0) 3 2 1 0 All reserved bit positions must be filled with zeros (0). AZR - (Z7340A only) Analyzer terminal for received data Enables this terminal for monitoring frames received on the port.
Protocol Specific Configuration HDLC.FRAME Configuration Values DSIG - Go down on loss of signal If set to one (1), this bit will cause the HDLC.FRAME terminal’s status to be changed to DOWN when the CTS or DCD signal is lost. At the same time, an unsolicited status message is delivered to the receiving application. The RSIG option has no effect in this case. If this bit is set to zero (0), then the HDLC.FRAME terminal continues to operate whatever the state of the CTS and DCD signals.
Protocol Specific Configuration HDLC.
A Appendix A Sample Configuration File 35
Sample Configuration File Terminal Definition Terminal Definition The file shown is an example of the configuration of HDLC.FRAME protocol devices.
B Appendix B Using the SS7 Mode Feature 37
Using the SS7 Mode Feature Transmitting Frames Transmitting Frames When enabled HDLC.FRAME begins sending flags. The application can then send a MSU, LSSU or FISU to HDLC.FRAME for transmission. Note that an LSSU may have one or two bytes of status information. Following the transmission of the frame, HDLC.FRAME enters one of two states.
Using the SS7 Mode Feature Receiving Frames Receiving Frames When enabled HDLC.FRAME begins receiving frames from the line. The first frame received is passed to the application. After the first frame has been received, the contents of received frames and the current state of HDLC.FRAME are used to determine whether subsequent frames are passed to the application. When a LSSU frame is received HDLC.FRAME enters “LSSU receiving mode”. When a FISU frame is received HDLC.FRAME enters “FISU receiving mode”.
Using the SS7 Mode Feature Receiving Frames 40 Appendix B