Printing Protocols and Printing Languages


A printer language is not the same as a printer protocol. For example, PostScript and PCL (Printer Control Language) are languages that describe how a document is to be rendered into the final printed product by the printer. When a printer is directly connected to a printer port on a computer, the printer language is important and is used by the software driver to format the information being sent to the printer.

A network protocol, however, is used to send the formatted job, both data and instructions compiled using the printer language, to the printer. A few protocols will be detailed here that are more specific in their use and implementation; that is, they generally are used for communicating with a printer.

Several protocols are used for network printing. Some are proprietary protocols used by only one computer or network operating system (NOS). Others, such as lpr/lpd ”which was first developed for use on Unix networks ”have been implemented in many environments. Data Link Control (DLC) is an IBM protocol that has been adapted for use on many printers although it is not used much today. This chapter covers the basics of these major protocols, with examples from Unix, Windows Servers, and NetWare systems.

Also covered is the newest printing protocol: the Internet Printing Protocol (IPP), which was created by a working committee of the Internet Engineering Task Force (IETF). Development is underway for standards to further define this new protocol. You will find, however, that both Windows 2000/2003/XP and NetWare 6.x already support IPP. Novell even sells its iPrint as a separate product that can be used in a non-NetWare environment.

Note

The abbreviation IPP is also used in some books to mean Internet Presence Provider. If you are studying for a certification exam, be sure to interpret the usage of this term by the context in which it is used.

Using lpr/lpd and the TCP Stream Protocols

TCP/IP was originally developed for the Unix operating system (OS), of which there are several flavors. Depending on the version of Unix (as well as Linux) running on a workstation or server, you will find that TCP/IP printing falls into one of two major types:

  • BSD (Berkeley System Distribution) Spooling System

  • SVR4 (System V, Release 4) Printing System

The BSD system uses the lpr (line printer remote) program to send files to printers. The printers can be connected to a network, or to a computer. Whichever way, the lpd (line printer daemon) receives these print requests and interacts with the lpr to send the print job to the printer. The /etc/printcap text file is used to set up characteristics for each printer. The SVR4 Unix system uses the lp (line printer) program and the lpsched daemon (printer scheduler) to print files. Although the SVR4 system is considered more sophisticated because it has several utility commands for managing the system, the BSD system probably is easier to manage in a networked environment.

When using either of these methods , the actual print commands and data are sent to the printer in the payload section of a TCP/IP packet.

Although all Unix and Linux systems support TCP/IP printing, many support other protocols as well. For example, Red Hat Linux can also be configured to use SMB (Server Message Block) to connect to a Windows server (or a Unix/Linux computer configured to offer printing services using SMB).

The lpr/lpd protocols work well, but are mostly used by older operating systems. In the next chapter, "Print Servers," you can learn about how to configure lpr/lpd printing on Unix/Linux servers, as well as Windows systems.

TCP/IP stream sockets the Unix provide yet another way to use TCP/IP to connect to a printer. Streams are a two-way communication TCP/IP session between the computer (or print server). When using TCP/IP streams, you need to specify a port (also known as a socket in Windows terminology). Thus the address of the networked printer, paired with a port number, provides a unique address so that the data exchange can be accomplished.

Note

The TCP/IP suite includes protocols (such as TCP, UDP, and IP) and a set of services and utilities based on them. For more information about TCP/IP, see Chapter 25, "Overview of the TCP/IP Protocol Suite."



Upgrading and Repairing Networks
Upgrading and Repairing Networks (5th Edition)
ISBN: 078973530X
EAN: 2147483647
Year: 2003
Pages: 434

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net