9 Printing And Software Defined Networking

Network and System Administration · Unit 9

Printing and Software Defined Networking

Exam-focused notes for Printing and Software Defined Networking (Network and System Administration, BIT451): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Printing and Software Defined Networking in short

This chapter covers two different topics. CUPS manages printers on Linux servers. Software Defined Networking (SDN) changes how networks are controlled by moving the decisions to a central program.

Printing and Software Defined Networking: notes

CUPS printing system

CUPS (Common Unix Printing System) is the standard printing system for Linux and Unix. It lets a computer act as a print server that accepts jobs from clients and sends them to printers.

  • Uses IPP (Internet Printing Protocol) on TCP port 631.
  • Holds a queue of print jobs for each printer.
  • Uses filters to convert documents into a form the printer understands.
  • Can share printers on the network.
  • Has a web page for administration at http://localhost:631.
  • Supports local, network and driverless printers.

A print job moves in this order. The application sends the file and the CUPS scheduler queues it. Filters convert it, and a backend sends it to the printer.

CUPS configuration and setup

sudo apt install cups
sudo systemctl enable --now cups
sudo usermod -aG lpadmin ram
sudo lpadmin -p office1 -E -v ipp://192.168.10.30/ipp/print -m everywhere
sudo lpadmin -d office1
lpstat -p -d
lp -d office1 report.pdf
lpstat -o
cancel office1-12
  • -p names the printer and -E enables it and accepts jobs.
  • -v gives the device address and -m everywhere uses driverless IPP.
  • -d sets the default printer.

To share printers and allow remote admin:

sudo cupsctl --share-printers --remote-admin
sudo lpadmin -p office1 -o printer-is-shared=true

The main configuration file is /etc/cups/cupsd.conf. The Listen and Allow settings control who can reach the server. Clients can list the server in /etc/cups/client.conf using ServerName 192.168.10.5. Open TCP port 631 in the firewall. On Windows Server, add the Print and Document Services role and use Add-Printer.

What this unit covers

  • CUPS printing system
  • CUPS configuration and setup
  • SDN controller concepts and benefits
  • SDN architecture and components
  • SDN controller and data plane communication

SDN controller concepts and benefits

2082 · 5 marks

Explain SDN controller. What are its benefits? [5]

An SDN (Software-Defined Networking) controller is a centralized management entity that controls the behavior of the network by managing the forwarding devices (switches and routers) in the network. It acts as an intermediary between the applications and the network infrastructure. Key characteri...

Open this answer on its own page →

2081 · 5 marks

Briefly explain about SDN controller. [5]

An SDN (Software-Defined Networking) controller is a centralized, logically centralized software application that manages and controls the behavior of the network by communicating with network devices (switches, routers) through southbound APIs. 1. Centralized Control Plane - The controller acts ...

Open this answer on its own page →

CUPS printing system

2082 · 5 marks

Write short notes on: (a) CUPS (b) SMTP [5]

Show solved answer

Model Answer: CUPS and SMTP

(a) CUPS (Common Unix Printing System)

CUPS is a modular printing system for Unix and Linux-based operating systems that allows computers to act as print servers.

Key Features:

  • Architecture: Uses a client-server model where the CUPS daemon (cupsd) manages print jobs and printers
  • Protocol: Implements Internet Printing Protocol (IPP) for communication between clients and print servers
  • Functionality:
    • Accepts print jobs from client applications
    • Queues and schedules jobs
    • Sends jobs to appropriate printers
    • Manages printer drivers and filters
  • Access: Can be accessed locally or over a network
  • Configuration: Uses configuration files typically located in /etc/cups/
  • Advantages: Supports multiple printer types, provides print job management, and enables network printing

(b) SMTP (Simple Mail Transfer Protocol)

SMTP is an application-layer protocol used for sending emails across the Internet.

Key Characteristics:

  • Purpose: Handles the transmission of outgoing mail from client to mail server, and between mail servers
  • Port: Typically operates on port 25 (or 587 for authenticated submission)
  • Connection Type: Uses TCP (Transmission Control Protocol) for reliable delivery
  • Operation:
    • Establishes connection with mail server
    • Authenticates sender (if required)
    • Specifies sender, recipient(s), and message content
    • Transfers message to server for delivery
  • Limitations: Only handles sending; receiving requires POP3 or IMAP protocols
  • Security: Modern implementations use TLS/SSL encryption (SMTPS) for secure transmission
  • Command-based: Uses text commands (MAIL, RCPT, DATA, etc.) for communication

Note: Answers derived from standard networking and systems administration knowledge, as reference notes were unavailable.

Open this answer on its own page →

2082.1 · 5 marks

What is CUPS? Explain basic CUPS configuration. [1+4]

CUPS stands for Common Unix Printing System. It is a modular printing system for Unix-like operating systems (including Linux) that allows computers to act as print servers and clients. CUPS enables users to print to local and network printers using a standardized interface and protocol. --- - Sc...

Open this answer on its own page →

SDN controller and data plane communication

2082.1 · 5 marks

How do SDN controllers communicate with data planes? Explain SDN architecture with a diagram. [1+4]

SDN controllers communicate with data planes through the Southbound Interface using standardized protocols: - OpenFlow Protocol (most common): Controllers send flow rules and instructions to switches via OpenFlow messages - NETCONF/YANG: Configuration and management protocol for network devices -...

Open this answer on its own page →