Signaling Protocols For Voip Signaling Protocols For Voip: Dr. Ahmed A. Khalifa
Signaling Protocols For Voip Signaling Protocols For Voip: Dr. Ahmed A. Khalifa
By:
Dr. Ahmed A. Khalifa
Agenda
• H.225 RAS
• H.225 Standard Messages (Q.931)
• H.245
2
H.225 RAS
3
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS (Cont.)
•The “unregistration” occurs when a station
disconnects from the system
•Admission runs between the endpoint & the
gatekeeper
•A node may request a certain amount of
bandwidth from the network using an
Admission Request (ARQ) message
•Gatekeepers allowing this type of request
will respond with an Admission Confirm
(ACF) message
Examples
•Gatekeeper Request (GRQ)
•Gatekeeper Confirm message (GCF)
•Registration Request (RRQ)
•Admissions Confirm (ACF)
•Bandwidth Confirm (BCF)
•Unregistration Confirm (UCF)
•Not all messages have to be supported by every
node and in every direction
4
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS (Cont.)
•The “unregistration” occurs when a station
disconnects from the system
•Admission runs between the endpoint & the
gatekeeper
•A node may request a certain amount of
bandwidth from the network using an
Admission Request (ARQ) message
•Gatekeepers allowing this type of request
will respond with an Admission Confirm
(ACF) message
Examples
•Gatekeeper Request (GRQ)
•Gatekeeper Confirm message (GCF)
•Registration Request (RRQ)
•Admissions Confirm (ACF)
•Bandwidth Confirm (BCF)
•Unregistration Confirm (UCF)
•Not all messages have to be supported by every
node and in every direction
5
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields
6
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
7
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
8
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
10
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
11
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
12
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
Tokens: A collection of items that may or may not be necessary to allow the
connection to go forward. The tokens field is of variable length and, as can be
seen from Figure 6-19, is a list of the Object Identifiers (OIDs) required. OID
1.3.14.3.2.6 refers to the Data Encryption Standard (DES) encryption
for Electronic Code Book (ECB) mode. Each section
begins with a numerical value indicating how many items follow
13
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
Feature Set
This is a collection of items supported by the
phone
Features are referenced by their OIDs
14
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 RAS fields (Cont.)
Registration Confirmation
message from the gatekeeper to
this particular VoIP phone (packet
571) includes the Call Signal
Address (IP address and port) to
be used with the H.225 packets
This packet also indicates that the
phone is allowed to make calls
immediately
15
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 Example
• Avaya G700 chassis
with an S8300 media
gateway
• The VoIP endpoints
are Avaya 4610 IP
phones
• This topology also has
DHCP and TFTP
servers along with
monitor stations
watching traffic from
the two IP phones
16
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 Example (Cont.)
1. Phones power up and look for an IP
address via DHCP
2. Phones look to update their software
via the TFTP server
• This process varies a little between
vendors, but it is present on this
Avaya based topology
3. Phones contact the call server in
order to register themselves and allow
a user to log in to the phones
• This gives the phone its phone or dial
number
17
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 Example (Cont.)
Packet list from phone startup
18
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
GK Discovery
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Direct call signaling
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Bandwidth change
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225 Standard Messages (Q.931)
22
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Q.931 Fields
• Protocol Discriminator
• This 1-byte field is set to 08 per the ITU-T Recommendation H.225.
• This indicates that it is a Q.931 message
23
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225-Q.931 SETUP message
Protocol Discriminator
This 1-byte field is set to 08 per the
ITU-T Rec H.225.
This indicates that it is a Q.931
message
24
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Q.931 Fields (Cont.)
• Message Type
• 1-byte field (7 bits for the code and 1 bit for future use) specifying the kind of message
• Examples
ALERTING has a code of 01
CALL PROCEEDING has a code of 02
CONNECT has a code of 07
• Information Element
• It can be either single octet or variable length, depending on the fit bit in the octet
• current value is 7e, or 0111 1110 in binary
• The table from ITU-T Recommendation Q.931 indicates that this value is user-user
• Other examples include Calling Party Number (01101100)
27
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Mandatory and optional H.225 messages types
for an H.323 implementation using Q.931
29
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.225-Q.931 SETUP message
CALL PROCEEDING
The user or endpoint receives this
message in order to indicate that the
network has received enough
information to allow the call to
move forward
31
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
CONNECT message
CONNECT message is sent to the
caller from the call server and from the
called party to the call server.
It is used to indicate acceptance of
the call by the called party. The
other end can be either the call server
or
gateway itself or another endpoint
such as a phone.
32
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
FACILITY message
• What is H.245?
Answer:
The messages cover receiving
and transmitting capabilities as well as
mode preference from the receiving
end, logical channel signaling and
control & indication
34
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.245 General Services
• Master-slave determination: Endpoints have the ability to act as both a master
(e.g., media controller) or slave when setting up a bidirectional connection. In
this case, the capabilities of each are compared and a master selected for the
call
• Capability exchange: Capabilities of the endpoints are communicated to
ensure that only codecs or configurations understood by both sides of the
conversation are selected
• Logical channel signaling: Using the OpenLogicalChannel messages (OLC,
OLC ACK, and CLC), H.245 establishes the parameters to be used when
encoding and decoding data
• Audiovisual and data-mode request: Once the capabilities are known and the
desired encoding selected, the endpoints signal their desire through this
method.
35
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.245 messages
36
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.245 master-slave determination
message
• The circled values are actually used for the final decision.
• The terminal type is simply a value between 0 and 255, which depends on the unit.
• The statusDeterminationNumber is a random number.
• The larger terminal type value will be the master.
• If these are the same, the statusDeterminationNumber is compared using modulo
arithmetic.
37
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
H.245 master-slave determination
ACK
39
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Call Termination
• The last part of any phone call is hanging up
• At the beginning of a call, the call manager and
possibly the other endpoint are contacted, and
then the media session must be set up (via the
H.225 and H.245 messages)
• Upon termination, the session must be closed
via H.245 and then the call termination
finalized by H.225
40
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Example:
An Ad-Hoc Conference
One the the endpoints must contain an MC
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
Example:
Basic Call without GKs
H.323 Intro. H.323 Components H.323 Subprotocols H.323 Operation SIP MGCP
References
43
Thank you!
44
Questions
45