Load balancing helps create a highly available and scalable PaperCut NG/MF environment. This guide explains key networking concepts and how they relate specifically to PaperCut printing. It complements the main information found in our Clustering and high availability guide .
Choosing the right load balancing method is critical. A common mistake is treating print traffic like standard web traffic, which can cause print jobs to fail or user clients to stop working.
Layer 4 vs. Layer 7: Choosing the Right Tool for the Job Your PaperCut environment has three main types of traffic:
Traditional Print traffic (e.g., SMB): Used by Windows clients connecting directly to shared print queues. Modern Print Traffic (IPP/IPPS): Used by PaperCut Mobility Print for clients on all platforms (Windows, macOS, iOS, Android, ChromeOS). This is essentially web traffic. Application traffic (e.g., HTTP/HTTPS): Used for communication between MFDs, PaperCut user clients e.g., the User Client, Print Deploy, and Direct Print Monitor, and the Application Server. Each requires a different load balancing approach.
Traditional Print Servers (SMB): The Layer 4 Approach What it is: Layer 4 directs traffic based on IP address and port, like a simple mail sorter sending letters to a zip code without reading them. Why for printing: Print jobs from a user’s computer to a Windows print server use the SMB protocol. Layer 4 is the best choice because it passes this complex traffic directly to a print server without trying to inspect or change it, ensuring reliability. Benefits: Simplicity & Cost: Configuration can be more direct as it focuses only on network-level routing. This functionality is common in most load balancers, often making it a lower-cost option. Easy Troubleshooting: Acts as a direct passthrough. Problems are usually isolated to the print server, not the load balancer. Pitfall to avoid: A Layer 4 health check may only confirm a server is online, not if its print spooler service is working. You must configure advanced health checks; otherwise, the load balancer could send jobs to a server that is online but unable to print. An advanced monitor should be configured to check the status of critical services, such as: The Windows Print Spooler service (Spooler). The PaperCut Print Provider service (PCPrintProvider). For a high-level implementation example of this scenario, see our Knowledge Base article on Network Load Balancing with PaperCut .
Mobility Print & Application Servers: The Layer 7 Approach What it is: Layer 7 is smarter, inspecting application data like HTTP headers. It understands the language of web traffic. Why for PaperCut: Mobility Print (using IPP/IPPS) and the Application Server (using HTTP/HTTPS) both communicate using web-based protocols. Layer 7 is the ideal choice as it understands this traffic. Benefits: High Resilience: Allows application-aware health checks that confirm the PaperCut service is actually running. Enhanced Security: Can terminate SSL, inspect for threats, and apply Web Application Firewall (WAF) rules. Crucial for organizations with strict policies. Pitfall to avoid: A Layer 7 load balancer hides the original device’s IP address. If you don’t configure it to add an X-Forwarded-For (XFF) header, PaperCut cannot identify connecting devices. This causes MFD logins and client pop-ups to fail. Common Scenarios: Which Layer to Choose? Scenario
Traffic Type
Recommendation
Reason
Users printing to print servers (SMB)
SMB print jobs
Layer 4
Direct passthrough of complex protocol, avoids interference.
Users printing via Mobility Print
IPP/IPPS (HTTP-based)
Layer 7 with XFF
Enables advanced health checks and preserves client IP for rules. See how to Configure Mobility Print behind a Network Load Balancer.
MFDs connecting for login/release
HTTP/HTTPS
Layer 7 with XFF
Required for IP-based identification and reliable health checks.
PaperCut workstation clients (User Client, Print Deploy, etc.)
HTTP/HTTPS
Layer 7 with XFF
Required for IP tracking and resilient service detection.
Why Layer 7 with XFF is Best for MFDs & Clients PaperCut must identify MFDs and user clients by their unique IP addresses to correctly apply rules, authentication, and display actions. Layer 7 with XFF offers accurate client identification and resilient health checks. A standard Layer 4 setup hides the source IP, causing failures, unless alternate configurations like DSR are implemented.
NB: A Note on MFD Compatibility and Historical Guidance
You may find some older documentation or community discussions that recommend Layer 4 load balancing for the Application Server. While this was a common historical approach, Layer 7 with XFF is now the modern best practice due to its superior resilience and application-aware health checks.
This recommendation relies on the MFD’s embedded client correctly handling the network traffic. In very rare cases, older MFD firmware has exhibited issues with XFF headers. These issues have been largely resolved in modern firmware, but it highlights the importance of testing with your specific MFD models during a pilot phase.
X-Forwarded-For (XFF): A Layer 7 Method The X-Forwarded-For (XFF) header is a method used exclusively with Layer 7 load balancing to solve a common problem: restoring client IP visibility.
How it works: Because Layer 7 hides the original client IP, the load balancer adds this header to show the true source. PaperCut reads the header to accurately identify the client. To configure: Navigate to Options > Advanced. In Server IP Address Forwarding, enter your load balancer’s VIP address. Direct Server Return (DSR): A Standard Layer 4 Method for App Servers If you must load balance the PaperCut Application Server at Layer 4, a standard configuration using Network Address Translation (NAT) will fail. This is because NAT hides the client’s IP address, which is required for device authentication. The standard and vendor-recommended method to preserve the source IP at Layer 4 is to use Direct Server Return (DSR).
How it works: A server responds directly to the client, bypassing the load balancer on the return path. Trade-offs: While it makes Layer 4 functional for this scenario, it significantly complicates troubleshooting and health check configuration compared to the recommended Layer 7 approach. Loopback: Mandatory for DSR (Layer 4) A loopback interface is a special network configuration that is mandatory on a server when using Direct Server Return (DSR).
If you configure DSR, you must also configure a loopback. This ensures the server can communicate with itself using its public, load-balanced address, which is a critical function. Without a loopback, a DSR configuration will not work correctly.
For configuration details, refer to your load balancer vendor documentation and our article on Application Server failover .
Articles in this section
- Users receive "Need admin approval" error with Scan to OneDrive for Business
- Resolving PaperCut NG/MF performance issues by maintaining its internal database
- Preserving print script discounts when changing print jobs attributes at the device
- Load Balancing Concepts for PaperCut Environments
- PaperCut MF 24.1.8 - Document Processing information and FAQs
- Manually Generating and Installing iOS AirPrint Profiles for Mobility Print (When Auto Setup Fails)
- Common Xerox Issues and how to fix them
- PaperCut NG/MF Security Bulletin (May 2025)
- How to permit users to cancel print jobs at HP MFD
- How to remove a print job from the queue
Comments
0 comments
Please sign in to leave a comment.