中文版

IXCDN distills 20 years of Wulian Network experience into a free CDN and agent hosting platform built for global websites, AI apps and cross-border workloads. IXCDN edge nodes run the in-house em-edge service, combining smart routing with L4/L7 scheduling to deliver cache acceleration, WAF protection and AI token access. With help from Claude and GPT, the platform has put Wulian Network’s geek spirit of “focus on the craft, refine the work, think like an artisan, act with discipline” into practice, and its recent iterations have delivered a major performance breakthrough.

The latest measured results are in for version F, the build of the edge gateway that carries content delivery. A 32 MiB file over TLS 1.3 without kTLS saw p99 latency drop from 679 ms to 397 ms, with single-core throughput of 747 MB/s (two-run average). That puts us in the same tier as the kTLS-enabled nginx in F5’s official tests — and we have no kTLS. The gateway is not derived from open-source software like nginx or ATS; it is a deep customization built on the Pingora framework. Even with AI-assisted vibe coding, taking the kTLS + sendfile path would be extraordinarily difficult — one might even say close to impossible — and far beyond what a small team or ordinary engineers could master. The time, trial-and-error cost and token spend would be enormous. In edge CDN acceleration, cost is the biggest bottleneck, physical latency is hard to break through, and cross-border and cross-network paths are congested. These are bottlenecks and challenges the general public can imagine and understand — and they are exactly where Wulian Network’s IXCDN service finds its opportunity, and where the product’s value lies.

The test machine is host 115: 2 × Xeon Gold 6138, 80 logical cores, 2 NUMA nodes, 251 GB DDR4 memory (memory usage is inspectable), ordinary SATA SSD, xfs, Debian 13, kernel 6.12.100 — 2017-vintage hardware. edge uses only 8 of those cores (20–27, 8 worker threads). This machine is a development and test environment running all kinds of services, not a clean test bench; it also has CPU vulnerability mitigations enabled (Spectre, Meltdown and the like), which take a meaningful toll on performance. All the numbers below were produced under these conditions.

Preface: Set the Rules First, and the Road Gets Wider

In CDN, using OTN or even cross-border IEPL or CN2 to solve network congestion is already standard practice, or the first choice for large enterprises. But compliance and cost are both a Sword of Damocles hanging over small and medium businesses and startup teams. Building efficient CDN acceleration within the rules of ordinary compliant networks is what leaves technical headroom for future growth and improvement. Set the rules first, and the road gets wider.

The Cost of TLS

Small files are the most common workload at the edge gateway — especially for traditional web, social media, e-commerce, and finance and accounting platforms — and they are also the least TLS-friendly workload. IXCDN runs 251.6k rps for 1 KiB of plaintext (31.5k rps/core); with SSL and TLS enabled it still reaches 159.9k rps (20.0k rps/core). 8 KiB is the same story: 231.5k plaintext, 143.1k with TLS, consistent with the overhead that TLS encryption without hardware offload brings.

1 KiB8 KiB
Plaintext @256 concurrency251.6k rps, 31.4 µs/request231.5k rps, 34.2 µs/request
TLS @256 concurrency159.9k rps, 50.0 µs/request143.1k rps, 56.0 µs/request
TLS overhead36% lower throughput, 59% more CPU per request38% lower throughput, 64% more CPU per request

p99 behaves the same way: at 64 concurrency, 1 KiB goes from 0.48 ms to 0.71 ms, and 8 KiB from 0.52 ms to 0.80 ms. The p99 at 256 concurrency (3.3/3.7 ms) is queueing, not service time.

TLS 1.3, AES-256-GCM, OpenSSL. The cost is three to four tenths of throughput and six tenths of CPU. Measure this number accurately first, then talk about optimization.

What About Large Files (32 MiB Chunks)

First, why we chose 32 MiB. From observation and prior experience, we believe that on the Internet, mobile Internet and the emerging AI era, take streaming short dramas as an example: one episode is 1–3 minutes, 1080p, H.264 at 2–8 Mbps, which works out to 15–180 MB per episode; 32 MiB falls in the middle (2 minutes at 2.2 Mbps, or 1 minute at 4.5 Mbps). H.265 saves 40–50% of the bitrate, so the same 32 MiB holds nearly twice the duration. The AI animated shorts IXCDN serves are exactly this order of magnitude — what we measured is not an abstract large file, but a real workload in CDN streaming delivery.

The way codecs and streaming downloads fetch data also points to this number. Video is encoded by GOP, with keyframes every 1–2 seconds; playback fetches by segment, HLS/DASH segments are 2–10 seconds, one segment at 5 Mbps is 1.25–6.25 MB, so 32 MiB holds 5–26 segments — enough to reach steady state. Players do not download the whole file; they first fetch a small range to read moov, then fetch 64 KiB–1 MiB ranges segment by segment, and dragging the progress bar means random ranges — the test items range1, r4k, range64k, cross64k, r1m, rand and full measure exactly how players actually fetch.

Measurement also lands in the right place. The kTLS dividing line is around 64 KiB, and 32 MiB is 512 times that, long since in the regime where you optimize the data path rather than request count; p99 reflects queueing and scheduling, not the handshake. At the same time it is far below the 512 MB cacheable ceiling, so it is a normal object that can enter cache. 1 MiB is too small to reach steady state; 1 GiB is too large — one round takes too long, samples are few, and it exceeds the cacheable ceiling of some tiers. 32 MiB is a different matter. The problem with version D is obvious at a glance: the median is fine, the tail is bad.

64 concurrency (two-run average)Throughputp50p99p99/p50
D160.4 req/s388 ms679 ms1.75
D capped at 8164.8 req/s377 ms680 ms1.80
F178.1 req/s356 ms397 ms1.12

Version F gains 11% throughput (@64) / 16% (@256), p50 -8%/-14%, p99 -41%/-26%. It wins little on the median and a lot on the tail: F’s p99 is only 12% more expensive than p50, while D’s is 75% more. The two test rounds were broadly consistent.

256 concurrency is actually a little slower than 64, with p50 4× more expensive — at the 32 MiB scale, 64 concurrency is already the ceiling; more concurrency only adds queueing.

The Price of Encryption, Which Everyone Pays

TLS encryption is not something that can be “faster”; it is the price of security. AES-GCM does the same work per byte no matter who does it — the hottest function in the profile is _aesni_ctr32_ghash_6x, with TLS 1.3, AES-256-GCM, OpenSSL, exactly the same suite F5’s tests used.

kTLS + sendfile exists precisely to solve this problem: once encryption makes large files slower, push encryption down into the kernel and save the user-space copies and context switches. The encryption work itself is not reduced at all; what is saved is the data movement.

Pingora + kTLS + sendfile: A Long and Difficult Road

We looked into the kTLS path back during Netflix’s 200G–400G–800G single-node iterations. After repeatedly reviewing the kernel, dependencies and Pingora architecture, the conclusion was that it would not work. It is not that we did not try; none of the three conditions is met.

First, sendfile needs a file descriptor, not a chunk of bytes in memory. Pingora’s body is Bytes, with data in memory and no fd to hand over. nginx can use kTLS because it holds an fd to a disk file; the only cache backend in the open-source Pingora, MemCache, still caches the whole segment in memory.

Second, kTLS requires handing the TLS session key to the kernel. This needs cooperation from the TLS library itself: OpenSSL has had SSL_sendfile since 3.0, and nginx merely calls it — what actually hands the key to the kernel is OpenSSL. Pingora’s TLS backends are BoringSSL (the production default), rustls, OpenSSL and s2n — BoringSSL’s kTLS support cannot be found in public material at all, and there is no ready call site on the Rust side either.

Third, the socket is hidden behind Box. To enable kTLS for a connection, you first have to pull the raw fd out of that abstraction, then bypass the TLS layer and call the kernel directly — equivalent to tearing apart and rewriting Pingora’s connection layer, TLS layer and cache layer at the same time. H2 adds another gate: the h2 crate splits frames in user space, 16 KiB per frame, and frame headers go through another write, so the kTLS benefit is already discounted on H2.

The kernel side is actually not the problem — the test machine is already on 6.12, well past the kernel threshold for kTLS. What blocks it is the framework layer. Even Cloudflare, which wrote the framework, never shipped it in the open-source version.

So this is not a matter of “adding a feature”; it means rewriting the framework’s lowest layer, and first adding kTLS support to BoringSSL or rustls. Small files are actually slower with kTLS (64 KiB is the dividing line), so the benefit is limited to large files on H1. For a small team to take this on, feasibility is close to zero.

F’s approach is to polish the user-space send path to the level of kTLS. The encryption cost is not reduced by a single bit, yet performance catches up with kTLS-enabled nginx — achieving a performance lead at the same encryption cost as nginx is what makes F so valuable.

Compared with nginx and ATS

F5’s official 2021 kTLS tests gave absolute numbers: AWS t3.medium, 8259CL 2.5GHz, 1 GB file, TLS 1.3 AES-256-GCM. nginx with kTLS off is 556/662 MB/s/core, and with kTLS on is 717/756 MB/s/core.

Our per-core numbers (aggregate throughput ÷ 8 cores, same suite): D is 673 MB/s/core, on par with nginx without kTLS — even though its CPU clock is 25% lower. F is 747 MB/s/core, matching kTLS-enabled nginx at face value; adjusted for clock speed, it leads by about 25–30%. The comparison is at the same encryption cost: TLS 1.3, AES-256-GCM, the same OpenSSL. Same cost, better performance.

ATS has no proven kTLS, uses user-space TLS, and sits in the same tier as nginx without kTLS. F is above that tier.

With 8 cores saturated (single-machine loopback), F can move about 178 32 MiB files per second, roughly 48 Gbps, about 470 TiB per day; real nodes are still limited by NIC bandwidth.

Four Scenarios

Cross-Border E-Commerce

Amazon’s public 2006 experiment: every 100 ms a page slows down, sales fall 1%. Akamai’s 2017 analysis of about 10 billion visits: 100 ms of latency cuts conversion by 7%. There is a clear conversion relationship between latency and money.

Latency in cross-border e-commerce comes from two places: distance, and the per-request cost of piling up small files like product images, videos and detail pages. 1 KiB TLS at 20.0k rps/core and p99 (@64) 0.71 ms — every image on the first screen and every add-to-cart settles at this magnitude. Gross margin eaten by bandwidth and conversion eaten by latency are the same money; one edge hit means one fewer origin fetch halfway around the world.

AI Animated Shorts

AI animated shorts are a business of chasing episode after episode; one episode is a file of tens of MB, and viewers watch one after another. The p99 of a 32 MiB file drops from 679 ms to 397 ms — the difference is whether the screen spins right at the climax. F’s p99 is only 12% more expensive than p50, while D’s is 75% — with the tail contained, viewers do not feel the network.

The cost side is more direct: AI-generated content is large in volume and fast to update, and every playback is outbound traffic. Eight cores saturated move about 48 Gbps, about 470 TiB per day; only when throughput goes up does the cost per unit of traffic come down.

AI and Cultural Tourism

AI in cultural tourism is up close and personal: guides, translation, AR commentary — a person stands in front of a site, asks a question, and the answer must come back like a person would respond. The threshold for feeling “instant” is about 100 milliseconds; beyond that, conversation turns into waiting. Our edge authentication runs at the CDN edge without going back to origin — multilingual content, real-time Q&A and AR assets are placed on the node nearest the visitor ahead of time.

Peak season is the other side of cultural tourism: traffic is not evenly distributed but arrives in sudden holiday surges. The finding that 64 concurrency is the ceiling and more concurrency only adds queueing is exactly the basis for capacity planning here: prepare nodes and caches before the peak, rather than scaling after it arrives.

Cross-Border Cultural Exchange

Live connections, cross-border classrooms, remote joint performances — what people fear when speaking is not distance but talking over each other; once latency rises, conversation degrades into taking turns. 4K cultural content and real-time interaction both need the same link to be fast and stable.

The cost side: cross-border bandwidth is the most expensive kind of bandwidth, and one edge cache hit saves the most expensive leg of origin fetch.

The Reliable Part

Every test row in the final version had 0 errors and 0 non-2xx responses. 32 MiB ran two rounds, and the second round was basically consistent with the first.

Edge authentication is fail-closed: if rules or entitlement delivery breaks, it would rather deny than let through; normal session key rotation keeps a 7-day grace period, while emergency rotation has zero grace. Performance can be optimized gradually, but one authentication mistake is an incident.

What This Means for IXCDN Users

IXCDN is a hosting and delivery platform for static sites: upload and publish, MCP Agent auto-publish, S3 storage, built-in CDN and SSL, edge authentication, forms and subscriptions. Every byte of a static site travels the edge path described above. Fast small files mean a fast first screen; converging tail latency on large files means stable downloads and media delivery; and authentication for paid content runs at the edge without going back to origin — fast and secure.

The next step is the cost of TLS on small files. It is currently three to four tenths, and F has proven on large files that even without kTLS, the user-space path can catch up with kTLS at the same encryption cost. Small files are the other half of the same problem. We will come back to it.

Appendix: Test Notes

Test Environment

ItemContent
Host115: 2 × Xeon Gold 6138, 80 logical cores, 2 NUMA nodes, 251 GB memory; Debian 13, kernel 6.12.100; SSD, xfs
IsolationDedicated network namespace em-ab, loopback only; each process is a systemd transient unit (MemoryMax=16G); only NUMA node 1 used, no production services touched
Core bindingedge uses 20–27 (8 worker threads); wrk uses 28–35; origins 36–37; perf and samplers 38–39; compilation runs only on node 0
edge configSame template for all versions: file backend plus blocking engine; WAF, H3 and TLS write coalescing off; log level warn
OriginsTwo Python origins. origin2 serves 1 KiB, 8 KiB and 32 MiB objects; origin188 adds 1 MiB objects, a miss path with a fresh object every time, SSE and a counting endpoint. Body is deterministic and incompressible, with strong ETag, Range and 304 support
Load generatorwrk 4.1.0, HTTP/1.1 keep-alive; TLS 1.3, AES-256-GCM
VersionsA = production 9bfe18844; intermediate iterations B / C / D / E / E2 / D capped; F = final, feat 8592eedfd

Test Method

Test flow: start a fresh process with an empty cache directory; use curl to fill and warm up until one pass makes no origin fetch; fetch once through edge and once directly from origin, compare sha256; warm up with wrk for 10 s, then measure for 30 s, taking a snapshot before and after; stop the instance and clear the cache.

Concurrency rounds: 8 / 64 / 256 concurrency, 1–4 rounds per version.

Alternating comparison: the lesson from 8 concurrency is that cross-time-period comparisons cannot resolve differences within 5%. So from Q-06 onward, all versions were run alternately in the same time period. F versus A uses D as a bridge: D is almost identical to A, and F is then compared with D in the same period.

Pass criteria: throughput, p99 and CPU per thousand requests all no worse than A, with ±2% considered flat; 0 errors, 0 non-2xx, no panics in the log; 0 origin fetches in hit-type windows.

Two kinds of run: clean-run numbers are used for comparison; profile runs (with perf and samplers attached) are used only to find causes, and their rps is not compared.

Load-generator saturation: when the load generator’s cores are busy at ≥ 95%, the number being measured is the load generator.

Diagnostics: perf stat, perf record (LBR call stacks); syscall tracepoint counting; ss queue sampling, converted to wait time by Little’s Law; run_delay from schedstat (time waiting for CPU); cycles versus task-clock to measure effective frequency; lossless send traces (perf record tracepoint).

Test Items

CategoryScenarios
Plaintext hitsk1 (1 KiB), small (8 KiB, memory tier and disk tier); on 32 MiB objects: range1, r4k, range64k, cross64k, r1m, rand (random length 1 B–2 MiB), full (whole file)
TLStls-s1k, tls-s8k, tls-l1m, tls-32m; tls-churn (short-connection handshake)
Connection and origin fetchidle-10k (memory per connection), pass-s8k (origin connection reuse), miss-s64k, miss-l32m, SSE, fill-slow-leader
Cold reads and missesl1m / l32m / l1g-cold, *-tail-miss, l32m-random-miss

Metrics

MetricMeaningHow to read
rpsRequests completed per secondHigher is better; first confirm the load generator is not saturated
p50 / p90 / p99Latency percentiles per request (wrk closed loop)Lower is better
CPU per thousand requestsedge’s cgroup CPU ÷ requests × 1000Lower is better; varies with frequency scaling
Cycles / instructions per request, IPCperf stat count ÷ requestsUnaffected by frequency scaling; more reliable than CPU time when comparing code
busy_edge / busy_genBusyness of edge cores and load-generator coresInvalid when busy_gen ≥ 95%
RSS, hwm, anonymous memoryResident memory at window end, lifetime peak, cgroup anonymous memoryLower is better
Memory per connectionRSS increase ÷ connections while holding 10,000 idle connectionsLower is better
New origin connections per secondWhether origin connections are reusedClose to 0 is best
futex per request, context switches, run-queue waitInter-thread wakeups, core contentionLower is better
Receive / send queue waitTime a request waits in the kernel for edge to read it / time a response waits for the client to finish readingLower is better
TLS records per responseHow many TLS records one response uses1 for small responses is best
Errors, non-2xx, origin fetches in hit windows, panicsCorrectness baselineOnly 0 passes

Test Data

  • Production version = current live version; new version = this release. The HTTPS 32 MiB and 1 MiB groups are measured on the release build; the other groups are taken from pre-release builds, since the release did not change those paths.
  • Throughput and latency all come from wrk closed-loop load tests: single-machine loopback, edge using 8 cores. “Higher / lower” is relative to the production version, with differences within 2% recorded as flat.
  • Small-object rows are single-round comparisons at different times; when retested alternately in the same period, the two versions differ by about 1%, within measurement noise.

HTTPS 32 MiB File: Throughput and Latency Distribution

ConcurrencyVersionThroughput (req/s)p50p90p99p99 ÷ p50
64Production161.5386 ms539 ms680 ms1.76
64New178.1 (+10%)356 ms (-8%)377 ms (-30%)397 ms (-42%)1.12
256Production152.41,624 ms1,851 ms2,055 ms1.27
256New174.1 (+14%)1,424 ms (-12%)1,465 ms (-21%)1,547 ms (-25%)1.09

HTTPS 32 MiB File: Per-Core Throughput

ConcurrencyVersionThroughput (req/s)Aggregate (MB/s)Per core (MB/s, ÷ 8 cores)Equivalent bandwidth
64Production161.55,41967743.4 Gbps
64New178.15,97674747.8 Gbps
256Production152.45,11463940.9 Gbps
256New174.15,84273046.7 Gbps

Per core = aggregate throughput ÷ 8 edge cores (MB counted as 10⁶ bytes). Table and body are two-run averages. Equivalent bandwidth is on single-machine loopback, not NIC-measured; real nodes are still limited by NIC bandwidth.

TLS Overhead (Same Version, Plaintext vs HTTPS, 256 Concurrency)

ObjectVersionPlaintext throughputHTTPS throughputThroughput changePlaintext CPU per requestHTTPS CPU per requestCPU change
1 KiBProduction255.7k rps161.5k rps-37%30.9 µs49.6 µs+61%
1 KiBNew251.6k rps159.9k rps-36%31.4 µs50.0 µs+59%
8 KiBProduction234.3k rps144.8k rps-38%33.7 µs55.4 µs+64%
8 KiBNew231.5k rps143.1k rps-38%34.2 µs56.0 µs+64%
Object (new version)p99 @64 plaintextp99 @64 HTTPS
1 KiB0.48 ms0.71 ms
8 KiB0.52 ms0.80 ms

Plaintext and HTTPS columns come from the same version and the same test group; CPU per request is the CPU milliseconds edge spends on 1,000 requests ÷ 1,000.

Plaintext HTTP Hits: Throughput by Scenario (req/s)

Scenario64 concurrency Production64 concurrency NewChange256 concurrency Production256 concurrency NewChange
1 KiB small object (memory)244.4k240.6kflat255.7k251.6kflat
8 KiB small object (memory)223.8k217.9k-2.6%234.3k231.5kflat
8 KiB small object (disk)178.7k176.4kflat189.6k183.1k-3.4%
1-byte Range146.3k199.1k+36%147.5k207.3k+41%
4 KiB Range130.6k186.3k+43%132.7k193.3k+46%
64 KiB Range94.4k156.8k+66%95.9k160.9k+68%
64 KiB cross-block Range90.4k111.3k+23%90.6k112.4k+24%
1 MiB Range ¹11.8k18.9k+61%10.0k18.8k+88%
Random-length Range (1 B–2 MiB)69.4k107.4k+55%61.3k115.5k+88%
32 MiB whole file ¹253481+90%234477+104%

¹ The load generator’s CPU already hit 98–100%; what was measured is the load generator’s ceiling, and the server still has headroom. After widening the load generator, 1 MiB Range at 256 concurrency is 31.9k req/s on the new version, 3.2× the production version.

HTTPS Hits: By Size

ScenarioConcurrencyProduction throughputNew throughputChangeProduction p99New p99
1 KiB64157.2k156.8kflat0.71 ms0.71 ms
1 KiB256161.5k159.9kflat3.29 ms3.30 ms
8 KiB64140.9k139.7kflat0.80 ms0.80 ms
8 KiB256144.8k143.1kflat3.63 ms3.72 ms
1 MiB645,2065,266flat~22 ms~22 ms
1 MiB2564,9475,029flat~110 ms~110 ms
32 MiB64161.5178.1+10%680 ms397 ms
32 MiB256152.4174.1+14%2,055 ms1,547 ms

Connections, Origin Fetch and Memory

ScenarioMetricProductionNewChange
10,000 idle HTTP keep-alive connectionsMemory per connection92.3 KiB29.6 KiB-68%
Resident memory for 10,000 total1,088 MiB476 MiB-56%
10,000 idle HTTPS keep-alive connectionsMemory per connection122.3 KiB59.4 KiB-51%
Resident memory for 10,000 total1,383 MiB770 MiB-44%
HTTPS short connections (one handshake per request)Handshakes per second4,1714,174flat
CPU per thousand requests89.5 ms88.8 msflat
Pass-through origin fetch 8 KiB, 256 concurrencyThroughput37,451 req/s38,320 req/s+2%
New origin connections per second14.10essentially eliminated (all connections reused)
64 KiB all miss, 256 concurrencyThroughput28,858 req/s29,558 req/s+2%
New origin connections per second550.19essentially eliminated (all connections reused)
Anonymous memory ²307.5 MiB440.9 MiB+43%
32 MiB random Range miss, 32 concurrencyThroughput11,774 req/s16,102 req/s+37%
CPU per thousand requests694 ms350 ms-50%
Origin bytes per request ³12.1 KB13.2 KB+9%

² In the extreme all-miss scenario, data waiting to be written to disk queues in memory, taking about 130 MiB more.

³ On a random Range miss, the origin is fetched by the requested range, and the leading and trailing parts of a cross-block range cause one extra origin fetch.

Note: The gateway is a deep customization based on Pingora, reverse-proxy architecture, memory hits for small objects; OpenSSL 3.5.4 (gateway statically linked) / 3.5.6 (load client wrk); 32 MiB throughput is counted by req/s. nginx comparison data is quoted from F5’s official 2021 kTLS tests; latency and conversion data is quoted from Amazon’s public 2006 experiment and Akamai’s 2017 “State of Online Retail Performance”.