Telephony & Access Network Series

📞 Understanding VoIP and SS7 — and the Real Path Your Traffic Takes — from a "Top 1%" Perspective

Introduction

This article is part of the Top 1% Series’ full article guide.

Prerequisites

Getting the Big Picture

In a Nutshell

In the core of a modern telephone network (the backbone linking exchanges), either the traditional common-channel signaling system SS7, or SIP, a call-control protocol built for IP networks, handles “call setup and management” (signaling), while the actual voice is packetized as IP traffic and carried by a protocol called RTP (this is VoIP). What’s consistent throughout is a design philosophy of keeping “the messages that control the path” (signaling) and “the data actually being carried” (media) on separate channels. Meanwhile, the everyday internet use we take for granted — watching a YouTube video, say — travels a completely different path from the telephone network: home router → access line → ISP → internet backbone → CDN. Contrasting the two deepens your understanding of what a “communication path” even means.

graph LR
    subgraph Call["Path of a phone call"]
        Phone1["Caller's phone"] --> Local1["Nearest exchange"]
        Local1 -.SS7 signaling.-> Local2["Callee's exchange"]
        Local1 ==Voice (TDM or RTP)==> Local2
        Local2 --> Phone2["Callee's phone"]
    end
    subgraph Web["Path of watching YouTube"]
        PC["Home PC"] --> Router["Home router"]
        Router --> ISP["ISP local exchange to core network"]
        ISP -.DNS resolution.-> DNS["DNS server"]
        ISP ==Route advertised via BGP==> Backbone["Internet backbone"]
        Backbone --> CDN["CDN / edge server"]
    end

Fundamentals, Thoroughly Explained

What Is SS7? A Telephone Network’s “Common-Channel Signaling System”

SS7 (Signaling System No. 7) is the umbrella name for the group of protocols dedicated to handling a telephone network’s “call control” (signaling) — establishing, answering, and tearing down calls, querying number portability, and relaying billing information. SS7 is made up of several components, the two most notable being MTP (Message Transfer Part), which handles the delivery of messages themselves, and ISUP (ISDN User Part), which handles the call-setup/teardown procedures specific to telephone service.

A key design feature of SS7 is that it runs over a dedicated signaling link, physically separate from the channel that actually carries voice (the bearer channel) — this is known as out-of-band signaling. This lets exchanges exchange call-control information as messages even before a voice circuit has been established at all. Older telephone networks used in-band signaling, sending the dialed number itself as an audio-band tone signal (MF signaling) — an inefficient approach, since it occupies the voice circuit to carry control information, and one with a well-known vulnerability where an audio signal mimicking that tone could be used to illicitly manipulate an exchange (so-called “phreaking”). The move to SS7 solved both problems.

An easily overlooked fact: SS7 itself is "message switching," not "circuit switching"

Because “telephone network = circuit switching” is such a strong mental image, it’s easy to overlook that SS7 itself is a message-switched protocol stack, relayed message by message from exchange to exchange, rather than flowing over a pre-reserved fixed path. In other words, while the part of the telephone network that actually carries voice (the bearer) is genuinely circuit-switched via TDM, the part that controls the path — call control (signaling) — has, since very early on, been built around an idea close to packet switching: a message carrying destination information, relayed node by node to the next node along the way. It’s easy to miss that “even inside a circuit-switched telephone network, packet-switching-like elements have existed for a long time.” Framing it this way makes the contrast between the telephone network and an IP network much richer.

What Is VoIP? Carrying Voice as IP Packets

VoIP (Voice over IP) is often mistaken for the name of an “internet phone service” like Skype or LINE calling, but it more precisely refers to the entire category of technology that digitizes and packetizes voice for transmission over an IP network. The fact that a carrier’s core network transmits voice over IP internally is also VoIP, in this broader sense.

Two component technologies underpin VoIP:

SIP: The IP-Network Equivalent of “Call Control”

The role SS7 plays in a telephone network — establishing and managing a call (signaling) — is played, in the world of IP networks, by SIP (Session Initiation Protocol, RFC 3261). SIP manages a call session from start to finish by exchanging HTTP-like, text-based messages: INVITE (start the call), 200 OK (accept), ACK (confirm), and BYE (end).

Notice that the same design philosophy as SS7 shows up again here. SIP is only responsible for controlling the session (signaling) — deciding who to call, and which codec to use — while the actual voice data flows as an RTP stream established separately from the SIP exchange. This separation of control (SIP) from data (RTP) rests on a strikingly similar idea to the telephone network’s separation of “SS7 (signaling) from the TDM bearer channel (data).”

sequenceDiagram
    participant A as Caller
    participant B as Callee

    Note over A,B: Signaling (SIP)
    A->>B: INVITE (start the call, proposing a codec)
    B->>A: 180 Ringing
    B->>A: 200 OK (accept, agree on the codec)
    A->>B: ACK

    Note over A,B: Media (RTP, a separate stream from SIP)
    A->>B: RTP packets (voice data)
    B->>A: RTP packets (voice data)

    Note over A,B: Signaling (SIP)
    A->>B: BYE (end the call)
    B->>A: 200 OK
How do traditional SS7 networks and IP-based SIP networks actually connect to each other?

Even though fixed-line and mobile switching networks have largely moved their core to IP, plenty of SS7-based equipment and interconnecting carriers still exist. In real carrier networks, a device called a signaling gateway acts as the bridge, translating between SS7 messages and SIP messages. In the mobile world, this idea has been taken further with IMS (IP Multimedia Subsystem), a framework that unifies voice calling and every other service onto a single IP-based architecture, and which underpins voice calling (VoLTE/VoNR, etc.) on 4G/5G networks.

A Concrete Example of the Real Path: Watching a YouTube Video on Your Home PC

Contrasting with the telephone-network story above, let’s walk through exactly what path and protocol stack something we do every day — watching a YouTube video on a home PC — actually travels through.

  1. Inside the home (L1/L2): The PC connects to the home router over Wi-Fi or an Ethernet cable. L2 forwarding based on MAC addresses happens here.
  2. Through the access line to the ISP (L1/L2): The home router connects, over an access line such as ADSL or fiber, to the local exchange of the subscribed ISP (internet service provider).
  3. DNS resolution (L7): The PC first queries a DNS server to resolve the domain name youtube.com into an IP address. In most cases a mechanism called Anycast routes this query to a geographically nearby, fast-responding DNS server.
  4. From the ISP’s core network to the internet backbone (L3): Packets that traverse the ISP’s internal network are forwarded onto the internet backbone following route information exchanged worldwide via BGP (Border Gateway Protocol).
  5. Reaching a CDN (Content Delivery Network) (L3–L7): A large-scale service like YouTube caches its content on CDN edge servers distributed around the world (in Google’s case, a mechanism called GGC, or Google Global Cache, among others), and the user is directed — either at DNS-resolution time or via an HTTP-level redirect — to the edge server that’s geographically and network-topologically closest.
  6. TLS handshake and HTTPS traffic (L4–L7): A connection to the edge server is established over TCP (or, increasingly, QUIC/HTTP3), an encrypted TLS handshake follows, and the actual video data is exchanged over HTTPS.

Comparing this with the path of a phone call makes the difference in design philosophy stand out. In a telephone network, SS7 signaling relays exchange by exchange, within the dedicated namespace of phone numbers, to establish and maintain a single path to the callee for the duration of one call. The internet’s path, by contrast, is determined dynamically, per destination and per packet, through the combination of several independent mechanisms: hierarchical name resolution via DNS, dynamic route advertisement between countless networks via BGP, and geographic optimization via a CDN. Where a telephone network is built around the idea of “one dedicated path per call,” the internet has no such concept at all — there is no “dedicated path for this particular communication.” Keeping this contrast in mind makes the difference in design philosophy between the two much clearer.

The View from the Top 1% (What Experts See)

SS7’s Vulnerabilities: Why It’s Said a Phone Number Alone Can Enable Tracking or Interception

SS7 was designed in the 1970s on the premise that it would only ever run over a closed network connecting a small set of trusted operators. As a result, it has no built-in mechanism to strongly authenticate the origin of a message or to encrypt its contents. Today, however, the expansion of international interconnection and the existence of operators offering access to SS7 networks mean that third parties never envisioned in the original design have, in reported cases, been able to inject messages into SS7 networks — enabling attacks (so-called SS7 hacks) that obtain a user’s approximate location, or intercept two-factor authentication codes sent via SMS. This is a textbook example of a pattern that recurs throughout infrastructure history: an assumption baked in at design time (that it would only ever be used within a closed, trusted relationship) eroding as interconnection expanded in later years.

VoIP Call Quality Depends on Prioritization at the Network Level

Because RTP runs on top of UDP, it gets none of TCP’s congestion control or retransmission. That means when voice traffic shares an IP network with other bulk traffic — a large file transfer, say — voice packets can get deprioritized, worsening jitter (variation in arrival timing), delay, and packet loss, and degrading call quality. This is exactly why, when deploying VoIP (IP telephony) within an organization, it’s often necessary to configure QoS (Quality of Service) mechanisms — such as priority marking via DiffServ — to give voice traffic preferential treatment.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

Isolating VoIP Call-Quality Degradation

When calls drop or sound poor, the fix depends on the cause, so start by identifying which of jitter, packet loss, or delay is dominant. Check whatever admin console exposes the statistics RTCP periodically exchanges (packets received, loss rate, jitter value), or capture packets directly with tcpdump and look for gaps in the RTP stream’s sequence numbers or irregular timestamp spacing. From there, isolate further: if the cause is network congestion, revisit your QoS configuration; if it’s delay in a specific segment, check the route with a traceroute.

Isolating Internet Connectivity Failures

For “I can’t reach the site” symptoms too, first isolate which stage is failing: DNS resolution, reachability somewhere along the path, or the TLS handshake. Check whether DNS resolution succeeds with nslookup/dig, check where along the path responses stop coming back with traceroute/mtr, and if that still doesn’t resolve it, check higher-layer causes such as an expired TLS certificate or an SNI misconfiguration. That’s the standard order of isolation.

Summary

Starting Today

  1. When you see the word “VoIP,” remember it refers to the entire category of technology that packetizes voice for transmission over IP, not just internet phone services.
  2. When you hit a communication problem, get in the habit of first isolating whether it’s happening at the “signaling” stage (establishing the path/session) or the “actual data transfer” stage.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).