3.3 Z-Tunnel 1.0 vs. Z-Tunnel 2.0 Deep Dive
Key Takeaways
- Z-Tunnel 1.0 is a Layer 7 proxy-based forwarding mechanism utilizing HTTP CONNECT tunnels over TCP port 80/443, capable of forwarding only web-based (HTTP/HTTPS) traffic.
- Z-Tunnel 2.0 is a Layer 3/4 network encapsulation protocol utilizing DTLS (UDP port 443) with dynamic TLS (TCP port 443) fallback, capable of tunneling all IP-based traffic including TCP, UDP, and ICMP.
- DTLS eliminates the TCP-over-TCP 'meltdown' problem, preventing severe latency and packet retransmission cascades over lossy mobile or Wi-Fi connections.
- Path MTU Discovery (PMTUD) and TCP Maximum Segment Size (MSS) clamping are dynamically performed by ZCC to prevent fragmentation caused by DTLS/TLS encapsulation overhead.
- Automatic fallback from DTLS to TLS occurs within seconds when intermediate firewalls block UDP port 443, and ZCC periodically retries DTLS in the background.
3.3 Z-Tunnel 1.0 vs. Z-Tunnel 2.0 Deep Dive
Traffic forwarding between Zscaler Client Connector and the Zscaler Public Service Edge (ZIA Public Edge) relies on two proprietary encapsulation architectures: Z-Tunnel 1.0 and Z-Tunnel 2.0. Transitioning from legacy proxy-based tunneling to modern datagram encapsulation represents a major architectural milestone in zero-trust engineering.
1. Technical Comparison: Z-Tunnel 1.0 vs. Z-Tunnel 2.0
Understanding the precise differences across protocol layers, encapsulation methods, supported traffic types, and performance characteristics is heavily tested on the ZDTA exam.
+-------------------------------------------------------------------------+
| Z-TUNNEL 1.0 ARCHITECTURE |
| - Application Layer (Layer 7) Proxy Forwarding |
| - HTTP CONNECT method inside TCP port 80 / 443 tunnel |
| - Encapsulates ONLY web protocols (HTTP / HTTPS) |
| - Dependent on PAC files for micro-routing |
| - Non-web traffic (UDP, ICMP, VoIP RTP, custom TCP) is DROPPED/BYPASSED|
+-------------------------------------------------------------------------+
+-------------------------------------------------------------------------+
| Z-TUNNEL 2.0 ARCHITECTURE |
| - Network / Transport Layer (Layer 3/4) Encapsulation |
| - DTLS (UDP 443) primary transport with dynamic TLS (TCP 443) fallback |
| - Encapsulates ALL IP protocols (TCP, UDP, ICMP, DNS) |
| - Kernel driver captures all IP packets; no PAC dependency for capture |
| - Full Cloud Firewall and Cloud IPS inspection across all ports |
+-------------------------------------------------------------------------+
| Technical Dimension | Z-Tunnel 1.0 | Z-Tunnel 2.0 |
|---|---|---|
| OSI Layer | Layer 7 (Application Proxy) | Layer 3 / Layer 4 (Network Encapsulation) |
| Primary Transport Protocol | TCP (Standard HTTP CONNECT over Port 80/443) | DTLS (Datagram TLS over UDP Port 443) |
| Fallback Protocol | Secondary HTTP Proxy over TCP Port 80/443/8080 | TLS (over TCP Port 443) |
| Supported Traffic | HTTP and HTTPS only | All IP traffic (All TCP ports, UDP, ICMP) |
| Non-Web Traffic Handling | Dropped or routed direct based on OS routing (No ZIA inspection) | Fully encapsulated and inspected by ZIA Cloud Firewall/IPS |
| Packet Capture Method | Local Proxy redirection (127.0.0.1:9000) via PAC | Driver-level packet capture (Route-Based or NDIS LWF) |
| TCP Meltdown Risk | High (TCP traffic inside TCP tunnel over lossy links) | Zero under DTLS (No double-retransmission cascade) |
| Firewall Requirements | Outbound TCP 80, 443 | Outbound UDP 443 (DTLS) and TCP 443 (TLS fallback) |
2. DTLS Mechanics & Automatic TLS Fallback
Why DTLS Matters: Solving the "TCP-over-TCP Meltdown"
When standard TCP traffic (e.g., HTTPS web browsing or file transfers) is encapsulated inside a TCP-based tunnel (such as Z-Tunnel 1.0 or TLS-based VPNs), any packet loss on the physical network causes both the inner TCP stream and the outer TCP tunnel to independently trigger congestion control, window shrinking, and retransmissions.
This phenomenon, known as TCP-over-TCP Meltdown, leads to catastrophic throughput degradation over unstable connections (cellular networks, hotel Wi-Fi, satellite links). Datagram Transport Layer Security (DTLS) runs over UDP, providing TLS-grade encryption without connection-oriented transport lockstep. If a packet is lost, only the inner application TCP stack handles retransmission, preserving maximum throughput.
+-----------------------------------------------------------------------+
| Z-TUNNEL 2.0 TRANSPORT STATE MACHINE |
+-----------------------------------------------------------------------+
|
[ Initialize Z-Tunnel 2.0 ]
|
v
+-----------------------------------------------------+
| Attempt DTLS Connection (UDP Port 443) to ZIA Edge |
+--------------------------+--------------------------+
|
+---------------+---------------+
| |
[ Handshake Success ] [ Handshake Timeout / Blocked ]
| |
v v
=========================== ===========================
PRIMARY: DTLS Active FALLBACK: TLS Active
- Full UDP 443 Encapsulation - Encapsulate over TCP 443
- Zero TCP Meltdown - Immediate session continuity
=========================== ===========================
^ |
| [ Periodic Background Probe ]|
+---[ Succeeds over UDP 443 ]-+
The Fallback and Recovery Lifecycle
- Initial DTLS Handshake:
- ZCC initiates a DTLS handshake to the closest Zscaler Public Service Edge on UDP port 443.
- Detection of UDP Blocking:
- In restrictive environments (e.g., hotel captive portals, guest Wi-Fi networks, or legacy enterprise firewalls blocking outbound UDP 443), the DTLS handshake packets are silently dropped.
- Seamless Transition to TLS:
- Upon reaching the connection timeout (typically within 3 to 5 seconds), ZCC immediately falls back to TLS over TCP port 443.
- User connections proceed uninterrupted without requiring manual reconnects or displaying error prompts.
- Dynamic Background Re-Probing:
- While operating in TLS fallback mode, ZCC periodically sends lightweight background DTLS probes on UDP 443. As soon as UDP connectivity is restored (e.g., user completes captive portal authentication or roams to a new network), ZCC cleanly transitions the active session back to DTLS.
3. MTU Path Discovery & MSS Clamping
Encapsulating network packets inside a secure DTLS/TLS tunnel adds protocol headers to every packet:
If an endpoint running on a standard 1500-byte Ethernet network transmits a 1500-byte IP packet, adding 70 bytes of DTLS encapsulation creates a 1570-byte packet. When this packet encounters a network link with a standard 1500-byte Maximum Transmission Unit (MTU), intermediate routers must either fragment the packet or drop it if the DF (Don't Fragment) bit is set.
Standard Ethernet Frame (MTU = 1500 Bytes):
+-----------------------------------------------------------------+
| IP Header (20B) | TCP Header (20B) | TCP Payload (Max 1460B) |
+-----------------------------------------------------------------+
Encapsulated Z-Tunnel 2.0 DTLS Packet:
+-------------------------------------------------------------------------------+
| Outer IP (20B) | UDP (8B) | DTLS (13B) | Crypto Tag (24B) | Inner IP Packet |
+-------------------------------------------------------------------------------+
|<------------------- DTLS Overhead (~65-73 Bytes) -------->|
ZCC Performance Optimizations
-
Path MTU Discovery (PMTUD):
- ZCC dynamically tests the path between the endpoint and the Zscaler Public Service Edge using ICMP and DTLS probe sizing to determine the exact path MTU (typically converging between 1360 and 1420 bytes).
-
TCP MSS Clamping (Maximum Segment Size):
- For all outbound TCP connections initiated by applications on the host, the ZCC driver intercepts the initial
TCP SYNandTCP SYN-ACKpackets. - ZCC rewrites the advertised
MSSoption value in the TCP header (clamping it down from 1460 bytes to typically 1320-1360 bytes). - This forces both the local application and the remote web server to generate TCP segments that fit perfectly inside the DTLS tunnel without ever triggering IP fragmentation.
- For all outbound TCP connections initiated by applications on the host, the ZCC driver intercepts the initial
4. Traffic Inclusion & Exclusion Rules in Z-Tunnel 2.0
While Z-Tunnel 2.0 is designed to capture all IP traffic, enterprise architectures frequently require bypassing specific high-bandwidth, latency-sensitive, or uninspectable streams directly to the local Internet breakout.
Within the Forwarding Profile, administrators configure Z-Tunnel 2.0 Bypass Rules across three dimensions:
-
Destination IPv4 / IPv6 Subnet Bypasses:
- Excludes direct communication to local subnets, split-tunnel corporate data centers, or cloud resources.
- Example: Bypassing
192.168.0.0/16,10.0.0.0/8, or specific SaaS IP blocks.
-
Domain & Wildcard FQDN Bypasses:
- Resolves domains dynamically and instructs the driver to bypass matching traffic.
- Example:
*.microsoft.com,*.zoom.us.
-
Protocol & Port Exclusions (Real-Time Media Optimization):
- Real-time audio/video collaboration tools (e.g., Microsoft Teams, Zoom, Webex) rely on latency-sensitive UDP media streams that do not benefit from deep proxy inspection.
- Administrators configure port-based exclusions (e.g., UDP Ports
3478-3481for Teams) to allow direct local breakout via the user's ISP, minimizing jitter and round-trip time (RTT).
What is the primary architectural reason Zscaler utilizes DTLS (UDP 443) instead of TLS (TCP 443) as the default transport for Z-Tunnel 2.0?
What happens automatically when an endpoint running Z-Tunnel 2.0 connects to a guest Wi-Fi network that blocks outbound UDP port 443?
How does ZCC prevent IP fragmentation of packets traversing a Z-Tunnel 2.0 tunnel when the physical network has a standard 1500-byte MTU?
Which of the following traffic types CANNOT be forwarded or inspected through Z-Tunnel 1.0?