SS7 numbering plan analysis: NP, TON and NAI in address encoding
When an SS7 ISUP call setup message arrives, the digits inside it are not self-describing. The routing label gets the message to the correct switching node, but three small indicator fields decide how that node interprets everything after them. The numbering plan indicator, the type of number and the nature of address indicator together tell a switch whether 4930 1234 is a local subscriber number, a national significant number or an international E.164 reference.
Read incorrectly, these bits produce the classic interworking failures: calls rejected as not allowed, a country code dialled twice, or reporting that treats mobile and fixed-line traffic as one category. Most engineers meet them in fragments — a nibble in a capture file, a table in a vendor manual — and rarely see all three in one place. This article maps them onto the octets, applies them to Australian numbering, and follows the same logic across to SIGTRAN.
One ambiguity first: NP is overloaded. In some Australian operator documentation NP means the numbering plan, while in others it means number portability, and both appear in the same switch logs and the same engineering meetings. Settle which one you mean before reading a single octet, or you will spend an afternoon hunting for a numbering plan table inside a portability lookup.
Where the three indicators sit in the octets
SS7 signalling is octet-oriented, and every field has a fixed position. The MTP3 Service Information Octet carries a 4-bit service indicator, with a value of 5 for ISUP, and a 4-bit sub-service field that splits into a 1-bit speech circuit possession flag and the 3-bit nature of address indicator. The type of number and the numbering plan indicator sit in the leading octet of the address signal carried in the IAM.
The address signal also carries an odd/even flag, so the receiving switch knows whether the digit count is odd or even, which removes any ambiguity about BCD padding. Since the numbering plan indicator is normally aligned with the type of number in ITU-T networks, a useful sanity check is that the two never contradict each other, and that the nature of address indicator in the SIO agrees with the copy repeated in the address octet.
| Indicator | Width and position | Common values | What it tells the receiver |
|---|---|---|---|
| Numbering plan (NP) | 4 bits, leading octet of the address signal | 0 unknown; 1 international E.164; 2 national; 3 network specific; 4 subscriber | Which numbering scheme the digits follow |
| Type of number (TON) | 4 bits, same leading octet as NP | 0 unknown; 1 international; 2 national significant; 3 network specific; 4 subscriber | The nature of the dialled number |
| Nature of address (NAI) | 3 bits in the SIO sub-service field, repeated in the address octet | 0 unknown; 1 subscriber; 2 national significant; 3 international; 4 network specific | Which digit-handling and screening rules apply |
| Odd/even indicator | 1 bit, final bit of the address octet | 0 odd digit count; 1 even digit count | Whether BCD padding is present |
A mismatch across these fields is worth treating as a defect rather than a quirk. Australian switches and their overseas counterparts do not share the same defaults, and a default of "unknown" that one side reads as national and the other as international is precisely how a perfectly valid Australian number gets refused at an international transit gateway.
What the IAM carries alongside the address
An IAM is more than digits. It carries the called party number, the calling party number, the bearer capability, the compatibility information and often the transit network selection. The address fields feed number analysis, but the surrounding parameters determine what the call is for and which paths it may take.
Bearer capability matters in the same breath, because a setup that reaches a media gateway with mismatched capabilities can come back with a rejection that looks, in log files, like a numbering fault. A walk through bearer capability negotiation explains the exchange of application and transaction messages, and it is worth reading next to the address bits, since both are settled before the call is confirmed.
The calling party number deserves the same scrutiny as the called party number. Its type of number and nature of address indicator determine whether the presented number is screened as a subscriber number, a national significant number or an international one, which affects billing presentation, calling party identity checks and the tariffing of the call.
Type of number and the odd/even flag
The type of number field is a plain enumeration of what the digits represent: 0 unknown, 1 international, 2 national significant, 3 network specific, 4 subscriber, with the remainder reserved for network-specific use. In live traffic you will mostly see 1, 2 and 4.
Setting the field correctly is what stops a switch inserting a national trunk prefix into an already complete number, or stripping a country code that the terminating network needs for its own translation. When the value sits at 0, downstream nodes must guess, and guesswork at an interconnect produces rejected calls, thin cause information and MTP3 returns that say nothing more than "unspecified".
Length is the other reason this field is examined so closely. The classic address field allows a fixed maximum number of digits, so a full +61 international address usually will not fit, and the country code is stripped before analysis. That is why international calls into Australia often reach the transit gateway as a national significant number with type of number 2, with +61 added back at the boundary.
Nature of address and the limits it sets
The nature of address indicator tells a switch what class of number to expect, and therefore which handling rules to apply. In the SIO it occupies the three low-order bits of the sub-service field, and the same three bits reappear in the address octet. The values run: 0 unknown, 1 subscriber number, 2 national significant number, 3 international number, 4 network specific, with 5 to 7 reserved.
Subscriber number (1) is the straightforward case, where the digits identify a line within the network's own numbering scheme and can be matched directly against its subscriber database. National significant number (2) describes a geographic or non-geographic number valid within the country but not necessarily inside the network's own area code. International (3) declares that the digits belong to another country's numbering plan.
Risk peaks where a national number crosses a border. Australian carriers hand over international traffic with a clear indication; when that indication is wrong, the receiving network applies the wrong translation and the call fails after a long set-up delay, costing both subscriber goodwill and signalling load.
Australian numbering and the two meanings of NP
Australian numbers are best read against the plan published by the Australian Communications and Media Authority. The country code is +61 and there is no trunk prefix inside the country: a Sydney line is 02 plus eight digits, Melbourne uses 03, Brisbane 07 and Perth 08. Domestic dialling keeps that leading zero, while international dialling drops it and adds 00 before the country code, so 03 9010 1234 becomes +61 3 9010 1234 on an international route.
Mobile numbers occupy the 04 space, and non-geographic ranges such as 1300 and 1800 are national significant numbers with no geographic area code attached. Those ranges complicate analysis: no rate centre can be derived from them, so routing and billing must be driven by the number itself and by the capability of the subscriber holding it. Carrier selection prefixes in the 10 to 19 range are carried as part of the dialled string for the same reason, since they influence which network handles the call.
Australian practice also leans heavily on number portability, mandatory here since the early 2000s and now routine across Telstra, Optus and TPG's network. A portable number can change operator at will, so a switch cannot resolve it from its own translation tables and must query a portability database instead. That is the second meaning of NP, and it is where analysis traffic suddenly concentrates on a small number of lookup points. Persistent focus on a single member of a group reshapes the dynamics for everyone involved, a pattern familiar from one specific playmate and from any concentrated signalling bottleneck worth managing deliberately.
Carrying the same analysis over IP with SIGTRAN
When ISUP runs over an IP transport, the address encoding does not change. MTP3 user adaptation carries the same IAM and application message octets across SCTP, so the indicator bits remain exactly where they were; what changes is the path, the timing and the failure modes. Analysis logic that once lived in a service control point usually becomes an application server behind a signalling gateway, with dedicated databases for portability lookups and screening.
The transport has to come up first, and SCTP association setup covers the handshake and heartbeat timers that keep the path alive. This matters during fault finding, because a silently failed association presents as a routing problem, and engineers chasing unanswered calls regularly find a dead SCTP path rather than a numbering defect.
Start with a single message: capture one IAM from a lab or interconnect tap, read the SIO sub-service bits and the leading address octet, and record the type of number, nature of address, numbering plan and odd/even values alongside the digits they describe. That exercise, one call and four fields, usually exposes where the numbering problem actually sits.