The information in this article applies to:
SUMMARYWhen using the Hewlett-Packard Network Printer Interface to support network-attached printers, the HPREDIR software communicates with the printer over an 802.2 DLC class II session using the LAN Manager COMTOKR device driver and ACSLAN.DLL interface. This article describes the various DLC timers, default settings, and suggested values in order to make the printer connection more reliable. HP network printer versions A.00.02 and A.00.03 are discussed below. MORE INFORMATIONThe DLC class II protocol uses three timers: T1 - Response timerThe timer values are specified in timer ticks. Each timer requires a short timer tick (tick_one) and long timer tick (tick_two). The length of these ticks are specified in the PROTOCOL.INI file (see below) in 40 millisecond increments. The actual length of each timer (T1, T2, Ti) is selected with parameters provided when the DLC_OPEN_SAP, DLC_OPEN_STATION, or DLC_MODIFY command is issued. In these commands, the timer value is selected with a number between 1 and 10. If the number is between 1 and 5, the short timer tick (tick_one) is used. The timer value will be equal to the selected number multiplied by the short timer tick value:
If the selected number is between 6 and 10, the long timer tick (tick_two)
is used. In this case the timer value will be equal to the selected number
minus 5 multiplied by the long timer tick value.
The response timer (T1) is used to detect a failure to receive an
acknowledgment or a response from the remote link station.
The link station starts T1 when it transmits either an I- or S-frame (RR/RNR/REJ) with the poll bit set. The T1 will be reset when the station receives a response frame with the final bit set. If the T1 expires, the link station sends an S-frame with the poll bit set in order to query the status of the remote link station. The link station then restarts T1. If there is no recovery after the specified number of retries, the link station assumes that the link is inoperative and disconnects the link. The duration of T1 must take into account any delays introduced by the source routing bridges. The suggested default value for T1 is 1 second. The link station uses the acknowledgment timer (T2) to delay the sending of an acknowledgment for a received I-frame. The T2 timer is started when a link station receives an I-frame. The T2 timer is reset when a link station sends an acknowledgment in an I-frame or in an S-frame. If the T2 expires, the link station must send an acknowledgment as soon as possible. The value of T2 must be less than the value of T1 of the remote station. This ensures that the remote link station will receive the acknowledgment before its response timer expires. The suggested default value for T2 is 100 milliseconds. The inactivity timer is used to detect an inoperative condition in the remote link station or in the transmission medium. If a station does not receive any S- or I-frames before its Ti expires, it must query the status of the remote link station with an S-frame with the poll bit set. If it does not get a response after specified number of retries, it disconnects the link. The suggested value for Ti is 30 seconds. RecommendationsGiven this, here are the values used by HPREDIR (versions A.00.02 and A.00.03):
Note the following settings for the COMTOKR driver in PROTOCOL.INI.
However, because HPREDIR explicitly sets the maxretrycnt to 0A (10),
COMTOKR's dlcretries entry is ignored.
These default settings yield the following timeout periods and
recommendations:
Additional query words: 2.00 2.10
Keywords : |
Last Reviewed: November 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |