ループバックインターフェースとは?
ループバックインターフェースとは、通常 localhost として到達可能なソフトウェアのみのネットワークインターフェースで、送信パケットを同じホストへそのまま戻します。そこへのトラフィックはマシンから出ないため、高速で常に利用可能です。ローカルサービスは、ホスト自身からのみ到達可能であるべきときにこれへ bind します。
なぜ重要か
CI のテストは、サービスを起動してループバック経由で接続することがよくあり、依存関係を runner 内で自己完結させます。ループバックにのみ bind されたサービスは別の container からは到達できず、これが一部の connection-refused エラーを説明します。
関連ガイド
What Is Port Forwarding?Port forwarding redirects network traffic arriving on one host and port to a different host or port, exposing…
What Is a Unix Domain Socket?A Unix domain socket is an endpoint for fast communication between processes on the same machine, addressed b…
What Is the Maximum Transmission Unit?The maximum transmission unit is the largest packet size a network link will carry in one piece; larger paylo…