Cloudflare、Linux ネットワーキングスタックの限界を押し広げる

Cloudflare のエンジニアは、Linux ネットワーキングスタック内で soft-unicast 機能を拡大する際に重大な課題に直面しました。これは冗長性を確保するための複雑なルーティングと anycast 設定によるものです。先進的なソケットオプションを使用して制限を回避しようとする試みは、最終的にシンプルなプロキシソリューションに戻りました。この経験は、大規模ネットワーキング要件向けに Linux をカスタマイズする難しさを浮き彫りにしています。

Cloudflare のネットワークインフラは、Linux ネットワーキングスタックの限界を試す複雑なルーティングと設定に依存しています。エンジニアの Chris Branch による最近のブログ投稿で詳述されているように、同社は anycast を多用して外部ネットワークに冗長性を分散させるため、soft-unicast 機能を強化しようとしました。

主な問題は、Netfilter の接続追跡モジュール(conntrack として知られる)と Linux ソケットサブシステムによるパケット書き換え処理で発生しました。soft-unicast は複数のプロセスが同一接続を認識する必要がありますが、Linux の設計により効果的なパケット書き換えが不可能でした。最初に、チームはこの処理をローカルプロキシで実装しましたが、パフォーマンスオーバーヘッドが発生しました。

これに対処するため、エンジニアは仮想マシンのネットワーク接続移行に通常使用される TCP_REPAIR ソケットオプションの悪用を検討しました。これによりソケット接続状態を完全に記述し「修復」できました。TCP Fast Open と組み合わせ、TFO クッキーを使って標準ハンドシェイクを回避しました。これらの革新にもかかわらず、問題が残り、初期の demux メカニズムを部分修正として提案しました。

結局、複雑さが大きすぎました。チームは TCP 接続を終了しローカルソケットにトラフィックをリダイレクトするシンプルなローカルプロキシ方式を選択しました。この決定は、インターネットインフラの最前線に立つ Cloudflare でさえ、Linux ネットワーキングスタックから完全に脱却することが依然として大きな課題であることを示しています。

関連記事

Illustration depicting the Linux CopyFail vulnerability enabling root access exploits alongside Ubuntu's DDoS-induced outage.
AIによって生成された画像

Linux CopyFail exploit threatens root access amid Ubuntu outage

AIによるレポート AIによって生成された画像

A critical Linux vulnerability known as CopyFail, tracked as CVE-2026-31431, allows attackers to gain root access on systems running kernels since 2017. Publicly released exploit code has heightened risks for data centers and personal devices. Ubuntu's infrastructure has been offline for over a day due to a DDoS attack, hampering security communications.

Elastic Security Labs has detailed the evolution of Linux rootkits in a two-part research series published on March 5, 2026. These modern threats exploit kernel features like eBPF and io_uring to remain hidden in cloud, IoT, and server environments. The research highlights how such rootkits evade traditional detection methods.

AIによるレポート

Law enforcement agencies from the United States and Europe, supported by private partners, have taken down the SocksEscort cybercrime proxy network. This service, powered by the AVRecon malware infecting Linux-based devices, provided cybercriminals with access to compromised IP addresses. The operation resulted in the seizure of domains, servers, and cryptocurrency assets.

One week after the FCC banned sales of new foreign-made Wi-Fi routers over national security risks, new details emerge on implicated cyberattacks and growing criticism of the broad policy's effectiveness.

AIによるレポート

Researchers have used artificial intelligence to identify a significant performance boost in Linux's IO_uring subsystem. The discovery reveals a 50-80x improvement in efficiency. This finding highlights AI's role in optimizing open-source software.

このウェブサイトはCookieを使用します

サイトを改善するための分析にCookieを使用します。詳細については、プライバシーポリシーをお読みください。
拒否