Skip to main content
KalkuNet
IT & Networking7 min read · Updated

Quick Field Guide to IPv4 Subnetting, VLSM, MikroTik QoS & FTTH Fiber Loss

Field network engineers repeatedly run three core calculations: carving IPv4 blocks without overlaps, tuning MikroTik MTU and Queue Tree QoS for stable latency, and checking FTTH optical budgets from OLT to ONT. Every quick lookup table and calculator link is grouped below.

Key Numbers at a Glance

  • Usable IPv4 hosts equal 2^(32 − prefix) − 2 (with RFC 3021 /31 providing 2 point-to-point addresses and /32 representing 1 loopback host).
  • VLSM golden rule: sort required subnets from LARGEST host count to smallest so block boundaries align cleanly with zero overlap.
  • Reference MTUs: Ethernet 1500 B, PPPoE 1492 B (MSS 1452), WireGuard over IPv4 1420 B (MSS 1380), WireGuard over PPPoE 1412 B (MSS 1372).
  • Healthy GPON/EPON ONT receive power sits between −15 dBm and −24 dBm; optical LOS typically triggers below −27 dBm.

Quick IPv4 CIDR Table (/24 to /30) & VLSM Worked Split

A single /24 block holds 256 addresses (254 usable hosts). Splitting 192.168.10.0/24 via VLSM for 100 office users, 50 guest Wi-Fi clients, 20 IP cameras and a router PtP link starts from the largest need: /25 (.0–.127, 126 hosts), /26 (.128–.191, 62 hosts), /27 (.192–.223, 30 hosts) and /30 (.224–.227, 2 hosts), leaving 28 addresses free for growth.

CIDR /24–/30 lookup table for LANs, VLANs and WAN links
PrefixSubnet MaskWildcard MaskTotal IPsUsable HostsTypical Use
/24255.255.255.00.0.0.255256254Standard office LAN / Hotspot
/25255.255.255.1280.0.0.127128126Building floor / 100-user Wi-Fi
/26255.255.255.1920.0.0.636462Lab or department VLAN
/27255.255.255.2240.0.0.313230IP camera or server segment
/28255.255.255.2400.0.0.151614Switch / OLT management VLAN
/29255.255.255.2480.0.0.786Small public DMZ block
/30255.255.255.2520.0.0.342Router-to-router Point-to-Point

MikroTik RouterOS Queue Tree, PCQ & Tunnel MTU Guidelines

For MikroTik Queue Tree priorities (1 to 8) to engage under congestion, set the parent max-limit to 90%–95% of measured ISP throughput rather than the advertised line rate. Ensure the sum of all child limit-at values never exceeds the parent max-limit, or guaranteed bandwidth collapses during saturation.

Over PPPoE (1492 MTU) carrying WireGuard or GRE tunnels, TLS handshakes often stall due to blackholed PMTU packets. Clamp TCP MSS to Tunnel MTU minus 40 bytes for IPv4 (or minus 60 bytes for IPv6) on the tunnel forward chain.

PLC Splitter Loss Table & FTTH Optical Power Budget

Quick FTTH loss budget formula: Total Loss (dB) = Splitter Loss + (Length in km × 0.35 dB/km at 1310 nm or 0.22 dB/km at 1550 nm) + (Connectors × 0.3 dB) + (Fusion Splices × 0.1 dB) + 2–3 dB aging margin.

Worked field check: a +5 dBm Class C+ OLT SFP feeding cascaded 1:8 ODC (10.5 dB) + 1:8 ODP (10.5 dB) splitters across 3 km of fiber (~0.8 dB), 4 connectors (1.2 dB) and 4 splices (0.4 dB) incurs 23.4 dB of loss, delivering −18.4 dBm at the ONT with ample headroom above the −27 dBm LOS floor.

Typical GPON/EPON PLC splitter insertion loss values
Splitter RatioTypical LossMax Subscriber PortsExample ODC + ODP Cascade
1:23.5 – 3.8 dB2 ports1:2 + 1:16 = 32 ports (~17.5 dB)
1:47.2 – 7.4 dB4 ports1:4 + 1:8 = 32 ports (~17.8 dB)
1:810.3 – 10.7 dB8 ports1:8 + 1:8 = 64 ports (~21.0 dB)
1:1613.5 – 14.0 dB16 ports1:4 + 1:16 = 64 ports (~21.2 dB)
1:3216.8 – 17.2 dB32 ports1:2 + 1:32 = 64 ports (~20.8 dB)
  1. 1. Plan IPv4/VLSM subnets and export MikroTik address-lists

    Calculate non-overlapping VLAN prefixes with Subnet and VLSM, expand exact address boundaries, and export ready-to-import RouterOS address-list scripts.

  2. 2. Tune Queue Tree QoS, Burst & tunnel MTU

    Distribute parent bandwidth across priority classes with clean limit-at/max-limit budgets, verify burst durations, and compute exact WireGuard/PPPoE MTU and MSS values.

  3. 3. Verify FTTH optical budget, fiber loss & live DNS

    Confirm ONT receive power before pulling drop cable, check backbone fiber budgets, or inspect public DNS records and propagation (e.g. google.com) live.

Related Networking Calculators & Tools

Frequently Asked Questions

When should you use /31 instead of /30 on a point-to-point router link?

A /31 cuts IP usage in half by assigning both addresses to the endpoints with no network or broadcast address (RFC 3021). Use /31 whenever both routers support it (RouterOS v7, Cisco, Juniper, Linux), and fall back to /30 for legacy gear.

Why does an ONT at −26 dBm stay online yet suffer frequent drops?

At −26 dBm you have almost zero margin above the −27 to −28 dBm receiver threshold. Minor patchcord bends, heat or dust on an SC/APC connector easily add 1–2 dB and trigger intermittent LOS.

What MTU and TCP MSS values are safe for WireGuard over PPPoE?

Set the WireGuard interface MTU to 1412 bytes (1492 PPPoE minus 80 bytes WireGuard IPv4 overhead) and clamp TCP MSS to 1372 bytes so TLS traffic flows without fragmentation.