CBT Nuggets Notes
CBT Nuggets Notes
Well setup
Proprietary PBX
Uses TDM/FDM
VOICE OVER IP
Open ish- can use different vendors for different network components
Unified network and staff- same staff for all network
Internet telephone service provider- Both data and communication
Toll bypass- using internet for both data and communication
Phased migration supported-using tradition PBX systems along with voice gateways to get all the
benefits of VoIP.
VOICE GATEWAYS
Entry and exit point for systems
Channel between internal network nodes to maybe TDM, T1, ITSP etc
Provide a line of security
Provide VoIP services
They act as a bridge between traditional connections (like fxo, fxs, t1 etc) and VoIP
VOICE PROCESSING
Brain of the network
Device control
Dial plans and permissions
Phone features
SINGLE SITE
CUCM/call manager publisher- R/W – copies of the database that are used for IP telephony
CUCM subscriber- R/O
Unity- voicemail
CENTRALISED MULTISITE
In addition to single site features it has SRST(survivable remote site telephony-support features which
are provided when connection to CUCM goes down) and even the router is able to connect phone calls
in case the connection with the CUCM is broken
MULTISITE DISTRIBUTED
Has independent Single sites each having their own subscribers and publishers
GK(gate keeper)- provides control functions in the multisite distributed network that is common for
everyone. Provides bandwidth management, acts like a phonebook
The GK can divide the network into different zones. It is a CENTRALISED MANAGEMENT. All the
configuration and setup goes into the GATE KEEPER.
SPLIT CLUSTER
The CUCM publisher is kept at one site and the subscriber is kept at another. So the copy of the
database is made at the subscriber at the other site. But this works only if the networks are very close to
each other and have high speed connectivity because the replication process has a certain time limit.
Voice switches – provide features like power over the Ethernet so that IP phones can be connected to
them. They also provide Quality of service(QoS) so that phone calls take priority over data
ATA(Analog telephone adapters)- for connecting the analog phones to the Ethernet.
2----------------------------------------------------------------------
FXS (foreign exchange station)- a port which allows analog devices to be connected to the router and on
the other port we have Ethernet port so that that analog devices can be used as a VoIP devices.
Connects analog phones(generally)
FXO (foreign exchange office)- used to connect the PSTN network to the VoIP network. Its an analog
connection. Connects to central office(generally).
A router becomes a voice gateway because of modules like FXS, FXO and also the software feature
inside the ios.
A router is installed with modules like the DSP(digital signal processor) which convert the incoming voice
into tiny audio packets
The DSP takes the analog voice , digitizes it, then converts them into packets and add IP headers which
are then sent over the internet.
E&M(Ear and Mouth) – it is used to bridge PBX. But the PBX system must have E&M cards installed in
them. The voice gateways(voice routers) also have E&M cards. Then again the voice gateways are
connected to the IP phones. The PBX systems also have FXS and FXO ports which can be connected to
FXO and FXS ports on the voice gateway respectively.
CAMA(centralized automated message accounting) – used solely for emergency calling. Connected to
the PSTN and delivers ANI/Caller-ID to the right authorities.
SIGNALING
Informational – busy, ring etc
Supervision – on/off hook
Addressing – dialing
In case of FXO and FXS signaling is of two types namely loop start and ground start
In loop start when we lift the receiver the circuit loop is connected and current begins to flow through
the device. In ground start we have to ground the connection so as to get the dial tone.
Whatever signaling is used by PBX or PSTN or any other traditional network, in order to connect to
them we have to match that same signaling technique at out voice gateway. We also have to match
the type and the operation(number of wires etc)
PSTN uses loop start PBX uses ground start (most of the time)
COMMANDS
Router#sho ver (showing the version)
Router#show voice port summary (summary of the ports)
Router#conf t (global configuration command)
Router<config>#voice-port 1/0/0
Router<config-voiceport>#?
Router<config-voiceport>#no comfort-noise
Router<config-voiceport>#signal ?
Router<config-voiceport>#cptone ?
Router<config-voiceport>#cptone us (call progress tone united states)
Router<config-voiceport>#ring cadence ?
Router<config-voiceport>#ring cadence define 10 ?
Router<config-voiceport>#shutdown
Router<config-voiceport>#no shutdown
3------------------------------------------------------------------------------------------------
Voice gateways basically translates between VoIP and analog signals (one of the function)
The IP phones already contain DSP which converts the voice into digitized packets along with the
addition of IP headers which are then sent to the voice gateways. The VG strips the IP header and
delivers the packet to the concerned system using a suitable PSTN signaling.
VWIC – voice and WAN interface cards- can understand both voice as well as data
Digital ports allow multiple calls as opposed to analog which allows only one call per line.
Digitals ports 3 types- T1 (used in US japan etc), E1 (used everywhere), ISDN (for connecting to PSTN PBX
etc).
CAS (channel associated signaling)- associated with T1 and E1. Each channel is 64Kbps – every 6th bit is
used for signaling. It is just a framing standard not the actual signaling.
Types – SF (super frame)- signaling is used to control 12 frames. ESF (extended super frame)- 24 frames
are controlled by signaling.
Advantages-all the channels are available for data. Simultaneous 24 calls can be accommodated because
we don’t dedicate a single channel for signaling but used a single bit from every channel for that
purpose.
Disadvantage-reduce user bandwidth.
ISDN protocols.
Q.921 (layer 2) – error detection/correction
Q.931 (layer 3) – call setup, teardown, information such as caller ID etc.
NFAS (non facility associated signaling) – uses a single ‘D’ channel, for signaling, for multiple PRI
interfaces.
T1-port 23(actually it is the 24th port but the counting starts from 0) is the signaling port
E1- port 15(16th port) is the signaling port
5-----------------------------------------------------------------------
ECHO
It happens everywhere every time. Its just that the delay is so small that we are not able to notice it. It
usually happens at the 2 wire-4 wire interface. The 2 wire coming out of our telephones when come in
contact with the 4 wires of the telephone company, there is a reflection at the interface. Usually the
delay is small but as the communication distance increases the delay becomes significant. The IP
network itself can add its own delay, generally during TOLL BYPASS, before it reaches the PSTN network.
In order to cancel the echo, the voice gateway/voice routers make a copy of the outgoing signal and if it
receives the exact same signal in a given amount of time say 24ms then it completely blocks that signal
it is an ECHO signal. This feature is enabled by default in the routers. The coverage can be increased.
This feature consumes resource on your router and by reducing the coverage we can save ourselves
some resources if we want.
6--------------------------------------------------------------------------------------
CODEC- stands for coder decoder. It is a method used to turn our audio or voice into packets
G.729- allows us the compress our audio to 8Kbps. especially geared for Latin based languages. It builds
a codebook and then sends it. It divides an audio into packets of 20ms. Now the adjacent packets have
more or less the same sound content. So this codec keeps a single sample and discards the rest and then
plays that sample for say 100ms, thereby saving a lot of bandwidth. Not good with music on hold. Not
good with non latin based languages. If there is a packet loss then sound starts to break very easily and
the quality drops drastically.
using 30ms sample size increases the efficiency as the less no of packets which less header info to
process. Less BW being used. Drawback is when we loose a packet it is more impactful. It also adds more
delay.
Transcoding – changing from one codec to another eg. Changing from G.711 to G.729 or the other way
around which is most commonly used when attempting toll bypass.
G.711 is not as efficient as traditional methods bandwidth wise but its still okay because we have a lot of
bandwidth at our disposal.
DSPs are limited in the number of calls they can handle. It depends upon the codec complexity. In order
to tackle this limitation we use DSPfarming. In DSP farming we allocate portions of DSP resources from
various devices for a particular task such as conferencing. So when a conferencing request comes the
voice gateway access those assigned resources to complete the task.
7-------------------------------------------------------------------------------
Nyquist theorem – the theorem says that if we sample and analog signal twice as much as the highest
frequency then we can regenerate the signal fairly from their digital representation.
So sampling the human voice 4000*2=8000 times gives a digital signal from which the original can be
recovered fairly. Now 8000*8 gives 64000 bits=64Kbps which is the bandwidth required to transmit
human voice.
PCM (pulse code modulation) – converts the amplitude scale into binary digits. It samples the audio non
linearly because more info is stored in the lower frequency spectrum than the in the higher freq.
spectrum. PCM scale lies in -127 to +127.
The samples are 8bit binary value with the leftmost bit representing whether it is positive or negative
and the rest of the bits represents the amplitude.
Assigning a number to each sample is known as quantization. Converting these numbers to binary is
done by PCM.
Compression is optional.
8--------------------------------------------------------------------------------
Call legs – they are the hops or links that are encountered while the signal travels to its destination IP.
They are of two types namely 1. POTS call leg 2. VoIP call leg
POTS call legs are used for traditional devices and systems/basically devices that do not have IP address.
VoIP call legs are associated with devices that have an IP address.
CME- call manager express. Installed on the router which starts behaving like a CUCM and perform call
processing and support other features.
The dial peers not just defines the voice routing or phone numbers but also the characteristics of a call
such as the CODEC to be used, features like VAD (voice activity detection). In simple terms they specify
which port to ring when a certain phone number arrives at the router.
_____________________related to configuraton______________
The tag name given during dial-peer command doesn’t mean anything as such. They just must be unique
on each router. It’s a good practice to match the destination pattern with the tag.
COMMANDS
Router#sh start
Router#conf t
Router<config>#hostname R1
R1<config>#line con 0
R1<config-line>#logg s
R1<config-line>#no exec-t
R1<config-line>#exit
R1<config>#dial-peer ?
R1<config>#dial-peer voice ?
R1<config>#dial-peer voice 101(tag) ?
R1<config>#dial-peer voice 101 pots
R1<config-dial-peer>#?
R1<config-dial-peer>#destination-pattern ?
R1<config-dial-peer>#destination-pattern 102
R1<config-dial-peer>#port 1/0/1
R1<config-dial-peer>#exit
R1<config>#do show dial-peer voice sum
R1<config>#dial-peer voice 103 pots 2 dial peers on the same phone
R1<config-dial-peer>#destination pattern 103
R1<config-dial-peer>#port 1/0/1
R1<config-dial-peer>#exit
R1<config>#exit
R1#debug voip dial-peer
R1#u all turn off debugging mode
R1#conf t
R1<config>#no dial-peer vo 103 removing the dial peer
R1<config>#dial-peer voice 101 no pots as 101 has been defined before
R1<config-dial-peer>#destination-pattern 101
R1<config-dial-peer>#port 1/0/0
R1<config-dial-peer>#exit
R1<config>#dial-peer voice 102 pots
R1<config-dial-peer>#destination-pattern 102
R1<config-dial-peer>#port 1/0/1
R1<config-dial-peer>#do debug voip dialpeer
R1<config-dial-peer>#exit
R1<config>#dial-peer voice 1 pots
R1<config-dial-peer>#destination pattern 1..
R1<config-dial-peer>#port 1/0/1
9--------------------------------------------------------------------------------------------------
WILDCARDS
COMMANDS
10--------------------------------------------------------------------------------
ALL COMMANDS
11--------------------------------------------------------------------------------
The PSTN(call company in this case) gives our router a range of DID numbers. So if anyone call one of
those number through the PSTN(a cell phone maybe) it directly comes to our router which in return
rings out phones according to the dial peers.
4. Translation rule.
12--------------------------------------------------------------------------
Translation rules:-
Allows us to change calling(ANI) or called(DNIS) information. Uses regular expressions to transform.
They are created, put into a profile and then assigned to anything.
Wildcards
^ matches beginning of the string
$ matches end of the string eg /^4000$/
. matches single character just like dial-peer
\ removes special meaning eg /\*1/
[] just like dial peer eg 43[2-6]..
? matches character to the left 0 or 1 times
*(asterik) matches character to the left 0 or more times. Eg/.*/ matches blank dialing
+ matches character to the left 1 or more times
|(or) logical or statement eg /4000 | 5000/
13------------------------------------------------------------------------------
20------------------------------------------------------------------------------
RTP - (real-time transport protocol) it is a protocol responsible for delivering our voice. Our voice is
first converted into digital packets to which the RTP adds its own header which contains information
such as time-stamp (T.S.) and the sequence number of the packet. After this the UDP header is added.
Delivers audio and video streams over data networks.
cRTP – this flavor of RTP strips of redundant information on the packet headers to reduce its size. It
usually strips down a 40 byte packet to merely 2-4 byte packet. However it is recommended only for low
speed connections as it puts a processing toll on the router which may overwhelm it.
sRTP – provides encryption, authentication and integrity services to make our voice packets secure. It is
more effective and flexible than VPN.
VAD – provides bandwidth saving by eliminating voice of silence. It will not send the silent packets
thereby saving bandwidth.
RTCP - (real-time transport control protocol) it is a statistical protocol. It provides statistical information
about an ongoing call such as # of packets dropped, codec, receiver size etc. it goes hand in hand with
the RTP. Has lesser priority than RTP.
H.323 is a heavy protocol. H.323 is more established and is more widely used than SIP. It has gone
through much review and testing phases.
SIP is lightweight as compared to H.323. it is easy to understand as it is very simple. But it also is
evolving, new and not supported by all devices.
H.323 and SIP have peer-to-peer architecture. Meaning that the participating devices viz. gateways and
routers are intelligent. They have all the configurations at their local site. All the dial peer are stored at
their concerned routers/gateways. In other words all the gateways have full blown configuration on
them so that they are intelligent. It does not have a centralized device which acts as a brain for all the
gateways in a network which is the case with MGCP.
MGCP has a client server model in which the server acts as the brain providing all the required
functionality to the gateways or the routers. All the configuration and dial peers are stored at the server
which is the CUCM. Drawback is that if the link between the gateway and the CUCM is down for some
reason then the gateway looses its brain. In order to cope with this the gateways have SRST (survivable
remote site telephony) in which simple configurations are put so as to have a basic call functionality.
21------------------------------------------------------------------------------------------------------
2. H.245 – responsible for feature exchange. Feature exchange includes exchange of CODEC info
between gateways so that they agree on a common CODEC etc.
3. H.225 RAS (registration admission and status) – used by gate keeper (GK). The gate keeper holds the
dial plans for the end points (gateways) so as to increase scalability in a peer-to-peer structure because
putting all the files on each end point manually is a tedious job. The gate keeper also provides
bandwidth control. It can be achieved by dividing the network into zones and then assigning each zone a
bandwidth limit. If a zone has exhausted its bandwidth then no more calls can be admitted to it (this is
admission part of the RAS).
H.323 components :-
1. H.323 terminals- these are end points which speak H.323 directly. They don’t need a gate keeper
because H.323 devices are self intelligent.
4. MCU (multi-point control unit) – used for conference calling. It takes in the audio or video streams,
combines them and then sends them out as a single stream to each of the end points
Direct-
H.225 setup
H.225 proceeding
H.225 alerting (giving the ringtone tone to the calling party)
connect
H.245 (feature exchange. CODEC to be used is decided however if a common ground is not achieved
then the call disconnects after lifting the hand set)
RTP and RTCP
end (245)
release 225
In case of multiple GKs we use LRQ (location request) and LCF (location confirm) to find the correct end
point location.
22---------------------------------------------------------------------------------------