Вы находитесь на странице: 1из 30

OAA000004 Bearer control protocol MGCP protocol

ISSUE 2.0

Fixed Network Curriculum Development Section

Objective

After this session, you will learn:

MGCP functions

MGCP commands
Meanings and usage of the

parameters in MGCP commands

MGCP message interaction process

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

References

Product Manual -- Technical Manual -- Signaling and

Protocols -- MGCP

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 a Media Gateway Controller (MGC) and a Media


Gateway (MG).

As control-layer equipment, SoftX3000 supports two bearer control protocols:

MGCP and H.248.

IP DATA

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

MG
5

Concept

MGCP : Media Gateway Control Protocol

assumes a call control structure in which the call control


functions are gateway-independent and are processed by the external call control unit.

a master/slave protocol. The gateway needs to execute the commands sent from the MG controller.

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

Terms

Gateway

Gateway : a network element that provides interconnection and interworking between networks of various architectures. In NGN architecture, NGN inter-works with other networks via certain gateways.

Trunk Media Gateways (TMG): It provides the interfaces between the


traditional telephone network (PSTN) and a Voice over IP (VoIP) network. Access Media Gateways (AMG): It provides a traditional analog

subscriber line interface or a digital PBX interface to a Voice over IP


network.

Residential Gateways (RG): It is an entity that provides traditional analog (RJ11) interfaces to VoIP network. Examples of residential gateways include cable modem/cable set-top boxes, xDSL devices, and broadband wireless devices

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

Terms

Call Agent :
handles the signaling and call processing functions, and it is external call control element controlling Telephony Gateways. SoftX3000 system provides MGCP call agent functions. SoftX3000 can act as the access point for MGCP E-phones and softphones in the network.

End point:
It refers to the originating end or receiving end of data. It can be a physical concept or a virtual concept.

Media Resource Server (MRS):


It is a type of gateway that supports endpoint types such as announcement server access point, interactive voice response access point, conference bridge access point, etc.
8

Confidential Information of Huawei. No Spreading without Permission.

Security Level: Internal

Terms

Terminal nameincludes

Domain name of the gateway


Interface name of the terminal in gateway @is use to seperate domain name and interface name, the form is like Email address

Examples:

AGaaln/1 @ amg1.hauwei.comrefers to the first interface named aaln in AG named amg1.hauwei.com

TGX35V3+A4/13@gw23.example.net refers to the 13th


TDM circuit on interface X35V3+A4 which is in
9

gw23.example.net
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Terms

Call connection:

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

MGCP 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
11

Inter-working Support

SoftX3000 supports interworking between MGCP and the following protocols:


SIP: SIP User and SIP trunk; H.323: H.323 User and H.323 Trunk ISUP: PSTN user through ISUP trunk

MGCP
IAD

SIP H.323

SIP IP Core ISUP SIP Terminal H.323


PSTN

H.323 Terminal
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

12

Protocol Stack

SM (ISUP/TUP/SIP/H.323/ESL) MGCP UDP IP MAC

13
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

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

Message Types:

MGCP messages exchanged between MGC and MG have 9

types

they are called commands when being sent to MG or MGC, while called responses when being returned from MG or MGC.

Command and response are inseparable. Upon receiving a command, MG (or MGC) will return a response immediately.

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

Command Line

A command line is composed of

the name of the requested verb (command name)

the identification of the transaction,


the name of the endpoint (entity) the protocol version. These four items are separated by spaces.

Command name

Identification of transaction

End point

Protocol version

Command line

: Parameter: Parameter value : Parameter: Parameter value ...


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

Parameter line

Command Name
Item Command Name Code Description MGCMG, used to inform the gateway about the 1 Endpoint Configuration EPCF coding characteristics expected by the "line-side" of the endpoint. MGCMG, used by call agent to associate an end point with a specified IP address and UDP port. 2 CreateConnection CRCX Apart from that, a CreateConnection command is also sent to the remote endpoint to create the connection between the two endpoints.

ModifyConnection

MDCX

MGCMG, used to change the parameters of a previously established connection.

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

Command Name
Item 4 Command Name DeleteConnection Code DLCX Description MGCMG, used to delete a

previously established connection. Used to instruct the gateway to

NotificationRequest

RQNT

watch for specific events on a specified endpoint. If it happens, the

Call Agent will be notified.


MGMGC, used by the gateway to 6 Notify NTFY notify the Call Agent that a specific event requested to watch for takes place
18
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

Command Name
Item. Command Name Code Description MGCMG, used by the Call Agent to 7 AuditEndpoints AUEP obtain the detailed information of an end point or a group of endpoints MGCMG, used by the Call Agent to

AuditConnection

AUCX obtain the detailed information of a


connection on an end point MGMGC, used by the gateway to

RestartInProgress

RSIP

notify the Call Agent that an end point is getting out of or into service

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

Command Example

RQNT 4561 endpoint-66@tgw-21.infoinst.com MGCP 1.0

N: abc@cal.infoinst.com: 5777
X: 45848484 R: hd

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

Command Response Format

The response line consists of :

the response code


Values between 200 and 299 indicate a successful completion. Values between 400 and 499 indicate a transient error. Values between 500 and 599 indicate a permanent error.

transaction identifier an optional commentary, which are separated by white spaces.

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

Command Response Example

200 1203 OK

C: A3C47F21456789F0
N: [128.96.41.12] L: p: 10, a: PCMU; G726-32 M: sendrecv P: PS=1245, OS=62345, PR=780, OR=45123, PL=10,

JI=27,LA=48 v=0

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

Command Response Example (Cont.)

c=IN IP4 128.96.41.1

m=audio 1296 RTP/AVP 0


v=0 c=IN IP4 128.96.63.25 m=audio 1296 RTP/AVP 0 96 a=rtpmap:96 G726-32/8000

23
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

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

Scenario 1 MG Registration
MG
SoftX3000

RSIP

RSIP_RSP

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

Scenario 2 - Successful Call


User Off-hook MG
1 RQNT ACK 2 NTFY ACK

SoftX3000

MG

User

Dail tone

3 RQNT ACK 4 NTFY ACK

Dailing

5 CRCX ACK
6 CRCX ACK 7 RQNT

Ringbacktone

8 RQNT ACK

ACK 9 NTFY
ACK

Ringing

Off-hook
26

Confidential Information of Huawei. No Spreading without Permission.

Security Level: Internal

Scenario 2 - Successful Call (continued)


User MG
11 MDCX

SoftX3000
10 MDCX

MG
ACK

User

ACK
CONVERSATION

12 NTFY ACK 13 MDCX ACK 14 DLCX 13 DLCX ACK 16 NTFY ACK 17 RQNT ACK
Confidential Information of Huawei. No Spreading without Permission. Security Level: Internal

On-hook

Busy tone
On-hook

ACK 15 RQNT ACK

27

Scenario 3 - Unsuccessful Call Flow


User Off-hook MG
1 RQNT ACK 2 NTFY ACK 3 RQNT

SoftX3000

MG

User

Dail tone
Dailing

ACK 4 NTFY ACK 5 RQNT

Busy tone On-hook

ACK 6 NTFY ACK 7 RQNT ACK


28
Security Level: Internal

Confidential Information of Huawei. No Spreading without Permission.

Summary

Concept and function of MGCP: The MGCP protocol is used

for communication between MGC and MG. It is a bearer


control protocol.

MGCP includes 9 commands and 3 types of responses. Each command consists of 4 parts; values 200~299 indicate success, and the other values indicate failure.

The role of each command in MGCP call flow must be mastered as the key point.

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

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

Вам также может понравиться