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 »

updated Car drives into crowd at Virginia parade
About 50 to 60 people were injured after a driver described by witnesses as an elderly man drove his car into a group of hikers marching in a parade in a small Virginia mountain town.
new Iran hangs 2 men convicted of spying
Iran's state radio says authorities have executed two men convicted of spying for Israel's Mossad and the American CIA spy agency.
new Senior Pakistani politician shot dead
Gunmen in Pakistan have killed a senior member of Imran Khan's Movement for Justice (PTI) party outside her home in Karachi.
more »

Canada »

Spectator killed at Edmonton Jeep event
A 20-year-old woman died Saturday during an event for Jeep enthusiasts held in a parking lot just west of downtown Edmonton.
Rescue attempt over for New Brunswick fishermen video
The rescue attempt for two missing fishermen has been called off in New Brunswick, hours after one body was found.
1 person hurt after trains collide near Medicine Hat
The Transportation Safety Board of Canada is deploying a team to the site of a two-train collision east of Medicine Hat.
more »

Politics »

Email is proof Senate greenlit expenses, Brazeau says
Senator Patrick Brazeau, in an interview with CBC Radio's The House, says the Senate gave him the green light to claim expenses for his secondary residence in Ottawa in an email dated March 8, 2011 — the same $48,000 expenses a Senate report says he has to pay back.
Senator Pamela Wallin leaves Conservative caucus video
Senator Pamela Wallin says she is recusing herself from the Conservative caucus while her travel expense claims are under scrutiny. Wallin's departure comes one day after Senator Mike Duffy left the Tory caucus amid controversy over his expense claims.
First Nations schools report points to education gap
First Nations' schools have lower quality teaching, an inferior curriculum and fail to provide proper services for children with special needs — and without further investment these problems could worsen with an expected population spike on reserves, a new federal report warns.
more »

Health »

Chronic fatigue may be reversed with exercise
Taking it easy is not the best treatment for chronic fatigue syndrome, rather exercise and behaviour therapy are, a large study finds.
AT&T buys T-Mobile USA for $39B US
AT&T Inc. said Sunday it will buy T-Mobile USA from Deutsche Telekom AG in a cash-and-stock deal valued at $39 billion US, becoming the largest cellphone company in the U.S.
Milky Way home to 50 billion planets: NASA
Scientists have compiled the first cosmic census of planets in our galaxy: at least 50 billion planets are estimated to call the Milky Way home.
more »

Arts & Entertainment»

new Denmark's Emmelie de Forest wins Eurovision
Denmark's Emmelie de Forest has won this year's Eurovision Song Contest with her ethno-inspired flute and drum tune Only Teardrops.
Thieves steal $1M worth of jewels during Cannes film festival video
Thieves ripped a safe from the wall of a hotel room near the Cannes Film Festival and made off with around $1 million worth of jewelry in a brazen late-night burglary.
video Tommy revival stirs emotions for Pete Townshend video audio
For Pete Townshend, watching the Stratford Festival's revamp of his hit rock opera Tommy stirs up difficult memories from his working-class, post-war upbringing.
more »

Technology & Science »

video Astronaut Chris Hadfield adjusts to 'earthling' life video
Canada's space ambassador, Chris Hadfield, is still readapting to life on this planet after spending 146 days in zero gravity as commander of the International Space Station. For now, though, he's taking his homecoming one step at a time.
High Arctic research station saved by new funding audio
Canada's northernmost research lab won't have to shut down after all and will be able to resume year-round operations, with the help of a new grant from the federal government.
2 earthquakes felt in Ontario and Quebec video
Two earthquakes near the Ontario-Quebec border could be felt across both provinces this morning.
more »

Money »

Cheaper gas pushes inflation lower
Canada's annual inflation rate fell sharply in April, from 1.0 per cent the previous month to 0.4 per cent, largely on the back of lower gasoline prices
new 1 year later, Facebook stock remains below IPO price
A year after Facebook's high profile IPO, investors are still skeptical about its prospects and the stock price is wallowing.
IRS's integrity at stake in scandal over screening of conservative groups
Unloved in the best of times, the Internal Revenue Service will have to scramble to convince U.S. lawmakers and the public that its intentions were pure, not partisan, when it subjected groups affiliated with the Tea Party movement and other conservative causes to special scrutiny.
more »

Consumer Life »

Honda recalls Fit subcompacts
Honda Canada says it will recall 14,640 of its 2009 and 2010 Fit subcompact cars to replace lost motion springs.
U.S. travel fee proposal criticized by Harper
Prime Minister Stephen Harper says he doesn't think much of a new border tax that's being proposed by the United States, calling it a cash grab designed to help a budget crisis.
Bell class action suit approved by Que. court
A Quebec Superior Court judge has authorized a class action lawsuit to go ahead against Bell Mobility.
more »

Sports »

Scores: NHL NBA

Stanley Cup Stories: Jason Spezza a go, Wings rebound
Ottawa Senators forward Jason Spezza says he expects to suit up in Game 3 against the Pittsburgh Penguins, even-keeled Mike Babcock proves prophetic, and the Sharks took a bite out of the Kings' series lead. All that and more in Saturday's Stanley Cup stories.
point of view Top #hockeynight tweets from Saturday
The focus was on the Red Wings and the Blackhawks as they battled in Game 2 on Saturday afternoon. The Wings were hungry to tie up the series, and that's exactly what happened in our matinee matchup. Here's how the social world reacted.
blog Wharnsby: Jason Spezza ready to return for Senators
With his team down 2-0 in their Eastern Conference semifinal against Pittsburgh, talented Senators forward Jason Spezza revealed after practice Saturday that he expects to play in Game 3 Sunday nigtht (CBC, CBCSports, 7:30 p.m. ET).
more »

Diversions »

[an error occurred while processing this directive]
more »