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.
| Prefix | Subnet Mask | Wildcard Mask | Total IPs | Usable Hosts | Typical Use |
|---|---|---|---|---|---|
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | Standard office LAN / Hotspot |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | Building floor / 100-user Wi-Fi |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | Lab or department VLAN |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | IP camera or server segment |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | Switch / OLT management VLAN |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | Small public DMZ block |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | Router-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.
| Splitter Ratio | Typical Loss | Max Subscriber Ports | Example ODC + ODP Cascade |
|---|---|---|---|
| 1:2 | 3.5 – 3.8 dB | 2 ports | 1:2 + 1:16 = 32 ports (~17.5 dB) |
| 1:4 | 7.2 – 7.4 dB | 4 ports | 1:4 + 1:8 = 32 ports (~17.8 dB) |
| 1:8 | 10.3 – 10.7 dB | 8 ports | 1:8 + 1:8 = 64 ports (~21.0 dB) |
| 1:16 | 13.5 – 14.0 dB | 16 ports | 1:4 + 1:16 = 64 ports (~21.2 dB) |
| 1:32 | 16.8 – 17.2 dB | 32 ports | 1:2 + 1:32 = 64 ports (~20.8 dB) |
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. 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. 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.