Tula Networks
Tula Networks
Toggle sidebar

Direct Server Return

Bypass the load balancer on the return path. With DSR, response traffic flows directly from your servers to clients, delivering maximum throughput for bandwidth-intensive workloads without bottlenecking your balancer.

How Direct Server Return Works

DSR fundamentally changes the return path for traffic, eliminating the load balancer as a bottleneck on outbound data.

1
Client Sends Request

The client sends a request to the load balancer's virtual IP address, just like any standard deployment.

2
Load Balancer Forwards

Tula selects a backend server and forwards the request using NFTables for high-performance, kernel-level packet manipulation.

3
Server Responds Directly

The backend server sends its response directly to the client, bypassing the load balancer entirely on the return path.

Traditional vs. DSR

Traditional:

Client → LB → Server → LB → Client

DSR:

Client → LB → Server → Client

The load balancer only handles inbound requests. All return traffic takes the direct path, freeing the balancer to process more connections.

Key Benefits

DSR delivers measurable performance gains where they matter most.

Massive Throughput

Return traffic flows directly from server to client with no bottleneck. Your load balancer never limits outbound bandwidth, no matter how large your responses are.

Minimal Latency

One fewer network hop on the return path means lower response times for your users. Every millisecond counts for latency-sensitive applications.

Scalability

The load balancer only handles inbound traffic, dramatically reducing its workload. Scale your backend servers without upgrading your balancer infrastructure.

Ideal Use Cases

DSR excels in workloads where response sizes far exceed request sizes.

Video Streaming and Large File Downloads

Small inbound requests produce massive outbound responses. DSR ensures your load balancer never becomes the bottleneck for media delivery.

CDN and Content Delivery

Distribute static assets and cached content at full wire speed. Each origin server responds directly without routing through a central point.

Database Query Responses

Queries that return large result sets benefit from direct return paths. Keep your database proxy layer lean while delivering results at full speed.

Asymmetric Workloads

Any application where response size significantly exceeds request size. API endpoints returning bulk data, image processing services, and report generation all benefit.

Technical Details

Built on proven Linux networking primitives for reliability and performance.

NFTables Integration

Packet rewriting happens at the kernel level using NFTables, avoiding costly userspace processing. This delivers near-native network performance with minimal CPU overhead.

L2 and L3 DSR Modes

Choose between Layer 2 (MAC rewrite) for same-subnet deployments or Layer 3 (IP tunneling) for routed environments. Both modes are fully supported and configurable per service.

TCP and UDP Support

Full protocol compatibility for both TCP and UDP traffic. Deploy DSR for any Layer 4 workload without protocol-specific limitations.

Zero Application Changes

DSR is transparent to your application layer. No code changes, no special libraries, no SDK integration. Configure it at the load balancer and your servers respond directly.

Ready to get started?

Deploy DSR load balancing in minutes. No credit card required for the free trial.