Interconnect: how networks carry each other's calls and texts
No network reaches every phone alone. Interconnect is the set of links, signalling and money that lets a call from one network end on another, and it fails in ways a customer sees as 'the network is down'
A Lumora Mobile subscriber calls a number on a rival network in a market with a regulated termination rate and calling-party-pays retail pricing. For that minute, who pays whom at the wholesale level?
A mobile network is useful because it reaches people who are not its customers. A subscriber of Lumora Mobile expects to call a fixed-line number in Abuja, a subscriber of another operator in Kano, and a relative abroad. No operator owns all those lines. Interconnect is the physical links, the signalling and the commercial agreement that let a call, a text or a data exchange cross from one network to another. It is the oldest part of telephony’s design and still the part where one network’s decision hurts another’s customers.
Points of interconnect, direct links and transit
Two networks meet at a point of interconnect (POI): a site where one network’s border equipment connects to the other’s. In a voice network that is typically a pair of border switches or session border controllers in a data centre. Traffic crosses in both directions and each side carries it from there.
You can join two networks in three ways.
| Way | What it is | Good for | Costs and risks |
|---|---|---|---|
| Direct link | A dedicated circuit or IP connection between the two networks’ POIs. | Large volumes between two big networks. | A circuit and a port on each side per link; two links are needed for resilience. |
| Transit | A third carrier with links to both takes the traffic and delivers it. The carrier charges a transit fee per minute. | Small volumes, many destinations, backup for a direct link. | A hop, a fee, and a fault in the carrier that neither of you controls. |
| Exchange or hub | Several networks connect to one shared point and exchange traffic there. | Many networks with moderate volumes each. | The hub is a single place that must not fail. |
The number of direct links between n networks is n(n−1)/2. For ten networks that is 45 links, each to be provisioned, tested and monitored. That is why most operators run direct links to the few networks they trade most with and use transit for the rest. It is also why the failure at the top of the chapter happened: Lumora had a direct link to the rival network and no fallback route in its table.
What crosses the link: voice and text
The call itself is two things that must agree: signalling that sets it up and media that carries the voice. Between networks the signalling has had three forms, and a Nigerian operator can be running all of them at once.
- ISUP over SS7 (or SIGTRAN). The circuit-switched form you met in signalling. The originating switch sends an initial address message (IAM) with the called number to the next switch. The terminating side answers with address complete (ACM) when the phone rings and answer (ANM) when it is picked up. Either side clears the call with release (REL) and the other confirms with release complete (RLC). The voice runs on a separate 64 kbit/s circuit.
- SIP-I. The same ISUP messages carried inside SIP, so that the network can use an IP link while the exchanges at each end still speak ISUP. 3GPP TS 29.163 describes interworking between the IMS and circuit-switched networks.
- SIP over the IMS network-to-network interface. A VoLTE or VoNR call stays SIP from end to end. At the border an IBCF (interconnection border control function) hides the inside of one network from the other, and a TrGW (transition gateway) handles the media. 3GPP TS 29.165 specifies this interface between IMS networks, which it calls the II-NNI. The two networks’ voice codecs and addressing must be agreed, and a gateway converts where one side is still circuit-switched.
A call to a number needs one more step: knowing which network owns it. The first digits of an E.164 number identify the country and then the operator’s range, which is how a border switch picks the link. Ported numbers break that rule and are the subject of the number portability chapter.
A text is different. It is store and forward: the sender’s SMSC (short message service centre) asks for routing information, then delivers the message to the recipient’s serving switch, as the voice and SMS chapter showed. Between operators the SMS rides the same links, so one dead link silences texts and calls to that network together.
Data and the Diameter side
Calls and texts cross at a handful of POIs in a country. Data between operators is different: a user’s packets go to the internet, not to another operator. What operators exchange for data is subscriber signalling: authentication requests when a subscriber of one network is served by another (roaming, in the next chapter), and charging records. In 4G that is Diameter, and for several operators it travels over an IPX, an IP exchange: a private, managed IP network, run by specialist carriers, that links operators and carries only inter-operator traffic. GSMA document IR.34 sets out the guidelines for IPX provider networks.
Diameter routes by realm, as you read in signalling. The realm in 3GPP networks has a standard shape: epc.mnc<MNC>.mcc<MCC>.3gppnetwork.org, for example epc.mnc070.mcc999.3gppnetwork.org for the lab’s network code 999/70 (TS 23.003 defines it, with the MNC padded to three digits). A visited network that wants an authentication vector for a subscriber builds the realm from the IMSI and sends the request to its Diameter edge agent, which looks the realm up and forwards it across the IPX. The subscriber’s home network has to be reachable under that name. If it is not, the request has nowhere to go, as the lab shows you in step 4.
Who pays whom: termination rates
When a Lumora customer calls a customer of network A, three parties do work: Lumora originates the call, there may be a transit carrier, and network A terminates it by finding the phone and ringing it. A’s work has a cost. The usual arrangement in a market where the caller pays is that the originating network pays the terminating network a termination rate per minute, set in an interconnect agreement or by the regulator. The formula for a month between networks X and Y is:
X owes Y = minutes from X ending on Y x Y's termination rate
Y owes X = minutes from Y ending on X x X's termination rate
net payment = the difference, from the larger to the smaller
A transit carrier adds a transit fee for the minutes it carries. An alternative to rates is bill and keep: each network keeps what its own customers pay and settles at zero with its peers. It works when traffic is balanced and costs are similar, and it is a policy a regulator can choose.
The rate is the lever, and a terminating network has an incentive to set it high: it has a monopoly on reaching its own subscribers. That is the reason regulators set a determined termination rate instead of leaving it to negotiation. In Nigeria the NCC regulates it.
The NCC’s mobile termination rates, set in 2018 and unchanged since, are ₦3.90 per minute for generic operators and ₦4.70 per minute for new-entrant LTE operatorsas of 2026-11. The NCC opened its first review of these rates in 2026, and trade press reported a stakeholder forum on 16 June 2026; the outcome was not found when this chapter was checkedas of 2026-11. Treat the figures as a snapshot: the first thing to do with a rate in a contract is to check which determination it quotes.
International calls ending in Nigeria are priced separately. The NCC first set a US$0.045 per minute floor for international termination from 1 January 2022, then amended its determination to a fixed US$0.10 per minute from 1 September 2022as of 2026-11. The 2026 review reported above also covers international rates. The gap between an international and a local termination rate is one reason for SIM boxes, below.
Settlement and disputes
At the end of each month each side counts the minutes from its own records and the other side’s. Three things go wrong. The two counts differ (rounding rules, calls that were setup attempts but never answered, time zones). A network disputes a rate or a category of traffic. Or the bill is not paid. An interconnect dispute is usually over money, and a debt can end in the ultimate sanction: one network disconnects another, and the customers of both lose calls between them.
Regulators therefore build a procedure. The NCC’s Telecommunications Networks Interconnection Regulations 2007 are reported to let the Commission intervene to resolve disagreements at every stage of an interconnection relationship, while leaving the parties to agree terms themselves first. The NCC published draft 2024 revisions of its interconnection regulations, disconnection guidelines and dispute-resolution guidelines for comment; check which text is in force before relying on a clauseas of 2026-11. The NCC lists Guidelines on Disconnection of Communications Operators 2025 as a published guideline; this chapter could not read its text, and the 2024 draft it follows made disconnection depend on written approval from the Commission and on the parties having used the dispute-resolution routes in their agreementas of 2026-11. Read the text in force before relying on either point. The shape you should expect: negotiate, escalate under the agreement, ask the regulator, and disconnect only at the end, with approval and notice.
The engineering lesson from disputes is to keep your own records. A settlement is only as good as the call detail records from your border equipment, and you need them to match to the second. That is how you argue a count with a network that disagrees.
Grey routes and SIM boxes, in outline
An international call into Nigeria pays a higher termination price than a local one, as you saw above. A grey route or SIM box exploits the gap. A carrier delivers the international call not to the terminating network’s international gateway but to a device with local SIMs, which re-originates the call as a local one. The terminating network sees a local call, collects the lower local rate, and loses the difference. The customer’s call often works but with poor quality, and the SIMs used are a source of fraud. Detection is by traffic patterns and test calls. The Revenue Assurance and Fraud Systems course owns this in depth; you need to know that it exists and that it distorts the interconnect numbers you settle on.
Where a virtual operator sits
Kolanut Mobile in its launch year has no interconnect at all. It is a Tier 1 Services Virtual Operator: its subscribers’ calls start and end in Lumora’s network, and Lumora’s border switches carry them to other networks. Abiola’s team sees them as Lumora traffic. What Kolanut sees is a wholesale rate in its host agreement that covers off-net minutes, and that rate hides a termination cost, a transit cost and a margin. When Bala asks why an off-net minute costs Kolanut more than an on-net one, the answer is the arithmetic of the settlement model you write in the lab.
Under the NCC’s virtual operator framework (section 4.2), a Tier 1 Services Virtual Operator and a Tier 2 Simple Facilities Virtual Operator have no core switching or interconnect; a Tier 3 Core Facilities Virtual Operator may own core network elements for switching and interconnection and enter its own interconnect agreementsas of 2026-11. A Tier 3 operator therefore takes on everything in this chapter: its own POIs, its own routing tables and Diameter realm entries, its own settlements and its own disputes. The tier courses build on this chapter.
You will read the realm a 4G node sends in a recording, send the same request with a realm the HSS does not serve, then write a settlement model for Lumora Mobile and three unnamed networks. Work in labs/telecoms. Steps 1 to 4 use the 4G HSS and the Diameter script from signalling. The lab has one network, so there is no second operator to connect to: the settlement model stands in for the others.
1. Start the HSS and give it a subscriber (needs Docker only).
docker compose --profile epc up -d mongo hss
sleep 12
scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001provisioned: 999700000000001, or already provisioned: 999700000000001, which is fine. The HSS needs about 12 seconds before it accepts connections.
2. Read the realms in a recording (any machine). The HSS’s own realm is set in core/freeDiameter/hss.conf as Realm = "atlas.lab";. See which realm the stand-in MME asks for.
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
tshark -r /t/s6a.pcapng -Y 'diameter.cmd.code==318 || diameter.cmd.code==316' \
-T fields -e frame.number -e frame.time_relative -e diameter.flags.request \
-e diameter.Origin-Host -e diameter.Destination-Realm -e diameter.Origin-RealmSix lines, tab-separated. The requests (flag True) are frames 101, 171 and 254, from mme.atlas.lab, each with Destination-Realm atlas.lab. The answers (flag False) are frames 114, 179 and 258, from hss.atlas.lab, with no Destination-Realm, because an answer returns by the path the request took. Both sides use the realm atlas.lab as Origin-Realm. In a live network the MME would send epc.mnc070.mcc999.3gppnetwork.org here. The lab uses a short realm so the output is readable, and the mechanism is the same.
3. Send a request the HSS can route.
scripts/s6a.sh air 999700000000001The request prints Destination-Realm: atlas.lab and the answer Result-Code: 2001 (DIAMETER_SUCCESS) with an E-UTRAN-Vector (RAND, XRES, AUTN and KASME differ on every run). The realm in the request matches the realm the HSS serves, so it handles the request itself.
4. Send the same request with a realm the HSS does not serve. The script takes the realm to ask for as an option.
scripts/s6a.sh air 999700000000001 --realm epc.mnc070.mcc999.3gppnetwork.org | sed -n '/Authentication-Information-Request/,/Error-Message/p'
docker compose logs --no-log-prefix hss | sed 's/\x1b\[[0-9;]*m//g' | grep "Routing error"The capabilities exchange still succeeds, so the link and the peer are fine. The request carries Destination-Realm: epc.mnc070.mcc999.3gppnetwork.org and the answer, from Origin-Host: hss.atlas.lab, has no vector. It reads:
Origin-Host: hss.atlas.lab
Origin-Realm: atlas.lab
Result-Code: 3002 (DIAMETER_UNABLE_TO_DELIVER)
Error-Message: No suitable candidate to route the message toThe HSS log has a line starting Routing error: 'No remaining suitable candidate to route the message to' followed by the dropped message. A routing agent that does not serve a realm answers 3003 DIAMETER_REALM_NOT_SERVED, as in the signalling chapter’s opening story; this freeDiameter node answers 3002. Either way the request is not handled, no subscriber record is read, and the only evidence is the code and the name in Origin-Host. The wrong realm is the Diameter version of the missing route at the top of this chapter. Timestamps in the log differ on every run, and the log keeps earlier errors, so look at the newest line.
5. Write the settlement model. Save this as settle.py anywhere on your machine. It uses only the standard library. Every traffic figure and the Kolanut share are illustrative.
"""Interconnect settlement between three unnamed networks and Lumora Mobile.
Every traffic figure and the Kolanut share are illustrative. Money is integer kobo.
"""
from itertools import combinations
NETWORKS = ["Lumora", "A", "B", "C"]
# Minutes in one month that started on the row network and ended on the column
# network. Kolanut Mobile's launch-year calls start and end on Lumora's network,
# so Lumora is the interconnecting party and Kolanut's minutes sit inside its row.
MINUTES = {
("Lumora", "A"): 9_000_000, ("Lumora", "B"): 4_000_000, ("Lumora", "C"): 1_000_000,
("A", "Lumora"): 7_500_000, ("A", "B"): 2_000_000, ("A", "C"): 500_000,
("B", "Lumora"): 4_500_000, ("B", "A"): 2_500_000, ("B", "C"): 300_000,
("C", "Lumora"): 1_400_000, ("C", "A"): 600_000, ("C", "B"): 200_000,
}
KOLANUT_SHARE = 0.05 # share of Lumora's originated minutes that are Kolanut's (illustrative)
def rates(generic=390, entrant=470):
"""Termination rate each network charges, in kobo per minute (390 = N3.90).
The figures are illustrative; C is a new entrant on a higher, asymmetric rate."""
return {"Lumora": generic, "A": generic, "B": generic, "C": entrant}
def naira(kobo):
sign = "-" if kobo < 0 else ""
return f"{sign}N{abs(kobo) / 100:,.2f}"
def settle(minutes, rate):
"""Net each pair of networks. net[(x, y)] > 0 means x pays y."""
owed = {(o, t): m * rate[t] for (o, t), m in minutes.items()} # o owes t
return {(x, y): owed.get((x, y), 0) - owed.get((y, x), 0)
for x, y in combinations(NETWORKS, 2)}
def report(title, rate):
net = settle(MINUTES, rate)
print(f"## {title}")
for (x, y), n in net.items():
who = f"{x} pays {y}" if n > 0 else f"{y} pays {x}"
print(f" {x:>6} and {y:<6} {who:<16} {naira(abs(n)):>16}")
position = {n: 0 for n in NETWORKS}
for (x, y), n in net.items():
position[x] -= n
position[y] += n
print(" position (positive = receives):",
", ".join(f"{n} {naira(position[n])}" for n in NETWORKS))
assert sum(position.values()) == 0 # money moves, none is created
if __name__ == "__main__":
report("one rate for all: N3.90", rates(390, 390))
report("C is a new entrant at N4.70", rates())
report("bill and keep: rate 0", rates(0, 0))
originated = sum(m for (o, _), m in MINUTES.items() if o == "Lumora")
cost = sum(m * rates()[t] for (o, t), m in MINUTES.items() if o == "Lumora")
print(f"\nLumora originates {originated:,} minutes; termination cost before netting {naira(cost)}")
print(f"Kolanut's share ({KOLANUT_SHARE:.0%}): {int(originated * KOLANUT_SHARE):,} minutes, {naira(int(cost * KOLANUT_SHARE))}")python3 settle.pyThree reports and a summary. This is the real output; the figures follow from the table of minutes.
## one rate for all: N3.90
Lumora and A Lumora pays A N5,850,000.00
Lumora and B B pays Lumora N1,950,000.00
Lumora and C C pays Lumora N1,560,000.00
A and B B pays A N1,950,000.00
A and C C pays A N390,000.00
B and C B pays C N390,000.00
position (positive = receives): Lumora -N2,340,000.00, A N8,190,000.00, B -N4,290,000.00, C -N1,560,000.00
## C is a new entrant at N4.70
Lumora and A Lumora pays A N5,850,000.00
Lumora and B B pays Lumora N1,950,000.00
Lumora and C C pays Lumora N760,000.00
A and B B pays A N1,950,000.00
A and C A pays C N10,000.00
B and C B pays C N630,000.00
position (positive = receives): Lumora -N3,140,000.00, A N7,790,000.00, B -N4,530,000.00, C -N120,000.00
## bill and keep: rate 0
Lumora and A A pays Lumora N0.00
...
Lumora originates 14,000,000 minutes; termination cost before netting N55,400,000.00
Kolanut's share (5%): 700,000 minutes, N2,770,000.00(The bill-and-keep report lists six pairs, all zero; the ... stands for five of them.) Read two things. Lumora sends A 1.5 million more minutes than A sends back, so at equal rates Lumora pays A the whole difference, N5,850,000. And when C’s rate rises to N4.70, C’s position improves by N1,440,000 while Lumora’s worsens by N800,000: an asymmetric rate moves money to the network that has it, from the networks that call it.
6. Check the model against the arithmetic. Pick one pair and calculate by hand: Lumora and A at N3.90. The minutes from Lumora to A are 9,000,000 and from A to Lumora 7,500,000. The difference is 1,500,000 minutes, times 390 kobo is 585,000,000 kobo, which is N5,850,000. The assert on the sum of the positions is a second check: money moves between networks and none is created.
Your hand calculation matches the first report’s first line. If it does not, the likely cause is an off-by-100 error between kobo and naira.
Make network A’s rate 600 kobo and the others unchanged. Run report("A at 600", {"Lumora": 390, "A": 600, "B": 390, "C": 470}) from a Python prompt in the same folder (python3 -c "import settle; settle.report('A at 600', {'Lumora': 390, 'A': 600, 'B': 390, 'C': 470})"). The line for Lumora and A becomes Lumora pays A N24,750,000.00 and Lumora’s position falls to -N22,040,000.00. Nothing in the traffic changed. Now answer: Suppose the agreement let A set its own rate. What clause would you add to cap it, and what would you ask the NCC to do if A refused to sign a capped rate?
Abiola, on Lumora Mobile's interconnect team, reads the monthly report. The direct link to rival network A runs at 85% of its capacity in the busy hour, and carries Lumora's largest single stream of calls. Last month the link failed for two hours and the fallback through a transit carrier had no entry for A's number ranges, so calls to A failed. Transit costs more per minute than the direct link. What should Abiola do first?
- DOC 3GPP TS 29.165: Inter-IMS Network to Network Interface (NNI) 3GPP
The specification for SIP between two IMS networks, with the IBCF and TrGW at the border. Read the scope and the architecture overview to see what an interconnecting operator must support; skip the detailed SIP header tables first time. Read: scope, and the clauses on the Ici and Izi reference points.
- DOC 3GPP TS 29.163: Interworking between the IMS CN subsystem and CS networks 3GPP
How SIP calls and ISUP calls are translated at a gateway, which is the problem every operator still faces while circuit-switched networks remain. Read the introduction and the mapping of call set-up; skip the supplementary-service tables. Read: scope and the basic call interworking clauses.
- DOC 3GPP TS 23.003: Numbering, addressing and identification 3GPP
Where the epc.mnc.mcc.3gppnetwork.org realm format is defined, with the rest of the identifiers a visited network builds from an IMSI. Read the sections on the home network realm; skip the identifiers you do not use. Read: the clauses on the home network realm and the IMSI.
- DOC GSMA IR.34: Guidelines for IPX Provider networks GSMA
The public GSMA guideline for the IP exchange that carries Diameter and other inter-operator traffic. Read the introduction and the description of the IPX model; the later technical annexes are for a team building a connection. Check the version number on the page, because GSMA revises it. Read: introduction and IPX architecture.
- DOC RFC 6733: Diameter Base Protocol V. Fajardo, J. Arkko, J. Loughney, G. Zorn (eds.), 2012
The routing rules behind the lab's step 4: how a request is matched to a peer by realm, and what an agent does when it cannot. Read the section on message routing and the one on error answers. Read: message routing and error handling.
- DOC NCC: Telecommunications Networks Interconnection Regulations Nigerian Communications Commission, 2007
The regulator's own wording on interconnection agreements and on when the Commission steps into a dispute. Read the parts on negotiation and on disputes; a 2024 draft revision exists, so check which text is in force. Read: the parts on agreements and dispute resolution.
- DOC NCC: License Framework for the Establishment of Mobile Virtual Network Operators in Nigeria Nigerian Communications Commission
The tier definitions and the sections on interconnection that decide what a virtual operator may do for itself. Read section 4.2 and the interconnection obligations; skip the application forms. Read: section 4.2 and the interconnection section.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.