Story Tools: PRINT | Text Size: S M L XL | REPORT TYPO | SEND YOUR FEEDBACK

In Depth

Technology

How it works: VoIP

July 26, 2007

The way voice-over-internet protocol, or VoIP, connects two phones is quite different — and more efficient — than the way a traditional phone call works.

VoIP gets its name from the fact that it uses the internet protocol (IP), a standard way of transmitting data over a network.

To transmit voice this way, the first step is to convert it from an analog voice signal into data — digital zeroes and ones.

A coder-decoder, or codec, converts the sound of your voice into a series of bits, which another codec at the other end of the connection will decode to reconstruct the original speech.

Before VoIP, the phone system was circuit-switched. To set up a phone call, the phone system would create a circuit between two phones, and that circuit would stay in place until the call ended. Think of how phone calls worked back in the days of human operators when a caller would pick up the receiver and turn a crank, sending a signal over a line running directly to the operator's office, where it rang a bell.

The operator would plug her phone into the line that was ringing, and ask what number the caller wanted to reach. The caller would give a number, and the operator would plug in a cable leading to that number. Once the call was connected, a set of wires running from one phone to the other was used for nothing but that one phone call until the callers hung up. Automatic switches replaced operators, but the principle is the same.

IP, on the other hand, sends everything — data, voice or even video — in bursts of bits called packets. As the name implies, these are like something you would send at the post office. Inside is some data, and on the outside is an address to indicate where the packet is going. Each data packet is sent over the network, and devices called routers, which are rather like the post office's mail sorters, use the address to send the packet in the right direction until it reaches its destination.

Many packets make up a VoIP phone call. An electronic device called a packet assembler-disassembler organizes data from the codec into packets and passes it to a router that sends it over the network to its destination, where it is taken out of the packets and turned into sound again. Packets may even travel different routes to reach their destination — if your call is from Toronto to Los Angeles, say, one packet might go through Chicago and the next through Vancouver.

This can lead to problems. If packets are delayed or arrive in the wrong order, the phone call doesn't sound right. This is why VoIP systems usually need networks that provide "quality of service" guarantees, meaning that they make sure the packets get through quickly. Today's networks can tell the difference between voice and data packets and give priority to the voice ones, because delays are more noticeable in a voice call than in, say, the transmission of e-mail.

Knowing where to send

How do the network routers know where to send the packets of a voice call?

Internet protocol uses IP addresses, which are like telephone numbers except that their format is different. An IP address is four groups of up to three digits, separated by dots, like 169.254.1.10. Each packet of data has an IP address. Each router that receives that packet uses a lookup table of IP addresses to determine where to send the packet.

But when you make a call using a consumer VoIP service like Vonage, you dial a telephone number, yet your call is routed over your internet connection. How does that work?

When you dial a call, your VoIP router checks the number you dialed against a lookup table. If you're calling another customer of the same VoIP service, it finds an IP address for that customer's phone and sends the call directly over the internet. Otherwise, the router finds the interconnection between the VoIP provider's network and the public telephone network that is nearest to where the call is going. It routes the call over the internet to that point, where it is passed to the phone network and completed.

Before starting to send packets, the router must set up the call — ring the phone at the other end, pass along caller ID information, and so on. Vonage and some other providers use session initiation protocol (SIP) to do this, while some other VoIP systems use other protocols.

Much the same thing happens in the other direction. Say someone in Halifax calls your VoIP phone in Vancouver. The phone system sees the area code 604 and routes the call to Vancouver, where the next three digits send it to the right central office. There the call is passed to a gateway operated by your VoIP service, which uses the lookup table to find the IP address to which your phone number is currently connected.

If your workplace has an IP phone system, it routes internal calls — which can include calls between two offices if your company has its own network connecting them — much the same way as a consumer VoIP service would connect calls between two of its own customers.

Outside calls go to an outside line pretty much the same way as they would with an old-fashioned office phone system.

Go to the Top

Story Tools: PRINT | Text Size: S M L XL | REPORT TYPO | SEND YOUR FEEDBACK

World »

Tiger escapes at San Francisco Zoo, kills visitor
A visitor at the San Francisco Zoo was killed and two people were injured when a tiger escaped from its cage on Tuesday, according to a report.
December 25, 2007 | 10:49 PM EST
Suicide bomb attacks in Iraq kill 35
Two separate suicide attacks killed at least 35 people in Iraq on Tuesday, shattering more than a week of relative calm, local and U.S. military authorities said.
December 25, 2007 | 2:03 PM EST
MacKay says Iran giving weapons to Taliban
Canadian Defence Minister Peter MacKay, who helped serve Christmas dinner to troops in Kandahar on Tuesday, accused Iran of fuelling the conflict in Afghanistan.
December 25, 2007 | 2:08 PM EST
more »

Canada »

PM praises Canadians' generosity in Christmas message
Prime Minister Stephen Harper has sent his best wishes to citizens of the "greatest country in the world," citing the Afghan mission as an example of Canadian generosity.
December 25, 2007 | 1:28 PM EST
4 die, 16 injured in separate Quebec accidents
Four people died and 16 others were injured in separate road accidents across Quebec so far this holiday season.
December 25, 2007 | 2:27 PM EST
Body of Nova Scotia teen found
The body of a 17-year-old Nova Scotia boy who was reported missing in mid-December has been found in Pictou County, police say. RCMP from Nova Scotia and New Brunswick were involved in a search for the teen, who was last seen Dec. 16.
December 25, 2007 | 7:05 PM EST
more »

Health »

Tired from turkey? Think again, researchers say
A belly full of turkey is no excuse for laziness over the holidays, according to American researchers who have published a list of common medical myths just in time for the holidays.
December 24, 2007 | 11:06 AM EST
More Canadians admit to drinking and driving: study
An increasing number of Canadians say they have driven their vehicles while they thought their blood alcohol level was over the legal limit and many did so multiple times, said the latest annual survey from the Traffic Injury Research Foundation.
December 24, 2007 | 3:14 PM EST
Corner Brook isotope backlog could take month to clear
It will take a full month to clear up a backlog of specialized medical tests for western Newfoundland patients.
December 24, 2007 | 7:57 AM EST
more »

Arts & Entertainment»

Canadian jazz great Oscar Peterson dies
The jazz odyssey is over for Oscar Peterson: the Canadian known globally as one of the most spectacularly talented musicians ever to play jazz piano has died at age 82.
December 24, 2007 | 5:17 PM EST
Queen Elizabeth launches Royal Channel on YouTube
Queen Elizabeth has set up her own channel on the video-sharing website YouTube and will be posting her annual Christmas Day message on the site this year.
December 24, 2007 | 7:18 AM EST
Jay-Z to depart Def Jam's executive suite
Influential rap mogul Jay-Z is leaving his post as president of Def Jam Records, Universal Music Group announced Monday.
December 24, 2007 | 5:04 PM EST
more »

Technology & Science »

Queen uses web to give Christmas speech
Although she hadn't used a computer until two years earlier, Queen Elizabeth marked the 50th anniversary of her televised Christmas message with an unprecedented web broadcast Tuesday.
December 25, 2007 | 12:11 PM EST
Mars, moon to light up Christmas Eve sky
There's going to be a red light shining in the sky on Christmas Eve ? and it's not necessarily Rudolph's nose. Astronomers say Mars, as well as the moon, will seem exceptionally bright.
December 24, 2007 | 2:42 PM EST
Church donation collecting goes 2.0
No cash for the collection basket at church? No problem. The Roman Catholic Archdiocese of Cincinnati has made online giving an option for its 230 parishes, and 110 parochial and diocesan schools in its 19-county region.
December 24, 2007 | 4:36 PM EST
more »

Money »

Loonie closes above $1.01 US on commercial paper deal
The Canadian dollar traded at a one-month high above $1.01 US on Monday following a deal to restructure billions of dollars in short-term debt.
December 24, 2007 | 6:49 PM EST
All eyes on spectrum auction in 2008, analysts say
The wireless spectrum auction, a CRTC decision on wholesale phone services and the privatization of Bell Canada will be the big Canadian telecommunications stories of 2008, according to consultancy The SeaBoard Group.
December 24, 2007 | 11:42 AM EST
CN buys key rail link to Alberta's oilsands
Canadian National Railway Co. has signed a deal to buy the Athabasca Northern Railway Ltd., a key railway link to the oilsands region of northern Alberta.
December 24, 2007 | 3:05 PM EST
more »

Consumer Life »

Convenience keeps Canadian shoppers north of border: analysts
Many Canadians are sticking close to home this year when it comes to last-minute holiday shopping, ignoring the advantages of a high-flying Canadian dollar, say retail analysts.
December 24, 2007 | 9:41 AM EST
Teen charged in Yellowknife Wal-Mart blaze
Yellowknife RCMP have arrested a teenager in connection with a fire at the city's Wal-Mart on Dec. 15.
December 25, 2007 | 10:50 AM EST
Casinos shut on Christmas Day? Don't bet on it
Slot machines and blackjack tables aren't usually associated with Christmas, but Ontario's government-operated casinos will be open Dec. 25, a day most other businesses are closed.
December 24, 2007 | 10:52 AM EST
more »

Sports »

Scores: CFL MLB MLS

Trail Blazers win 11th in a row
The Portland Trail Blazers extended their NBA season-high winning streak to 11 games with an 89-79 Christmas Day victory over the visiting Seattle SuperSonics.
December 26, 2007 | 12:27 AM EST
Bryant outshines Nash, Suns
Kobe Bryant poured in a game-high 38 points and added seven assists to propel his Los Angeles Lakers past Victoria native Steve Nash and the visiting Phoenix Suns 122-115 on Christmas Day.
December 25, 2007 | 11:11 PM EST
LeBron, Cavaliers beat Heat
LeBron James scored 25 points and dished out 12 assists to lead the Cleveland Cavaliers to a 96-82 win over the visiting Miami Heat in a Christmas Day showdown.
December 25, 2007 | 8:16 PM EST
more »