STAFFCHAPTER 27

Transmission, backhaul and tower sharing

A cell is only as good as the link that joins it to the core, and the power that keeps both on. Learn the three hauls, size a site's backhaul, work out what rain does to a microwave hop, and see who owns the mast

50 MINHOW MOBILE NETWORKS WORKUPDATED 2026-11-13
PREDICT

A three-sector site has one 20 MHz carrier per sector. The radio team switches on a second 20 MHz carrier on each sector. Using the rule that a site's backhaul is sized by the larger of one cell's peak rate and the sum of the cells' busy-hour means, how does the backhaul the site needs change?

A mobile network is a radio network at one end and a core at the other, and a cable or a radio beam in between. The earlier chapters on the radio access network and the core network treated the middle as a line. It is a system of its own, and it is where an operator spends a great deal of money and loses a great deal of availability. A cell can have perfect coverage and a healthy core, and still serve nobody because the link between them is cut, full or unpowered.

Three hauls

An antenna and the equipment behind it do several jobs: radio frequency, the digital processing of the radio signal, and the higher protocol layers that talk to the core. Where those jobs run decides how many links there are and what each carries. 3GPP’s architecture (TS 38.401) splits the 5G base station, the gNB, into a distributed unit (DU) that does the time-critical processing and a centralised unit (CU) that does the rest. The radio unit (RU) next to the antenna is the further split that O-RAN and vendors describe, where the radio frequency part sits apart from the DU. The three can sit in one cabinet or in three places.

Distributed: everything at the siteRUDUCUbackhaulN2 and N3, 100s of Mbit/scoreCentralised: radio at the site, the rest at a hubRUfronthaulGbit/s, fibre, tight delayDUCUbackhaulcoreA hub between DU and CU would add midhaul (the F1 interface). Dashed boxes are places: a mast, a hub site.
Link Joins What crosses it What it asks of the link
Fronthaul Radio unit to distributed unit Radio samples (CPRI) or a split of the physical layer (eCPRI, the O-RAN open fronthaul) Gbit/s to hundreds of Gbit/s, very small delay, fibre
Midhaul Distributed unit to centralised unit The F1 interface (TS 38.473), between the CU and the DU Hundreds of Mbit/s to Gbit/s, delay of a few milliseconds
Backhaul Base station (or CU) to the core N2 signalling to the AMF and N3 user data to the UPF Sized by the site’s traffic; delay of milliseconds does no harm

Most macro sites in most networks today are distributed: the radio, the digital processing and the CU are all at the site, and the only link leaving the mast is backhaul. That is also the lab. UERANSIM’s cell is one program, gnb, which talks to the AMF at 10.33.0.5 on N2 and sends the phone’s data to the UPF at 10.33.0.7 on N3. The phone-to-cell link is a UDP socket and carries no radio samples, so the lab has no fronthaul or midhaul. It has a backhaul, and you can measure it.

A centralised layout (C-RAN, “cloud RAN”) pools the digital processing from many sites in a hub. It saves equipment and power at the mast and lets cells coordinate, and it costs a fronthaul link per site. The cost is large because of what the link carries. A radio signal, sampled and sent as numbers, is far larger than the user data it carries. The site.py you write in the lab computes the CPRI-style rate: a 20 MHz LTE carrier needs 30.72 million samples a second, each a pair of 15-bit numbers, with 16/15 for control and 10/8 for line coding. One antenna comes to 1.2288 Gbit/s, which is the line rate that the CPRI specification calls option 2. Two antennas make 2.46 Gbit/s to carry at most 150 Mbit/s of data. A 5G carrier of 100 MHz with 64 antennas would need 314.57 Gbit/s if every antenna’s samples crossed the link, which is why 5G fronthaul moves to eCPRI and the O-RAN “split 7-2”, where the rate follows the layers and not the antennas. Module 5’s chapter on open radio networks returns to that.

Two consequences matter to a planner. Fronthaul has a delay budget because the radio is a clocked machine: light in glass covers about 5 km in 25 microseconds, so a one-way budget of the order of 100 microseconds (illustrative) caps the fibre between radio and hub at about 20 km. And timing: a time-division radio needs its neighbours’ transmissions aligned to a fraction of a symbol, so the transport carries a clock as well as data. A link that moves traffic well and drifts in time still breaks the radio.

What crosses the backhaul

Two kinds of traffic leave a 5G site. N2 is NGAP signalling between the cell and the AMF over SCTP (the transport that the lab’s kernel requirement is about). It is small and rarely the sizing problem, but it is the thread the cell hangs by: if N2 breaks, every phone attached through the cell loses service while the cell itself still radiates. N3 is the user’s data, carried between the cell and the UPF inside a GTP-U tunnel: each user packet is wrapped in an outer IP header, a UDP header (port 2152) and a GTP-U header (TS 29.281).

That wrapping costs bytes, and you measure it in the lab. In traces/uplink-usage.pcapng every GTP-U packet carries 44 more bytes than the packet inside it: 20 for the outer IPv4 header, 8 for UDP, and 16 for the GTP-U header, whose mandatory 8 bytes grow to 16 because the packet carries a PDU session container with the QoS flow identifier. The cost is a fixed sum per packet, so its share depends on the packet. A 1,400-byte user packet pays 3.0% of the N3 packet and a 52-byte acknowledgement pays 45.8%. An IPv6 outer header would add 20 more bytes, and an IPsec tunnel, which some operators use to protect backhaul they do not own, adds more again. Then the link adds its own framing, which for Ethernet is 38 bytes per frame on the wire (header, check sequence, preamble and gap). Small packets pay most. Ten 52-byte acknowledgements carry 520 bytes of user data and put 960 bytes on N3, almost as much as one 1,000-byte packet, which puts 1,044. That is one reason the IoT chapter’s fleets weigh more than their payload.

Sizing a site’s backhaul

A site’s backhaul must carry what its cells produce when they are busiest. The first rule an engineer learns comes from the NGMN, the operators’ research alliance, whose guideline for LTE backhaul traffic estimation sets the lower bound for a site with several cells as the larger of two figures: the peak rate of one cell, and the sum of the busy-hour mean rates of all the cells. The reasoning is that the sectors will seldom all peak together, but one of them, with one good phone on a quiet evening, can reach its peak alone, and the link should not be the reason it cannot. This chapter rests on summaries of that guideline, not on its full text, so read the paper for its definition of “peak” before you quote it.

Then add what the cell does not count: the framing overhead above, and headroom, a share of the link left free so that bursts, retransmissions and a growing evening do not push the link into queuing. Twenty to thirty per cent (30% in the lab, illustrative) is common practice.

Two things follow, and they surprise people. The peak decides more often than the average. For a lightly loaded rural site the peak of one 20 MHz cell is far above the sum of its sectors’ means, so the link is sized for a rate that is rarely reached. That is expensive for a rural site that earns little. So operators usually choose a lower figure, accept that a lone fast phone is capped by the link, and watch the busy-hour utilisation. Whether a link is the bottleneck is a measurement, not a rule. The quality chapter said why: a region-wide average hides the one site where the link is full at eight in the evening. A second carrier moves the number. Spectrum that is licensed and switched off costs nothing to backhaul. Once it is on, one cell’s peak doubles, and a link sized for one carrier is now what limits it. The radio planners in cells, towers and coverage wrote the cell’s capacity on a data sheet. The transmission planner decides whether any phone can reach it.

The next step up is steeper. A 5G carrier of 100 MHz with four layers and 256QAM peaks at 2,337 Mbit/s in the lab’s capacity.py. The same rule then asks for 3.7 Gbit/s, which is more than a microwave hop in the channel sizes used in this chapter carries; only wide channels such as E-band, over short hops, reach it. That is a quiet reason why 5G on mid-band spectrum arrives with fibre to the site.

The media: fibre, microwave and satellite

A site reaches the core by one of three kinds of link, and each fails in a different way.

Medium Capacity Delay (propagation only) How it fails Where it fits
Fibre Tens of Gbit/s and beyond, limited by the equipment at the ends About 5 µs per km, so 1.3 ms round trip over 100 km of route (illustrative route factor 1.3) Cut by diggers, vehicles, fire, theft, a roadworks gang. Slow to repair Towns and trunk routes; the long-run answer for any busy site
Microwave Tens of Mbit/s to a few Gbit/s, by channel size, modulation and band Almost nothing: 5 km is 17 µs one way Rain at higher bands, multipath and ducting at lower ones, a mast that moves, a power cut at either end Where fibre is absent or slow to build; the usual first link to a new site
Satellite Shared and limited per terminal 477 ms round trip by a geostationary satellite, 7 ms by one at 550 km (illustrative orbit) Rain at the higher bands, terminal power, a crowded beam Remote sites no other medium reaches

Two public sources say how much of the world’s mobile backhaul each carries and where it is heading. Ericsson’s Microwave Outlook of 2023 projected a 50/50 split of microwave and fibre in mobile backhaul by 2030 (excluding North East Asia), and its 2025 edition projects a near-even split of 49% microwave and 51% fibre globally, with microwave still preferred in rural areas. Both are a vendor’s view, and Ericsson sells microwave radios. The pattern holds for Nigeria in general terms: fibre where there is a route, microwave everywhere else, and a share of sites joined to the network by a chain of microwave hops that end on the same fibre.

A press report of October 2025 headlined Nigeria’s telcos at 19,000 fibre cuts in eight months, quoting figures attributed to the NCC for January to August 2025as of 2026-11. The report is the source for the scale only; I could not open it, so check its period and method before you quote a number. Press reports of February 2026 say that the NCC and the Nigeria Security and Civil Defence Corps have warned builders that damaging fibre can be prosecuted, and some tie this to the Critical National Information Infrastructure order of 2024 while others cite the Cybercrimes Act 2015as of 2026-11. The reports do not agree on the legal basis, and I could not read the order or the joint statement, so read them before you rely on any wording. The engineering lesson does not depend on the exact figure. A single path is a single point of failure, so an operator who cares about a site builds a second path (a ring of fibre, or a microwave hop beside the fibre) and buys the second path from a route that does not share a trench with the first.

What rain does to a microwave hop

Microwave is a radio beam between two dishes in line of sight. Its loss follows free-space loss, which grows with distance and with frequency: 92.45 + 20 log10(distance in km) + 20 log10(frequency in GHz) dB. A 5 km hop at 18 GHz loses 131.5 dB. Two 0.6 m dishes each add about 38.9 dBi of gain, and the budget leaves a clear-sky signal of -35.8 dBm at the receiver, far above the level the radio needs.

The difference is the fade margin, and rain spends it. Rain drops are the size of the wavelength at the higher bands, so they absorb and scatter the beam. ITU-R P.838 gives the specific attenuation, in dB per km, from the rain rate; at 18 GHz and 100 mm/h it is 10.3 dB/km, which over a 5 km hop sounds ruinous. Rain is not uniform, so P.530 shortens the path that counts (the effective path length: 3.3 km here) and gives the attenuation exceeded 0.01% of the time. The result is 34.0 dB. Below about 10 GHz multipath fading dominates and rain matters less; above it, rain dominates. 100 mm/h is an illustrative rate for the tropics. The real figure for a site comes from ITU-R P.837 and local records.

The part that makes planning interesting is adaptive modulation. The radio watches its signal and drops to a simpler modulation when it weakens, giving up capacity to keep the link. So the hop is not up or down. It has a state for each modulation, with its own margin and its own time spent below it. The mwlink.py you write in step 4 computes this. For the illustrative 5 km 18 GHz hop it prints the time that rain takes each rate away: 16 minutes a year at QPSK, 64 at 256QAM and 110 at 1024QAM. A 99.99% availability target allows 52.6 minutes a year, so the top rates miss it and the lowest meets it. An operator that promises one number for the link has to say at which modulation. The capacity the site needs at the busy hour is the only fair test. A busy hour that falls in a rain storm is the case where a link is slowest and wanted most.

A satellite hop

A geostationary satellite sits 35,786 km above the equator. A signal goes up and comes down, and the answer does the same, so the round trip is four times the altitude divided by the speed of light: 477 ms. A satellite in a low orbit at about 550 km (illustrative) gives 7 ms. The geostationary delay is not a fault of the equipment. It is the physics. It also hurts in a specific way: a TCP connection with a 65,535-byte window cannot send faster than window divided by round trip, which is 1.10 Mbit/s over a geostationary hop, however fast the link is. Operators fix it with acceleration equipment and larger windows, and it still limits voice and anything interactive. Satellite backhaul is a last resort that has become a good one for the places nothing else reaches. Satellite and direct-to-device services are covered in module 5’s chapter on satellites; this chapter keeps to the delay and the capacity.

Towers, and who owns the mast

A mast, its land lease, its fence, its shelter and its power supply are passive infrastructure: they carry no signal. A tower company (towerco) owns them and rents space to tenants, the operators, who put their own antennas and radios on it. Each extra tenant on a mast adds rent for the towerco and saves a mast for the operators. Many operators have sold their towers to towercos and rented them back, which frees capital and turns a cost into a contract that has to be read.

One analysis puts IHS Towers at about 18,925 towers in Nigeria in 2023, about 62% of the country’s collocated towers, with ATC Nigeria second at 8,270as of 2026-11. It is an analysis of 2023, from a secondary source, and the market is moving: press reports say MTN Group agreed on 17 February 2026 to buy the IHS Towers shares it did not already own, at an enterprise value of about $6.2 billion, subject to approvals, with Nigeria’s government saying it would review the dealas of 2026-11. I could not confirm whether the deal has closed. Check the companies’ own filings before you quote a count or describe their ownership. The point for a planner is steady. A host operator such as Lumora rents space from a towerco for some sites and owns others, and that choice decides who can add a carrier, who pays for the generator and who has to be called when the fence is cut.

Sharing has levels.

Level What is shared What each operator keeps Where it is defined
Passive Mast, land, shelter, power, sometimes the backhaul Antennas, radios, spectrum, core A commercial contract, with the regulator’s guidelines
MORAN (multi-operator RAN) The radio equipment, with a carrier per operator Spectrum, core, and its own network code A vendor and operator term, not a 3GPP configuration
MOCN (multi-operator core network) The radio network and optionally the spectrum Its own core, reached from the shared cell 3GPP TS 23.251
GWCN (gateway core network) The radio network and some core nodes The rest of its core 3GPP TS 23.251

In a MOCN the cell broadcasts the codes of several networks, each phone picks its own operator’s, and the cell opens N2 to each operator’s AMF. The lab’s cell announces one network (mcc: '999', mnc: '70' in ran/gnb.yaml) and has one AMF entry. Two operators sharing it would list two of each. The saving is real, because the radio network is the biggest cost in the business. So is the difficulty: one operator’s evening traffic uses the other’s capacity, and a fault in the shared radio takes both down.

The NCC’s Guidelines on Co-location and Infrastructure Sharing (a 2021 edition) say, in press summaries I could read, that the NCC encourages and promotes passive sharing, that active sharing is subject to specific conditions and NCC approval, and that sharing agreements are submitted to the NCC for reviewas of 2026-11. I could not open the guidelines’ text or find MORAN and MOCN named in it, so read the operative text on the NCC’s website before you state any condition.

The NCC’s virtual operator framework (section 4.2) describes a Tier 3 Core Facilities Virtual Operator as relying on its host for radio access, and a Tier 5 Unified Virtual Operator as able to enter shared rural coverage agreements in unserved and underserved regionsas of 2026-11. So for Kolanut Mobile, a Tier 1 operator in its launch year on Lumora’s network, the mast, the backhaul and the power are Lumora’s problems and Kolanut’s complaints. Tiers 1 and 2 also rely on the host’s number ranges, so they have no network code to broadcast. At Tier 5 the question of who owns the rural mast could come to Kolanut. That is a decision for the MVNO Business course and module 5’s chapter on what not to build.

Power is the constraint

The site’s radio, its link and its cooling need electricity continuously. In much of Africa the grid cannot promise that. A site on a poor grid is a site on a generator for part of every day, and a generator is a diesel store that has to be filled, guarded and kept running. The GSMA’s work on tower power in Africa describes the cost and the shift to hybrid systems (see Reading). IHS’s annual report for 2023 describes hybrid power systems with batteries at sites without reliable grid access to reduce its use of diesel generators. An allAfrica headline of 13 August 2026 says IHS Towers’ revenue rose 8.2 per cent as power costs hit profit. Both are the towerco’s own concern, and they reach the operator in the rent.

The site.py from step 5 does the arithmetic for an illustrative site. A 2 kW load is 48 kWh a day. With the grid on 10 hours a day, 28 kWh a day must come from elsewhere: 14 generator hours, 294 litres a month at 0.35 L/kWh, which is ₦352,800 at an illustrative ₦1,200 a litre. Solar for the day’s whole energy is 14.2 kWp at 4.5 peak-sun hours and 75% efficiency, and four hours of battery at 80% usable is 10.0 kWh. Half the array, with the generator covering the rest, cuts the diesel to 42 litres a month. These are energy totals. Night, cloud and battery wear are what the battery and the generator are for.

Power links to everything above. A battery sized for four hours gives a link four hours when the grid goes, and microwave hops in a chain each have their own. A site whose generator is stolen, or whose diesel does not arrive, drops the cell, and the operations centre may see a transmission alarm before it sees a power one. The next chapter on operating a network picks up how an operations centre tells these apart.

What goes wrong, and what to ask for

Name the failures before the fixes.

  • Single path. One hop or one fibre carries a site. A cut or a fade takes it down. The fix is a second path on a separate route, a ring, or a microwave link beside the fibre.
  • Chain of hops. A site seven hops from fibre has the availability of all seven, and each hop has its own mast and power. Shorten the chain or put fibre in at the hub.
  • Capacity that nobody revisited. A carrier was switched on, the link was never changed, and the evening speeds did not improve. Compare the link’s busy-hour utilisation with the cells’ load, site by site.
  • The wrong availability number. “99.99%” without a modulation, a time basis or an exclusion for planned works. Ask for the definition, as with every quality figure.
  • Power and transmission owned by different teams. A site that is down shows as a link alarm. Give both an owner and one ticket.
  • Timing. A link that carries data and loses its clock.

A virtual operator does not run any of this, and it pays for all of it in its customers’ evenings. A Tier 1 operator such as Kolanut cannot see a link’s utilisation unless Lumora sends it. What it can ask for is the host agreement’s list: the per-site availability of the sites that carry its traffic, the list of sites on microwave and on a generator, the planned-works notices, the escalation path at 07:10 on a Monday, and the date a congested link will be upgraded.

LAB Measure the N3 overhead, size a backhaul and spend a rain fade ~50 MIN
YOU NEEDDocker with Compose v2 (steps 1 and 2 read recordings with tshark in a helper container)Python 3.9 or later on the host for steps 2 to 5 (standard library only)No live core and no SCTP are needed: every step works from traces/ or from scripts you write, on any machine with Docker

You will measure what GTP-U adds to a packet on N3, write a backhaul sizing script that reuses the lab’s capacity.py, write a microwave link budget with rain, and compute fronthaul, delay and power for a site. Work in labs/telecoms, and keep your own files in a folder outside the lab, here ~/mywork. All the radio, link and power figures are illustrative, so compare runs with each other and check real numbers against a data sheet.

1. See one GTP-U packet on N3 (any machine with Docker).

docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
  tshark -r /t/uplink-usage.pcapng -Y 'gtp.message==255 && frame.number==809' -V \
  | sed -n '/^GPRS Tunneling/,/^Internet Protocol Version 4, Src: 10.45/p'
GPRS Tunneling Protocol
    Flags: 0x34
        001. .... = Version: GTP release 99 version (1)
        ...1 .... = Protocol type: GTP (1)
        .... 0... = Reserved: 0
        .... .1.. = Is Next Extension Header present?: Yes
        .... ..0. = Is Sequence Number present?: No
        .... ...0 = Is N-PDU number present?: No
    Message Type: T-PDU (0xff)
    Length: 68
    TEID: 0x0000b2b0 (45744)
    Next extension header type: PDU Session container (0x85)
    Extension header (PDU Session container)
        Extension Header Length: 1
        PDU Session Container
            0001 .... = PDU Type: UL PDU SESSION INFORMATION (1)
            .... 0000 = Spare: 0x0
            00.. .... = Spare: 0x0
            ..00 0001 = QoS Flow Identifier (QFI): 1
        Next extension header type: No more extension headers (0x00)
Internet Protocol Version 4, Src: 10.45.0.2, Dst: 10.34.0.80

The cell (10.33.0.50) sent this to the UPF (10.33.0.7) on UDP port 2152; the line shows the phone’s own packet, from 10.45.0.2 to the internet server at 10.34.0.80, inside it. GTP-U Length: 68 is the 60-byte inner packet plus 8 bytes of optional field and extension header, the 8 mandatory bytes not counted. The tunnel identifier (TEID) and the QoS flow identifier (QFI 1) are what the UPF uses to find the session and its policy.

2. Measure the overhead over a whole recording. Save this as n3_overhead.py in ~/mywork. It reads two numbers per packet from tshark: the outer and inner IP lengths.

#!/usr/bin/env python3
"""How many bytes does GTP-U add to each user packet on N3?

Reads `tshark -T fields -e ip.src -e ip.len` lines on stdin. Each GTP-U packet
has two ip.len values: the outer IP packet (gNB<->UPF) and the inner packet
(phone<->internet), written "outer,inner".
"""
import sys
from collections import Counter

GNB = "10.33.0.50"
up = Counter(); down = Counter()
sizes = Counter()
for line in sys.stdin:
    src, ln = line.rstrip("\n").split("\t")
    outer_src = src.split(",")[0]
    outer, inner = (int(x) for x in ln.split(","))
    d = up if outer_src == GNB else down
    d["packets"] += 1
    d["inner"] += inner
    d["outer"] += outer
    sizes[(inner, outer - inner)] += 1

def show(name, d):
    if not d["packets"]:
        return
    extra = d["outer"] - d["inner"]
    print(f"{name:9} {d['packets']:4} packets  user bytes {d['inner']:7}  "
          f"on N3 {d['outer']:7}  overhead {extra:6} B = {100*extra/d['inner']:.1f}% of user bytes")

show("uplink", up)
show("downlink", down)
tot = Counter({k: up[k] + down[k] for k in ("packets", "inner", "outer")})
show("both", tot)
print("\ninner size -> added bytes (count)")
for (inner, add), n in sorted(sizes.items()):
    print(f"  {inner:5} B -> +{add} B  ({100*add/(inner+add):.1f}% of the N3 packet)  x{n}")
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
  tshark -r /t/uplink-usage.pcapng -Y 'gtp.message==255' -T fields -e ip.src -e ip.len 2>/dev/null \
  | python3 -I ~/mywork/n3_overhead.py
uplink      69 packets  user bytes   83590  on N3   86626  overhead   3036 B = 3.6% of user bytes
downlink    33 packets  user bytes    5177  on N3    6629  overhead   1452 B = 28.0% of user bytes
both       102 packets  user bytes   88767  on N3   93255  overhead    4488 B = 5.1% of user bytes

inner size -> added bytes (count)
     40 B -> +44 B  (52.4% of the N3 packet)  x1
     52 B -> +44 B  (45.8% of the N3 packet)  x29
     60 B -> +44 B  (42.3% of the N3 packet)  x4
    116 B -> +44 B  (27.5% of the N3 packet)  x1
    126 B -> +44 B  (25.9% of the N3 packet)  x1
    200 B -> +44 B  (18.0% of the N3 packet)  x1
    261 B -> +44 B  (14.4% of the N3 packet)  x1
    308 B -> +44 B  (12.5% of the N3 packet)  x1
   1028 B -> +44 B  (4.1% of the N3 packet)  x6
   1400 B -> +44 B  (3.0% of the N3 packet)  x57

Every packet gains exactly 44 bytes, and only its size changes the share. The upload (the 1,400-byte packets, mostly uplink) pays 3.6%. The downlink pays 28.0% because in this recording it is mostly the 52-byte acknowledgements of that upload. The page the phone fetched is small. The recording is a short lab test, not a busy hour, so use the shape and not the totals.

3. Write the backhaul sizing and run three sites. Save this as backhaul.py in ~/mywork. It imports capacity.py from the lab’s radio/ folder, so run it with your terminal in labs/telecoms.

#!/usr/bin/env python3
"""Backhaul for one site: the larger of one cell's peak and the sum of the cells' busy-hour means.

Standard library only. Run from labs/telecoms so radio/capacity.py is found.
Demand figures are illustrative.

  python3 backhaul.py
  python3 backhaul.py --sectors 3 --bw 100 --scs 30 --layers 4 --mod 256qam --mean 150
"""
import argparse
import sys

sys.path.insert(0, "radio")
import capacity  # the lab's own peak-rate function, TS 38.306

GTP_BYTES = 44      # outer IPv4 20 + UDP 8 + GTP-U 8 + 8 optional and extension, measured in step 2
ETH_BYTES = 38      # Ethernet header 14 + FCS 4 + preamble 8 + gap 12, per frame on the wire

ap = argparse.ArgumentParser()
ap.add_argument("--sectors", type=int, default=3)
ap.add_argument("--bw", type=int, default=20, help="carrier MHz")
ap.add_argument("--scs", type=int, default=15, choices=[15, 30])
ap.add_argument("--layers", type=int, default=2)
ap.add_argument("--mod", default="64qam", choices=sorted(capacity.MOD))
ap.add_argument("--carriers", type=int, default=1, help="carriers per sector")
ap.add_argument("--mean", type=float, default=20.0, help="busy-hour mean per sector, Mbit/s (illustrative)")
ap.add_argument("--pkt", type=float, default=700.0, help="average user packet, bytes (illustrative)")
ap.add_argument("--headroom", type=float, default=0.30, help="spare share of the link kept free")
a = ap.parse_args()

peak_one, _ = capacity.peak_mbps(a.bw, a.scs, a.layers, capacity.MOD[a.mod], "dl")
peak_cell = peak_one * a.carriers
sum_mean = a.mean * a.sectors
user = max(peak_cell, sum_mean)
framing = 1 + (GTP_BYTES + ETH_BYTES) / a.pkt
wire = user * framing
need = wire / (1 - a.headroom)
print(f"one cell:  {a.carriers} x {a.bw} MHz, {a.layers} layers {a.mod.upper()}: peak {peak_cell:,.0f} Mbit/s")
print(f"busy hour: {a.sectors} sectors x {a.mean:g} Mbit/s mean = {sum_mean:,.0f} Mbit/s")
print(f"user traffic to carry: max(peak, sum of means) = {user:,.0f} Mbit/s"
      f"  ({'peak' if peak_cell >= sum_mean else 'busy-hour mean'} decides)")
print(f"+ framing: ({GTP_BYTES} GTP-U/UDP/IP + {ETH_BYTES} Ethernet) per {a.pkt:g} B packet = x{framing:.3f} -> {wire:,.0f} Mbit/s")
print(f"+ {a.headroom:.0%} headroom -> the backhaul link must be about {need:,.0f} Mbit/s")
python3 -I ~/mywork/backhaul.py
python3 -I ~/mywork/backhaul.py --carriers 2 --mean 60
python3 -I ~/mywork/backhaul.py --bw 100 --scs 30 --layers 4 --mod 256qam --mean 300
one cell:  1 x 20 MHz, 2 layers 64QAM: peak 170 Mbit/s
busy hour: 3 sectors x 20 Mbit/s mean = 60 Mbit/s
user traffic to carry: max(peak, sum of means) = 170 Mbit/s  (peak decides)
+ framing: (44 GTP-U/UDP/IP + 38 Ethernet) per 700 B packet = x1.117 -> 190 Mbit/s
+ 30% headroom -> the backhaul link must be about 272 Mbit/s

one cell:  2 x 20 MHz, 2 layers 64QAM: peak 340 Mbit/s
busy hour: 3 sectors x 60 Mbit/s mean = 180 Mbit/s
user traffic to carry: max(peak, sum of means) = 340 Mbit/s  (peak decides)
+ framing: (44 GTP-U/UDP/IP + 38 Ethernet) per 700 B packet = x1.117 -> 380 Mbit/s
+ 30% headroom -> the backhaul link must be about 543 Mbit/s

one cell:  1 x 100 MHz, 4 layers 256QAM: peak 2,337 Mbit/s
busy hour: 3 sectors x 300 Mbit/s mean = 900 Mbit/s
user traffic to carry: max(peak, sum of means) = 2,337 Mbit/s  (peak decides)
+ framing: (44 GTP-U/UDP/IP + 38 Ethernet) per 700 B packet = x1.117 -> 2,611 Mbit/s
+ 30% headroom -> the backhaul link must be about 3,730 Mbit/s

The second carrier doubles the requirement, from about 272 to about 543 Mbit/s. The peak decides in all three, which is the rural pattern. Find the busy-hour mean at which the first site flips from peak to mean (try --mean 60: three sectors then give 180 Mbit/s and the mean decides). Write down what a link sized to the peak costs against one sized to the mean, and what the evening looks like for a phone on the second.

4. Write the microwave link budget and spend the rain. Save this as mwlink.py in ~/mywork. It needs nothing from the lab.

#!/usr/bin/env python3
"""A microwave hop: link budget, then how often rain takes each modulation away.

Standard library only. Every radio figure is illustrative: take real ones from
the radio's datasheet. Rain follows the shape of ITU-R P.838 (specific
attenuation) and P.530 (path length and time percentage), horizontal polarity.

  python3 mwlink.py --freq 18 --dist 5 --rain 100
"""
import argparse
import math

# (GHz): (k_H, alpha_H), from the fitted formula in ITU-R P.838-3
RAIN = {7: (0.00191, 1.481), 10: (0.01217, 1.2571), 15: (0.04481, 1.1233),
        18: (0.07078, 1.0818), 20: (0.09164, 1.0568), 23: (0.12864, 1.0214),
        38: (0.40011, 0.8816)}
# name: (bits per symbol, signal-to-noise ratio needed in dB), illustrative
MODS = {"QPSK": (2, 8), "16QAM": (4, 14), "64QAM": (6, 20),
        "256QAM": (8, 26), "1024QAM": (10, 32)}
MIN_PER_YEAR = 365.25 * 24 * 60


def fspl_db(d_km, f_ghz):
    return 92.45 + 20 * math.log10(d_km) + 20 * math.log10(f_ghz)


def dish_gain_dbi(diameter_m, f_ghz, eff):
    lam = 0.2998 / f_ghz                      # wavelength in metres
    return 10 * math.log10(eff * (math.pi * diameter_m / lam) ** 2)


def rain_a001(d, f, r001):
    """Path attenuation exceeded 0.01% of the time, dB."""
    k, a = RAIN[f]
    gamma = k * r001 ** a                                            # dB/km
    r = 1 / (0.477 * d ** 0.633 * r001 ** (0.073 * a) * f ** 0.123
             - 10.579 * (1 - math.exp(-0.024 * d)))
    return gamma, min(r, 2.5) * d, gamma * min(r, 2.5) * d


def rain_ap(a001, f, p):
    """Attenuation exceeded p % of the time (0.001 to 1)."""
    c0 = 0.12 + 0.4 * math.log10(f / 10) ** 0.8 if f >= 10 else 0.12
    c1 = 0.07 ** c0 * 0.12 ** (1 - c0)
    c2 = 0.855 * c0 + 0.546 * (1 - c0)
    c3 = 0.139 * c0 + 0.043 * (1 - c0)
    return a001 * c1 * p ** -(c2 + c3 * math.log10(p))


def percent_exceeding(a001, f, margin):
    """The p at which rain attenuation equals the margin, by bisection."""
    if margin <= rain_ap(a001, f, 1.0):
        return 1.0, ">"
    if margin >= rain_ap(a001, f, 0.001):
        return 0.001, "<"
    lo, hi = 0.001, 1.0                      # attenuation falls as p rises
    for _ in range(60):
        mid = math.sqrt(lo * hi)
        if rain_ap(a001, f, mid) > margin:
            lo = mid
        else:
            hi = mid
    return hi, "="


def main():
    ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
    ap.add_argument("--freq", type=int, default=18, choices=sorted(RAIN), help="GHz")
    ap.add_argument("--dist", type=float, default=5.0, help="hop length, km")
    ap.add_argument("--rain", type=float, default=100.0, help="rain rate exceeded 0.01%% of the time, mm/h (P.530 caps it at 100)")
    ap.add_argument("--tx", type=float, default=20.0, help="transmit power, dBm")
    ap.add_argument("--dish", type=float, default=0.6, help="dish diameter, m (both ends)")
    ap.add_argument("--eff", type=float, default=0.6, help="dish efficiency")
    ap.add_argument("--loss", type=float, default=2.0, help="feeder and branching loss, dB (both ends together)")
    ap.add_argument("--bw", type=float, default=28.0, help="channel bandwidth, MHz")
    ap.add_argument("--nf", type=float, default=6.0, help="receiver noise figure, dB")
    a = ap.parse_args()
    r001 = min(a.rain, 100.0)

    g = dish_gain_dbi(a.dish, a.freq, a.eff)
    fs = fspl_db(a.dist, a.freq)
    rx = a.tx + 2 * g - fs - a.loss
    gamma, deff, a001 = rain_a001(a.dist, a.freq, r001)
    print(f"{a.freq} GHz, {a.dist:g} km, {a.dish:g} m dishes, {a.bw:g} MHz channel")
    print(f"dish gain {g:.1f} dBi each; free-space loss {fs:.1f} dB")
    print(f"clear-sky receive level {rx:.1f} dBm = {a.tx:g} + 2 x {g:.1f} - {fs:.1f} - {a.loss:g}")
    print(f"rain at {r001:g} mm/h: {gamma:.2f} dB/km over an effective {deff:.2f} km "
          f"(of {a.dist:g} km) = {a001:.1f} dB exceeded 0.01% of the time\n")
    noise = -174 + 10 * math.log10(a.bw * 1e6) + a.nf
    print(f"noise floor {noise:.1f} dBm\n")
    print(f"{'modulation':>10} {'Mbit/s':>7} {'needs dBm':>10} {'margin dB':>10} "
          f"{'time below':>11} {'min/year':>9}")
    for name, (bits, snr) in MODS.items():
        net = a.bw * 0.8 * bits
        need = noise + snr
        margin = rx - need
        if margin <= 0:
            print(f"{name:>10} {net:7.0f} {need:10.1f} {margin:10.1f}   never reaches this rate")
            continue
        p, rel = percent_exceeding(a001, a.freq, margin)
        sign = "" if rel == "=" else rel
        print(f"{name:>10} {net:7.0f} {need:10.1f} {margin:10.1f} "
              f"{sign + format(p, '.4f') + '%':>11} {sign + format(p / 100 * MIN_PER_YEAR, '.0f'):>9}")


if __name__ == "__main__":
    main()
python3 -I ~/mywork/mwlink.py
python3 -I ~/mywork/mwlink.py --freq 23 --dist 8
18 GHz, 5 km, 0.6 m dishes, 28 MHz channel
dish gain 38.9 dBi each; free-space loss 131.5 dB
clear-sky receive level -35.8 dBm = 20 + 2 x 38.9 - 131.5 - 2
rain at 100 mm/h: 10.32 dB/km over an effective 3.30 km (of 5 km) = 34.0 dB exceeded 0.01% of the time

noise floor -93.5 dBm

modulation  Mbit/s  needs dBm  margin dB  time below  min/year
      QPSK      45      -85.5       49.7     0.0030%        16
     16QAM      90      -79.5       43.7     0.0047%        25
     64QAM     134      -73.5       37.7     0.0074%        39
    256QAM     179      -67.5       31.7     0.0121%        64
   1024QAM     224      -61.5       25.7     0.0209%       110

The second run (23 GHz, 8 km) prints a clear-sky level of -37.8 dBm, 61.7 dB of rain attenuation exceeded 0.01% of the time, and 104, 145, 209, 314 and 504 minutes a year for the five modulations. The 5 km hop meets a 99.99% availability target (52.6 minutes a year) at QPSK, 16QAM and 64QAM, and misses it at 256QAM and 1024QAM. The longer, higher hop misses it at every rate. The 1024QAM rate of 224 Mbit/s is less than the 272 Mbit/s that step 3’s one-carrier site wants, so a 28 MHz channel cannot carry even that site at the peak-based figure. The model counts rain only and is horizontal-polarity only. It leaves out multipath and equipment failure, which dominate at low bands.

5. Add fronthaul, delay and power. Save this as site.py in ~/mywork.

#!/usr/bin/env python3
"""What sits between the radio and the core: fronthaul rate, delay (fibre, microwave, satellite) and site power.

Standard library only. Light speed and altitudes are physics and orbit facts;
every other number is illustrative, marked (i).

  python3 site.py
  python3 site.py --load 3 --grid 6 --diesel-price 1500
"""
import argparse

C = 299_792.458          # km/s, light in vacuum
FIBRE = C / 1.468        # km/s, light in glass of refractive index about 1.468 (i)


def fronthaul():
    """CPRI-style rate: sample rate x 2 (I and Q) x 15 bits x 16/15 control x 10/8 line code, per antenna."""
    print("Fronthaul if every antenna's samples crossed the link (CPRI style)")
    print(f"{'carrier':<30} {'antennas':>8} {'Msample/s':>10} {'Gbit/s':>8}")
    for name, msps, ants in (("LTE 20 MHz", 30.72, 2), ("NR 100 MHz, 30 kHz spacing", 122.88, 4),
                             ("NR 100 MHz, massive MIMO", 122.88, 64)):
        per_antenna = msps * 2 * 15 * (16 / 15) * (10 / 8)            # Mbit/s
        print(f"{name:<30} {ants:8d} {msps:10.2f} {per_antenna * ants / 1000:8.2f}")
    print("One antenna of LTE 20 MHz: 1.2288 Gbit/s, the CPRI line rate of option 2.\n")


def delay_table():
    print("Round trip, site to hub and back, propagation only (no queues, no processing)")
    print(f"{'path':<38} {'path km':>9} {'RTT ms':>8}")
    rows = [
        ("fibre, 100 km straight, route x1.3 (i)", 100 * 1.3, FIBRE),
        ("fibre, 600 km straight, route x1.3 (i)", 600 * 1.3, FIBRE),
        ("microwave, 5 km hop", 5, C),
        ("LEO satellite, 550 km up", 2 * 550, C),
        ("GEO satellite, 35,786 km up", 2 * 35_786, C),
    ]
    for name, km, v in rows:
        print(f"{name:<38} {km:9,.0f} {2 * km / v * 1000:8.2f}")
    rtt = 4 * 35_786 / C
    win = 65_535 * 8 / rtt / 1e6
    print(f"\nA TCP connection with a 65,535-byte window over GEO (RTT {rtt * 1000:.0f} ms) "
          f"cannot exceed {win:.2f} Mbit/s,\nwhatever the link rate: window / RTT.")


def power(a):
    day = a.load * 24                              # kWh per day
    off = a.load * (24 - a.grid)                   # kWh per day with no grid
    litres = off * a.sfc * 30
    print(f"\nSite load {a.load:g} kW (i) = {day:.0f} kWh a day; grid on {a.grid:g} h a day (i)")
    print(f"Without grid the site needs {off:.1f} kWh a day from elsewhere")
    print(f"Diesel only: {off / a.load:.0f} generator hours a day, "
          f"{litres:,.0f} litres a month at {a.sfc:g} L/kWh (i), "
          f"cost ₦{litres * a.diesel_price:,.0f} at ₦{a.diesel_price:,.0f}/litre (i)")
    pv = day / (a.psh * a.perf)
    print(f"Solar for the day's whole energy: {pv:.1f} kWp of panels at {a.psh:g} peak-sun hours "
          f"and {a.perf:.0%} system efficiency (i)")
    batt = a.load * a.autonomy / a.dod
    print(f"Battery for {a.autonomy:g} h of autonomy at {a.dod:.0%} depth of discharge (i): {batt:.1f} kWh")
    pv2 = pv / 2
    saved = min(off, pv2 * a.psh * a.perf)
    print("(Energy totals only: they ignore night, storage losses and cloudy days, which is what the battery and the generator are for.)")
    print(f"Half that array ({pv2:.1f} kWp) makes {pv2 * a.psh * a.perf:.1f} kWh a day; the generator "
          f"covers the other {max(off - saved, 0):.1f} kWh: {max(off - saved, 0) * a.sfc * 30:,.0f} litres a month")


ap = argparse.ArgumentParser()
ap.add_argument("--load", type=float, default=2.0, help="site load, kW (i)")
ap.add_argument("--grid", type=float, default=10.0, help="hours of grid per day (i)")
ap.add_argument("--sfc", type=float, default=0.35, help="generator diesel use, L per kWh (i)")
ap.add_argument("--diesel-price", type=float, default=1200.0, help="naira per litre (i)")
ap.add_argument("--psh", type=float, default=4.5, help="peak-sun hours a day (i)")
ap.add_argument("--perf", type=float, default=0.75, help="panel-to-load efficiency (i)")
ap.add_argument("--autonomy", type=float, default=4.0, help="battery hours (i)")
ap.add_argument("--dod", type=float, default=0.8, help="usable share of the battery (i)")
a = ap.parse_args()
fronthaul()
delay_table()
power(a)
python3 -I ~/mywork/site.py
Fronthaul if every antenna's samples crossed the link (CPRI style)
carrier                        antennas  Msample/s   Gbit/s
LTE 20 MHz                            2      30.72     2.46
NR 100 MHz, 30 kHz spacing            4     122.88    19.66
NR 100 MHz, massive MIMO             64     122.88   314.57
One antenna of LTE 20 MHz: 1.2288 Gbit/s, the CPRI line rate of option 2.

Round trip, site to hub and back, propagation only (no queues, no processing)
path                                     path km   RTT ms
fibre, 100 km straight, route x1.3 (i)       130     1.27
fibre, 600 km straight, route x1.3 (i)       780     7.64
microwave, 5 km hop                            5     0.03
LEO satellite, 550 km up                   1,100     7.34
GEO satellite, 35,786 km up               71,572   477.48

A TCP connection with a 65,535-byte window over GEO (RTT 477 ms) cannot exceed 1.10 Mbit/s,
whatever the link rate: window / RTT.

Site load 2 kW (i) = 48 kWh a day; grid on 10 h a day (i)
Without grid the site needs 28.0 kWh a day from elsewhere
Diesel only: 14 generator hours a day, 294 litres a month at 0.35 L/kWh (i), cost ₦352,800 at ₦1,200/litre (i)
Solar for the day's whole energy: 14.2 kWp of panels at 4.5 peak-sun hours and 75% efficiency (i)
Battery for 4 h of autonomy at 80% depth of discharge (i): 10.0 kWh
(Energy totals only: they ignore night, storage losses and cloudy days, which is what the battery and the generator are for.)
Half that array (7.1 kWp) makes 24.0 kWh a day; the generator covers the other 4.0 kWh: 42 litres a month

The fronthaul rate follows the antennas, which is why massive MIMO cannot use it. The delay table separates the media by physics: the geostationary round trip is 477 ms whatever the equipment. The power block shows how much a grid that is on 10 hours in 24 still costs in diesel.

Break the budget. Switch on Lumora’s second carrier and see what the 5 km hop at 18 GHz can do. Re-run step 4 with --bw 56 (a wider channel: every rate doubles, the noise floor rises 3 dB, and 1024QAM gives 448 Mbit/s for 150 minutes a year below it) and compare it with step 3’s 543 Mbit/s. Then change --rain to 60 (a drier site, illustrative) and watch the minutes a year fall. Finally, run python3 -I ~/mywork/mwlink.py --freq 38 --dist 5: the same hop loses 107 to 381 minutes a year at the five rates, which is why short, high-band hops are used in cities and not for a 5 km market-town link. Answer: which of the three, a wider channel, fibre, or a second site-to-hub hop on a separate route, would you buy first for the market-town site, and what would the evening look like if you bought none? Then open ran/gnb.yaml and say what you would have to add to let two operators share this cell, and which of the three failures in the chapter’s list (a cut, a fade, a power loss) the other operator would then share with you.

DECIDE

Eseosa at Lumora Mobile has the radio team's request: switch on the second 20 MHz carrier at the market-town site. The site has a single 5 km, 18 GHz microwave hop on a 28 MHz channel (an illustrative top rate of 224 Mbit/s) to a hub on fibre, a poor grid and a generator, and about 40 busy phones in the evening. The sizing script says the site needs about 543 Mbit/s with two carriers by the peak-based rule, and the busy-hour mean says 180 Mbit/s before framing and headroom. A fibre route to the town would take months. What does Eseosa recommend?

READING
  1. DOC
    NGMN: Guidelines for LTE Backhaul Traffic Estimation NGMN Alliance, 2011

    The source of the larger-of-peak-and-sum-of-means rule the lab's backhaul.py uses, with its traffic model and overhead assumptions. Read the dimensioning section and check how it defines peak; it is written for LTE, so scale the numbers, not the method. Read: the dimensioning guideline for a cell site.

  2. DOC
    Recommendation ITU-R P.530: Propagation data and prediction methods for terrestrial line-of-sight systems ITU-R

    The rain method behind mwlink.py: the effective path length and the scaling from 0.01% to other percentages of time, plus multipath, which this chapter left out. The page lists the current edition and earlier ones; read the rain section first. Read: the rain attenuation section and the multipath fading section.

  3. DOC
    Recommendation ITU-R P.838-3: Specific attenuation model for rain for use in prediction methods ITU-R, 2005

    The k and alpha coefficients by frequency and polarisation. Compare its tables with the seven rows in mwlink.py and add a frequency of your own. Read: equation (1) and the coefficient tables.

  4. DOC
    CPRI Specification V7.0 CPRI cooperation, 2015

    Where the line rates (1,228.8 Mbit/s and its multiples) come from, and why a radio sample stream is so much larger than the data it carries. Read the line bit rate section; skip the frame detail on a first pass. Read: the line bit rate section.

  5. DOC
    3GPP TS 29.281: GPRS Tunnelling Protocol User Plane (GTP-U) 3GPP

    The header you measured in step 1: the mandatory fields, the optional ones that make it 16 bytes, and the extension header chain. Read the header format and skip the path-management messages first time. Read: the GTP-U header clause.

  6. DOC
    3GPP TS 23.251: Network sharing; Architecture and functional description 3GPP

    The two sharing configurations, MOCN and GWCN, and how a phone chooses its operator in a shared cell. Read the architecture overview before the network selection details. Read: the architecture and the core network operator identity clauses.

  7. DOC
    Ericsson Microwave Outlook 2025 Ericsson, 2025

    A vendor's view of how much backhaul is microwave, the move toward higher capacity and E-band, and the spectrum it needs. Read the backhaul media discussion and treat the forecasts as a vendor's. Read: the backhaul media and capacity sections.

  8. DOC
    GSMA: Tower Power Africa: Energy Challenges and Opportunities GSMA

    The operators' association on off-grid and bad-grid towers, diesel dependence and the hybrid alternatives. It is a 2010s analysis, so use it for the structure of the problem and check any figure against a recent source. Read: the summary and the energy cost sections.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Virtualised and cloud-native cores →