Module 1: Foundations

Number Portability and the LNP Database

Learn about number portability and the lnp database

Duration: 6 minutes
Level: Beginner
Lesson: 4

Why Numbers Had to Become Portable

Before 1996, your phone number was permanently tied to your carrier. Switching from AT&T to MCI meant getting a new phone number — which meant reprinting business cards, updating every contact, and losing the number your customers knew. This was a massive barrier to competition, and carriers knew it.

The Telecommunications Act of 1996 mandated Local Number Portability (LNP) in the United States, requiring carriers to allow customers to keep their phone numbers when switching providers. This fundamentally changed how phone calls are routed and created an entire infrastructure layer that Telnyx interacts with daily.

For NOC engineers, LNP isn't academic. Number porting issues cause real incidents: calls routing to the wrong carrier, porting delays blocking customer migrations, and stale LNP data causing call failures.

How LNP Works — The Location Routing Number

Before LNP, routing was simple: the first 6 digits of a phone number (NPA-NXX, i.e., area code + exchange) told you which switch served that number. All numbers in 212-555-XXXX belonged to the same switch.

LNP broke this assumption. Now, 212-555-1234 might belong to AT&T while 212-555-1235 belongs to Telnyx. You can no longer route based on the NPA-NXX alone.

The solution is the Location Routing Number (LRN) — a 10-digit number that identifies the switch currently serving a ported number. Here's how it works:

  1. Before routing a call, the originating carrier performs a dip — a real-time database query to the Number Portability Administration Center (NPAC)
  2. The query asks: "Has this number been ported? If so, what's the LRN?"
  3. If the number has been ported, the NPAC returns the LRN of the new serving switch
  4. The originating carrier routes the call to the switch identified by the LRN instead of the switch implied by the dialed digits

Example:

  • Customer ports 212-555-1234 from AT&T to Telnyx
  • AT&T's switch for 212-555 has LRN 212-555-0000
  • Telnyx's switch in New York has LRN 646-847-0000 (hypothetical)
  • When anyone calls 212-555-1234, the dip returns LRN 646-847-0000
  • The call routes to Telnyx's switch, which delivers it to the customer

The LRN looks like a regular phone number but is never dialed by humans — it's purely a routing construct.

The NPAC — Number Portability Administration Center


🔒 Full Course Content Available

This is a preview of the Telephony Mastery Course. The complete lesson includes:

  • ✅ Detailed technical explanations
  • ✅ Advanced configuration examples
  • ✅ Hands-on lab exercises
  • ✅ Real-world troubleshooting scenarios
  • ✅ Practice quizzes and assessments

🚀 Unlock Full Course Access


Preview shows approximately 25% of the full lesson content.