完全版 IPv4 & IPv6サブネット化およびCIDR設計ガイド
サブネット化(サブネッティング)は、コンピュータネットワークにおいて大規模な物理または仮想ネットワークを、より小さく論理的に整理されたサブネットワークに分割するための基礎的な数学的技術です。IPアドレス空間を分割することで、ネットワーク設計者はアクセス制御の分離によるセキュリティ向上、ブロードキャストストームの抑制、遅延の削減、およびIPv4アドレスの最大限の節約を実現します。CIDRやビット単位のサブネットマスクの理解は、ネットワークエンジニアやクラウド設計者にとって必須の知識です。
1. IPv4サブネット化の数学的基礎
IPv4アドレスは、ドットで区切られた4つの8ビットバイト(オクテット)に配置された32ビットの2進数で構成されます(例:192.168.1.1)。すべてのIPアドレスは基本的に、ネットワーク部(サブネットを識別)とホスト部(そのサブネット上の個々の端末を識別)の2つのセグメントに分かれています。
- Slabs, Walls & Square Footings:
Volume = Length × Width × Thickness. For imperial measurements in feet, divide total cubic feet by 27 to obtain cubic yards. - Cylindrical Columns, Post Holes & Round Piers:
Volume = π × (Diameter / 2)² × Depth. Circular footings distribute loads radially, requiring precise depth calculations below the regional frost line. - Circular Slabs & Hollow Tubes:
Volume = π × (r₁² - r₂²) × Height, where r₁ represents the outer radius and r₂ represents the inner void or core radius. - Curbs & Gutters: Cross-sectional profile area of the vertical curb plus the horizontal apron flag multiplied by total lineal run length.
- Stairs: Calculated by summing the triangular and rectangular step prisms plus any adjoining landing platform volume.
2. プライベートIP空間(RFC 1918)とパブリックルーティング
世界的な42.9億個のIPv4アドレスプールの枯渇を防ぐため、IETFはRFC 1918に基づき、パブリックインターネット上ではルーティングされない3つのプライベートIPv4ブロックを指定しました:
| Application / Project Type | Recommended Thickness | Sub-Base Preparation | Reinforcement Standard |
|---|---|---|---|
| Sidewalks & Garden Walkways | 4 inches (10 cm) | 3–4" compacted crushed gravel | Welded wire mesh (6x6 - W1.4/W1.4) or fiber-mesh |
| Residential Patios | 4 inches (10 cm) | 4" compacted road base gravel | #3 (3/8") rebar on 18" centers or wire mesh |
| Residential Driveways (Light Cars) | 4 to 5 inches (10–12.5 cm) | 4–6" crushed limestone or gravel | #4 (1/2") rebar on 12" to 16" grid pattern |
| Heavy-Duty Driveways & RV Pads | 6 inches (15 cm) | 6" compacted angular aggregate | #4 rebar on 12" centers with rebar chairs |
| Foundation Footings & Grade Beams | 8 to 12 inches (20–30 cm) | Undisturbed native soil or compacted stone | Continuous longitudinal #4 or #5 rebar cages |
3. IPv6アーキテクチャと必須の /64 プレフィックス
IPv6はIPv4の32ビット制限を大幅に拡張し、128ビット(約340澗個、2^128個)の膨大なアドレス空間を提供します。IPv6アドレスはコロンで区切られた4桁の16進数の8つのグループとして表記されます。
- Under 1 Cubic Yard (Under 45 × 80-lb bags): Mixing dry pre-mixed bags in a portable drum mixer or wheelbarrow is typically more cost-effective. Ready-mix suppliers impose short-load fees on deliveries under 4 to 5 cubic yards.
- 1 to 2 Cubic Yards (45 to 90 × 80-lb bags): The transition zone. Mixing 80 bags by hand requires intense manual labor (over 3 tons of material handling). Renting a towable mixer or paying a small short-load fee is highly recommended.
- Over 2 Cubic Yards: Always order ready-mix transit delivery. A single ready-mix truck discharges 3 to 5 cubic yards in under 15 minutes, ensuring a monolithic, continuous pour without cold joints.
4. クラウドVPCサブネット設計(AWS、Azure、GCP)
AWS VPC、Microsoft Azure VNet、Google Cloud VPCなどの主要なクラウド環境でサブネットを設計する際、クラウドプロバイダーはインフラストラクチャサービス用に各サブネット内の追加IPアドレスを予約します:
- 1 Part Portland Cement: Type I/II general construction cement providing compressive bonding strength.
- 2 Parts Washed Sharp Sand: Fine aggregate filling microscopic voids between stone particles.
- 3 Parts Crushed Stone or Gravel: Coarse aggregate (3/8" to 3/4" size) providing structural load resistance.
- 0.5 Parts Clean Water: The water-cement ratio should be kept between 0.45 and 0.50 by weight. Adding excess water weakens cured concrete drastically, creating surface dusting and shrinkage cracks.
5. 養生期間と環境条件
コンクリートは乾燥して固まるのではなく、セメントと水の水和反応(化学反応)によって硬化します。最初の7日間は表面を十分に湿潤養生してください:
- Initial Set (24 to 48 Hours): Safe for careful foot traffic and stripping edge formwork.
- 7-Day Curing: Achieves approximately 70% of design compressive strength (e.g., ~2,800 PSI for a 4,000 PSI mix). Safe for light passenger vehicles.
- 28-Day Curing: Full design compressive strength (typically 3,000 to 4,500 PSI). Safe for heavy equipment, sealers, and full design loads.