Vous êtes sur la page 1sur 27

OAA000005 H.

248/MeGaCo protocol
ISSUE 2.0

Fixed Network Curriculum Development Section

Objective
After this session, you will learn:

Functions of H.248/MeGaCo protocol


H.248/MeGaCo commands Meanings and usage of parameters in H.248/MeGaCo commands

Message

interaction

process

of

H.248/MeGaCo protocol

2
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

References
Product Manual -- Technical Manual Signaling and

Protocols -- Chapter 4 H.248 Protocol

3
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

About this session

Section 1 Overview

Section 2 Message Structure

Section 3 Call Flow

4
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Bearer Control Protocols

Bearer control protocols are used for


the communication between Media Gateway Controller (MGC) and Media Gateway (MG).

As

the

control-layer supports

equipment, two bearer

SoftX3000

control protocols: MGCP and H.248.

5
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Concept

H.248 and MeGaCo refer to the same kind of protocol. It is an

achievement from the efforts of both ITU and IETF. It is named H.248 by
ITU-T and MeGaCo by IETF.

H.248 comes into being on the basis of MGCP and is combined with features of other media gateway control associated protocols.

The function structure of H.248 is similar to that of MGCP. In NGN, both


H.248 and MGCP can be used between SoftX and most components.

MGCP is deficient in its descriptive capability, which restricts its applications in large gateways. For those large-scaled gateways, H.248

is a much better choice.

MGCP message transportation depends on UDP packets over IP network, and H.248 signaling messages may be based on multiple bearers such as UDP/TCP/SCTP.

6
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

H.248 Implementation in SoftX3000

MRS

IP Core
SoftPhone IAD TMG8010

SS7
PSTN

E1

E-phone
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

E-phone
7

Terms

Media Gateway (MG):

An MG converts media provided in one type of network to the

format required in another type of network.

Media Gateway Controller (MGC):

It controls the call state pertaining to connection control of media channels of MG.

Termination:

A Termination is a logical entity on an MG, capable of sending and/or receiving one or more streams. A Termination is described by a number of characterizing properties, which are grouped in a set of descriptors included in commands. One termination belongs to one and only one context at any time.

Context: A context is the association among terminations. It describes topology relationships among terminations and
8

Confidential Information of Huawei. No Spreading without Permission.

media-mixed/switched parameters. Security Level: Internal

Terms

Context: A context is the association among terminations. It describes topology relationships among terminations and

media-mixed/switched parameters.
Media Gateway Context Context
Termination RTP Stream Termination SCN Bearer Channel

* * *
Security Level: Internal

Termination SCN Bearer Channel

Context
Termination RTP Stream

Null Context
Termination SCN Bearer Channel

Context
Termination RTP Stream Termination SCN Bearer Channel

9
Confidential Information of Huawei. No Spreading without Permission.

Four Attributes of a Context

Context ID: The identifier of a context. Topology structure: Who hears/sees whom, flow

direction of media.

Priority: Providing the prior handling information of a context.

Emergency:

Providing

the

emergent

handling

information of a context.

10
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Protocol Stack

H.248 UDP/TCP/SCTP

H.248 MTP3-B SSCF

IP

SSCOP AAL5 ATM Physical layer (b) ATM-based H.248

Transport media (a) IP-based H.248

11
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

About this session

Section 1 Overview

Section 2 Message Structure

Section 3 Call Flow

12
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Message Mechanism of H.248


Message TransactionI ContextID1
CMD1 Des-1 Des-n

Message Transaction Context Command Descriptor

...CMDn
ContextIDn

...
TransactionIDn

13
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Protocol Message

The unit of information is message.

A message can contain multiple transactions.


A message has a header, which contains the ID of the sender.

Each Message has a version number, indicating the version followed by the protocol message.

There is no relationship among the transactions in a message. They are treated independently.

14
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Message Structure
Megaco/H.248 message ....

Header

Transaction Req or Reply

Transaction Req or Reply

Transaction Req or Reply

Trans Hdr

Action

....

Action

Ctx Hdr

Ctx Properties

Command

....

Command

Trans Hdr

Descriptor

....

Descriptor

15
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Code of Protocol Message

The code of a protocol message can be in the text format

or the binary format.

MGC must support both formats, while MG can support either one.

16
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Commands

H.248 protocol defines eight commands, all of which are sent to MG by MGC except the command Notify, which is sent to MGC by MG. The

command ServiceChange can be sent by either the MG or the MGC. . Commands


Add

Direction
MGCMG

Description
used to add a Termination to a Context. If no ContextID is specified, a Context will be generated and then a Termination is added into it. used to modify the properties, events and signals of a Termination. used to remove a Termination from a Context and return statistics on the Termination's participation in the Context. The Subtract command on the last Termination in a Context deletes the Context. used to move a Termination from one Context to another.
17

Modify Subtract

MGCMG MGCMG

Move

MGCMG

Confidential Information of Huawei. No Spreading without Permission.

Security Level: Internal

Commands (cont.)
Commands: AuditValue Direction MGCMG meanings used to return the current state of properties, events, signals and statistics of Terminations.

AuditCapabilities MGCMG
Notify ServiceChange MGMGC MGCMG

used to return a collection of termination capabilities.


used to allow MG to notify MGC of the detected event. used to allow the MG to notify the MGC that a Termination or group of Terminations is about to be taken out of or into service. ServiceChange is also used by the MG to announce its availability to an MGC (registration), and used for notification of MGC suspension and active/standby switchover.
18
Security Level: Internal

Confidential Information of Huawei. No Spreading without Permission.

About this session

Section 1 Overview

Section 2 Message Structure

Section 3 Call Flow

19
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Scenario 1 Registration
MG
SoftX3000

SVC_CHG_REQ

SVC_CHG_REPLY

20
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Scenario 2 Initiation of MG
MG SoftX3000

MOD_REQ

MOD_REPLY

21
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Scenario 3 Successful call


UserA Termination1
Off-hook 1 NTFY_REQ NTFY_REPLY dial-tone

SoftX3000

Termination2

UserB

2 MOD_REQ MOD_REPLY
3 NTFY_REQ NTFY_REPLY 4 ADD_REQ ADD_REPLY

dialing

5 ADD_REQ ADD_REPLY 6 MOD_REQ MOD_REPLY 8 NTFY_REQ NTFY_REPLY 9 MOD_REQ MOD_REPLY


22

7 MOD_REQ

Ringing Off-hook

Ringback tone

MOD_REPLY

Confidential Information of Huawei. No Spreading without Permission.

Security Level: Internal

Scenario 3 Successful call (cont.)


UserA Termination1 SoftX3000 Termination2 UserB
10 MOD_REQ MOD_REPLY

Conversation
On-hook 11 NTFY_REQ NTFY_REPLY 12 MOD_REQ MOD_REPLY 13 SUB_REQ SUB_REPLY 15 MOD_REQ MOD_REPLY 14 MOD_REQ MOD_REPLY

Busy-tone

16 NTFY_REQ NTFY_REPLY
17 SUB_REQ SUB_REPLY

On-hook

18 MOD_REQ MOD_REPLY
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

23

Scenario 4 Successful trunk call


SG
IAM
1 ADD_REQ ADD_REPLY

TG

SoftX3000

AMG

UserB

2 ADD_REQ ADD_REPLY

3 MOD_REQ 4 MOD_REQ MOD_REPLY ACM


5 NTFY_REQ NTFY_REPLY 6 MOD_REQ MOD_REPLY MOD_REPLY Ringing

Off-hook

7 MOD_REQ MOD_REPLY ANM

Conversation
24
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Scenario 4 Successful trunk call (cont.)


SG TG SoftX3000 AMG
On-hook

UserB

8 NTFY_REQ NTFY_REPLY 9 MOD_REQ MOD_REPLY 10 SUB_REQ SUB_REPLY

REL

RLC
11 SUB_REQ

SUB_REPLY

25
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Summary

Concept and function of H.248: As a bearer control protocol, H.248 is used for communication between MGC and MG. The protocol contexts. communication consists of terminations and

There are multiple concepts for H.248, and the inclusion relation in ascending order is as follows: descriptor command action transaction message.

There are 6 commands: ADD, MODIFY, SUBSTRACT, MOVE,

AUDITVALUE,
SERVICECHANGE.

AUDITCAPABILLITIES,

NOTIFY

and

The function of each command in H.248 call flow must be mastered as the key point.
26

Confidential Information of Huawei. No Spreading without Permission.

Security Level: Internal

27
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal