Skip to content

About

WAN optimizer for data-centre to disaster-recovery replication: content-defined deduplication, async zstd compression and a multiplexed TCP tunnel. Next full VM backup 11x faster over 100 Mbit in lab tests. Source available for purchase or licence.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

WAN Optimizer for DC ⇄ DR links

The next full backup crossed the link in 8 seconds, not 89

Product page · Dashboard · SQL Server backups · Buy or license

A software WAN optimizer for replication between a data centre and its disaster-recovery site. It sits at both ends of the link and removes the bytes that do not need to cross it: data the other side already holds is sent as a reference, and the rest is compressed before it leaves. Backup jobs, SMB copies and SQL Server backups keep working unchanged.

This repository describes the product. The source code is proprietary and is not published here. It is available for purchase, licensing or a supervised pilot: see Licensing and contact.


The operations dashboard

Operations dashboard: 68.8% of WAN traffic avoided on 9.7 GiB, a 200 Mbit/s cap held, a 100% store hit rate and zero errors

A real recording: 9.7 GiB carried through the tunnel, 68.8% of it never crossed the link, a 3.20× reduction, with the optimizer holding the WAN to 200 Mbit/s and zero reconnects, authentication failures, stalls or errors. The dashboard reads both optimizers once a second and shows:

  • what was deduplicated, compressed, sent and passed through raw;
  • the WAN bandwidth cap and how much of it is in use;
  • the pipeline second by second: chunking, hashing, compression, store writes, CPU and event-loop delay;
  • the DR chunk store: size, hit rate, write and read p99, index memory, recovery state;
  • health counters and every recent stream, with why it took the path it did and how it closed.

Recorded with both optimizers on one machine: the savings are real, the link speed is the optimizer's own cap rather than a physical WAN.


Measured results

Lab measurements on an emulated WAN (Docker, tc netem), every transfer verified byte for byte with SHA-256.

Direct SMB copy vs. the same copy through the optimizer, 100 Mbit/s, 20 ms RTT, 1 GiB per file:

Data Direct Optimized Speedup WAN traffic saved
VM image, next full backup (3% changed) 89.0 s 8.0 s 11.19× 94.9%
Logs and text 88.9 s 24.0 s 3.70× 73.7%
VM image, first full backup 88.9 s 38.3 s 2.32× 57.4%
Encrypted or compressed data 88.9 s 89.3 s 1.00× none: nothing to remove
  • Repeat transfers (the weekly full backup): 97.1% to 99.7% less WAN traffic with the previous copy in the DR store.
  • Long, lossy links (50 Mbit/s, 80 ms RTT, 0.1% loss): with BBR, first transfers were 4.5–5.9× faster than with CUBIC, and a disk image moved at 10.7 MiB/s over a link that tops out at 5.96 MiB/s.
  • End-to-end test through a real tunnel: seven scenarios, every SHA-256 match, from 1.00× on random data to 23.26× on the next full VM backup and 54.61× on a repeated restore.

End-to-end test output: seven scenarios, all SHA-256 ok


How it works

flowchart LR
    subgraph DC["Data centre"]
        A["Backup jobs<br/>SMB copies<br/>SQL backups"] --> B["DC optimizer<br/>chunk · dedup · compress"]
    end
    B <== "one authenticated tunnel<br/>over IPsec or WireGuard" ==> C
    subgraph DR["Disaster-recovery site"]
        C["DR optimizer<br/>rebuild · verify · store"] --> D["Destination server<br/>or receive folder"]
    end
Loading
  1. Content-defined chunking. FastCDC-style gear hash with normalized chunking, 16 KiB average, so a small change early in a file does not shift every later chunk.
  2. Deduplication against what DR already has. Each chunk is identified by SHA-256; known chunks cross as references, and a missing one is recovered on request.
  3. Asynchronous compression. zstd, brotli or deflate on worker threads with adaptive levels, off the network path.
  4. Flow-controlled multiplexing. Many streams share one tunnel with flow control each, striped over up to 16 TCP lanes for lossy or distant links.
  5. Verification on arrival. Every rebuilt chunk is checked against its hash before it is delivered.

Built for SQL Server backups

A file transfer mode picks up .bak and .trn files from the DBA's backup folder and delivers them to the DR receive folder:

  • Never touches the source: files are opened read-only, streamed 1 MiB at a time, and a test proves no write reaches the source folder.
  • Only finished backups move: a readiness marker bound to the exact backup generation releases a file; a file that changes afterwards fails closed.
  • Log chains stay intact: full and log backups are classified, log backups get bounded priority, and a gap in the chain is reported.
  • Nothing half-written appears at DR: publication by rename, only after every block is durable and the root hash matches; files the optimizer did not publish are never overwritten.
  • Resumes after a break: resume identity is bound to the source generation.
  • Survives a share that disappears: an unreadable source is retried with backoff instead of being taken for deleted backups.

Capabilities

Adaptive fast path Each 32 MiB window is judged; incompressible data skips chunking, hashing and storage
WAN bandwidth cap One token bucket for the whole optimizer with bounded bursts; control and health frames are never delayed
Peer authentication HMAC-SHA256 challenge-response binding both nonces, roles and node ids
Multi-terabyte store Disk-backed chunk log; compact index at about 54 bytes per chunk, rebuilt at 1.6 million records a second
Self-healing streams Stall warning at 60 s, reset at 120 s, reconnect with backoff, torn store tail repaired at start
Telemetry API Per-stream state, store latency histograms, per-second pipeline profile, optional PostgreSQL history
Deployment tooling Windows deployment tool with ten actions, dry run and a catalog of 32 known errors with cause, repair and rollback
Firewall rules Exactly four flows, each to one address and one port; SQL's 1433 and SMB across the WAN are refused
Offline install No native modules; offline bundle and a SHA-256-checked runtime installer, nothing downloaded on the server
Runs on Windows Server as a supervised service, Linux and Docker

Prove it before you buy

Data analyzer output: first transfer 2.53x faster, 10 TiB in 4 days instead of 10, classified partially suitable

  • Data suitability analyzer: measures a sample of your data and states plainly whether it is suitable, including when it is not.
  • Speedup model: answers questions such as "can 20 days of transfer become 5?" and what store, CPU, disk and RAM that needs.
  • Transfer benchmark and Windows acceptance scripts: direct, cold and warm runs with SHA-256 manifests and per-transfer reports.
  • Readiness gates: lab, staging (100 GB, 1 TB and a 3-day 2 TB soak), pilot on your data, then production.

Version 2.4.0, 263 automated tests. Validated in a Docker WAN lab and on Windows SMB; measured transfers so far go up to 1 GiB per file, and the gates above are how a deployment earns larger numbers.


Licensing and contact

The source code, dashboard, documentation, test lab, sizing tools and Windows deployment scripts are available for:

  • Purchase of the full source code and rights,
  • Licensing for use inside an organization or as part of a product,
  • A supervised pilot on your own DC and DR sites.

Mohamed Mohsen Shehata Email: mo7sen.cto@gmail.com LinkedIn: linkedin.com/in/mohamed-mohsen-804a9897 GitHub: @RootX22


بالعربية

مُسرّع شبكات WAN بين مركز البيانات الرئيسي (DC) وموقع التعافي من الكوارث (DR).

يُثبَّت على طرفي الخط، فيرسل فقط ما لا يملكه الطرف الآخر، مضغوطًا. ونسخ SMB والنسخ الاحتياطي لقواعد بيانات SQL Server تعمل كما هي دون تعديل.

  • في اختبارات المعمل على خط 100 ميجابت: النسخة الكاملة التالية لصورة جهاز افتراضي أسرع 11 مرة، والسجلات والنصوص أسرع 3.7 مرة.
  • لوحة تشغيل حية، ونقل ملفات ‎.bak و‎.trn مع الحفاظ على تسلسل السجلات، وحد أقصى لاستهلاك الخط.
  • كل عملية نقل يُتحقق منها بـ SHA-256، مع أداة تقدّر المكسب على بياناتك قبل الشراء.

الكود المصدري غير منشور، ومتاح للبيع أو الترخيص أو التجربة على بيئتك. للتواصل: mo7sen.cto@gmail.com


© 2026 Mohamed Mohsen Shehata. All rights reserved. This repository contains a product description only; no licence to any software is granted by it.

About

WAN optimizer for data-centre to disaster-recovery replication: content-defined deduplication, async zstd compression and a multiplexed TCP tunnel. Next full VM backup 11x faster over 100 Mbit in lab tests. Source available for purchase or licence.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors