Telephone Exchange Introduction
Telephone Exchange Introduction
Telephone Exchange Introduction
TELEPHONE
• The Telephone use came about from a device
invented by Alexander Graham Bell in 1876 .
• Telephone is devices used for communicating
sound, especially speech.
• Tele- means long distances and
• phono means sound, voice or speech
TELEPHONE EXCHANGE
• Telephone Exchange is a place where switching between two
or more subscribers is done through either manually or
electronically.
In addition to switching, signalling, controlling and diagnostic
are also done at “Exchange”
• A telephone exchange is a telecommunications system used in
the public switched telephone network or in large enterprises.
• Basics elements of Telephone Exchange
1. Card Frames ,shelf's
2. Mother Board, cards
3. Main Distribution Frame
4. Power Supply Panel & Protective Devices
EVOLUTION
• PSTN - Public switched telephone network, also
knows as the plain old telephone system(POTS) is
basically the inter-connected telephone system over
which telephone calls are made via copper wires.
• PSTN is based on the principles of circuit switching
• Therefore when a call is made a particular dedicated
circuit activates which eventually deactivates when
the call ends
• Telephone calls transmits as analogue signals across
copper wires
MANUAL EXCHANGE
• 1877 - The world's first commercial telephone
exchange opened in Friedrichsberg close to Berlin
• 1878 – Worlds’ first US telephone exchange was
established at New-Haven in Connecticut in the
USA
• Telephones were sold in pairs and the customers
were supposed to lay out there own cables
• Connectivity type – point to point connections
• Network structure – mesh topology, star topology
• Switching technique – manual switching
MANUAL EXCHANGES
ELECTRO MECHANICAL EXCHANGE
• 1887 – Almon Brown Strowger invented the
first electromechanical switch, known as the
Strowger switch or step by step switch
• Switch operated according to the train of
pulses generated by the customer premises
telephone
• Pulses were generated by a telegraph key on
the telephone until the dial was introduces
• 1920’s – Rotary dial telephones enters service
ELECTRO MECHANICAL EXCHANGE
• 1935 – Crossbar switches were introduced
• Intersecting bars move to make contact in
order to complete the circuit
• Markers were used to control exchanges
• Takes only 1/10 of a second to complete a call
ELECTRO MECHANICAL EXCHANGE
CROSS BAR SWITCH
ELECTRONIC EXCHANGE
• 1950 – Time division multiplexing (TDM) is
introduced
• 1968 – Stored program control (SPC) electronic
switching was introduced
• calls are completed within nano seconds
• An electronic switch Upgradable to new versions
since software dependant Call set-up is controlled
by programmed software's
• 1984 – ISDN exchange are introduced.
ELECTRONIC EXCHANGE
TELEPHONY WORKS
• Pick up the phone
– Wait for a dial-tone
• Dial the destination tel. #
• Remote phone starts ringing
– Caller is alerted of the ringing by ringback tone
• Destination picks up and
– A point-to-point circuit is established
• The circuit carries a digitized version of the voice samples
– E.g., 8 bits/voice sample, one sample at a time, PCM
(pulse code Modulation)
• If Any one whether the caller or called cradles the phone
than the circuit will be disconnected.
CIRCUIT SWITCHING
CIRCUIT SWITCHING
• In Circuit Switching the resources need to be
reserved during the setup phase, the
resources remain dedicated for the entire
duration of data transfer until the teardown
phase.
CIRCUIT SWITCHING
1. Waste of channel bandwidth
• IEEE 802.3at-2009
– 30W of DC power/Power available – 25.5W
AUDIO CODECS in VOIP EXCHANGES
• Where
Lvoip = Audio data encoded by codec
Opacket = Protocol stack overhead
C second = Number of Packets
BANDWIDTH CALCULATION
• Example calculation for G.729 (8Kbps) audio codec (up
to network L2 layer):
• VOIP data size: 20(codec sample size)
1(samples per packet) = 20 bytes
• Protocol stack overhead
RTP-L2:12(RTP)+8(UDP)+20(IP)+18(L2)=58 bytes
• Packets per second: 1000(milliseconds in a
second)/20(packet duration in ms) = 50 packets
Network
45 msec 64 msec
Hearing
Output Decode Jitter Reconstruct Receive
Buffer
Terminals
Also known as endpoints, terminals provide point-to-point and multipoint
conferencing for audio, video and data
Gateways
Gateways are used to connect between Switched Circuit Network (SCN)
endpoints and H.323 endpoints. Gateways are only needed when an H.323
endpoint needs to interconnect to a different network
Gatekeeper
Gatekeepers provides pre-call and call-level control services to H.323
endpoints.
H.323 Components
Multipoint Controller (MC)
A Multipoint Controller supports conferencing
between three or more endpoints. A Multipoint
Processor (MP) receives audio, video and data
streams, and then redistributes those streams to
the endpoints in a multipoint conference
H.323 Protocol Stack
Call Exchange (direct mode)
H.323 Call-Signaling Process
There are five general steps in the H.323 signaling process:
setup/teardown, capabilities negotiation, open media channel,
perform call, and release.
Setup/Teardown
To initiate an H.323 call, H.225 is required for the setup process.
The following are the most commonly used signaling messages :
Setup: A forward message sent by a calling entity in an attempt to
establish a connection with the called entity
Proceeding: A backward message sent from the called entity to the
calling entity to inform that call establishment procedures were
initiated
H.323 Call-Signaling Process
Alerting: A backward message sent from the
called entity to inform that called party ringing
was initiated
Connect: A backward message sent from the
called entity to the calling entity that the called
party answered the call. The connect message can
contain the transport UDP/IP address for H.245
control signaling
Release: sent by endpoint initiating disconnect
SIP
• Proposed Standard described in IETF RFC 2543
• Application-layer control protocol
• A signaling protocol for initiating, managing and
terminating voice and audio session across packet
networks with one or more participants .
• Text-based protocol with highly extensible
• Session can be
1. Call between two simple telephone
2. Collaborative multi-media conference session, etc.
SIP Functionality
• User location
• User availability
• User Capabilities
• Session setup
• Session Management
• Session termination
FUNCTIONALITIES
• SIP serves 4 major functionalities
1. It allows to locate the user ( i.e translating user’s name
to their current network address)
2. Inviting the user for session
-negotiation so that all of the participants in a session
can agree on the features to be supported among them
3. Delivering the session description
- call management such as adding ,dropping or
transferring participants.
4. Terminate the session
SIP ARCHITECTURE
Application Services
SIP Servers
SIP Servers SIP Proxy, Locate,
Register, Redirect
Processes
SIP
SIP
SIP
PSTN
SIP
RTP/UDP
PBX
IP Device w ith
SIP Agents
SIP entities
• User Agent (UA)
– User agent client (UAC)
– User agent server (UAS)
• Proxy server
– Stateless proxy server
– Stateful proxy server
• Redirect server
• Registrar server
USER AGENT(UA)
• User Agent Client (UAC)
–Application which originates SIP requests
• User Agent Server (UAS)
–Application which contacts user upon receiving SIP request, and–Returns
user’s response on his behalf
- Accepts, rejects or redirects
• User Agent (UA)
–Application which contains both UAC & UAS and exchange
request/response messages
1.invitation 2.invitation
4. OK 3. OK
5.Acknowledge 6.Acknowledge
USER USER
AGENT 1 AGENT2
From: http://docs.sun.com/app/docs/doc/821-0203/6nl988v7d
SIP LAYERS
SIP Protocols
SIP provides basic elements of telephony
• SIP: Call setup and termination
• RTCP: data stream management
• DNS = Domain Name System
• PPP = Point-to-Pont Protocol
• RSTP = Real-time Streaming Protocol (controls video
streams, like a VCR)
• RSVP = Resource Reservation Protocol
• RTP = Real-Time Transfer Protocol
• SDP = Session Description Protocol
SIP REQUESTS
•INVITE
–Request initiation of a session
Most common and important
•ACK
–Confirm that a session has been initiated
•BYE
–Request termination of a session
•OPTIONS
–Query a host about its capabilities
•CANCEL
–Cancel a pending request
•REGISTER
–Inform a redirection server about the user’s current location
SIP RESPONSES
•1xx-Provisional (Informational)
–Request received, continued to process request, e.g., 180 = Ringing
•2xx–Success
–Action was successfully received, understood, and accepted, e.g., 200 =
OK
•3xx –Redirection
–Further action must be taken to complete the request, e.g., 305 = Use
Proxy
•4xx-Client Error
–The request contains bad syntax or cannot be fulfilled at the server, e.g.,
484 = Address Incomplete
•5xx -Server Error
–The server failed to fulfill an apparently valid request, e.g., 500 = Internal
Server error
•6xx-Global Failure
–The request is invalid on any server, e.g., 600 = Busy
Elements of VOIP
HARDWARE ELEMENTS
1. SERVER : A standard robust server should be
used for this purpose
2. GATEWAYS
a. PRI GATEWAYS:- for connecting the existing
TDM Exchanges
b. ANALOG GATEWAYS :-for connecting the
normal analog subscribers.
Elements of VOIP
3.POE SWITCHES :- for connecting and powering
the IP PHONEs, IP VIDEO PHONEs along the
network.
4.SIP PHONES: IP audio phone , IP audio cum
videophone
5. LAN NETWORK
GATE WAYS
SIP Phones
VOIP SOFTWAREs
Open Source Telephony software :
• Open source software provides users the freedom of choice in
programming according to user requirements.
• It eliminates the vendor lock-in as well as promotes openness and
standardization such as (license for server software, license for IP
phone, license for gate ways , license for concurrent calls, etc)
• Various open source telephony are available in market some of the
are enlisted below
• 1. Asterisk
• 2. Open SIPS
• 3. Free Switch
• 4. YATE
ASTERISK
• Asterisk is an open source software for implementation of
IP-PBX developed by DIGIUM corporation ,USA in 1999
• It is designed for the linux OS and can be installed on
either PC servers or compatible embedded hardware.
• It is free downloadable GPL (Gnu Public License) open
source software, can be down loaded from
WWW.asterisk.org site.
• The software includes source code and can be modified
according to user requirements under the terms of the
GPLv2 license
FEATURES OF ASTERISK
• Various modern features available in asterisk
1. Call features: automated attendant, blind transfer, cdr ,
call forward, Conference bridging, sms messaging,
streaming media access, talk detection, voice mail , etc.
2. Computer –telephony Integration
3. Allows Scalability
4. Audio Codec Support (in standard Distribution)
5. Traditional telephony protocols support (with add-on
hardware
6. ISDN protocols support (with add-on hardware)
Server and OS requirements
• Server for 100 subscribers for handling 50 concurrent calls
• Server shall be suitable for 24X7 operations (Dell, IBM ,HP,
etc)
• Server should be installed in 1+1 redundancy for critical
uses.
• The processor should be intel dual core minimum1.8 GHz
processor with 2 GB RAM,256 MB cache , RAID1 Dual hard
disk 250GB minimum, with dual Ethernet ports to enable
redundant connection to LAN
• OS shall be recent standard linux distribution.
Server and OS requirements
• Server for 1000 to 1200 subscribers for handling 500
concurrent calls
• Server shall be suitable for 24X7 operations (Dell, IBM ,HP, etc)
• Server should be installed in 1+1 redundancy for critical
uses .the second server may be provided at geographically
different location.
• The processor should be intel quad core minimum 1.8 Ghz
processor with 8 GB RAM,512 MB cache , RAID5 Dual hard disk
500GB minimum, with dual Ethernet ports to enable
redundant connection to LAN
• OS shall be recent standard linux distribution.