Planning Networks For VOIP: An Introduction
Planning Networks For VOIP: An Introduction
An Introduction
Planning Networks for VOIP Page 2/10
Contents
1 Introduction..................................................................................................................3
2 Voice Quality Requirements........................................................................................3
3 Codecs..........................................................................................................................4
4 Network Layout ...........................................................................................................5
5 Planning Capacity........................................................................................................6
5.1 Step 1 – Estimating Voice Bandwidth.................................................................6
5.2 Step 2 – Estimating Data Bandwidth...................................................................7
5.3 Step 3 – Calculating Total Required Bandwidth.................................................7
5.4 Step 4 – Compromises .........................................................................................8
6 Router Selection and Configuration ............................................................................9
6.1 Router Requirements ...........................................................................................9
6.2 Router Configuration...........................................................................................9
6.3 Traffic Shaping Appliances .................................................................................9
Planning Networks for VOIP Page 3/10
1 Introduction
Setting up a network to carry Voice over IP (VOIP) traffic along with the data packets
requires an understanding of what features are needed in the routers and switches of the
network. It is also helpful to understand how much data bandwidth is required to
successfully transport VOIP voice conversations, and what tradeoffs are possible to get
by with less bandwidth than would normally be necessary.
In this paper, we will try to give some advice in planning a network that will carry voice
and data traffic with a minimum of problems. We will look at voice quality
requirements, network layout, planning capacity, and router selection and configuration.
When designing an IP network to carry voice, we cannot allow the MOS to drop below
3.0 at any time. For most networks, it should be above 3.7 at all times.
Planning Networks for VOIP Page 4/10
3 Codecs
The VOIP device (VOIP telephone, gateway, PBX, key system, or adapter card) will
encode voice into a packet format for the IP network, and another device will decode the
data back into voice at the other end. The name of this Coding-Decoding process is
shortened to “Codec”. There are different codecs available to use for connecting voice
calls from one VOIP endpoint to another. These different encoding-decoding methods
have different call qualities and different bandwidth requirements. Basically, if yo u want
your calls to use less network bandwidth, then you will suffer reduced call quality.
G.711 20 83 4.1
G.726 20 58 4.0
The low-bit-rate codecs use a lot less bandwidth and will save you money on your
network links. However, your users will be able to tell that the G.729 calls are “tinny”
compared to the G.711 calls. Also, there will be a problem if the same call gets encoded
and decoded several times between one end and the other because the negative effects on
the audio quality accumulate with every compression cycle.
For example, if a user calls into the office on a G.729 encoded link from a VOIP phone at
home, connects through a G.729 encoded tie- line to a branch office, and then goes out an
outside line to connect to a person with a GSM encoded cell phone, the overall call
quality will be an unacceptable 2.68 MOS. This is due to the degradation in the quality
of the call each time it is decoded and encoded.
The G.711 PCM codec does not have this problem. Since it has one-to-one mapping with
the TDM PCM in the phone network, there is no loss of quality due to encoding and
decoding. The G726 ADPCM algorithm also does not suffer from these types of quality
loss due to repeated encodings and decodings.
Also, G.729 tends to exaggerate any network problems like jitter and packet loss. The
3.92 MOS shown is for ideal network conditions, but this degrades exponential when
faced with a WAN that has problems. It will move into the unacceptable sub-3.0 range
very quickly if packets reach their destination late or fail to arrive at all.
Later, when we discuss capacity planning, you will see where you have to decide
between saving some money by choosing G.729 or assuring excellent call quality by
choosing G.711.
Planning Networks for VOIP Page 5/10
4 Network Layout
A typical company data network has high-speed LAN switches and routers in each
location with lower-speed connections between locations. Often, each office has a single
connection to an ISP and that ISP ha s a high-speed backbone network that connects each
of its locations to one another.
Figure 1 shows a typical layout for a company with three locations and VOIP equipment
in each location.
The most important thing to note about this network is that the customer has installed a
QOS capable router at each location. This router must be capable of providing LLQ-type
queuing for the VOIP packets, or there will be serious problems with the voice quality of
the calls that go through the link. Additionally, there must be a network engineer to
configure the router who understands voice QOS requirements. This cannot be
overstated. If the customer does not have the expertise to do this configuration, then he
should lease the router from the ISP and verify that the ISP can configure and maintain
the QOS features of the router for him.
5 Planning Capacity
There is a fairly straightforward method for planning the amount of bandwidth that you
will need to carry your voice and data traffic over your lower-speed WAN links. We will
go through it step-by-step.
G.711 20 83
G.711 30 76
G.726 (32K) 20 58
G.726 (32K) 30 51
G.729 20 26.4
G.729 40 17.2
So, in our example, there are two VOIP phones in Akron using the G.729 codec with a
packetization interval of 20 ms. If both phones are in use at once, the voice requirement
of the WAN connection to the ISP would be 26.4 X 2 or 52.8 Kbps. In Dayton, the
telephone system can support eight G.729 calls over the WAN at 20 ms./packet, so the
Dayton WAN connection should be engineered to support 26.4 X 8 or 211.2 Kbps of
voice traffic.
Planning Networks for VOIP Page 7/10
We should add 10% to this estimate to cover the call control traffic that will also be
specially marked for Low Latency Queuing. In our example, we are planning to use
G.729 with 20 ms./packet for all of our connections.
Note that the voice+data requirement for Dayton is only 636 Kbps, but we must still get a
WAN connection that is more than 700 Kbps. This is because our LLQ voice of 233
Kbps should not exceed one third of the total connection. After doing this analysis, we
know that we need at least the larger of 3 X Voice and Voice+Data+30% for the WAN
connection to each location.
eight calls going at once, the router would queue all of the voice packets ahead of the data
packets. There would not be enough bandwidth left for the data applications to run
smoothly.
v Specifying routers, switches, traffic shapers, and ISP partners that will support the
QOS features described in this paper.
v Having or finding the expertise necessary to configure that equipment
v Planning bandwidth capacity that is the larger of:
Ø Three times the Voice over IP bandwidth
Ø Voice + Data + 30%
v Choosing Codecs that meet your voice quality needs while fitting within the
bandwidth budget