1 / 16

Miroslav Voz ňák VŠB - Technical University of Ostrava Department of Telecommunications

454-319/1: Vo ice over IP. Lecture No. 11 MGCP – Media Gateway Protocol. Miroslav Voz ňák VŠB - Technical University of Ostrava Department of Telecommunications Faculty of Electrical Engineering and Computer Science 17. listopadu 15, 708 33 Ostrava – Poruba mailto:miroslav.voznak@vsb.cz

khoi
Download Presentation

Miroslav Voz ňák VŠB - Technical University of Ostrava Department of Telecommunications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 454-319/1: Voice over IP Lecture No.11 MGCP – Media Gateway Protocol Miroslav Vozňák VŠB - Technical University of Ostrava Department of Telecommunications Faculty of Electrical Engineering and Computer Science 17. listopadu 15, 708 33 Ostrava – Poruba mailto:miroslav.voznak@vsb.cz http://homel.vsb.cz/~voz29 Miroslav Voznak, lecture No.11

  2. MGCP overview • MGCP – IETF protocol • the first RFC 2705 from 1999 (MGCP v1) • RFC 3435 from 2003 obsoletes RFC 2705 (still v1) • H.248 – similar with MGCP but ITU-T standard • H.248v0, 2000 • H.248v1, 2002 • H.248v2, 2002 • H.248v3, 2005 • H.248 is also known as a Megaco protocol and is based on MGCP. Miroslav Voznak, lecture No.11

  3. Generic VoIP Model for Public Network MGWC MGWC Sigtran H.323/SIP Sigtran Megaco H.248/ MGCP Megaco H.248/ MGCP SGW SG SG IP SGW SS7/E1 SS7/E1 RTP STP Telephone switched Network STP Telephone switched Network MGW MGW Miroslav Voznak, lecture No.11

  4. MGCP Elements • Media Gateway (MG) • converts the media to the format required in another network • Call Agent (CA) • also referred to as a MGWC (Media Gateway Controller) or industry term Softswitch • controls the part of the call states • Master – Slave relationship with MG • Signaling Gateway (SGW) • converts the signaling, SS7 (F link or A link), F link is used if SG is included in MG and A link if SG is separated Miroslav Voznak, lecture No.11

  5. MGCP Protocol • Basic features: • simple command/response protocol: CMD/ACK (NACK) • uses UDP • retransmission (errrors and time-outs) • CA performs a call processing, endpoint control and connection control Miroslav Voznak, lecture No.11

  6. MGCP Command (CMD) EPCF (Endpoint Configuration): CA>MG, dává GW instrukce k nastavení kódování na straně linkového rozhraní (směrem do PSTN, ISDN, ...). RQNT (Notification Request): CA>MG, dává GW instrukce k dohledu specifických událostí a instruuje jak k těmto událostem generovat signály. NTFY (Notify): CA>MG, dává GW instrukce k dohledu specifických událostí a instruuje jak k těmto událostem generovat signály. Miroslav Voznak, lecture No.11

  7. MGCP Command (CMD) CRCX (Create Connection): CA>MG, vytořit spojení přes GW mezi dvěma endpointy. MDCX (Modify Connection): CA>MG, změnit parametry týkající se sestaveného spojení. DLCX (Delete Connection): CA>MG a MG>CA, zrušit existující spojení, ACK vrací statistiky volání. Miroslav Voznak, lecture No.11

  8. MGCP Command (CMD) AUEP (Audit EndPoint): CA>MG, monitoruje status endpointu. AUCX (Audi Connection): CA>MG, monitoruje status spojení. RSIP (RestartInProgress): MG>CA, MG sděluje CA o stavu v provozu a mimo provoz. Miroslav Voznak, lecture No.11

  9. MGCP Acknowledge (ACK) • Every command (CMD) must be acknowledged • Acknowledge contains return codes indicating CMD status • Return codes are described in RFC 3661 MGCP Return Code Usage • Return codes use vaule range 000-999 Miroslav Voznak, lecture No.11

  10. MGCP Acknowledge (ACK) 000-099 Response acknowledgement, potvrzení odpovědi, (např. 000 - jde o potvrzení po přijetí dočasné odpovědi, 3-way handshake), 100-199 Provisional response, dočasná neboli prozatimní odpověď informující o průběhu vyřizování požadavku (např. 100 – transaction in progress oznamující vyřizování anebo 101 – transaction has been queued oznamující zařazení požadavku do fronty) Miroslav Voznak, lecture No.11

  11. MGCP Acknowledge (ACK) 200-299 Successful completion je úspěšné dokončení, tuto odpověď vidíme nejraději 400-499 Transient error, jedná se o přechodnou chybu, kterou může být např. 401 – phone allready off-hook oznamující stav obsazeno anebo 404 – insufficient bandwith indikující nedostatek pásma Miroslav Voznak, lecture No.11

  12. MGCP Acknowledge (ACK) 500-599 Permanent error, trvalá chyba např. 500 – unknown endpoint oznamující neznámý cíl anebo 504 – unknown or unsupported command indikující neznámý či nepodporovaný příkaz 800-899 Package specific response codes oznamuje specifické kódy (nestandardní) 900-999 Reason codes, jedná se o důvody chyb např. 901 – endpoint taken out of service oznamující, že koncový terminál je mimo provoz anebo 903 – QoS resource reservation was lost indikuje nemožnost garantovat kvalitu Miroslav Voznak, lecture No.11

  13. MGCP Commands • Basic features: • simple command/response protocol: CMD/ACK (NACK) • uses UDP • retransmission (errrors and time-outs) • CA performs a call processing, endpoint control and connection control Miroslav Voznak, lecture No.11

  14. MGCP: Master/Slave protocol Call Agent SG SG SS7 CRCX SS7 200 OK 200 OK MDCX STP CRCX STP RTP Telephone switched Network Telephone switched Network IP Network Trunking Gateway Trunking Gateway Miroslav Voznak, lecture No.11

  15. Example Command: CRCX CRCX1234Ts0/ds1-1/1@tgw.gateway.com MGCP 1.0 command trunking gateway endpoint transaction Id protocol version Miroslav Voznak, lecture No.11

  16. Thank you for your attentionmiroslav.voznak@vsb.cz Miroslav Voznak, lecture No.11

More Related